This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2783: -ggdb -O1 -finline-functions causes "Internal compiler error"
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2783: -ggdb -O1 -finline-functions causes "Internal compiler error"
- From: stiletto at mediaone dot net
- Date: 9 May 2001 03:20:10 -0000
- Reply-To: stiletto at mediaone dot net
>Number: 2783
>Category: c
>Synopsis: -ggdb -O1 -finline-functions causes "Internal compiler error"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 08 20:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: stiletto@mediaone.net
>Release: GNU C version 2.95.3 19991030 (prerelease) (i586-mandrake-linux) compiled by GNU C version 2.95.3 19991030 (prerelease).
>Organization:
>Environment:
i586-mandrake-linux
>Description:
Using -ggdb -O1 and -finline-functions on this small file causes the compiler to barf. Removing any one of those three options works around the problem.
Here's a minimal reproduction scenario, gccbug.i:
# 1 "gccbug.c"
void foo() {
struct bar *fubar;
}
Here's the full compiler output:
$ gcc -v -save-temps -ggdb -O1 -finline-functions -c gccbug.c
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__ -ggdb -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ gccbug.c gccbug.i
GNU CPP version 2.95.3 19991030 (prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../i586-mandrake-linux/include
End of omitted list.
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/cc1 gccbug.i -quiet -dumpbase gccbug.c -ggdb -O1 -version -finline-functions -o gccbug.s
GNU C version 2.95.3 19991030 (prerelease) (i586-mandrake-linux) compiled by GNU C version 2.95.3 19991030 (prerelease).
gccbug.c: In function `foo':
gccbug.c:5: Internal compiler error in `gen_tagged_type_instantiation_die', at dwarf2out.c:9308
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Just compile with all three of the abovementioned options.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: