summaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa.c
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-09 19:47:54 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-09 19:47:54 +0000
commitffa8918b87953029507d264a6e1baefacb89d7b9 (patch)
tree15f04fa68a22dbaa3b962124526e39ef880b4185 /gcc/config/pa/pa.c
parent6a60222ab58145d7bc17a8bcd5f11dec55bca747 (diff)
downloadgcc-ffa8918b87953029507d264a6e1baefacb89d7b9.tar.gz
PR middle-end/9986
* c-common.c (c_common_nodes_and_builtins): Initialize target builtins after the common builtins. * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define. * pa.c (TARGET_INIT_BUILTINS): Define. (pa_init_builtins): New function. * pa.md (call, call_value, sibcall, sibcall_value): When sufficient space has been allocated for the outgoing arguments, set the arg pointer for a call emitted after virtuals have been instantiated using the stack pointer offset, otherwise abort. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64043 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/pa.c')
-rw-r--r--gcc/config/pa/pa.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 0f1b894f895..d087ed8606b 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -130,6 +130,7 @@ static void pa_asm_output_mi_thunk PARAMS ((FILE *, tree, HOST_WIDE_INT,
static void pa_asm_out_constructor PARAMS ((rtx, int));
static void pa_asm_out_destructor PARAMS ((rtx, int));
#endif
+static void pa_init_builtins PARAMS ((void));
static void copy_fp_args PARAMS ((rtx)) ATTRIBUTE_UNUSED;
static int length_fp_args PARAMS ((rtx)) ATTRIBUTE_UNUSED;
static struct deferred_plabel *get_plabel PARAMS ((const char *))
@@ -222,6 +223,9 @@ static size_t n_deferred_plabels = 0;
#define TARGET_ASM_DESTRUCTOR pa_asm_out_destructor
#endif
+#undef TARGET_INIT_BUILTINS
+#define TARGET_INIT_BUILTINS pa_init_builtins
+
#undef TARGET_RTX_COSTS
#define TARGET_RTX_COSTS hppa_rtx_costs
#undef TARGET_ADDRESS_COST
@@ -338,6 +342,14 @@ override_options ()
}
}
+void
+pa_init_builtins ()
+{
+#ifdef DONT_HAVE_FPUTC_UNLOCKED
+ built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] = NULL_TREE;
+#endif
+}
+
/* Return nonzero only if OP is a register of mode MODE,
or CONST0_RTX. */
int