This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Remove CHAR_TYPE usage from the Ada front-end
- From: Roger Sayle <roger at eyesopen dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 5 Feb 2006 08:23:53 -0700 (MST)
- Subject: [Ada] Remove CHAR_TYPE usage from the Ada front-end
With the eliminaton of CHAR_TYPE tree nodes from the Java front-end,
GCC no longer requires/uses the CHAR_TYPE tree code. Continuing the
process of its demise, this patch removes the single use of it from
the Ada front-end.
The following patch has been tested on i686-pc-linux-gnu with a
bootstrap, including ada, and tested with a top-level "make -k
check" with no regressions in the acats testsuite.
Ok for mainline?
2006-02-05 Roger Sayle <roger@eyesopen.com>
* decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
Index: decl.c
===================================================================
*** decl.c (revision 110591)
--- decl.c (working copy)
*************** gnat_substitute_in_type (tree t, tree f,
*** 6444,6450 ****
case INTEGER_TYPE:
case ENUMERAL_TYPE:
case BOOLEAN_TYPE:
- case CHAR_TYPE:
if (CONTAINS_PLACEHOLDER_P (TYPE_MIN_VALUE (t))
|| CONTAINS_PLACEHOLDER_P (TYPE_MAX_VALUE (t)))
{
--- 6444,6449 ----
Roger
--