[Bug c++/13511] Problem with compiler optimization -o2

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 5 13:06:00 GMT 2004


------- Additional Comments From nathan at gcc dot gnu dot org  2004-01-05 13:06 -------
As Andrew keeps pointing out, the increment of Frameptr is being folded into
its initialization. I.e. the compiler is converting
  char *Frameptr = (char *) buffer;
  Frameptr++;
into
 char *Frameptr = (char *) buffer + 1;
and that addend is being held in the relocation table of the object file. You
need to examine that relocation table. Are you using a bespoke linker/loader
and getting the relocations incorrect?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13511



More information about the Gcc-bugs mailing list