diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-06-02 05:45:34 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-02 05:45:34 +0000 |
commit | cc057ef34398f155de8a021421a41d6a0a4ba1f0 (patch) | |
tree | c911d8bb39ff9df74f4c45f18294abd595c35ad7 /gcc | |
parent | aff2c0666a8bee4aa6643c79bd9abd581e166db6 (diff) | |
download | gcc-cc057ef34398f155de8a021421a41d6a0a4ba1f0.zip gcc-cc057ef34398f155de8a021421a41d6a0a4ba1f0.tar.gz gcc-cc057ef34398f155de8a021421a41d6a0a4ba1f0.tar.bz2 |
cp-tree.h (lang_decl_flags): Add anticipated_p.
* cp-tree.h (lang_decl_flags): Add anticipated_p.
(DECL_ANTICIPATED): Use it.
From-SVN: r34351
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ccd3f55..1867f59 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-06-01 Mark Mitchell <mark@codesourcery.com> + + * cp-tree.h (lang_decl_flags): Add anticipated_p. + (DECL_ANTICIPATED): Use it. + 2000-06-01 Richard Henderson <rth@cygnus.com> * decl.c (init_decl_processing): Set lang_get_alias_set first thing. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 52b853a..0f0ea1c 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -101,7 +101,7 @@ Boston, MA 02111-1307, USA. */ 5: DECL_INTERFACE_KNOWN. 6: DECL_THIS_STATIC (in VAR_DECL or FUNCTION_DECL). 7: DECL_DEAD_FOR_LOCAL (in VAR_DECL). - DECL_ANTICIPATED (in FUNCTION_DECL). + DECL_THUNK_P (in a member FUNCTION_DECL) Usage of language-independent fields in a language-dependent manner: @@ -1870,7 +1870,8 @@ struct lang_decl_flags unsigned global_dtor_p : 1; unsigned tinfo_fn_p : 1; unsigned assignment_operator_p : 1; - unsigned dummy : 3; + unsigned anticipated_p : 1; + unsigned dummy : 2; tree context; @@ -2491,7 +2492,8 @@ extern int flag_new_for_scope; /* Nonzero if NODE is a FUNCTION_DECL for a built-in function, and we have not yet seen a prototype for that function. */ -#define DECL_ANTICIPATED(NODE) DECL_LANG_FLAG_7 (FUNCTION_DECL_CHECK (NODE)) +#define DECL_ANTICIPATED(NODE) \ + (DECL_LANG_SPECIFIC (FUNCTION_DECL_CHECK (NODE))->decl_flags.anticipated_p) /* This _DECL represents a compiler-generated entity. */ #define SET_DECL_ARTIFICIAL(NODE) (DECL_ARTIFICIAL (NODE) = 1) |