This is the mail archive of the
mailing list for the GCC project.
Re: [patch] Remove BOUNDED macros
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Greg McGary <gkm at gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: 20 May 2003 16:33:28 -0700
- Subject: Re: [patch] Remove BOUNDED macros
- References: <3ECA69E5.email@example.com>
Nathan Sidwell <firstname.lastname@example.org> writes:
> thi spatch removes the BOUNDED macros in tree.h, that are not used anywhere.
> AFAICT the bounded pointers work ceased back in 2000-05-03 when this
> patch went in. googling 'Greg McGary' shows the most recent posting
> being early 2002, but that did not concern bounded pointers. I can't
> find anything more recent than 2000 for the pointer work.
> booted & tested on i686-pc-linux-gnu, ok?
*sigh*. I was looking forward to having bounds checking.
The patch is OK.
> Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
> The voices in my head said this was stupid too
> email@example.com :: http://www.planetfall.pwp.blueyonder.co.uk
> 2003-05-19 Nathan Sidwell <firstname.lastname@example.org>
> * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
> * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
> (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
> * print-tree.c (print_node): Remove ambient-boundedness.
> * tree.h (tree_common): Remove bounded_flag.
> (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
> BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
> MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
> TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
> TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
> (TYPE_QUALS): Remove BOUNDED.
> (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
> (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
> TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
> TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
> VA_LIST_POINTER_DEPTH): Remove.
> (struct tree_type): Remove pointer_depth.
> * treelang/treetree.c (reswords): Remove __bounded__, __unbounded__.
- Geoffrey Keating <email@example.com>