This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Feature request - a macro defined for GCC
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.