public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
@ 2010-11-04 19:28 jakub at gcc dot gnu.org
  2010-11-04 19:31 ` [Bug debug/46307] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-04 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: jakub@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org


/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

double
foo (double x, double y, double z)
{ 
  double a = x * y + z;
  double b = __builtin_fma (x, y, z);
  double c = fma (x, y, z);
  return x / y / z;
}

ICEs on targets where fma/__builtin_fma is transformed into FMA_EXPR.
The first problem is that FMA_EXPR is not handled in tree-ssa-operands.c, the
second issue is that it is not handled in expand_debug_expr.


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

* [Bug debug/46307] [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
  2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
@ 2010-11-04 19:31 ` pinskia at gcc dot gnu.org
  2010-11-04 19:36 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-11-04 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |build
   Last reconfirmed|                            |2010.11.04 19:31:38
     Ever Confirmed|0                           |1
   Target Milestone|---                         |4.6.0
           Severity|normal                      |blocker

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-04 19:31:38 UTC ---
Confirmed, can cause a bootstrap failure also (see
http://gcc.gnu.org/ml/gcc-regression/2010-11/msg00039.html).


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

* [Bug debug/46307] [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
  2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
  2010-11-04 19:31 ` [Bug debug/46307] " pinskia at gcc dot gnu.org
@ 2010-11-04 19:36 ` jakub at gcc dot gnu.org
  2010-11-04 19:37 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-04 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|NEW                         |ASSIGNED


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

* [Bug debug/46307] [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
  2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
  2010-11-04 19:31 ` [Bug debug/46307] " pinskia at gcc dot gnu.org
  2010-11-04 19:36 ` jakub at gcc dot gnu.org
@ 2010-11-04 19:37 ` jakub at gcc dot gnu.org
  2010-11-05  9:01 ` jakub at gcc dot gnu.org
  2010-11-05  9:02 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-04 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-04 19:37:20 UTC ---
Created attachment 22287
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22287
gcc46-pr46307.patch

Untested fix.


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

* [Bug debug/46307] [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
  2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2010-11-04 19:37 ` jakub at gcc dot gnu.org
@ 2010-11-05  9:01 ` jakub at gcc dot gnu.org
  2010-11-05  9:02 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-05  9:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-05 09:00:54 UTC ---
Author: jakub
Date: Fri Nov  5 09:00:50 2010
New Revision: 166351

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166351
Log:
    PR debug/46307
    * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
    * tree-pretty-print.c (dump_generic_node): Likewise.
    (op_code_prio): Likewise.
    * cfgexpand.c (expand_debug_expr): Likewise.

    * gcc.dg/pr46307.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr46307.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-pretty-print.c
    trunk/gcc/tree-ssa-operands.c


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

* [Bug debug/46307] [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts
  2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2010-11-05  9:01 ` jakub at gcc dot gnu.org
@ 2010-11-05  9:02 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-05  9:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-05 09:02:00 UTC ---
Fixed.


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

end of thread, other threads:[~2010-11-05  9:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-04 19:28 [Bug debug/46307] New: [4.6 Regression] ICE with FMA_EXPR in DEBUG stmts jakub at gcc dot gnu.org
2010-11-04 19:31 ` [Bug debug/46307] " pinskia at gcc dot gnu.org
2010-11-04 19:36 ` jakub at gcc dot gnu.org
2010-11-04 19:37 ` jakub at gcc dot gnu.org
2010-11-05  9:01 ` jakub at gcc dot gnu.org
2010-11-05  9:02 ` jakub at gcc dot gnu.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).