public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20023] New: internal compiler error: Segmentation fault
@ 2005-02-17 15:43 caolanm at redhat dot com
  2005-02-17 15:46 ` [Bug c++/20023] " caolanm at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: caolanm at redhat dot com @ 2005-02-17 15:43 UTC (permalink / raw)
  To: gcc-bugs

Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --with-gxx-include-dir=/usr/include/c++/3.4.3
--enable-languages=c,c++,java,f95 --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050216 (Red Hat 4.0.0-0.24)

---

------------------------------
Making: ../../../unxlngi6.pro/slo/mmoutputpage.obj
g++4 -Wreturn-type -fmessage-length=0 -c -I.  -I. -I../inc -I../../../inc
-I../../../unx/inc -I../../../unxlngi6.pro/inc -I.
-I/usr/src/redhat/BUILD/SRC680_m77/solver/680/unxlngi6.pro/inc/stl
-I/usr/src/redhat/BUILD/SRC680_m77/solver/680/unxlngi6.pro/inc/external
-I/usr/src/redhat/BUILD/SRC680_m77/solver/680/unxlngi6.pro/inc
-I/usr/src/redhat/BUILD/SRC680_m77/solenv/unxlngi6/inc
-I/usr/src/redhat/BUILD/SRC680_m77/solenv/inc
-I/usr/src/redhat/BUILD/SRC680_m77/res
-I/usr/src/redhat/BUILD/SRC680_m77/solver/680/unxlngi6.pro/inc/stl
-I/usr/src/redhat/BUILD/SRC680_m77/solenv/inc/Xp31 -I/usr/include
-I/usr/X11R6/include     -I. -I../../../res -I. -Wuninitialized -g1 -Os
-fno-strict-aliasing   -fvisibility=hidden -pipe -mtune=pentiumpro
-Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs   -fpic -DLINUX -DUNX
-DVCL -DGCC -DC341 -DINTEL -DGXX_INCLUDE_PATH=/usr/include/c++/3.4.3 -DCVER=C341
-D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE
-DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL
-DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680  
-DNUM_RELSPACE -DVERTICAL_LAYOUT -DACCESSIBLE_LAYOUT -DBIDI
-DSW_DLLIMPLEMENTATION -DSHAREDLIB -D_DLL_  -DMULTITHREAD  -o
../../../unxlngi6.pro/slo/mmoutputpage.o
/usr/src/redhat/BUILD/SRC680_m77/sw/source/ui/dbui/mmoutputpage.cxx
/usr/src/redhat/BUILD/SRC680_m77/sw/source/ui/dbui/mmoutputpage.cxx: In member
function \uffff\uffff\ufffflong int
SwMailMergeOutputPage::SendDocumentsHdl_Impl(PushButton*)\uffff\uffff\uffff:
/usr/src/redhat/BUILD/SRC680_m77/sw/source/ui/dbui/mmoutputpage.cxx:1075:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source stored into /tmp/ccmwCH46.out file, please attach this to
your bugreport.
dmake:  Error code 1, while making '../../../unxlngi6.pro/slo/mmoutputpage.obj'
'---* tg_merge.mk *---'
dmake:  Error code 255, while making 'do_it_exceptions'
'---* tg_merge.mk *---'

-- 
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: caolanm at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,jakub at gcc dot gnu dot
                    org


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


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

* [Bug c++/20023] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
@ 2005-02-17 15:46 ` caolanm at redhat dot com
  2005-02-17 16:57 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: caolanm at redhat dot com @ 2005-02-17 15:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From caolanm at redhat dot com  2005-02-17 08:55 -------
Created an attachment (id=8212)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8212&action=view)
bzip2 compressed proprocessed dump


-- 


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


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

* [Bug c++/20023] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
  2005-02-17 15:46 ` [Bug c++/20023] " caolanm at redhat dot com
@ 2005-02-17 16:57 ` pinskia at gcc dot gnu dot org
  2005-02-17 18:27 ` [Bug c++/20023] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-17 16:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-17 13:15 -------
Hmm, I cannot reproduce this with 4.0.0 20050215 on i686-pc-linux-gnu, so either this is new as of 
yesterday or it was just a fluk.  I am thinking the former.

-- 


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


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

* [Bug c++/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
  2005-02-17 15:46 ` [Bug c++/20023] " caolanm at redhat dot com
  2005-02-17 16:57 ` pinskia at gcc dot gnu dot org
@ 2005-02-17 18:27 ` pinskia at gcc dot gnu dot org
  2005-02-17 19:17 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-17 18:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-17 13:59 -------
