aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2021-10-28 10:07:46 +0100
committerDavid Spickett <david.spickett@linaro.org>2021-10-28 10:53:48 +0100
commit8fae4f6e49b035e02c3369fd22baef1dbb6a0f6b (patch)
tree33cb50fac59a67295e6fed4755efcb66cf4abb25
parentfba8ac8c636b668dbb301fea8b960e8eb1630d50 (diff)
spec2xxx-config: Don't emit .ident in assembly
It just creates noise if you're diffing many files that are otherwise the same. https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-qn Using -Qn because that's the name GCC also supports. (though GCC says it's the default anyway) Change-Id: Ife0c49983da9b10845cfcec716ef7cb243ffce68
-rwxr-xr-xspec2xxx-config4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec2xxx-config b/spec2xxx-config
index be75727..248a6d1 100755
--- a/spec2xxx-config
+++ b/spec2xxx-config
@@ -194,7 +194,9 @@ if [ x"$ld_flags" = x"default" ]; then
fi
if $save_temps; then
- cc_flags="$cc_flags -save-temps=obj"
+ # -Qn means we don't emit ".ident" lines in assembly.
+ # Which would make otherwise identical files show difference.
+ cc_flags="$cc_flags -save-temps=obj -Qn"
save_temps_mark=""
else
save_temps_mark="#"