diff -pur fixincludes/fixincl.x gcc-5.5.0/fixincludes/fixincl.x
|
|
|
1 | 1 | /* -*- buffer-read-only: t -*- vi: set ro: |
2 | | * |
| 2 | * |
3 | 3 | * DO NOT EDIT THIS FILE (fixincl.x) |
4 | | * |
5 | | * It has been AutoGen-ed January 5, 2017 at 06:05:06 PM by AutoGen 5.16.2 |
| 4 | * |
| 5 | * It has been AutoGen-ed December 21, 2017 at 02:34:35 PM by AutoGen 5.18.7 |
6 | 6 | * From the definitions inclhack.def |
7 | 7 | * and the template file fixincl |
8 | 8 | */ |
9 | | /* DO NOT SVN-MERGE THIS FILE, EITHER Thu Jan 5 18:05:06 CET 2017 |
| 9 | /* DO NOT SVN-MERGE THIS FILE, EITHER Thu Dec 21 14:34:35 CET 2017 |
10 | 10 | * |
11 | 11 | * You must regenerate it. Use the ./genfixes script. |
12 | 12 | * |
… |
… |
|
15 | 15 | * certain ANSI-incompatible system header files which are fixed to work |
16 | 16 | * correctly with ANSI C and placed in a directory that GNU C will search. |
17 | 17 | * |
18 | | * This file contains 240 fixup descriptions. |
| 18 | * This file contains 241 fixup descriptions. |
19 | 19 | * |
20 | 20 | * See README for more information. |
21 | 21 | * |
… |
… |
extern \"C\" {\n\ |
2579 | 2579 | |
2580 | 2580 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2581 | 2581 | * |
| 2582 | * Description of Darwin_Osavailability fix |
| 2583 | */ |
| 2584 | tSCC zDarwin_OsavailabilityName[] = |
| 2585 | "darwin_osavailability"; |
| 2586 | |
| 2587 | /* |
| 2588 | * File name selection pattern |
| 2589 | */ |
| 2590 | tSCC zDarwin_OsavailabilityList[] = |
| 2591 | "os/availability.h\0"; |
| 2592 | /* |
| 2593 | * Machine/OS name selection pattern |
| 2594 | */ |
| 2595 | tSCC* apzDarwin_OsavailabilityMachs[] = { |
| 2596 | "*-*-darwin*", |
| 2597 | (const char*)NULL }; |
| 2598 | |
| 2599 | /* |
| 2600 | * content selection pattern - do fix if pattern found |
| 2601 | */ |
| 2602 | tSCC zDarwin_OsavailabilitySelect0[] = |
| 2603 | "#define[ \t]+__(API_[A-Z_]*)\\(\\.\\.\\.\\)"; |
| 2604 | |
| 2605 | #define DARWIN_OSAVAILABILITY_TEST_CT 1 |
| 2606 | static tTestDesc aDarwin_OsavailabilityTests[] = { |
| 2607 | { TT_EGREP, zDarwin_OsavailabilitySelect0, (regex_t*)NULL }, }; |
| 2608 | |
| 2609 | /* |
| 2610 | * Fix Command Arguments for Darwin_Osavailability |
| 2611 | */ |
| 2612 | static const char* apzDarwin_OsavailabilityPatch[] = { |
| 2613 | "format", |
| 2614 | "#define %1(...)", |
| 2615 | (char*)NULL }; |
| 2616 | |
| 2617 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2618 | * |
2582 | 2619 | * Description of Darwin_9_Long_Double_Funcs_2 fix |
2583 | 2620 | */ |
2584 | 2621 | tSCC zDarwin_9_Long_Double_Funcs_2Name[] = |
… |
… |
static const char* apzX11_SprintfPatch[] |
9818 | 9855 | * |
9819 | 9856 | * List of all fixes |
9820 | 9857 | */ |
9821 | | #define REGEX_COUNT 276 |
| 9858 | #define REGEX_COUNT 277 |
9822 | 9859 | #define MACH_LIST_SIZE_LIMIT 187 |
9823 | | #define FIX_COUNT 240 |
| 9860 | #define FIX_COUNT 241 |
9824 | 9861 | |
9825 | 9862 | /* |
9826 | 9863 | * Enumerate the fixes |
… |
… |
typedef enum { |
9885 | 9922 | CTRL_QUOTES_DEF_FIXIDX, |
9886 | 9923 | CTRL_QUOTES_USE_FIXIDX, |
9887 | 9924 | CXX_UNREADY_FIXIDX, |
| 9925 | DARWIN_OSAVAILABILITY_FIXIDX, |
9888 | 9926 | DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX, |
9889 | 9927 | DARWIN_EXTERNC_FIXIDX, |
9890 | 9928 | DARWIN_GCC4_BREAKAGE_FIXIDX, |
… |
… |
tFixDesc fixDescList[ FIX_COUNT ] = { |
10364 | 10402 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
10365 | 10403 | aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, |
10366 | 10404 | |
| 10405 | { zDarwin_OsavailabilityName, zDarwin_OsavailabilityList, |
| 10406 | apzDarwin_OsavailabilityMachs, |
| 10407 | DARWIN_OSAVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10408 | aDarwin_OsavailabilityTests, apzDarwin_OsavailabilityPatch, 0 }, |
| 10409 | |
10367 | 10410 | { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List, |
10368 | 10411 | apzDarwin_9_Long_Double_Funcs_2Machs, |
10369 | 10412 | DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
diff -pur fixincludes/inclhack.def gcc-5.5.0/fixincludes/inclhack.def
|
|
fix = { |
1337 | 1337 | test_text = "extern void* malloc( size_t );"; |
1338 | 1338 | }; |
1339 | 1339 | |
| 1340 | fix = { |
| 1341 | hackname = darwin_osavailability; |
| 1342 | mach = "*-*-darwin*"; |
| 1343 | files = os/availability.h; |
| 1344 | select = "#define[ \t]+__(API_[A-Z_]*)\\(\\.\\.\\.\\)"; |
| 1345 | c_fix = format; |
| 1346 | c_fix_arg = "#define %1(...)"; |
| 1347 | |
| 1348 | test_text = "#define __API_AVAILABLE(...)\n" |
| 1349 | "#define API_AVAILABLE(...)\n"; |
| 1350 | }; |
| 1351 | |
1340 | 1352 | /* |
1341 | 1353 | * For the AAB_darwin7_9_long_double_funcs fix to be useful, |
1342 | 1354 | * you have to not use "" includes. |