public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45083]  New: strange warning text from gcc
@ 2010-07-26 15:52 tromey at gcc dot gnu dot org
  2010-07-26 15:53 ` [Bug tree-optimization/45083] " tromey at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-07-26 15:52 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]

While compiling gdb with a relatively recent svn trunk gcc, I saw:

gcc -g -O2   -I. -I../../archer/gdb -I../../archer/gdb/common
-I../../archer/gdb/config
-DLOCALEDIR="\"/home/tromey/gnu/archer/install/share/locale\"" -DHAVE_CONFIG_H
-I../../archer/gdb/../include/opcode -I../../archer/gdb/../opcodes/..
-I../../archer/gdb/../readline/.. -I../bfd -I../../archer/gdb/../bfd
-I../../archer/gdb/../include -I../libdecnumber
-I../../archer/gdb/../libdecnumber  -I../../archer/gdb/gnulib -Ignulib 
-DMI_OUT=1 -DTUI=1  -I/usr/include -I/usr/include  -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Werror -c -o xcoffread.o -MT xcoffread.o -MMD -MP -MF
.deps/xcoffread.Tpo ../../archer/gdb/xcoffread.c
../../archer/gdb/xcoffread.c: In function ‘xcoff_psymtab_to_symtab_1’:
../../archer/gdb/xcoffread.c:1325:9: error:
‘fcn_aux_saved$x_sym$x_misc$x_fsize’ may be used uninitialized in this function
[-Werror=uninitialized]
../../archer/gdb/xcoffread.c:955:25: note: ‘fcn_aux_saved$x_sym$x_misc$x_fsize’
was declared here
cc1: all warnings being treated as errors


Those "$"s are strange to see, because they don't appear in the source.
I think it would be friendlier to emit "."s instead.

I will attach the .i momentarily.


-- 
           Summary: strange warning text from gcc
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org


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


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

* [Bug tree-optimization/45083] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
@ 2010-07-26 15:53 ` tromey at gcc dot gnu dot org
  2010-07-26 16:00 ` tromey at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-07-26 15:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tromey at gcc dot gnu dot org  2010-07-26 15:53 -------
Created an attachment (id=21318)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21318&action=view)
compressed .i file


-- 


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


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

* [Bug tree-optimization/45083] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
  2010-07-26 15:53 ` [Bug tree-optimization/45083] " tromey at gcc dot gnu dot org
