inclhack.def (winidss_valist): Limit applicability.
authorMark Mitchell <mark@codesourcery.com>
Tue, 14 May 2002 00:33:14 +0000 (00:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 14 May 2002 00:33:14 +0000 (00:33 +0000)
* fixinc/inclhack.def (winidss_valist): Limit applicability.
* fixinc/fixincl.x: Regenerated.
* fixinc/tests/base/math.h: Update.
* fixinc/tests/base/testing.h: Likewise.

From-SVN: r53441

gcc/ChangeLog
gcc/fixinc/fixincl.x
gcc/fixinc/inclhack.def
gcc/fixinc/tests/base/math.h
gcc/fixinc/tests/base/testing.h

index e69a205..87181b4 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-13  Mark Mitchell  <mark@codesourcery.com>
+
+       * fixinc/inclhack.def (winidss_valist): Limit applicability.
+       * fixinc/fixincl.x: Regenerated.
+       * fixinc/tests/base/math.h: Update.
+       * fixinc/tests/base/testing.h: Likewise.
+
 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
 
        * genattr.c (gen_attr): Don't emit a comma after the last
index a7a3ce9..589687f 100644 (file)
@@ -5484,8 +5484,16 @@ tSCC zWindiss_ValistName[] =
 tSCC* apzWindiss_ValistMachs[] = {
         "*-*-windiss",
         (const char*)NULL };
-#define WINDISS_VALIST_TEST_CT  0
-#define aWindiss_ValistTests   (tTestDesc*)NULL
+
+/*
+ *  content selection pattern - do fix if pattern found
+ */
+tSCC zWindiss_ValistSelect0[] =
+       "(#include.*)diab/va_list.h";
+
+#define    WINDISS_VALIST_TEST_CT  1
+static tTestDesc aWindiss_ValistTests[] = {
+  { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
 
 /*
  *  Fix Command Arguments for Windiss_Valist
@@ -5664,7 +5672,7 @@ static const char* apzX11_SprintfPatch[] = {
  *
  *  List of all fixes
  */
-#define REGEX_COUNT          151
+#define REGEX_COUNT          152
 #define MACH_LIST_SIZE_LIMIT 279
 #define FIX_COUNT            145
 
index 09e6bd7..d5b5eec 100644 (file)
@@ -3337,6 +3337,7 @@ fix = {
  * WindISS headers include "diab/va_list.h" instead of "stdarg.h"
  */
 fix = {
+    select    = '(#include.*)diab/va_list.h';
     hackname  = windiss_valist;
     sed       = "s|diab/va_list.h|stdarg.h|";
     mach      = "*-*-windiss";
index 8cd8c22..4d9907c 100644 (file)
@@ -130,6 +130,16 @@ extern int matherr();
 extern double atof(const char *__nptr);
 
 #endif  /* ULTRIX_ATOF_PARAM_CHECK */
+
+
+#if defined( WINDISS_MATH1_CHECK )
+#ifndef __GNUC__
+#endif  /* WINDISS_MATH1_CHECK */
+
+
+#if defined( WINDISS_MATH2_CHECK )
+#endif /* __GNUC__ */
+#endif  /* WINDISS_MATH2_CHECK */
 #ifdef __cplusplus
 #undef exception
 #endif
index d58d611..d2393ad 100644 (file)
@@ -121,3 +121,8 @@ extern size_t
 #endif
 
 #endif  /* UNDEFINE_NULL_CHECK */
+
+
+#if defined( WINDISS_VALIST_CHECK )
+#include <stdarg.h>
+#endif  /* WINDISS_VALIST_CHECK */