Skip to content

Commit 1d14f7a

Browse files
committed
Emit the Tag_ABI_VFP attribute appropriate to the calling conventions used
Fixes: #461
1 parent 5b80eaa commit 1d14f7a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arm/TargetPrinter.ml

+6-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,12 @@ struct
579579
| _ -> "armv7");
580580
fprintf oc " .fpu %s\n"
581581
(if Opt.vfpv3 then "vfpv3-d16" else "vfpv2");
582-
fprintf oc " .%s\n" (if !Clflags.option_mthumb then "thumb" else "arm");
582+
fprintf oc " .eabi_attribute Tag_ABI_VFP_args, %d\n"
583+
(match Configuration.abi with
584+
| "hardfloat" -> 1
585+
| _ -> 0);
586+
fprintf oc " .%s\n"
587+
(if !Clflags.option_mthumb then "thumb" else "arm");
583588
if !Clflags.option_g then begin
584589
section oc Section_text;
585590
cfi_section oc

0 commit comments

Comments
 (0)