Another weird CPP result

Andrew Pinski pinskia@physics.uc.edu
Mon Jul 15 21:36:00 GMT 2002


I also see this on i686-pc-linux-gnu and on i686-unknown-openbsd3.1.

Thanks,
Andrew Pinski
On Monday, July 15, 2002, at 11:40 , Jason R Thorpe wrote:

> On Mon, Jul 15, 2002 at 07:43:41PM -0700, Jason R Thorpe wrote:
>
>> LAST_UPDATED: Sun Jul 14 19:58:09 UTC 2002
>>
>> Native configuration is sparc-unknown-netbsdelf
>
> ...
>
>> 		=== gcc tests ===
>>
>>
>> Running target unix
>
> ...
>
>> FAIL: cmdlne-dM-M.c: #define line not printed
>
> I'm not really sure what's supposed to happen with this test case.  If
> I run the test-case as dejagnu does, the resulting file contains:
>
> ss20-1:thorpej 19$ cat cmdlne-dM-M.i
> cmdlne-dM-M.o:  \
>  /amd/yeah-baby/u1/hack/gnu-
> toolchain/gcc/gcc/gcc/testsuite/gcc.dg/cpp/cmdlne-dM-M.c
> ss20-1:thorpej 20$
>
> However, if I remove the "-o cmdlne-dM-M.i" from the command, 
> and let it
> go to stdout, I see:
>
> #define __CHAR_BIT__ 8
> #define __sparc 1
> #define __SIZE_TYPE__ long unsigned int
> #define __ELF__ 1
> #define __GNUC_PATCHLEVEL__ 0
> #define __SHRT_MAX__ 32767
> #define __LONG_MAX__ 2147483647L
> #define __SCHAR_MAX__ 127
> #define __USER_LABEL_PREFIX__
> #define __STDC_HOSTED__ 1
> #define funlike(like) fun like
> #define __NetBSD__ 1
> #define __WCHAR_TYPE__ int
> #define __INT_MAX__ 2147483647
> #define __WINT_TYPE__ int
> #define __GNUC__ 3
> #define __GCC_NEW_VARARGS__ 1
> #define __LONG_LONG_MAX__ 9223372036854775807LL
> #define __sparc__ 1
> #define __GNUC_MINOR__ 2
> #define __PTRDIFF_TYPE__ long int
> #define __REGISTER_PREFIX__
> #define foo bar
> #define __NO_INLINE__ 1
> #define __VERSION__ "3.2 20020714 (experimental)"
> cmdlne-dM-M.o:  \
>  /amd/yeah-baby/u1/hack/gnu-
> toolchain/gcc/gcc/gcc/testsuite/gcc.dg/cpp/cmdlne-dM-M.c
> ss20-1:thorpej 21$
>
> I'm not really sure what's going on, here.  What is GCC doing 
> differently
> when it gets the -o?
>
> --
>         -- Jason R. Thorpe <thorpej@wasabisystems.com>
>
>



More information about the Gcc-bugs mailing list