diff options
author | Mike Stump <mrs@apple.com> | 2006-05-19 20:08:01 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2006-05-19 20:08:01 +0000 |
commit | d593cb3da7ebc6246c3da0ef3b46292b20d9f233 (patch) | |
tree | 8c423203590ab2dde81882d0d2b75e6e0a3a648b /gcc | |
parent | 59fc0cc793a1b507424ba90a56fa33501c668e5d (diff) | |
download | gcc-d593cb3da7ebc6246c3da0ef3b46292b20d9f233.zip gcc-d593cb3da7ebc6246c3da0ef3b46292b20d9f233.tar.gz gcc-d593cb3da7ebc6246c3da0ef3b46292b20d9f233.tar.bz2 |
c-tree.h (default_conversion): Remove.
* c-tree.h (default_conversion): Remove.
* c-common.h (default_conversion): Add.
cp:
* typeck.c (default_conversion): Remove static.
From-SVN: r113914
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-common.h | 5 | ||||
-rw-r--r-- | gcc/c-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
5 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f8a4de1..d92dfa2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-05-19 Mike Stump <mrs@apple.com> + + * c-tree.h (default_conversion): Remove. + * c-common.h (default_conversion): Add. + 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz> * tree-vrp.c (valid_value_p): New function. diff --git a/gcc/c-common.h b/gcc/c-common.h index b26e811..014b0ca 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -760,6 +760,11 @@ extern tree build_unary_op (enum tree_code, tree, int); extern tree build_binary_op (enum tree_code, tree, tree, int); extern tree perform_integral_promotions (tree); +/* These functions must be defined by each front-end which implements + a variant of the C language. They are used by port files. */ + +extern tree default_conversion (tree); + /* Given two integer or real types, return the type for their sum. Given two compatible ANSI C types, returns the merged type. */ diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 9b24daa..3503c79 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -531,7 +531,6 @@ extern bool c_vla_type_p (tree); extern bool c_mark_addressable (tree); extern void c_incomplete_type_error (tree, tree); extern tree c_type_promotes_to (tree); -extern tree default_conversion (tree); extern struct c_expr default_function_array_conversion (struct c_expr); extern tree composite_type (tree, tree); extern tree build_component_ref (tree, tree); diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4308862..9720952 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-05-19 Mike Stump <mrs@apple.com> + + * typeck.c (default_conversion): Remove static. + 2006-05-19 Mark Mitchell <mark@codesourcery.com> PR c++/26433 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index e275f76..93d6c22 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1540,7 +1540,7 @@ decay_conversion (tree exp) applied to both operands to a binary operator before determining what additional conversions should apply. */ -static tree +tree default_conversion (tree exp) { /* Perform the integral promotions first so that bitfield |