aboutsummaryrefslogtreecommitdiff
path: root/gcc/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/acinclude.m4')
-rw-r--r--gcc/acinclude.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4
index ca48202..764c7d1 100644
--- a/gcc/acinclude.m4
+++ b/gcc/acinclude.m4
@@ -481,6 +481,11 @@ AC_DEFUN([gcc_GAS_FLAGS],
dnl Always pass -arch ppc to assembler.
gcc_cv_as_flags="-arch ppc"
;;
+ amdgcn*)
+ dnl Currently, only the llvm-mc assembler is supported.
+ dnl Add flags to ensure an amdgcn ELF file is written.
+ gcc_cv_as_flags="--filetype=obj -triple=amdgcn--amdhsa"
+ ;;
*)
gcc_cv_as_flags=" "
;;