]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fixincludes: bypass the math_exception fix on __cplusplus
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 7 Jun 2024 09:05:39 +0000 (11:05 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 11 Jun 2024 05:59:41 +0000 (07:59 +0200)
fixincludes/ChangeLog:

* fixincl.x: Regenerate.
* inclhack.def (math_exception): Bypass on __cplusplus.
* tests/base/math.h: Regenerate.

fixincludes/fixincl.x
fixincludes/inclhack.def
fixincludes/tests/base/math.h

index caaff2883e00d6cf89f868cc13aa24b266aaa7bc..54a530b50ca98ac9216bff1a8cbff22407041cc7 100644 (file)
@@ -2,11 +2,11 @@
  *
  * DO NOT EDIT THIS FILE   (fixincl.x)
  *
- * It has been AutoGen-ed  June  4, 2024 at 02:35:55 PM by AutoGen 5.18.16
+ * It has been AutoGen-ed  June  7, 2024 at 11:03:58 AM by AutoGen 5.18.16
  * From the definitions    inclhack.def
  * and the template file   fixincl
  */
-/* DO NOT SVN-MERGE THIS FILE, EITHER Tue Jun  4 14:35:55 CEST 2024
+/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Jun  7 11:03:58 CEST 2024
  *
  * You must regenerate it.  Use the ./genfixes script.
  *
@@ -6793,9 +6793,7 @@ tSCC zMath_ExceptionList[] =
 /*
  *  Machine/OS name selection pattern
  */
-tSCC* apzMath_ExceptionMachs[] = {
-        "*-*-solaris2.1[0-9]*",
-        (const char*)NULL };
+#define apzMath_ExceptionMachs (const char**)NULL
 
 /*
  *  content selection pattern - do fix if pattern found
@@ -6807,7 +6805,7 @@ tSCC zMath_ExceptionSelect0[] =
  *  content bypass pattern - skip fix if pattern found
  */
 tSCC zMath_ExceptionBypass0[] =
-       "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
+       "__cplusplus";
 
 #define    MATH_EXCEPTION_TEST_CT  2
 static tTestDesc aMath_ExceptionTests[] = {
@@ -12304,7 +12302,7 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
 
   {  zMath_ExceptionName,    zMath_ExceptionList,
      apzMath_ExceptionMachs,
-     MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
+     MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
 
   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
index 35402d0621cfb8ece83e0d6b6ba4db380454020b..f7fc5cdbabdd31091a56a3d7a9578725ef29c547 100644 (file)
@@ -3412,17 +3412,7 @@ fix = {
     hackname  = math_exception;
     files     = math.h;
     select    = "struct exception";
-    /*
-     * This should be bypassed on __cplusplus, but some supposedly C++
-     * aware headers, such as Solaris 8 and 9, don't wrap their struct
-     * exception either.  So currently we bypass only for glibc, based on a
-     * comment in the fixed glibc header.  Ick.
-     */
-    bypass    = 'We have a problem when using C\+\+|for C\+\+, '
-               '_[a-z0-9A-Z_]+_exception; for C, exception';
-    /* The Solaris 10 headers already get this right.  */
-    mach   = '*-*-solaris2.1[0-9]*';
-    not_machine = true;
+    bypass    = '__cplusplus';
     c_fix     = wrap;
 
     c_fix_arg = "#ifdef __cplusplus\n"
index 7b92f29a409f31ea05ca8141e15db70ea1b829a8..3c378c5df958d34c813460c5e302791160aceb8b 100644 (file)
@@ -7,12 +7,6 @@
     This had to be done to correct non-standard usages in the
     original, manufacturer supplied header file.  */
 
-#ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
-#define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
-
-#ifdef __cplusplus
-#define exception __math_exception
-#endif
 
 
 #if defined( BROKEN_CABS_CHECK )
@@ -146,8 +140,3 @@ int foo;
 #endif /* _C99 */
 
 #endif  /* VXWORKS_MATH_H_FP_C99_CHECK */
-#ifdef __cplusplus
-#undef exception
-#endif
-
-#endif  /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */