public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39693] Warning about uninitialized local variable use
       [not found] <bug-39693-4@http.gcc.gnu.org/bugzilla/>
@ 2013-10-27  1:05 ` manu at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu.org @ 2013-10-27  1:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Igor, your testcase is exactly PR18501. No fix in sight unfortunately.
>From gcc-bugs-return-432819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 27 01:15:33 2013
Return-Path: <gcc-bugs-return-432819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10481 invoked by alias); 27 Oct 2013 01:15:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10108 invoked by uid 48); 27 Oct 2013 01:15:21 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58890] Doesn't generate  warning about potentially uninitialized variable
Date: Sun, 27 Oct 2013 01:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-58890-4-6kmnZHQdXD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01962.txt.bz2
Content-length: 642

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |manu at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Exactly 18501. No fix in sight unfortunately.

*** This bug has been marked as a duplicate of bug 18501 ***
>From gcc-bugs-return-432818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 27 01:15:33 2013
Return-Path: <gcc-bugs-return-432818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10464 invoked by alias); 27 Oct 2013 01:15:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10368 invoked by uid 48); 27 Oct 2013 01:15:27 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/18501] [4.7/4.8/4.9 Regression] Missing 'used uninitialized' warning (CCP)
Date: Sun, 27 Oct 2013 01:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-18501-4-QMh0hnoYoq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-18501-4@http.gcc.gnu.org/bugzilla/>
References: <bug-18501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01963.txt.bz2
Content-length: 491

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |igor.shevlyakov at gmail dot com

--- Comment #66 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
*** Bug 58890 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-432820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 27 04:03:07 2013
Return-Path: <gcc-bugs-return-432820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17341 invoked by alias); 27 Oct 2013 04:03:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17244 invoked by uid 48); 27 Oct 2013 04:03:00 -0000
From: "mcree at orcon dot net.nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/58892] New: ICE in combine.c when using -Os on alpha
Date: Sun, 27 Oct 2013 04:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mcree at orcon dot net.nz
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget attachments.created
Message-ID: <bug-58892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01964.txt.bz2
Content-length: 2395

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

            Bug ID: 58892
           Summary: ICE in combine.c when using -Os on alpha
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mcree at orcon dot net.nz
            Target: alpha

Created attachment 31096
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31096&action=edit
Preprocessed C source that causes ICE.

While compiling linux kernel for Alpha get ICE in combine.c:711 when compiling
drivers/media/dvb-core/dvb-demux.c.

Attached preprocessed source from that compilation.  Established that it is the
use of -Os that leads to the ICE. Namely running:

gcc-4.8 -nostdinc -Os -c ices.c

generates the following output:

In file included from
/home/mjc/debian/linux/linux-3.11.5/include/linux/thread_info.h:54:0,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/preempt.h:9,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/spinlock.h:50,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/seqlock.h:29,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/time.h:5,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/uapi/linux/timex.h:56,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/timex.h:56,
                 from
/home/mjc/debian/linux/linux-3.11.5/include/linux/sched.h:17,
                 from
/home/mjc/debian/linux/linux-3.11.5/drivers/media/dvb-core/dvb_demux.c:24:
/home/mjc/debian/linux/linux-3.11.5/arch/alpha/include/asm/thread_info.h:52:30:
warning: call-clobbered register used for global register variable [enabled by
default]
 register struct thread_info *__current_thread_info __asm__("$8");
                              ^
/home/mjc/debian/linux/linux-3.11.5/drivers/media/dvb-core/dvb_demux.c: In
function ‘dvb_dmx_swfilter_packet’:
/home/mjc/debian/linux/linux-3.11.5/drivers/media/dvb-core/dvb_demux.c:474:1:
internal compiler error: in do_SUBST, at combine.c:711
 }
 ^


Compilation is sucessful without -Os option or with -O1.  ICE reappears if
compile with -O2.  ICE only occurs with gcc-4.8 (Debian 4.8.2-1) but not
gcc-4.6 or gcc-4.7 so looks like a regression.
>From gcc-bugs-return-432821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 27 06:25:25 2013
Return-Path: <gcc-bugs-return-432821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19874 invoked by alias); 27 Oct 2013 06:25:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19835 invoked by uid 48); 27 Oct 2013 06:25:15 -0000
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of "actual" loop invariant in loop body.
Date: Sun, 27 Oct 2013 06:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernd.edlinger at hotmail dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58508-4-DKeJ881yny@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58508-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58508-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01965.txt.bz2
Content-length: 564

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX508

Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernd.edlinger at hotmail dot de

--- Comment #4 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Hi,

the test case is failing on a i686-pc-linux-gnu.
Reason: by default the -msse2 is not enabled.
If I add -msse2 to dg_options the test passes.

Regards
Bernd.


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

* [Bug c/39693] Warning about uninitialized local variable use
  2009-04-09  9:17 [Bug c/39693] New: " simon dot thum at gmx dot de
                   ` (2 preceding siblings ...)
  2009-04-09 13:15 ` simon dot thum at gmx dot de
@ 2009-04-09 13:25 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-04-09 13:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from manu at gcc dot gnu dot org  2009-04-09 13:25 -------
(In reply to comment #3)
> BTW in developer docs, -Wextra still mentions -Wuninitialized; it seems to me
> this is not intentional.
> 

Both -Wall and -Wextra enable Wuninitialized. I guess this is historical. 

Please, in the future, when you make assertions like the above, be more
specific: provide a link, or a file name and a section title. Otherwise it is
not completely clear what "developer docs" actually means or where in the
developer docs says what you say it says.


-- 


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


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

* [Bug c/39693] Warning about uninitialized local variable use
  2009-04-09  9:17 [Bug c/39693] New: " simon dot thum at gmx dot de
  2009-04-09 12:08 ` [Bug c/39693] " manu at gcc dot gnu dot org
  2009-04-09 13:11 ` simon dot thum at gmx dot de
@ 2009-04-09 13:15 ` simon dot thum at gmx dot de
  2009-04-09 13:25 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: simon dot thum at gmx dot de @ 2009-04-09 13:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from simon dot thum at gmx dot de  2009-04-09 13:15 -------
