This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ADA PATCH] Update TREE_CONSTANT_OVERFLOW usage


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
--

Attachment: patcha.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]