diff options
author | Andrew MacLeod <amacleod@cygnus.com> | 1998-05-07 14:30:53 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 1998-05-07 14:30:53 +0000 |
commit | 3474f46290510e6238e03e61d499afa14a5376e9 (patch) | |
tree | b262c2327b5871fa74e0ab2598bfade7a20f44c1 /gcc | |
parent | 76b4b31ead81f9c957962ab76df73c59a0650f14 (diff) | |
download | gcc-3474f46290510e6238e03e61d499afa14a5376e9.zip gcc-3474f46290510e6238e03e61d499afa14a5376e9.tar.gz gcc-3474f46290510e6238e03e61d499afa14a5376e9.tar.bz2 |
clear TREE_USED f;ag for build_type_variant types as well
From-SVN: r19611
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/method.c | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 665b058..c5699e6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Thu May 7 17:09:25 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> + + * method.c (build_decl_overload_real): Set TREE_USED flag to + zero for build_type_variants nodes as well. + Wed May 6 19:27:09 1998 Jason Merrill <jason@yorick.cygnus.com> * pt.c (tsubst): Don't tsubst the type of an IDENTIFIER_NODE. @@ -40,7 +45,8 @@ Tue May 5 23:54:04 1998 Jason Merrill <jason@yorick.cygnus.com> Tue May 5 18:24:13 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> - * method.c: Add a call to build_type_variant to get the right type. + * method.c (build_mangled_name): Add a call to build_type_variant + to get the right type. Tue May 5 01:25:03 1998 Jason Merrill <jason@yorick.cygnus.com> diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 02b1b65..e97c626 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1621,7 +1621,12 @@ build_decl_overload_real (dname, parms, ret_type, tparms, targs, typevec = NULL; while (t) { - TREE_USED (TREE_VALUE (t)) = 0; + tree temp = TREE_VALUE (t); + TREE_USED (temp) = 0; + /* clear out the type variant in case we used it */ + temp = build_type_variant (TYPE_MAIN_VARIANT (temp), + TYPE_READONLY (temp), TYPE_VOLATILE (temp)); + TREE_USED (temp) = 0; t = TREE_CHAIN (t); } } |