--- Comment #4 from gcaprino at gmail dot com 2008-05-22 23:03 ---
(In reply to comment #3)
> >I'm sorry, but I don't understand what you mean.
> *((unsigned int *)(&(p1)->data[0])),
> You are accessing a char array as an unsigned int which violates C/C++
> aliasing
> rules and
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-22 22:38 ---
>I'm sorry, but I don't understand what you mean.
*((unsigned int *)(&(p1)->data[0])),
You are accessing a char array as an unsigned int which violates C/C++ aliasing
rules and causes undefined code at runt
--- Comment #2 from gcaprino at gmail dot com 2008-05-22 18:15 ---
(In reply to comment #1)
> This code also does violates C aliasing rules.
I'm sorry, but I don't understand what you mean.
Do you think there is a problem with the code portion
such that it's not legal, safe C code?
(btw
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-05-22 17:15 ---
This code also does violates C aliasing rules.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--