Description: Disable floating-point contraction on all build modes
 With -Ofast, GCC 14 compiles bar_codes_media.adb into a fused multiply-add
 instruction with a negated operand.  The loongarch64 back end has no
 pattern for it and ICEs with "unrecognizable insn" in extract_insn.
 Appending -ffp-contract=off to the project's Ada switches prevents GCC
 from fusing multiplications and additions.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-10-26

--- ada-bar-codes-005.orig/ada_bar_codes.gpr
+++ ada-bar-codes-005/ada_bar_codes.gpr
@@ -69,7 +69,12 @@ project Ada_Bar_Codes is
       "-gnaty2",      --  Style: check indentation
       "-gnatyO")      --  Style: check O:check overriding indicators
 
-   & Adaflags;
+   & Adaflags
+
+   & ("-ffp-contract=off");  --  Do not fuse multiplications and additions.
+                              --  With -Ofast, GCC 14 ICEs on loongarch64
+                              --  ("unrecognizable insn" on a fused multiply-add
+                              --  with a negated operand).
 
    Compiler_Debug_Options :=
      ("-gnato", "-fno-inline", "-fstack-check", "-g", "-gnatVa") &
