This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/29907] ARM Optimization Bug
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2006 02:34:46 -0000
- Subject: [Bug target/29907] ARM Optimization Bug
- References: <bug-29907-13594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-11-24 02:34 -------
(In reply to comment #3)
> The C standard permits structures to have common layout for *initial* elements
> and casting between these *is* permitted. But your code is taking the address
> of an element in the *middle* of the structure and this has no defined
> behaviour in the standard. Consider, for example
The only time the C standard mentions initial elements is with respect of
unions and not aliasing. In terms of aliasing it mentions about structs
containing other structs but that is common sense there :).
So this testcase is invalid too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
GCC build triplet|arm-rtems-gcc -O2 -g -c |
|test.c |
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29907