Subject: port-mac68k/5295: Problem with c++ and -O3 on mac68k
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fredb@fb.sa.enteract.com>
List: netbsd-bugs
Date: 04/15/1998 09:03:18
>Number: 5295
>Category: port-mac68k
>Synopsis: eqn dumps core when compiled with -O3
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 15 07:05:00 1998
>Last-Modified:
>Originator: Frederick Bruckman
>Organization:
>Release: Apr 14, 1998
>Environment:
System: NetBSD fb.sa.enteract.com 1.3E NetBSD 1.3E (FB) #19: Tue Apr 14 12:10:33 CDT 1998 fredb@fb.sa.enteract.com:/usr/src/sys/arch/mac68k/compile/FB mac68k
>Description:
eqn dumps core, when compiled with -O3, even with no arguments.
message is:
./eqn: Failed assertion at line 87, file `text.cc'.
Abort trap (core dumped)
with -O2, no problems. All the libs, and the kernel on this system are compiled
with `-O3 -m68040 pipe'.
>How-To-Repeat:
set the CFLAGS environment variable to '-O3'
or
add `CFLAGS=-O3' to /etc/mk.conf
> cd /usr/src/gnu/usr.bin/groff/eqn ; make depend && make
> ./eqn
>Fix:
Don't do that! For `make build', I override CFLAGS in /usr/src/gnu/usr.bin/groff/eqn/makefile.
>Audit-Trail:
>Unformatted: