[PATCH] D88425: Skip -fPIE for AMDGPU and HIP toolchain

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 09:55:32 PDT 2020


tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: clang/test/Driver/hip-fpie-option.hip:34
+
+// DEV-DAG: {{".*clang.*".* "-triple" "amdgcn-amd-amdhsa".* "-mrelocation-model" "pic" "-pic-level" "[1|2]" "-mframe-pointer=all"}}
+// HOST-STATIC-DAG: {{".*clang.*".* "-triple" "x86_64-unknown-linux-gnu".* "-mrelocation-model" "static"}}
----------------
Should there be some sort of `DEV-NOT: -pic-is-pie` instead? This line seems to implicitly rely on -pic-is-pie` would come before `-mframe-pointer` and it's not at all obvious that the key is the absence of `-pic-is-pie`.



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88425/new/

https://reviews.llvm.org/D88425



More information about the cfe-commits mailing list