diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-03-28 23:49:35 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-03-28 16:49:35 -0700 |
commit | 430bb96baa4c0786d8d91511dd836c423e4ce210 (patch) | |
tree | 7158fbe8136c820c3191980f63117f11512759a2 /gcc | |
parent | 3ac2735b19f19f75fa3e184425e512fab2690633 (diff) | |
download | gcc-430bb96baa4c0786d8d91511dd836c423e4ce210.zip gcc-430bb96baa4c0786d8d91511dd836c423e4ce210.tar.gz gcc-430bb96baa4c0786d8d91511dd836c423e4ce210.tar.bz2 |
class.c (alter_access): Remove unused label.
* class.c (alter_access): Remove unused label. Add braces
around empty else clause.
* lex.c (yyprint): Fix argument to printf.
From-SVN: r18887
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/class.c | 9 | ||||
-rw-r--r-- | gcc/cp/lex.c | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ce98056..a6ee661 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +Sun Mar 29 00:47:32 1998 Jeffrey A Law (law@cygnus.com) + + * class.c (alter_access): Remove unused label. Add braces + around empty else clause. + + * lex.c (yyprint): Fix argument to printf. + Sat Mar 28 17:43:52 1998 Mark Mitchell <mmitchell@usa.net> * pt.c (tsubst): Clear TREE_USED for new FUNCTION_DECLs. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 7440a8a7..1fc4f2d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1321,15 +1321,16 @@ alter_access (t, fdecl, access) IDENTIFIER_POINTER (DECL_NAME (fdecl))); } else - /* They're changing the access to the same thing they changed - it to before. That's OK. */ - ; + { + /* They're changing the access to the same thing they changed + it to before. That's OK. */ + ; + } } else { enforce_access (TYPE_BINFO (t), fdecl); - alter: DECL_ACCESS (fdecl) = tree_cons (t, access, DECL_ACCESS (fdecl)); return 1; } diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 719a1ca..aaaacc5 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -910,7 +910,7 @@ yyprint (file, yychar, yylval) t = yylval.ttype; if (TREE_CODE (t) == TYPE_DECL || TREE_CODE (t) == TEMPLATE_DECL) { - fprintf (file, " `%s'", DECL_NAME (t)); + fprintf (file, " `%s'", IDENTIFIER_POINTER (DECL_NAME (t))); break; } my_friendly_assert (TREE_CODE (t) == IDENTIFIER_NODE, 224); |