public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58961] missing "<variable> may be used uninitialized in this function"
       [not found] <bug-58961-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-01 12:57 ` afenkart at gmail dot com
  2013-11-01 14:53 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: afenkart at gmail dot com @ 2013-11-01 12:57 UTC (permalink / raw)
  To: gcc-bugs

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

afenkart at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |afenkart at gmail dot com

--- Comment #1 from afenkart at gmail dot com ---
Created attachment 31133
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31133&action=edit
expect_a_maybe_used_uninitialized_in_this_function_Wuninitialized

compile cmd:
gcc -Wall -Wextra test.c

expect:
test.c:22:8: warning: ‘a’ is used uninitialized in this function
[-Wuninitialized]

output:
none
>From gcc-bugs-return-433259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 01 13:50:16 2013
Return-Path: <gcc-bugs-return-433259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15674 invoked by alias); 1 Nov 2013 13:50:15 -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 15610 invoked by uid 48); 1 Nov 2013 13:50:10 -0000
From: "gcc at mag32 dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/57636] cr16: ICE while building libgcc
Date: Fri, 01 Nov 2013 13:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gcc at mag32 dot net
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: cc
Message-ID: <bug-57636-4-cTcC1CDAMA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57636-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57636-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-11/txt/msg00036.txt.bz2
Content-length: 7060

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

gcc at mag32 dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at mag32 dot net

--- Comment #3 from gcc at mag32 dot net ---
I am seeing a similar issue when building target CR16 with GCC 4.8.2. Here are
some details:


Exact version of GCC? 4.8.2

System type? ArchLinux (Linux arch-mago 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18
23:22:36 CEST 2013 x86_64 GNU/Linux)

The GCC used (xgcc) is a cross-compiled version for the CR16 target. This issue
triggers when I'm trying to build GCC 4.8.2 for CR16. My host GCC is also
4.8.2. The configure flags used are:

  ../configure --prefix=/usr/lib/cr16-unknown-elf --bindir=/usr/bin \
    --with-sysroot=/usr/lib/cr16-unknown-elf \
    --target=/usr/lib/cr16-unknown-elf --without-headers --enable-languages=c \
    --with-newlib --disable-libssp --disable-threads --disable-nls \
    --disable-shared --disable-multilib --disable-decimal-float \
    --disable-libgomp --disable-libmudflap

Commandline used to trigger the bug? (This gets executed by the GCC makefile)

magnus@arch-mago:~/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/cr16-unknown-elf/libgcc#
/home/magnus/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/./gcc/xgcc
-B/home/magnus/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/./gcc/
-B/usr/lib/cr16-unknown-elf/cr16-unknown-elf/bin/
-B/usr/lib/cr16-unknown-elf/cr16-unknown-elf/lib/ -isystem
/usr/lib/cr16-unknown-elf/cr16-unknown-elf/include -isystem
/usr/lib/cr16-unknown-elf/cr16-unknown-elf/sys-include    -g -O2 -O2  -g -O2
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-Dinhibit_libc  -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/.
-I../../../libgcc/../gcc -I../../../libgcc/../include  -DHAVE_CC_TLS
-DUSE_EMUTLS -o unwind-cr16.o -MT unwind-cr16.o -MD -MP -MF unwind-cr16.dep
-fexceptions -c ../../../libgcc/config/cr16/unwind-cr16.c -fvisibility=hidden
-DHIDE_EXPORTS


What is the compiler output?

../../../libgcc/config/cr16/unwind-cr16.c: In function 'uw_update_context':
../../../libgcc/config/cr16/unwind-cr16.c:1468:28: warning: cast from pointer
to integer of different size [-Wpointer-to-int-cast]
   context->ra = (void*)( ( (unsigned)context->ra ) << 1 ) ;
                            ^
../../../libgcc/config/cr16/unwind-cr16.c:1468:17: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   context->ra = (void*)( ( (unsigned)context->ra ) << 1 ) ;
                 ^
In file included from ../../../libgcc/config/cr16/unwind-cr16.c:1661:0:
../../../libgcc/unwind.inc: In function '_Unwind_RaiseException':
../../../libgcc/unwind.inc:135:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   uw_install_context (&this_context, &cur_context);


    ^
../../../libgcc/unwind.inc:135:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   uw_install_context (&this_context, &cur_context);

                                                                         ^
In file included from ../../../libgcc/config/cr16/unwind-cr16.c:1661:0:
../../../libgcc/unwind.inc: In function '_Unwind_ForcedUnwind':
../../../libgcc/unwind.inc:211:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   uw_install_context (&this_context, &cur_context);


    ^
../../../libgcc/unwind.inc:211:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   uw_install_context (&this_context, &cur_context);

                                                                         ^
../../../libgcc/unwind.inc: In function '_Unwind_Resume':
../../../libgcc/unwind.inc:236:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   uw_install_context (&this_context, &cur_context);


    ^
../../../libgcc/unwind.inc:236:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   uw_install_context (&this_context, &cur_context);

                                                                         ^
../../../libgcc/unwind.inc: In function '_Unwind_Resume_or_Rethrow':
../../../libgcc/unwind.inc:261:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   uw_install_context (&this_context, &cur_context);


    ^
../../../libgcc/unwind.inc:261:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   uw_install_context (&this_context, &cur_context);

                                                                         ^
../../../libgcc/config/cr16/unwind-cr16.c: In function 'execute_cfa_program':
../../../libgcc/config/cr16/unwind-cr16.c:1142:30: warning: iteration 1ul
invokes undefined behavior [-Waggressive-loop-optimizations]
        fs->regs.reg[reg].how = REG_SAVED_OFFSET;
                              ^
../../../libgcc/config/cr16/unwind-cr16.c:1140:4: note: containing loop
    for (reg = 16; reg < 32; ++reg)
    ^
../../../libgcc/config/cr16/unwind-cr16.c: In function 'uw_frame_state_for':
../../../libgcc/config/cr16/unwind-cr16.c:1239:1: internal compiler error: in
variable_post_merge_new_vals, at var-tracking.c:4430
 }
 ^
0x90b62a variable_post_merge_new_vals
    ../../gcc/var-tracking.c:4428
0xa42137 htab_traverse_noresize
    ../../libiberty/hashtab.c:784
0x90fb49 dataflow_post_merge_adjust
    ../../gcc/var-tracking.c:4540
0x90fb49 vt_find_locations
    ../../gcc/var-tracking.c:6965
0x915164 variable_tracking_main_1
    ../../gcc/var-tracking.c:10166
0x915164 variable_tracking_main()
    ../../gcc/var-tracking.c:10212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c/58961] missing "<variable> may be used uninitialized in this function"
       [not found] <bug-58961-4@http.gcc.gnu.org/bugzilla/>
  2013-11-01 12:57 ` [Bug c/58961] missing "<variable> may be used uninitialized in this function" afenkart at gmail dot com
