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]

Re: libstdc++/9697: invalid instruction


I may have fixed my own bug. Is someone interested in verifying my fix. I'm
not much of an assembly person. I've attached the files that I modified. To
summarize the 68000 and 5200 processors do not support bsr.l. That I've
verified from the appropriate manuals. The gcc m68k.md and m68k.h didn't
take these into account. I modified m68k.md and m68k.h from the gcc-3.2.2
tar ball to check for 68000 and 5200. If so then jsr is used instead of
bsr.l. The jsr instruction take an absolute value where as the bsr takes a
relative address. The m68k.h needs to use the appropriate assembly for both
PIC and non-PIC code.  I posted a bug on this 9697.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p

r=9697




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