public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/37639]  New: Bootstrap fails with "may be used uninitialized" warning in c-parser.c
@ 2008-09-24 15:33 lucier at math dot purdue dot edu
  2008-09-24 15:36 ` [Bug bootstrap/37639] " lucier at math dot purdue dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lucier at math dot purdue dot edu @ 2008-09-24 15:33 UTC (permalink / raw)
  To: gcc-bugs




-- 
           Summary: Bootstrap fails with "may be used uninitialized" warning
                    in c-parser.c
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
 GCC build triplet: powerpc64-apple-darwin9.5.0
  GCC host triplet: powerpc64-apple-darwin9.5.0
GCC target triplet: powerpc64-apple-darwin9.5.0


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


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

* [Bug bootstrap/37639] Bootstrap fails with "may be used uninitialized" warning in c-parser.c
  2008-09-24 15:33 [Bug bootstrap/37639] New: Bootstrap fails with "may be used uninitialized" warning in c-parser.c lucier at math dot purdue dot edu
@ 2008-09-24 15:36 ` lucier at math dot purdue dot edu
  2008-10-30  0:09 ` manu at gcc dot gnu dot org
  2008-10-30  0:20 ` lucier at math dot purdue dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: lucier at math dot purdue dot edu @ 2008-09-24 15:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from lucier at math dot purdue dot edu  2008-09-24 15:34 -------
Created an attachment (id=16401)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16401&action=view)
macro-expanded source of c-parser.c

Sorry for hitting return instead of tab in the initial report ...

Configured and bootstrapped with

[descartes:objdirs/mainline/gcc] lucier% cat
../../../mainline/build-and-check-gcc-64 
#!/bin/tcsh
/bin/rm -rf *; ../../mainline/configure CC='/usr/bin/gcc-4.0 -mcpu=970 -m64'
--build=powerpc64-apple-darwin9.5.0 --host=powerpc64-apple-darwin9.5.0
--target=powerpc64-apple-darwin9.5.0 --with-gmp-include=/sw/include/
--with-gmp-lib=/sw/lib/ppc64 --with-mpfr-include=/sw/include/
--with-mpfr-lib=/sw/lib/ppc64 --prefix=/pkgs/gcc-4.4.0-64
--with-libiconv-prefix=/usr  --with-system-zlib; make -j 4 bootstrap
BOOT_LDFLAGS='-Wl,-search_paths_first' >& build.log && (make install) && (make
-k -j 8 check RUNTESTFLAGS="--target_board 'unix{-mcpu=970/-m64}'"  >&
check.log ; make mail-report.log)

Error is

[descartes:objdirs/mainline/gcc] lucier%
/Users/lucier/programs/gcc/objdirs/mainline/./prev-gcc/xgcc
-B/Users/lucier/programs/gcc/objdirs/mainline/./prev-gcc/
-B/pkgs/gcc-4.4.0-64/powerpc64-apple-darwin9.5.0/bin/ -c -g -O2 -DIN_GCC -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
-DHAVE_CONFIG_H -I. -I. -I../../../mainline/gcc -I../../../mainline/gcc/.
-I../../../mainline/gcc/../include -I./../intl
-I../../../mainline/gcc/../libcpp/include -I/sw/include/ -I/sw/include/
-I../../../mainline/gcc/../libdecnumber
-I../../../mainline/gcc/../libdecnumber/dpd -I../libdecnumber
../../../mainline/gcc/c-parser.c -o c-parser.o -save-temps
cc1: warnings being treated as errors
../../../mainline/gcc/c-parser.c: In function 'c_parser_binary_expression':
../../../mainline/gcc/c-parser.c:4579: error: 'binary_loc' may be used
uninitialized in this function
../../../mainline/gcc/c-parser.c:4579: note: 'binary_loc' was declared here

preprocessed source included as an attachment


-- 


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


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

* [Bug bootstrap/37639] Bootstrap fails with "may be used uninitialized" warning in c-parser.c
  2008-09-24 15:33 [Bug bootstrap/37639] New: Bootstrap fails with "may be used uninitialized" warning in c-parser.c lucier at math dot purdue dot edu
  2008-09-24 15:36 ` [Bug bootstrap/37639] " lucier at math dot purdue dot edu
@ 2008-10-30  0:09 ` manu at gcc dot gnu dot org
  2008-10-30  0:20 ` lucier at math dot purdue dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-10-30  0:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2008-10-30 00:09 -------
What revision is this? Seems fixed in mainline.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug bootstrap/37639] Bootstrap fails with "may be used uninitialized" warning in c-parser.c
  2008-09-24 15:33 [Bug bootstrap/37639] New: Bootstrap fails with "may be used uninitialized" warning in c-parser.c lucier at math dot purdue dot edu
  2008-09-24 15:36 ` [Bug bootstrap/37639] " lucier at math dot purdue dot edu
  2008-10-30  0:09 ` manu at gcc dot gnu dot org
@ 2008-10-30  0:20 ` lucier at math dot purdue dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: lucier at math dot purdue dot edu @ 2008-10-30  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from lucier at math dot purdue dot edu  2008-10-30 00:19 -------
You're right, it was fixed by 

Revision 141193 - (view) (download) - [select for diffs]
Modified Fri Oct 17 14:50:07 2008 UTC (12 days, 9 hours ago) by krebbel
File length: 238566 byte(s)
Diff to previous 140914 (colored)

2008-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>

        * c-parser.c (c_parser_binary_expression): Silence the
        uninitialized variable warning emitted for binary_loc.


I hadn't noticed because I started adding --disable-werror to my configuration
files.

Closing as fixed.


-- 

lucier at math dot purdue dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-10-30  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-24 15:33 [Bug bootstrap/37639] New: Bootstrap fails with "may be used uninitialized" warning in c-parser.c lucier at math dot purdue dot edu
2008-09-24 15:36 ` [Bug bootstrap/37639] " lucier at math dot purdue dot edu
2008-10-30  0:09 ` manu at gcc dot gnu dot org
2008-10-30  0:20 ` lucier at math dot purdue dot edu

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