diff options
author | Joern Rennecke <amylaar@spamcop.net> | 2010-11-15 13:40:27 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-11-15 13:40:27 +0000 |
commit | 21272a45a74f5836b726dd1dc0d06c2b97937653 (patch) | |
tree | 716793530639f861949f52bf5b0a2462b1b51429 /gcc | |
parent | fcdc80e40ae7412f63d63a6b62a5f6006bfd5401 (diff) | |
download | gcc-21272a45a74f5836b726dd1dc0d06c2b97937653.zip gcc-21272a45a74f5836b726dd1dc0d06c2b97937653.tar.gz gcc-21272a45a74f5836b726dd1dc0d06c2b97937653.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9ff986..f2160ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 5baa2ca..afca3c6 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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, ...) { |