Subject: port-i386/6967: gcc -march=i486 generates bad assembler on x86
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tls@rek.tjls.com>
List: netbsd-bugs
Date: 02/08/1999 10:59:22
>Number: 6967
>Category: port-i386
>Synopsis: gcc -march=i486 generates bad assembler
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-i386-maintainer (NetBSD/i386 Portmaster)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 8 08:05:00 1999
>Last-Modified:
>Originator: Thor Lancelot Simon
>Organization:
Very little
>Release: 19990205 -- but compiler may be slightly older
>Environment:
AMD K6-2/350, NetBSD-current, 'make build' w/-O2 -march=i486
>Description:
During a "make build" with -O2 -march=i486, the assembler blew out
in sbin/mount_portal due to bad assembler at line 258 of the
included compiler output for mount_portal.c; the compiler appears
to have emitted a negative value in an unsigned field.
See enclosed assembly code for mount_portal.c (bug is
at line 258):
begin 644 mount_portal.s.bz2
M0EIH.3%!62936>M3!RP``"1?@!`P7F__\'\%'DZ____P8`BNPU?.^AXO8`+%
M7O<=S4+5;L&<)(D!/1)MI,C4VE#TT@T&FF@T#T1H!IH$`A"I^IZDVI^J9-`T
M``](&F@!S"8!,`)A,)I@``$R::!A)I*$)JGZ%/:B>4P,D``-```T")4D-J>B
M?JCTAZ@```````!%$*834S)3P5/U/4S2AZ@,C(R`R!H>GL0$R2$A=_YJ[66!
MWKG\&;:XY/3RX"2WTUNZSX-T6VCX=^UR:=^O+PVUV1>BR'3>FT,.23.O_>SN
MS^SCIY'C]);]JFX3&Z`@[='B5$=57W*J&ZU(X#)$+>"/9RJP/:=<G2!M[8E2
M@5&0KN42P<BS),B,ZU/*S]>FNDOVS&UN3$/7!+_N99MU)`9`XF'ZLCE@295[
MW:>R]J7V=4X$<=>E[23[N10<7VXI;M[:=>F.1D]-DC7&BBG23D*RB%5SRPF@
M(G%_'<QO@%]M,`/;=6#H56NE?42VH"4!K?PSF:P>H*@X5+=E`)@K)2FQF0G8
M#)$;L87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:
>System: NetBSD rekusant 1.3I NetBSD 1.3I (REKUSANT) #0: Sun Feb 7 16:49:27 EST 1999 root@rekusant:/usr/src/sys/arch/i386/compile/REKUSANT i386