This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13511] Problem with compiler optimization -o2
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2004 13:06:12 -0000
- Subject: [Bug c++/13511] Problem with compiler optimization -o2
- References: <20031230104215.13511.osoentgen@lucent.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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