public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/64663] New: ICE at -O1 and above with -g enabled on x86_64-linux-gnu
@ 2015-01-19  4:48 su at cs dot ucdavis.edu
  2015-01-19  8:30 ` [Bug c/64663] " mpolacek at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-01-19  4:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64663

            Bug ID: 64663
           Summary: ICE at -O1 and above with -g enabled on
                    x86_64-linux-gnu
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The following code causes an ICE when compiled with the current gcc trunk at
-O1 and above with -g enabled on x86_64-linux-gnu in both 32-bit and 64-bit
modes.

The ICE also affects all earlier versions of GCC since 4.6. 

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 5.0.0 20150118 (experimental) [trunk revision 219826] (GCC) 

$ 
$ gcc-trunk -O0 -g -c small.c
$ gcc-trunk -O1 -c small.c
$ 
$ gcc-trunk -O1 -g -c small.c
small.c: In function ‘fn1’:
small.c:13:1: internal compiler error: Segmentation fault
 }
 ^
0xa9f6af crash_signal
    ../../gcc-trunk/gcc/toplev.c:381
0x736a40 decl_piece_bitsize
    ../../gcc-trunk/gcc/dwarf2out.c:5072
0x766c47 dw_sra_loc_expr
    ../../gcc-trunk/gcc/dwarf2out.c:13943
0x7673e0 dw_loc_list
    ../../gcc-trunk/gcc/dwarf2out.c:14118
0x7673e0 loc_list_from_tree
    ../../gcc-trunk/gcc/dwarf2out.c:14562
0x76c5c3 add_location_or_const_value_attribute
    ../../gcc-trunk/gcc/dwarf2out.c:16070
0x753250 gen_variable_die
    ../../gcc-trunk/gcc/dwarf2out.c:19240
0x754ef9 gen_decl_die
    ../../gcc-trunk/gcc/dwarf2out.c:20969
0x7566a4 process_scope_var
    ../../gcc-trunk/gcc/dwarf2out.c:20484
0x756877 decls_for_scope
    ../../gcc-trunk/gcc/dwarf2out.c:20509
0x756f6a gen_subprogram_die
    ../../gcc-trunk/gcc/dwarf2out.c:18832
0x754f69 gen_decl_die
    ../../gcc-trunk/gcc/dwarf2out.c:20902
0x755f9c dwarf2out_decl
    ../../gcc-trunk/gcc/dwarf2out.c:21335
0x75636e dwarf2out_function_decl
    ../../gcc-trunk/gcc/dwarf2out.c:21343
0x7c2dd4 rest_of_handle_final
    ../../gcc-trunk/gcc/final.c:4521
0x7c2dd4 execute
    ../../gcc-trunk/gcc/final.c:4563
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.
$ 


-----------------------------------


int a, b;

void
fn1 ()
{
  int c[9] = { 0 };
  for (;;)
    {
      a = (int) 3655990292 % 9;
      if (b && c[a])
    c[a] = 0;
    }
}
>From gcc-bugs-return-473787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 04:55:47 2015
Return-Path: <gcc-bugs-return-473787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4021 invoked by alias); 19 Jan 2015 04:55:45 -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 3967 invoked by uid 48); 19 Jan 2015 04:55:38 -0000
From: "pangbw at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64532] [4.9, 5 Regression] internal compiler error: Max. number of generated reload insns per insn is achieved (90)
Date: Mon, 19 Jan 2015 04:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: major
X-Bugzilla-Who: pangbw at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64532-4-TSXSM4AGZz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64532-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64532-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: 2015-01/txt/msg01781.txt.bz2
Content-length: 586

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd532

--- Comment #6 from baoshan <pangbw at gmail dot com> ---
After several days study to the code, I turn to feel the code is wrong. It
seems we should use "=t" instead of "=w" for 'y' because single float register
is expected here for "vcvt.f32.s32". From the document, "w" just means  VFP
floating-point register  but not distinguishing single, double or quad float
register:
https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html#Machine-Constraints

The constraint letter 't' is not documented in the GCC doc, this is a issue.


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

end of thread, other threads:[~2015-06-23  8:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19  4:48 [Bug c/64663] New: ICE at -O1 and above with -g enabled on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-01-19  8:30 ` [Bug c/64663] " mpolacek at gcc dot gnu.org
2015-01-19  9:25 ` jakub at gcc dot gnu.org
2015-01-19 10:04 ` jakub at gcc dot gnu.org
2015-01-19 10:05 ` [Bug c/64663] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-01-19 12:16 ` [Bug debug/64663] " jakub at gcc dot gnu.org
2015-01-20 18:30 ` jakub at gcc dot gnu.org
2015-01-20 21:10 ` [Bug debug/64663] [4.8/4.9 " jakub at gcc dot gnu.org
2015-02-01 17:32 ` jakub at gcc dot gnu.org
2015-06-23  8:58 ` [Bug debug/64663] [4.8 " 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).