www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1035] New: regression: SIGSEGV at gcc/predict.c:1341

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1035

           Summary: regression: SIGSEGV at gcc/predict.c:1341
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: thomas-dloop kuehne.cn





























Compiling  with -O -inline causes the following segfault:

Starting program: 
/opt/gdc/gdc-0.23/libexec/gcc/x86_64-unknown-linux-gnu/4.1.1/cc1d -m32 -finline 
-O3 run/auto_03.d
 _dtor test main
Analyzing compilation unitPerforming intraprocedural optimizations
Assembling functions:
 test _dtor main
Program received signal SIGSEGV, Segmentation fault.
0x00000000007bc955 in tree_estimate_probability () at 
../../gcc-4.1.1/gcc/predict.c:1341
1341              if (e->dest == EXIT_BLOCK_PTR
(gdb) bt

../../gcc-4.1.1/gcc/predict.c:1341

../../gcc-4.1.1/gcc/passes.c:827

../../gcc-4.1.1/gcc/passes.c:859

../../gcc-4.1.1/gcc/passes.c:860

../../gcc-4.1.1/gcc/tree-optimize.c:419

../../gcc-4.1.1/gcc/d/d-lang.cc:1744

../../gcc-4.1.1/gcc/cgraphunit.c:1055

../../gcc-4.1.1/gcc/cgraphunit.c:1121

../../gcc-4.1.1/gcc/cgraphunit.c:1278

../../gcc-4.1.1/gcc/d/d-lang.cc:783



../../gcc-4.1.1/gcc/toplev.c:1981

../../gcc-4.1.1/gcc/main.c:35

test case:
http://dstress.kuehne.cn/run/auto_03.d


-- 
Mar 07 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1035


braddr puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression




-- 
Apr 13 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1035


dvdfrdmn users.sf.net changed:

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





Fixed in svn r130 / release 0.24

Fix is in the GCC patch, so re-apply it before rebuilding.



-- 
Jul 19 2007