File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,11 @@ void tools::gnutools::Assembler::ConstructJob(Compilation &C,
849
849
normalizeCPUNamesForAssembler (Args, CmdArgs);
850
850
851
851
Args.AddLastArg (CmdArgs, options::OPT_mfpu_EQ);
852
+ // The integrated assembler doesn't implement e_flags setting behavior for
853
+ // -meabi=gnu (gcc -mabi={apcs-gnu,atpcs} passes -meabi=gnu to gas). For
854
+ // compatibility we accept but warn.
855
+ if (Arg *A = Args.getLastArgNoClaim (options::OPT_mabi_EQ))
856
+ A->ignoreTargetSpecific ();
852
857
break ;
853
858
}
854
859
case llvm::Triple::aarch64:
Original file line number Diff line number Diff line change 64
64
65
65
// RUN: %clang --target=arm---gnueabi -mabi=aapcs -x assembler %s -### -o /dev/null 2>&1 \
66
66
// RUN: | FileCheck --check-prefix=CHECK-ASM %s
67
+ // RUN: %clang --target=arm---gnueabi -mabi=aapcs -x assembler %s -### -o /dev/null -fno-integrated-as 2>&1 \
68
+ // RUN: | FileCheck --check-prefix=CHECK-ASM %s
67
69
68
70
/// The combination -x assember & -mabi is not implemented, but for GCC compatibility we accept with a warning.
69
71
// CHECK-ASM: warning: argument unused during compilation: '-mabi={{.*}}'
Original file line number Diff line number Diff line change 15
15
// RUN: | FileCheck -check-prefix=CHECK-ARM-MFPU %s
16
16
// CHECK-ARM-MFPU: as{{(.exe)?}}" "-EL" "-mfloat-abi=soft" "-mfpu=neon"
17
17
//
18
- // RUN: %clang -target arm-linux -march=armv7-a -### \
18
+ // RUN: %clang -- target= arm-linux -march=armv7-a -mabi=aapcs-linux -### \
19
19
// RUN: -no-integrated-as -c %s 2>&1 \
20
20
// RUN: | FileCheck -check-prefix=CHECK-ARM-MARCH %s
21
21
// CHECK-ARM-MARCH: as{{(.exe)?}}" "-EL" "-mfloat-abi=soft" "-march=armv7-a"
22
+ // CHECK-ARM-MARCH-NOT: "-mabi=
22
23
//
23
24
// RUN: %clang -target armeb-linux -mlittle-endian -mcpu=cortex-a8 -mfpu=neon -march=armv7-a -### \
24
25
// RUN: -no-integrated-as -c %s 2>&1 \
You can’t perform that action at this time.
0 commit comments