This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Another weird CPP result
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Jul 2002 20:40:07 -0700
- Subject: Another weird CPP result
- Organization: Wasabi Systems, Inc.
- References: <20020716024341.3B1E17DA4@yeah-baby.shagadelic.org>
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>