public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/68060] New: ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413
@ 2015-10-23  0:09 su at cs dot ucdavis.edu
  2015-10-23  8:19 ` [Bug tree-optimization/68060] [6 Regression] " rguenth at gcc dot gnu.org
  2015-10-29  7:36 ` trippels at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-10-23  0:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 68060
           Summary: ICE on valid code at -O3 on x86_64-linux-gnu in
                    vect_get_vec_def_for_operand, at
                    tree-vect-stmts.c:1413
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

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

It is a regression from 5.2.x.


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-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 6.0.0 20151021 (experimental) [trunk revision 229137] (GCC) 
$ 
$ gcc-trunk -O2 small.c; ./a.out
$ gcc-5.2 -O3 small.c; ./a.out
$ 
$ gcc-trunk -O3 small.c
small.c: In function ‘main’:
small.c:4:1: internal compiler error: in vect_get_vec_def_for_operand, at
tree-vect-stmts.c:1413
 main ()
 ^
0xd07273 vect_get_vec_def_for_operand(tree_node*, gimple*)
        ../../gcc-trunk/gcc/tree-vect-stmts.c:1413
0xd077e1 vect_get_vec_defs(tree_node*, tree_node*, gimple*, vec<tree_node*,
va_heap, vl_ptr>*, vec<tree_node*, va_heap, vl_ptr>*, _slp_tree*, int)
        ../../gcc-trunk/gcc/tree-vect-stmts.c:1568
0xd102c0 vectorizable_operation
        ../../gcc-trunk/gcc/tree-vect-stmts.c:4894
0xd1d956 vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
        ../../gcc-trunk/gcc/tree-vect-stmts.c:7690
0xd23b73 vect_transform_loop(_loop_vec_info*)
        ../../gcc-trunk/gcc/tree-vect-loop.c:6134
0xd3e6c7 vectorize_loops()
        ../../gcc-trunk/gcc/tree-vectorizer.c:512
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, c;

int
main ()
{
  for (; c; c++)
    for (a = 0; a < 4; a++)
      {
        c &= 5;
        for (b = 0; b < 2; b++)
          c |= 1;
      }
  return 0; 
}
>From gcc-bugs-return-500346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 23 01:07:24 2015
Return-Path: <gcc-bugs-return-500346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88768 invoked by alias); 23 Oct 2015 01:07: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 88688 invoked by uid 48); 23 Oct 2015 01:07:18 -0000
From: "gong_su at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/67968] go1: internal compiler error: in write_specific_type_functions, at go/gofrontend/types.cc:1812
Date: Fri, 23 Oct 2015 01:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gong_su at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67968-4-G2rgfalc02@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67968-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-10/txt/msg01901.txt.bz2
Content-length: 4453

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

--- Comment #4 from gong_su at hotmail dot com ---
Hi Dominik, here is the output after making the changes you asked. It looks the
same as adding "-x" to the "go" command. I will email all the .go files under
.../rpc/api.

root@linux05:~/Downloads/go-ethereum# make geth
build/env.sh go install -x -v -ldflags '-X main.gitCommit
4813a39100dc8dc884b0a68ceae51c2c420f92af' ./cmd/geth
WORK=/tmp/go-build873382851
github.com/ethereum/go-ethereum/rpc/api
mkdir -p $WORK/github.com/ethereum/go-ethereum/rpc/api/_obj/
mkdir -p $WORK/github.com/ethereum/go-ethereum/rpc/
cd
/root/Downloads/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/api
/usr/bin/gccgo-5 -I $WORK -I
/root/Downloads/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/Godeps/_workspace/pkg/gccgo_linux_s390x
-I /root/Downloads/go-ethereum/build/_workspace/pkg/gccgo_linux_s390x -c -g
-fgo-pkgpath=github.com/ethereum/go-ethereum/rpc/api
-fgo-relative-import-path=_/root/Downloads/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/api
-o $WORK/github.com/ethereum/go-ethereum/rpc/api/_obj/_go_.o ./admin.go
./admin_args.go ./admin_js.go ./api.go ./args.go ./db.go ./db_args.go
./db_js.go ./debug.go ./debug_args.go ./debug_js.go ./eth.go ./eth_args.go
./eth_js.go ./mergedapi.go ./miner.go ./miner_args.go ./miner_js.go ./net.go
./net_js.go ./parsing.go ./personal.go ./personal_args.go ./personal_js.go
./shh.go ./shh_args.go ./shh_js.go ./txpool.go ./txpool_js.go ./utils.go
./web3.go ./web3_args.go
# github.com/ethereum/go-ethereum/rpc/api
go1: internal compiler error: in write_specific_type_functions, at
go/gofrontend/types.cc:1812
0x802473df Type::write_specific_type_functions(Gogo*, Named_type*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, Function_type*, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, Function_type*)
        ../../src/gcc/go/gofrontend/types.cc:1812
0x80245b33 Type::specific_type_functions(Gogo*, Named_type*, Function_type*,
Function_type*, Named_object**, Named_object**)
        ../../src/gcc/go/gofrontend/types.cc:1791
0x8024639d Type::type_functions(Gogo*, Named_type*, Function_type*,
Function_type*, Named_object**, Named_object**)
        ../../src/gcc/go/gofrontend/types.cc:1668
0x8024eff7 Type::type_descriptor_constructor(Gogo*, int, Named_type*, Methods
const*, bool)
        ../../src/gcc/go/gofrontend/types.cc:2011
0x80250b1d Array_type::array_type_descriptor(Gogo*, Named_type*)
        ../../src/gcc/go/gofrontend/types.cc:6318
0x80248a33 Type::make_type_descriptor_var(Gogo*)
        ../../src/gcc/go/gofrontend/types.cc:1218
0x80248e05 Type::type_descriptor_pointer(Gogo*, Location)
        ../../src/gcc/go/gofrontend/types.cc:1156
0x801c8e6f Type_descriptor_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:13400
0x801a8efd Interface_value_expression::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/expressions.cc:14023
0x8021ef49 Temporary_statement::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/statements.cc:470
0x801e8d27 Block::get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/gogo.cc:5811
0x8021ea51 Block_statement::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/statements.cc:1802
0x801e8d27 Block::get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/gogo.cc:5811
0x8021ea51 Block_statement::do_get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/statements.cc:1802
0x801e8d27 Block::get_backend(Translate_context*)
        ../../src/gcc/go/gofrontend/gogo.cc:5811
0x801ea647 Function::build(Gogo*, Named_object*)
        ../../src/gcc/go/gofrontend/gogo.cc:5417
0x801ebd7d Named_object::get_backend(Gogo*, std::vector<Bexpression*,
std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&,
std::vector<Bfunction*, std::allocator<Bfunction*> >&)
        ../../src/gcc/go/gofrontend/gogo.cc:7136
0x801f514d Gogo::write_globals()
        ../../src/gcc/go/gofrontend/gogo.cc:1345
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:9: recipe for target 'geth' failed
make: *** [geth] Error 2


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

* [Bug tree-optimization/68060] [6 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413
  2015-10-23  0:09 [Bug tree-optimization/68060] New: ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413 su at cs dot ucdavis.edu
@ 2015-10-23  8:19 ` rguenth at gcc dot gnu.org
  2015-10-29  7:36 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-23  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-23
      Known to work|                            |5.2.0
   Target Milestone|---                         |6.0
            Summary|ICE on valid code at -O3 on |[6 Regression] ICE on valid
                   |x86_64-linux-gnu in         |code at -O3 on
                   |vect_get_vec_def_for_operan |x86_64-linux-gnu in
                   |d, at                       |vect_get_vec_def_for_operan
                   |tree-vect-stmts.c:1413      |d, at
                   |                            |tree-vect-stmts.c:1413
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.


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

* [Bug tree-optimization/68060] [6 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413
  2015-10-23  0:09 [Bug tree-optimization/68060] New: ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413 su at cs dot ucdavis.edu
  2015-10-23  8:19 ` [Bug tree-optimization/68060] [6 Regression] " rguenth at gcc dot gnu.org
@ 2015-10-29  7:36 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-10-29  7:36 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anton at samba dot org

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 68140 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2015-10-29  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23  0:09 [Bug tree-optimization/68060] New: ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413 su at cs dot ucdavis.edu
2015-10-23  8:19 ` [Bug tree-optimization/68060] [6 Regression] " rguenth at gcc dot gnu.org
2015-10-29  7:36 ` trippels 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).