diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-05 22:07:33 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-05 22:07:33 +0000 |
commit | 136e64db5ea4eda85d7a9916d3ae9f4fa528b1e3 (patch) | |
tree | 37419ddcaadd888777ea3df662e86983cd2a9346 /gcc/java/expr.c | |
parent | 839ee4bc570bf56df913d37a4fa3ab9fb6e5956e (diff) | |
download | gcc-136e64db5ea4eda85d7a9916d3ae9f4fa528b1e3.zip gcc-136e64db5ea4eda85d7a9916d3ae9f4fa528b1e3.tar.gz gcc-136e64db5ea4eda85d7a9916d3ae9f4fa528b1e3.tar.bz2 |
utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES with targetm.calls.promote_prototypes.
ada/
* ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
with targetm.calls.promote_prototypes.
gcc/
* config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
TARGET_PROMOTE_PROTOTYPES.
cp/
* call.c (type_passed_as): Replace PROMOTE_PROTOTYPES with
targetm.calls.promote_prototypes.
java/
* Make-lang.in (java/decl.o, java/expr.o, java/parse.o):
Depend on target.h.
* decl.c: Include target.h.
(start_java_method): Replace PROMOTE_PROTOTYPES with
targetm.calls.promote_prototypes.
* expr.c: Include target.h.
(pop_arguments): Replace PROMOTE_PROTOTYPES with
targetm.calls.promote_prototypes.
* parse.y: Include target.h.
(start_complete_expand_method): Replace PROMOTE_PROTOTYPES
with targetm.calls.promote_prototypes.
From-SVN: r77345
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 53aa45b..a4356eb 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -43,6 +43,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include "toplev.h" #include "except.h" #include "ggc.h" +#include "target.h" static void flush_quick_stack (void); static void push_value (tree); @@ -1674,7 +1675,7 @@ pop_arguments (tree arg_types) tree tail = pop_arguments (TREE_CHAIN (arg_types)); tree type = TREE_VALUE (arg_types); tree arg = pop_value (type); - if (PROMOTE_PROTOTYPES + if (targetm.calls.promote_prototypes (type) && TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node) && INTEGRAL_TYPE_P (type)) arg = convert (integer_type_node, arg); |