]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fixincludes: add bypass to darwin_objc_runtime_1
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 10 Jul 2024 12:50:38 +0000 (14:50 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 10 Jul 2024 14:55:55 +0000 (16:55 +0200)
Headers are now fixed in the macOS 15 SDK, and the fix should be
bypassed there.

fixincludes/ChangeLog:

* fixincl.x: Regenerate.
* inclhack.def (darwin_objc_runtime_1): Add bypass.

fixincludes/fixincl.x
fixincludes/inclhack.def

index fb9950d9b21ded437b6c4c72d011aeb6323c18c9..9dc05ea17f106de0fafee7e362b268a29e2fef3f 100644 (file)
@@ -2,11 +2,11 @@
  *
  * DO NOT EDIT THIS FILE   (fixincl.x)
  *
- * It has been AutoGen-ed  June 27, 2024 at 06:52:39 PM by AutoGen 5.18.16
+ * It has been AutoGen-ed  July 10, 2024 at 02:49:05 PM by AutoGen 5.18.16
  * From the definitions    inclhack.def
  * and the template file   fixincl
  */
-/* DO NOT SVN-MERGE THIS FILE, EITHER Thu Jun 27 18:52:39 CEST 2024
+/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Jul 10 14:49:05 CEST 2024
  *
  * You must regenerate it.  Use the ./genfixes script.
  *
@@ -3124,8 +3124,15 @@ objc_enumerateClasses.*\n\
 .*\n\
 .*OBJC_REFINED_FOR_SWIFT.*";
 
-#define    DARWIN_OBJC_RUNTIME_1_TEST_CT  1
+/*
+ *  content bypass pattern - skip fix if pattern found
+ */
+tSCC zDarwin_Objc_Runtime_1Bypass0[] =
+       "#ifdef __BLOCKS__";
+
+#define    DARWIN_OBJC_RUNTIME_1_TEST_CT  2
 static tTestDesc aDarwin_Objc_Runtime_1Tests[] = {
+  { TT_NEGREP,   zDarwin_Objc_Runtime_1Bypass0, (regex_t*)NULL },
   { TT_EGREP,    zDarwin_Objc_Runtime_1Select0, (regex_t*)NULL }, };
 
 /*
@@ -11195,7 +11202,7 @@ static const char* apzX11_SprintfPatch[] = {
  *
  *  List of all fixes
  */
-#define REGEX_COUNT          317
+#define REGEX_COUNT          318
 #define MACH_LIST_SIZE_LIMIT 187
 #define FIX_COUNT            274
 
index 9f4a41199a1b920b753e1ab8a9f567624e9bb191..1ac8e335419e54c237ac073231b92b1cbd634e0d 100644 (file)
@@ -1512,6 +1512,7 @@ fix = {
        .*
        .*OBJC_REFINED_FOR_SWIFT.*
        _EOSelect_;
+  bypass    = "#ifdef __BLOCKS__";
   c_fix     = format;
   c_fix_arg = "#if __BLOCKS__\n%0\n#endif";
   test_text = <<- _OBJC_RUNTIME_1