public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/59273] New: [4.9 Regression] ICE in expand_expr_real_2, at expr.c:9188 on alpha
@ 2013-11-24 11:01 ubizjak at gmail dot com
  2013-11-24 15:15 ` [Bug middle-end/59273] " ubizjak at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2013-11-24 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59273
           Summary: [4.9 Regression] ICE in expand_expr_real_2, at
                    expr.c:9188 on alpha
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

Recent change introduced following new testsuite failure (and several others)
on alpha-linux-gnu [1]:

FAIL: gcc.dg/torture/pr46723.c  -O3 -fomit-frame-pointer  (internal compiler
error)
FAIL: gcc.dg/torture/pr46723.c  -O3 -fomit-frame-pointer  (test for excess
errors)
...

The failure can be triggered on a crosscompiler from x86_64 to alpha-linux-gnu:

$ gcc-build-alpha/gcc/cc1 -O3 -fpreprocessed pr46723.c

pr46723.c: In function ‘test’:
pr46723.c:4:6: internal compiler error: in expand_expr_real_2, at expr.c:9188
 void test()
      ^
0x6beb38 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        /home/uros/gcc-svn/trunk/gcc/expr.c:9188
0x5e8ed9 expand_gimple_stmt_1
        /home/uros/gcc-svn/trunk/gcc/cfgexpand.c:3235
0x5e8ed9 expand_gimple_stmt
        /home/uros/gcc-svn/trunk/gcc/cfgexpand.c:3295
0x5eafda expand_gimple_basic_block
        /home/uros/gcc-svn/trunk/gcc/cfgexpand.c:5135
0x5ecf3c gimple_expand_cfg
        /home/uros/gcc-svn/trunk/gcc/cfgexpand.c:5701
0x5ecf3c execute
        /home/uros/gcc-svn/trunk/gcc/cfgexpand.c:5921
Please submit a full bug report,

(gdb) up
#2  0x00000000006beb39 in expand_expr_real_2 (ops=ops@entry=0x7fffffffd9b0,
target=0x7ffff19c5100, tmode=<optimized out>,
modifier=modifier@entry=EXPAND_NORMAL)
    at /home/uros/gcc-svn/trunk/gcc/expr.c:9188
9188      gcc_assert (temp);
(gdb) list
9183     binop3:
9184      if (modifier == EXPAND_STACK_PARM)
9185        target = 0;
9186      temp = expand_binop (mode, this_optab, op0, op1, target,
9187                           unsignedp, OPTAB_LIB_WIDEN);
9188      gcc_assert (temp);
9189      /* Bitwise operations do not need bitfield reduction as we expect
their
9190         operands being properly truncated.  */
9191      if (code == BIT_XOR_EXPR
9192          || code == BIT_AND_EXPR

(gdb) p debug_rtx (target)
(reg:V4HI 130 [ vect_vec_iv_.17 ])
$1 = void
(gdb) p debug_rtx (op0)
(reg:V4HI 174 [ D.1496 ])
$2 = void
(gdb) p debug_rtx (op1)
(const_vector:V4HI [
        (const_int 0 [0])
        (const_int 1 [0x1])
        (const_int 2 [0x2])
        (const_int 3 [0x3])
    ])
$3 = void
(gdb) p code
$4 = PLUS_EXPR

The compiler is trying to blindly generate V4HImode vector addition without
checking if the target supports it (alpha doesn't, while it supports V4HImode
moves).

[1] http://gcc.gnu.org/ml/gcc-testresults/2013-11/msg01763.html
>From gcc-bugs-return-435681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 24 11:02:57 2013
Return-Path: <gcc-bugs-return-435681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31683 invoked by alias); 24 Nov 2013 11:02:57 -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 31661 invoked by uid 48); 24 Nov 2013 11:02:53 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/59273] [4.9 Regression] ICE in expand_expr_real_2, at expr.c:9188 on alpha
Date: Sun, 24 Nov 2013 11:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
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: cf_gcctarget target_milestone
Message-ID: <bug-59273-4-nJbLXFtEUr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59273-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-11/txt/msg02458.txt.bz2
Content-length: 359

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |alpha-linux-gnu
   Target Milestone|---                         |4.9.0
>From gcc-bugs-return-435682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 24 12:15:35 2013
Return-Path: <gcc-bugs-return-435682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24103 invoked by alias); 24 Nov 2013 12:15:34 -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 24087 invoked by uid 48); 24 Nov 2013 12:15:28 -0000
From: "octoploid at yandex dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/58893] [4.8/4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault
Date: Sun, 24 Nov 2013 12:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: octoploid at yandex dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58893-4-iO6P1PAWKL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58893-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/msg02459.txt.bz2
Content-length: 5137

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

--- Comment #5 from Markus Trippelsdorf <octoploid at yandex dot com> ---
=700== Conditional jump or move depends on uninitialised value(s)
=700==    at 0xDCB562: diagnostic_report_current_module(diagnostic_context*,
unsigned int) (diagnostic.c:506)
=700==    by 0x58DB6D: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3025)
=700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
=700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
=700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
=700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
=700==    by 0xDDF152: _cpp_find_file (files.c:571)
=700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
=700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
=700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
=700==    by 0xDE3A58: _cpp_lex_direct (lex.c:2104)
=700==    by 0xDE490B: _cpp_lex_token (lex.c:2055)
=700==  Uninitialised value was created by a heap allocation
=700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
=700==    by 0xE0F557: xmalloc (xmalloc.c:147)
=700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
=700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
=700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
=700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
=700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
=700==700== Conditional jump or move depends on uninitialised value(s)
=700==    at 0xDCF7FE: expand_location_1(unsigned int, bool) (input.c:55)
=700==    by 0xDCFA5A: expand_location_to_spelling_point(unsigned int)
(input.c:162)
=700==    by 0xDCBC28: diagnostic_build_prefix(diagnostic_context*,
diagnostic_info const*) (diagnostic.c:239)
=700==    by 0x58DC7F: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3030)
=700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
=700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
=700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
=700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
=700==    by 0xDDF152: _cpp_find_file (files.c:571)
=700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
=700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
=700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
=700==  Uninitialised value was created by a heap allocation
=700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
=700==    by 0xE0F557: xmalloc (xmalloc.c:147)
=700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
=700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
=700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
=700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
=700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
=700==700== Conditional jump or move depends on uninitialised value(s)
=700==    at 0xDCF841: expand_location_1(unsigned int, bool) (input.c:63)
=700==    by 0xDCFA5A: expand_location_to_spelling_point(unsigned int)
(input.c:162)
=700==    by 0xDCBC28: diagnostic_build_prefix(diagnostic_context*,
diagnostic_info const*) (diagnostic.c:239)
=700==    by 0x58DC7F: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3030)
=700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
=700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
=700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
=700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
=700==    by 0xDDF152: _cpp_find_file (files.c:571)
=700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
=700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
=700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
=700==  Uninitialised value was created by a heap allocation
=700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
=700==    by 0xE0F557: xmalloc (xmalloc.c:147)
=700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
=700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
=700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
=700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
=700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
....


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

end of thread, other threads:[~2013-11-28 15:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-24 11:01 [Bug middle-end/59273] New: [4.9 Regression] ICE in expand_expr_real_2, at expr.c:9188 on alpha ubizjak at gmail dot com
2013-11-24 15:15 ` [Bug middle-end/59273] " ubizjak at gmail dot com
2013-11-25  9:15 ` rguenth at gcc dot gnu.org
2013-11-26 12:22 ` ubizjak at gmail dot com
2013-11-26 20:55 ` jakub at gcc dot gnu.org
2013-11-26 20:58 ` jakub at gcc dot gnu.org
2013-11-28 15:20 ` ubizjak at gmail dot com

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