aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
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/parse.y
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/parse.y')
-rw-r--r--gcc/java/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 6209737..93755ea 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -72,6 +72,7 @@ definitions and other extensions. */
#include "debug.h"
#include "tree-inline.h"
#include "cgraph.h"
+#include "target.h"
/* Local function prototypes */
static char *java_accstring_lookup (int);
@@ -7990,7 +7991,7 @@ start_complete_expand_method (tree mdecl)
/* TREE_CHAIN (tem) will change after pushdecl. */
tree next = TREE_CHAIN (tem);
tree type = TREE_TYPE (tem);
- if (PROMOTE_PROTOTYPES
+ if (targetm.calls.promote_prototypes (type)
&& TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)
&& INTEGRAL_TYPE_P (type))
type = integer_type_node;