It was the former, it regressed from the last two days, reducing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |critical
           Keywords|                            |ice-on-valid-code
            Summary|internal compiler error:    |[4.0 Regression] internal
                   |Segmentation fault          |compiler error: Segmentation
                   |                            |fault
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
                   ` (2 preceding siblings ...)
  2005-02-17 18:27 ` [Bug c++/20023] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-02-17 19:17 ` jakub at gcc dot gnu dot org
  2005-02-17 19:18 ` [Bug middle-end/20023] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-02-17 19:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jakub at gcc dot gnu dot org  2005-02-17 14:04 -------
Oops, started reducing it a couple of minutes already.

-- 


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


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

* [Bug middle-end/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
                   ` (3 preceding siblings ...)
  2005-02-17 19:17 ` jakub at gcc dot gnu dot org
@ 2005-02-17 19:18 ` pinskia at gcc dot gnu dot org
  2005-02-17 19:35 ` [Bug c++/20023] " jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-17 19:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-17 14:05 -------
Reduced testcase:
void f(void);
typedef __SIZE_TYPE__ size_t;
void g(void *a)
{
  size_t b = (size_t)a;
  switch (b)
  {
    case 1:
      f();
    break;
  }
}

This looks very much related to PR 20009 as I think it was caused by the same patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |middle-end
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-17 14:05:42
               date|                            |


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


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

* [Bug c++/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
                   ` (4 preceding siblings ...)
  2005-02-17 19:18 ` [Bug middle-end/20023] " pinskia at gcc dot gnu dot org
@ 2005-02-17 19:35 ` jakub at gcc dot gnu dot org
  2005-02-18 11:52 ` cvs-commit at gcc dot gnu dot org
  2005-02-18 12:27 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-02-17 19:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jakub at gcc dot gnu dot org  2005-02-17 14:34 -------
Yeah, it is caused by that part of my patch.
The result of convert_to_integer is in one case
<nop_expr (size_t) <convert_expr (unsigned int) <param_decl (pointer) >>>
and without that part of the patch:
<nop_expr (size_t) <convert_expr (int) <param_decl (pointer) >>>
But fold folds the former into <nop_expr (size_t) <param_decl (pointer) >>
while in the latter case fold does nothing with it.
And expand_case is not prepared to deal with POINTER_TYPE's in SWITCH_COND.

Anyway, as already the other part of the PR middle-end/19857 fix is sufficient
to fix the bug, I'm leaning towards reverting the convert.c (convert_to_integer)
part of the patch and give it a shot after 4.0 branches.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++


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


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

* [Bug c++/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
                   ` (5 preceding siblings ...)
  2005-02-17 19:35 ` [Bug c++/20023] " jakub at gcc dot gnu dot org
@ 2005-02-18 11:52 ` cvs-commit at gcc dot gnu dot org
  2005-02-18 12:27 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-18 11:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-17 23:57 -------
Subject: Bug 20023

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jakub@gcc.gnu.org	2005-02-17 23:56:55

Modified files:
	gcc            : ChangeLog convert.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/compile: 20050217-1.c 
	gcc/testsuite/g++.dg/opt: switch3.C 

Log message:
	PR c++/20023
	PR tree-optimization/20009
	* convert.c (convert_to_integer): Revert 2005-02-16 change.
	
	* gcc.c-torture/compile/20050217-1.c: New test.
	* g++.dg/opt/switch3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7518&r2=2.7519
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/convert.c.diff?cvsroot=gcc&r1=1.56&r2=1.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5045&r2=1.5046
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20050217-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/switch3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/20023] [4.0 Regression] internal compiler error: Segmentation fault
  2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
                   ` (6 preceding siblings ...)
  2005-02-18 11:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-18 12:27 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-18 12:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-18 00:22 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-02-18  0:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17 15:43 [Bug c++/20023] New: internal compiler error: Segmentation fault caolanm at redhat dot com
2005-02-17 15:46 ` [Bug c++/20023] " caolanm at redhat dot com
2005-02-17 16:57 ` pinskia at gcc dot gnu dot org
2005-02-17 18:27 ` [Bug c++/20023] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-17 19:17 ` jakub at gcc dot gnu dot org
2005-02-17 19:18 ` [Bug middle-end/20023] " pinskia at gcc dot gnu dot org
2005-02-17 19:35 ` [Bug c++/20023] " jakub at gcc dot gnu dot org
2005-02-18 11:52 ` cvs-commit at gcc dot gnu dot org
2005-02-18 12:27 ` 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).