This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12148] New: longstanding m68k libgcc.a bug when using ` -mshort'
- From: "markus at oberhumer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2003 07:51:07 -0000
- Subject: [Bug c/12148] New: longstanding m68k libgcc.a bug when using ` -mshort'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12148
Summary: longstanding m68k libgcc.a bug when using ` -mshort'
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: markus at oberhumer dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: m68k-atari-mint
There is a longstanding bug in config/m68k/fpgnulib.c which triggers runtime
floating point errors and/or causes hangings when using `-mshort' on m68k
machines (m68k-atari-mint is the only system I know of that still supports -mshort).
>From the patch I'm going to attach:
RCS file: /cvs/gcc/gcc/gcc/config/m68k/fpgnulib.c,v
+** 2003-09-03 Markus F.X.J. Oberhumer <markus@oberhumer.com>
+** Fix `-mshort' bugs: Use `long' instead of `int' in a number of places
+** to make sure we always have a SImode (and not a HImode), added a
+** number of `L' to produce valid SImode constants.