PATCH: Fix bootstrap on ia64
H. J. Lu
hjl@lucon.org
Mon May 12 23:46:00 GMT 2003
On Mon, May 12, 2003 at 09:06:44AM -0700, H. J. Lu wrote:
> I need this patch to bootstrap on Linux/ia64 configured with
> --disable-checking.
>
>
Apparently, I sent a wrong patch. Here is the right one.
H.J.
-------------- next part --------------
2003-05-12 H.J. Lu (hongjiu.lu@intel.com)
* alloc-pool.c (last_id): Define only if ENABLE_CHECKING is
defined.
* config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark the
unused argument with ATTRIBUTE_UNUSED.
(bundling): Initialize pos.
(ia64_expand_builtin): Initialize rmode.
--- gcc/alloc-pool.c.unused 2003-05-12 07:54:47.000000000 -0700
+++ gcc/alloc-pool.c 2003-05-12 08:19:05.000000000 -0700
@@ -71,8 +71,10 @@ typedef struct allocation_object_def
#define USER_PTR_FROM_ALLOCATION_OBJECT_PTR(X) \
((void *) (((allocation_object *) (X))->u.data))
+#ifdef ENABLE_CHECKING
/* Last used ID. */
static ALLOC_POOL_ID_TYPE last_id;
+#endif
/* Create a pool of things of size SIZE, with NUM in each block we
allocate. */
--- gcc/config/ia64/ia64.c.unused 2003-04-25 15:54:32.000000000 -0700
+++ gcc/config/ia64/ia64.c 2003-05-12 08:56:42.000000000 -0700
@@ -3609,7 +3609,8 @@ ia64_function_arg_pass_by_reference (cum
this is an indirect call. */
static bool
ia64_function_ok_for_sibcall (decl, exp)
- tree decl, exp;
+ tree decl;
+ tree exp ATTRIBUTE_UNUSED;
{
/* Direct calls are always ok. */
if (decl)
@@ -6559,6 +6560,7 @@ bundling (dump, verbose, prev_head_insn,
rtx nop;
enum attr_type type;
+ pos = 0;
insn_num = 0;
for (insn = NEXT_INSN (prev_head_insn);
insn && insn != tail;
@@ -8151,7 +8153,7 @@ ia64_expand_builtin (exp, target, subtar
tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0);
unsigned int fcode = DECL_FUNCTION_CODE (fndecl);
tree arglist = TREE_OPERAND (exp, 1);
- enum machine_mode rmode;
+ enum machine_mode rmode = VOIDmode;
switch (fcode)
{
More information about the Gcc-patches
mailing list