Subject: port-i386/1572: Over-enthusiastic optimization level in kernel compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank van der Linden <frank@struis.fwi.uva.nl>
List: netbsd-bugs
Date: 10/03/1995 23:45:25
>Number: 1572
>Category: port-i386
>Synopsis: Over-enthusiastic optimization level in kernel compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 5 22:35:00 1995
>Last-Modified:
>Originator: Frank van der Linden
>Organization:
BugSpray, Inc.
>Release: 1.0A
>Environment:
NetBSD natte 1.0A NetBSD 1.0A (NATTE) #4: Tue Oct 3 19:43:10 MET 1995 frank@natte:/nfs/natte/nat1/src/sys/arch/i386/compile/NATTE i386
>Description:
arch/i386/conf/Makefile.i386 specifies -O6 in the compile flags.
However, for the i386, the maximum level supported by gcc is 2,
so -O6 makes no sense (it is treated the same as -O2).
>How-To-Repeat:
Read the code.
>Fix:
Change to -O2. Or leave this for future expansion, but I'm not
sure if there'll be 4 more optimization levels for the i386 in
gcc anytime in the near future.
>Audit-Trail:
>Unformatted: