This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/54281] New: [4.8 Regression] Fails to bootstrap with --disable-nls


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]