public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode
@ 2009-12-04 23:52 zsojka at seznam dot cz
2009-12-04 23:53 ` [Bug c++/42290] " zsojka at seznam dot cz
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2009-12-04 23:52 UTC (permalink / raw)
To: gcc-bugs
Command line:
g++ -std=c++0x -O2 -Wall -o tmp.o testcase-manual.ii -c
or
g++ -std=c++0x -O2 -Wall -o tmp.o testcase-manual.ii -c
Gives:
testcase-manual.ii: In function ‘A::~A(A**, char*)’:
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
Tested versions:
r154953 - warns
r154886 - warns
r154830 - silent
r153685 - silent
Full output:
$ /mnt/svn/gcc-trunk/binary-154953-lto/bin/g++ -std=c++0x -O2 -Wall -o tmp.o
testcase-manual.ii -c -v
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-154953-lto/bin/g++
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++,lto
--prefix=/mnt/svn/gcc-trunk/binary-154953-lto
Thread model: posix
gcc version 4.5.0 20091203 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'
/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1plus
-fpreprocessed testcase-manual.ii -quiet -dumpbase testcase-manual.ii
-mtune=generic -auxbase-strip tmp.o -O2 -Wall -std=c++0x -version -o
/tmp/ccF5BU5B.s
GNU C++ (GCC) version 4.5.0 20091203 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.5.0 20091203 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.5.0 20091203 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.5.0 20091203 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 4b09d9924550b4f9676aafda3b16134c
testcase-manual.ii: In function ‘A::~A(A**, char*)’:
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: ‘ISRA.2’ may be used
uninitialized in this function
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'
as -V -Qy -o tmp.o /tmp/ccF5BU5B.s
GNU assembler version 2.20.51.0.3 (x86_64-pc-linux-gnu) using BFD version
(Linux/GNU Binutils) 2.20.51.0.3.20091109
COMPILER_PATH=/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/intel/Compiler/11.1/056/lib/intel64/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'
--
Summary: strange 'warning: ‘ISRA.2’ may be used
uninitialized in this function' in C++0x mode
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/42290] strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
@ 2009-12-04 23:53 ` zsojka at seznam dot cz
2009-12-04 23:54 ` [Bug middle-end/42290] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2009-12-04 23:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2009-12-04 23:53 -------
Created an attachment (id=19231)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19231&action=view)
reduced testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
2009-12-04 23:53 ` [Bug c++/42290] " zsojka at seznam dot cz
@ 2009-12-04 23:54 ` pinskia at gcc dot gnu dot org
2009-12-05 0:16 ` [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function' zsojka at seznam dot cz
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-04 23:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-12-04 23:54 -------
ISRA is the name of the variable that gets created by IPA SRA ...
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c++ |middle-end
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
2009-12-04 23:53 ` [Bug c++/42290] " zsojka at seznam dot cz
2009-12-04 23:54 ` [Bug middle-end/42290] " pinskia at gcc dot gnu dot org
@ 2009-12-05 0:16 ` zsojka at seznam dot cz
2009-12-26 10:51 ` zsojka at seznam dot cz
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2009-12-05 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from zsojka at seznam dot cz 2009-12-05 00:16 -------
C++ mode doesn't seem to be mandatory (it was for the testcase before
reduction), the following command is enough:
g++ -O2 -Wall -o tmp.o testcase-manual.ii -c
--
zsojka at seznam dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|strange 'warning: |strange 'warning: "ISRA.2"
|‘ISRA.2’ may be |may be used uninitialized in
|used uninitialized in this |this function'
|function' in C++0x mode |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
` (2 preceding siblings ...)
2009-12-05 0:16 ` [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function' zsojka at seznam dot cz
@ 2009-12-26 10:51 ` zsojka at seznam dot cz
2009-12-26 11:23 ` zsojka at seznam dot cz
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2009-12-26 10:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from zsojka at seznam dot cz 2009-12-26 10:50 -------
Created an attachment (id=19393)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19393&action=view)
even more reduced testcase
I have a suspicion this warning is valid. There is an app that (sometimes)
crashes when code construction like this one is called. valgrind warns about
using uninitialized variable. Also, it started crashing when compiled with gcc
r154886 (r154830 was fine).
--
zsojka at seznam dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #19231|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
` (3 preceding siblings ...)
2009-12-26 10:51 ` zsojka at seznam dot cz
@ 2009-12-26 11:23 ` zsojka at seznam dot cz
2009-12-30 16:29 ` manu at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2009-12-26 11:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from zsojka at seznam dot cz 2009-12-26 11:23 -------
I opened the wrong code bug as pr42508
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
` (4 preceding siblings ...)
2009-12-26 11:23 ` zsojka at seznam dot cz
@ 2009-12-30 16:29 ` manu at gcc dot gnu dot org
2010-02-04 3:01 ` zsojka at seznam dot cz
2010-02-04 11:26 ` manu at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-12-30 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from manu at gcc dot gnu dot org 2009-12-30 16:29 -------
Once PR42508 is fixed, this should be reevaluated and probably won't warn
anymore or can be closed as INVALID, since the warning was valid.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
BugsThisDependsOn| |42508
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
` (5 preceding siblings ...)
2009-12-30 16:29 ` manu at gcc dot gnu dot org
@ 2010-02-04 3:01 ` zsojka at seznam dot cz
2010-02-04 11:26 ` manu at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-02-04 3:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from zsojka at seznam dot cz 2010-02-04 03:01 -------
I can't reproduce this issue in current trunk (r156468)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function'
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
` (6 preceding siblings ...)
2010-02-04 3:01 ` zsojka at seznam dot cz
@ 2010-02-04 11:26 ` manu at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-02-04 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from manu at gcc dot gnu dot org 2010-02-04 11:26 -------
(In reply to comment #7)
> I can't reproduce this issue in current trunk (r156468)
Closing then as FIXED, the warning was caused by bug 42508.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-02-04 11:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-04 23:52 [Bug c++/42290] New: strange 'warning: ‘ISRA.2’ may be used uninitialized in this function' in C++0x mode zsojka at seznam dot cz
2009-12-04 23:53 ` [Bug c++/42290] " zsojka at seznam dot cz
2009-12-04 23:54 ` [Bug middle-end/42290] " pinskia at gcc dot gnu dot org
2009-12-05 0:16 ` [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function' zsojka at seznam dot cz
2009-12-26 10:51 ` zsojka at seznam dot cz
2009-12-26 11:23 ` zsojka at seznam dot cz
2009-12-30 16:29 ` manu at gcc dot gnu dot org
2010-02-04 3:01 ` zsojka at seznam dot cz
2010-02-04 11:26 ` manu 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).