This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/8315: Bad reordering in -O3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]