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++/25199] crashing code output from -mtune=pentium4 but not -mtune=pentiumpro



------- Comment #5 from jakub at gcc dot gnu dot org  2005-12-01 14:38 -------
Finding a bug in 1M of assembly is really hard without knowing where exactly
to look at.  Nevertheless, I suspect:
movl    237(%edi), %esi
in _ZN14X11SalGraphics10SetXORModeEh
(whereas -mpentiumpro .s has
movb    237(%esi), %al
).  I haven't verified in detail, but it looks possible the 32bit bitfield
(out of which only 14 bits are occupied) might be the last thing in the
class, so if the bitfield happened to end up at END_OF_PAGE-240 bytes
and nothing was mapped in the next page, a crash could happen.


-- 


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


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