aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-02-05 22:07:33 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-02-05 22:07:33 +0000
commit136e64db5ea4eda85d7a9916d3ae9f4fa528b1e3 (patch)
tree37419ddcaadd888777ea3df662e86983cd2a9346 /gcc/java/decl.c
parent839ee4bc570bf56df913d37a4fa3ab9fb6e5956e (diff)
downloadgcc-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/decl.c')
-rw-r--r--gcc/java/decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 391fe6a..e0dd852 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -45,6 +45,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "ggc.h"
#include "timevar.h"
#include "tree-inline.h"
+#include "target.h"
#if defined (DEBUG_JAVA_BINDING_LEVELS)
extern void indent (void);
@@ -1758,7 +1759,7 @@ start_java_method (tree fndecl)
parm_decl = build_decl (PARM_DECL, parm_name, parm_type);
DECL_CONTEXT (parm_decl) = fndecl;
- if (PROMOTE_PROTOTYPES
+ if (targetm.calls.promote_prototypes (parm_type)
&& TYPE_PRECISION (parm_type) < TYPE_PRECISION (integer_type_node)
&& INTEGRAL_TYPE_P (parm_type))
parm_type = integer_type_node;