Index: clang/lib/Driver/ToolChains/Clang.cpp =================================================================== --- clang/lib/Driver/ToolChains/Clang.cpp +++ clang/lib/Driver/ToolChains/Clang.cpp @@ -5880,7 +5880,7 @@ } if (Args.hasFlag(options::OPT_fstack_size_section, - options::OPT_fno_stack_size_section, RawTriple.isPS4())) + options::OPT_fno_stack_size_section, false)) CmdArgs.push_back("-fstack-size-section"); if (Args.hasArg(options::OPT_fstack_usage)) { Index: clang/test/Driver/stack-size-section.c =================================================================== --- clang/test/Driver/stack-size-section.c +++ clang/test/Driver/stack-size-section.c @@ -4,7 +4,7 @@ // CHECK-ABSENT-NOT: -fstack-size-section // RUN: %clang -target x86_64-unknown -fstack-size-section -### 2>&1 | FileCheck %s --check-prefix=CHECK-PRESENT -// RUN: %clang -target x86_64-scei-ps4 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PRESENT +// RUN: %clang -target x86_64-scei-ps4 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ABSENT // CHECK-PRESENT: -fstack-size-section // RUN: %clang -target x86_64-unknown -fstack-size-section -fno-stack-size-section %s -### 2>&1 \