re PR bootstrap/45444 (ARM bootstrap failure: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat])

PR bootstrap/45444
	* config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
	(arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.

From-SVN: r166753
This commit is contained in:
Joern Rennecke 2010-11-15 13:40:27 +00:00 committed by Joern Rennecke
parent fcdc80e40a
commit 21272a45a7
2 changed files with 8 additions and 2 deletions

View File

@ -45,6 +45,10 @@
PR target/46427
* config/m32r/m32r.c: Remove unused variables frame_size and insn.
PR bootstrap/45444
* config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
(arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2010-11-15 Richard Guenther <rguenther@suse.de>
PR lto/44150

View File

@ -19045,7 +19045,9 @@ neon_builtin_compare (const void *a, const void *b)
static enum insn_code
locate_neon_builtin_icode (int fcode, neon_itype *itype)
{
neon_builtin_datum key, *found;
neon_builtin_datum key
= { NULL, (neon_itype) 0, 0, { CODE_FOR_nothing }, 0, 0 };
neon_builtin_datum *found;
int idx;
key.base_fcode = fcode;
@ -22900,7 +22902,7 @@ arm_count (int label,
it to output_asm_insn. Provides a mechanism to construct the
output pattern on the fly. Note the hard limit on the pattern
buffer size. */
static void
static void ATTRIBUTE_PRINTF_4
arm_output_asm_insn (emit_f emit, int label, rtx *operands,
const char *pattern, ...)
{