c/7026: sparc V9 -mflat -g appears not working
tau@logos.t.u-tokyo.ac.jp
tau@logos.t.u-tokyo.ac.jp
Fri Jun 14 01:50:00 GMT 2002
>Number: 7026
>Category: c
>Synopsis: compiler dies with "internal compiler error"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 13 17:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Kenjiro Taura
>Release: 3.2
>Organization:
University of Tokyo
>Environment:
System: SunOS jaguar 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-Enterprise
Architecture: sun4
host: sparcv9-sun-solaris2
build: sparcv9-sun-solaris2
target: sparcv9-sun-solaris2
configured with: ../gcc-3.0.4/configure --prefix=/home/tau/local/SunOS-5.8-sparc/bin sparcv9-sun-solaris
>Description:
when the attached file is compiled with "gcc -v -temp-save -g -mflat -Wall os.c", gcc dies with the following output:
gcc -v -save-temps -g -mflat -Wall os.c
Reading specs from /home/tau/local/gcc-3.1-64-install/lib/gcc-lib/sparcv9-sun-s\
olaris2/3.2/specs
Configured with: ../gcc/configure --prefix=/home/tau/local/gcc-3.1-64-install -\
-enable-languages=c,c++ sparcv9-sun-solaris2
Thread model: posix
gcc version 3.2 20020613 (experimental)
/home/tau/local/gcc-3.1-64-install/lib/gcc-lib/sparcv9-sun-solaris2/3.2/cc1 -E\
-quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -Dsparc -Dsu\
n -Dunix -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc__ -D__sun__ \
-D__unix__ -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc -D__sun -D\
__unix -Asystem=unix -Asystem=svr4 -D__arch64__ -Acpu=sparc64 -Amachine=sparcv9\
-D__sparcv9 os.c -Wall -mflat os.i
ignoring nonexistent directory "/home/tau/local/gcc-3.1-64-install/sparcv9-sun-\
solaris2/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/tau/local/gcc-3.1-64-install/include
/home/tau/local/gcc-3.1-64-install/lib/gcc-lib/sparcv9-sun-solaris2/3.2/includ\
e
/usr/include
End of search list.
/home/tau/local/gcc-3.1-64-install/lib/gcc-lib/sparcv9-sun-solaris2/3.2/cc1 -f\
preprocessed os.i -quiet -dumpbase os.c -mflat -g -Wall -version -o os.s
GNU C version 3.2 20020613 (experimental) (sparcv9-sun-solaris2)
compiled by GNU C version 2.95.2 19991024 (release).
os.c: In function `f':
os.c:6: internal compiler error: Internal compiler error in reg_save, at dwarf2\
out.c:796
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
the above file "os.c" is a small file that includes nothing. Here it is:
void g();
void f()
{
g();
}
configure options appear above.
>Fix:
I have not examined how to fix it for now.
The only workarounds which I know of right now are either (1) do not use -mflat, or (2) do not use -g (in this particular case). if we remove either of them, the compiler no longer dies.
I really need '-mflat' option, so I would appreciate if it is fixed soon.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list