public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs
@ 2004-12-14 20:14 pinskia at gcc dot gnu dot org
  2004-12-16 23:53 ` [Bug middle-end/18999] " steven at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-14 20:14 UTC (permalink / raw)
  To: gcc-bugs

Even though the C++ front-end no longer produces RANGE_EXPR which would cause an ICE.  I think we 
should support RANGE_EXPR in gimplify_init_ctor_eval.

-- 
           Summary: gimplify_init_ctor_eval does not support RANGE_EXPRs
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: minor
          Priority: P2
         Component: middle-end
        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=18999


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
@ 2004-12-16 23:53 ` steven at gcc dot gnu dot org
  2004-12-16 23:54 ` steven at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-16 23:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |18191
              nThis|                            |


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
  2004-12-16 23:53 ` [Bug middle-end/18999] " steven at gcc dot gnu dot org
@ 2004-12-16 23:54 ` steven at gcc dot gnu dot org
  2004-12-17  1:34 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-16 23:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-12-16 23:54 -------
I hacked up gimplify_init_ctor_eval to do this for PR18191.  The code 
is gross, but if it works, you can give it a closer look ;-) 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-16 23:54:17
               date|                            |


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
  2004-12-16 23:53 ` [Bug middle-end/18999] " steven at gcc dot gnu dot org
  2004-12-16 23:54 ` steven at gcc dot gnu dot org
@ 2004-12-17  1:34 ` pinskia at gcc dot gnu dot org
  2004-12-17  2:24 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17  1:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-17 01:34 -------
Created an attachment (id=7766)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7766&action=view)
Patch which I am testing

This is the full patch which also handles SAVE_EXPRs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-17  1:34 ` pinskia at gcc dot gnu dot org
@ 2004-12-17  2:24 ` pinskia at gcc dot gnu dot org
  2004-12-18  0:24 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17  2:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-17 02:24 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01259.html>.

-- 


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-12-17  2:24 ` pinskia at gcc dot gnu dot org
@ 2004-12-18  0:24 ` pinskia at gcc dot gnu dot org
  2004-12-18  0:30 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-18  0:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-18 00:24 -------
Note the fixed up patch is here with the fix for 18191 also:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01322.html 

-- 


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-12-18  0:24 ` pinskia at gcc dot gnu dot org
@ 2004-12-18  0:30 ` steven at gcc dot gnu dot org
  2004-12-19 13:07 ` steven at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-18  0:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-12-18 00:30 -------
My patch for Bug 18191 includes Andrew's patch for this bug. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |steven at gcc dot gnu dot
                   |org                         |org


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-12-18  0:30 ` steven at gcc dot gnu dot org
@ 2004-12-19 13:07 ` steven at gcc dot gnu dot org
  2004-12-20 11:27 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-19 13:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-12-19 13:07 -------
(From update of attachment 7766)
The patch for PR18191 makes this this attachment obsolete.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #7766 is|0                           |1
           obsolete|                            |


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-12-19 13:07 ` steven at gcc dot gnu dot org
@ 2004-12-20 11:27 ` cvs-commit at gcc dot gnu dot org
  2004-12-20 11:29 ` steven at gcc dot gnu dot org
  2004-12-20 12:40 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-20 11:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-20 11:27 -------
Subject: Bug 18999

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	steven@gcc.gnu.org	2004-12-20 11:26:47

Modified files:
	gcc            : ChangeLog expr.c gimplify.c tree.h 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: 20041219-1.c 

Log message:
	gcc/
	PR middle-end/18191
	PR middle-end/18965
	PR middle-end/18999
	* expr.c (categorize_ctor_elements_1): Count the total number
	of elements in the constructor.
	(categorize_ctor_elements): Return it in a new argument.
	* tree.h (categorize_ctor_elements): Adjust prototype.
	* gimplify.c (gimplify_init_ctor_eval_range): New.
	(gimplify_init_ctor_eval): Gimplify RANGE_EXPR.
	(gimplify_init_constructor): Block clear the object if the
	constructor has fewer elements than the object type.  Only try
	to add assignments to individual elements when we have to.
	
	testsuite/
	* gcc.dg/20041219-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6897&r2=2.6898
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.c.diff?cvsroot=gcc&r1=1.761&r2=1.762
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&r1=2.93&r2=2.94
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.667&r2=1.668
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4783&r2=1.4784
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20041219-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-12-20 11:27 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-20 11:29 ` steven at gcc dot gnu dot org
  2004-12-20 12:40 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-20 11:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-12-20 11:29 -------
Fixed.

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


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


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

* [Bug middle-end/18999] gimplify_init_ctor_eval does not support RANGE_EXPRs
  2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-12-20 11:29 ` steven at gcc dot gnu dot org
@ 2004-12-20 12:40 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-20 12:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-12-20 12:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14 20:14 [Bug middle-end/18999] New: gimplify_init_ctor_eval does not support RANGE_EXPRs pinskia at gcc dot gnu dot org
2004-12-16 23:53 ` [Bug middle-end/18999] " steven at gcc dot gnu dot org
2004-12-16 23:54 ` steven at gcc dot gnu dot org
2004-12-17  1:34 ` pinskia at gcc dot gnu dot org
2004-12-17  2:24 ` pinskia at gcc dot gnu dot org
2004-12-18  0:24 ` pinskia at gcc dot gnu dot org
2004-12-18  0:30 ` steven at gcc dot gnu dot org
2004-12-19 13:07 ` steven at gcc dot gnu dot org
2004-12-20 11:27 ` cvs-commit at gcc dot gnu dot org
2004-12-20 11:29 ` steven at gcc dot gnu dot org
2004-12-20 12:40 ` 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).