The testcase started to fail recently, I'm not sure if this points to a bug in
gcc or mpfr.  CCing Kaveh, as it's probably one of his mpfr patches that caused
this.  Here's a debug run:

tobias-schluters-computer:~/src/dev tobi$ uname -a
Darwin tobias-schluters-computer.local 8.8.3 Darwin Kernel Version 8.8.3: Wed
Oct 18 21:57:10 PDT 2006; root:xnu-792.15.4.obj~4/RELEASE_I386 i386 i386
tobias-schluters-computer:~/src/dev tobi$ gdb ../pristine/build/gcc/f951       
GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:10:58 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared lib
aries ..... done

(gdb) run intrinsic-unix-erf.f -O
Starting program: /Users/tobi/src/pristine/build/gcc/f951 intrinsic-unix-erf.f 
O
Reading symbols for shared libraries ..+++ done
 MAIN__ failure c_r c_d
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups>init2.c:51:  assertion failed: p >= 2 && p 
= ((mpfr_prec_t)((mpfr_prec_t)(~(mpfr_prec_t)0)>>1))

Program received signal SIGABRT, Aborted.
0x9003d1dc in kill ()
(gdb) bt
#0  0x9003d1dc in kill ()
#1  0x9010f2af in raise ()
#2  0x9010de02 in abort ()
#3  0x4233eb70 in mpfr_assert_fail (filename=0x42348c60 "init2.c", linenum=51, 
xpr=0x42348a9c "p >= 2 && p <= ((mpfr_prec_t)((mpfr_prec_t)(~(mpfr_prec_t)0)>>1
)") at mpfr-gmp.c:305
#4  0x42337d75 in mpfr_init2 (x=0xbffff1f0, p=2147483685) at init2.c:51
#5  0x4233d218 in mpfr_erf (y=0xbffff25c, x=0xbffff25c, rnd_mode=GMP_RNDN) at e
f.c:130
(gdb)


-- 
           Summary: gfortran.dg/g77/intrinsic-unix-erf.f tests fail with
                    optimization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobi at gcc dot gnu dot org
  GCC host triplet: darwin-i386


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

Reply via email to