public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/16865] New: False alarm about use of uninitialized variable breaks bootstrap at -O3
@ 2004-08-03 20:31 v dot haisman at sh dot cvut dot cz
  2004-08-03 20:44 ` [Bug bootstrap/16865] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-08-03 20:31 UTC (permalink / raw)
  To: gcc-bugs

Bootstrap with -O3 dies with error bellow. It is false alarm about use of
uninitialized variable. With -O2 the warning doesn't trigger.


make[2]: Entering directory `/home/4/wilx/tmp/gcc-head/objdir/gcc'
stage1/xgcc -Bstage1/ -B/home/4/wilx/i386-unknown-freebsd4.10/bin/ -c   -O3 -g
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror
-fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../srcdir/gcc -I../../srcdir/gcc/.
-I../../srcdir/gcc/../include -I../../srcdir/gcc/../libcpp/include
-I../../srcdir/gcc/../libbanshee/libcompat -I../../srcdir/gcc/../libbanshee
-I../../srcdir/gcc/../libbanshee/points-to  ../../srcdir/gcc/loop-iv.c -o loop-iv.o
../../srcdir/gcc/loop-iv.c: In function `simplify_using_initial_values':
../../srcdir/gcc/loop-iv.c:1360: warning: 'lhs' may be used uninitialized in
this function
make[2]: *** [loop-iv.o] Error 1
make[2]: Leaving directory `/home/4/wilx/tmp/gcc-head/objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/4/wilx/tmp/gcc-head/objdir/gcc'
make: *** [bootstrap] Error 2

I've used this to unbreak the bootstrap:
Index: gcc/loop-iv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-iv.c,v
retrieving revision 2.13
diff -c -p -r2.13 loop-iv.c
*** gcc/loop-iv.c       27 Jul 2004 07:27:12 -0000      2.13
--- gcc/loop-iv.c       3 Aug 2004 20:22:07 -0000
*************** static void
*** 1357,1363 ****
  simplify_using_assignment (rtx insn, rtx *expr, regset altered)
  {
    rtx set = single_set (insn);
!   rtx lhs, rhs;
    bool ret = false;

    if (set)
--- 1357,1363 ----
  simplify_using_assignment (rtx insn, rtx *expr, regset altered)
  {
    rtx set = single_set (insn);
!   rtx lhs = 0, rhs;
    bool ret = false;

    if (set)

-- 
           Summary: False alarm about use of uninitialized variable breaks
                    bootstrap at -O3
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i386-unknown-freebsd4.10
  GCC host triplet: i386-unknown-freebsd4.10
GCC target triplet: i386-unknown-freebsd4.10


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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-16865-629@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-06-09  8:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 20:31 [Bug bootstrap/16865] New: False alarm about use of uninitialized variable breaks bootstrap at -O3 v dot haisman at sh dot cvut dot cz
2004-08-03 20:44 ` [Bug bootstrap/16865] " pinskia at gcc dot gnu dot org
2004-08-03 21:13 ` cvs-commit at gcc dot gnu dot org
2004-08-03 21:13 ` pinskia at gcc dot gnu dot org
2004-08-03 21:49 ` v dot haisman at sh dot cvut dot cz
2004-08-03 22:00 ` pinskia at gcc dot gnu dot org
2004-08-19  9:03 ` v dot haisman at sh dot cvut dot cz
2004-10-18  0:26 ` pinskia at gcc dot gnu dot org
2005-01-23 13:33 ` steven at gcc dot gnu dot org
2005-01-23 15:26 ` pinskia at gcc dot gnu dot org
2005-04-21  5:05 ` mmitchel at gcc dot gnu dot org
2005-07-08  1:45 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:21 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16865-629@http.gcc.gnu.org/bugzilla/>
2006-03-11  3:18 ` mmitchel at gcc dot gnu dot org
2007-01-18  3:00 ` gdr at gcc dot gnu dot org
2007-06-09  8:33 ` v dot haisman at sh dot cvut dot cz

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).