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]

RE: libstdc++-v3 build failure



Hi Robert,

> When I look in <unistd.h>, I find this horror of a construct:
>
> extern int      acct(const char *);
> #if defined(__cplusplus) && !defined(_CFRONT_3_0)
> namespace std { extern "C++" void exit(int); } using std::exit;
> #else
> extern void     exit(int);
> #endif
>
> Since g++ IS __cplusplus but isn't cfront (sigh) we pick up the former
> definition.   Is this appropriate for G++?   Should we fixinclude this
> bit of silliness away?    If so, which should we whack?

Anything you like :-).  Once you whack it, the whackery is only visible
with the matching version of the gcc compiler.  Just strip the CFRONT junk:

   select = "defined\(_CFRONT[A-Z0-9_]*\)"
   c_fix  = format;
   c_fix_arg = "0";

though you may wish to strip it differently.  :-)


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