public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30141]  New: nested function can produce invalid gimple
@ 2006-12-10 20:58 pinskia at gcc dot gnu dot org
  2006-12-10 21:10 ` [Bug middle-end/30141] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-10 20:58 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
extern int dummy (int *);
void foo(int i)
{
  void bar() { int y=i; }
  dummy(&i);
}
---------------
We get, i is ADDRESSABLE here:
  struct FRAME.foo FRAME.0;

  FRAME.0.i = i;  
  dummy (&FRAME.0.i);
  return;


-- 
           Summary: nested function can produce invalid gimple
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
@ 2006-12-10 21:10 ` pinskia at gcc dot gnu dot org
  2006-12-10 22:34 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-10 21:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-10 21:09 -------
This testcase comes from gcc.c-torture/compile/20001226-1.c


-- 


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
  2006-12-10 21:10 ` [Bug middle-end/30141] " pinskia at gcc dot gnu dot org
@ 2006-12-10 22:34 ` pinskia at gcc dot gnu dot org
  2006-12-15 16:02 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-10 22:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-10 22:34 -------
I have a patch.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-10 22:34:45
               date|                            |


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
  2006-12-10 21:10 ` [Bug middle-end/30141] " pinskia at gcc dot gnu dot org
  2006-12-10 22:34 ` pinskia at gcc dot gnu dot org
@ 2006-12-15 16:02 ` pinskia at gcc dot gnu dot org
  2008-07-02 20:52 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-15 16:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-12-15 16:01 -------
Hmm, I think my patch is correct but too "stupid"; we should be able just to
mark the argument as non-addressable and a gimple register since we replaced
all uses of it with an access via a frame struct.


-- 


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-12-15 16:02 ` pinskia at gcc dot gnu dot org
@ 2008-07-02 20:52 ` pinskia at gcc dot gnu dot org
  2008-09-10 15:13 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-07-02 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-07-02 20:52 -------
I cannot find my patch any more so unassigning.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-07-02 20:52 ` pinskia at gcc dot gnu dot org
@ 2008-09-10 15:13 ` rguenth at gcc dot gnu dot org
  2008-09-13 16:31 ` rguenth at gcc dot gnu dot org
  2008-09-13 16:32 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-10 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2008-09-10 15:12 -------
Still happens.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2007-04-15 06:56:45         |2008-09-10 15:12:06
               date|                            |


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-09-10 15:13 ` rguenth at gcc dot gnu dot org
@ 2008-09-13 16:31 ` rguenth at gcc dot gnu dot org
  2008-09-13 16:32 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-13 16:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2008-09-13 16:29 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/30141] nested function can produce invalid gimple
  2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-09-13 16:31 ` rguenth at gcc dot gnu dot org
@ 2008-09-13 16:32 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-13 16:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2008-09-13 16:30 -------
Subject: Bug 30141

Author: rguenth
Date: Sat Sep 13 16:29:22 2008
New Revision: 140346

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140346
Log:
2008-09-13  Richard Guenther  <rguenther@suse.de>

        PR middle-end/30141
        * tree-nested.c (finalize_nesting_tree_1): Generate valid
        gimple stores for memory rhs.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-nested.c


-- 


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


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

end of thread, other threads:[~2008-09-13 16:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-10 20:58 [Bug middle-end/30141] New: nested function can produce invalid gimple pinskia at gcc dot gnu dot org
2006-12-10 21:10 ` [Bug middle-end/30141] " pinskia at gcc dot gnu dot org
2006-12-10 22:34 ` pinskia at gcc dot gnu dot org
2006-12-15 16:02 ` pinskia at gcc dot gnu dot org
2008-07-02 20:52 ` pinskia at gcc dot gnu dot org
2008-09-10 15:13 ` rguenth at gcc dot gnu dot org
2008-09-13 16:31 ` rguenth at gcc dot gnu dot org
2008-09-13 16:32 ` rguenth 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).