public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR @ 2005-10-31 5:25 pinskia at gcc dot gnu dot org 2005-10-31 5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-10-31 5:25 UTC (permalink / raw) To: gcc-bugs Testcase: void abort (void); int ii; typedef struct {} raw_spinlock_t; typedef struct { raw_spinlock_t raw_lock; } spinlock_t; raw_spinlock_t one_raw_spinlock (void) { raw_spinlock_t raw_lock; ii++; return raw_lock; } int main(void) { spinlock_t lock = (spinlock_t) { .raw_lock = one_raw_spinlock() }; if (ii != 1) abort (); return 0; } ------- Forwarded from: http://gcc.gnu.org/ml/gcc/2005-09/msg00260.html Patch which needs testing posted: http://gcc.gnu.org/ml/gcc/2005-09/msg00286.html -- Summary: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: wrong-code 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=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/24589] [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org @ 2005-10-31 5:26 ` pinskia at gcc dot gnu dot org 2005-10-31 13:16 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-10-31 5:26 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-31 05:26 ------- This still fails as of today. I will repost and retest the patch later today. -- 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 Known to fail| |4.1.0 Known to work| |4.0.3 Last reconfirmed|0000-00-00 00:00:00 |2005-10-31 05:26:30 date| | Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/24589] [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org 2005-10-31 5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org @ 2005-10-31 13:16 ` pinskia at gcc dot gnu dot org 2005-11-03 6:41 ` mmitchel at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-10-31 13:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-31 13:16 ------- Patch posted: http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01783.html -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://gcc.gnu.org/ml/gcc- | |patches/2005- | |10/msg01783.html Keywords| |patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/24589] [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org 2005-10-31 5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org 2005-10-31 13:16 ` pinskia at gcc dot gnu dot org @ 2005-11-03 6:41 ` mmitchel at gcc dot gnu dot org 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-11-03 6:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from mmitchel at gcc dot gnu dot org 2005-11-03 06:41 ------- Showstopper. -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/24589] [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-11-03 6:41 ` mmitchel at gcc dot gnu dot org @ 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-11-03 15:21 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-03 15:21 ------- Subject: Bug 24589 Author: pinskia Date: Thu Nov 3 15:21:15 2005 New Revision: 106436 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106436 Log: 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the expressions to a statement list instead of gimplifying them. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gcc.c-torture/execute/zero-struct-2.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/zero-struct-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/24589] [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org @ 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-11-03 15:21 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from pinskia at gcc dot gnu dot org 2005-11-03 15:21 ------- 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=24589 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-03 15:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-10-31 5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org 2005-10-31 5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org 2005-10-31 13:16 ` pinskia at gcc dot gnu dot org 2005-11-03 6:41 ` mmitchel at gcc dot gnu dot org 2005-11-03 15:21 ` pinskia at gcc dot gnu dot org 2005-11-03 15:21 ` 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).