From: Vincent Celier Date: Tue, 8 Apr 2008 06:51:42 +0000 (+0200) Subject: gnat1drv.adb: Send all messages indicating an error to standard error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f3366c607ea6c93a075d5df16646d6e8ee48bee;p=gcc.git gnat1drv.adb: Send all messages indicating an error to standard error 2008-04-08 Vincent Celier * gnat1drv.adb: Send all messages indicating an error to standard error From-SVN: r134034 --- diff --git a/gcc/ada/gnat1drv.adb b/gcc/ada/gnat1drv.adb index dda21ce8e98..a1552dcb3fa 100644 --- a/gcc/ada/gnat1drv.adb +++ b/gcc/ada/gnat1drv.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -241,11 +241,13 @@ procedure Gnat1drv is if List_Representation_Info /= 0 or else List_Representation_Info_Mechanisms then + Set_Standard_Error; Write_Eol; Write_Str ("cannot generate representation information, no code generated"); Write_Eol; Write_Eol; + Set_Standard_Output; end if; end Check_Rep_Info; @@ -584,6 +586,7 @@ begin -- generate code). if Back_End_Mode = Skip then + Set_Standard_Error; Write_Str ("cannot generate code for "); Write_Str ("file "); Write_Name (Unit_File_Name (Main_Unit)); @@ -627,6 +630,7 @@ begin end if; Write_Eol; + Set_Standard_Output; Sem_Ch13.Validate_Unchecked_Conversions; Sem_Ch13.Validate_Address_Clauses;