@ 2013-11-01 14:53 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-11-01 14:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Well this is most likely a dup of another bug.
>test.c:22:8: warning: ‘a’ is used uninitialized in this function [-Wuninitialized]

maybe used is closer to what it should be.
>From gcc-bugs-return-433266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 01 15:23:33 2013
Return-Path: <gcc-bugs-return-433266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6823 invoked by alias); 1 Nov 2013 15:23: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 6445 invoked by uid 55); 1 Nov 2013 15:23:29 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58834] [4.9 Regression] ICE on __builtin_shuffle within template function
Date: Fri, 01 Nov 2013 15:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58834-4-1LV1p5BTN5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58834-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-11/txt/msg00043.txt.bz2
Content-length: 782

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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Fri Nov  1 15:23:24 2013
New Revision: 204296

URL: http://gcc.gnu.org/viewcvs?rev 4296&root=gcc&view=rev
Log:
2013-11-01  Marc Glisse  <marc.glisse@inria.fr>

    PR c++/58834
gcc/cp/
    * pt.c (type_dependent_expression_p): Handle null argument.

gcc/testsuite/
    * g++.dg/ext/pr58834.C: New file.

Added:
    trunk/gcc/testsuite/g++.dg/ext/pr58834.C   (with props)
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Propchange: trunk/gcc/testsuite/g++.dg/ext/pr58834.C
            ('svn:eol-style' added)

Propchange: trunk/gcc/testsuite/g++.dg/ext/pr58834.C
            ('svn:keywords' added)


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

end of thread, other threads:[~2013-11-01 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58961-4@http.gcc.gnu.org/bugzilla/>
2013-11-01 12:57 ` [Bug c/58961] missing "<variable> may be used uninitialized in this function" afenkart at gmail dot com
2013-11-01 14:53 ` pinskia 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).