Feature request - a macro defined for GCC

Richard Guenther richard.guenther@gmail.com
Wed Jul 2 15:27:00 GMT 2008


On Wed, Jul 2, 2008 at 5:16 PM, Vincent Lefevre <vincent+gcc@vinc17.org> wrote:
> On 2008-07-02 10:10:32 -0400, Jack Lloyd wrote:
>> Not really, it just doesn't understand it needs to treat an empty
>> file as C... instead you have to tell it so with -x c
>
> But is there any reason why cpp assumes C as a fallback, but not gcc
> (at least with the -E option)? IMHO, this is a bit inconsistent, in
> particular if cpp is seen as a synonym for "gcc -E".

Because it's Cpp, the C preprocessor.

Richard.



More information about the Gcc mailing list