Martin Uecker <uec...@tugraz.at> writes:

> Hi Richard,
>
> this is another version.  It now adds an "ignore_size" flag
> to gimple_canonical_types_compatible_p and uses this instead
> of having the complicated special case for arrays at the
> end.  Also zero-sized members are now ignored again, except
> if they are arrays at the end where then only the size is
> ignored.  This can still be stricter than before for theĀ 
> case where there are zero-sized arrays at the end (e.g.
> before element type could differ). 
>
> Martin
>
>
> Bootstrapped and regression tested on x86_64.
> [...]
>  
> diff --git a/gcc/testsuite/gcc.dg/pr112716.c b/gcc/testsuite/gcc.dg/pr112716.c
> new file mode 100644
> index 00000000000..109dd252f0d
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/pr112716.c
> @@ -0,0 +1,40 @@
> +/* { dg-do compile } */
> +/* { dg-options "-lfto -O2" } */

-flto, but need to use dg-require-effective-target lto too then.

> [...]

thanks,
sam

Reply via email to