BTW in developer docs, -Wextra still mentions -Wuninitialized; it seems to me
this is not intentional.


-- 


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


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

* [Bug c/39693] Warning about uninitialized local variable use
  2009-04-09  9:17 [Bug c/39693] New: " simon dot thum at gmx dot de
  2009-04-09 12:08 ` [Bug c/39693] " manu at gcc dot gnu dot org
@ 2009-04-09 13:11 ` simon dot thum at gmx dot de
  2009-04-09 13:15 ` simon dot thum at gmx dot de
  2009-04-09 13:25 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: simon dot thum at gmx dot de @ 2009-04-09 13:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from simon dot thum at gmx dot de  2009-04-09 13:11 -------
Sorry for the noise; I didn't check the developer docs (just latest release)...


-- 


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


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

* [Bug c/39693] Warning about uninitialized local variable use
  2009-04-09  9:17 [Bug c/39693] New: " simon dot thum at gmx dot de
@ 2009-04-09 12:08 ` manu at gcc dot gnu dot org
  2009-04-09 13:11 ` simon dot thum at gmx dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-04-09 12:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from manu at gcc dot gnu dot org  2009-04-09 12:08 -------
The bugs you mention are fixed.

In GCC 4.4, some uninitialized uses are reported even at -O0. If you have
specific testcases not covered by any PR linked in bug 24639, then open a new
PR and attach the preprocessed testcase. What you propose is already covered in
bug 24639 and in http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

end of thread, other threads:[~2013-10-27  1:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39693-4@http.gcc.gnu.org/bugzilla/>
2013-10-27  1:05 ` [Bug c/39693] Warning about uninitialized local variable use manu at gcc dot gnu.org
2009-04-09  9:17 [Bug c/39693] New: " simon dot thum at gmx dot de
2009-04-09 12:08 ` [Bug c/39693] " manu at gcc dot gnu dot org
2009-04-09 13:11 ` simon dot thum at gmx dot de
2009-04-09 13:15 ` simon dot thum at gmx dot de
2009-04-09 13:25 ` 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).