------- Comment #5 from jakub at gcc dot gnu dot org  2009-10-27 15:37 -------
Reduced testcase (although, with a different error). -O -fipa-struct-reorg
-fwhole-program:
struct S { void *a; struct V *b; };
typedef struct { int c; } T;
typedef struct { int d; int e; } U;
void fn (void *);

void
foo (void)
{
  T x;
  fn (&x);
}

void
bar (void)
{
  U x;
  fn (&x);
}

void
baz (struct S *x)
{
  foo ();
  bar ();
}

void *volatile a __attribute__((used)) = baz;


-- 


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

Reply via email to