Subject: bin/5403: gcc creates faulty assembler files on m68k systems
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 05/05/1998 21:28:28
>Number:         5403
>Category:       bin
>Synopsis:       gcc creates faulty assembler files on m68k systems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May  5 12:35:01 1998
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.owl.de/~tron/
>Release:        980503
>Environment:
NetBSD sandra 1.3E NetBSD 1.3E (SANDRA) #0: Mon May  4 12:44:28 MEST 1998     tron@sandra:/src/src/sys/arch/amiga/compile/SANDRA amiga

>Description:
Compiling "src/usr.sbin/iostat" with the old "gcc" fails because a faulty
assembler source file is created:

tron@sandra:/usr/src/usr.sbin/iostat>make depend all                            mkdep -a -I/usr/src/usr.sbin/iostat/../../usr.bin/vmstat /usr/src/usr.sbin/iostat/../../usr.bin/vmstat/dkstats.c iostat.c
cc -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -I/usr/src/usr.sbin/iostat/../../usr.bin/vmstat -c /usr/src/usr.sbin/iostat/../../usr.bin/vmstat/dkstats.c
cc  -c iostat.s
iostat.s: Assembler messages:
iostat.s:534: Error: Ignoring junk after expression
*** Error code 1

Stop.

The faulty line looks like this:
        fdivd #0r1.0487OO_033920000000e6,fp0

When I compile the source without "-O" everything works fine. I already tried
to rebuild "gcc" and "gas" but it didn't help.

>How-To-Repeat:
cd /usr/src/usr.sbin/iostat
make depend all

>Fix:
Sorry, but I don't know.
>Audit-Trail:
>Unformatted: