[RFC] GCC caret diagnostics

Andi Kleen andi@firstfloor.org
Sat Mar 8 17:11:00 GMT 2008


Ian Lance Taylor <iant@google.com> writes:

>Another approach would be to only use the carets for parse errors,
>which is where they are the most helpful.  

And preprocessor if possible

[also sometimes I would love to have an option in gcc to just
display the preprocessed input when something bad happens inside
a macro. I usually do that from hand using gcc -E, but it would be cool
if the compiler could do it automatically, ideally with carets]

> What do other compilers do?  Reopening the file doesn't work for
> standard input, which I admit is an unusual case.

I think it would be reasonable to just not display the carets 
if the input is not seekable. Surely qemu doesn't need carets 
for once.

-Andi



More information about the Gcc mailing list