This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22044] New: internal compiler error using __builtin_va_list
- From: "olaf at bonorden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2005 11:51:49 -0000
- Subject: [Bug c/22044] New: internal compiler error using __builtin_va_list
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiler output:
----------
mcore-gcc -I../include -mbig-endian -nostdlib -Wa,-EB -fno-builtin test.c -c
test.c: In function 'abort':
test.c:14: error: unrecognizable insn:
(insn 11 9 12 1 (set (reg:SI 26 [ D.767 ])
(const:SI (plus:SI (symbol_ref:SI ("_Files") <var_decl 0x401b1dec
_Files>)
(const_int 2 [0x2])))) -1 (nil)
(nil))
test.c:14: internal compiler error: in extract_insn, at recog.c:2082
----------
source code:
typedef struct { char dummy; } FILE;
extern int vfprintf (FILE *, const char *, __builtin_va_list);
extern FILE _Files[3];
void abort( const char* format, ... ) {
__builtin_va_list args;
__builtin_va_start((args),(format));
vfprintf( (_Files + 2), format, args );
__builtin_va_end(args);
}
-------
compiler:
Using built-in specs.
Target: mcore-be-elf
Configured with: ../configure --target=mcore-be-elf --prefix=/opt/mcore
--program-prefix=mcore- --mandir=/opt/mcore/man --infodir=/opt/mcore/info
--enable-languages=c --with-included-gettext --disable-nls i586-suse-linux
Thread model: single
gcc version 4.1.0 20050613 (experimental)
-----
--
Summary: internal compiler error using __builtin_va_list
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olaf at bonorden dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-suse-linux
GCC host triplet: i586-suse-linux
GCC target triplet: mcore-be-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22044