diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-12-04 16:36:04 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-12-04 16:36:04 +0000 |
commit | 00bb3dad4082400b0176e8e650ce4d6786cc9e23 (patch) | |
tree | c719db9d1e656da3f28467332134994d19ab3a9b | |
parent | ae50db03d75098ada4467bb2f9de23498360afa1 (diff) | |
download | gcc-00bb3dad4082400b0176e8e650ce4d6786cc9e23.zip gcc-00bb3dad4082400b0176e8e650ce4d6786cc9e23.tar.gz gcc-00bb3dad4082400b0176e8e650ce4d6786cc9e23.tar.bz2 |
error.c (dump_function_decl): Use DECL_VIRTUAL_P, not TYPE_POLYMORPHIC_P.
cp:
* error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
TYPE_POLYMORPHIC_P.
* typeck.c (build_static_cast): Remove unused variable.
From-SVN: r37996
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 97fb23b..cc40d91 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2000-12-04 Nathan Sidwell <nathan@codesourcery.com> + + * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not + TYPE_POLYMORPHIC_P. + + * typeck.c (build_static_cast): Remove unused variable. + 2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> * pt.c: Fix typo in comment. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 9717ce0..a77edf5 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1219,7 +1219,7 @@ dump_function_decl (t, flags) /* OK */; else if (DECL_STATIC_FUNCTION_P (t)) print_identifier (scratch_buffer, "static "); - else if (TYPE_POLYMORPHIC_P (t)) + else if (DECL_VIRTUAL_P (t)) print_identifier (scratch_buffer, "virtual "); /* Print the return type? */ diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 6f99a5f..803c1c0 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -5046,7 +5046,7 @@ tree build_static_cast (type, expr) tree type, expr; { - tree intype, binfo; + tree intype; int ok; if (type == error_mark_node || expr == error_mark_node) |