optimization/8315: Bad reordering in -O3
bangerth@dealii.org
bangerth@dealii.org
Wed Dec 11 13:25:00 GMT 2002
Synopsis: Bad reordering in -O3
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Dec 11 13:25:40 2002
State-Changed-Why:
You are violating aliasing rules here:
(*((void **) (&real_morecore)) = ((void *) (__morecore)));
(*((void **) (&__morecore)) = ((void *) (r_alloc_sbrk)));
If you remove the casts, the assembler code is ok.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8315
More information about the Gcc-bugs
mailing list