authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-21 17:00:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-21 17:01:07-07:00
logceeb230c23e0665811956657157561170be54519
treed5b3dfae9480692ef759286362a3b97aae41a338
parentb644d493658d8fe4eddeeb3ec6d13593f89739bb

zig cc: add -ffunction-sections integration

Also update to latest LLVM 13 command line options. See #6290

3 files changed, 410 insertions(+), 47 deletions(-)

src/clang_options_data.zig+398-47
......@@ -132,6 +132,7 @@ flagpd1("Qy"),
132132flagpd1("WCL4"),
133133flagpd1("Wall"),
134134flagpd1("Wdeprecated"),
135flagpd1("Wframe-larger-than"),
135136flagpd1("Wlarge-by-value-copy"),
136137flagpd1("Wno-deprecated"),
137138flagpd1("Wno-rewrite-macros"),
......@@ -145,6 +146,7 @@ sepd1("Xassembler"),
145146sepd1("Xclang"),
146147sepd1("Xcuda-fatbinary"),
147148sepd1("Xcuda-ptxas"),
149sepd1("Xflang"),
148150.{
149151 .name = "Xlinker",
150152 .syntax = .separate,
......@@ -1186,7 +1188,7 @@ flagpsl("MT"),
11861188 .psl = true,
11871189},
11881190.{
1189 .name = "fallback",
1191 .name = "exportHeader",
11901192 .syntax = .flag,
11911193 .zig_equivalent = .other,
11921194 .pd1 = true,
......@@ -1233,6 +1235,14 @@ flagpsl("MT"),
12331235 .pd2 = false,
12341236 .psl = true,
12351237},
1238.{
1239 .name = "fsanitize=address",
1240 .syntax = .flag,
1241 .zig_equivalent = .other,
1242 .pd1 = true,
1243 .pd2 = false,
1244 .psl = true,
1245},
12361246.{
12371247 .name = "help",
12381248 .syntax = .flag,
......@@ -1305,6 +1315,14 @@ flagpsl("MT"),
13051315 .pd2 = false,
13061316 .psl = true,
13071317},
1318.{
1319 .name = "permissive",
1320 .syntax = .flag,
1321 .zig_equivalent = .other,
1322 .pd1 = true,
1323 .pd2 = false,
1324 .psl = true,
1325},
13081326.{
13091327 .name = "permissive-",
13101328 .syntax = .flag,
......@@ -1361,6 +1379,14 @@ flagpsl("MT"),
13611379 .pd2 = false,
13621380 .psl = true,
13631381},
1382.{
1383 .name = "translateInclude",
1384 .syntax = .flag,
1385 .zig_equivalent = .other,
1386 .pd1 = true,
1387 .pd2 = false,
1388 .psl = true,
1389},
13641390.{
13651391 .name = "u",
13661392 .syntax = .flag,
......@@ -2071,6 +2097,28 @@ flagpd1("analyzer-viz-egraph-graphviz"),
20712097flagpd1("analyzer-werror"),
20722098flagpd1("fslp-vectorize-aggressive"),
20732099flagpd1("fno-slp-vectorize-aggressive"),
2100flagpd1("grecord-gcc-switches"),
2101flagpd1("gno-record-gcc-switches"),
2102flagpd1("nocudainc"),
2103flagpd1("nocudalib"),
2104.{
2105 .name = "system-header-prefix",
2106 .syntax = .separate,
2107 .zig_equivalent = .other,
2108 .pd1 = false,
2109 .pd2 = true,
2110 .psl = false,
2111},
2112.{
2113 .name = "no-system-header-prefix",
2114 .syntax = .separate,
2115 .zig_equivalent = .other,
2116 .pd1 = false,
2117 .pd2 = true,
2118 .psl = false,
2119},
2120flagpd1("integrated-as"),
2121flagpd1("no-integrated-as"),
20742122flagpd1("shared-libasan"),
20752123.{
20762124 .name = "Gs",
......@@ -2202,6 +2250,7 @@ flagpd1("fdefer-pop"),
22022250flagpd1("fno-defer-pop"),
22032251flagpd1("fextended-identifiers"),
22042252flagpd1("fno-extended-identifiers"),
2253flagpd1("fno-sanitize-blacklist"),
22052254flagpd1("fhonor-infinites"),
22062255flagpd1("fno-honor-infinites"),
22072256flagpd1("fcuda-rdc"),
......@@ -2216,28 +2265,6 @@ flagpd1("fno-tree-vectorize"),
22162265flagpd1("ftree-slp-vectorize"),
22172266flagpd1("fno-tree-slp-vectorize"),
22182267flagpd1("fterminated-vtables"),
2219flagpd1("grecord-gcc-switches"),
2220flagpd1("gno-record-gcc-switches"),
2221flagpd1("nocudainc"),
2222flagpd1("nocudalib"),
2223.{
2224 .name = "system-header-prefix",
2225 .syntax = .separate,
2226 .zig_equivalent = .other,
2227 .pd1 = false,
2228 .pd2 = true,
2229 .psl = false,
2230},
2231.{
2232 .name = "no-system-header-prefix",
2233 .syntax = .separate,
2234 .zig_equivalent = .other,
2235 .pd1 = false,
2236 .pd2 = true,
2237 .psl = false,
2238},
2239flagpd1("integrated-as"),
2240flagpd1("no-integrated-as"),
22412268.{
22422269 .name = "ansi",
22432270 .syntax = .flag,
......@@ -2295,6 +2322,7 @@ flagpd1("cl-fp32-correctly-rounded-divide-sqrt"),
22952322flagpd1("cl-kernel-arg-info"),
22962323flagpd1("cl-mad-enable"),
22972324flagpd1("cl-no-signed-zeros"),
2325flagpd1("cl-no-stdinc"),
22982326flagpd1("cl-opt-disable"),
22992327flagpd1("cl-single-precision-constant"),
23002328flagpd1("cl-strict-aliasing"),
......@@ -2429,6 +2457,7 @@ flagpd1("dynamic"),
24292457 .pd2 = false,
24302458 .psl = false,
24312459},
2460flagpd1("ehcontguard"),
24322461flagpd1("emit-ast"),
24332462flagpd1("emit-codegen-only"),
24342463flagpd1("emit-header-module"),
......@@ -2458,6 +2487,7 @@ flagpd1("emit-pch"),
24582487 .pd2 = true,
24592488 .psl = false,
24602489},
2490flagpd1("enable-noundef-analysis"),
24612491flagpd1("enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang"),
24622492sepd1("error-on-deserialized-decl"),
24632493sepd1("exception-model"),
......@@ -2491,10 +2521,13 @@ flagpd1("faligned-allocation"),
24912521flagpd1("fall-intrinsics"),
24922522flagpd1("fallow-editor-placeholders"),
24932523flagpd1("fallow-half-arguments-and-returns"),
2524flagpd1("fallow-pch-with-different-modules-cache-path"),
24942525flagpd1("fallow-pch-with-compiler-errors"),
24952526flagpd1("fallow-pcm-with-compiler-errors"),
24962527flagpd1("fallow-unsupported"),
2528flagpd1("falternative-parameter-statement"),
24972529flagpd1("faltivec"),
2530flagpd1("fanalyzed-objects-for-unparse"),
24982531flagpd1("fkeep-inline-functions"),
24992532flagpd1("fansi-escape-codes"),
25002533flagpd1("fapple-kext"),
......@@ -2510,6 +2543,7 @@ flagpd1("fassume-sane-operator-new"),
25102543flagpd1("fast"),
25112544flagpd1("fastcp"),
25122545flagpd1("fastf"),
2546flagpd1("fasync-exceptions"),
25132547flagpd1("fasynchronous-unwind-tables"),
25142548flagpd1("fauto-profile"),
25152549flagpd1("fauto-profile-accurate"),
......@@ -2570,13 +2604,25 @@ flagpd1("fd-lines-as-code"),
25702604flagpd1("fd-lines-as-comments"),
25712605flagpd1("fdata-sections"),
25722606sepd1("fdebug-compilation-dir"),
2607flagpd1("fdebug-dump-all"),
2608flagpd1("fdebug-dump-parse-tree"),
2609flagpd1("fdebug-dump-parse-tree-no-sema"),
2610flagpd1("fdebug-dump-parsing-log"),
2611flagpd1("fdebug-dump-provenance"),
2612flagpd1("fdebug-dump-symbols"),
25732613flagpd1("fdebug-info-for-profiling"),
25742614flagpd1("fdebug-macro"),
2615flagpd1("fdebug-measure-parse-tree"),
2616flagpd1("fdebug-module-writer"),
25752617flagpd1("fdebug-pass-arguments"),
25762618flagpd1("fdebug-pass-manager"),
25772619flagpd1("fdebug-pass-structure"),
2620flagpd1("fdebug-pre-fir-tree"),
25782621flagpd1("fdebug-ranges-base-address"),
25792622flagpd1("fdebug-types-section"),
2623flagpd1("fdebug-unparse"),
2624flagpd1("fdebug-unparse-no-sema"),
2625flagpd1("fdebug-unparse-with-symbols"),
25802626flagpd1("fdebugger-cast-result-to-id"),
25812627flagpd1("fdebugger-objc-literal"),
25822628flagpd1("fdebugger-support"),
......@@ -2613,6 +2659,8 @@ flagpd1("fdump-fortran-optimized"),
26132659flagpd1("fdump-fortran-original"),
26142660flagpd1("fdump-parse-tree"),
26152661flagpd1("fdump-record-layouts"),
2662flagpd1("fdump-record-layouts-canonical"),
2663flagpd1("fdump-record-layouts-complete"),
26162664flagpd1("fdump-record-layouts-simple"),
26172665flagpd1("fdump-vtable-layouts"),
26182666flagpd1("fdwarf2-cfi-asm"),
......@@ -2647,6 +2695,21 @@ flagpd1("ffine-grained-bitfield-accesses"),
26472695flagpd1("ffinite-loops"),
26482696flagpd1("ffinite-math-only"),
26492697flagpd1("finline-limit"),
2698flagpd1("ffixed-a0"),
2699flagpd1("ffixed-a1"),
2700flagpd1("ffixed-a2"),
2701flagpd1("ffixed-a3"),
2702flagpd1("ffixed-a4"),
2703flagpd1("ffixed-a5"),
2704flagpd1("ffixed-a6"),
2705flagpd1("ffixed-d0"),
2706flagpd1("ffixed-d1"),
2707flagpd1("ffixed-d2"),
2708flagpd1("ffixed-d3"),
2709flagpd1("ffixed-d4"),
2710flagpd1("ffixed-d5"),
2711flagpd1("ffixed-d6"),
2712flagpd1("ffixed-d7"),
26502713flagpd1("ffixed-form"),
26512714flagpd1("ffixed-point"),
26522715flagpd1("ffixed-r19"),
......@@ -2693,11 +2756,27 @@ flagpd1("ffreestanding"),
26932756flagpd1("ffriend-injection"),
26942757flagpd1("ffrontend-optimize"),
26952758flagpd1("ffunction-attribute-list"),
2696flagpd1("ffunction-sections"),
2759.{
2760 .name = "ffunction-sections",
2761 .syntax = .flag,
2762 .zig_equivalent = .function_sections,
2763 .pd1 = true,
2764 .pd2 = false,
2765 .psl = false,
2766},
26972767flagpd1("fgcse"),
26982768flagpd1("fgcse-after-reload"),
26992769flagpd1("fgcse-las"),
27002770flagpd1("fgcse-sm"),
2771.{
2772 .name = "fget-definition",
2773 .syntax = .{.multi_arg=3},
2774 .zig_equivalent = .other,
2775 .pd1 = true,
2776 .pd2 = false,
2777 .psl = false,
2778},
2779flagpd1("fget-symbols-sources"),
27012780flagpd1("fglobal-isel"),
27022781flagpd1("fgnu"),
27032782flagpd1("fgnu89-inline"),
......@@ -2707,10 +2786,13 @@ flagpd1("fgnu-runtime"),
27072786flagpd1("fgpu-allow-device-init"),
27082787flagpd1("fgpu-defer-diag"),
27092788flagpd1("fgpu-exclude-wrong-side-overloads"),
2789flagpd1("fgpu-flush-denormals-to-zero"),
27102790flagpd1("fgpu-rdc"),
2791flagpd1("fgpu-sanitize"),
27112792flagpd1("fhalf-no-semantic-interposition"),
27122793flagpd1("fheinous-gnu-extensions"),
27132794flagpd1("fhip-dump-offload-linker-script"),
2795flagpd1("fhip-fp32-correctly-rounded-divide-sqrt"),
27142796flagpd1("fhip-new-launch-api"),
27152797flagpd1("fhonor-infinities"),
27162798flagpd1("fhonor-nans"),
......@@ -2736,7 +2818,7 @@ flagpd1("finstrument-functions-after-inlining"),
27362818flagpd1("finteger-4-integer-8"),
27372819flagpd1("fintegrated-as"),
27382820flagpd1("fintegrated-cc1"),
2739flagpd1("fintrinsic-modules-path"),
2821sepd1("fintrinsic-modules-path"),
27402822flagpd1("fipa-cp"),
27412823flagpd1("fivopts"),
27422824flagpd1("fix-only-warnings"),
......@@ -2746,10 +2828,12 @@ flagpd1("fixit-recompile"),
27462828flagpd1("fixit-to-temporary"),
27472829flagpd1("fjump-tables"),
27482830flagpd1("fkeep-static-consts"),
2831flagpd1("flarge-sizes"),
27492832flagpd1("flat_namespace"),
27502833flagpd1("flax-vector-conversions"),
27512834flagpd1("flegacy-pass-manager"),
27522835flagpd1("flimit-debug-info"),
2836flagpd1("flogical-abbreviations"),
27532837.{
27542838 .name = "flto",
27552839 .syntax = .flag,
......@@ -2758,6 +2842,8 @@ flagpd1("flimit-debug-info"),
27582842 .pd2 = false,
27592843 .psl = false,
27602844},
2845flagpd1("flto=auto"),
2846flagpd1("flto=jobserver"),
27612847flagpd1("flto-unit"),
27622848flagpd1("flto-visibility-public-std"),
27632849sepd1("fmacro-backtrace-limit"),
......@@ -2772,7 +2858,6 @@ flagpd1("fmodule-file-deps"),
27722858sepd1("fmodule-implementation-of"),
27732859flagpd1("fmodule-map-file-home-is-cwd"),
27742860flagpd1("fmodule-maps"),
2775sepd1("fmodule-name"),
27762861flagpd1("fmodule-private"),
27772862flagpd1("fmodules"),
27782863flagpd1("fmodules-codegen"),
......@@ -2829,6 +2914,7 @@ flagpd1("fno-aligned-allocation"),
28292914flagpd1("fno-all-intrinsics"),
28302915flagpd1("fno-allow-editor-placeholders"),
28312916flagpd1("fno-altivec"),
2917flagpd1("fno-analyzed-objects-for-unparse"),
28322918flagpd1("fno-keep-inline-functions"),
28332919flagpd1("fno-apple-pragma-pack"),
28342920flagpd1("fno-application-extension"),
......@@ -2836,6 +2922,7 @@ flagpd1("fno-asm"),
28362922flagpd1("fno-asm-blocks"),
28372923flagpd1("fno-associative-math"),
28382924flagpd1("fno-assume-sane-operator-new"),
2925flagpd1("fno-async-exceptions"),
28392926flagpd1("fno-asynchronous-unwind-tables"),
28402927flagpd1("fno-auto-profile"),
28412928flagpd1("fno-auto-profile-accurate"),
......@@ -2879,10 +2966,7 @@ flagpd1("fno-debug-pass-manager"),
28792966flagpd1("fno-debug-ranges-base-address"),
28802967flagpd1("fno-debug-types-section"),
28812968flagpd1("fno-declspec"),
2882flagpd1("fno-default-double-8"),
28832969flagpd1("fno-default-inline"),
2884flagpd1("fno-default-integer-8"),
2885flagpd1("fno-default-real-8"),
28862970flagpd1("fno-delayed-template-parsing"),
28872971flagpd1("fno-delete-null-pointer-checks"),
28882972flagpd1("fno-deprecated-macro"),
......@@ -2925,18 +3009,23 @@ flagpd1("fno-fine-grained-bitfield-accesses"),
29253009flagpd1("fno-finite-loops"),
29263010flagpd1("fno-finite-math-only"),
29273011flagpd1("fno-inline-limit"),
2928flagpd1("fno-fixed-form"),
29293012flagpd1("fno-fixed-point"),
29303013flagpd1("fno-float-store"),
29313014flagpd1("fno-for-scope"),
29323015flagpd1("fno-force-dwarf-frame"),
29333016flagpd1("fno-force-emit-vtables"),
29343017flagpd1("fno-force-enable-int128"),
2935flagpd1("fno-free-form"),
29363018flagpd1("fno-friend-injection"),
29373019flagpd1("fno-frontend-optimize"),
29383020flagpd1("fno-function-attribute-list"),
2939flagpd1("fno-function-sections"),
3021.{
3022 .name = "fno-function-sections",
3023 .syntax = .flag,
3024 .zig_equivalent = .no_function_sections,
3025 .pd1 = true,
3026 .pd2 = false,
3027 .psl = false,
3028},
29403029flagpd1("fno-gcse"),
29413030flagpd1("fno-gcse-after-reload"),
29423031flagpd1("fno-gcse-las"),
......@@ -2949,7 +3038,10 @@ flagpd1("fno-gnu-keywords"),
29493038flagpd1("fno-gpu-allow-device-init"),
29503039flagpd1("fno-gpu-defer-diag"),
29513040flagpd1("fno-gpu-exclude-wrong-side-overloads"),
3041flagpd1("fno-gpu-flush-denormals-to-zero"),
29523042flagpd1("fno-gpu-rdc"),
3043flagpd1("fno-gpu-sanitize"),
3044flagpd1("fno-hip-fp32-correctly-rounded-divide-sqrt"),
29533045flagpd1("fno-hip-new-launch-api"),
29543046flagpd1("fno-honor-infinities"),
29553047flagpd1("fno-honor-nans"),
......@@ -2966,7 +3058,6 @@ flagpd1("fno-inline-small-functions"),
29663058flagpd1("fno-integer-4-integer-8"),
29673059flagpd1("fno-integrated-as"),
29683060flagpd1("fno-integrated-cc1"),
2969flagpd1("fno-intrinsic-modules-path"),
29703061flagpd1("fno-ipa-cp"),
29713062flagpd1("fno-ivopts"),
29723063flagpd1("fno-jump-tables"),
......@@ -2974,6 +3065,7 @@ flagpd1("fno-keep-static-consts"),
29743065flagpd1("fno-lax-vector-conversions"),
29753066flagpd1("fno-legacy-pass-manager"),
29763067flagpd1("fno-limit-debug-info"),
3068flagpd1("fno-logical-abbreviations"),
29773069.{
29783070 .name = "fno-lto",
29793071 .syntax = .flag,
......@@ -3009,11 +3101,13 @@ flagpd1("fno-non-call-exceptions"),
30093101flagpd1("fno-objc-arc"),
30103102flagpd1("fno-objc-arc-exceptions"),
30113103flagpd1("fno-objc-convert-messages-to-runtime-calls"),
3104flagpd1("fno-objc-encode-cxx-class-template-spec"),
30123105flagpd1("fno-objc-exceptions"),
30133106flagpd1("fno-objc-infer-related-result-type"),
30143107flagpd1("fno-objc-legacy-dispatch"),
30153108flagpd1("fno-objc-nonfragile-abi"),
30163109flagpd1("fno-objc-weak"),
3110flagpd1("fno-offload-lto"),
30173111.{
30183112 .name = "fno-omit-frame-pointer",
30193113 .syntax = .flag,
......@@ -3025,9 +3119,9 @@ flagpd1("fno-objc-weak"),
30253119flagpd1("fno-openmp"),
30263120flagpd1("fno-openmp-cuda-force-full-runtime"),
30273121flagpd1("fno-openmp-cuda-mode"),
3028flagpd1("fno-openmp-cuda-parallel-target-regions"),
30293122flagpd1("fno-openmp-optimistic-collapse"),
30303123flagpd1("fno-openmp-simd"),
3124flagpd1("fno-openmp-target-new-runtime"),
30313125flagpd1("fno-operator-names"),
30323126flagpd1("fno-optimize-sibling-calls"),
30333127flagpd1("fno-pack-derived"),
......@@ -3105,12 +3199,14 @@ flagpd1("fno-rtlib-add-rpath"),
31053199flagpd1("fno-rtti"),
31063200flagpd1("fno-rtti-data"),
31073201flagpd1("fno-rwpi"),
3202flagpd1("fno-sanitize-address-outline-instrumentation"),
31083203flagpd1("fno-sanitize-address-poison-custom-array-cookie"),
31093204flagpd1("fno-sanitize-address-use-after-scope"),
31103205flagpd1("fno-sanitize-address-use-odr-indicator"),
3111flagpd1("fno-sanitize-blacklist"),
31123206flagpd1("fno-sanitize-cfi-canonical-jump-tables"),
31133207flagpd1("fno-sanitize-cfi-cross-dso"),
3208flagpd1("fno-sanitize-hwaddress-experimental-aliasing"),
3209flagpd1("fno-sanitize-ignorelist"),
31143210flagpd1("fno-sanitize-link-c++-runtime"),
31153211flagpd1("fno-sanitize-link-runtime"),
31163212flagpd1("fno-sanitize-memory-track-origins"),
......@@ -3147,6 +3243,7 @@ flagpd1("fno-spell-checking"),
31473243flagpd1("fno-split-dwarf-inlining"),
31483244flagpd1("fno-split-lto-unit"),
31493245flagpd1("fno-split-machine-functions"),
3246flagpd1("fno-split-stack"),
31503247flagpd1("fno-stack-arrays"),
31513248flagpd1("fno-stack-check"),
31523249flagpd1("fno-stack-clash-protection"),
......@@ -3193,6 +3290,7 @@ flagpd1("fno-unswitch-loops"),
31933290 .pd2 = false,
31943291 .psl = false,
31953292},
3293flagpd1("fno-use-ctor-homing"),
31963294flagpd1("fno-use-cxa-atexit"),
31973295flagpd1("fno-use-init-array"),
31983296flagpd1("fno-use-line-directives"),
......@@ -3205,6 +3303,7 @@ flagpd1("fno-vectorize"),
32053303flagpd1("fno-verbose-asm"),
32063304flagpd1("fno-virtual-function-elimination"),
32073305flagpd1("fno-visibility-from-dllstorageclass"),
3306flagpd1("fno-visibility-inlines-hidden"),
32083307flagpd1("fno-visibility-inlines-hidden-static-local-var"),
32093308flagpd1("fno-wchar"),
32103309flagpd1("fno-web"),
......@@ -3214,6 +3313,7 @@ flagpd1("fno-whole-program-vtables"),
32143313flagpd1("fno-working-directory"),
32153314flagpd1("fno-wrapv"),
32163315flagpd1("fno-xl-pragma-pack"),
3316flagpd1("fno-xor-operator"),
32173317flagpd1("fno-xray-always-emit-customevents"),
32183318flagpd1("fno-xray-always-emit-typedevents"),
32193319flagpd1("fno-xray-function-index"),
......@@ -3230,6 +3330,8 @@ flagpd1("fobjc-arc-exceptions"),
32303330flagpd1("fobjc-atdefs"),
32313331flagpd1("fobjc-call-cxx-cdtors"),
32323332flagpd1("fobjc-convert-messages-to-runtime-calls"),
3333flagpd1("fobjc-disable-direct-methods-for-testing"),
3334flagpd1("fobjc-encode-cxx-class-template-spec"),
32333335flagpd1("fobjc-exceptions"),
32343336flagpd1("fobjc-gc"),
32353337flagpd1("fobjc-gc-only"),
......@@ -3242,6 +3344,7 @@ flagpd1("fobjc-runtime-has-weak"),
32423344flagpd1("fobjc-sender-dependent-dispatch"),
32433345flagpd1("fobjc-subscripting-legacy-runtime"),
32443346flagpd1("fobjc-weak"),
3347flagpd1("foffload-lto"),
32453348.{
32463349 .name = "fomit-frame-pointer",
32473350 .syntax = .flag,
......@@ -3250,18 +3353,20 @@ flagpd1("fobjc-weak"),
32503353 .pd2 = false,
32513354 .psl = false,
32523355},
3356flagpd1("fopenacc"),
32533357flagpd1("fopenmp"),
32543358flagpd1("fopenmp-cuda-force-full-runtime"),
32553359flagpd1("fopenmp-cuda-mode"),
3256flagpd1("fopenmp-cuda-parallel-target-regions"),
32573360flagpd1("fopenmp-enable-irbuilder"),
32583361sepd1("fopenmp-host-ir-file-path"),
32593362flagpd1("fopenmp-is-device"),
32603363flagpd1("fopenmp-optimistic-collapse"),
32613364flagpd1("fopenmp-relocatable-target"),
32623365flagpd1("fopenmp-simd"),
3366flagpd1("fopenmp-target-new-runtime"),
32633367flagpd1("fopenmp-use-tls"),
32643368sepd1("foperator-arrow-depth"),
3369flagpd1("foperator-names"),
32653370flagpd1("foptimize-sibling-calls"),
32663371flagpd1("force_cpusubtype_ALL"),
32673372flagpd1("force_flat_namespace"),
......@@ -3310,7 +3415,6 @@ flagpd1("fprofile-generate"),
33103415flagpd1("fprofile-generate-sampling"),
33113416flagpd1("fprofile-instr-generate"),
33123417flagpd1("fprofile-instr-use"),
3313sepd1("fprofile-remapping-file"),
33143418flagpd1("fprofile-reusedist"),
33153419flagpd1("fprofile-sample-accurate"),
33163420flagpd1("fprofile-sample-use"),
......@@ -3350,7 +3454,6 @@ flagpd1("freroll-loops"),
33503454flagpd1("fretain-comments-from-system-headers"),
33513455flagpd1("frewrite-imports"),
33523456flagpd1("frewrite-includes"),
3353sepd1("frewrite-map-file"),
33543457flagpd1("fripa"),
33553458flagpd1("fropi"),
33563459flagpd1("frounding-math"),
......@@ -3359,6 +3462,7 @@ flagpd1("frtti"),
33593462flagpd1("frtti-data"),
33603463flagpd1("frwpi"),
33613464flagpd1("fsanitize-address-globals-dead-stripping"),
3465flagpd1("fsanitize-address-outline-instrumentation"),
33623466flagpd1("fsanitize-address-poison-custom-array-cookie"),
33633467flagpd1("fsanitize-address-use-after-scope"),
33643468flagpd1("fsanitize-address-use-odr-indicator"),
......@@ -3378,6 +3482,7 @@ flagpd1("fsanitize-coverage-trace-div"),
33783482flagpd1("fsanitize-coverage-trace-gep"),
33793483flagpd1("fsanitize-coverage-trace-pc"),
33803484flagpd1("fsanitize-coverage-trace-pc-guard"),
3485flagpd1("fsanitize-hwaddress-experimental-aliasing"),
33813486flagpd1("fsanitize-link-c++-runtime"),
33823487flagpd1("fsanitize-link-runtime"),
33833488flagpd1("fsanitize-memory-track-origins"),
......@@ -3400,6 +3505,7 @@ flagpd1("fsemantic-interposition"),
34003505flagpd1("fshort-enums"),
34013506flagpd1("fshort-wchar"),
34023507flagpd1("fshow-column"),
3508flagpd1("fshow-skipped-includes"),
34033509flagpd1("fshow-source-location"),
34043510flagpd1("fsign-zero"),
34053511flagpd1("fsignaling-math"),
......@@ -3426,6 +3532,7 @@ flagpd1("fstack-protector"),
34263532flagpd1("fstack-protector-all"),
34273533flagpd1("fstack-protector-strong"),
34283534flagpd1("fstack-size-section"),
3535flagpd1("fstack-usage"),
34293536flagpd1("fstandalone-debug"),
34303537flagpd1("fstrength-reduce"),
34313538flagpd1("fstrict-aliasing"),
......@@ -3437,6 +3544,7 @@ flagpd1("fstrict-vtable-pointers"),
34373544flagpd1("fstruct-path-tbaa"),
34383545flagpd1("fsycl"),
34393546flagpd1("fsycl-is-device"),
3547flagpd1("fsycl-is-host"),
34403548flagpd1("fsyntax-only"),
34413549flagpd1("fsystem-module"),
34423550sepd1("ftabstop"),
......@@ -3491,6 +3599,7 @@ flagpd1("fvariable-expansion-in-unroller"),
34913599flagpd1("fvect-cost-model"),
34923600flagpd1("fvectorize"),
34933601flagpd1("fverbose-asm"),
3602flagpd1("fverify-debuginfo-preserve"),
34943603flagpd1("fvirtual-function-elimination"),
34953604sepd1("fvisibility"),
34963605flagpd1("fvisibility-from-dllstorageclass"),
......@@ -3506,6 +3615,7 @@ flagpd1("fwhole-program-vtables"),
35063615flagpd1("fwrapv"),
35073616flagpd1("fwritable-strings"),
35083617flagpd1("fxl-pragma-pack"),
3618flagpd1("fxor-operator"),
35093619flagpd1("fxray-always-emit-customevents"),
35103620flagpd1("fxray-always-emit-typedevents"),
35113621flagpd1("fxray-function-index"),
......@@ -3537,6 +3647,7 @@ sepd1("gcc-toolchain"),
35373647flagpd1("gcodeview"),
35383648flagpd1("gcodeview-ghash"),
35393649flagpd1("gcolumn-info"),
3650flagpd1("gdbx"),
35403651flagpd1("gdwarf"),
35413652flagpd1("gdwarf32"),
35423653flagpd1("gdwarf64"),
......@@ -3577,6 +3688,14 @@ flagpd1("gno-pubnames"),
35773688flagpd1("gno-record-command-line"),
35783689flagpd1("gno-split-dwarf"),
35793690flagpd1("gno-strict-dwarf"),
3691.{
3692 .name = "gpu-bundle-output",
3693 .syntax = .flag,
3694 .zig_equivalent = .other,
3695 .pd1 = false,
3696 .pd2 = true,
3697 .psl = false,
3698},
35803699.{
35813700 .name = "gpu-use-aux-triple-only",
35823701 .syntax = .flag,
......@@ -3627,6 +3746,12 @@ flagpd1("m32"),
36273746flagpd1("m3dnow"),
36283747flagpd1("m3dnowa"),
36293748flagpd1("m64"),
3749flagpd1("m68000"),
3750flagpd1("m68010"),
3751flagpd1("m68020"),
3752flagpd1("m68030"),
3753flagpd1("m68040"),
3754flagpd1("m68060"),
36303755flagpd1("m80387"),
36313756flagpd1("mseses"),
36323757flagpd1("mabi=ieeelongdouble"),
......@@ -3639,6 +3764,7 @@ sepd1("main-file-name"),
36393764flagpd1("maix-struct-return"),
36403765flagpd1("malign-double"),
36413766flagpd1("maltivec"),
3767flagpd1("mamdgpu-ieee"),
36423768flagpd1("mamx-bf16"),
36433769flagpd1("mamx-tile"),
36443770flagpd1("marm"),
......@@ -3804,6 +3930,7 @@ flagpd1("mno-abicalls"),
38043930flagpd1("mno-adx"),
38053931flagpd1("mno-aes"),
38063932flagpd1("mno-altivec"),
3933flagpd1("mno-amdgpu-ieee"),
38073934flagpd1("mno-amx-bf16"),
38083935flagpd1("mno-amx-int8"),
38093936flagpd1("mno-amx-tile"),
......@@ -3915,7 +4042,6 @@ flagpd1("mno-pascal-strings"),
39154042flagpd1("mno-pclmul"),
39164043flagpd1("mno-pconfig"),
39174044flagpd1("mno-pcrel"),
3918flagpd1("mno-pie-copy-relocations"),
39194045flagpd1("mno-pku"),
39204046flagpd1("mno-popcnt"),
39214047flagpd1("mno-popcntd"),
......@@ -3923,6 +4049,7 @@ flagpd1("mno-power10-vector"),
39234049flagpd1("mno-power8-vector"),
39244050flagpd1("mno-power9-vector"),
39254051flagpd1("mno-prefetchwt1"),
4052flagpd1("mno-prefixed"),
39264053flagpd1("mno-prfchw"),
39274054flagpd1("mno-ptwrite"),
39284055flagpd1("mno-pure-code"),
......@@ -3970,12 +4097,12 @@ flagpd1("mno-stack-arg-probe"),
39704097flagpd1("mno-stackrealign"),
39714098flagpd1("mno-tail-call"),
39724099flagpd1("mno-tbm"),
4100flagpd1("mno-tgsplit"),
39734101flagpd1("mno-thumb"),
39744102flagpd1("mno-tls-direct-seg-refs"),
39754103flagpd1("mno-tsxldtrk"),
39764104flagpd1("mno-uintr"),
39774105flagpd1("mno-unaligned-access"),
3978flagpd1("mno-unimplemented-simd128"),
39794106flagpd1("mno-unsafe-fp-atomics"),
39804107flagpd1("mno-vaes"),
39814108flagpd1("mno-virt"),
......@@ -4006,8 +4133,10 @@ flagpd1("mnvj"),
40064133flagpd1("mnvs"),
40074134flagpd1("modd-spreg"),
40084135sepd1("module-dependency-dir"),
4136sepd1("module-dir"),
40094137flagpd1("module-file-deps"),
40104138flagpd1("module-file-info"),
4139sepd1("module-suffix"),
40114140flagpd1("momit-leaf-frame-pointer"),
40124141flagpd1("moutline"),
40134142flagpd1("moutline-atomics"),
......@@ -4018,7 +4147,6 @@ flagpd1("mpascal-strings"),
40184147flagpd1("mpclmul"),
40194148flagpd1("mpconfig"),
40204149flagpd1("mpcrel"),
4021flagpd1("mpie-copy-relocations"),
40224150flagpd1("mpku"),
40234151flagpd1("mpopcnt"),
40244152flagpd1("mpopcntd"),
......@@ -4027,7 +4155,9 @@ flagpd1("mcrypto"),
40274155flagpd1("mpower8-vector"),
40284156flagpd1("mpower9-vector"),
40294157flagpd1("mprefetchwt1"),
4158flagpd1("mprefixed"),
40304159flagpd1("mprfchw"),
4160flagpd1("mprivileged"),
40314161flagpd1("mptwrite"),
40324162flagpd1("mpure-code"),
40334163flagpd1("mqdsp6-compat"),
......@@ -4062,6 +4192,7 @@ sepd1("mrelocation-model"),
40624192flagpd1("mrestrict-it"),
40634193flagpd1("mretpoline"),
40644194flagpd1("mretpoline-external-thunk"),
4195flagpd1("mrop-protect"),
40654196flagpd1("mrtd"),
40664197flagpd1("mrtm"),
40674198flagpd1("msahf"),
......@@ -4096,6 +4227,7 @@ sepd1("mt-migrate-directory"),
40964227flagpd1("mtail-call"),
40974228flagpd1("mamx-int8"),
40984229flagpd1("mtbm"),
4230flagpd1("mtgsplit"),
40994231sepd1("mthread-model"),
41004232flagpd1("mthumb"),
41014233flagpd1("mtls-direct-seg-refs"),
......@@ -4108,7 +4240,6 @@ flagpd1("multi_module"),
41084240sepd1("multiply_defined"),
41094241sepd1("multiply_defined_unused"),
41104242flagpd1("munaligned-access"),
4111flagpd1("munimplemented-simd128"),
41124243flagpd1("munsafe-fp-atomics"),
41134244flagpd1("munwind-tables"),
41144245flagpd1("mv5"),
......@@ -4119,6 +4250,7 @@ flagpd1("mv65"),
41194250flagpd1("mv66"),
41204251flagpd1("mv67"),
41214252flagpd1("mv67t"),
4253flagpd1("mv68"),
41224254flagpd1("mvaes"),
41234255flagpd1("mvirt"),
41244256flagpd1("mvpclmulqdq"),
......@@ -4163,6 +4295,14 @@ flagpd1("no-cpp-precomp"),
41634295 .psl = false,
41644296},
41654297flagpd1("no-emit-llvm-uselists"),
4298.{
4299 .name = "no-gpu-bundle-output",
4300 .syntax = .flag,
4301 .zig_equivalent = .other,
4302 .pd1 = false,
4303 .pd2 = true,
4304 .psl = false,
4305},
41664306flagpd1("no-implicit-float"),
41674307.{
41684308 .name = "no-integrated-cpp",
......@@ -4189,6 +4329,7 @@ flagpd1("no-implicit-float"),
41894329 .psl = false,
41904330},
41914331flagpd1("no-pthread"),
4332flagpd1("no-round-trip-args"),
41924333flagpd1("no-struct-path-tbaa"),
41934334flagpd1("nobuiltininc"),
41944335flagpd1("nocpp"),
......@@ -4370,6 +4511,14 @@ flagpd1("print-ivar-layout"),
43704511 .pd2 = true,
43714512 .psl = false,
43724513},
4514.{
4515 .name = "print-multiarch",
4516 .syntax = .flag,
4517 .zig_equivalent = .other,
4518 .pd1 = true,
4519 .pd2 = true,
4520 .psl = false,
4521},
43734522flagpd1("print-preamble"),
43744523.{
43754524 .name = "print-resource-dir",
......@@ -4379,6 +4528,22 @@ flagpd1("print-preamble"),
43794528 .pd2 = true,
43804529 .psl = false,
43814530},
4531.{
4532 .name = "print-rocm-search-dirs",
4533 .syntax = .flag,
4534 .zig_equivalent = .other,
4535 .pd1 = true,
4536 .pd2 = true,
4537 .psl = false,
4538},
4539.{
4540 .name = "print-runtime-dir",
4541 .syntax = .flag,
4542 .zig_equivalent = .other,
4543 .pd1 = true,
4544 .pd2 = true,
4545 .psl = false,
4546},
43824547.{
43834548 .name = "print-search-dirs",
43844549 .syntax = .flag,
......@@ -4442,6 +4607,7 @@ flagpd1("rewrite-legacy-objc"),
44424607flagpd1("rewrite-macros"),
44434608flagpd1("rewrite-objc"),
44444609flagpd1("rewrite-test"),
4610flagpd1("round-trip-args"),
44454611sepd1("rpath"),
44464612.{
44474613 .name = "s",
......@@ -4560,9 +4726,9 @@ flagpd1("single_module"),
45604726},
45614727sepd1("split-dwarf-file"),
45624728sepd1("split-dwarf-output"),
4563flagpd1("split-stacks"),
45644729sepd1("stack-protector"),
45654730sepd1("stack-protector-buffer-size"),
4731sepd1("stack-usage-file"),
45664732.{
45674733 .name = "static",
45684734 .syntax = .flag,
......@@ -4662,6 +4828,7 @@ sepd1("weak_framework"),
46624828sepd1("weak_library"),
46634829sepd1("weak_reference_mismatches"),
46644830flagpd1("whatsloaded"),
4831flagpd1("why_load"),
46654832flagpd1("whyload"),
46664833.{
46674834 .name = "z",
......@@ -4675,30 +4842,66 @@ joinpd1("fsanitize-undefined-strip-path-components="),
46754842joinpd1("fopenmp-cuda-teams-reduction-recs-num="),
46764843joinpd1("fvisibility-externs-nodllstorageclass="),
46774844joinpd1("analyzer-config-compatibility-mode="),
4845joinpd1("fsanitize-address-use-after-return="),
4846.{
4847 .name = "fsanitize-address-use-after-return",
4848 .syntax = .joined,
4849 .zig_equivalent = .other,
4850 .pd1 = true,
4851 .pd2 = false,
4852 .psl = true,
4853},
46784854joinpd1("ftrivial-auto-var-init-stop-after="),
4855joinpd1("fverify-debuginfo-preserve-export="),
46794856joinpd1("fpatchable-function-entry-offset="),
46804857joinpd1("analyzer-inline-max-stack-depth="),
46814858joinpd1("fsanitize-address-field-padding="),
4859.{
4860 .name = "fno-sanitize-address-vcasan-lib",
4861 .syntax = .joined,
4862 .zig_equivalent = .other,
4863 .pd1 = true,
4864 .pd2 = false,
4865 .psl = true,
4866},
46824867joinpd1("fdiagnostics-hotness-threshold="),
46834868joinpd1("fsanitize-memory-track-origins="),
46844869joinpd1("mwatchos-simulator-version-min="),
4870joinpd1("fsanitize-coverage-ignorelist="),
46854871joinpd1("fvisibility-externs-dllimport="),
46864872joinpd1("fvisibility-nodllstorageclass="),
46874873joinpd1("fxray-selected-function-group="),
46884874joinpd1("mappletvsimulator-version-min="),
46894875joinpd1("mstack-protector-guard-offset="),
4876.{
4877 .name = "sourceDependencies:directives",
4878 .syntax = .joined_or_separate,
4879 .zig_equivalent = .other,
4880 .pd1 = true,
4881 .pd2 = false,
4882 .psl = true,
4883},
46904884joinpd1("fsanitize-coverage-whitelist="),
46914885joinpd1("fsanitize-coverage-blacklist="),
46924886joinpd1("fobjc-nonfragile-abi-version="),
46934887joinpd1("fprofile-instrument-use-path="),
46944888joinpd1("fsanitize-coverage-allowlist="),
4695joinpd1("fsanitize-coverage-blocklist="),
46964889jspd1("fxray-instrumentation-bundle="),
46974890joinpd1("miphonesimulator-version-min="),
4891joinpd1("fsanitize-address-destructor="),
46984892joinpd1("faddress-space-map-mangling="),
46994893joinpd1("foptimization-record-passes="),
4894joinpd1("fsanitize-system-ignorelist="),
47004895joinpd1("ftest-module-file-extension="),
47014896jspd1("fxray-instruction-threshold="),
4897.{
4898 .name = "libomptarget-amdgcn-bc-path=",
4899 .syntax = .joined,
4900 .zig_equivalent = .other,
4901 .pd1 = false,
4902 .pd2 = true,
4903 .psl = false,
4904},
47024905joinpd1("mno-default-build-attributes"),
47034906joinpd1("mtvos-simulator-version-min="),
47044907joinpd1("mwatchsimulator-version-min="),
......@@ -4711,12 +4914,12 @@ joinpd1("mwatchsimulator-version-min="),
47114914 .psl = false,
47124915},
47134916joinpd1("objcmt-white-list-dir-path="),
4917joinpd1("fsanitize-system-blacklist="),
47144918joinpd1("error-on-deserialized-decl="),
47154919joinpd1("fconstexpr-backtrace-limit="),
47164920joinpd1("fdiagnostics-show-category="),
47174921joinpd1("fdiagnostics-show-location="),
47184922joinpd1("fopenmp-cuda-blocks-per-sm="),
4719joinpd1("fsanitize-system-blacklist="),
47204923jspd1("fxray-instruction-threshold"),
47214924joinpd1("headerpad_max_install_names"),
47224925.{
......@@ -4737,6 +4940,7 @@ joinpd1("mstack-protector-guard-reg="),
47374940 .pd2 = true,
47384941 .psl = false,
47394942},
4943joinpd1("fcoverage-compilation-dir="),
47404944joinpd1("fms-compatibility-version="),
47414945joinpd1("fopenmp-cuda-number-of-sm="),
47424946joinpd1("foptimization-record-file="),
......@@ -4836,6 +5040,8 @@ joinpd1("Wnonportable-cfstrings"),
48365040joinpd1("fbasic-block-sections="),
48375041joinpd1("fdefault-calling-conv="),
48385042joinpd1("fdenormal-fp-math-f32="),
5043joinpd1("ffile-compilation-dir="),
5044joinpd1("fgpu-inline-threshold="),
48395045joinpd1("fmax-subrecord-length="),
48405046joinpd1("fmodules-ignore-macro="),
48415047.{
......@@ -4860,6 +5066,7 @@ joinpd1("analyzer-constraints="),
48605066joinpd1("analyzer-dump-egraph="),
48615067jspd1("compatibility_version"),
48625068jspd1("dylinker_install_name"),
5069joinpd1("fcoverage-prefix-map="),
48635070joinpd1("fcs-profile-generate="),
48645071joinpd1("fmodules-prune-after="),
48655072.{
......@@ -4870,6 +5077,7 @@ joinpd1("fmodules-prune-after="),
48705077 .pd2 = false,
48715078 .psl = false,
48725079},
5080joinpd1("fsanitize-ignorelist="),
48735081jspd1("iframeworkwithsysroot"),
48745082joinpd1("mcode-object-version="),
48755083joinpd1("mpad-max-prefix-size="),
......@@ -4900,6 +5108,8 @@ joinpd1("mwatchos-version-min="),
49005108 .pd2 = true,
49015109 .psl = false,
49025110},
5111joinpd1("faltivec-src-compat="),
5112joinpd1("fsanitize-blacklist="),
49035113.{
49045114 .name = "hip-device-lib-path=",
49055115 .syntax = .joined,
......@@ -4915,9 +5125,7 @@ joinpd1("fmax-stack-var-size="),
49155125joinpd1("fmodules-cache-path="),
49165126joinpd1("fmodules-embed-file="),
49175127joinpd1("fprofile-instrument="),
4918joinpd1("fprofile-prefix-map="),
49195128joinpd1("fprofile-sample-use="),
4920joinpd1("fsanitize-blacklist="),
49215129joinpd1("mmacosx-version-min="),
49225130.{
49235131 .name = "no-cuda-include-ptx=",
......@@ -4932,6 +5140,7 @@ joinpd1("code-completion-at="),
49325140joinpd1("coverage-data-file="),
49335141joinpd1("fblas-matmul-limit="),
49345142joinpd1("fdiagnostics-color="),
5143joinpd1("ffixed-line-length="),
49355144joinpd1("ffixed-line-length-"),
49365145joinpd1("flimited-precision="),
49375146joinpd1("fprofile-instr-use="),
......@@ -4964,6 +5173,14 @@ joinpd1("target-sdk-version="),
49645173 .pd2 = false,
49655174 .psl = true,
49665175},
5176.{
5177 .name = "sourceDependencies",
5178 .syntax = .joined_or_separate,
5179 .zig_equivalent = .other,
5180 .pd1 = true,
5181 .pd2 = false,
5182 .psl = true,
5183},
49675184.{
49685185 .name = "include-directory=",
49695186 .syntax = .joined,
......@@ -4994,6 +5211,7 @@ joinpd1("fcompile-resource="),
49945211joinpd1("fdebug-prefix-map="),
49955212joinpd1("fdenormal-fp-math="),
49965213joinpd1("fexcess-precision="),
5214joinpd1("fextend-arguments="),
49975215joinpd1("ffree-line-length-"),
49985216joinpd1("fmacro-prefix-map="),
49995217.{
......@@ -5023,6 +5241,14 @@ joinpd1("msmall-data-limit="),
50235241joinpd1("mstack-probe-size="),
50245242joinpd1("mtvos-version-min="),
50255243joinpd1("working-directory="),
5244.{
5245 .name = "amdgpu-arch-tool=",
5246 .syntax = .joined,
5247 .zig_equivalent = .other,
5248 .pd1 = false,
5249 .pd2 = true,
5250 .psl = false,
5251},
50265252joinpd1("analyze-function="),
50275253joinpd1("analyzer-checker="),
50285254joinpd1("coverage-version="),
......@@ -5041,6 +5267,7 @@ joinpd1("ffile-prefix-map="),
50415267joinpd1("fmodule-map-file="),
50425268joinpd1("fobjc-arc-cxxlib="),
50435269joinpd1("fproc-stat-report"),
5270joinpd1("fwarn-stack-size="),
50445271jspd1("iwithprefixbefore"),
50455272joinpd1("malign-functions="),
50465273joinpd1("mios-version-min="),
......@@ -5055,6 +5282,22 @@ joinpd1("msve-vector-bits="),
50555282 .psl = false,
50565283},
50575284jspd1("working-directory"),
5285.{
5286 .name = "headerUnit:angle",
5287 .syntax = .joined_or_separate,
5288 .zig_equivalent = .other,
5289 .pd1 = true,
5290 .pd2 = false,
5291 .psl = true,
5292},
5293.{
5294 .name = "headerUnit:quote",
5295 .syntax = .joined_or_separate,
5296 .zig_equivalent = .other,
5297 .pd1 = true,
5298 .pd2 = false,
5299 .psl = true,
5300},
50585301joinpd1("analyzer-output="),
50595302.{
50605303 .name = "config-user-dir=",
......@@ -5198,6 +5441,14 @@ joinpd1("preamble-bytes="),
51985441 .pd2 = false,
51995442 .psl = false,
52005443},
5444.{
5445 .name = "vctoolsversion",
5446 .syntax = .joined_or_separate,
5447 .zig_equivalent = .other,
5448 .pd1 = true,
5449 .pd2 = false,
5450 .psl = true,
5451},
52015452.{
52025453 .name = "bootclasspath=",
52035454 .syntax = .joined,
......@@ -5261,6 +5512,30 @@ joinpd1("vtordisp-mode="),
52615512joinpd1("Rpass-missed="),
52625513joinpd1("Wlarger-than-"),
52635514joinpd1("Wlarger-than="),
5515.{
5516 .name = "experimental:",
5517 .syntax = .joined,
5518 .zig_equivalent = .other,
5519 .pd1 = true,
5520 .pd2 = false,
5521 .psl = true,
5522},
5523.{
5524 .name = "external:env:",
5525 .syntax = .joined,
5526 .zig_equivalent = .other,
5527 .pd1 = true,
5528 .pd2 = false,
5529 .psl = true,
5530},
5531.{
5532 .name = "winsdkversion",
5533 .syntax = .joined_or_separate,
5534 .zig_equivalent = .other,
5535 .pd1 = true,
5536 .pd2 = false,
5537 .psl = true,
5538},
52645539.{
52655540 .name = "define-macro=",
52665541 .syntax = .joined,
......@@ -5295,6 +5570,7 @@ joinpd1("fmsc-version="),
52955570 .pd2 = false,
52965571 .psl = false,
52975572},
5573joinpd1("foffload-lto="),
52985574joinpd1("fpack-struct="),
52995575joinpd1("fpass-plugin="),
53005576joinpd1("fprofile-dir="),
......@@ -5392,6 +5668,14 @@ jspd1("sub_umbrella"),
53925668 .pd2 = false,
53935669 .psl = true,
53945670},
5671.{
5672 .name = "headerName:",
5673 .syntax = .joined,
5674 .zig_equivalent = .other,
5675 .pd1 = true,
5676 .pd2 = false,
5677 .psl = true,
5678},
53955679.{
53965680 .name = "for-linker=",
53975681 .syntax = .joined,
......@@ -5467,6 +5751,22 @@ jspd1("sub_library"),
54675751 .pd2 = false,
54685752 .psl = true,
54695753},
5754.{
5755 .name = "external:I",
5756 .syntax = .joined_or_separate,
5757 .zig_equivalent = .other,
5758 .pd1 = true,
5759 .pd2 = false,
5760 .psl = true,
5761},
5762.{
5763 .name = "headerUnit",
5764 .syntax = .joined_or_separate,
5765 .zig_equivalent = .other,
5766 .pd1 = true,
5767 .pd2 = false,
5768 .psl = true,
5769},
54705770.{
54715771 .name = "vctoolsdir",
54725772 .syntax = .joined_or_separate,
......@@ -5475,6 +5775,14 @@ jspd1("sub_library"),
54755775 .pd2 = false,
54765776 .psl = true,
54775777},
5778.{
5779 .name = "winsysroot",
5780 .syntax = .joined_or_separate,
5781 .zig_equivalent = .other,
5782 .pd1 = true,
5783 .pd2 = false,
5784 .psl = true,
5785},
54785786.{
54795787 .name = "classpath=",
54805788 .syntax = .joined,
......@@ -5503,6 +5811,7 @@ joinpd1("flto-jobs="),
55035811 .pd2 = false,
55045812 .psl = false,
55055813},
5814joinpd1("fuse-cuid="),
55065815jspd1("iframework"),
55075816joinpd1("mtls-size="),
55085817.{
......@@ -5530,6 +5839,30 @@ joinpd1("segs_read_"),
55305839 .pd2 = false,
55315840 .psl = true,
55325841},
5842.{
5843 .name = "external:",
5844 .syntax = .joined,
5845 .zig_equivalent = .other,
5846 .pd1 = true,
5847 .pd2 = false,
5848 .psl = true,
5849},
5850.{
5851 .name = "reference",
5852 .syntax = .joined_or_separate,
5853 .zig_equivalent = .other,
5854 .pd1 = true,
5855 .pd2 = false,
5856 .psl = true,
5857},
5858.{
5859 .name = "winsdkdir",
5860 .syntax = .joined_or_separate,
5861 .zig_equivalent = .other,
5862 .pd1 = true,
5863 .pd2 = false,
5864 .psl = true,
5865},
55335866.{
55345867 .name = "encoding=",
55355868 .syntax = .joined,
......@@ -5566,8 +5899,17 @@ joinpd1("ast-dump="),
55665899jspd1("c-isystem"),
55675900joinpd1("fcoarray="),
55685901joinpd1("fconvert="),
5902joinpd1("fc++-abi="),
55695903joinpd1("fextdirs="),
55705904joinpd1("ftabstop="),
5905.{
5906 .name = "hip-path=",
5907 .syntax = .joined,
5908 .zig_equivalent = .other,
5909 .pd1 = false,
5910 .pd2 = true,
5911 .psl = false,
5912},
55715913jspd1("idirafter"),
55725914joinpd1("mregparm="),
55735915joinpd1("sycl-std="),
......@@ -5731,6 +6073,14 @@ joinpd1("Rpass="),
57316073 .pd2 = false,
57326074 .psl = false,
57336075},
6076.{
6077 .name = "await:",
6078 .syntax = .joined,
6079 .zig_equivalent = .other,
6080 .pd1 = true,
6081 .pd2 = false,
6082 .psl = true,
6083},
57346084.{
57356085 .name = "clang:",
57366086 .syntax = .joined,
......@@ -5858,6 +6208,7 @@ jspd1("Ttext"),
58586208 .pd2 = true,
58596209 .psl = false,
58606210},
6211joinpd1("cuid="),
58616212.{
58626213 .name = "flto=",
58636214 .syntax = .joined,
src/main.zig+4
......@@ -1290,6 +1290,8 @@ fn buildOutputType(
12901290 .no_red_zone => want_red_zone = false,
12911291 .omit_frame_pointer => omit_frame_pointer = true,
12921292 .no_omit_frame_pointer => omit_frame_pointer = false,
1293 .function_sections => function_sections = true,
1294 .no_function_sections => function_sections = false,
12931295 .unwind_tables => want_unwind_tables = true,
12941296 .no_unwind_tables => want_unwind_tables = false,
12951297 .nostdlib => ensure_libc_on_non_freestanding = false,
......@@ -3821,6 +3823,8 @@ pub const ClangArgIterator = struct {
38213823 strip,
38223824 exec_model,
38233825 emit_llvm,
3826 function_sections,
3827 no_function_sections,
38243828 };
38253829
38263830 const Args = struct {
tools/update_clang_options.zig+8
......@@ -308,6 +308,14 @@ const known_options = [_]KnownOpt{
308308 .name = "fno-omit-frame-pointer",
309309 .ident = "no_omit_frame_pointer",
310310 },
311 .{
312 .name = "ffunction-sections",
313 .ident = "function_sections",
314 },
315 .{
316 .name = "fno-function-sections",
317 .ident = "no_function_sections",
318 },
311319 .{
312320 .name = "MD",
313321 .ident = "dep_file",