This is the mail archive of the gcc@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: tree-ssa-cvs corrupt


Zack Weinberg wrote:-

> Neil Booth <neil@daikokuya.co.uk> writes:
> 
> >> > A distant voice on the wind whispers "#error ..."
> >> > 
> >> The wind replies "we still try to compile the file anyway ..."
> >
> > Yeah, #error should stop compilation like the standard requires.  I've
> > never gotten round to fixing it.  CPP would need a way to stop it lexing
> > any more tokens (not too hard), and a way to signal to the front end to
> > not do any more work.
> 
> The trouble is that #error causes cpplib's parse_in.errors to be
> bumped, but that doesn't propagate back to errorcount until
> cpp_finish() is called, from c_common_finish.
> 
> We can't just change that line you quoted to
> 
>   if (errorcount || sorrycount || cpp_errors (&parse_in))
> 
> because that will screw over non-C front ends.  Ideas?

Merge the diagnostic handlers.

Neil.


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