Skip to content

Commit

Permalink
Emit the Tag_ABI_VFP attribute appropriate to the calling conventions…
Browse files Browse the repository at this point in the history
… used

Fixes: #461
  • Loading branch information
xavierleroy committed Nov 21, 2022
1 parent 5b80eaa commit 1d14f7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arm/TargetPrinter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,12 @@ struct
| _ -> "armv7");
fprintf oc " .fpu %s\n"
(if Opt.vfpv3 then "vfpv3-d16" else "vfpv2");
fprintf oc " .%s\n" (if !Clflags.option_mthumb then "thumb" else "arm");
fprintf oc " .eabi_attribute Tag_ABI_VFP_args, %d\n"
(match Configuration.abi with
| "hardfloat" -> 1
| _ -> 0);
fprintf oc " .%s\n"
(if !Clflags.option_mthumb then "thumb" else "arm");
if !Clflags.option_g then begin
section oc Section_text;
cfi_section oc
Expand Down

0 comments on commit 1d14f7a

Please sign in to comment.