[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#127890: gcc-3.0: ICE in gen_subprogram_die 9463



Package: gcc-3.0
Version: 1:3.0.2-4
Severity: normal

The following program bombs out on alpha:

$ gcc-3.0  -g -O2 -c a.c
a.c: In function `make_rate':
a.c:16: Internal compiler error in gen_subprogram_die, at dwarf2out.c:9463
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

It was abstracted out from drivers/atm/horizon.c in linux 2.4.17.

I've reproduced it with today's CVS gcc 3.0 branch.  However, it is fixed in
the 3.1 dev branch.

-- System Information
Debian Release: 3.0
Kernel Version: Linux gondolin 2.4.17-686-smp #2 SMP Sat Dec 22 22:00:42 EST 2001 i686 unknown

Versions of the packages gcc-3.0 depends on:
ii  binutils       2.11.92.0.12.3 The GNU assembler, linker and binary utiliti
ii  cpp-3.0        3.0.2-4        The GNU C preprocessor.
ii  gcc-3.0-base   3.0.2-4        The GNU Compiler Collection (base package).
ii  libc6          2.2.4-7        GNU C Library: Shared libraries and Timezone
ii  libgcc1        3.0.2-4        GCC support library.
--
int g(void);

static int make_rate(unsigned c, unsigned actual) {
	unsigned br = g() ? 5000000 : 4000000;

	int set_cr(void) {
		actual = br;
		return 0;
	}

	if (!c) {
		return 0;
	}

	return set_cr();
}



Reply to: