public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
@ 2005-10-27 20:01 ` pinskia at gcc dot gnu dot org
  2005-10-27 21:15 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 20:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2005-10-27 20:01 -------
I might look into this soon.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
  2005-10-27 20:01 ` [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast pinskia at gcc dot gnu dot org
@ 2005-10-27 21:15 ` pinskia at gcc dot gnu dot org
  2005-10-28  3:36 ` [Bug middle-end/23155] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 21:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2005-10-27 21:15 -------
This is a combination of a GCC extension (of cast to union) and a C99 feature
(subscripting a non-lvalue array) so this is valid code (but undefined code)
even though it looks so weird.

Anyways I have a patch which I am testing.


-- 

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|NEW                         |ASSIGNED
           Keywords|accepts-invalid             |


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
  2005-10-27 20:01 ` [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast pinskia at gcc dot gnu dot org
  2005-10-27 21:15 ` pinskia at gcc dot gnu dot org
@ 2005-10-28  3:36 ` pinskia at gcc dot gnu dot org
  2005-10-31  4:29 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2005-10-28 03:36 -------
Patch posted:
<http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01598.html>.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |10/msg01598.html
           Keywords|                            |patch


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-28  3:36 ` [Bug middle-end/23155] " pinskia at gcc dot gnu dot org
@ 2005-10-31  4:29 ` mmitchel at gcc dot gnu dot org
  2005-11-03 16:16 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  4:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from mmitchel at gcc dot gnu dot org  2005-10-31 04:29 -------
Leaving as P2.


-- 


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-10-31  4:29 ` mmitchel at gcc dot gnu dot org
@ 2005-11-03 16:16 ` pinskia at gcc dot gnu dot org
  2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
  2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2005-11-03 16:16 -------
Subject: Bug 23155

Author: pinskia
Date: Thu Nov  3 16:15:53 2005
New Revision: 106438

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106438
Log:
2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23155
        * g++.dg/ext/c99struct1.C: New test.
        * gcc.dg/union-cast-1.c: New test.
        * gcc.dg/union-cast-2.c: New test.
        * gcc.dg/union-cast-3.c: New test.

2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23155
        * gimplifier.c (gimplify_expr): Create a temporary for lvalue
        CONSTRUCTOR.


Added:
    trunk/gcc/testsuite/g++.dg/ext/c99struct1.C
    trunk/gcc/testsuite/gcc.dg/union-cast-1.c
    trunk/gcc/testsuite/gcc.dg/union-cast-2.c
    trunk/gcc/testsuite/gcc.dg/union-cast-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
@ 2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2005-11-03 16:21 -------
Subject: Bug 23155

Author: pinskia
Date: Thu Nov  3 16:21:52 2005
New Revision: 106439

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106439
Log:
2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23155
        * g++.dg/ext/c99struct1.C: New test.
        * gcc.dg/union-cast-1.c: New test.
        * gcc.dg/union-cast-2.c: New test.
        * gcc.dg/union-cast-3.c: New test.

2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23155
        * gimplifier.c (gimplify_expr): Create a temporary for lvalue
        CONSTRUCTOR.


Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/ext/c99struct1.C
      - copied unchanged from r106438,
trunk/gcc/testsuite/g++.dg/ext/c99struct1.C
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/union-cast-1.c
      - copied unchanged from r106438,
trunk/gcc/testsuite/gcc.dg/union-cast-1.c
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/union-cast-2.c
      - copied unchanged from r106438,
trunk/gcc/testsuite/gcc.dg/union-cast-2.c
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/union-cast-3.c
      - copied unchanged from r106438,
trunk/gcc/testsuite/gcc.dg/union-cast-3.c
Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/gimplify.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
       [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2005-11-03 16:16 ` pinskia at gcc dot gnu dot org
@ 2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
  2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pinskia at gcc dot gnu dot org  2005-11-03 16:22 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
  2005-07-31  4:22 [Bug tree-optimization/23155] New: " dje at gcc dot gnu dot org
  2005-07-31  4:22 ` [Bug middle-end/23155] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-31  4:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  4:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 04:25 -------
If we give -pedantic-errors we reject it with an error but still ICE.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code


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


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

* [Bug middle-end/23155] [4.0/4.1 Regression] Gimplification failed for union cast
  2005-07-31  4:22 [Bug tree-optimization/23155] New: " dje at gcc dot gnu dot org
@ 2005-07-31  4:22 ` pinskia at gcc dot gnu dot org
  2005-07-31  4:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 04:21 -------
The front-end produces:
  {.v=vec}.f[5] = n;


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|tree-optimization           |middle-end
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-31 04:21:21
               date|                            |
            Summary|Gimplification failed for   |[4.0/4.1 Regression]
                   |union cast                  |Gimplification failed for
                   |                            |union cast
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-11-03 16:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23155-327@http.gcc.gnu.org/bugzilla/>
2005-10-27 20:01 ` [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast pinskia at gcc dot gnu dot org
2005-10-27 21:15 ` pinskia at gcc dot gnu dot org
2005-10-28  3:36 ` [Bug middle-end/23155] " pinskia at gcc dot gnu dot org
2005-10-31  4:29 ` mmitchel at gcc dot gnu dot org
2005-11-03 16:16 ` pinskia at gcc dot gnu dot org
2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
2005-11-03 16:22 ` pinskia at gcc dot gnu dot org
2005-07-31  4:22 [Bug tree-optimization/23155] New: " dje at gcc dot gnu dot org
2005-07-31  4:22 ` [Bug middle-end/23155] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-31  4:25 ` 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).