public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
@ 2005-07-23  4:13 pinskia at gcc dot gnu dot org
  2005-07-23  4:14 ` [Bug c++/22626] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  4:13 UTC (permalink / raw)
  To: gcc-bugs

Take the following invalid code:
=====================
__complex__ double _M_value;
void f(void)
{
  __complex__ double __t;
  _M_value *= __t;
=====================

Yes the } is missing.  We get an ICE after the error.  This is only with -O1 and above.

-- 
           Summary: [4.1 Regression] ICE with optimization turned on while
                    trying to exand complex multiply
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
@ 2005-07-23  4:14 ` pinskia at gcc dot gnu dot org
  2005-07-23  4:17 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  4:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
  2005-07-23  4:14 ` [Bug c++/22626] " pinskia at gcc dot gnu dot org
@ 2005-07-23  4:17 ` pinskia at gcc dot gnu dot org
  2005-07-23  4:27 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  4:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-23 04:14 -------
Note this is only reproducible with the C++ front-end.

-- 


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
  2005-07-23  4:14 ` [Bug c++/22626] " pinskia at gcc dot gnu dot org
  2005-07-23  4:17 ` pinskia at gcc dot gnu dot org
@ 2005-07-23  4:27 ` pinskia at gcc dot gnu dot org
  2005-07-23  4:38 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  4:27 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-23 04:17 -------
The output is:
t.cc: In function ‘void f()’:
t.cc:5: error: expected `}' at end of input
t.cc:5: internal compiler error: in expand_mult, at expmed.c:3123
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-23  4:27 ` pinskia at gcc dot gnu dot org
@ 2005-07-23  4:38 ` pinskia at gcc dot gnu dot org
  2005-07-23  5:00 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  4:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-23 04:27 -------
This started after 20050530 but before 20050622.

-- 


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-23  4:38 ` pinskia at gcc dot gnu dot org
@ 2005-07-23  5:00 ` pinskia at gcc dot gnu dot org
  2005-07-23  9:47 ` belyshev at depni dot sinp dot msu dot ru
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  5:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-07-23  5:00 ` pinskia at gcc dot gnu dot org
@ 2005-07-23  9:47 ` belyshev at depni dot sinp dot msu dot ru
  2005-07-23 15:42 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-07-23  9:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-07-23 09:40 -------
Confirmed, appeared between "2005-06-09 00:20 UTC" and "2005-06-10 00:20 UTC"

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-23 09:40:46
               date|                            |


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-07-23  9:47 ` belyshev at depni dot sinp dot msu dot ru
@ 2005-07-23 15:42 ` pinskia at gcc dot gnu dot org
  2005-07-25 19:05 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23 15:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-23 15:30 -------
The patch which I thought caused this when I filed it is the most obvious one now:
+2005-06-09  Richard Henderson  <rth@redhat.com>
+
+       PR tree-opt/20610
+       * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
+       (struct tree_decl): Add gimple_reg_flag.
+       * integrate.c (copy_decl_for_inlining): Copy it.
+       * gimplify.c (internal_get_tmp_var): Set it.
+       (gimplify_bind_expr): Likewise.
+       (gimplify_function_tree): Likewise.
+       (gimplify_modify_expr_complex_part): New.
+       (gimplify_modify_expr): Use it.
+       * tree-gimple.c (is_gimple_reg_type): Allow complex.
+       (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org


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


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

* [Bug c++/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-07-23 15:42 ` pinskia at gcc dot gnu dot org
@ 2005-07-25 19:05 ` rth at gcc dot gnu dot org
  2005-07-25 20:27 ` [Bug middle-end/22626] " rth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-07-25 19:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-07-25 18:52 -------
It's reproducible with the C front end with -fno-unit-at-a-time.

-- 


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


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

* [Bug middle-end/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-07-25 19:05 ` rth at gcc dot gnu dot org
@ 2005-07-25 20:27 ` rth at gcc dot gnu dot org
  2005-07-25 23:22 ` cvs-commit at gcc dot gnu dot org
  2005-07-26  2:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-07-25 20:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
          Component|c++                         |middle-end
   Last reconfirmed|2005-07-23 09:40:46         |2005-07-25 19:04:50
               date|                            |


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


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

* [Bug middle-end/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-07-25 20:27 ` [Bug middle-end/22626] " rth at gcc dot gnu dot org
@ 2005-07-25 23:22 ` cvs-commit at gcc dot gnu dot org
  2005-07-26  2:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-25 23:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-25 23:04 -------
Subject: Bug 22626

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-07-25 23:04:33

Modified files:
	gcc            : ChangeLog Makefile.in tree-complex.c 

Log message:
	PR 22626
	* tree-complex.c (gate_no_optimization): True if errors.
	* Makefile.in (tree-complex.o): Update dependencies.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9543&r2=2.9544
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.1529&r2=1.1530
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-complex.c.diff?cvsroot=gcc&r1=2.38&r2=2.39



-- 


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


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

* [Bug middle-end/22626] [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply
  2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-07-25 23:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-26  2:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-26  2:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-26 00:40 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-07-26  0:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-23  4:13 [Bug c++/22626] New: [4.1 Regression] ICE with optimization turned on while trying to exand complex multiply pinskia at gcc dot gnu dot org
2005-07-23  4:14 ` [Bug c++/22626] " pinskia at gcc dot gnu dot org
2005-07-23  4:17 ` pinskia at gcc dot gnu dot org
2005-07-23  4:27 ` pinskia at gcc dot gnu dot org
2005-07-23  4:38 ` pinskia at gcc dot gnu dot org
2005-07-23  5:00 ` pinskia at gcc dot gnu dot org
2005-07-23  9:47 ` belyshev at depni dot sinp dot msu dot ru
2005-07-23 15:42 ` pinskia at gcc dot gnu dot org
2005-07-25 19:05 ` rth at gcc dot gnu dot org
2005-07-25 20:27 ` [Bug middle-end/22626] " rth at gcc dot gnu dot org
2005-07-25 23:22 ` cvs-commit at gcc dot gnu dot org
2005-07-26  2:04 ` 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).