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]

Re: Solaris 8/SPARC libgcj bootstrap broken by recent fix-header change


Rainer Orth wrote:-

> Neil Booth writes:
> 
> > Does it work if fix-header doesn't pass any -I options?  As I mention
> > in the log above, they were being passed on the command line and
> > ignored.  I "fixed" that with my patch.  It's the only thing I can see
> > of any relevance.
> > 
> > Does this patch fix it?  If not, I'd appreciate if you could investigate
> > exactly why it is fixing more than before - the decisions about what to
> > fix aren't directly affected by my patch, and I don't have a system
> > that even uses fix-header.
> 
> Unfortunately, the patch doesn't help at all.  I've instrumented
> fix-header.c (recognized_function) to print the function declarations
> scan-decls.c (scan_decls) finds: the old version (before the patch in
> question) finds a long list of declarations, kill among them:
> 
> % ./fix-header signal.h include/signal.h include/signal.h -D__STDC__=0 -D__cplusplus -Iinclude -I/usr/include

Ah, there's the clue.  We need to defer the -D switches like the front
end, since we appear to pass -D options that override built-ins.

I'll fix it in the next day or two; I'm really snowed under at the
moment.

Neil.


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