aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixincl.x
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2001-05-25 21:36:08 +0000
committerRichard Henderson <rth@gcc.gnu.org>2001-05-25 14:36:08 -0700
commita26c3bb59317a6518c2b9b3854bc664657f36216 (patch)
treeb1a2c30c2a7aded201df738360daeab353748b35 /gcc/fixinc/fixincl.x
parenta88072eb43e3fdaba206d8685782ebad4743f641 (diff)
downloadgcc-a26c3bb59317a6518c2b9b3854bc664657f36216.zip
gcc-a26c3bb59317a6518c2b9b3854bc664657f36216.tar.gz
gcc-a26c3bb59317a6518c2b9b3854bc664657f36216.tar.bz2
inclhack.def (strict_ansi_not, [...]): Don't run if stdc_0_in_system_headers.
* fixinc/inclhack.def (strict_ansi_not, strict_ansi_not_ctd, strict_ansi_only): Don't run if stdc_0_in_system_headers. * fixinc/fixincl.x: Regenerate. * fixinc/fixtests.c (stdc_0_in_system_headers_test): New function. (FIX_TEST_TABLE): Declare it. * fixinc/fixlib.h: Include config.h. From-SVN: r42593
Diffstat (limited to 'gcc/fixinc/fixincl.x')
-rw-r--r--gcc/fixinc/fixincl.x24
1 files changed, 21 insertions, 3 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index e0321de..15087ae 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -3700,8 +3700,14 @@ tSCC zStrict_Ansi_NotName[] =
tSCC zStrict_Ansi_NotSelect0[] =
"^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)(.*)";
-#define STRICT_ANSI_NOT_TEST_CT 1
+/*
+ * perform the C function call test
+ */
+tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
+
+#define STRICT_ANSI_NOT_TEST_CT 2
static tTestDesc aStrict_Ansi_NotTests[] = {
+ { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
{ TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
/*
@@ -3736,8 +3742,14 @@ tSCC zStrict_Ansi_Not_CtdList[] =
tSCC zStrict_Ansi_Not_CtdSelect0[] =
"^([ \t]*[|&][|&][ \t(]*)(__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)(.*)";
-#define STRICT_ANSI_NOT_CTD_TEST_CT 1
+/*
+ * perform the C function call test
+ */
+tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
+
+#define STRICT_ANSI_NOT_CTD_TEST_CT 2
static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
+ { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
{ TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
/*
@@ -3771,8 +3783,14 @@ tSCC zStrict_Ansi_OnlyName[] =
tSCC zStrict_Ansi_OnlySelect0[] =
"^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)(.*)";
-#define STRICT_ANSI_ONLY_TEST_CT 1
+/*
+ * perform the C function call test
+ */
+tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
+
+#define STRICT_ANSI_ONLY_TEST_CT 2
static tTestDesc aStrict_Ansi_OnlyTests[] = {
+ { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
{ TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
/*