diff options
author | Brooks Moses <brooks.moses@codesourcery.com> | 2007-04-19 21:52:58 +0000 |
---|---|---|
committer | Brooks Moses <brooks@gcc.gnu.org> | 2007-04-19 14:52:58 -0700 |
commit | db136335ce7cdc2f74b393b7cf67ad80681310dd (patch) | |
tree | c0a798ac729aea4acadcfc3d48326d9a514fd3f4 | |
parent | b6fda43f4ef60e4997e5bba89bbfa462670635ea (diff) | |
download | gcc-db136335ce7cdc2f74b393b7cf67ad80681310dd.zip gcc-db136335ce7cdc2f74b393b7cf67ad80681310dd.tar.gz gcc-db136335ce7cdc2f74b393b7cf67ad80681310dd.tar.bz2 |
fold-const.c: Remove prototypes for native_encode_expr and native_interpret_expr.
* fold-const.c: Remove prototypes for native_encode_expr and
native_interpret_expr.
(native_encode_expr): Make non-static.
(native_interpret_expr): Likewise.
* tree.h: Add prototypes for the above.
From-SVN: r123980
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/fold-const.c | 6 | ||||
-rw-r--r-- | gcc/tree.h | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cb5829..e62e9a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2007-04-19 Brooks Moses <brooks.moses@codesourcery.com> + + * fold-const.c: Remove prototypes for native_encode_expr and + native_interpret_expr. + (native_encode_expr): Make non-static. + (native_interpret_expr): Likewise. + * tree.h: Add prototypes for the above. + 2007-04-19 Joseph Myers <joseph@codesourcery.com> gcc/ diff --git a/gcc/fold-const.c b/gcc/fold-const.c index b0a2bb7..3f03cc9 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -143,8 +143,6 @@ static bool reorder_operands_p (tree, tree); static tree fold_negate_const (tree, tree); static tree fold_not_const (tree, tree); static tree fold_relational_const (enum tree_code, tree, tree, tree); -static int native_encode_expr (tree, unsigned char *, int); -static tree native_interpret_expr (tree, unsigned char *, int); /* We know that A1 + B1 = SUM1, using 2's complement arithmetic and ignoring @@ -7286,7 +7284,7 @@ native_encode_vector (tree expr, unsigned char *ptr, int len) buffer PTR of length LEN bytes. Return the number of bytes placed in the buffer, or zero upon failure. */ -static int +int native_encode_expr (tree expr, unsigned char *ptr, int len) { switch (TREE_CODE (expr)) @@ -7465,7 +7463,7 @@ native_interpret_vector (tree type, unsigned char *ptr, int len) we return a REAL_CST, etc... If the buffer cannot be interpreted, return NULL_TREE. */ -static tree +tree native_interpret_expr (tree type, unsigned char *ptr, int len) { switch (TREE_CODE (type)) @@ -4382,6 +4382,10 @@ extern void using_eh_for_cleanups (void); otherwise. */ extern int folding_initializer; +/* Convert between trees and native memory representation. */ +extern int native_encode_expr (tree, unsigned char *, int); +extern tree native_interpret_expr (tree, unsigned char *, int); + /* Fold constants as much as possible in an expression. Returns the simplified expression. Acts only on the top level of the expression; |