public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/30938]  New: Bootstrap fails on x86_64 for -ftree-vectorize
@ 2007-02-23 19:52 ubizjak at gmail dot com
  2007-02-23 20:16 ` [Bug tree-optimization/30938] " ubizjak at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2007-02-23 19:52 UTC (permalink / raw)
  To: gcc-bugs

-ftree-vectorize bootstrap segfaults on x86_64 in:

0x000000000098ecf9 in vect_is_simple_use (operand=0x2aaab01533c0,
loop_vinfo=0x156f0b0, def_stmt=0x7fff4264e488, 
    def=0x7fff4264e490, dt=0x7fff4264e488) at
../../gcc-svn/trunk/gcc/tree-vectorizer.c:1729
1729      switch (TREE_CODE (*def_stmt))
(gdb) bt
#0  0x000000000098ecf9 in vect_is_simple_use (operand=0x2aaab01533c0,
loop_vinfo=0x156f0b0, def_stmt=0x7fff4264e488, 
    def=0x7fff4264e490, dt=0x7fff4264e488) at
../../gcc-svn/trunk/gcc/tree-vectorizer.c:1729
#1  0x0000000000cf8b95 in vectorizable_call (stmt=0x2aaaaee70ed0, bsi=0x0,
vec_stmt=0x0)
    at ../../gcc-svn/trunk/gcc/tree-vect-transform.c:1847
#2  0x0000000000ce602d in vect_analyze_operations (loop_vinfo=0x156f0b0) at
../../gcc-svn/trunk/gcc/tree-vect-analyze.c:376
#3  0x0000000000ced78d in vect_analyze_loop (loop=0x156f480) at
../../gcc-svn/trunk/gcc/tree-vect-analyze.c:2727
#4  0x0000000000990d90 in vectorize_loops () at
../../gcc-svn/trunk/gcc/tree-vectorizer.c:2217
#5  0x0000000000919053 in tree_vectorize () at
../../gcc-svn/trunk/gcc/tree-ssa-loop.c:183

This failure happens when compiling i386.c, in function classify_argument.

To reproduce this failure, run make with BOOT_CFLAGS="-O2 -ftree-vectorize".


-- 
           Summary: Bootstrap fails on x86_64 for -ftree-vectorize
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ubizjak at gmail dot com
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize
  2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
@ 2007-02-23 20:16 ` ubizjak at gmail dot com
  2007-02-25 18:29 ` ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2007-02-23 20:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ubizjak at gmail dot com  2007-02-23 20:16 -------
This is the operand that is not liked by vect_is_simple_use():

(gdb) p debug_tree (operand)
 <ssa_name 0x2aaab01533c0
    type <enumeral_type 0x2aaaaedc0b40 x86_64_reg_class sizes-gimplified
unsigned type_0 SI
        size <integer_cst 0x2aaaadff1ab0 constant invariant 32>
        unit size <integer_cst 0x2aaaadff1720 constant invariant 4>
        align 32 symtab 0 alias set 16 canonical type 0x2aaaaedc0b40 precision
32 min <integer_cst 0x2aaaadff1ae0 0> max <integer_cst 0x2aaaadff1a80
4294967295>
        values <tree_list 0x2aaaaedc3150
            purpose <identifier_node 0x2aaaaedbf780 X86_64_NO_CLASS>
            value <integer_cst 0x2aaaae00e540 constant invariant 0>
            chain <tree_list 0x2aaaaedc31b0
                purpose <identifier_node 0x2aaaaedbf7e0 X86_64_INTEGER_CLASS>
                value <integer_cst 0x2aaaae00e570 constant invariant 1>
                chain <tree_list 0x2aaaaedc3210
                    purpose <identifier_node 0x2aaaaedbf840
X86_64_INTEGERSI_CLASS>
                    value <integer_cst 0x2aaaae0250c0 constant invariant 2>
                    chain <tree_list 0x2aaaaedc3270
                        purpose <identifier_node 0x2aaaaedbf8a0
X86_64_SSE_CLASS>
                        value <integer_cst 0x2aaaae025120 constant invariant 3>
                        chain <tree_list 0x2aaaaedc32d0 purpose
<identifier_node 0x2aaaaedbf900 X86_64_SSESF_CLASS> value <integer_cst
0x2aaaae025180 4> chain <tree_list 0x2aaaaedc3330>>>>>> context
<translation_unit_decl 0x2aaaaedd81a0 D.49546>
        pointer_to_this <pointer_type 0x2aaaaec5ab40> chain <type_decl
0x2aaaaed66d00 D.33440>>
    visited var <var_decl 0x2aaaaee64580 D.34839> def_stmt <gimple_modify_stmt
0x2aaaaee70e40>
    version 243>


-- 


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


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

* [Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize
  2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
  2007-02-23 20:16 ` [Bug tree-optimization/30938] " ubizjak at gmail dot com
@ 2007-02-25 18:29 ` ubizjak at gmail dot com
  2007-02-25 21:57 ` ubizjak at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2007-02-25 18:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ubizjak at gmail dot com  2007-02-25 18:29 -------
Fixed by http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01979.html.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize
  2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
  2007-02-23 20:16 ` [Bug tree-optimization/30938] " ubizjak at gmail dot com
  2007-02-25 18:29 ` ubizjak at gmail dot com
@ 2007-02-25 21:57 ` ubizjak at gmail dot com
  2007-02-25 23:19 ` uros at gcc dot gnu dot org
  2007-02-25 23:20 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2007-02-25 21:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ubizjak at gmail dot com  2007-02-25 21:57 -------
Sorry, I was too quick. Please ignore comment #2, bootstrap with
BOOT_CFLAGS="-Os -g -ftree-vectorize" still fails with the same error.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


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


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

* [Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize
  2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2007-02-25 21:57 ` ubizjak at gmail dot com
@ 2007-02-25 23:19 ` uros at gcc dot gnu dot org
  2007-02-25 23:20 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: uros at gcc dot gnu dot org @ 2007-02-25 23:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from uros at gcc dot gnu dot org  2007-02-25 23:18 -------
Subject: Bug 30938

Author: uros
Date: Sun Feb 25 23:18:45 2007
New Revision: 122323

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122323
Log:
        PR tree-optimization/30938
        * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
        use &dt[nargs-1] instead of &dt[nargs] in the call to
        vect_is_simple_use().


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-vect-transform.c


-- 


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


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

* [Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize
  2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
                   ` (3 preceding siblings ...)
  2007-02-25 23:19 ` uros at gcc dot gnu dot org
@ 2007-02-25 23:20 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2007-02-25 23:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ubizjak at gmail dot com  2007-02-25 23:19 -------
Fixed on SVN for real.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2007-02-25 23:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 19:52 [Bug tree-optimization/30938] New: Bootstrap fails on x86_64 for -ftree-vectorize ubizjak at gmail dot com
2007-02-23 20:16 ` [Bug tree-optimization/30938] " ubizjak at gmail dot com
2007-02-25 18:29 ` ubizjak at gmail dot com
2007-02-25 21:57 ` ubizjak at gmail dot com
2007-02-25 23:19 ` uros at gcc dot gnu dot org
2007-02-25 23: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).