public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31617]  New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
@ 2007-04-18  6:26 tbm at cyrius dot com
  2007-04-18  6:27 ` [Bug c++/31617] " tbm at cyrius dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-04-18  6:26 UTC (permalink / raw)
  To: gcc-bugs

I get the following segfault with gcc 4.3 20070326 and 20070417.  It works
with gcc 4.2:

Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> <inline> <static-var> <pure-const>
<type-escape-var>
Program received signal SIGSEGV, Segmentation fault.
integer_zerop (expr=0x0) at /home/tbm/scratch/gcc/gcc/tree.c:1295
1295      STRIP_NOPS (expr);
(gdb) where
#0  integer_zerop (expr=0x0) at /home/tbm/scratch/gcc/gcc/tree.c:1295
#1  0x0000000000923316 in okay_pointer_operation (code=IDENTIFIER_NODE,
op0=0x2b94c001cd20,
    op1=0x2b94bfcbeba0) at /home/tbm/scratch/gcc/gcc/ipa-type-escape.c:1471
#2  0x00000000009252fb in scan_for_refs (tp=<value optimized out>,
walk_subtrees=0x7fffeb506cfc,
    data=<value optimized out>) at
/home/tbm/scratch/gcc/gcc/ipa-type-escape.c:1544
#3  0x00000000008ca35b in walk_tree (tp=0x2b94bfffbd70, func=0x924f20
<scan_for_refs>,
    data=0x2b94bfeade00, pset=0xee27e0) at
/home/tbm/scratch/gcc/gcc/tree.c:7978
#4  0x0000000000921bb8 in type_escape_execute () at
/home/tbm/scratch/gcc/gcc/ipa-type-escape.c:1707
#5  0x000000000070b5d1 in execute_one_pass (pass=0xdff8c0) at
/home/tbm/scratch/gcc/gcc/passes.c:1058
#6  0x000000000070b7e5 in execute_ipa_pass_list (pass=0xdff8c0)
    at /home/tbm/scratch/gcc/gcc/passes.c:1126


-- 
           Summary: [4.3 Regression] Segfault in integer_zerop, called via
                    ipa-type-escape.c
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


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

* [Bug c++/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
@ 2007-04-18  6:27 ` tbm at cyrius dot com
  2007-04-18  6:30 ` tbm at cyrius dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-04-18  6:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2007-04-18 07:27 -------
Created an attachment (id=13388)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13388&action=view)
testcase


-- 


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


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

* [Bug c++/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
  2007-04-18  6:27 ` [Bug c++/31617] " tbm at cyrius dot com
@ 2007-04-18  6:30 ` tbm at cyrius dot com
  2007-04-18  6:37 ` tbm at cyrius dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-04-18  6:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2007-04-18 07:30 -------
I should mention that you need -O2 to see this.  I've confirmed the segfault
on x86_64 and ia64.


-- 


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


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

* [Bug c++/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
  2007-04-18  6:27 ` [Bug c++/31617] " tbm at cyrius dot com
  2007-04-18  6:30 ` tbm at cyrius dot com
@ 2007-04-18  6:37 ` tbm at cyrius dot com
  2007-04-18  6:40 ` tbm at cyrius dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-04-18  6:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tbm at cyrius dot com  2007-04-18 07:37 -------
Works with 4.3 20070303


-- 


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


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

* [Bug c++/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2007-04-18  6:37 ` tbm at cyrius dot com
@ 2007-04-18  6:40 ` tbm at cyrius dot com
  2007-04-18 20:36 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-04-18  6:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tbm at cyrius dot com  2007-04-18 07:39 -------
Olga Golovanevsky  <olga@il.ibm.com> made some changes to that part of the
compiler during this period.  Added to CC.


-- 


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


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

* [Bug c++/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2007-04-18  6:40 ` tbm at cyrius dot com
@ 2007-04-18 20:36 ` pinskia at gcc dot gnu dot org
  2007-04-18 20:38 ` [Bug middle-end/31617] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-18 20:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


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

* [Bug middle-end/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2007-04-18 20:36 ` pinskia at gcc dot gnu dot org
@ 2007-04-18 20:38 ` pinskia at gcc dot gnu dot org
  2007-04-18 20:57 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-18 20:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-04-18 21:38 -------
13207         return integer_zerop (int_const_binop (TRUNC_MOD_EXPR,
13208                                                top, bottom, 0));

(gdb) p debug_generic_expr (top)
4
$1 = void
(gdb) p debug_generic_expr (bottom)
0


-- 


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


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

* [Bug middle-end/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2007-04-18 20:38 ` [Bug middle-end/31617] " pinskia at gcc dot gnu dot org
@ 2007-04-18 20:57 ` pinskia at gcc dot gnu dot org
  2007-04-26 21:02 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-18 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-04-18 21:57 -------
1469                tree size_of_op0_points_to = TYPE_SIZE_UNIT (TREE_TYPE
(op0type));

and size_of_op0_points_to is a zero constant.

Reduced testcase:
struct polynomial {
        ~polynomial ();
};
void spline_rep1()
{
  new polynomial[0];
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-18 21:57:07
               date|                            |


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


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

* [Bug middle-end/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2007-04-18 20:57 ` pinskia at gcc dot gnu dot org
@ 2007-04-26 21:02 ` sje at gcc dot gnu dot org
  2007-04-27 21:31 ` olga at il dot ibm dot com
  2007-04-27 21:41 ` olga at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sje at gcc dot gnu dot org @ 2007-04-26 21:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at gcc dot gnu dot org  2007-04-26 22:02 -------
Subject: Bug 31617

Author: sje
Date: Thu Apr 26 22:02:05 2007
New Revision: 124197

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124197
Log:
        PR middle-end/31617
        * g++.dg/other/str_empty.C: Add expected warning.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/other/str_empty.C


-- 


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


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

* [Bug middle-end/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (7 preceding siblings ...)
  2007-04-26 21:02 ` sje at gcc dot gnu dot org
@ 2007-04-27 21:31 ` olga at il dot ibm dot com
  2007-04-27 21:41 ` olga at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: olga at il dot ibm dot com @ 2007-04-27 21:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from olga at il dot ibm dot com  2007-04-27 22:31 -------
The fix was submitted

http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01578.html

and committed to mainline 4.3.


-- 


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


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

* [Bug middle-end/31617] [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c
  2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
                   ` (8 preceding siblings ...)
  2007-04-27 21:31 ` olga at il dot ibm dot com
@ 2007-04-27 21:41 ` olga at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: olga at gcc dot gnu dot org @ 2007-04-27 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from olga at gcc dot gnu dot org  2007-04-27 22:41 -------
FIXED.


-- 

olga at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-04-27 21:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18  6:26 [Bug c++/31617] New: [4.3 Regression] Segfault in integer_zerop, called via ipa-type-escape.c tbm at cyrius dot com
2007-04-18  6:27 ` [Bug c++/31617] " tbm at cyrius dot com
2007-04-18  6:30 ` tbm at cyrius dot com
2007-04-18  6:37 ` tbm at cyrius dot com
2007-04-18  6:40 ` tbm at cyrius dot com
2007-04-18 20:36 ` pinskia at gcc dot gnu dot org
2007-04-18 20:38 ` [Bug middle-end/31617] " pinskia at gcc dot gnu dot org
2007-04-18 20:57 ` pinskia at gcc dot gnu dot org
2007-04-26 21:02 ` sje at gcc dot gnu dot org
2007-04-27 21:31 ` olga at il dot ibm dot com
2007-04-27 21:41 ` olga 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).