This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This change prevents Put_SCOs from emitting a spurious blank line in the ALI file in case the length of a statements line is congruent to 0 modulo 6. The following compilation must not produce any blank line in the middle of C lines. $ gcc -c -gnateS blank_line_in_scos.adb package Blank_Line_In_SCOs is package Nest1 is X : Integer; end Nest1; procedure Pr; pragma Precondition (True); package Nest2 is Y : Integer; end Nest2; package Nest3 is X1 : Integer; X2 : Integer; X3 : Integer; X4 : Integer; X5 : Integer; X6 : Integer; end Nest3; package Nest4 is Z : Integer; end Nest4; end Blank_Line_In_SCOs; package body Blank_Line_In_SCOs is procedure Pr is begin null; end; end Blank_Line_In_SCOs; Tested on x86_64-pc-linux-gnu, committed on trunk 2011-08-29 Thomas Quinot <quinot@adacore.com> * put_scos.adb (Put_SCOs): Do not emit a newline for an empty statements line.
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |