public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/31744]  New: Ada has way TOO MANY "may be used uninitialized" warnings.
@ 2007-04-29 10:32 rob1weld at aol dot com
  2007-04-30  9:04 ` [Bug ada/31744] " charlet at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rob1weld at aol dot com @ 2007-04-29 10:32 UTC (permalink / raw)
  To: gcc-bugs

I recall Ada compiling with very few warnings on the Cygwin platform. I
recently added Linux to my list of platforms (did not notice these warnings
when compiling for Linux - may or may not be present on Linux platform):

I compiled this on Cygwin with this GCC:

$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs --without-x
--enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter
--disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm
--disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

Partial list of make's output on the platform i686-pc-cygwin :

make[5]: Entering directory
`/cygdrive/c/gcc-4_2-branch-build/stage3-gcc/ada/rts'
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-colire.adb -o a-colire.o
a-colire.adb: In function 'Ada.Command_Line.Remove.Remove_Arguments':
a-colire.adb:112: warning: 'J' may be used uninitialized in this function
a-colire.adb: In function 'Ada.Command_Line.Remove.Remove_Argument':
a-colire.adb:80: warning: 'J' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-direct.adb -o a-direct.o
a-direct.adb: In function 'Ada.Directories.Create_Path':
a-direct.adb:305: warning: 'J' may be used uninitialized in this function
a-direct.adb:305: warning: 'S94b.145' may be used uninitialized in this
function
a-direct.adb:287: warning: 'New_Dir.140' may be used uninitialized in this
function
a-direct.adb:288: warning: 'Last' may be used uninitialized in this function
a-direct.adb: In function 'Ada.Directories.Start_Search':
a-direct.adb:960: warning: 'R301b' may be used uninitialized in this function
a-direct.adb:971: warning: 'R326b' may be used uninitialized in this function
'R155b.P_ARRAYa-direct.adb: In function 'Ada.Directories.Fetch_Next_Entry':
a-direct.adb:535: warning: ' may be used uninitialized in this function
a-direct.adb:535: warning: 'R158b' may be used uninitialized in this function
a-direct.adb:535: warning: 'R157b' may be used uninitialized in this function
a-direct.adb:512: warning: 'Last' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-envvar.adb -o a-envvar.o
a-envvar.adb: In function 'Ada.Environment_Variables.Iterate':
a-envvar.adb:136: warning: 'Iterator' may be used uninitialized in this
function
a-envvar.adb:130: warning: 'Saved_Stack.35' may be used uninitialized in this
function
a-envvar.adb:131: warning: 'Env_Copy.17' may be used uninitialized in this
function
a-envvar.adb:114: warning: 'Env' may be used uninitialized in this function
a-envvar.adb:136: warning: 'R24b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-fwteio.ads -o a-fwteio.o
'R7b.P_ARRAYa-wtflio.adb: In function 'Ada.Float_Wide_Text_Io.Get':
a-wtflio.adb:75: warning: ' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R10b' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R9b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-iwteio.ads -o a-iwteio.o
'R7b.P_ARRAYa-wtinio.adb: In function 'Ada.Integer_Wide_Text_Io.Get':
a-wtinio.adb:85: warning: ' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R9b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-lfwtio.ads -o a-lfwtio.o
'R7b.P_ARRAYa-wtflio.adb: In function 'Ada.Long_Float_Wide_Text_Io.Get':
a-wtflio.adb:75: warning: ' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R10b' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-lfztio.ads -o a-lfztio.o
'R7b.P_ARRAYa-ztflio.adb: In function 'Ada.Long_Float_Wide_Wide_Text_Io.Get':
a-ztflio.adb:74: warning: ' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R10b' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-liteio.ads -o a-liteio.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-liwtio.ads -o a-liwtio.o
'R7b.P_ARRAYa-wtinio.adb: In function 'Ada.Long_Integer_Wide_Text_Io.Get':
a-wtinio.adb:85: warning: ' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-liztio.ads -o a-liztio.o
'R7b.P_ARRAYa-ztinio.adb: In function 'Ada.Long_Integer_Wide_Wide_Text_Io.Get':
a-ztinio.adb:85: warning: ' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-llftio.ads -o a-llftio.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-llfwti.ads -o a-llfwti.o
'R7b.P_ARRAYa-wtflio.adb: In function 'Ada.Long_Long_Float_Wide_Text_Io.Get':
a-wtflio.adb:75: warning: ' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R10b' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-llfzti.ads -o a-llfzti.o
'R7b.P_ARRAYa-ztflio.adb: In function
'Ada.Long_Long_Float_Wide_Wide_Text_Io.Get':
a-ztflio.adb:74: warning: ' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R10b' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-llitio.ads -o a-llitio.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-lliwti.ads -o a-lliwti.o
'R7b.P_ARRAYa-wtinio.adb: In function 'Ada.Long_Long_Integer_Wide_Text_Io.Get':
a-wtinio.adb:85: warning: ' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-llizti.ads -o a-llizti.o
'R7b.P_ARRAYa-ztinio.adb: In function
'Ada.Long_Long_Integer_Wide_Wide_Text_Io.Get':
a-ztinio.adb:85: warning: ' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-ncelfu.ads -o a-ncelfu.o
a-ngcefu.adb: In function 'Ada.Numerics.Complex_Elementary_Functions.Sqrt':
a-ngcefu.adb:582: warning: 'Yr' may be used uninitialized in this function
a-ngcefu.adb:581: warning: 'Xr' may be used uninitialized in this function
a-ngcefu.adb:580: warning: 'Imx' may be used uninitialized in this function
a-ngcefu.adb:579: warning: 'Rex' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nlcefu.ads -o a-nlcefu.o
a-ngcefu.adb: In function
'Ada.Numerics.Long_Complex_Elementary_Functions.Sqrt':
a-ngcefu.adb:582: warning: 'Yr' may be used uninitialized in this function
a-ngcefu.adb:581: warning: 'Xr' may be used uninitialized in this function
a-ngcefu.adb:580: warning: 'Imx' may be used uninitialized in this function
a-ngcefu.adb:579: warning: 'Rex' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nlcoty.ads -o a-nlcoty.o
a-ngcoty.adb: In function 'Ada.Numerics.Long_Complex_Types.Modulus':
a-ngcoty.adb:557: warning: 'Re2' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nlelfu.ads -o a-nlelfu.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nllcef.ads -o a-nllcef.o
'yr.Fa-ngcefu.adb: In function
'Ada.Numerics.Long_Long_Complex_Elementary_Functions.Sqrt':
a-ngcefu.adb:582: warning: ' may be used uninitialized in this function
'xr.Fa-ngcefu.adb:581: warning: ' may be used uninitialized in this function
'imx.Fa-ngcefu.adb:580: warning: ' may be used uninitialized in this function
'rex.Fa-ngcefu.adb:579: warning: ' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nllcty.ads -o a-nllcty.o
're2.Fa-ngcoty.adb: In function 'Ada.Numerics.Long_Long_Complex_Types.Modulus':
a-ngcoty.adb:557: warning: ' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nllefu.ads -o a-nllefu.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nscefu.ads -o a-nscefu.o
a-ngcefu.adb: In function
'Ada.Numerics.Short_Complex_Elementary_Functions.Sqrt':
a-ngcefu.adb:582: warning: 'Yr' may be used uninitialized in this function
a-ngcefu.adb:581: warning: 'Xr' may be used uninitialized in this function
a-ngcefu.adb:580: warning: 'Imx' may be used uninitialized in this function
a-ngcefu.adb:579: warning: 'Rex' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nscoty.ads -o a-nscoty.o
a-ngcoty.adb: In function 'Ada.Numerics.Short_Complex_Types.Modulus':
a-ngcoty.adb:557: warning: 'Re2' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nselfu.ads -o a-nselfu.o
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-nucoty.ads -o a-nucoty.o
a-ngcoty.adb: In function 'Ada.Numerics.Complex_Types.Modulus':
a-ngcoty.adb:557: warning: 'Re2' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-sfwtio.ads -o a-sfwtio.o
'R7b.P_ARRAYa-wtflio.adb: In function 'Ada.Short_Float_Wide_Text_Io.Get':
a-wtflio.adb:75: warning: ' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R10b' may be used uninitialized in this function
a-wtflio.adb:75: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-sfztio.ads -o a-sfztio.o
'R7b.P_ARRAYa-ztflio.adb: In function 'Ada.Short_Float_Wide_Wide_Text_Io.Get':
a-ztflio.adb:74: warning: ' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R10b' may be used uninitialized in this function
a-ztflio.adb:74: warning: 'R9b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-siwtio.ads -o a-siwtio.o
'R7b.P_ARRAYa-wtinio.adb: In function 'Ada.Short_Integer_Wide_Text_Io.Get':
a-wtinio.adb:85: warning: ' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-siztio.ads -o a-siztio.o
'R7b.P_ARRAYa-ztinio.adb: In function
'Ada.Short_Integer_Wide_Wide_Text_Io.Get':
a-ztinio.adb:85: warning: ' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R9b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-ssiwti.ads -o a-ssiwti.o
'R7b.P_ARRAYa-wtinio.adb: In function
'Ada.Short_Short_Integer_Wide_Text_Io.Get':
a-wtinio.adb:85: warning: ' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-wtinio.adb:85: warning: 'R9b' may be used uninitialized in this function
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-ssizti.ads -o a-ssizti.o
'R7b.P_ARRAYa-ztinio.adb: In function
'Ada.Short_Short_Integer_Wide_Wide_Text_Io.Get':
a-ztinio.adb:85: warning: ' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R10b' may be used uninitialized in this function
a-ztinio.adb:85: warning: 'R9b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-strunb.adb -o a-strunb.o
a-strunb.adb: In function 'Ada.Strings.Unbounded.To_Unbounded_String':
a-strunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:59: note: '<anonymous>' was declared here
a-strunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:59: note: '<anonymous>' was declared here
a-strunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:59: note: '<anonymous>' was declared here
a-strunb.adb: In function 'Ada.Strings.Unbounded."*"':
a-strunb.adb:185: warning: 'Len' may be used uninitialized in this function
a-strunb.adb: In function 'Ada.Strings.Unbounded."*"':
a-strunb.adb:163: warning: 'Len' may be used uninitialized in this function
a-strunb.adb: In function 'Ada.Strings.Unbounded."&"':
a-strunb.ads:92: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:92: note: '<anonymous>' was declared here
a-strunb.ads:92: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:92: note: '<anonymous>' was declared here
a-strunb.adb:89: warning: 'R_Length' may be used uninitialized in this function
a-strunb.adb: In function 'Ada.Strings.Unbounded."&"':
a-strunb.ads:89: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:89: note: '<anonymous>' was declared here
a-strunb.ads:89: warning: '<anonymous>' may be used uninitialized in this
function
a-strunb.ads:89: note: '<anonymous>' was declared here
a-strunb.adb:71: warning: 'L_Length' may be used uninitialized in this function
a-strunb.adb: In function 'Ada.Strings.Unbounded."&"':
a-strunb.adb:51: warning: 'R_Length' may be used uninitialized in this function
a-strunb.adb:50: warning: 'L_Length' may be used uninitialized in this function
a-strunb.adb: In function 'Ada.Strings.Unbounded.Unbounded_Slice':
a-strunb.adb:1046: warning: 'R744b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-stwiun.adb -o a-stwiun.o
a-stwiun.adb: In function
'Ada.Strings.Wide_Unbounded.To_Unbounded_Wide_String':
a-stwiun.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:59: note: '<anonymous>' was declared here
a-stwiun.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:59: note: '<anonymous>' was declared here
a-stwiun.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:59: note: '<anonymous>' was declared here
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded."*"':
a-stwiun.adb:185: warning: 'Len' may be used uninitialized in this function
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded."*"':
a-stwiun.adb:163: warning: 'Len' may be used uninitialized in this function
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded."&"':
a-stwiun.ads:94: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:94: note: '<anonymous>' was declared here
a-stwiun.ads:94: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:94: note: '<anonymous>' was declared here
a-stwiun.adb:89: warning: 'R_Length' may be used uninitialized in this function
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded."&"':
a-stwiun.ads:91: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:91: note: '<anonymous>' was declared here
a-stwiun.ads:91: warning: '<anonymous>' may be used uninitialized in this
function
a-stwiun.ads:91: note: '<anonymous>' was declared here
a-stwiun.adb:71: warning: 'L_Length' may be used uninitialized in this function
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded."&"':
a-stwiun.adb:51: warning: 'R_Length' may be used uninitialized in this function
a-stwiun.adb:50: warning: 'L_Length' may be used uninitialized in this function
a-stwiun.adb: In function 'Ada.Strings.Wide_Unbounded.Unbounded_Slice':
a-stwiun.adb:1083: warning: 'R744b' may be used uninitialized in this function
...
/cygdrive/c/gcc-4_2-branch-build/./gcc/xgcc
-B/cygdrive/c/gcc-4_2-branch-build/./gcc/ -B/usr//bin/ -B/usr//lib/ -isystem
/usr//include -isystem /usr//sys-include -c -g -O2      -W -Wall -gnatpg 
a-stzunb.adb -o a-stzunb.o
a-stzunb.adb: In function
'Ada.Strings.Wide_Wide_Unbounded.To_Unbounded_Wide_Wide_String':
a-stzunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:59: note: '<anonymous>' was declared here
a-stzunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:59: note: '<anonymous>' was declared here
a-stzunb.ads:59: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:59: note: '<anonymous>' was declared here
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded."*"':
a-stzunb.adb:185: warning: 'Len' may be used uninitialized in this function
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded."*"':
a-stzunb.adb:163: warning: 'Len' may be used uninitialized in this function
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded."&"':
a-stzunb.ads:93: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:93: note: '<anonymous>' was declared here
a-stzunb.ads:93: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:93: note: '<anonymous>' was declared here
a-stzunb.adb:89: warning: 'R_Length' may be used uninitialized in this function
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded."&"':
a-stzunb.ads:90: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:90: note: '<anonymous>' was declared here
a-stzunb.ads:90: warning: '<anonymous>' may be used uninitialized in this
function
a-stzunb.ads:90: note: '<anonymous>' was declared here
a-stzunb.adb:71: warning: 'L_Length' may be used uninitialized in this function
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded."&"':
a-stzunb.adb:51: warning: 'R_Length' may be used uninitialized in this function
a-stzunb.adb:50: warning: 'L_Length' may be used uninitialized in this function
a-stzunb.adb: In function 'Ada.Strings.Wide_Wide_Unbounded.Unbounded_Slice':
a-stzunb.adb:1096: warning: 'R744b' may be used uninitialized in this function

(A few hundred more lines, at least! There _might_ be over a thousand.)


I also did compile for my other platform (i686-pc-linux-gnu) and did not notice
if these warnings occurred when make was running. The result for Linux's "make
-i check" was that only a single acats test failed (c380004), excessive
warnings or not.


I was watching while the above messages (for i686-pc-cygwin) came up. I have
not previously noticed so many warning occur during the Ada portion of the make
(and I have compiled gcc-4_2 over a few dozen times these past several months).
I recall it being "clean".


I understand that one or two warnings, here or there are NOT a "BUG". Many
hundreds of warnings in code that was previously clean _might_ mean that an
"include" was amiss or be indicative of some other problem. It is my
understanding that Ada has a feature of being "self-checking", this is it's way
of indicating a problem.

I am not an Ada expert. I simply try to enable every feature and language. I
run
all the tests and submit the results so people who wrote the code can see the
result on platforms that they might not have access to. I have also posted
fixes.

I hope that a report of "way too many warnings" is not an annoyance in the "bug
report" list.


-- 
           Summary: Ada has way TOO MANY "may be used uninitialized"
                    warnings.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/31744] Ada has way TOO MANY "may be used uninitialized" warnings.
  2007-04-29 10:32 [Bug ada/31744] New: Ada has way TOO MANY "may be used uninitialized" warnings rob1weld at aol dot com
@ 2007-04-30  9:04 ` charlet at gcc dot gnu dot org
  2007-05-03  9:09 ` rob1weld at aol dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-04-30  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from charlet at gcc dot gnu dot org  2007-04-30 10:03 -------
I do not see these warnings on trunk on i686-linux, could you
confirm you do not see them as well ?


-- 

charlet at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/31744] Ada has way TOO MANY "may be used uninitialized" warnings.
  2007-04-29 10:32 [Bug ada/31744] New: Ada has way TOO MANY "may be used uninitialized" warnings rob1weld at aol dot com
  2007-04-30  9:04 ` [Bug ada/31744] " charlet at gcc dot gnu dot org
@ 2007-05-03  9:09 ` rob1weld at aol dot com
  2007-05-03 11:08 ` charlet at gcc dot gnu dot org
  2007-05-03 11:44 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rob1weld at aol dot com @ 2007-05-03  9:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rob1weld at aol dot com  2007-05-03 10:09 -------
Confirmed. My Linux system has gcc 4.2.0 installed and I do NOT get that many
warnings, only a couple.

I _do_ have the _newest_ possible version of all programs for Cygwin. 

In any event, on _any_ platform, it is actually gcc/xgcc that is used to
compile that portion of Ada that has the enormous number of warnings and not
/usr/bin/gcc.

My test results for i686-pc-linux-gnu are here (nearly no Ada errors):
http://gcc.gnu.org/ml/gcc-testresults/2007-05/msg00135.html


Previous results on the Cygwin platform for Ada had results like this:

gcc version 4.2.0 20070202 (prerelease) =-=
stage3-gcc/testsuite/ada/acats/acats.log

                === acats Summary ===
# of expected passes            1937
# of unexpected failures        22
# of unsupported tests          356
*** FAILURES: c23003b c23003g c23003i c35507m cd2a23e cdd2a02 cxg2002 cxg2003
cxg2004 cxg2006 cxg2007 cxg2010 cxg2011 cxg2012 cxg2013 cxg2015 cxg2016 cxg2017
cxg2018 cxg2019 cxg2020 cxg2021 


gcc version 4.2.0 20070427 (prerelease) =-=
stage3-gcc/testsuite/ada/acats/acats.log

                === acats Summary ===
# of expected passes            1940
# of unexpected failures        19
# of unsupported tests          356
*** FAILURES: c23003b c23003g c23003i cxg2002 cxg2003 cxg2004 cxg2006 cxg2007
cxg2010 cxg2011 cxg2012 cxg2013 cxg2015 cxg2016 cxg2017 cxg2018 cxg2019 cxg2020
cxg2021 

Simply searching http://gcc.gnu.org/ml/gcc-testresults/ for "i686-pc-cygwin"
should show that there are not quite as good results for Ada on that target.

If you want Ada to run on WinXP it will need to either work on Cygwin or MinGW.


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/31744] Ada has way TOO MANY "may be used uninitialized" warnings.
  2007-04-29 10:32 [Bug ada/31744] New: Ada has way TOO MANY "may be used uninitialized" warnings rob1weld at aol dot com
  2007-04-30  9:04 ` [Bug ada/31744] " charlet at gcc dot gnu dot org
  2007-05-03  9:09 ` rob1weld at aol dot com
@ 2007-05-03 11:08 ` charlet at gcc dot gnu dot org
  2007-05-03 11:44 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-05-03 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from charlet at gcc dot gnu dot org  2007-05-03 12:08 -------
Thanks for the feedback.

Closing this PR then.


-- 

charlet at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/31744] Ada has way TOO MANY "may be used uninitialized" warnings.
  2007-04-29 10:32 [Bug ada/31744] New: Ada has way TOO MANY "may be used uninitialized" warnings rob1weld at aol dot com
                   ` (2 preceding siblings ...)
  2007-05-03 11:08 ` charlet at gcc dot gnu dot org
@ 2007-05-03 11:44 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2007-05-03 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ebotcazou at gcc dot gnu dot org  2007-05-03 12:44 -------
> I also did compile for my other platform (i686-pc-linux-gnu) and did not notice
> if these warnings occurred when make was running.

They are only present on platforms that do not use DWARF-2 EH.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-03 11:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-29 10:32 [Bug ada/31744] New: Ada has way TOO MANY "may be used uninitialized" warnings rob1weld at aol dot com
2007-04-30  9:04 ` [Bug ada/31744] " charlet at gcc dot gnu dot org
2007-05-03  9:09 ` rob1weld at aol dot com
2007-05-03 11:08 ` charlet at gcc dot gnu dot org
2007-05-03 11:44 ` ebotcazou at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).