[ADA PATCH] Update TREE_CONSTANT_OVERFLOW usage

Roger Sayle roger@eyesopen.com
Wed Jan 24 22:10:00 GMT 2007


The following patch completes the transition of TREE_CONSTANT_OVERFLOW to
TREE_OVERFLOW by updating the last remaining uses in the Ada front-end.
To summarize the situation, the middle-end has managed to unify the
TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW bits on constant tree nodes, and
now only needs a single bit.  To ease the transition, the previously used
TREE_CONSTANT_OVERFLOW is currently a synonym for TREE_OVERFLOW whilst the
various front-ends are transitioned, which is exactly what this patch
does.

The following patch has been tested on i686-pc-linux-gnu, will a full
"make bootstrap", including Ada and regression tested with a top-level
"make -k check" with no new failures.  I currently see the same two ACATs
failures and one gnat failure on this platform, as I do in an unpatched
mainline.

Ok for mainline?


2007-01-24  Roger Sayle  <roger@eyesopen.com>

        * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
        TREE_CONSTANT_OVERFLOW.
        (allocatable_size_p, annotate_value): Likewise.
        * trans.c (gnat_to_gnu): Likewise.
        * utils.c (unchecked_convert): Likewise.
        * utils2.c (build_simple_component_ref): Likewise.

Roger
--
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patcha.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070124/540339da/attachment.txt>


More information about the Gcc-patches mailing list