This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fold-const.c: Make pedantic_non_lvalue static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 08 Nov 2004 22:00:22 -0500 (EST)
- Subject: [patch] fold-const.c: Make pedantic_non_lvalue static.
Hi,
Attached is a patch to make pedantic_non_lvalue static as it is used
only from fold-const.c.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
* fold-const.c (pedantic_non_lvalue): Make it static.
* tree.h: Remove the corresponding prototype.
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.471
diff -u -d -p -r1.471 fold-const.c
--- fold-const.c 6 Nov 2004 19:16:59 -0000 1.471
+++ fold-const.c 8 Nov 2004 23:00:04 -0000
@@ -2035,7 +2035,7 @@ int pedantic_lvalues;
/* When pedantic, return an expr equal to X but certainly not valid as a
pedantic lvalue. Otherwise, return X. */
-tree
+static tree
pedantic_non_lvalue (tree x)
{
if (pedantic_lvalues)
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.648
diff -u -d -p -r1.648 tree.h
--- tree.h 8 Nov 2004 22:38:12 -0000 1.648
+++ tree.h 8 Nov 2004 23:00:07 -0000
@@ -3152,7 +3152,6 @@ extern enum machine_mode mode_for_size_t
/* Return an expr equal to X but certainly not valid as an lvalue. */
extern tree non_lvalue (tree);
-extern tree pedantic_non_lvalue (tree);
extern tree convert (tree, tree);
extern unsigned int expr_align (tree);