public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
@ 2010-11-30 15:53 spamverdacht at aon dot at
  2010-11-30 17:25 ` [Bug c++/46727] [4.3/4.4 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: spamverdacht at aon dot at @ 2010-11-30 15:53 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE with -O3 and -ffast-math (in get_callee_fndecl, at
                    tree.c:6857)
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: spamverdacht@aon.at


Created attachment 22581
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22581
Code that causes ICE

Reproduce with: gcc -O3 -ffast-math bug.ii
Output:
bug.ii: In function ‘double test()’:
bug.ii:15: internal compiler error: in get_callee_fndecl, at tree.c:6857
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.

Output of gcc -v:

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)


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

* [Bug c++/46727] [4.3/4.4 Regression] ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
  2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
@ 2010-11-30 17:25 ` rguenth at gcc dot gnu.org
  2011-06-27 10:39 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-30 17:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.30 17:06:24
      Known to work|                            |4.5.0
   Target Milestone|---                         |4.3.6
            Summary|ICE with -O3 and            |[4.3/4.4 Regression] ICE
                   |-ffast-math (in             |with -O3 and -ffast-math
                   |get_callee_fndecl, at       |(in get_callee_fndecl, at
                   |tree.c:6857)                |tree.c:6857)
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.0, 4.4.4

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-30 17:06:24 UTC ---
Confirmed.

6848      /* It's invalid to call this function with anything but a
6849         CALL_EXPR.  */
6850      gcc_assert (TREE_CODE (call) == CALL_EXPR);
(gdb) p call->base.code
$1 = NOP_EXPR

#1  0x0000000000d2a2d9 in get_callee_fndecl (call=0x7ffff61ba5c0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/tree.c:6850
#2  0x000000000070b484 in expand_builtin (exp=0x7ffff61ba5c0, target=0x0, 
    subtarget=0x0, mode=DFmode, ignore=0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/builtins.c:6246
#3  0x00000000006f980c in expand_builtin_pow (exp=0x7ffff61c26c0, 
    target=0x7ffff61c19c0, subtarget=0x0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/builtins.c:3045
#4  0x000000000070bac4 in expand_builtin (exp=0x7ffff61c26c0, 
    target=0x7ffff61c19c0, subtarget=0x0, mode=DFmode, ignore=0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/builtins.c:6372

3044              tree call_expr = build_call_expr (fn, 1,narg0);
3045              op = expand_builtin (call_expr, NULL_RTX, subtarget, mode,
0);
(gdb) call debug_tree (call_expr)
 <nop_expr 0x7ffff61ba5c0
    type <real_type 0x7ffff7efbc00 double DF
        size <integer_cst 0x7ffff7ed5b40 constant 64>
        unit size <integer_cst 0x7ffff7ed5b70 constant 8>
        align 64 symtab 0 alias set -1 canonical type 0x7ffff7efbc00 precision
64
        pointer_to_this <pointer_type 0x7ffff7efbe40>>
    constant
    arg 0 <real_cst 0x7ffff61a9990 type <real_type 0x7ffff7efbc00 double>
        constant 2.8778015923432587186425735126249492168426513671875e+0>>

somehow we missed a constant folding.


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

* [Bug c++/46727] [4.3/4.4 Regression] ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
  2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
  2010-11-30 17:25 ` [Bug c++/46727] [4.3/4.4 Regression] " rguenth at gcc dot gnu.org
@ 2011-06-27 10:39 ` rguenth at gcc dot gnu.org
  2011-06-27 14:06 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug c++/46727] [4.3/4.4 Regression] ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
  2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
  2010-11-30 17:25 ` [Bug c++/46727] [4.3/4.4 Regression] " rguenth at gcc dot gnu.org
  2011-06-27 10:39 ` rguenth at gcc dot gnu.org
@ 2011-06-27 14:06 ` rguenth at gcc dot gnu.org
  2011-07-07  9:25 ` [Bug c++/46727] [4.4 " mikpe at it dot uu.se
  2011-10-09 15:02 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.6                       |4.4.7

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 12:13:38 UTC ---
4.3 branch is being closed, moving to 4.4.7 target.


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

* [Bug c++/46727] [4.4 Regression] ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
  2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
                   ` (2 preceding siblings ...)
  2011-06-27 14:06 ` rguenth at gcc dot gnu.org
@ 2011-07-07  9:25 ` mikpe at it dot uu.se
  2011-10-09 15:02 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2011-07-07  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2011-07-07 09:25:18 UTC ---
This was fixed for 4.5 by Matz' r152236 ("Disentangle builtin folding from
expanding").


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

* [Bug c++/46727] [4.4 Regression] ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857)
  2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
                   ` (3 preceding siblings ...)
  2011-07-07  9:25 ` [Bug c++/46727] [4.4 " mikpe at it dot uu.se
@ 2011-10-09 15:02 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-09 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|spamverdacht at aon dot at  |
         Resolution|                            |FIXED

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-09 15:01:59 UTC ---
Fixed then.


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

end of thread, other threads:[~2011-10-09 15:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-30 15:53 [Bug c++/46727] New: ICE with -O3 and -ffast-math (in get_callee_fndecl, at tree.c:6857) spamverdacht at aon dot at
2010-11-30 17:25 ` [Bug c++/46727] [4.3/4.4 Regression] " rguenth at gcc dot gnu.org
2011-06-27 10:39 ` rguenth at gcc dot gnu.org
2011-06-27 14:06 ` rguenth at gcc dot gnu.org
2011-07-07  9:25 ` [Bug c++/46727] [4.4 " mikpe at it dot uu.se
2011-10-09 15:02 ` paolo.carlini at oracle dot com

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).