[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#352859: cpp: -iquote behaves wrong but -I- still works correct



Jeremy Nimmer wrote:
>>The preprocessor from gcc 4.0.x behaves wrong when using the "-iquote"
>>option as recommended by a warning when using "-I-".
> 
> The documentation states:
> 
>      In addition, `-I-' inhibits the use of the directory of the current
>      file directory as the first search directory for `#include "FILE"'.
> 
> I believe that this is the behavior you are relying on.  The -iquote
> option does not do this, nor can I find an alternative switch that does
> so.

It's hard to find this sentence in the documentation -- even more since
the warning when using -I- says nothing about that and the documentation
for -iquote doesn't do so either.
But anyway, thanks for pointing this out.

> A quick google search of "site:gcc.gnu.org iquote" finds a good chunk of
> relevant information.  Please check it out.
> 
> Anyway, gcc is behaving as documented, AFAICT.  You may wish to
> re-purpose this bug as a wishlist "Please undeprecate -I-" or somesuch.

Maybe that's what I intended this bug report to be.

> Thanks,
> - Jeremy

Thank you!
- Mathias



Reply to: