Strange CPP failures

Jason R Thorpe thorpej@wasabisystems.com
Fri Jul 12 09:09:00 GMT 2002


On Thu, Jul 11, 2002 at 05:19:20PM -0700, Jason R Thorpe wrote:

 > LAST_UPDATED: Wed Jul 10 19:33:28 UTC 2002
 > 
 > Target is mipseb-unknown-netbsd
 > Host   is i386-unknown-netbsdelf

...

 > 		=== gcc tests ===
 > 
 > 
 > Running target nbsd-r4400

...

 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 92)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 102)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 120)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 127)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 137)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 147)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 157)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 170)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 178)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 186)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 199)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 203)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 231)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 239)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 247)
 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 256)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 192)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 196)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 216)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 220)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 249)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 253)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 305)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 309)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 329)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 337)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 349)
 > FAIL: gcc.dg/cpp/arith-3.c  (test for bogus messages, line 366)
 > FAIL: gcc.dg/cpp/arith-3.c (test for excess errors)

These failures happen for me on i386 native, as well.  It seems to
be related to building the new compiler with the native NetBSD
2.95.3-based compiler; a native stage3 compiler from "make boostrap"
doesn't have these failures.

A bunch of these tests that fail are testing multiple things in one
test, e.g.:

 > FAIL: gcc.dg/cpp/arith-1.c  (test for bogus messages, line 92)

is:

#if (+1 - 2) > 0 || (+1U - 2) < 0
# error         /* { dg-bogus "error" }  */
#endif

In addition to the combined test, I think it'd be useful to have two
additional tests that check each part separately; it certainly might
help figure out what the failure is.

In any case, I'm going to try and start hunting this down today (with
any luck) ... but if you have any advance insight about what the problem
might be before I dive in, I'm all ears :-)

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>



More information about the Gcc-bugs mailing list