authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-02 19:43:38-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-02 19:43:38-07:00
logd631bfe0601bbe3b9bfd1ce2c2d0cad90997221f
treead0401bac06da868df738f6e4e503fe74b89c5d6
parentc75226d03356f33df698d5e5a74173476bd47240

update clang CLI options to LLVM 15


2 files changed, 292 insertions(+), 33 deletions(-)

src/clang_options_data.zig+274-21
...@@ -137,7 +137,9 @@ flagpd1("Wframe-larger-than"),...@@ -137,7 +137,9 @@ flagpd1("Wframe-larger-than"),
137flagpd1("Wlarge-by-value-copy"),137flagpd1("Wlarge-by-value-copy"),
138flagpd1("Wno-deprecated"),138flagpd1("Wno-deprecated"),
139flagpd1("Wno-rewrite-macros"),139flagpd1("Wno-rewrite-macros"),
140flagpd1("Wno-system-headers"),
140flagpd1("Wno-write-strings"),141flagpd1("Wno-write-strings"),
142flagpd1("Wsystem-headers"),
141flagpd1("Wwrite-strings"),143flagpd1("Wwrite-strings"),
142flagpd1("X"),144flagpd1("X"),
143sepd1("Xanalyzer"),145sepd1("Xanalyzer"),
...@@ -235,14 +237,6 @@ sepd1("Zlinker-input"),...@@ -235,14 +237,6 @@ sepd1("Zlinker-input"),
235 .pd2 = false,237 .pd2 = false,
236 .psl = true,238 .psl = true,
237},239},
238.{
239 .name = "FA",
240 .syntax = .flag,
241 .zig_equivalent = .other,
242 .pd1 = true,
243 .pd2 = false,
244 .psl = true,
245},
246.{240.{
247 .name = "FC",241 .name = "FC",
248 .syntax = .flag,242 .syntax = .flag,
...@@ -531,6 +525,14 @@ sepd1("Zlinker-input"),...@@ -531,6 +525,14 @@ sepd1("Zlinker-input"),
531 .pd2 = false,525 .pd2 = false,
532 .psl = true,526 .psl = true,
533},527},
528.{
529 .name = "JMC-",
530 .syntax = .flag,
531 .zig_equivalent = .other,
532 .pd1 = true,
533 .pd2 = false,
534 .psl = true,
535},
534.{536.{
535 .name = "LD",537 .name = "LD",
536 .syntax = .flag,538 .syntax = .flag,
...@@ -1036,6 +1038,14 @@ flagpsl("MT"),...@@ -1036,6 +1038,14 @@ flagpsl("MT"),
1036 .pd2 = false,1038 .pd2 = false,
1037 .psl = true,1039 .psl = true,
1038},1040},
1041.{
1042 .name = "Zc:wchar_t-",
1043 .syntax = .flag,
1044 .zig_equivalent = .other,
1045 .pd1 = true,
1046 .pd2 = false,
1047 .psl = true,
1048},
1039.{1049.{
1040 .name = "Ze",1050 .name = "Ze",
1041 .syntax = .flag,1051 .syntax = .flag,
...@@ -1196,6 +1206,46 @@ flagpsl("MT"),...@@ -1196,6 +1206,46 @@ flagpsl("MT"),
1196 .pd2 = false,1206 .pd2 = false,
1197 .psl = true,1207 .psl = true,
1198},1208},
1209.{
1210 .name = "external:W0",
1211 .syntax = .flag,
1212 .zig_equivalent = .other,
1213 .pd1 = true,
1214 .pd2 = false,
1215 .psl = true,
1216},
1217.{
1218 .name = "external:W1",
1219 .syntax = .flag,
1220 .zig_equivalent = .other,
1221 .pd1 = true,
1222 .pd2 = false,
1223 .psl = true,
1224},
1225.{
1226 .name = "external:W2",
1227 .syntax = .flag,
1228 .zig_equivalent = .other,
1229 .pd1 = true,
1230 .pd2 = false,
1231 .psl = true,
1232},
1233.{
1234 .name = "external:W3",
1235 .syntax = .flag,
1236 .zig_equivalent = .other,
1237 .pd1 = true,
1238 .pd2 = false,
1239 .psl = true,
1240},
1241.{
1242 .name = "external:W4",
1243 .syntax = .flag,
1244 .zig_equivalent = .other,
1245 .pd1 = true,
1246 .pd2 = false,
1247 .psl = true,
1248},
1199.{1249.{
1200 .name = "fp:except",1250 .name = "fp:except",
1201 .syntax = .flag,1251 .syntax = .flag,
...@@ -2206,6 +2256,8 @@ flagpd1("shared-libasan"),...@@ -2206,6 +2256,8 @@ flagpd1("shared-libasan"),
2206 .pd2 = false,2256 .pd2 = false,
2207 .psl = true,2257 .psl = true,
2208},2258},
2259flagpd1("fdiagnostics-color"),
2260flagpd1("fno-diagnostics-color"),
2209flagpd1("frecord-gcc-switches"),2261flagpd1("frecord-gcc-switches"),
2210flagpd1("fno-record-gcc-switches"),2262flagpd1("fno-record-gcc-switches"),
2211flagpd1("fident"),2263flagpd1("fident"),
...@@ -2378,6 +2430,8 @@ flagpd1("dD"),...@@ -2378,6 +2430,8 @@ flagpd1("dD"),
2378flagpd1("dI"),2430flagpd1("dI"),
2379flagpd1("dM"),2431flagpd1("dM"),
2380flagpd1("d"),2432flagpd1("d"),
2433sepd1("darwin-target-variant"),
2434sepd1("darwin-target-variant-triple"),
2381flagpd1("dead_strip"),2435flagpd1("dead_strip"),
2382flagpd1("debug-forward-template-params"),2436flagpd1("debug-forward-template-params"),
2383flagpd1("debug-info-macro"),2437flagpd1("debug-info-macro"),
...@@ -2394,7 +2448,6 @@ flagpd1("disable-lifetime-markers"),...@@ -2394,7 +2448,6 @@ flagpd1("disable-lifetime-markers"),
2394flagpd1("disable-llvm-optzns"),2448flagpd1("disable-llvm-optzns"),
2395flagpd1("disable-llvm-passes"),2449flagpd1("disable-llvm-passes"),
2396flagpd1("disable-llvm-verifier"),2450flagpd1("disable-llvm-verifier"),
2397flagpd1("disable-noundef-analysis"),
2398flagpd1("disable-objc-default-synthesize-properties"),2451flagpd1("disable-objc-default-synthesize-properties"),
2399flagpd1("disable-pragma-debug-crash"),2452flagpd1("disable-pragma-debug-crash"),
2400flagpd1("disable-red-zone"),2453flagpd1("disable-red-zone"),
...@@ -2410,6 +2463,14 @@ sepd1("dwarf-debug-flags"),...@@ -2410,6 +2463,14 @@ sepd1("dwarf-debug-flags"),
2410sepd1("dwarf-debug-producer"),2463sepd1("dwarf-debug-producer"),
2411flagpd1("dwarf-explicit-import"),2464flagpd1("dwarf-explicit-import"),
2412flagpd1("dwarf-ext-refs"),2465flagpd1("dwarf-ext-refs"),
2466.{
2467 .name = "hlsl-no-stdinc",
2468 .syntax = .flag,
2469 .zig_equivalent = .other,
2470 .pd1 = true,
2471 .pd2 = false,
2472 .psl = true,
2473},
2413sepd1("dylib_file"),2474sepd1("dylib_file"),
2414flagpd1("dylinker"),2475flagpd1("dylinker"),
2415flagpd1("dynamic"),2476flagpd1("dynamic"),
...@@ -2424,7 +2485,9 @@ flagpd1("dynamic"),...@@ -2424,7 +2485,9 @@ flagpd1("dynamic"),
2424flagpd1("ehcontguard"),2485flagpd1("ehcontguard"),
2425flagpd1("emit-ast"),2486flagpd1("emit-ast"),
2426flagpd1("emit-codegen-only"),2487flagpd1("emit-codegen-only"),
2488flagpd1("emit-fir"),
2427flagpd1("emit-header-module"),2489flagpd1("emit-header-module"),
2490flagpd1("emit-header-unit"),
2428flagpd1("emit-html"),2491flagpd1("emit-html"),
2429flagpd1("emit-interface-stubs"),2492flagpd1("emit-interface-stubs"),
2430.{2493.{
...@@ -2439,10 +2502,19 @@ flagpd1("emit-llvm-bc"),...@@ -2439,10 +2502,19 @@ flagpd1("emit-llvm-bc"),
2439flagpd1("emit-llvm-only"),2502flagpd1("emit-llvm-only"),
2440flagpd1("emit-llvm-uselists"),2503flagpd1("emit-llvm-uselists"),
2441flagpd1("emit-merged-ifs"),2504flagpd1("emit-merged-ifs"),
2505flagpd1("emit-mlir"),
2442flagpd1("emit-module"),2506flagpd1("emit-module"),
2443flagpd1("emit-module-interface"),2507flagpd1("emit-module-interface"),
2444flagpd1("emit-obj"),2508flagpd1("emit-obj"),
2445flagpd1("emit-pch"),2509flagpd1("emit-pch"),
2510.{
2511 .name = "emit-pristine-llvm",
2512 .syntax = .flag,
2513 .zig_equivalent = .other,
2514 .pd1 = true,
2515 .pd2 = false,
2516 .psl = true,
2517},
2446.{2518.{
2447 .name = "emit-static-lib",2519 .name = "emit-static-lib",
2448 .syntax = .flag,2520 .syntax = .flag,
...@@ -2451,6 +2523,15 @@ flagpd1("emit-pch"),...@@ -2451,6 +2523,15 @@ flagpd1("emit-pch"),
2451 .pd2 = true,2523 .pd2 = true,
2452 .psl = false,2524 .psl = false,
2453},2525},
2526.{
2527 .name = "enable-16bit-types",
2528 .syntax = .flag,
2529 .zig_equivalent = .other,
2530 .pd1 = true,
2531 .pd2 = false,
2532 .psl = true,
2533},
2534flagpd1("enable-noundef-analysis"),
2454flagpd1("enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang"),2535flagpd1("enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang"),
2455.{2536.{
2456 .name = "end-no-unused-arguments",2537 .name = "end-no-unused-arguments",
...@@ -2501,6 +2582,7 @@ flagpd1("falternative-parameter-statement"),...@@ -2501,6 +2582,7 @@ flagpd1("falternative-parameter-statement"),
2501flagpd1("faltivec"),2582flagpd1("faltivec"),
2502flagpd1("fanalyzed-objects-for-unparse"),2583flagpd1("fanalyzed-objects-for-unparse"),
2503flagpd1("fkeep-inline-functions"),2584flagpd1("fkeep-inline-functions"),
2585flagpd1("funit-at-a-time"),
2504flagpd1("fansi-escape-codes"),2586flagpd1("fansi-escape-codes"),
2505flagpd1("fapple-kext"),2587flagpd1("fapple-kext"),
2506flagpd1("fapple-link-rtlib"),2588flagpd1("fapple-link-rtlib"),
...@@ -2558,6 +2640,14 @@ flagpd1("fcaller-saves"),...@@ -2558,6 +2640,14 @@ flagpd1("fcaller-saves"),
2558},2640},
2559sepd1("fcaret-diagnostics-max-lines"),2641sepd1("fcaret-diagnostics-max-lines"),
2560flagpd1("fcf-protection"),2642flagpd1("fcf-protection"),
2643.{
2644 .name = "fcgl",
2645 .syntax = .flag,
2646 .zig_equivalent = .other,
2647 .pd1 = true,
2648 .pd2 = false,
2649 .psl = true,
2650},
2561flagpd1("fchar8_t"),2651flagpd1("fchar8_t"),
2562flagpd1("fcheck-array-temporaries"),2652flagpd1("fcheck-array-temporaries"),
2563.{2653.{
...@@ -2601,6 +2691,7 @@ flagpd1("fdebug-dump-all"),...@@ -2601,6 +2691,7 @@ flagpd1("fdebug-dump-all"),
2601flagpd1("fdebug-dump-parse-tree"),2691flagpd1("fdebug-dump-parse-tree"),
2602flagpd1("fdebug-dump-parse-tree-no-sema"),2692flagpd1("fdebug-dump-parse-tree-no-sema"),
2603flagpd1("fdebug-dump-parsing-log"),2693flagpd1("fdebug-dump-parsing-log"),
2694flagpd1("fdebug-dump-pft"),
2604flagpd1("fdebug-dump-provenance"),2695flagpd1("fdebug-dump-provenance"),
2605flagpd1("fdebug-dump-symbols"),2696flagpd1("fdebug-dump-symbols"),
2606flagpd1("fdebug-info-for-profiling"),2697flagpd1("fdebug-info-for-profiling"),
...@@ -2631,7 +2722,6 @@ flagpd1("fdeprecated-macro"),...@@ -2631,7 +2722,6 @@ flagpd1("fdeprecated-macro"),
2631flagpd1("fdevirtualize"),2722flagpd1("fdevirtualize"),
2632flagpd1("fdevirtualize-speculatively"),2723flagpd1("fdevirtualize-speculatively"),
2633flagpd1("fdiagnostics-absolute-paths"),2724flagpd1("fdiagnostics-absolute-paths"),
2634flagpd1("fdiagnostics-color"),
2635flagpd1("fdiagnostics-fixit-info"),2725flagpd1("fdiagnostics-fixit-info"),
2636sepd1("fdiagnostics-format"),2726sepd1("fdiagnostics-format"),
2637flagpd1("fdiagnostics-parseable-fixits"),2727flagpd1("fdiagnostics-parseable-fixits"),
...@@ -2643,11 +2733,13 @@ flagpd1("fdiagnostics-show-option"),...@@ -2643,11 +2733,13 @@ flagpd1("fdiagnostics-show-option"),
2643flagpd1("fdiagnostics-show-template-tree"),2733flagpd1("fdiagnostics-show-template-tree"),
2644flagpd1("fdigraphs"),2734flagpd1("fdigraphs"),
2645flagpd1("fdirect-access-external-data"),2735flagpd1("fdirect-access-external-data"),
2736flagpd1("fdirectives-only"),
2646flagpd1("fdisable-module-hash"),2737flagpd1("fdisable-module-hash"),
2647flagpd1("fdiscard-value-names"),2738flagpd1("fdiscard-value-names"),
2648flagpd1("fdollar-ok"),2739flagpd1("fdollar-ok"),
2649flagpd1("fdollars-in-identifiers"),2740flagpd1("fdollars-in-identifiers"),
2650flagpd1("fdouble-square-bracket-attributes"),2741flagpd1("fdouble-square-bracket-attributes"),
2742flagpd1("fdriver-only"),
2651flagpd1("fdump-fortran-optimized"),2743flagpd1("fdump-fortran-optimized"),
2652flagpd1("fdump-fortran-original"),2744flagpd1("fdump-fortran-original"),
2653flagpd1("fdump-parse-tree"),2745flagpd1("fdump-parse-tree"),
...@@ -2672,6 +2764,7 @@ sepd1("ferror-limit"),...@@ -2672,6 +2764,7 @@ sepd1("ferror-limit"),
2672flagpd1("fescaping-block-tail-calls"),2764flagpd1("fescaping-block-tail-calls"),
2673flagpd1("fexceptions"),2765flagpd1("fexceptions"),
2674flagpd1("fexperimental-isel"),2766flagpd1("fexperimental-isel"),
2767flagpd1("fexperimental-library"),
2675flagpd1("fexperimental-new-constant-interpreter"),2768flagpd1("fexperimental-new-constant-interpreter"),
2676flagpd1("fexperimental-new-pass-manager"),2769flagpd1("fexperimental-new-pass-manager"),
2677flagpd1("fexperimental-relative-c++-abi-vtables"),2770flagpd1("fexperimental-relative-c++-abi-vtables"),
...@@ -2683,6 +2776,7 @@ flagpd1("ffake-address-space-map"),...@@ -2683,6 +2776,7 @@ flagpd1("ffake-address-space-map"),
2683flagpd1("ffast-math"),2776flagpd1("ffast-math"),
2684flagpd1("ffat-lto-objects"),2777flagpd1("ffat-lto-objects"),
2685flagpd1("fcheck-new"),2778flagpd1("fcheck-new"),
2779flagpd1("ffile-reproducible"),
2686flagpd1("fimplicit-modules-use-lock"),2780flagpd1("fimplicit-modules-use-lock"),
2687flagpd1("ffine-grained-bitfield-accesses"),2781flagpd1("ffine-grained-bitfield-accesses"),
2688flagpd1("ffinite-loops"),2782flagpd1("ffinite-loops"),
...@@ -2786,6 +2880,7 @@ flagpd1("fhalf-no-semantic-interposition"),...@@ -2786,6 +2880,7 @@ flagpd1("fhalf-no-semantic-interposition"),
2786flagpd1("fheinous-gnu-extensions"),2880flagpd1("fheinous-gnu-extensions"),
2787flagpd1("fhip-dump-offload-linker-script"),2881flagpd1("fhip-dump-offload-linker-script"),
2788flagpd1("fhip-fp32-correctly-rounded-divide-sqrt"),2882flagpd1("fhip-fp32-correctly-rounded-divide-sqrt"),
2883flagpd1("fhip-kernel-arg-name"),
2789flagpd1("fhip-new-launch-api"),2884flagpd1("fhip-new-launch-api"),
2790flagpd1("fhonor-infinities"),2885flagpd1("fhonor-infinities"),
2791flagpd1("fhonor-nans"),2886flagpd1("fhonor-nans"),
...@@ -2811,6 +2906,7 @@ flagpd1("finstrument-functions-after-inlining"),...@@ -2811,6 +2906,7 @@ flagpd1("finstrument-functions-after-inlining"),
2811flagpd1("finteger-4-integer-8"),2906flagpd1("finteger-4-integer-8"),
2812flagpd1("fintegrated-as"),2907flagpd1("fintegrated-as"),
2813flagpd1("fintegrated-cc1"),2908flagpd1("fintegrated-cc1"),
2909flagpd1("fintegrated-objemitter"),
2814sepd1("fintrinsic-modules-path"),2910sepd1("fintrinsic-modules-path"),
2815flagpd1("fipa-cp"),2911flagpd1("fipa-cp"),
2816flagpd1("fivopts"),2912flagpd1("fivopts"),
...@@ -2819,12 +2915,13 @@ flagpd1("fix-what-you-can"),...@@ -2819,12 +2915,13 @@ flagpd1("fix-what-you-can"),
2819flagpd1("fixit"),2915flagpd1("fixit"),
2820flagpd1("fixit-recompile"),2916flagpd1("fixit-recompile"),
2821flagpd1("fixit-to-temporary"),2917flagpd1("fixit-to-temporary"),
2918flagpd1("fjmc"),
2822flagpd1("fjump-tables"),2919flagpd1("fjump-tables"),
2823flagpd1("fkeep-static-consts"),2920flagpd1("fkeep-static-consts"),
2921flagpd1("flang-experimental-exec"),
2824flagpd1("flarge-sizes"),2922flagpd1("flarge-sizes"),
2825flagpd1("flat_namespace"),2923flagpd1("flat_namespace"),
2826flagpd1("flax-vector-conversions"),2924flagpd1("flax-vector-conversions"),
2827flagpd1("flegacy-pass-manager"),
2828flagpd1("flimit-debug-info"),2925flagpd1("flimit-debug-info"),
2829flagpd1("flogical-abbreviations"),2926flagpd1("flogical-abbreviations"),
2830.{2927.{
...@@ -2849,6 +2946,8 @@ flagpd1("fmerge-functions"),...@@ -2849,6 +2946,8 @@ flagpd1("fmerge-functions"),
2849flagpd1("fminimize-whitespace"),2946flagpd1("fminimize-whitespace"),
2850sepd1("fmodule-feature"),2947sepd1("fmodule-feature"),
2851flagpd1("fmodule-file-deps"),2948flagpd1("fmodule-file-deps"),
2949flagpd1("fmodule-file-home-is-cwd"),
2950flagpd1("fmodule-header"),
2852sepd1("fmodule-implementation-of"),2951sepd1("fmodule-implementation-of"),
2853flagpd1("fmodule-map-file-home-is-cwd"),2952flagpd1("fmodule-map-file-home-is-cwd"),
2854flagpd1("fmodule-maps"),2953flagpd1("fmodule-maps"),
...@@ -2873,6 +2972,7 @@ flagpd1("fmodulo-sched-allow-regmoves"),...@@ -2873,6 +2972,7 @@ flagpd1("fmodulo-sched-allow-regmoves"),
2873flagpd1("fms-compatibility"),2972flagpd1("fms-compatibility"),
2874flagpd1("fms-extensions"),2973flagpd1("fms-extensions"),
2875flagpd1("fms-hotpatch"),2974flagpd1("fms-hotpatch"),
2975flagpd1("fms-kernel"),
2876flagpd1("fms-volatile"),2976flagpd1("fms-volatile"),
2877flagpd1("fmudflap"),2977flagpd1("fmudflap"),
2878flagpd1("fmudflapth"),2978flagpd1("fmudflapth"),
...@@ -2912,6 +3012,7 @@ flagpd1("fno-allow-editor-placeholders"),...@@ -2912,6 +3012,7 @@ flagpd1("fno-allow-editor-placeholders"),
2912flagpd1("fno-altivec"),3012flagpd1("fno-altivec"),
2913flagpd1("fno-analyzed-objects-for-unparse"),3013flagpd1("fno-analyzed-objects-for-unparse"),
2914flagpd1("fno-keep-inline-functions"),3014flagpd1("fno-keep-inline-functions"),
3015flagpd1("fno-unit-at-a-time"),
2915flagpd1("fno-apple-pragma-pack"),3016flagpd1("fno-apple-pragma-pack"),
2916flagpd1("fno-application-extension"),3017flagpd1("fno-application-extension"),
2917flagpd1("fno-approx-func"),3018flagpd1("fno-approx-func"),
...@@ -2961,7 +3062,6 @@ flagpd1("fno-check-array-temporaries"),...@@ -2961,7 +3062,6 @@ flagpd1("fno-check-array-temporaries"),
2961},3062},
2962flagpd1("fno-common"),3063flagpd1("fno-common"),
2963flagpd1("fno-complete-member-pointers"),3064flagpd1("fno-complete-member-pointers"),
2964flagpd1("fno-concept-satisfaction-caching"),
2965flagpd1("fno-const-strings"),3065flagpd1("fno-const-strings"),
2966flagpd1("fno-constant-cfstrings"),3066flagpd1("fno-constant-cfstrings"),
2967flagpd1("fno-coroutines-ts"),3067flagpd1("fno-coroutines-ts"),
...@@ -2990,7 +3090,6 @@ flagpd1("fno-delete-null-pointer-checks"),...@@ -2990,7 +3090,6 @@ flagpd1("fno-delete-null-pointer-checks"),
2990flagpd1("fno-deprecated-macro"),3090flagpd1("fno-deprecated-macro"),
2991flagpd1("fno-devirtualize"),3091flagpd1("fno-devirtualize"),
2992flagpd1("fno-devirtualize-speculatively"),3092flagpd1("fno-devirtualize-speculatively"),
2993flagpd1("fno-diagnostics-color"),
2994flagpd1("fno-diagnostics-fixit-info"),3093flagpd1("fno-diagnostics-fixit-info"),
2995flagpd1("fno-diagnostics-show-hotness"),3094flagpd1("fno-diagnostics-show-hotness"),
2996flagpd1("fno-diagnostics-show-note-include-stack"),3095flagpd1("fno-diagnostics-show-note-include-stack"),
...@@ -2998,6 +3097,7 @@ flagpd1("fno-diagnostics-show-option"),...@@ -2998,6 +3097,7 @@ flagpd1("fno-diagnostics-show-option"),
2998flagpd1("fno-diagnostics-use-presumed-location"),3097flagpd1("fno-diagnostics-use-presumed-location"),
2999flagpd1("fno-digraphs"),3098flagpd1("fno-digraphs"),
3000flagpd1("fno-direct-access-external-data"),3099flagpd1("fno-direct-access-external-data"),
3100flagpd1("fno-directives-only"),
3001flagpd1("fno-discard-value-names"),3101flagpd1("fno-discard-value-names"),
3002flagpd1("fno-dllexport-inlines"),3102flagpd1("fno-dllexport-inlines"),
3003flagpd1("fno-dollar-ok"),3103flagpd1("fno-dollar-ok"),
...@@ -3016,13 +3116,14 @@ flagpd1("fno-emulated-tls"),...@@ -3016,13 +3116,14 @@ flagpd1("fno-emulated-tls"),
3016flagpd1("fno-escaping-block-tail-calls"),3116flagpd1("fno-escaping-block-tail-calls"),
3017flagpd1("fno-exceptions"),3117flagpd1("fno-exceptions"),
3018flagpd1("fno-experimental-isel"),3118flagpd1("fno-experimental-isel"),
3019flagpd1("fno-experimental-new-pass-manager"),3119flagpd1("fno-experimental-library"),
3020flagpd1("fno-experimental-relative-c++-abi-vtables"),3120flagpd1("fno-experimental-relative-c++-abi-vtables"),
3021flagpd1("fno-external-blas"),3121flagpd1("fno-external-blas"),
3022flagpd1("fno-f2c"),3122flagpd1("fno-f2c"),
3023flagpd1("fno-fast-math"),3123flagpd1("fno-fast-math"),
3024flagpd1("fno-fat-lto-objects"),3124flagpd1("fno-fat-lto-objects"),
3025flagpd1("fno-check-new"),3125flagpd1("fno-check-new"),
3126flagpd1("fno-file-reproducible"),
3026flagpd1("fno-implicit-modules-use-lock"),3127flagpd1("fno-implicit-modules-use-lock"),
3027flagpd1("fno-fine-grained-bitfield-accesses"),3128flagpd1("fno-fine-grained-bitfield-accesses"),
3028flagpd1("fno-finite-loops"),3129flagpd1("fno-finite-loops"),
...@@ -3061,6 +3162,7 @@ flagpd1("fno-gpu-flush-denormals-to-zero"),...@@ -3061,6 +3162,7 @@ flagpd1("fno-gpu-flush-denormals-to-zero"),
3061flagpd1("fno-gpu-rdc"),3162flagpd1("fno-gpu-rdc"),
3062flagpd1("fno-gpu-sanitize"),3163flagpd1("fno-gpu-sanitize"),
3063flagpd1("fno-hip-fp32-correctly-rounded-divide-sqrt"),3164flagpd1("fno-hip-fp32-correctly-rounded-divide-sqrt"),
3165flagpd1("fno-hip-kernel-arg-name"),
3064flagpd1("fno-hip-new-launch-api"),3166flagpd1("fno-hip-new-launch-api"),
3065flagpd1("fno-honor-infinities"),3167flagpd1("fno-honor-infinities"),
3066flagpd1("fno-honor-nans"),3168flagpd1("fno-honor-nans"),
...@@ -3077,10 +3179,13 @@ flagpd1("fno-inline-small-functions"),...@@ -3077,10 +3179,13 @@ flagpd1("fno-inline-small-functions"),
3077flagpd1("fno-integer-4-integer-8"),3179flagpd1("fno-integer-4-integer-8"),
3078flagpd1("fno-integrated-as"),3180flagpd1("fno-integrated-as"),
3079flagpd1("fno-integrated-cc1"),3181flagpd1("fno-integrated-cc1"),
3182flagpd1("fno-integrated-objemitter"),
3080flagpd1("fno-ipa-cp"),3183flagpd1("fno-ipa-cp"),
3081flagpd1("fno-ivopts"),3184flagpd1("fno-ivopts"),
3185flagpd1("fno-jmc"),
3082flagpd1("fno-jump-tables"),3186flagpd1("fno-jump-tables"),
3083flagpd1("fno-keep-static-consts"),3187flagpd1("fno-keep-static-consts"),
3188flagpd1("fno-knr-functions"),
3084flagpd1("fno-lax-vector-conversions"),3189flagpd1("fno-lax-vector-conversions"),
3085flagpd1("fno-legacy-pass-manager"),3190flagpd1("fno-legacy-pass-manager"),
3086flagpd1("fno-limit-debug-info"),3191flagpd1("fno-limit-debug-info"),
...@@ -3145,6 +3250,7 @@ flagpd1("fno-openmp-cuda-force-full-runtime"),...@@ -3145,6 +3250,7 @@ flagpd1("fno-openmp-cuda-force-full-runtime"),
3145flagpd1("fno-openmp-cuda-mode"),3250flagpd1("fno-openmp-cuda-mode"),
3146flagpd1("fno-openmp-extensions"),3251flagpd1("fno-openmp-extensions"),
3147flagpd1("fno-openmp-implicit-rpath"),3252flagpd1("fno-openmp-implicit-rpath"),
3253flagpd1("fno-openmp-new-driver"),
3148flagpd1("fno-openmp-optimistic-collapse"),3254flagpd1("fno-openmp-optimistic-collapse"),
3149flagpd1("fno-openmp-simd"),3255flagpd1("fno-openmp-simd"),
3150flagpd1("fno-openmp-target-debug"),3256flagpd1("fno-openmp-target-debug"),
...@@ -3227,6 +3333,7 @@ flagpd1("fno-rtlib-add-rpath"),...@@ -3227,6 +3333,7 @@ flagpd1("fno-rtlib-add-rpath"),
3227flagpd1("fno-rtti"),3333flagpd1("fno-rtti"),
3228flagpd1("fno-rtti-data"),3334flagpd1("fno-rtti-data"),
3229flagpd1("fno-rwpi"),3335flagpd1("fno-rwpi"),
3336flagpd1("fno-sanitize-address-globals-dead-stripping"),
3230flagpd1("fno-sanitize-address-outline-instrumentation"),3337flagpd1("fno-sanitize-address-outline-instrumentation"),
3231flagpd1("fno-sanitize-address-poison-custom-array-cookie"),3338flagpd1("fno-sanitize-address-poison-custom-array-cookie"),
3232flagpd1("fno-sanitize-address-use-after-scope"),3339flagpd1("fno-sanitize-address-use-after-scope"),
...@@ -3311,7 +3418,6 @@ flagpd1("fno-underscoring"),...@@ -3311,7 +3418,6 @@ flagpd1("fno-underscoring"),
3311flagpd1("fno-unique-basic-block-section-names"),3418flagpd1("fno-unique-basic-block-section-names"),
3312flagpd1("fno-unique-internal-linkage-names"),3419flagpd1("fno-unique-internal-linkage-names"),
3313flagpd1("fno-unique-section-names"),3420flagpd1("fno-unique-section-names"),
3314flagpd1("fno-unit-at-a-time"),
3315flagpd1("fno-unroll-all-loops"),3421flagpd1("fno-unroll-all-loops"),
3316flagpd1("fno-unroll-loops"),3422flagpd1("fno-unroll-loops"),
3317flagpd1("fno-unsafe-loop-optimizations"),3423flagpd1("fno-unsafe-loop-optimizations"),
...@@ -3392,6 +3498,7 @@ flagpd1("foffload-lto"),...@@ -3392,6 +3498,7 @@ flagpd1("foffload-lto"),
3392},3498},
3393flagpd1("fopenacc"),3499flagpd1("fopenacc"),
3394flagpd1("fopenmp"),3500flagpd1("fopenmp"),
3501flagpd1("fopenmp-assume-no-thread-state"),
3395flagpd1("fopenmp-assume-teams-oversubscription"),3502flagpd1("fopenmp-assume-teams-oversubscription"),
3396flagpd1("fopenmp-assume-threads-oversubscription"),3503flagpd1("fopenmp-assume-threads-oversubscription"),
3397flagpd1("fopenmp-cuda-force-full-runtime"),3504flagpd1("fopenmp-cuda-force-full-runtime"),
...@@ -3402,6 +3509,7 @@ sepd1("fopenmp-host-ir-file-path"),...@@ -3402,6 +3509,7 @@ sepd1("fopenmp-host-ir-file-path"),
3402flagpd1("fopenmp-implicit-rpath"),3509flagpd1("fopenmp-implicit-rpath"),
3403flagpd1("fopenmp-is-device"),3510flagpd1("fopenmp-is-device"),
3404flagpd1("fopenmp-new-driver"),3511flagpd1("fopenmp-new-driver"),
3512flagpd1("fopenmp-offload-mandatory"),
3405flagpd1("fopenmp-optimistic-collapse"),3513flagpd1("fopenmp-optimistic-collapse"),
3406flagpd1("fopenmp-relocatable-target"),3514flagpd1("fopenmp-relocatable-target"),
3407flagpd1("fopenmp-simd"),3515flagpd1("fopenmp-simd"),
...@@ -3624,7 +3732,6 @@ flagpd1("funderscoring"),...@@ -3624,7 +3732,6 @@ flagpd1("funderscoring"),
3624flagpd1("funique-basic-block-section-names"),3732flagpd1("funique-basic-block-section-names"),
3625flagpd1("funique-internal-linkage-names"),3733flagpd1("funique-internal-linkage-names"),
3626flagpd1("funique-section-names"),3734flagpd1("funique-section-names"),
3627flagpd1("funit-at-a-time"),
3628flagpd1("funknown-anytype"),3735flagpd1("funknown-anytype"),
3629flagpd1("funroll-all-loops"),3736flagpd1("funroll-all-loops"),
3630flagpd1("funroll-loops"),3737flagpd1("funroll-loops"),
...@@ -3809,6 +3916,7 @@ flagpd1("m68060"),...@@ -3809,6 +3916,7 @@ flagpd1("m68060"),
3809flagpd1("m80387"),3916flagpd1("m80387"),
3810m("mseses"),3917m("mseses"),
3811flagpd1("mabi=ieeelongdouble"),3918flagpd1("mabi=ieeelongdouble"),
3919flagpd1("mabi=quadword-atomics"),
3812flagpd1("mabi=vec-default"),3920flagpd1("mabi=vec-default"),
3813flagpd1("mabi=vec-extabi"),3921flagpd1("mabi=vec-extabi"),
3814flagpd1("mabicalls"),3922flagpd1("mabicalls"),
...@@ -3872,7 +3980,6 @@ m("mcumode"),...@@ -3872,7 +3980,6 @@ m("mcumode"),
3872m("mcx16"),3980m("mcx16"),
3873sepd1("mdebug-pass"),3981sepd1("mdebug-pass"),
3874m("mdirect-move"),3982m("mdirect-move"),
3875flagpd1("mdisable-tail-calls"),
3876flagpd1("mdouble-float"),3983flagpd1("mdouble-float"),
3877m("mdsp"),3984m("mdsp"),
3878m("mdspr2"),3985m("mdspr2"),
...@@ -3886,6 +3993,7 @@ flagpd1("menable-unsafe-fp-math"),...@@ -3886,6 +3993,7 @@ flagpd1("menable-unsafe-fp-math"),
3886m("menqcmd"),3993m("menqcmd"),
3887m("mexception-handling"),3994m("mexception-handling"),
3888m("mexecute-only"),3995m("mexecute-only"),
3996flagpd1("mextended-const"),
3889flagpd1("mextern-sdata"),3997flagpd1("mextern-sdata"),
3890m("mf16c"),3998m("mf16c"),
3891flagpd1("mfancy-math-387"),3999flagpd1("mfancy-math-387"),
...@@ -3894,6 +4002,8 @@ flagpd1("mfix4300"),...@@ -3894,6 +4002,8 @@ flagpd1("mfix4300"),
3894flagpd1("mfix-and-continue"),4002flagpd1("mfix-and-continue"),
3895m("mfix-cmse-cve-2021-35465"),4003m("mfix-cmse-cve-2021-35465"),
3896m("mfix-cortex-a53-835769"),4004m("mfix-cortex-a53-835769"),
4005flagpd1("mfix-cortex-a57-aes-1742098"),
4006flagpd1("mfix-cortex-a72-aes-1655431"),
3897m("mfloat128"),4007m("mfloat128"),
3898sepd1("mfloat-abi"),4008sepd1("mfloat-abi"),
3899m("mfma"),4009m("mfma"),
...@@ -3972,6 +4082,7 @@ m("mmemops"),...@@ -3972,6 +4082,7 @@ m("mmemops"),
3972flagpd1("mmfcrf"),4082flagpd1("mmfcrf"),
3973m("mmfocrf"),4083m("mmfocrf"),
3974m("mmicromips"),4084m("mmicromips"),
4085sepd1("mmlir"),
3975m("mmma"),4086m("mmma"),
3976m("mmmx"),4087m("mmmx"),
3977m("mmovbe"),4088m("mmovbe"),
...@@ -4042,10 +4153,13 @@ m("mno-enqcmd"),...@@ -4042,10 +4153,13 @@ m("mno-enqcmd"),
4042m("mno-exception-handling"),4153m("mno-exception-handling"),
4043flagpd1("mnoexecstack"),4154flagpd1("mnoexecstack"),
4044m("mno-execute-only"),4155m("mno-execute-only"),
4156flagpd1("mno-extended-const"),
4045flagpd1("mno-extern-sdata"),4157flagpd1("mno-extern-sdata"),
4046m("mno-f16c"),4158m("mno-f16c"),
4047m("mno-fix-cmse-cve-2021-35465"),4159m("mno-fix-cmse-cve-2021-35465"),
4048m("mno-fix-cortex-a53-835769"),4160m("mno-fix-cortex-a53-835769"),
4161flagpd1("mno-fix-cortex-a57-aes-1742098"),
4162flagpd1("mno-fix-cortex-a72-aes-1655431"),
4049m("mno-float128"),4163m("mno-float128"),
4050m("mno-fma"),4164m("mno-fma"),
4051m("mno-fma4"),4165m("mno-fma4"),
...@@ -4123,6 +4237,7 @@ m("mno-prfchw"),...@@ -4123,6 +4237,7 @@ m("mno-prfchw"),
4123m("mno-ptwrite"),4237m("mno-ptwrite"),
4124flagpd1("mno-pure-code"),4238flagpd1("mno-pure-code"),
4125m("mno-rdpid"),4239m("mno-rdpid"),
4240flagpd1("mno-rdpru"),
4126m("mno-rdrnd"),4241m("mno-rdrnd"),
4127m("mno-rdseed"),4242m("mno-rdseed"),
4128.{4243.{
...@@ -4204,7 +4319,6 @@ m("mnvj"),...@@ -4204,7 +4319,6 @@ m("mnvj"),
4204m("mnvs"),4319m("mnvs"),
4205flagpd1("modd-spreg"),4320flagpd1("modd-spreg"),
4206sepd1("module-dependency-dir"),4321sepd1("module-dependency-dir"),
4207sepd1("module-dir"),
4208flagpd1("module-file-deps"),4322flagpd1("module-file-deps"),
4209flagpd1("module-file-info"),4323flagpd1("module-file-info"),
4210sepd1("module-suffix"),4324sepd1("module-suffix"),
...@@ -4233,6 +4347,7 @@ m("mptwrite"),...@@ -4233,6 +4347,7 @@ m("mptwrite"),
4233flagpd1("mpure-code"),4347flagpd1("mpure-code"),
4234flagpd1("mqdsp6-compat"),4348flagpd1("mqdsp6-compat"),
4235m("mrdpid"),4349m("mrdpid"),
4350flagpd1("mrdpru"),
4236m("mrdrnd"),4351m("mrdrnd"),
4237m("mrdseed"),4352m("mrdseed"),
4238flagpd1("mreassociate"),4353flagpd1("mreassociate"),
...@@ -4369,6 +4484,7 @@ flagpd1("no-cpp-precomp"),...@@ -4369,6 +4484,7 @@ flagpd1("no-cpp-precomp"),
4369 .psl = false,4484 .psl = false,
4370},4485},
4371flagpd1("no-emit-llvm-uselists"),4486flagpd1("no-emit-llvm-uselists"),
4487flagpd1("no-enable-noundef-analysis"),
4372.{4488.{
4373 .name = "no-gpu-bundle-output",4489 .name = "no-gpu-bundle-output",
4374 .syntax = .flag,4490 .syntax = .flag,
...@@ -4377,6 +4493,7 @@ flagpd1("no-emit-llvm-uselists"),...@@ -4377,6 +4493,7 @@ flagpd1("no-emit-llvm-uselists"),
4377 .pd2 = true,4493 .pd2 = true,
4378 .psl = false,4494 .psl = false,
4379},4495},
4496flagpd1("no-hip-rt"),
4380flagpd1("no-implicit-float"),4497flagpd1("no-implicit-float"),
4381.{4498.{
4382 .name = "no-integrated-cpp",4499 .name = "no-integrated-cpp",
...@@ -4386,6 +4503,15 @@ flagpd1("no-implicit-float"),...@@ -4386,6 +4503,15 @@ flagpd1("no-implicit-float"),
4386 .pd2 = true,4503 .pd2 = true,
4387 .psl = false,4504 .psl = false,
4388},4505},
4506.{
4507 .name = "no-offload-new-driver",
4508 .syntax = .flag,
4509 .zig_equivalent = .other,
4510 .pd1 = false,
4511 .pd2 = true,
4512 .psl = false,
4513},
4514flagpd1("no-opaque-pointers"),
4389.{4515.{
4390 .name = "no-pedantic",4516 .name = "no-pedantic",
4391 .syntax = .flag,4517 .syntax = .flag,
...@@ -4408,6 +4534,7 @@ flagpd1("no-struct-path-tbaa"),...@@ -4408,6 +4534,7 @@ flagpd1("no-struct-path-tbaa"),
4408flagpd1("nobuiltininc"),4534flagpd1("nobuiltininc"),
4409flagpd1("nocpp"),4535flagpd1("nocpp"),
4410flagpd1("nodefaultlibs"),4536flagpd1("nodefaultlibs"),
4537flagpd1("nodriverkitlib"),
4411flagpd1("nofixprebinding"),4538flagpd1("nofixprebinding"),
4412flagpd1("nogpuinc"),4539flagpd1("nogpuinc"),
4413flagpd1("nogpulib"),4540flagpd1("nogpulib"),
...@@ -4491,6 +4618,47 @@ flagpd1("objcmt-ns-nonatomic-iosonly"),...@@ -4491,6 +4618,47 @@ flagpd1("objcmt-ns-nonatomic-iosonly"),
4491flagpd1("objcmt-returns-innerpointer-property"),4618flagpd1("objcmt-returns-innerpointer-property"),
4492flagpd1("object"),4619flagpd1("object"),
4493sepd1("object-file-name"),4620sepd1("object-file-name"),
4621.{
4622 .name = "offload-device-only",
4623 .syntax = .flag,
4624 .zig_equivalent = .other,
4625 .pd1 = false,
4626 .pd2 = true,
4627 .psl = false,
4628},
4629.{
4630 .name = "offload-host-device",
4631 .syntax = .flag,
4632 .zig_equivalent = .other,
4633 .pd1 = false,
4634 .pd2 = true,
4635 .psl = false,
4636},
4637.{
4638 .name = "offload-host-only",
4639 .syntax = .flag,
4640 .zig_equivalent = .other,
4641 .pd1 = false,
4642 .pd2 = true,
4643 .psl = false,
4644},
4645.{
4646 .name = "offload-link",
4647 .syntax = .flag,
4648 .zig_equivalent = .other,
4649 .pd1 = false,
4650 .pd2 = true,
4651 .psl = false,
4652},
4653.{
4654 .name = "offload-new-driver",
4655 .syntax = .flag,
4656 .zig_equivalent = .other,
4657 .pd1 = false,
4658 .pd2 = true,
4659 .psl = false,
4660},
4661flagpd1("opaque-pointers"),
4494sepd1("opt-record-file"),4662sepd1("opt-record-file"),
4495sepd1("opt-record-format"),4663sepd1("opt-record-format"),
4496sepd1("opt-record-passes"),4664sepd1("opt-record-passes"),
...@@ -4546,6 +4714,14 @@ flagpd1("prebind"),...@@ -4546,6 +4714,14 @@ flagpd1("prebind"),
4546flagpd1("prebind_all_twolevel_modules"),4714flagpd1("prebind_all_twolevel_modules"),
4547flagpd1("preload"),4715flagpd1("preload"),
4548flagpd1("print-dependency-directives-minimized-source"),4716flagpd1("print-dependency-directives-minimized-source"),
4717.{
4718 .name = "print-diagnostic-options",
4719 .syntax = .flag,
4720 .zig_equivalent = .other,
4721 .pd1 = true,
4722 .pd2 = true,
4723 .psl = false,
4724},
4549.{4725.{
4550 .name = "print-effective-triple",4726 .name = "print-effective-triple",
4551 .syntax = .flag,4727 .syntax = .flag,
...@@ -4940,6 +5116,7 @@ joinpd1("fsanitize-undefined-strip-path-components="),...@@ -4940,6 +5116,7 @@ joinpd1("fsanitize-undefined-strip-path-components="),
4940joinpd1("fopenmp-cuda-teams-reduction-recs-num="),5116joinpd1("fopenmp-cuda-teams-reduction-recs-num="),
4941joinpd1("fvisibility-externs-nodllstorageclass="),5117joinpd1("fvisibility-externs-nodllstorageclass="),
4942joinpd1("analyzer-config-compatibility-mode="),5118joinpd1("analyzer-config-compatibility-mode="),
5119joinpd1("mdefault-visibility-export-mapping="),
4943joinpd1("fsanitize-address-use-after-return="),5120joinpd1("fsanitize-address-use-after-return="),
4944.{5121.{
4945 .name = "fsanitize-address-use-after-return",5122 .name = "fsanitize-address-use-after-return",
...@@ -4949,9 +5126,12 @@ joinpd1("fsanitize-address-use-after-return="),...@@ -4949,9 +5126,12 @@ joinpd1("fsanitize-address-use-after-return="),
4949 .pd2 = false,5126 .pd2 = false,
4950 .psl = true,5127 .psl = true,
4951},5128},
5129joinpd1("darwin-target-variant-sdk-version="),
4952joinpd1("ftrivial-auto-var-init-stop-after="),5130joinpd1("ftrivial-auto-var-init-stop-after="),
4953joinpd1("fverify-debuginfo-preserve-export="),5131joinpd1("fverify-debuginfo-preserve-export="),
5132joinpd1("fdiagnostics-misexpect-tolerance="),
4954joinpd1("fpatchable-function-entry-offset="),5133joinpd1("fpatchable-function-entry-offset="),
5134joinpd1("fprofile-selected-function-group="),
4955joinpd1("analyzer-inline-max-stack-depth="),5135joinpd1("analyzer-inline-max-stack-depth="),
4956joinpd1("fsanitize-address-field-padding="),5136joinpd1("fsanitize-address-field-padding="),
4957.{5137.{
...@@ -4963,6 +5143,7 @@ joinpd1("fsanitize-address-field-padding="),...@@ -4963,6 +5143,7 @@ joinpd1("fsanitize-address-field-padding="),
4963 .psl = true,5143 .psl = true,
4964},5144},
4965joinpd1("fdiagnostics-hotness-threshold="),5145joinpd1("fdiagnostics-hotness-threshold="),
5146joinpd1("fexperimental-max-bitint-width="),
4966joinpd1("fsanitize-memory-track-origins="),5147joinpd1("fsanitize-memory-track-origins="),
4967joinpd1("mwatchos-simulator-version-min="),5148joinpd1("mwatchos-simulator-version-min="),
4968joinpd1("fsanitize-coverage-ignorelist="),5149joinpd1("fsanitize-coverage-ignorelist="),
...@@ -4971,6 +5152,7 @@ joinpd1("fvisibility-nodllstorageclass="),...@@ -4971,6 +5152,7 @@ joinpd1("fvisibility-nodllstorageclass="),
4971joinpd1("fxray-selected-function-group="),5152joinpd1("fxray-selected-function-group="),
4972joinpd1("mappletvsimulator-version-min="),5153joinpd1("mappletvsimulator-version-min="),
4973joinpd1("mstack-protector-guard-offset="),5154joinpd1("mstack-protector-guard-offset="),
5155joinpd1("mstack-protector-guard-symbol="),
4974.{5156.{
4975 .name = "sourceDependencies:directives",5157 .name = "sourceDependencies:directives",
4976 .syntax = .joined_or_separate,5158 .syntax = .joined_or_separate,
...@@ -4979,16 +5161,17 @@ joinpd1("mstack-protector-guard-offset="),...@@ -4979,16 +5161,17 @@ joinpd1("mstack-protector-guard-offset="),
4979 .pd2 = false,5161 .pd2 = false,
4980 .psl = true,5162 .psl = true,
4981},5163},
5164joinpd1("miphonesimulator-version-min="),
4982joinpd1("fsanitize-coverage-whitelist="),5165joinpd1("fsanitize-coverage-whitelist="),
4983joinpd1("fsanitize-coverage-blacklist="),5166joinpd1("fsanitize-coverage-blacklist="),
4984joinpd1("fobjc-nonfragile-abi-version="),5167joinpd1("fobjc-nonfragile-abi-version="),
4985joinpd1("fprofile-instrument-use-path="),5168joinpd1("fprofile-instrument-use-path="),
4986joinpd1("fsanitize-coverage-allowlist="),5169joinpd1("fsanitize-coverage-allowlist="),
4987jspd1("fxray-instrumentation-bundle="),5170jspd1("fxray-instrumentation-bundle="),
4988joinpd1("miphonesimulator-version-min="),
4989joinpd1("fsanitize-address-destructor="),5171joinpd1("fsanitize-address-destructor="),
4990joinpd1("faddress-space-map-mangling="),5172joinpd1("faddress-space-map-mangling="),
4991joinpd1("foptimization-record-passes="),5173joinpd1("foptimization-record-passes="),
5174joinpd1("frandomize-layout-seed-file="),
4992joinpd1("fsanitize-system-ignorelist="),5175joinpd1("fsanitize-system-ignorelist="),
4993joinpd1("ftest-module-file-extension="),5176joinpd1("ftest-module-file-extension="),
4994jspd1("fxray-instruction-threshold="),5177jspd1("fxray-instruction-threshold="),
...@@ -5000,6 +5183,14 @@ jspd1("fxray-instruction-threshold="),...@@ -5000,6 +5183,14 @@ jspd1("fxray-instruction-threshold="),
5000 .pd2 = true,5183 .pd2 = true,
5001 .psl = false,5184 .psl = false,
5002},5185},
5186.{
5187 .name = "libomptarget-amdgpu-bc-path=",
5188 .syntax = .joined,
5189 .zig_equivalent = .other,
5190 .pd1 = false,
5191 .pd2 = true,
5192 .psl = false,
5193},
5003joinpd1("mno-default-build-attributes"),5194joinpd1("mno-default-build-attributes"),
5004joinpd1("mtvos-simulator-version-min="),5195joinpd1("mtvos-simulator-version-min="),
5005joinpd1("mwatchsimulator-version-min="),5196joinpd1("mwatchsimulator-version-min="),
...@@ -5065,6 +5256,7 @@ joinpd1("objcmt-allowlist-dir-path="),...@@ -5065,6 +5256,7 @@ joinpd1("objcmt-allowlist-dir-path="),
5065joinpd1("Wno-nonportable-cfstrings"),5256joinpd1("Wno-nonportable-cfstrings"),
5066joinpd1("analyzer-disable-checker="),5257joinpd1("analyzer-disable-checker="),
5067joinpd1("fbuild-session-timestamp="),5258joinpd1("fbuild-session-timestamp="),
5259joinpd1("fprofile-function-groups="),
5068joinpd1("fprofile-instrument-path="),5260joinpd1("fprofile-instrument-path="),
5069joinpd1("mdefault-build-attributes"),5261joinpd1("mdefault-build-attributes"),
5070joinpd1("msign-return-address-key="),5262joinpd1("msign-return-address-key="),
...@@ -5136,6 +5328,7 @@ joinpd1("ffp-exception-behavior="),...@@ -5136,6 +5328,7 @@ joinpd1("ffp-exception-behavior="),
5136joinpd1("fmacro-backtrace-limit="),5328joinpd1("fmacro-backtrace-limit="),
5137joinpd1("fmax-array-constructor="),5329joinpd1("fmax-array-constructor="),
5138joinpd1("fprofile-exclude-files="),5330joinpd1("fprofile-exclude-files="),
5331joinpd1("frandomize-layout-seed="),
5139joinpd1("ftrivial-auto-var-init="),5332joinpd1("ftrivial-auto-var-init="),
5140jspd1("fxray-never-instrument="),5333jspd1("fxray-never-instrument="),
5141joinpd1("gsimple-template-names="),5334joinpd1("gsimple-template-names="),
...@@ -5144,6 +5337,7 @@ joinpd1("malign-branch-boundary="),...@@ -5144,6 +5337,7 @@ joinpd1("malign-branch-boundary="),
5144joinpd1("mappletvos-version-min="),5337joinpd1("mappletvos-version-min="),
5145joinpd1("mstack-protector-guard="),5338joinpd1("mstack-protector-guard="),
5146joinpd1("Wnonportable-cfstrings"),5339joinpd1("Wnonportable-cfstrings"),
5340joinpd1("miphoneos-version-min="),
5147joinpd1("fbasic-block-sections="),5341joinpd1("fbasic-block-sections="),
5148joinpd1("fdefault-calling-conv="),5342joinpd1("fdefault-calling-conv="),
5149joinpd1("fdenormal-fp-math-f32="),5343joinpd1("fdenormal-fp-math-f32="),
...@@ -5164,10 +5358,10 @@ joinpd1("fobjc-dispatch-method="),...@@ -5164,10 +5358,10 @@ joinpd1("fobjc-dispatch-method="),
5164joinpd1("foperator-arrow-depth="),5358joinpd1("foperator-arrow-depth="),
5165joinpd1("fprebuilt-module-path="),5359joinpd1("fprebuilt-module-path="),
5166joinpd1("fprofile-filter-files="),5360joinpd1("fprofile-filter-files="),
5361joinpd1("fsanitize-memtag-mode="),
5167joinpd1("fspell-checking-limit="),5362joinpd1("fspell-checking-limit="),
5168joinpd1("fvisibility-dllexport="),5363joinpd1("fvisibility-dllexport="),
5169joinpd1("fxray-function-groups="),5364joinpd1("fxray-function-groups="),
5170joinpd1("miphoneos-version-min="),
5171joinpd1("msmall-data-threshold="),5365joinpd1("msmall-data-threshold="),
5172joinpd1("Wlarge-by-value-copy="),5366joinpd1("Wlarge-by-value-copy="),
5173joinpd1("analyzer-constraints="),5367joinpd1("analyzer-constraints="),
...@@ -5187,6 +5381,7 @@ joinpd1("fmodules-prune-after="),...@@ -5187,6 +5381,7 @@ joinpd1("fmodules-prune-after="),
5187},5381},
5188joinpd1("fopenmp-target-debug="),5382joinpd1("fopenmp-target-debug="),
5189joinpd1("fsanitize-ignorelist="),5383joinpd1("fsanitize-ignorelist="),
5384joinpd1("fzero-call-used-regs="),
5190jspd1("iframeworkwithsysroot"),5385jspd1("iframeworkwithsysroot"),
5191joinpd1("mcode-object-version="),5386joinpd1("mcode-object-version="),
5192joinpd1("mpad-max-prefix-size="),5387joinpd1("mpad-max-prefix-size="),
...@@ -5218,6 +5413,7 @@ joinpd1("mwatchos-version-min="),...@@ -5218,6 +5413,7 @@ joinpd1("mwatchos-version-min="),
5218 .psl = false,5413 .psl = false,
5219},5414},
5220joinpd1("faltivec-src-compat="),5415joinpd1("faltivec-src-compat="),
5416joinpd1("mmacosx-version-min="),
5221joinpd1("fsanitize-blacklist="),5417joinpd1("fsanitize-blacklist="),
5222.{5418.{
5223 .name = "hip-device-lib-path=",5419 .name = "hip-device-lib-path=",
...@@ -5230,12 +5426,13 @@ joinpd1("fsanitize-blacklist="),...@@ -5230,12 +5426,13 @@ joinpd1("fsanitize-blacklist="),
5230joinpd1("coverage-notes-file="),5426joinpd1("coverage-notes-file="),
5231joinpd1("fbuild-session-file="),5427joinpd1("fbuild-session-file="),
5232joinpd1("fdiagnostics-format="),5428joinpd1("fdiagnostics-format="),
5429joinpd1("fgpu-default-stream="),
5233joinpd1("fmax-stack-var-size="),5430joinpd1("fmax-stack-var-size="),
5234joinpd1("fmodules-cache-path="),5431joinpd1("fmodules-cache-path="),
5235joinpd1("fmodules-embed-file="),5432joinpd1("fmodules-embed-file="),
5236joinpd1("fprofile-instrument="),5433joinpd1("fprofile-instrument="),
5237joinpd1("fprofile-sample-use="),5434joinpd1("fprofile-sample-use="),
5238joinpd1("mmacosx-version-min="),5435joinpd1("fstrict-flex-arrays="),
5239.{5436.{
5240 .name = "no-cuda-include-ptx=",5437 .name = "no-cuda-include-ptx=",
5241 .syntax = .joined,5438 .syntax = .joined,
...@@ -5249,6 +5446,7 @@ joinpd1("code-completion-at="),...@@ -5249,6 +5446,7 @@ joinpd1("code-completion-at="),
5249joinpd1("coverage-data-file="),5446joinpd1("coverage-data-file="),
5250joinpd1("fblas-matmul-limit="),5447joinpd1("fblas-matmul-limit="),
5251joinpd1("fdiagnostics-color="),5448joinpd1("fdiagnostics-color="),
5449joinpd1("femit-dwarf-unwind="),
5252joinpd1("ffixed-line-length="),5450joinpd1("ffixed-line-length="),
5253joinpd1("ffixed-line-length-"),5451joinpd1("ffixed-line-length-"),
5254joinpd1("ffuchsia-api-level="),5452joinpd1("ffuchsia-api-level="),
...@@ -5388,6 +5586,7 @@ joinpd1("fproc-stat-report"),...@@ -5388,6 +5586,7 @@ joinpd1("fproc-stat-report"),
5388joinpd1("fwarn-stack-size="),5586joinpd1("fwarn-stack-size="),
5389jspd1("iwithprefixbefore"),5587jspd1("iwithprefixbefore"),
5390joinpd1("malign-functions="),5588joinpd1("malign-functions="),
5589joinpd1("mfunction-return="),
5391joinpd1("mios-version-min="),5590joinpd1("mios-version-min="),
5392joinpd1("mstack-alignment="),5591joinpd1("mstack-alignment="),
5393joinpd1("msve-vector-bits="),5592joinpd1("msve-vector-bits="),
...@@ -5431,6 +5630,7 @@ joinpd1("debug-info-kind="),...@@ -5431,6 +5630,7 @@ joinpd1("debug-info-kind="),
5431joinpd1("debugger-tuning="),5630joinpd1("debugger-tuning="),
5432joinpd1("exception-model="),5631joinpd1("exception-model="),
5433joinpd1("fcf-runtime-abi="),5632joinpd1("fcf-runtime-abi="),
5633joinpd1("ffp-eval-method="),
5434joinpd1("finit-character="),5634joinpd1("finit-character="),
5435joinpd1("fmax-type-align="),5635joinpd1("fmax-type-align="),
5436joinpd1("fmemory-profile="),5636joinpd1("fmemory-profile="),
...@@ -5478,6 +5678,14 @@ joinpd1("mlinker-version="),...@@ -5478,6 +5678,14 @@ joinpd1("mlinker-version="),
5478},5678},
5479jspd1("stdlib++-isystem"),5679jspd1("stdlib++-isystem"),
5480joinpd1("Rpass-analysis="),5680joinpd1("Rpass-analysis="),
5681.{
5682 .name = "Xoffload-linker",
5683 .syntax = .joined_and_separate,
5684 .zig_equivalent = .other,
5685 .pd1 = true,
5686 .pd2 = false,
5687 .psl = false,
5688},
5481.{5689.{
5482 .name = "Xopenmp-target=",5690 .name = "Xopenmp-target=",
5483 .syntax = .joined_and_separate,5691 .syntax = .joined_and_separate,
...@@ -5528,6 +5736,7 @@ joinpd1("fdepfile-entry="),...@@ -5528,6 +5736,7 @@ joinpd1("fdepfile-entry="),
5528joinpd1("fembed-bitcode="),5736joinpd1("fembed-bitcode="),
5529joinpd1("finput-charset="),5737joinpd1("finput-charset="),
5530joinpd1("fmodule-format="),5738joinpd1("fmodule-format="),
5739joinpd1("fmodule-header="),
5531joinpd1("fms-memptr-rep="),5740joinpd1("fms-memptr-rep="),
5532joinpd1("fnew-alignment="),5741joinpd1("fnew-alignment="),
5533joinpd1("frecord-marker="),5742joinpd1("frecord-marker="),
...@@ -5550,6 +5759,7 @@ joinpd1("ftrapv-handler="),...@@ -5550,6 +5759,7 @@ joinpd1("ftrapv-handler="),
5550 .pd2 = false,5759 .pd2 = false,
5551 .psl = false,5760 .psl = false,
5552},5761},
5762joinpd1("gen-reproducer="),
5553.{5763.{
5554 .name = "hip-device-lib=",5764 .name = "hip-device-lib=",
5555 .syntax = .joined,5765 .syntax = .joined,
...@@ -5683,6 +5893,14 @@ joinpd1("ast-dump-all="),...@@ -5683,6 +5893,14 @@ joinpd1("ast-dump-all="),
5683 .pd2 = true,5893 .pd2 = true,
5684 .psl = false,5894 .psl = false,
5685},5895},
5896.{
5897 .name = "cuda-feature=",
5898 .syntax = .joined,
5899 .zig_equivalent = .other,
5900 .pd1 = false,
5901 .pd2 = true,
5902 .psl = false,
5903},
5686joinpd1("falign-jumps="),5904joinpd1("falign-jumps="),
5687joinpd1("falign-loops="),5905joinpd1("falign-loops="),
5688joinpd1("faligned-new="),5906joinpd1("faligned-new="),
...@@ -5710,6 +5928,7 @@ joinpd1("gsplit-dwarf="),...@@ -5710,6 +5928,7 @@ joinpd1("gsplit-dwarf="),
5710jspd1("isystem-after"),5928jspd1("isystem-after"),
5711joinpd1("malign-jumps="),5929joinpd1("malign-jumps="),
5712joinpd1("malign-loops="),5930joinpd1("malign-loops="),
5931joinpd1("mframe-chain="),
5713joinpd1("mimplicit-it="),5932joinpd1("mimplicit-it="),
5714.{5933.{
5715 .name = "offload-arch=",5934 .name = "offload-arch=",
...@@ -5720,6 +5939,14 @@ joinpd1("mimplicit-it="),...@@ -5720,6 +5939,14 @@ joinpd1("mimplicit-it="),
5720 .psl = false,5939 .psl = false,
5721},5940},
5722jspd1("pagezero_size"),5941jspd1("pagezero_size"),
5942.{
5943 .name = "product-name=",
5944 .syntax = .joined,
5945 .zig_equivalent = .other,
5946 .pd1 = false,
5947 .pd2 = true,
5948 .psl = false,
5949},
5723joinpd1("resource-dir="),5950joinpd1("resource-dir="),
5724.{5951.{
5725 .name = "dyld-prefix=",5952 .name = "dyld-prefix=",
...@@ -5741,6 +5968,7 @@ joinpd1("fmax-errors="),...@@ -5741,6 +5968,7 @@ joinpd1("fmax-errors="),
5741joinpd1("fmax-tokens="),5968joinpd1("fmax-tokens="),
5742joinpd1("fno-builtin-"),5969joinpd1("fno-builtin-"),
5743joinpd1("fplugin-arg-"),5970joinpd1("fplugin-arg-"),
5971joinpd1("ftime-trace="),
5744joinpd1("fvisibility="),5972joinpd1("fvisibility="),
5745joinpd1("fwchar-type="),5973joinpd1("fwchar-type="),
5746jspd1("fxray-modes="),5974jspd1("fxray-modes="),
...@@ -5946,6 +6174,7 @@ joinpd1("flto-jobs="),...@@ -5946,6 +6174,7 @@ joinpd1("flto-jobs="),
5946},6174},
5947joinpd1("fuse-cuid="),6175joinpd1("fuse-cuid="),
5948jspd1("iframework"),6176jspd1("iframework"),
6177jspd1("module-dir"),
5949joinpd1("mtargetos="),6178joinpd1("mtargetos="),
5950joinpd1("mtls-size="),6179joinpd1("mtls-size="),
5951.{6180.{
...@@ -6485,6 +6714,14 @@ joinpd1("mtp="),...@@ -6485,6 +6714,14 @@ joinpd1("mtp="),
6485},6714},
6486joinpd1("gz="),6715joinpd1("gz="),
6487joinpd1("A-"),6716joinpd1("A-"),
6717.{
6718 .name = "Fo",
6719 .syntax = .joined_or_separate,
6720 .zig_equivalent = .other,
6721 .pd1 = true,
6722 .pd2 = false,
6723 .psl = true,
6724},
6488joinpd1("G="),6725joinpd1("G="),
6489.{6726.{
6490 .name = "MF",6727 .name = "MF",
...@@ -6662,6 +6899,14 @@ joinpd1("G="),...@@ -6662,6 +6899,14 @@ joinpd1("G="),
6662 .pd2 = false,6899 .pd2 = false,
6663 .psl = true,6900 .psl = true,
6664},6901},
6902.{
6903 .name = "Wv",
6904 .syntax = .joined,
6905 .zig_equivalent = .other,
6906 .pd1 = true,
6907 .pd2 = false,
6908 .psl = true,
6909},
6665.{6910.{
6666 .name = "Yc",6911 .name = "Yc",
6667 .syntax = .joined,6912 .syntax = .joined,
...@@ -6861,6 +7106,14 @@ joinpd1("d"),...@@ -6861,6 +7106,14 @@ joinpd1("d"),
6861 .pd2 = false,7106 .pd2 = false,
6862 .psl = false,7107 .psl = false,
6863},7108},
7109.{
7110 .name = "T",
7111 .syntax = .joined_or_separate,
7112 .zig_equivalent = .linker_script,
7113 .pd1 = true,
7114 .pd2 = false,
7115 .psl = true,
7116},
6864jspd1("u"),7117jspd1("u"),
6865jspd1("x"),7118jspd1("x"),
6866joinpd1("y"),7119joinpd1("y"),
tools/update_clang_options.zig+18-12
...@@ -489,6 +489,7 @@ const cpu_targets = struct {...@@ -489,6 +489,7 @@ const cpu_targets = struct {
489 pub const arm = std.Target.arm;489 pub const arm = std.Target.arm;
490 pub const avr = std.Target.avr;490 pub const avr = std.Target.avr;
491 pub const bpf = std.Target.bpf;491 pub const bpf = std.Target.bpf;
492 pub const csky = std.Target.csky;
492 pub const hexagon = std.Target.hexagon;493 pub const hexagon = std.Target.hexagon;
493 pub const mips = std.Target.mips;494 pub const mips = std.Target.mips;
494 pub const msp430 = std.Target.msp430;495 pub const msp430 = std.Target.msp430;
...@@ -497,7 +498,7 @@ const cpu_targets = struct {...@@ -497,7 +498,7 @@ const cpu_targets = struct {
497 pub const riscv = std.Target.riscv;498 pub const riscv = std.Target.riscv;
498 pub const sparc = std.Target.sparc;499 pub const sparc = std.Target.sparc;
499 pub const spirv = std.Target.spirv;500 pub const spirv = std.Target.spirv;
500 pub const systemz = std.Target.systemz;501 pub const s390x = std.Target.s390x;
501 pub const ve = std.Target.ve;502 pub const ve = std.Target.ve;
502 pub const wasm = std.Target.wasm;503 pub const wasm = std.Target.wasm;
503 pub const x86 = std.Target.x86;504 pub const x86 = std.Target.x86;
...@@ -630,7 +631,7 @@ pub fn main() anyerror!void {...@@ -630,7 +631,7 @@ pub fn main() anyerror!void {
630 std.process.exit(1);631 std.process.exit(1);
631 }632 }
632 }633 }
633 const syntax = objSyntax(obj);634 const syntax = objSyntax(obj) orelse continue;
634635
635 if (std.mem.eql(u8, name, "MT") and syntax == .flag) {636 if (std.mem.eql(u8, name, "MT") and syntax == .flag) {
636 // `-MT foo` is ambiguous because there is also an -MT flag637 // `-MT foo` is ambiguous because there is also an -MT flag
...@@ -647,9 +648,9 @@ pub fn main() anyerror!void {...@@ -647,9 +648,9 @@ pub fn main() anyerror!void {
647 \\ .name = "{s}",648 \\ .name = "{s}",
648 \\ .syntax = {s},649 \\ .syntax = {s},
649 \\ .zig_equivalent = .{s},650 \\ .zig_equivalent = .{s},
650 \\ .pd1 = {s},651 \\ .pd1 = {any},
651 \\ .pd2 = {s},652 \\ .pd2 = {any},
652 \\ .psl = {s},653 \\ .psl = {any},
653 \\}},654 \\}},
654 \\655 \\
655 , .{ name, final_syntax, ident, pd1, pd2, pslash });656 , .{ name, final_syntax, ident, pd1, pd2, pslash });
...@@ -677,9 +678,9 @@ pub fn main() anyerror!void {...@@ -677,9 +678,9 @@ pub fn main() anyerror!void {
677 \\ .name = "{s}",678 \\ .name = "{s}",
678 \\ .syntax = {s},679 \\ .syntax = {s},
679 \\ .zig_equivalent = .other,680 \\ .zig_equivalent = .other,
680 \\ .pd1 = {s},681 \\ .pd1 = {any},
681 \\ .pd2 = {s},682 \\ .pd2 = {any},
682 \\ .psl = {s},683 \\ .psl = {any},
683 \\}},684 \\}},
684 \\685 \\
685 , .{ name, syntax, pd1, pd2, pslash });686 , .{ name, syntax, pd1, pd2, pslash });
...@@ -736,7 +737,7 @@ const Syntax = union(enum) {...@@ -736,7 +737,7 @@ const Syntax = union(enum) {
736 }737 }
737};738};
738739
739fn objSyntax(obj: *json.ObjectMap) Syntax {740fn objSyntax(obj: *json.ObjectMap) ?Syntax {
740 const num_args = @intCast(u8, obj.get("NumArgs").?.Integer);741 const num_args = @intCast(u8, obj.get("NumArgs").?.Integer);
741 for (obj.get("!superclasses").?.Array.items) |superclass_json| {742 for (obj.get("!superclasses").?.Array.items) |superclass_json| {
742 const superclass = superclass_json.String;743 const superclass = superclass_json.String;
...@@ -754,6 +755,10 @@ fn objSyntax(obj: *json.ObjectMap) Syntax {...@@ -754,6 +755,10 @@ fn objSyntax(obj: *json.ObjectMap) Syntax {
754 return .joined_or_separate;755 return .joined_or_separate;
755 } else if (std.mem.eql(u8, superclass, "CLCompileJoinedOrSeparate")) {756 } else if (std.mem.eql(u8, superclass, "CLCompileJoinedOrSeparate")) {
756 return .joined_or_separate;757 return .joined_or_separate;
758 } else if (std.mem.eql(u8, superclass, "DXCJoinedOrSeparate")) {
759 return .joined_or_separate;
760 } else if (std.mem.eql(u8, superclass, "CLDXCJoinedOrSeparate")) {
761 return .joined_or_separate;
757 } else if (std.mem.eql(u8, superclass, "Flag")) {762 } else if (std.mem.eql(u8, superclass, "Flag")) {
758 return .flag;763 return .flag;
759 } else if (std.mem.eql(u8, superclass, "CLFlag")) {764 } else if (std.mem.eql(u8, superclass, "CLFlag")) {
...@@ -787,7 +792,8 @@ fn objSyntax(obj: *json.ObjectMap) Syntax {...@@ -787,7 +792,8 @@ fn objSyntax(obj: *json.ObjectMap) Syntax {
787 for (obj.get("!superclasses").?.Array.items) |superclass_json| {792 for (obj.get("!superclasses").?.Array.items) |superclass_json| {
788 std.debug.print(" {s}\n", .{superclass_json.String});793 std.debug.print(" {s}\n", .{superclass_json.String});
789 }794 }
790 std.process.exit(1);795 //std.process.exit(1);
796 return null;
791}797}
792798
793fn syntaxMatchesWithEql(syntax: Syntax) bool {799fn syntaxMatchesWithEql(syntax: Syntax) bool {
...@@ -810,8 +816,8 @@ fn objectLessThan(context: void, a: *json.ObjectMap, b: *json.ObjectMap) bool {...@@ -810,8 +816,8 @@ fn objectLessThan(context: void, a: *json.ObjectMap, b: *json.ObjectMap) bool {
810 _ = context;816 _ = context;
811 // Priority is determined by exact matches first, followed by prefix matches in descending817 // Priority is determined by exact matches first, followed by prefix matches in descending
812 // length, with key as a final tiebreaker.818 // length, with key as a final tiebreaker.
813 const a_syntax = objSyntax(a);819 const a_syntax = objSyntax(a) orelse return false;
814 const b_syntax = objSyntax(b);820 const b_syntax = objSyntax(b) orelse return true;
815821
816 const a_match_with_eql = syntaxMatchesWithEql(a_syntax);822 const a_match_with_eql = syntaxMatchesWithEql(a_syntax);
817 const b_match_with_eql = syntaxMatchesWithEql(b_syntax);823 const b_match_with_eql = syntaxMatchesWithEql(b_syntax);