This is the mail archive of the gcc-bugs@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]

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


------- 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


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