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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ messages in thread
* [Bug c/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
` (2 preceding siblings ...)
2005-09-16 20:22 ` janis at gcc dot gnu dot org
@ 2005-09-27 16:00 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:00 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/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-08-04 9:20 ` [Bug c/23155] [4.0/4.1 Regression] " rguenth at gcc dot gnu dot org
2005-08-08 18:26 ` pinskia at gcc dot gnu dot org
@ 2005-09-16 20:22 ` janis at gcc dot gnu dot org
2005-09-27 16:00 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-09-16 20:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From janis at gcc dot gnu dot org 2005-09-16 20:22 -------
The testcase from comment #5 ICEs starting with this patch from kenner:
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00881.html
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |kenner at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/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-08-04 9:20 ` [Bug c/23155] [4.0/4.1 Regression] " rguenth at gcc dot gnu dot org
@ 2005-08-08 18:26 ` pinskia at gcc dot gnu dot org
2005-09-16 20:22 ` janis at gcc dot gnu dot org
2005-09-27 16:00 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-08 18:26 -------
: Search converges between 2004-06-20-trunk (#469) and 2004-06-22-trunk (#470).
Hmm, this was not introduced by the tree-ssa merge weird.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/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-08-04 9:20 ` rguenth at gcc dot gnu dot org
2005-08-08 18:26 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-04 9:20 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-08-04 09:20 -------
It's an lvalue-cast, which we no longer support as an extension. So it's ICE on
invalid and a frontend bug. The C++ frontend spits out the interesting error
pr23155.c: In function void foo5(int):
pr23155.c:7: error: no matching function for call to vx::vx(int&)
pr23155.c:1: note: candidates are: vx::vx()
pr23155.c:1: note: vx::vx(const vx&)
The following get's rejected with what should be done with the original
testcase, too:
union vx {short f[8]; int v;};
int vec;
void bar(short *);
void
foo5 (int vec)
{
bar(((union vx) vec).f);
}
pr23155.c: In function foo5:
pr23155.c:10: error: invalid use of non-lvalue array
--
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c
Keywords|ice-on-valid-code |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-11-03 16:22 UTC | newest]
Thread overview: 11+ 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-08-04 9:20 ` [Bug c/23155] [4.0/4.1 Regression] " rguenth at gcc dot gnu dot org
2005-08-08 18:26 ` pinskia at gcc dot gnu dot org
2005-09-16 20:22 ` janis at gcc dot gnu dot org
2005-09-27 16:00 ` mmitchel 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).