]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix build error for POSIX sed.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 26 May 2026 15:56:12 +0000 (16:56 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 27 May 2026 06:41:29 +0000 (07:41 +0100)
We create s-intnam.ads using a sed script.  This uses the a, c and i commands
which (for Posix sed versions) all require syntax like:

[1addr]a\
text
Write text to standard output as described previously.

The current script delimits the text with only a space (rather than \<newline>)
which leads to a build fail since the s-intnam.ads is not created.

gcc/ada/ChangeLog:

* xsintnam.sed: Posix-ify the a, c and i commands.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ada/xsintnam.sed

index 45c80f41257b0a6243d4dcb281eb394930e879bb..883ac9700be18ce8e99c609b6f40b4ab9c4446d6 100644 (file)
@@ -1,8 +1,10 @@
 #Indicate that the output was generated.
-/package Ada.Interrupts.Names/i --  Generated from Ada.Interrupts.Names for use by pragma Interrupt_State
+/package Ada.Interrupts.Names/i\
+--  Generated from Ada.Interrupts.Names for use by pragma Interrupt_State
 
 #Disable style checks.
-/package Ada.Interrupts.Names/i pragma Style_Checks ("N");
+/package Ada.Interrupts.Names/i\
+pragma Style_Checks ("N");
 
 #Turn constants into named numbers.
 s/constant Interrupt_ID/constant/g
@@ -12,7 +14,8 @@ s/package Ada.Interrupts.Names/package System.Interrupt_Names with Preelaborate/
 s/end Ada.Interrupts.Names/end System.Interrupt_Names/g
 
 #Update the copyright header.
-/A D A . I N T E R R U P T S . N A M E S/c --                S Y S T E M . I N T E R R U P T S _ N A M E S             --
+/A D A . I N T E R R U P T S . N A M E S/c\
+--                S Y S T E M . I N T E R R U P T S _ N A M E S             --
 
 #The VxWorks and RTEMS versions of Ada.Interrupts.Names define a Hardware_Interrupts
 #subtype that references Interrupt_ID. Filter the subtype definition.
@@ -23,5 +26,7 @@ s/end Ada.Interrupts.Names/end System.Interrupt_Names/g
 #The VxWorks and RTEMS versions of Ada.Interrupts.Names also don't define any
 #interrupt constants, so just removing the subtype declaration we get an "unused
 #with clause" warning. Silence it.
-/with System.OS_Interface;/i pragma Warnings (Off);
-/with System.OS_Interface;/a pragma Warnings (On);
+/with System.OS_Interface;/i\
+pragma Warnings (Off);
+/with System.OS_Interface;/a\
+pragma Warnings (On);