This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Miscellaneous testsuitsuite failures under hpux 10.20


> 4) warning: The C standard requires whitespace after #define __STDC_EXT__^M
> 
> Running /xxx/gnu/gcc-2.96/gcc/testsuite/gcc.c-torture/special/special.exp ...
> Executing on host: /xxx/gnu/gcc-2.96/objdir/gcc/xgcc -B/xxx/gnu/gcc-2.96/objdir/gcc/ /xxx/gnu/gcc-2.96/gcc/testsuite/gcc.c-torture/special/981006-1.c  -Wuninitialized -O2 -fpic  -S  -threads -o 981006-1.s    (timeout = 300)
> <command line>: warning: The C standard requires whitespace after #define __STDC_EXT__^M
> output is:
> <command line>: warning: The C standard requires whitespace after #define __STDC_EXT__^M
> 
> PASS: gcc.c-torture/special/981006-1.c  (test for bogus messages, line 11)
> PASS: gcc.c-torture/special/981006-1.c  (test for bogus messages, line 12)
> FAIL: gcc.c-torture/special/981006-1.c (test for excess errors)
> Excess errors:
> <command line>: warning: The C standard requires whitespace after #define __STDC_EXT__

The following patch to the CPP_SPEC in pa.h fixes the problem.  It occurs
only with -threads.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2000-06-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>

	* pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.

--- pa.h.orig	Tue Jun 20 12:30:08 2000
+++ pa.h	Tue Jun 20 20:43:00 2000
@@ -312,8 +312,8 @@
 %{!mpa-risc-1-0:%{!mpa-risc-1-1:%{!mpa-risc-2-0:%{!msnake:%(cpp_cpu_default)}}}} \
 %{m64bit:%(cpp_64bit)} \
 %{!m64bit:%(cpp_64bit_default)} \
-%{!ansi: -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__}\
-%{threads:-D_REENTRANT -D_DCE_THREADS}"
+%{!ansi: -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__} \
+%{threads: -D_REENTRANT -D_DCE_THREADS}"
 
 /* Defines for a K&R CC */
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]