problem compiling ia64-gen.c with current tree
Doug Evans
dje@sebabeach.org
Fri Oct 14 15:36:00 GMT 2005
I don't see how this can work. The data is long long and I'm using a 32
bit system.
Question: To what extent has binutils gone Standard C?
Can we use inttypes.h here? I don't care what; for grin's sake cast to
uintmax_t and use PRIxMAX?
Nick Clifton wrote:
> Hi Doug,
>
>> /home/dje/gnu/src/opcodes/ia64-gen.c:2704: warning: long unsigned int
>> format, different type arg (arg 3)
>> /home/dje/gnu/src/opcodes/ia64-gen.c:2706: warning: long unsigned int
>> format, different type arg (arg 3)
>
>
> Does this patch work for you ?
>
> Cheers
> Nick
>
>
>------------------------------------------------------------------------
>
>Index: opcodes/ia64-gen.c
>===================================================================
>RCS file: /cvs/src/src/opcodes/ia64-gen.c,v
>retrieving revision 1.16
>diff -c -3 -p -r1.16 ia64-gen.c
>*** opcodes/ia64-gen.c 7 Jul 2005 19:27:50 -0000 1.16
>--- opcodes/ia64-gen.c 14 Oct 2005 13:44:46 -0000
>*************** print_main_table (void)
>*** 2701,2709 ****
> ptr->name->num,
> ptr->opcode->type,
> ptr->opcode->num_outputs);
>! fprintf_vma (stdout, ptr->opcode->opcode);
> printf ("ull, 0x");
>! fprintf_vma (stdout, ptr->opcode->mask);
> printf ("ull, { %d, %d, %d, %d, %d }, 0x%x, %d, },\n",
> ptr->opcode->operands[0],
> ptr->opcode->operands[1],
>--- 2701,2709 ----
> ptr->name->num,
> ptr->opcode->type,
> ptr->opcode->num_outputs);
>! fprintf (stdout, "%016ux", ptr->opcode->opcode);
> printf ("ull, 0x");
>! fprintf (stdout, "%016ux", ptr->opcode->mask);
> printf ("ull, { %d, %d, %d, %d, %d }, 0x%x, %d, },\n",
> ptr->opcode->operands[0],
> ptr->opcode->operands[1],
>
>
More information about the Binutils
mailing list