This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/54281] New: [4.8 Regression] Fails to bootstrap with --disable-nls
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Aug 2012 10:57:46 +0000
- Subject: [Bug bootstrap/54281] New: [4.8 Regression] Fails to bootstrap with --disable-nls
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54281
Bug #: 54281
Summary: [4.8 Regression] Fails to bootstrap with --disable-nls
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
With --disable-nls intl.h does
#ifdef ENABLE_NLS
#include <libintl.h>
extern void gcc_init_libintl (void);
extern size_t gcc_gettext_width (const char *);
#else
/* Stubs. */
# undef textdomain
# define textdomain(domain) (domain)
# undef bindtextdomain
# define bindtextdomain(domain, directory) (domain)
# undef gettext
# define gettext(msgid) (msgid)
which wrecks an included libintl.h:
extern char *(__const char *__msgid) throw () __attribute__
((__format_arg__ (1)));
and g++ rightfully complains.
We end up including libintl.h through
gcc/double-int.h
#include <gmp.h>
#include <iosfwd> (here from GCC 4.1)
#include <bits/c++locale.h>
#include <libintl.h>