Revert "Fix ICE with -g and -std=c23 related to incomplete types [PR114361]"

This reverts commit 871bb5ad2d  because it
breaks LTO and needs a bit more work. See PR 114574.
This commit is contained in:
Martin Uecker 2024-04-05 12:14:56 +02:00
parent 9627cbbadb
commit 8057f9aa1f
4 changed files with 0 additions and 39 deletions

View File

@ -9722,7 +9722,6 @@ finish_struct (location_t loc, tree t, tree fieldlist, tree attributes,
C_TYPE_VARIABLE_SIZE (x) = C_TYPE_VARIABLE_SIZE (t);
C_TYPE_VARIABLY_MODIFIED (x) = C_TYPE_VARIABLY_MODIFIED (t);
C_TYPE_INCOMPLETE_VARS (x) = NULL_TREE;
TYPE_CANONICAL (x) = TYPE_CANONICAL (t);
}
/* Update type location to the one of the definition, instead of e.g.

View File

@ -1,14 +0,0 @@
/* { dg-do compile }
* { dg-options "-std=c23 -g" } */
struct a;
typedef struct a b;
void g() {
struct a { b* x; };
}
struct a { b* x; };

View File

@ -1,13 +0,0 @@
/* { dg-do compile }
* { dg-options "-std=c23 -g" } */
struct a;
typedef struct a b;
void f() {
extern struct a { b* x; } t;
}
extern struct a { b* x; } t;

View File

@ -1,11 +0,0 @@
/* PR c/114361 */
/* { dg-do compile } */
/* { dg-options "-std=gnu23 -g" } */
void f()
{
typedef struct foo bar;
typedef __typeof( ({ (struct foo { bar *x; }){ }; }) ) wuz;
struct foo { wuz *x; };
}