This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/41996] New: lto-elf.c fails to compile on IRIX 6.5
- From: "ro at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2009 17:11:57 -0000
- Subject: [Bug bootstrap/41996] New: lto-elf.c fails to compile on IRIX 6.5
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Current mainline as of 20091106 fails to compile on IRIX 6.5:
/vol/gcc/src/gcc-dist/gcc/lto/lto-elf.c: In function 'lto_elf_file_open':
/vol/gcc/src/gcc-dist/gcc/lto/lto-elf.c:561:28: error: expected ')' before
'PRId64'
cc1: warnings being treated as errors
/vol/gcc/src/gcc-dist/gcc/lto/lto-elf.c:561:28: error: spurious trailing '%' in
format
make[3]: *** [lto/lto-elf.o] Error 1
This was introduced by this patch:
2009-11-04 Richard Guenther <rguenther@suse.de>
Rafael Avila de Espindola <espindola@google.com>
* lto-elf.c (lto_elf_build_section_table): Add the base offset.
(lto_elf_file_open): Handle offsets in arguments name@offest.
This happens because IRIX 6.5 <inttypes.h> provides the PRI* macros only in C99
mode, i.e. with -std=c99.
Perhaps one could use both the config/inttypes-pri.m4 autoconf test and the
code
in intl/loadmsgcat.c to work around this?
--
Summary: lto-elf.c fails to compile on IRIX 6.5
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
GCC build triplet: mips-sgi-irix6.5
GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41996