PATCH: Fix PR 30666 [4.3 Regression]

Richard Guenther richard.guenther@gmail.com
Sat Mar 3 20:04:00 GMT 2007


On 3/3/07, Doug Gregor <doug.gregor@gmail.com> wrote:
> This little patch fixes PR tree-optimization/20336, a 4.3 regression
> where the canonical types system was failing to keep the built-in
> complex types canonical. The problem shows up as a warning now, but
> would be a crash with --disable-checking.
>
> Tested i686-pc-linux-gnu; no regressions.
>
> Okay for mainline?

Is there a reason why simply calling build_complex_type is not enough?
It looks like that will invoke layout_type and set TYPE_NAME (which
is IMHO the right thing to do).

Thanks,
Richard.

> 2007-03-03  Douglas Gregor  <doug.gregor@gmail.com>
>
>         PR tree-optimization/30666
>         * tree.c (build_common_tree_nodes_2): Use build_complex_type when
>         building predefined complex types, to preserve canonical types.
>
>



More information about the Gcc-patches mailing list