2005-12-05 Thomas Quinot <quinot@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2005 17:20:28 +0000 (17:20 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2005 17:20:28 +0000 (17:20 +0000)
* mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
command line switch overruns the output buffer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108298 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/mlib-utl.adb

index f6512b4..91c6b9c 100644 (file)
@@ -85,9 +85,7 @@ package body MLib.Utl is
 
             --  Make sure the Output buffer does not overflow
 
-            if Line_Length + 1 + Arguments (J)'Length >
-                 Integer (Opt.Max_Line_Length)
-            then
+            if Line_Length + 1 + Arguments (J)'Length > Buffer_Max then
                Write_Eol;
                Line_Length := 0;
             end if;