https://gcc.gnu.org/g:e0165e3076848a6d9522fde058b9d689aa81f6fd
commit r17-823-ge0165e3076848a6d9522fde058b9d689aa81f6fd Author: Iain Sandoe <[email protected]> Date: Tue May 26 16:56:12 2026 +0100 ada: Fix build error for POSIX sed. 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 <[email protected]> Diff: --- gcc/ada/xsintnam.sed | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gcc/ada/xsintnam.sed b/gcc/ada/xsintnam.sed index 45c80f41257b..883ac9700be1 100644 --- a/gcc/ada/xsintnam.sed +++ b/gcc/ada/xsintnam.sed @@ -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);
