[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug ada/40926]  New: Ada errors in trunk
From:       "xenofears at gmail dot com" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2009-07-31 21:49:08
Message-ID: bug-40926-17864 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

These are not new, at least the ones in output.adb / ads. As for prj-proc.adb,
I removed the new Current_Item_Name. I know little to nothing about programming
in ada and how to fix it so that the output works in showing the
Current_Item_Name. 

These seem like normal errors and don't know why they would only come up as
errors on x86_64-w64-mingw32 target (Assumedly, because they still exist after
a relatively long time, and look like normal errors.) It is likely some fail if
warning switch is on.

ADA Error Log:
gcc -c -I./ -I/usr/lib/gcc/x86_64-linux-gnu/4.3.3/adalib/../adainclude
-I/usr/lib/gcc/x86_64-linux-gnu/4.3.3/adalib/ -I.
-I/home/peter/build/GCC/gcc-trunk/gcc/ada -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -gnatpg -gnata -I-
/home/peter/mount/GCC/gcc-trunk/gcc/ada/prj-proc.adb
prj-proc.adb:1831:31: argument for pragma "Assert" must be a static expression
prj-proc.adb:1832:33: non-static function call (RM 4.9(6,18))
prj-proc.adb:1832:50: "Current_Item_Name" is not a static constant (RM 4.9(5))
gnatmake: "/home/peter/mount/GCC/gcc-trunk/gcc/ada/prj-proc.adb" compilation
error
make[3]: *** [gnatmake-re] Error 4
make[3]: Leaving directory
`/home/peter/mount/GCC/gcc-trunk/build-linux-150195-20090729/gcc/ada/tools'
make[2]: *** [gnattools-cross] Error 2
make[2]: Leaving directory
`/home/peter/mount/GCC/gcc-trunk/build-linux-150195-20090729/gnattools'


gcc -c -I./ -I/usr/lib/gcc/x86_64-linux-gnu/4.3.3/adalib/../adainclude
-I/usr/lib/gcc/x86_64-linux-gnu/4.3.3/adalib/ -I.
-I/home/peter/build/GCC/gcc-trunk/gcc/ada -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -gnatpg -gnata -I-
/home/peter/mount/GCC/gcc-trunk/gcc/ada/output.adb
output.adb:166:29: warning: formal parameter "S" is not referenced
gnatmake: "/home/peter/mount/GCC/gcc-trunk/gcc/ada/output.adb" compilation
error
make[3]: *** [gnatmake-re] Error 4
make[3]: Leaving directory
`/home/peter/mount/GCC/gcc-trunk/build-linux-150195-20090729/gcc/ada/tools'

Patches: (I don't seem to be able to attach files)

diff original/output.adb patched/output.adb
166c166
<    procedure Ignore_Output (S : String) is
---
>    procedure Ignore_Output  is
diff original/output.ads patched/output.ads
69c69
<    procedure Ignore_Output (S : String);
---
>    procedure Ignore_Output;


diff original/prj-proc.adb patched/prj-proc.adb
1831,1832c1831
<                               "illegal attribute declaration for "
<                               & Get_Name_String (Current_Item_Name));
---
>                               "illegal attribute declaration");


-- 
           Summary: Ada errors in trunk
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: xenofears at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu, x86_64-w64-mingw32
GCC target triplet: x86_64-w64-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40926

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic