public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38079]  New: gcc segfaults when using -ftree-vectorizer-verbose=9
@ 2008-11-11  6:59 David dot Monniaux at imag dot fr
  2008-11-11  7:02 ` [Bug tree-optimization/38079] " David dot Monniaux at imag dot fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: David dot Monniaux at imag dot fr @ 2008-11-11  6:59 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

$ gcc -O3 -ftree-vectorizer-verbose=9 -c set_str.i
(lots of blah-blah)
set_str.c:326: note: get vectype with 4 units of type const unsigned char
set_str.c:326: note: vectype: const vector unsigned char
set_str.c:326: note: set_str.c: In function ‘__gmpn_set_str’:
set_str.c:54: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)


-- 
           Summary: gcc segfaults when using -ftree-vectorizer-verbose=9
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: David dot Monniaux at imag dot fr
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
@ 2008-11-11  7:02 ` David dot Monniaux at imag dot fr
  2008-11-11  9:26 ` irar at il dot ibm dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: David dot Monniaux at imag dot fr @ 2008-11-11  7:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from David dot Monniaux at imag dot fr  2008-11-11 07:00 -------
Created an attachment (id=16649)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16649&action=view)
gcc -c -O3 -ftree-vectorizer-verbose=9 set_str.i segfaults

This code comes from GNU MP 4.2.4.


-- 


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
  2008-11-11  7:02 ` [Bug tree-optimization/38079] " David dot Monniaux at imag dot fr
@ 2008-11-11  9:26 ` irar at il dot ibm dot com
  2008-11-12  7:16 ` irar at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: irar at il dot ibm dot com @ 2008-11-11  9:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from irar at il dot ibm dot com  2008-11-11 09:24 -------
I am testing the following:

Index: tree-vect-analyze.c
===================================================================
--- tree-vect-analyze.c (revision 141763)
+++ tree-vect-analyze.c (working copy)
@@ -3314,8 +3314,8 @@ vect_analyze_data_refs (loop_vec_info lo

          if (vect_print_dump_info (REPORT_DETAILS))
            {
-             fprintf (dump_file, "analyze in outer-loop: ");
-             print_generic_expr (dump_file, inner_base, TDF_SLIM);
+             fprintf (vect_dump, "analyze in outer-loop: ");
+             print_generic_expr (vect_dump, inner_base, TDF_SLIM);
            }

          outer_base = get_inner_reference (inner_base, &pbitsize, &pbitpos,
@@ -3325,7 +3325,7 @@ vect_analyze_data_refs (loop_vec_info lo
          if (pbitpos % BITS_PER_UNIT != 0)
            {
              if (vect_print_dump_info (REPORT_DETAILS))
-               fprintf (dump_file, "failed: bit offset alignment.\n");
+               fprintf (vect_dump, "failed: bit offset alignment.\n");
              return false;
            }

@@ -3333,7 +3333,7 @@ vect_analyze_data_refs (loop_vec_info lo
          if (!simple_iv (loop, stmt, outer_base, &base_iv, false))
            {
              if (vect_print_dump_info (REPORT_DETAILS))
-               fprintf (dump_file, "failed: evolution of base is not
affine.\n");
+               fprintf (vect_dump, "failed: evolution of base is not
affine.\n");
              return false;
            }

@@ -3353,7 +3353,7 @@ vect_analyze_data_refs (loop_vec_info lo
          else if (!simple_iv (loop, stmt, poffset, &offset_iv, false))
            {
              if (vect_print_dump_info (REPORT_DETAILS))
-               fprintf (dump_file, "evolution of offset is not affine.\n");
+               fprintf (vect_dump, "evolution of offset is not affine.\n");
              return false;
            }

@@ -3376,18 +3376,18 @@ vect_analyze_data_refs (loop_vec_info lo
          STMT_VINFO_DR_ALIGNED_TO (stmt_info) =
                                size_int (highest_pow2_factor
(offset_iv.base));

-         if (dump_file && (dump_flags & TDF_DETAILS))
+         if (vect_dump && (dump_flags & TDF_DETAILS))
            {
-             fprintf (dump_file, "\touter base_address: ");
-             print_generic_expr (dump_file, STMT_VINFO_DR_BASE_ADDRESS
(stmt_info), TDF_SLIM);
-             fprintf (dump_file, "\n\touter offset from base address: ");
-             print_generic_expr (dump_file, STMT_VINFO_DR_OFFSET (stmt_info),
TDF_SLIM);
-             fprintf (dump_file, "\n\touter constant offset from base address:
");
-             print_generic_expr (dump_file, STMT_VINFO_DR_INIT (stmt_info),
TDF_SLIM);
-             fprintf (dump_file, "\n\touter step: ");
-             print_generic_expr (dump_file, STMT_VINFO_DR_STEP (stmt_info),
TDF_SLIM);
-             fprintf (dump_file, "\n\touter aligned to: ");
-             print_generic_expr (dump_file, STMT_VINFO_DR_ALIGNED_TO
(stmt_info), TDF_SLIM);
+             fprintf (vect_dump, "\touter base_address: ");
+             print_generic_expr (vect_dump, STMT_VINFO_DR_BASE_ADDRESS
(stmt_info), TDF_SLIM);
+             fprintf (vect_dump, "\n\touter offset from base address: ");
+             print_generic_expr (vect_dump, STMT_VINFO_DR_OFFSET (stmt_info),
TDF_SLIM);
+             fprintf (vect_dump, "\n\touter constant offset from base address:
");
+             print_generic_expr (vect_dump, STMT_VINFO_DR_INIT (stmt_info),
TDF_SLIM);
+             fprintf (vect_dump, "\n\touter step: ");
+             print_generic_expr (vect_dump, STMT_VINFO_DR_STEP (stmt_info),
TDF_SLIM);
+             fprintf (vect_dump, "\n\touter aligned to: ");
+             print_generic_expr (vect_dump, STMT_VINFO_DR_ALIGNED_TO
(stmt_info), TDF_SLIM);
            }
        }


-- 

irar at il dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |irar at il dot ibm dot com
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-11 09:24:41
               date|                            |


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
  2008-11-11  7:02 ` [Bug tree-optimization/38079] " David dot Monniaux at imag dot fr
  2008-11-11  9:26 ` irar at il dot ibm dot com
@ 2008-11-12  7:16 ` irar at gcc dot gnu dot org
  2008-11-12 10:38 ` irar at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: irar at gcc dot gnu dot org @ 2008-11-12  7:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from irar at gcc dot gnu dot org  2008-11-12 07:14 -------
Subject: Bug 38079

Author: irar
Date: Wed Nov 12 07:13:13 2008
New Revision: 141781

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141781
Log:
        PR tree-optimization/38079
        * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
        with vect_dump.


Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/tree-vect-analyze.c


-- 


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
                   ` (2 preceding siblings ...)
  2008-11-12  7:16 ` irar at gcc dot gnu dot org
@ 2008-11-12 10:38 ` irar at gcc dot gnu dot org
  2008-11-12 10:44 ` jakub at gcc dot gnu dot org
  2008-11-27 17:44 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: irar at gcc dot gnu dot org @ 2008-11-12 10:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from irar at gcc dot gnu dot org  2008-11-12 10:37 -------
Subject: Bug 38079

Author: irar
Date: Wed Nov 12 10:36:03 2008
New Revision: 141785

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141785
Log:
        PR tree-optimization/38079
        * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
        with vect_dump.


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


-- 


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
                   ` (3 preceding siblings ...)
  2008-11-12 10:38 ` irar at gcc dot gnu dot org
@ 2008-11-12 10:44 ` jakub at gcc dot gnu dot org
  2008-11-27 17:44 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-12 10:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-11-12 10:42 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug tree-optimization/38079] gcc segfaults when using -ftree-vectorizer-verbose=9
  2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
                   ` (4 preceding siblings ...)
  2008-11-12 10:44 ` jakub at gcc dot gnu dot org
@ 2008-11-27 17:44 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-27 17:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.3


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


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

end of thread, other threads:[~2008-11-27 17:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-11  6:59 [Bug tree-optimization/38079] New: gcc segfaults when using -ftree-vectorizer-verbose=9 David dot Monniaux at imag dot fr
2008-11-11  7:02 ` [Bug tree-optimization/38079] " David dot Monniaux at imag dot fr
2008-11-11  9:26 ` irar at il dot ibm dot com
2008-11-12  7:16 ` irar at gcc dot gnu dot org
2008-11-12 10:38 ` irar at gcc dot gnu dot org
2008-11-12 10:44 ` jakub at gcc dot gnu dot org
2008-11-27 17:44 ` pinskia at gcc dot gnu dot 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).