This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove some code
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Apr 2003 19:29:05 +0100
- Subject: Remove some code
- Organization: Codesourcery LLC
Hi,
I discovered that DECL_POINTER_DEPTH is not used anywhere.
So I removed it.
built & tested on i686-pc-linux-gnu, installed as obvious
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
* tree.h (DECL_POINTER_DEPTH): Remove.
(struct tree_decl): Remove pointer_depth.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.396
diff -c -3 -p -r1.396 tree.h
*** tree.h 28 Apr 2003 20:02:24 -0000 1.396
--- tree.h 30 Apr 2003 13:08:56 -0000
*************** struct tree_type GTY(())
*** 1778,1793 ****
#define DECL_POINTER_ALIAS_SET_KNOWN_P(NODE) \
(DECL_POINTER_ALIAS_SET (NODE) != - 1)
- /* The pointer_depth field comprises two bits for values in the range
- 0..3. The value is normally equal to TYPE_POINTER_DEPTH of decl's
- type node, but for functions it migth be greater. For example,
- this can happen when the function is declared to accept a parameter
- of type void* (depth=1), but is actually called with an argument of
- type foo** (depth=2). The function type will get the formal
- parameter's depth, but the function decl will get the actual
- argument's depth. */
- #define DECL_POINTER_DEPTH(DECL) (DECL_CHECK (DECL)->decl.pointer_depth)
-
struct function;
struct tree_decl GTY(())
--- 1778,1783 ----
*************** struct tree_decl GTY(())
*** 1824,1836 ****
ENUM_BITFIELD(built_in_class) built_in_class : 2;
unsigned pure_flag : 1;
- unsigned pointer_depth : 2;
unsigned non_addressable : 1;
unsigned user_align : 1;
unsigned uninlinable : 1;
unsigned thread_local_flag : 1;
unsigned inlined_function_flag : 1;
! /* One unused bit. */
unsigned lang_flag_0 : 1;
unsigned lang_flag_1 : 1;
--- 1814,1826 ----
ENUM_BITFIELD(built_in_class) built_in_class : 2;
unsigned pure_flag : 1;
unsigned non_addressable : 1;
unsigned user_align : 1;
unsigned uninlinable : 1;
unsigned thread_local_flag : 1;
unsigned inlined_function_flag : 1;
! unsigned unused : 3;
! /* three unused bits. */
unsigned lang_flag_0 : 1;
unsigned lang_flag_1 : 1;