@ 2010-07-26 16:00 ` tromey at gcc dot gnu dot org
  2010-07-26 18:50 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-07-26 16:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tromey at gcc dot gnu dot org  2010-07-26 15:59 -------
Forgot some info:

opsy. gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/space/tromey/Trunk/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../trunk/configure --prefix=/home/tromey/gnu/Trunk/install
--enable-languages=c++,java,fortran --enable-threads=posix
--enable-checking=yes --enable-java-awt=gtk --enable-languages=c,c++
--disable-static --disable-bootstrap --enable-java-maintainer-mode :
(reconfigured)  : (reconfigured) ../trunk/configure
--prefix=/home/tromey/gnu/Trunk/install --enable-languages=c++,java,fortran
--enable-threads=posix --enable-checking=yes --enable-java-awt=gtk
--enable-languages=c,c++ --disable-static --disable-bootstrap
--enable-java-maintainer-mode : (reconfigured) ../trunk/configure
--prefix=/home/tromey/gnu/Trunk/install --enable-languages=c++,java,fortran
--enable-threads=posix --enable-checking=yes --enable-java-awt=gtk
--enable-languages=c,c++ --disable-static --disable-bootstrap
--enable-java-maintainer-mode
Thread model: posix
gcc version 4.6.0 20100720 (experimental) [trunk revision 162345] (GCC) 


-- 


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


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

* [Bug tree-optimization/45083] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
  2010-07-26 15:53 ` [Bug tree-optimization/45083] " tromey at gcc dot gnu dot org
  2010-07-26 16:00 ` tromey at gcc dot gnu dot org
@ 2010-07-26 18:50 ` jakub at gcc dot gnu dot org
  2010-07-26 18:56 ` [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-26 18:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2010-07-26 18:50 -------
Reduced testcase:
/* { dg-do compile } */
/* { dg-options "-O2 -Wuninitialized" } */

struct S { char *a; unsigned b; unsigned c; };
extern int foo (const char *);
extern void bar (int, int);

static void
baz (void)
{
  struct S cs[1];
  switch (cs->b)  /* { dg-warning "cs\\[^\n\r\\]\.b\\[^\n\r\\]is used
uninitialized" } */
    {
    case 101:
      if (foo (cs->a))  /* { dg-warning "cs\\[^\n\r\\]\.a\\[^\n\r\\]may be used
uninitialized" } */
        bar (cs->c, cs->b);  /* { dg-warning "cs\\[^\n\r\\]\.c\\[^\n\r\\]may be
used uninitialized" } */
    }
}

void
test (void)
{
  baz ();
}


-- 


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-26 18:50 ` jakub at gcc dot gnu dot org
@ 2010-07-26 18:56 ` pinskia at gcc dot gnu dot org
  2010-07-26 19:16 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-26 18:56 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-07-26 18:55 -------
Confirmed, this was working in 4.2.4:
t.c: In function ‘test’:
t.c:9: warning: ‘cs[0u].b’ is used uninitialized in this function
t.c:8: note: ‘cs[0u].b’ was declared here
t.c:13: warning: ‘cs[0u].a’ is used uninitialized in this function
t.c:8: note: ‘cs[0u].a’ was declared here
t.c:15: warning: ‘cs[0u].c’ is used uninitialized in this function
t.c:8: note: ‘cs[0u].c’ was declared here


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
      Known to fail|                            |4.3.2 4.6.0 4.5.0
      Known to work|                            |4.2.4
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-26 18:55:56
               date|                            |
            Summary|strange warning text from   |[4.3/4.4/4.5/4.6 Regression]
                   |gcc                         |strange warning text from
                   |                            |gcc
   Target Milestone|---                         |4.3.6


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-26 18:56 ` [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] " pinskia at gcc dot gnu dot org
@ 2010-07-26 19:16 ` jakub at gcc dot gnu dot org
  2010-07-27  8:38 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-26 19:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2010-07-26 19:16 -------
Created an attachment (id=21320)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21320&action=view)
gcc46-pr45083.patch

Untested fix.


-- 


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-07-26 19:16 ` jakub at gcc dot gnu dot org
@ 2010-07-27  8:38 ` jakub at gcc dot gnu dot org
  2010-07-27  9:45 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-27  8:38 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2010-07-26 18:55:56         |2010-07-27 08:37:51
               date|                            |


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-07-27  8:38 ` jakub at gcc dot gnu dot org
@ 2010-07-27  9:45 ` jakub at gcc dot gnu dot org
  2010-07-27 10:17 ` [Bug tree-optimization/45083] [4.3/4.4/4.5 " jakub at gcc dot gnu dot org
  2010-08-30 15:53 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-27  9:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2010-07-27 09:44 -------
Subject: Bug 45083

Author: jakub
Date: Tue Jul 27 09:43:59 2010
New Revision: 162559

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162559
Log:
        PR tree-optimization/45083
        * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.

        * gcc.dg/pr45083.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr45083.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


-- 


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-07-27  9:45 ` jakub at gcc dot gnu dot org
@ 2010-07-27 10:17 ` jakub at gcc dot gnu dot org
  2010-08-30 15:53 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-27 10:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2010-07-27 10:17 -------
Fixed on the trunk so far.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.2 4.6.0 4.5.0           |4.3.2 4.5.0
      Known to work|4.2.4                       |4.2.4 4.6.0
            Summary|[4.3/4.4/4.5/4.6 Regression]|[4.3/4.4/4.5 Regression]
                   |strange warning text from   |strange warning text from
                   |gcc                         |gcc


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5 Regression] strange warning text from gcc
  2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2010-07-27 10:17 ` [Bug tree-optimization/45083] [4.3/4.4/4.5 " jakub at gcc dot gnu dot org
@ 2010-08-30 15:53 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-30 15:53 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug tree-optimization/45083] [4.3/4.4/4.5 Regression] strange warning text from gcc
       [not found] <bug-45083-4@http.gcc.gnu.org/bugzilla/>
@ 2011-06-27 14:27 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 14:27 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.6                       |4.4.7

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 12:14:10 UTC ---
4.3 branch is being closed, moving to 4.4.7 target.


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

end of thread, other threads:[~2011-06-27 14:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-26 15:52 [Bug tree-optimization/45083] New: strange warning text from gcc tromey at gcc dot gnu dot org
2010-07-26 15:53 ` [Bug tree-optimization/45083] " tromey at gcc dot gnu dot org
2010-07-26 16:00 ` tromey at gcc dot gnu dot org
2010-07-26 18:50 ` jakub at gcc dot gnu dot org
2010-07-26 18:56 ` [Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] " pinskia at gcc dot gnu dot org
2010-07-26 19:16 ` jakub at gcc dot gnu dot org
2010-07-27  8:38 ` jakub at gcc dot gnu dot org
2010-07-27  9:45 ` jakub at gcc dot gnu dot org
2010-07-27 10:17 ` [Bug tree-optimization/45083] [4.3/4.4/4.5 " jakub at gcc dot gnu dot org
2010-08-30 15:53 ` rguenth at gcc dot gnu dot org
     [not found] <bug-45083-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 14:27 ` rguenth at gcc dot gnu.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).