public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36036]  New: gcc emits warnings/notes from system headers.
@ 2008-04-24 14:37 pluto at agmk dot net
  2008-04-24 14:38 ` [Bug middle-end/36036] " pluto at agmk dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2008-04-24 14:37 UTC (permalink / raw)
  To: gcc-bugs

attached tarball contains small boost-1.35 based source and preprocessed file.

$ make ii
/local/devel/toolchain43/x86_64-gnu-linux/bin/x86_64-gnu-linux-g++ -c \
-pthread -Wall -O2 --save-temps \
-isystem ~/dvm/trunk/buildenv/linux/gcc-4.3/64/STLport-5.1.5/include/stlport \
-isystem ~/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include \
2.cpp

/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:
In function 'Target boost::detail::lexical_cast(typename
boost::call_traits<Source>::param_type, CharT*, size_t) [with Target = int,
Source = stlp_std::basic_string<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, bool Unlimited = false, CharT =
boost::lexical_cast::char_type]':
/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:1147:
warning: 'result' may be used uninitialized in this function
/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:1147:
note: 'result' was declared here

-isystem should suppress all this magic diagnostics for boost headers.

ps). you can locate the 'result' by searching '# 1146' in .ii file.

gcc-4.3-20080417.


-- 
           Summary: gcc emits warnings/notes from system headers.
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: x86_64-gnu-linux


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


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

* [Bug middle-end/36036] gcc emits warnings/notes from system headers.
  2008-04-24 14:37 [Bug middle-end/36036] New: gcc emits warnings/notes from system headers pluto at agmk dot net
@ 2008-04-24 14:38 ` pluto at agmk dot net
  2008-08-25 11:13 ` [Bug middle-end/36036] gcc emits uninitialized warnings " manu at gcc dot gnu dot org
  2008-08-25 11:50 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2008-04-24 14:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2008-04-24 14:37 -------
Created an attachment (id=15525)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15525&action=view)
testcase


-- 


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


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

* [Bug middle-end/36036] gcc emits uninitialized warnings from system headers.
  2008-04-24 14:37 [Bug middle-end/36036] New: gcc emits warnings/notes from system headers pluto at agmk dot net
  2008-04-24 14:38 ` [Bug middle-end/36036] " pluto at agmk dot net
@ 2008-08-25 11:13 ` manu at gcc dot gnu dot org
  2008-08-25 11:50 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-25 11:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2008-08-25 11:12 -------
You (someone) should retest this with a recent revision. Wuninitialized now
uses an explicit location so this should be fixed, hopefully.


-- 

manu at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/36036] gcc emits uninitialized warnings from system headers.
  2008-04-24 14:37 [Bug middle-end/36036] New: gcc emits warnings/notes from system headers pluto at agmk dot net
  2008-04-24 14:38 ` [Bug middle-end/36036] " pluto at agmk dot net
  2008-08-25 11:13 ` [Bug middle-end/36036] gcc emits uninitialized warnings " manu at gcc dot gnu dot org
@ 2008-08-25 11:50 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2008-08-25 11:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2008-08-25 11:49 -------
works fine in 4.4.0 20080824.


-- 

pluto at agmk dot net changed:

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


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


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

end of thread, other threads:[~2008-08-25 11:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-24 14:37 [Bug middle-end/36036] New: gcc emits warnings/notes from system headers pluto at agmk dot net
2008-04-24 14:38 ` [Bug middle-end/36036] " pluto at agmk dot net
2008-08-25 11:13 ` [Bug middle-end/36036] gcc emits uninitialized warnings " manu at gcc dot gnu dot org
2008-08-25 11:50 ` pluto at agmk dot net

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