Commit missing change log entries.
[official-gcc.git] / gcc / ChangeLog
blob929b2377ca8397944e3dbc4d6a3505174a817cd2
1 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
3         PR other/63694
4         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
5         declarations.
6         * configure: Regenerated.
7         * config.in: Regenerated.
9 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
11         * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline clones
12         as having abstract origin used.
13         * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract origin check.
14         (clone_inlined_nodes): Copy abstract originflag.
15         * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get abstract origin node.
17 2014-11-22  Uros Bizjak  <ubizjak@gmail.com>
19         * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
20         * config/i386/i386.c (ix86_option_override_internal): Do not increase
21         PARAM_MAX_COMPLETELY_PEELED_INSNS.
23 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
25         PR target/63783
26         PR target/51244
27         * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
28         Do not emit bitwise not insn.  Emit logical not insn sequence instead.
29         Adjust related comments throughout the file.
31 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
33         PR target/63986
34         PR target/51244
35         * config/sh/sh.c (sh_is_logical_t_store_expr,
36         sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
37         (sh_split_movrt_negc_to_movt_xor): New function.
38         (sh_find_set_of_reg): Move to ...
39         * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
40         to template function.
41         (set_of_reg): Use rtx_insn* for insn member.
42         (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
43         rtx_insn* for insn argument.
44         * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
45         sequence using new sh_split_movrt_negc_to_movt_xor function.
46         (movrt_xor): Allow also for SH2A.
47         (*movt_movrt): Delete insns and splits.
49 2014-11-22  Marc Glisse  <marc.glisse@inria.fr>
51         PR tree-optimization/60770
52         * tree-sra.c (clobber_subtree): New function.
53         (sra_modify_constructor_assign): Call it.
55 2014-11-21  Vladimir Makarov  <vmakarov@redhat.com>
57         PR target/63897
58         * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
59         argument.
60         (process_bb_lives): Rename dead_insn_p on remove_p
61         and global_live_info_p on dead_insn_p.  Calculate local live info
62         unconditionally.  Remove last argument in calls mark_regno_live and
63         mark_regno_dead.  Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
64         (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
65         Return bool.  Rename global_live_info_p on dead_insn_p.  Return
66         flag of live info change.
67         (lra_create_live_ranges): New.
69 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
71         PR target/63848
72         PR target/63975
73         * internal-fn.c (expand_arith_overflow_result_store,
74         expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
75         do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
76         adjust arguments to those functions.  Use unsignedp = true for
77         EQ, NE, GEU, LEU, LTU and GTU comparisons.
79         PR tree-optimization/64006
80         * tree-vrp.c (stmt_interesting_for_vrp): Return true
81         for {ADD,SUB,MUL}_OVERFLOW internal calls.
82         (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
83         internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
84         immediate uses would change their value ranges and return
85         SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
86         if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
87         interesting for vrp.
89 2014-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
91         PR target/63965
92         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
93         Altivec & -16 mask if the type is not valid for Altivec registers.
94         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
95         reg) that occurs during push_reload processing.
97         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
98         alternative for moving constant vectors which are easy altivec
99         constants to GPRs.  Set the length attribute each of the
100         alternatives.
102 2014-11-21  Matthew Fortune  <matthew.fortune@imgtec.com>
104         * configure.ac: When checking for MIPS .module support ensure that
105         o32 FPXX is supported to avoid a second configure check.
106         * configure: Regenerate.
108 2014-11-21  Jiong Wang  <jiong.wang@arm.com>
110         * config/aarch64/iterators.md (VS): New mode iterator.
111         (vsi2qi): New mode attribute.
112         (VSI2QI): Likewise.
113         * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
114         * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
115         * config/aarch64/aarch64-builtins.c
116         (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
118 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
120         PR bootstrap/63784
121         * configure: Regenerated.
123 2014-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
125         * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
127 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
129         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
130         OPTION_MASK_ISA_PCOMMIT_SET): New.
131         (ix86_handle_option): Handle OPT_mpcommit.
132         * config.gcc: Add pcommitintrin.h
133         * config/i386/pcommitintrin.h: New file.
134         * config/i386/cpuid.h (bit_PCOMMIT): Define.
135         * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
136         * config/i386/i386-c.c (ix86_target_macros_internal): Define
137         __PCOMMIT__.
138         * config/i386/i386.c (ix86_target_string): Add -mpcommit.
139         (PTA_PCOMMIT): Define.
140         (ix86_option_override_internal): Handle new option.
141         (ix86_valid_target_attribute_inner_p): Add pcommit.
142         (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
143         (bdesc_special_args): Add __builtin_ia32_pcommit.
144         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
145         * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
146         (pcommit): New instruction.
147         * config/i386/i386.opt: Add mpcommit.
148         * config/i386/x86intrin.h: Include pcommitintrin.h.
150 2014-11-20  Mark Wielaard  <mjw@redhat.com>
152         PR debug/38757
153         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
154         * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
155         (darwin_override_options): Likewise.
156         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
157         Likewise.
158         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
159         Likewise.
160         * dbxout.c (get_lang_number): Likewise.
161         (dbxout_type): Likewise.
162         (dbxout_symbol_location): Likewise.
163         * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
164         also for DW_LANG_{C,C99,ObjC}.
165         (highest_c_language): New function.
166         (gen_compile_unit_die): Call highest_c_language to merge LTO
167         TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
168         determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
169         * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
170         * langhooks.h (struct lang_hooks): Add version comment to name.
171         (lang_GNU_C): New function declaration.
172         (lang_GNU_CXX): Likewise.
173         * langhooks.c (lang_GNU_C): New function.
174         (lang_GNU_CXX): Likewise.
175         * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
177 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
179         * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
180         OPTION_MASK_ISA_CLWB_SET): New.
181         (ix86_handle_option): Handle OPT_mclwb.
182         * config.gcc: Add clwbintrin.h.
183         * config/i386/clwbintrin.h: New file.
184         * config/i386/cpuid.h (bit_CLWB): Define.
185         * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
186         * config/i386/i386-c.c (ix86_target_macros_internal): Define
187         __CLWB__.
188         * config/i386/i386.c (ix86_target_string): Add -mclwb.
189         (PTA_CLWB): Define.
190         (ix86_option_override_internal): Handle new option.
191         (ix86_valid_target_attribute_inner_p): Add clwb.
192         (ix86_builtins): Add IX86_BUILTIN_CLWB.
193         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
194         (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
195         * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
196         * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
197         (clwb): New instruction.
198         * config/i386/i386.opt: Add mclwb.
199         * config/i386/x86intrin.h: Include clwbintrin.h.
201 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
203         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
204         OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
205         (ix86_handle_option): Handle OPT_mavx512vbmi.
206         * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
207         * config/i386/avx512vbmiintrin.h: New file.
208         * config/i386/avx512vbmivlintrin.h: Ditto.
209         * config/i386/cpuid.h (bit_AVX512VBMI): New.
210         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
211         * config/i386/i386-c.c (ix86_target_macros_internal): Define
212         __AVX512VBMI__.
213         * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
214         (PTA_AVX512VBMI): Define.
215         (ix86_option_override_internal): Handle new options.
216         (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
217         (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
218         IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
219         IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
220         IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
221         IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
222         IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
223         IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
224         IX86_BUILTIN_VPERMI2VARQI128.
225         (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
226         __builtin_ia32_vpmultishiftqb256_mask,
227         __builtin_ia32_vpmultishiftqb128_mask,
228         __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
229         __builtin_ia32_vpermt2varqi512_maskz,
230         __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
231         __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
232         __builtin_ia32_vpermt2varqi256_maskz,
233         __builtin_ia32_vpermt2varqi128_mask,
234         __builtin_ia32_vpermt2varqi128_maskz,
235         __builtin_ia32_vpermi2varqi256_mask,
236         __builtin_ia32_vpermi2varqi128_mask.
237         (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
238         * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
239         * config/i386/i386.opt: Add mavx512vbmi.
240         * config/i386/immintrin.h: Include avx512vbmiintrin.h,
241         avx512vbmivlintrin.h.
242         * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
243         (VI1_AVX512VL): New iterator.
244         (<avx512>_permvar<mode><mask_name>): Use it.
245         (<avx512>_vpermi2var<mode>3_maskz): Ditto.
246         (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
247         (<avx512>_vpermi2var<mode>3_mask): Ditto.
248         (<avx512>_vpermt2var<mode>3_maskz): Ditto.
249         (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
250         (<avx512>_vpermt2var<mode>3_mask): Ditto.
251         (vpmultishiftqb<mode><mask_name>): Ditto.
253 2014-11-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
255         PR rtl-optimization/63952
256         * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
257         * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
258         Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
260 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
262         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
263         OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
264         (ix86_handle_option): Handle OPT_mavx512ifma.
265         * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
266         * config/i386/avx512ifmaintrin.h: New file.
267         * config/i386/avx512ifmaivlntrin.h: Ditto.
268         * config/i386/cpuid.h (bit_AVX512IFMA): New.
269         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
270         avx512ifma.
271         * config/i386/i386-c.c (ix86_target_macros_internal): Define
272         __AVX512IFMA__.
273         * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
274         (PTA_AVX512IFMA): Define.
275         (ix86_option_override_internal): Handle new options.
276         (ix86_valid_target_attribute_inner_p): Add avx512ifma.
277         (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
278         IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
279         IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
280         IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
281         IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
282         IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
283         IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
284         (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
285         __builtin_ia32_vpmadd52luq512_maskz,
286         __builtin_ia32_vpmadd52huq512_mask,
287         __builtin_ia32_vpmadd52huq512_maskx,
288         __builtin_ia32_vpmadd52luq256_mask,
289         __builtin_ia32_vpmadd52luq256_maskz,
290         __builtin_ia32_vpmadd52huq256_mask,
291         __builtin_ia32_vpmadd52huq256_maskz,
292         __builtin_ia32_vpmadd52luq128_mask,
293         __builtin_ia32_vpmadd52luq128_maskz,
294         __builtin_ia32_vpmadd52huq128_mask,
295         __builtin_ia32_vpmadd52huq128_maskz,
296         * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
297         * config/i386/i386.opt: Add mavx512ifma.
298         * config/i386/immintrin.h: Include avx512ifmaintrin.h,
299         avx512ifmavlintrin.h.
300         * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
301         UNSPEC_VPMADD52HUQ.
302         (VPMADD52): New iterator.
303         (vpmadd52type): New attribute.
304         (vpamdd52huq<mode>_maskz): New.
305         (vpamdd52luq<mode>_maskz): Ditto.
306         (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
307         (vpamdd52<vpmadd52type><mode>_mask): Ditto.
309 2014-11-21  Alan Lawrence  <alan.lawrence@arm.com>
311         Revert:
312         2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
313         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
315 2014-11-21  Andrew Bennett  <andrew.bennett@imgtec.com>
317         * config/mips/mips.c (mips_process_sync_loop): Place a 
318         nop in the delay slot of the branch likely instruction.
319         (mips_output_sync_loop): Ensure mips_branch_likely is 
320         set before calling mips_output_sync_loop.
321         (mips_sync_loop_insns): Likewise.
323 2014-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
325         PR/target 63673
326         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
327         the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
328         double.
330 2014-11-21  Georg-Johann Lay  <avr@gjlay.de>
332         Forward-port from 2014-10-30 4_9-branch r216934
334         PR target/63633
335         * config/avr/avr-protos.h (regmask): New inline function.
336         (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
337         * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
338         (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
339         * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
340         (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
341         (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
342         * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
343         (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
344         (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
345         * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
346         (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
347         (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
348         (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
349         needed.
351 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
353         PR target/61137
354         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
355         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
357 2014-11-21  James Greenhalgh  <james.greenhalgh@arm.com>
359         * config/aarch64/aarch64-simd.md
360         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
361         output mnemonic and operands.
362         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
363         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
365 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
367         * config/i386/i386.c (ix86_option_override_internal): Increase
368         PARAM_MAX_COMPLETELY_PEELED_INSNS.
370 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
372         PR target/60451
373         * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
374         (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
375         replace for V16QI, V16HI and V32QI modes.
376         (ix86_expand_vec_perm_const_1): Add new expand.
378 2014-11-21  Nick Clifton  <nickc@redhat.com>
380         * config/rl78/rl78-real.md (movqi_from_es): New pattern.
381         * config/rl78/rl78.c (struct machine_function): Add uses_es field.
382         (rl78_expand_prologue): Save the ES register in interrupt handlers
383         that use it.
384         (rl78_expand_epilogue): Restore the ES register if necessary.
385         (rl78_start_function): Mention if the function uses the ES
386         register.
387         (rl78_lo16): Record the use of the ES register.
388         (transcode_memory_rtx): Likewise.
390 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
392         PR tree-optimization/61773
393         * tree-ssa-strlen.c (get_string_length): Don't assert
394         stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
396         PR target/63910
397         * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
398         modes wider than MAX_BITSIZE_MODE_ANY_INT.  If not using
399         CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
401 2014-11-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
403         * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
404         HOST_WIDE_INT_M1U instead of ~0.
405         (includes_rldicr_lshift_p): Likewise.
407 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
409         * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
410         we need to look into its operand to determine if it is a valid
411         address.
413 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
415         * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
416         vaarg_p argument and create correct CFI info.
417         (nds32_expand_prologue): Pass true or false to
418         nds32_emit_stack_push_multiple function.
420 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
422         * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
423         as RTX_FRAME_RELATED_P rtx.
425 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
427         * config/nds32/nds32.opt (march): Add help message.
429 2014-11-20  Patrick Palka  <ppalka@gcc.gnu.org>
431         * tree-vrp.c (test_for_singularity): New parameter
432         strict_overflow_p.  Set *strict_overflow_p to true if signed
433         overflow must be undefined for the return value to satisfy the
434         conditional.
435         (simplify_cond_using_ranges): Don't perform the simplification
436         if it violates overflow rules.
438 2014-11-20  Marek Polacek  <polacek@redhat.com>
440         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
442 2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
444         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
445         condition would be removed due to undefined behaviour.
447 2014-11-20  Andrew Pinski  <apinski@cavium.com>
449         PR ipa/63981
450         PR ipa/63982
451         * ipa-polymorphic-call.c (possible_placement_new):
452         Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
453         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
454         (extr_type_from_vtbl_ptr_store): Likewise.
456 2014-11-20  Markus Trippelsdorf  <markus@trippelsdorf.de>
458         * config/rs6000/constraints.md: Avoid signed integer overflows.
459         * config/rs6000/predicates.md: Likewise.
460         * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
461         (includes_rldic_lshift_p): Likewise.
462         (includes_rldicr_lshift_p): Likewise. 
463         * emit-rtl.c (const_wide_int_htab_hash): Likewise.
464         * loop-iv.c (determine_max_iter): Likewise.
465         (iv_number_of_iterations): Likewise.
466         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
467         * varasm.c (get_section_anchor): Likewise.
469 2014-11-20  Charles Baylis  <charles.baylis@linaro.org>
471         PR target/63870
472         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
473         expression to aarch64_simd_lane_bounds.
474         * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
475         prototype.
476         * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
477         call to aarch64_simd_lane_bounds.
478         (aarch64_get_lanedi): Likewise.
479         (aarch64_ld2_lane<mode>): Likewise.
480         (aarch64_ld3_lane<mode>): Likewise.
481         (aarch64_ld4_lane<mode>): Likewise.
482         (aarch64_im_lane_boundsi): Likewise.
483         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
484         parameter. Report calling function in error message if exp is non-NULL.
486 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
488         PR target/60111
489         * config/sh/sh.c: Use signed char for signed field.
491 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
493         * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
494         hash_table.
496 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
498         * ipa-utils.c, lto-section-in.c, lto-streamer.h,
499         tree-scalar-evolution.c: Replace htab with hash_table.
501 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
503         * lto-section-in.c (lto_delete_in_decl_state): Adjust.
504         (lto_free_function_in_decl_state): Likewise.
505         * lto-streamer-out.c (copy_function_or_variable): Likewise.
506         * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
507         (lto_file_decl_data_num_ ## name ## s): Likewise.
508         (struct lto_tree_ref_table): Remove.
509         (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
511 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
513         * hash-map.h (hash_map::iterator): New class.
514         (hash_map::begin): New method.
515         (hash_map::end): Likewise.
516         * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
517         replace splay_tree with hash_map.
519 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
521         * hash-table.h (hash_table::hash_table): Call alloc_entries.
522         (hash_table::alloc_entries): new method.
523         (hash_table::expand): Call alloc_entries.
524         (hash_table::empty): Likewise.
526 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
528         * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
529         tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
531 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
533         * doc/gty.texi: Document the new cache gty attribute.
534         * gengtype.c (finish_cache_funcs): New function.
535         (write_roots): Call gt_clear_cache on global variables with the cache
536         gty attribute.
537         * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
538         * ggc.h (gt_clear_caches): New declaration.
539         * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
540         memory.
541         (gt_cleare_cache): New function.
542         * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
544 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
546         * combine.c (try_combine): Prefer to delete dead SETs inside
547         a PARALLEL over keeping them.
549 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
551         * combine.c (combine_validate_cost): Always print the insn costs
552         to the dump file.
554 2014-11-20  Richard Henderson <rth@redhat.com>
556         PR target/63977
557         * config/i386/i386.c (ix86_static_chain): Reinstate the check
558         for DECL_STATIC_CHAIN.
560 2014-11-20  Tejas Belagod  <tejas.belagod@arm.com>
562         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
563         Fixup prototype.
564         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
565         aarch64_cannot_force_const_mem, aarch64_classify_address,
566         aarch64_classify_symbolic_expression): Fixup call to
567         aarch64_classify_symbol.
568         (aarch64_classify_symbol): Add range-checking for
569         symbol + offset addressing for tiny and small models.
571 2014-11-20  Richard Biener  <rguenther@suse.de>
573         PR middle-end/63962
574         * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
575         Guard with single-use operand 0.
577 2014-11-20   Richard Biener  <rguenther@suse.de>
579         PR tree-optimization/63677
580         * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
581         (avail_exprs_stack): Make a vector of pairs.
582         (struct hash_expr_elt): Replace stmt member with vop member.
583         (expr_elt_hasher::equal): Simplify.
584         (initialize_hash_element): Adjust.
585         (initialize_hash_element_from_expr): Likewise.
586         (dom_opt_dom_walker::thread_across_edge): Likewise.
587         (record_cond): Likewise.
588         (dom_opt_dom_walker::before_dom_children): Likewise.
589         (print_expr_hash_elt): Likewise.
590         (remove_local_expressions_from_table): Restore previous state
591         if requested.
592         (record_equivalences_from_stmt): Record &x + CST as constant
593         &MEM[&x, CST] for further propagation.
594         (vuse_eq): New function.
595         (lookup_avail_expr): For loads use the alias oracle to see
596         whether a candidate from the expr hash is usable.
597         (avail_expr_hash): Do not hash VUSEs.
599 2014-11-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
601         PR target/59593
602         * config/arm/arm.md (*movhi_insn): Use right formatting
603         for immediate.
605 2014-11-20  Igor Zamyatin  <igor.zamyatin@intel.com>
607         PR sanitizer/63845
608         * function.c (assign_parms): Move init of pic_offset_table_rtx
609         from here to...
610         * cfgexpand.c (expand_used_vars): ...here.
612 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
614         * tree.c (free_lang_data_in_type): If BINFO has no important
615         information in it, set it to NULL.
616         (get_binfo_at_offset): Do not walk fields, only bases.
617         * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
618         to be NULL.
619         * ipa-polymorphic-call.c (record_known_type): Likewise.
621 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
623         PR jit/63854
624         * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
625         congruence_class_group *.
627 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
629         PR target/63947
630         * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
631         Output "b" and "nb" suffix for FP mode.
633 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
635         PR bootstrap/63963
636         * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
637         DECL_FUNCTION_SPECIFIC_TARGET
638         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
639         DECL_FUNCTION_SPECIFIC_TARGET.
641 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
643         PR jit/63854
644         * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
646 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
648         PR jit/63854
649         * lra.c (lra): After creating live ranges in preparation for call
650         to lra_inheritance, set live_p to true.
652 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
654         PR jit/63854
655         * tree-ssa-threadedge.c (thread_across_edge): Don't just release
656         "path", delete it.
657         * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
659 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
661         PR jit/63854
662         * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
663         vec<> to auto_vec<> to fix a leak.
665 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
667         PR jit/63854
668         * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
670 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
672         PR jit/63854
673         * ira-costs.c (ira_costs_c_finalize): New function.
674         * ira.h (ira_costs_c_finalize): New prototype.
675         * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
677 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
679         PR jit/63854
680         * ipa-reference.c (ipa_reference_c_finalize): Release
681         optimization_summary_obstack.
683 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
685         PR jit/63854
686         * toplev.c (toplev::finalize): Free opts_obstack.
688 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
690         PR jit/63854
691         * toplev.c (toplev::finalize): Clean up save_decoded_options.
693 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
695         PR jit/63854
696         * bb-reorder.c
697         (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
698         local bbs_in_hot_partition from vec<> to auto_vec<>.
700 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
702         PR jit/63854
703         * config/alpha/alpha.c (alpha_option_override): Remove static from
704         "handle_trap_shadows_info" and "align_insns_info".
705         * config/i386/i386.c (ix86_option_override): Likewise for
706         "insert_vzeroupper_info".
707         * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
708         "rl78_devirt_info" and "rl78_move_elim_info".
709         * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
710         "analyze_swaps_info".
711         * context.c (gcc::context::~context): New.
712         * context.h (gcc::context::~context): New.
713         * dumpfile.c (dump_files): Add "false" initializers for new field
714         "owns_strings".
715         (gcc::dump_manager::~dump_manager): New.
716         (gcc::dump_manager::dump_register): Add param "take_ownership".
717         * dumpfile.h (struct dump_file_info): Add field "owns_strings".
718         (gcc::dump_manager::~dump_manager): New.
719         (gcc::dump_manager::dump_register): Add param "take_ownership".
720         * pass_manager.h (gcc::pass_manager::operator delete): New.
721         (gcc::pass_manager::~pass_manager): New.
722         * passes.c (pass_manager::register_one_dump_file): Pass "true" to
723         new "owns_strings" argument to dump_register.
724         (pass_manager::operator delete): New.
725         (delete_pass_tree): New function.
726         (pass_manager::~pass_manager): New.
727         * statistics.c (statistics_early_init): Pass "false" to
728         new "owns_strings" argument to dump_register.
729         * toplev.c (toplev::finalize): Clean up the context and thus the
730         things it owns.
732 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
734         PR jit/63854
735         * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
736         obstack_free when cleaning up valid_mode_changes_obstack.
738 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
740         PR jit/63854
741         * opts.c (finalize_options_struct): New.
742         * opts.h (finalize_options_struct): New.
743         * toplev.c (toplev::finalize): Call finalize_options_struct
744         on global_options and global_options_set.
746 2014-11-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
747             Jakub Jelinek  <jakub@redhat.com>
749         PR driver/36312
750         PR driver/63837
751         * gcc.c (process_command): Don't check for input/output
752         filename equality if output is HOST_BIT_BUCKET.
753         * toplev.c (init_asm_output): Likewise.
755 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
757         Merger of git branch "gimple-classes-v2-option-3".
759         * ChangeLog.gimple-classes: New.
761         * coretypes.h (struct gcond): Add forward decl.
762         (struct gdebug): Likewise.
763         (struct ggoto): Likewise.
764         (struct glabel): Likewise.
765         (struct gswitch): Likewise.
766         (struct gassign): Likewise.
767         (struct gasm): Likewise.
768         (struct gcall): Likewise.
769         (struct gtransaction): Likewise.
770         (struct greturn): Likewise.
771         (struct gbind): Likewise.
772         (struct gcatch): Likewise.
773         (struct geh_filter): Likewise.
774         (struct geh_mnt): Likewise.
775         (struct geh_else): Likewise.
776         (struct gresx): Likewise.
777         (struct geh_dispatch): Likewise.
778         (struct gphi): Likewise.
779         (struct gtry): Likewise.
780         (struct gomp_atomic_load): Likewise.
781         (struct gomp_atomic_store): Likewise.
782         (struct gomp_continue): Likewise.
783         (struct gomp_critical): Likewise.
784         (struct gomp_for): Likewise.
785         (struct gomp_parallel): Likewise.
786         (struct gomp_task): Likewise.
787         (struct gomp_sections): Likewise.
788         (struct gomp_single): Likewise.
789         (struct gomp_target): Likewise.
790         (struct gomp_teams): Likewise.
792         * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
793         for renaming of gimple subclasses.
795         * gdbhooks.py: Update.
797         * gimple-iterator.c (gsi_for_phi): New.
798         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
799         to gphi_iterator.
800         * gimple-iterator.h (struct gphi_iterator): New subclass of
801         gimple_stmt_iterator.
802         (gsi_for_phi): New prototype.
803         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
804         to gphi_iterator.
805         (gsi_next_nonvirtual_phi): Strengthen param from
806         gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
807         gimple to gphi *.
809         * gsstruct.def: Update for renamings of classes.
811         * gimple.c (gimple_build_return): Strengthen return type from
812         gimple to greturn *.
813         (gimple_call_reset_alias_info): Strengthen param to gcall *.
814         (gimple_build_call_1): Strengthen return type from gimple to
815         gcall *.
816         (gimple_build_call_vec): Likewise.
817         (gimple_build_call): Likewise.
818         (gimple_build_call_valist): Likewise.
819         (gimple_build_call_internal_1): Likewise.
820         (gimple_build_call_internal): Likewise.
821         (gimple_build_call_internal_vec): Likewise.
822         (gimple_build_call_from_tree): Likewise.
823         (gimple_build_assign_stat): Strengthen return type from gimple to
824         gassign *.
825         (gimple_build_assign_with_ops): Likewise.
826         (gimple_build_assign_with_ops): Likewise.
827         (gimple_build_cond): Strengthen return type from gimple to
828         gcond *.
829         (gimple_build_cond_from_tree): Likewise.
830         (gimple_cond_set_condition_from_tree): Require a gcond *.
831         (gimple_build_label): Strengthen return type from gimple to
832         glabel *.
833         (gimple_build_goto): Strengthen return type from gimple to
834         ggoto *.
835         (gimple_build_bind): Strengthen return type from gimple to
836         gbind *.
837         (gimple_build_asm_1): Strengthen return type from gimple to
838         gasm *.
839         (gimple_build_asm_vec): Likewise.
840         (gimple_build_catch): Strengthen return type from gimple to
841         gcatch *.
842         (gimple_build_eh_filter): Strengthen return type from gimple to
843         geh_filter *.
844         (gimple_build_eh_must_not_throw): Strengthen return type from
845         gimple to geh_mnt *.
846         (gimple_build_eh_else): Strengthen return type from gimple to
847         geh_else *.
848         (gimple_build_try): Update for renaming of gimple_statement_try to
849         gtry.
850         (gimple_build_resx): Strengthen return type from gimple to
851         gresx *.
852         (gimple_build_switch_nlabels): Strengthen return type from gimple
853         to gswitch *.
854         (gimple_build_switch): Likewise.
855         (gimple_build_eh_dispatch): Strengthen return type from gimple to
856         geh_dispatch *.
857         (gimple_build_debug_bind_stat): Strengthen return type from gimple
858         to gdebug *.
859         (gimple_build_debug_source_bind_stat): Strengthen return type from
860         gimple to gdebug *.
861         (gimple_build_omp_critical): Strengthen return type from gimple to
862         gomp_critical *.
863         (gimple_build_omp_for): Strengthen return type from gimple to
864         gomp_for *.
865         (gimple_build_omp_parallel): Strengthen return type from gimple to
866         gomp_parallel *.
867         (gimple_build_omp_task): Strengthen return type from gimple to
868         gomp_task *.
869         (gimple_build_omp_continue): Strengthen return type from gimple to
870         gomp_continue *.
871         (gimple_build_omp_sections): Strengthen return type from gimple to
872         gomp_sections *.
873         (gimple_build_omp_single): Strengthen return type from gimple to
874         gomp_single *.
875         (gimple_build_omp_target): Strengthen return type from gimple to
876         gomp_target *.
877         (gimple_build_omp_teams): Strengthen return type from gimple to
878         gomp_teams *.
879         (gimple_build_omp_atomic_load): Strengthen return type from gimple
880         to gomp_atomic_load *.
881         (gimple_build_omp_atomic_store): Strengthen return type from gimple
882         to gomp_atomic_store *.
883         (gimple_build_transaction): Strengthen return type from gimple
884         to gtransaction *.
885         (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
886         (gimple_call_fnspec): Require a const gcall *.
887         (gimple_call_arg_flags): Likewise.
888         (gimple_call_return_flags): Likewise.
889         (gimple_set_bb): Add a checked cast.
890         (gimple_copy): Within the cases, add locals of the appropriate
891         subclass and use in place of "stmt" and "copy" for typesafety.
892         (gimple_has_side_effects): Add a checked cast.
893         (gimple_could_trap_p_1): Likewise.
894         (gimple_call_copy_skip_args): Require a gcall *, and return one.
895         (gimple_asm_clobbers_memory_p): Require a const gasm *.
896         (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
897         dyn_cast, introducing local "return_stmt" and using ti in place
898         of "stmt".
900         * gimple.h (gimple_vec): Eliminate this typedef.
901         (struct gimple_statement_call): Rename to...
902         (struct gcall): ...this.
903         (struct gimple_statement_bind): Rename to...
904         (struct gbind): ...this.
905         (struct gimple_statement_catch): Rename to...
906         (struct gcatch): ...this.
907         (struct gimple_statement_eh_filter): Rename to...
908         (struct geh_filter): ...this.
909         (struct gimple_statement_eh_else): Rename to...
910         (struct geh_else): ...this.
911         (struct gimple_statement_eh_mnt): Rename to...
912         (struct geh_mnt): ...this.
913         (struct gimple_statement_phi): Rename to...
914         (struct gphi): ...this.
915         (struct gimple_statement_resx): Rename to...
916         (struct gresx): ...this.
917         (struct gimple_statement_eh_dispatch): Rename to...
918         (struct geh_dispatch): ...this.
919         (struct gimple_statement_try): Rename to...
920         (struct gtry): ...this.
921         (struct gimple_statement_asm): Rename to...
922         (struct gasm): ...this.
923         (struct gimple_statement_omp_critical): Rename to...
924         (struct gomp_critical): ...this.
925         (struct gimple_statement_omp_for): Rename to...
926         (struct gomp_for): ...this.
927         (struct gimple_statement_omp_parallel): Rename to...
928         (struct gomp_parallel): ...this.
929         (struct gimple_statement_omp_target): Rename to...
930         (struct gomp_target): ...this.
931         (struct gimple_statement_omp_task): Rename to...
932         (struct gomp_task): ...this.
933         (struct gimple_statement_omp_sections): Rename to...
934         (struct gomp_sections): ...this.
935         (struct gimple_statement_omp_continue): Rename to...
936         (struct gomp_continue): ...this.
937         (struct gimple_statement_omp_single): Rename to...
938         (struct gomp_single): ...this.
939         (struct gimple_statement_omp_teams): Rename to...
940         (struct gomp_teams): ...this.
941         (struct gimple_statement_omp_atomic_load): Rename to...
942         (struct gomp_atomic_load): ...this.
943         (struct gimple_statement_omp_atomic_store :): Rename to...
944         (struct gomp_atomic_store :): ...this.
945         (struct gimple_statement_transaction): Rename to...
946         (struct gtransaction): ...this.
947         (struct gcond): New subclass.
948         (struct gdebug): New subclass.
949         (struct ggoto): New subclass.
950         (struct glabel): New subclass.
951         (struct gswitch): New subclass.
952         (struct gassign): New subclass.
953         (struct greturn): New subclass.
954         (is_a_helper <gimple_statement_asm *>::test): Rename to...
955         (is_a_helper <gasm *>::test): ...this.
956         (is_a_helper <gimple_statement_bind *>::test): Rename to...
957         (is_a_helper <gbind *>::test): ...this.
958         (is_a_helper <gassign *>::test): New.
959         (is_a_helper <gimple_statement_call *>::test): Rename to...
960         (is_a_helper <gcall *>::test): ...this.
961         (is_a_helper <gimple_statement_catch *>::test): Rename to...
962         (is_a_helper <gcatch *>::test): ...this.
963         (is_a_helper <gimple_statement_resx *>::test): Rename to...
964         (is_a_helper <gresx *>::test): ...this.
965         (is_a_helper <gcond *>::test): New.
966         (is_a_helper <gdebug *>::test): New.
967         (is_a_helper <ggoto *>::test): New.
968         (is_a_helper <glabel *>::test): New.
969         (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
970         (is_a_helper <geh_dispatch *>::test): ...this.
971         (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
972         (is_a_helper <geh_else *>::test): ...this.
973         (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
974         (is_a_helper <geh_filter *>::test): ...this.
975         (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
976         (is_a_helper <geh_mnt *>::test): ...this.
977         (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
978         (is_a_helper <gomp_atomic_load *>::test): ...this.
979         (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
980         (is_a_helper <gomp_atomic_store *>::test): ...this.
981         (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
982         (is_a_helper <gomp_continue *>::test): ...this.
983         (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
984         (is_a_helper <gomp_critical *>::test): ...this.
985         (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
986         (is_a_helper <gomp_for *>::test): ...this.
987         (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
988         (is_a_helper <gomp_parallel *>::test): ...this.
989         (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
990         (is_a_helper <gomp_target *>::test): ...this.
991         (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
992         (is_a_helper <gomp_sections *>::test): ...this.
993         (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
994         (is_a_helper <gomp_single *>::test): ...this.
995         (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
996         (is_a_helper <gomp_teams *>::test): ...this.
997         (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
998         (is_a_helper <gomp_task *>::test): ...this.
999         (is_a_helper <gimple_statement_phi *>::test): Rename to...
1000         (is_a_helper <gphi *>::test): ...this.
1001         (is_a_helper <gimple_statement_transaction *>::test): Rename to...
1002         (is_a_helper <gtransaction *>::test): ...this.
1003         (is_a_helper <greturn *>::test): New.
1004         (is_a_helper <gswitch *>::test): New.
1005         (is_a_helper <gimple_statement_try *>::test): Rename to...
1006         (is_a_helper <gtry *>::test): ...this.
1007         (is_a_helper <const gimple_statement_asm *>::test): Rename to...
1008         (is_a_helper <const gasm *>::test): ...this.
1009         (is_a_helper <const gimple_statement_bind *>::test): Rename to...
1010         (is_a_helper <const gbind *>::test): ...this.
1011         (is_a_helper <const gimple_statement_call *>::test): Rename to...
1012         (is_a_helper <const gcall *>::test): ...this.
1013         (is_a_helper <const gimple_statement_catch *>::test): Rename to...
1014         (is_a_helper <const gcatch *>::test): ...this.
1015         (is_a_helper <const gimple_statement_resx *>::test): Rename to...
1016         (is_a_helper <const gresx *>::test): ...this.
1017         (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
1018         (is_a_helper <const geh_dispatch *>::test): ...this.
1019         (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
1020         (is_a_helper <const geh_filter *>::test): ...this.
1021         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
1022         Rename to...
1023         (is_a_helper <const gomp_atomic_load *>::test): ...this.
1024         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
1025         Rename to...
1026         (is_a_helper <const gomp_atomic_store *>::test): ...this.
1027         (is_a_helper <const gimple_statement_omp_continue *>::test):
1028         Rename to...
1029         (is_a_helper <const gomp_continue *>::test): ...this.
1030         (is_a_helper <const gimple_statement_omp_critical *>::test):
1031         Rename to...
1032         (is_a_helper <const gomp_critical *>::test): ...this.
1033         (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
1034         (is_a_helper <const gomp_for *>::test): ...this.
1035         (is_a_helper <const gimple_statement_omp_parallel *>::test):
1036         Rename to...
1037         (is_a_helper <const gomp_parallel *>::test): ...this.
1038         (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
1039         (is_a_helper <const gomp_target *>::test): ...this.
1040         (is_a_helper <const gimple_statement_omp_sections *>::test):
1041         Rename to...
1042         (is_a_helper <const gomp_sections *>::test): ...this.
1043         (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
1044         (is_a_helper <const gomp_single *>::test): ...this.
1045         (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
1046         (is_a_helper <const gomp_teams *>::test): ...this.
1047         (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
1048         (is_a_helper <const gomp_task *>::test): ...this.
1049         (is_a_helper <const gimple_statement_phi *>::test): Rename to...
1050         (is_a_helper <const gphi *>::test): ...this.
1051         (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
1052         (is_a_helper <const gtransaction *>::test): ...this.
1053         (gimple_build_return): Strengthen return type to greturn *.
1054         (gimple_call_reset_alias_info): Require a gcall *.
1055         (gimple_build_call_vec): Return a gcall *.
1056         (gimple_build_call): Likewise.
1057         (gimple_build_call_valist): Likewise.
1058         (gimple_build_call_internal): Likewise.
1059         (gimple_build_call_internal_vec): Likewise.
1060         (gimple_build_call_from_tree): Likewise.
1061         (gimple_build_assign_stat): Return a gassign *.
1062         (gimple_build_assign_with_ops): Likewise.
1063         (gimple_build_cond): Return a gcond *.
1064         (gimple_build_cond_from_tree): Likewise.
1065         (gimple_cond_set_condition_from_tree): Require a gcond *.
1066         (gimple_build_label): Return a glabel *.
1067         (gimple_build_goto): Return a ggoto *.
1068         (gimple_build_bind): Return a gbind *.
1069         (gimple_build_asm_vec): Return a gasm *.
1070         (gimple_build_catch): Return a gcatch *.
1071         (gimple_build_eh_filter): Return a geh_filter *.
1072         (gimple_build_eh_must_not_throw): Return a geh_mnt *.
1073         (gimple_build_eh_else): Return a geh_else *.
1074         (gimple_build_try): Return a gtry *.
1075         (gimple_build_resx): Return a gresx *.
1076         (gimple_build_switch_nlabels): Return a gswitch *.
1077         (gimple_build_switch): Return a gswitch *.
1078         (gimple_build_eh_dispatch): Return a geh_dispatch *.
1079         (gimple_build_debug_bind_stat): Return a gdebug *.
1080         (gimple_build_debug_source_bind_stat): Return a gdebug *.
1081         (gimple_build_omp_critical): Return a gomp_critical *.
1082         (gimple_build_omp_for): Return a gomp_for *.
1083         (gimple_build_omp_parallel): Return a gomp_parallel *.
1084         (gimple_build_omp_task): Return a gomp_task *.
1085         (gimple_build_omp_continue): Return a gomp_continue *.
1086         (gimple_build_omp_sections): Return a gomp_sections *.
1087         (gimple_build_omp_single): Return a gomp_single *.
1088         (gimple_build_omp_target): Return a gomp_target *.
1089         (gimple_build_omp_teams): Return a gomp_teams *.
1090         (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
1091         (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
1092         (gimple_build_transaction): Return a gtransaction *.
1093         (gimple_call_arg_flags): Require a const gcall *.
1094         (gimple_call_return_flags): Likewise.
1095         (gimple_call_copy_skip_args): Require and return a gcall *.
1096         (gimple_asm_clobbers_memory_p): Require a const gasm *.
1097         (gimple_seq_first_stmt_as_a_bind): New.
1098         (gimple_assign_nontemporal_move_p): Require a const gassign *
1099         rather than a const_gimple.
1100         (gimple_call_internal_fn): Update for renaming to gcall.
1101         (gimple_call_fntype): Likewise.
1102         (gimple_call_set_fntype): Require a gcall * rather than a gimple.
1103         (gimple_call_set_fn): Likewise.
1104         (gimple_call_set_internal_fn): Likewise.
1105         (gimple_call_set_chain): Likewise.
1106         (gimple_call_set_tail): Likewise.
1107         (gimple_call_tail_p): Likewise.
1108         (gimple_call_set_return_slot_opt): Likewise.
1109         (gimple_call_return_slot_opt_p): Likewise.
1110         (gimple_call_set_from_thunk): Likewise.
1111         (gimple_call_from_thunk_p): Likewise.
1112         (gimple_call_set_va_arg_pack): Likewise.
1113         (gimple_call_va_arg_pack_p): Likewise.
1114         (gimple_call_set_nothrow): Likewise.
1115         (gimple_call_nothrow_p): Likewise.
1116         (gimple_call_set_alloca_for_var): Likewise.
1117         (gimple_call_alloca_for_var_p): Likewise.
1118         (gimple_call_use_set): Likewise.
1119         (gimple_call_clobber_set): Likewise.
1120         (gimple_call_return_type): Require a const gcall * rather than a
1121         const_gimple.
1122         (gimple_call_chain_ptr): Likewise.
1123         (gimple_call_copy_flags): Require a pair of gcall *.
1124         (gimple_cond_set_code): Require a gcond * rather than a gimple
1125         (gimple_cond_set_lhs): Likewise.
1126         (gimple_cond_set_rhs): Likewise.
1127         (gimple_cond_set_true_label): Likewise.
1128         (gimple_cond_set_false_label): Likewise.
1129         (gimple_cond_make_false): Likewise.
1130         (gimple_cond_make_true): Likewise.
1131         (gimple_cond_lhs_ptr): Require a const gcond * rather than a
1132         const_gimple.
1133         (gimple_cond_rhs_ptr): Likewise.
1134         (gimple_cond_true_label): Likewise.
1135         (gimple_cond_false_label): Likewise.
1136         (gimple_cond_true_p): Likewise.
1137         (gimple_cond_false_p): Likewise.
1138         (gimple_cond_set_condition): Likewise.
1139         (gimple_label_label): Require a const glabel *.
1140         (gimple_label_set_label): Require a glabel *.
1141         (gimple_goto_set_dest): Require a ggoto *.
1142         (gimple_bind_vars): Require a const gbind *.
1143         (gimple_bind_block): Likewise.
1144         (gimple_bind_set_vars): Require a gbind *.
1145         (gimple_bind_append_vars): Likewise.
1146         (gimple_bind_body_ptr): Likewise.
1147         (gimple_bind_body): Likewise.
1148         (gimple_bind_set_body): Likewise.
1149         (gimple_bind_add_stmt): Likewise.
1150         (gimple_bind_add_seq): Likewise.
1151         (gimple_bind_set_block): Likewise.
1152         (gimple_asm_ninputs): Require a const gasm *.
1153         (gimple_asm_noutputs): Likewise.
1154         (gimple_asm_nclobbers): Likewise.
1155         (gimple_asm_nlabels): Likewise.
1156         (gimple_asm_input_op): Likewise.
1157         (gimple_asm_input_op_ptr): Likewise.
1158         (gimple_asm_output_op): Likewise.
1159         (gimple_asm_output_op_ptr): Likewise.
1160         (gimple_asm_clobber_op): Likewise.
1161         (gimple_asm_label_op): Likewise.
1162         (gimple_asm_string): Likewise.
1163         (gimple_asm_volatile_p): Likewise.
1164         (gimple_asm_input_p): Likewise.
1165         (gimple_asm_set_input_op): Require a gasm *.
1166         (gimple_asm_set_output_op): Likewise.
1167         (gimple_asm_set_clobber_op): Likewise.
1168         (gimple_asm_set_label_op): Likewise.
1169         (gimple_asm_set_volatile): Likewise.
1170         (gimple_asm_set_input): Likewise.
1171         (gimple_catch_types): Require a const gcatch *.
1172         (gimple_catch_types_ptr): Require a gcatch *.
1173         (gimple_catch_handler_ptr): Likewise.
1174         (gimple_catch_handler): Likewise.
1175         (gimple_catch_set_types): Likewise.
1176         (gimple_catch_set_handler): Likewise.
1177         (gimple_eh_filter_types): Update for renaming of subclass to
1178         geh_filter.
1179         (gimple_eh_filter_types_ptr): Likewise.
1180         (gimple_eh_filter_failure_ptr): Likewise.
1181         (gimple_eh_filter_set_types): Require a geh_filter *.
1182         (gimple_eh_filter_set_failure): Likewise.
1183         (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
1184         (gimple_eh_must_not_throw_set_fndecl): Likewise.
1185         (gimple_eh_else_n_body_ptr): Require a geh_else *.
1186         (gimple_eh_else_n_body): Likewise.
1187         (gimple_eh_else_e_body_ptr): Likewise.
1188         (gimple_eh_else_e_body): Likewise.
1189         (gimple_eh_else_set_n_body): Likewise.
1190         (gimple_eh_else_set_e_body): Likewise.
1191         (gimple_try_set_kind): Require a gtry *.
1192         (gimple_try_set_catch_is_cleanup): Likewise.
1193         (gimple_try_set_eval): Likewise.
1194         (gimple_try_set_cleanup): Likewise.
1195         (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
1196         (gimple_try_cleanup_ptr): Likewise.
1197         (gimple_phi_capacity): Update for renaming of subclass to gphi.
1198         (gimple_phi_num_args): Likewise.
1199         (gimple_phi_result): Likewise.
1200         (gimple_phi_result_ptr): Likewise.
1201         (gimple_phi_arg): Likewise.
1202         (gimple_phi_set_result): Require a gphi *.
1203         (gimple_phi_set_arg): Likewise.
1204         (gimple_phi_arg_def_ptr): Likewise.
1205         (gimple_phi_arg_edge): Likewise.
1206         (gimple_phi_arg_location): Likewise.
1207         (gimple_phi_arg_location_from_edge): Likewise.
1208         (gimple_phi_arg_set_location): Likewise.
1209         (gimple_phi_arg_has_location): Likewise.
1210         (gimple_resx_region): Require a const gresx *.
1211         (gimple_resx_set_region): Require a gresx *.
1212         (gimple_eh_dispatch_region): Require a const geh_dispatch *.
1213         (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
1214         (gimple_switch_num_labels): Require a const gswitch *.
1215         (gimple_switch_set_num_labels): Likewise.
1216         (gimple_switch_index): Likewise.
1217         (gimple_switch_index_ptr): Likewise.
1218         (gimple_switch_label): Likewise.
1219         (gimple_switch_default_label): Likewise.
1220         (gimple_switch_set_index): Require a gswitch *.
1221         (gimple_switch_set_label): Likewise.
1222         (gimple_switch_set_default_label): Likewise.
1223         (gimple_omp_critical_name): Require a const gomp_critical *.
1224         (gimple_omp_critical_name_ptr): Require a gomp_critical *.
1225         (gimple_omp_critical_set_name): Likewise.
1226         (gimple_omp_for_set_kind): Require a gomp_for *.
1227         (gimple_omp_for_set_combined_p): Likewise.
1228         (gimple_omp_for_set_combined_into_p): Likewise.
1229         (gimple_omp_for_clauses): Update for renaming of subclass to
1230         gomp_for.
1231         (gimple_omp_for_clauses_ptr): Likewise.
1232         (gimple_omp_for_set_clauses): Likewise.
1233         (gimple_omp_for_collapse): Likewise.
1234         (gimple_omp_for_index): Likewise.
1235         (gimple_omp_for_index_ptr): Likewise.
1236         (gimple_omp_for_set_index): Likewise.
1237         (gimple_omp_for_initial): Likewise.
1238         (gimple_omp_for_initial_ptr): Likewise.
1239         (gimple_omp_for_set_initial): Likewise.
1240         (gimple_omp_for_final): Likewise.
1241         (gimple_omp_for_final_ptr): Likewise.
1242         (gimple_omp_for_set_final): Likewise.
1243         (gimple_omp_for_incr): Likewise.
1244         (gimple_omp_for_incr_ptr): Likewise.
1245         (gimple_omp_for_set_incr): Likewise.
1246         (gimple_omp_for_pre_body): Likewise.
1247         (gimple_omp_for_set_pre_body): Likewise.
1248         (gimple_omp_parallel_clauses): Update for renaming of subclass to
1249         gomp_parallel.
1250         (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
1251         (gimple_omp_parallel_set_clauses): Likewise.
1252         (gimple_omp_parallel_child_fn_ptr): Likewise.
1253         (gimple_omp_parallel_set_child_fn): Likewise.
1254         (gimple_omp_parallel_data_arg_ptr): Likewise.
1255         (gimple_omp_parallel_set_data_arg): Likewise.
1256         (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
1257         (gimple_omp_parallel_data_arg): Likewise.
1258         (gimple_omp_task_clauses): Update for renaming of subclass to
1259         gomp_task.
1260         (gimple_omp_task_clauses_ptr): Likewise.
1261         (gimple_omp_task_set_clauses): Likewise.
1262         (gimple_omp_task_child_fn): Likewise.
1263         (gimple_omp_task_child_fn_ptr): Likewise.
1264         (gimple_omp_task_set_child_fn): Likewise.
1265         (gimple_omp_task_data_arg): Likewise.
1266         (gimple_omp_task_data_arg_ptr): Likewise.
1267         (gimple_omp_task_set_data_arg): Likewise.
1268         (gimple_omp_taskreg_clauses): Whitespace fixes.
1269         (gimple_omp_taskreg_clauses_ptr): Likewise.
1270         (gimple_omp_taskreg_set_clauses): Likewise.
1271         (gimple_omp_taskreg_child_fn): Likewise.
1272         (gimple_omp_taskreg_child_fn_ptr): Likewise.
1273         (gimple_omp_taskreg_set_child_fn): Likewise.
1274         (gimple_omp_taskreg_data_arg): Likewise.
1275         (gimple_omp_taskreg_data_arg_ptr): Likewise.
1276         (gimple_omp_taskreg_set_data_arg): Likewise.
1277         (gimple_omp_task_copy_fn): Update for renaming of subclass to
1278         gomp_task.
1279         (gimple_omp_task_copy_fn_ptr): Likewise.
1280         (gimple_omp_task_set_copy_fn): Likewise.
1281         (gimple_omp_task_arg_size): Likewise.
1282         (gimple_omp_task_arg_size_ptr): Likewise.
1283         (gimple_omp_task_set_arg_size): Likewise.
1284         (gimple_omp_task_arg_align): Likewise.
1285         (gimple_omp_task_arg_align_ptr): Likewise.
1286         (gimple_omp_task_set_arg_align): Likewise.
1287         (gimple_omp_single_clauses): Update for renaming of subclass to
1288         gomp_single.
1289         (gimple_omp_single_clauses_ptr): Likewise.
1290         (gimple_omp_single_set_clauses): Likewise.
1291         (gimple_omp_target_clauses): Update for renaming of subclass to
1292         gomp_target.
1293         (gimple_omp_target_clauses_ptr): Likewise.
1294         (gimple_omp_target_set_clauses): Require a gomp_target *.
1295         (gimple_omp_target_set_kind): Likewise.
1296         (gimple_omp_target_child_fn_ptr): Likewise.
1297         (gimple_omp_target_set_child_fn): Likewise.
1298         (gimple_omp_target_data_arg_ptr): Likewise.
1299         (gimple_omp_target_set_data_arg): Likewise.
1300         (gimple_omp_target_child_fn): Require a const gomp_target *.
1301         (gimple_omp_target_data_arg): Likewise.
1302         (gimple_omp_teams_clauses): Update for renaming of subclass to
1303         gomp_teams.
1304         (gimple_omp_teams_clauses_ptr): Likewise.
1305         (gimple_omp_teams_set_clauses): Require a gomp_teams *.
1306         (gimple_omp_sections_clauses): Update for renaming of subclass to
1307         gomp_sections.
1308         (gimple_omp_sections_clauses_ptr): Likewise.
1309         (gimple_omp_sections_set_clauses): Likewise.
1310         (gimple_omp_sections_control): Likewise.
1311         (gimple_omp_sections_control_ptr): Likewise.
1312         (gimple_omp_sections_set_control): Likewise.
1313         (gimple_omp_for_set_cond): Likewise.
1314         (gimple_omp_for_cond): Likewise.
1315         (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
1316         (gimple_omp_atomic_store_val_ptr): Likewise.
1317         (gimple_omp_atomic_load_set_lhs): Likewise.
1318         (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
1319         (gimple_omp_atomic_load_lhs): Likewise.
1320         (gimple_omp_atomic_load_rhs): Likewise.
1321         (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
1322         (gimple_omp_atomic_load_set_rhs): Likewise.
1323         (gimple_omp_atomic_load_rhs_ptr): Likewise.
1324         (gimple_omp_continue_control_def): Require a const gomp_continue *.
1325         (gimple_omp_continue_control_use): Likewise.
1326         (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
1327         (gimple_omp_continue_set_control_def): Likewise.
1328         (gimple_omp_continue_control_use_ptr): Likewise.
1329         (gimple_omp_continue_set_control_use): Likewise.
1330         (gimple_transaction_body_ptr): Require a gtransaction *.
1331         (gimple_transaction_body): Likewise.
1332         (gimple_transaction_label_ptr): Likewise.
1333         (gimple_transaction_label): Require a const gtransaction *.
1334         (gimple_transaction_subcode): Likewise.
1335         (gimple_transaction_set_body): Require a gtransaction *.
1336         (gimple_transaction_set_label): Likewise.
1337         (gimple_transaction_set_subcode): Likewise.
1338         (gimple_return_retval_ptr): Require a const greturn *.
1339         (gimple_return_retval): Likewise.
1340         (gimple_return_set_retval): Require a greturn *.
1341         (gimple_expr_type): Introduce local "call_stmt" and use in place of
1342         "stmt" for typesafety.
1344         * asan.c: Use gimple subclasses.
1345         * auto-profile.c: Likewise.
1346         * builtins.c: Likewise.
1347         * builtins.h: Likewise.
1348         * cfgexpand.c: Likewise.
1349         * cfgloop.c: Likewise.
1350         * cfgloopmanip.c: Likewise.
1351         * cgraph.c: Likewise.
1352         * cgraph.h: Likewise.
1353         * cgraphbuild.c: Likewise.
1354         * cgraphclones.c: Likewise.
1355         * cgraphunit.c: Likewise.
1356         * expr.h: Likewise.
1357         * gimple-builder.c: Likewise.
1358         * gimple-builder.h: Likewise.
1359         * gimple-fold.c: Likewise.
1360         * gimple-low.c: Likewise.
1361         * gimple-pretty-print.c: Likewise.
1362         * gimple-ssa-isolate-paths.c: Likewise.
1363         * gimple-ssa-strength-reduction.c: Likewise.
1364         * gimple-streamer-in.c: Likewise.
1365         * gimple-streamer-out.c: Likewise.
1366         * gimple-walk.c: Likewise.
1367         * gimplify-me.c: Likewise.
1368         * gimplify.c: Likewise.
1369         * gimplify.h: Likewise.
1370         * graphite-scop-detection.c: Likewise.
1371         * graphite-sese-to-poly.c: Likewise.
1372         * internal-fn.c: Likewise.
1373         * internal-fn.def:: Likewise.
1374         * internal-fn.h: Likewise.
1375         * ipa-icf-gimple.c: Likewise.
1376         * ipa-icf-gimple.h: Likewise.
1377         * ipa-icf.c: Likewise.
1378         * ipa-inline-analysis.c: Likewise.
1379         * ipa-prop.c: Likewise.
1380         * ipa-prop.h: Likewise.
1381         * ipa-pure-const.c: Likewise.
1382         * ipa-split.c: Likewise.
1383         * lto-streamer-in.c: Likewise.
1384         * lto-streamer-out.c: Likewise.
1385         * omp-low.c: Likewise.
1386         * predict.c: Likewise.
1387         * sanopt.c: Likewise.
1388         * sese.c: Likewise.
1389         * ssa-iterators.h: Likewise.
1390         * stmt.c: Likewise.
1391         * trans-mem.c: Likewise.
1392         * tree-call-cdce.c: Likewise.
1393         * tree-cfg.c: Likewise.
1394         * tree-cfg.h: Likewise.
1395         * tree-cfgcleanup.c: Likewise.
1396         * tree-chkp.c: Likewise.
1397         * tree-chkp.h: Likewise.
1398         * tree-complex.c: Likewise.
1399         * tree-data-ref.c: Likewise.
1400         * tree-dfa.c: Likewise.
1401         * tree-eh.c: Likewise.
1402         * tree-eh.h: Likewise.
1403         * tree-emutls.c: Likewise.
1404         * tree-if-conv.c: Likewise.
1405         * tree-inline.c: Likewise.
1406         * tree-inline.h: Likewise.
1407         * tree-into-ssa.c: Likewise.
1408         * tree-into-ssa.h: Likewise.
1409         * tree-loop-distribution.c: Likewise.
1410         * tree-nrv.c: Likewise.
1411         * tree-object-size.c: Likewise.
1412         * tree-outof-ssa.c: Likewise.
1413         * tree-parloops.c: Likewise.
1414         * tree-phinodes.c: Likewise.
1415         * tree-phinodes.h: Likewise.
1416         * tree-predcom.c: Likewise.
1417         * tree-profile.c: Likewise.
1418         * tree-scalar-evolution.c: Likewise.
1419         * tree-scalar-evolution.h
1420         * tree-sra.cn_function):
1421         * tree-ssa-alias.c: Likewise.
1422         * tree-ssa-alias.h: Likewise.
1423         * tree-ssa-ccp.c: Likewise.
1424         * tree-ssa-coalesce.c: Likewise.
1425         * tree-ssa-copy.c: Likewise.
1426         * tree-ssa-copyrename.c: Likewise.
1427         * tree-ssa-dce.c: Likewise.
1428         * tree-ssa-dom.c: Likewise.
1429         * tree-ssa-forwprop.c: Likewise.
1430         * tree-ssa-ifcombine.c: Likewise.
1431         * tree-ssa-live.c: Likewise.
1432         * tree-ssa-loop-im.c: Likewise.
1433         * tree-ssa-loop-ivcanon.c: Likewise.
1434         * tree-ssa-loop-ivopts.c: Likewise.
1435         * tree-ssa-loop-manip.c: Likewise.
1436         * tree-ssa-loop-niter.c: Likewise.
1437         * tree-ssa-loop-prefetch.c: Likewise.
1438         * tree-ssa-loop-unswitch.c: Likewise.
1439         * tree-ssa-math-opts.c: Likewise.
1440         * tree-ssa-operands.c: Likewise.
1441         * tree-ssa-phiopt.c: Likewise.
1442         * tree-ssa-phiprop.c: Likewise.
1443         * tree-ssa-pre.c: Likewise.
1444         * tree-ssa-propagate.c: Likewise.
1445         * tree-ssa-propagate.h: Likewise.
1446         * tree-ssa-reassoc.c: Likewise.
1447         * tree-ssa-sccvn.c: Likewise.
1448         * tree-ssa-sccvn.h: Likewise.
1449         * tree-ssa-sink.c: Likewise.
1450         * tree-ssa-strlen.c
1451         * tree-ssa-structalias.c
1452         * tree-ssa-tail-merge.c: Likewise.
1453         * tree-ssa-ter.c: Likewise.
1454         * tree-ssa-threadedge.c: Likewise.
1455         * tree-ssa-threadedge.h: Likewise.
1456         * tree-ssa-threadupdate.c: Likewise.
1457         * tree-ssa-uncprop.c: Likewise.
1458         * tree-ssa-uninit.c: Likewise.
1459         * tree-ssa.c: Likewise.
1460         * tree-stdarg.c: Likewise.
1461         * tree-switch-conversion.c: Likewise.
1462         * tree-tailcall.c: Likewise.
1463         * tree-vect-data-refs.c: Likewise.
1464         * tree-vect-generic.c: Likewise.
1465         * tree-vect-loop-manip.c: Likewise.
1466         * tree-vect-loop.c: Likewise.
1467         * tree-vect-patterns.c: Likewise.
1468         * tree-vect-slp.c: Likewise.
1469         * tree-vect-stmts.c: Likewise.
1470         * tree-vectorizer.h: Likewise.
1471         * tree-vrp.c: Likewise.
1472         * tree.c: Likewise.
1473         * ubsan.c: Likewise.
1474         * value-prof.c: Likewise.
1475         * value-prof.h: Likewise.
1476         * vtable-verify.c: Likewise.
1478 2014-11-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
1480         * config/rs6000/constraints.md: Avoid signed integer overflows.
1481         * config/rs6000/predicates.md: Likewise.
1483 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
1485         PR target/63424
1486         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
1488 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
1490         PR middle-end/63762
1491         * ira.c (ira): Update preferred class.
1493 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
1495         * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
1496         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1497         (gimple_assign_set_rhs_with_ops): ... this.  Adjust binary arg
1498         inline overload to use it.  Add unary arg overload.
1499         * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
1500         (gimple_assign_set_rhs_from_tree): Use
1501         gimple_assign_set_rhs_with_ops instead of
1502         gimple_assign_set_rhs_with_ops_1.
1503         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1504         (gimple_assign_set_rhs_with_ops): ... this.
1505         * ipa-split.c (split_function): Remove last NULL argument
1506         from gimple_build_assign_with_ops call.
1507         * tree-ssa-loop-im.c
1508         (move_computations_dom_walker::before_dom_children): Likewise.
1509         * tsan.c (instrument_builtin_call): Likewise.
1510         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
1511         vectorizable_conversion, vectorizable_load): Likewise.
1512         * tree-vect-loop.c (vect_is_simple_reduction_1,
1513         get_initial_def_for_induction): Likewise.
1514         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
1515         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
1516         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
1517         vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
1518         vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
1519         vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
1520         adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
1521         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
1522         neg_replacement): Likewise.
1523         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
1524         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
1525         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1526         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
1527         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
1528         simd_clone_adjust): Likewise.
1529         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
1530         * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
1531         replace_one_candidate): Likewise.
1532         * gimple-builder.c (build_type_cast): Likewise.
1533         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1534         (forward_propagate_addr_expr_1): Remove last NULL argument
1535         from gimple_assign_set_rhs_with_ops call.
1536         (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
1537         instead of gimple_assign_set_rhs_with_ops_1.
1538         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
1539         argument from gimple_build_assign_with_ops call.
1540         (repropagate_negates): Remove last NULL argument from
1541         gimple_assign_set_rhs_with_ops call.
1542         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
1543         last NULL argument from gimple_build_assign_with_ops call.
1544         (instrument_bool_enum_load): Likewise.  Remove last NULL argument
1545         from gimple_assign_set_rhs_with_ops call.
1546         * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
1547         Remove last NULL argument from gimple_build_assign_with_ops call.
1548         (bswap_replace): Likewise.  Use gimple_assign_set_rhs_with_ops instead
1549         of gimple_assign_set_rhs_with_ops_1.
1550         (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
1551         instead of gimple_assign_set_rhs_with_ops_1.
1552         * gimple-fold.c (replace_stmt_with_simplification): Likewise.
1553         (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
1554         from gimple_build_assign_with_ops call.
1555         * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
1556         from gimple_assign_set_rhs_with_ops call.
1557         * tree-vrp.c (simplify_truth_ops_using_ranges,
1558         simplify_bit_ops_using_ranges): Remove last NULL argument from
1559         gimple_assign_set_rhs_with_ops call.
1560         (simplify_float_conversion_using_ranges,
1561         simplify_internal_call_using_ranges): Remove last NULL argument from
1562         gimple_build_assign_with_ops call.
1564 2014-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1566         PR target/61915
1567         * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
1568         cost.
1570 2014-11-19  Marek Polacek  <polacek@redhat.com>
1572         PR sanitizer/63690
1573         * ubsan.c (instrument_object_size): Check for MEM_REF.
1575 2014-11-19  Ilya Verbin  <ilya.verbin@intel.com>
1577         PR regression/63868
1578         * cgraph.c (cgraph_node::create): Guard g->have_offload with
1579         ifdef ENABLE_OFFLOADING.
1580         * omp-low.c (create_omp_child_function): Likewise.
1581         (expand_omp_target): Guard node->mark_force_output and offload_funcs
1582         with ifdef ENABLE_OFFLOADING.
1583         * varpool.c (varpool_node::get_create): Guard g->have_offload and
1584         offload_vars with ifdef ENABLE_OFFLOADING.
1586 2014-11-19  Felix Yang  <felix.yang@huawei.com>
1587             Shanyao Chen  <chenshanyao@huawei.com>
1589         PR target/59593
1590         * config/arm/arm.md (define_attr "arch"): Add v6t2.
1591         (define_attr "arch_enabled"): Add test for the above.
1592         (*movhi_insn_arch4): Add new alternative.
1594 2014-11-19  Richard Henderson  <rth@redhat.com>
1596         * c-family/c-common.c (c_common_reswords): Add
1597         __builtin_call_with_static_chain.
1598         * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
1599         * c/c-parser.c (c_parser_postfix_expression): Handle it.
1600         * doc/extend.texi (__builtin_call_with_static_chain): Document it.
1602         * calls.c (prepare_call_address): Allow decl or type for first arg.
1603         (expand_call): Pass type to prepare_call_address if no decl.
1604         * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
1605         the function doesn't use it; fold it otherwise.
1606         * gimplify.c (gimplify_call_expr): Gimplify the static chain.
1607         * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
1608         function calls.
1610         * targhooks.c (default_static_chain): Remove check for
1611         DECL_STATIC_CHAIN.
1612         * config/moxie/moxie.c (moxie_static_chain): Likewise.
1613         * config/i386/i386.c (ix86_static_chain): Allow decl or type
1614         as the first argument.
1615         * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
1616         of the unused first parameter.
1617         * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
1618         may be a type.
1619         * target.def (static_chain): Likewise.
1621 2014-11-19  Renlin Li  <renlin.li@arm.com>
1623     * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
1624         __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
1626 2014-11-19  Marek Polacek  <polacek@redhat.com>
1628         PR sanitizer/63879
1629         * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
1630         !TYPE_OVERFLOW_SANITIZED.
1631         (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
1632         does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
1633         is 0.
1635 2014-11-19  Ilya Tocar  <ilya.tocar@intel.com>
1637         * collect2.c (main): Don't call fatal_error before
1638         diagnostic_initialize.
1639         * lto-wrapper.c (main): Likewise.
1641 2014-11-19  Tom de Vries  <tom@codesourcery.com>
1643         PR tree-optimization/62167
1644         * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
1645         conservatively.
1646         (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
1647         assigns.
1649 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
1651         PR tree-optimization/63915
1652         * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
1653         true instead of false as last argument to gsi_replace.
1655         PR sanitizer/63520
1656         * internal-fn.c (expand_ubsan_result_store): New function.
1657         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
1658         Use it instead of just emit_move_insn.
1660 2014-11-19  Richard Biener  <rguenther@suse.de>
1662         PR tree-optimization/63844
1663         * omp-low.c (fixup_child_record_type): Use a restrict qualified
1664         referece type for the receiver parameter.
1666 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
1668         PR sanitizer/63913
1669         * ubsan.c: Include tree-eh.h.
1670         (instrument_bool_enum_load): Handle loads that can throw.
1672         PR rtl-optimization/63843
1673         * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
1674         optimization of ashiftrt of subreg of lshiftrt, check that code
1675         is ASHIFTRT.
1677 2014-11-18  Andrew MacLeod  <amacleod@redhat.com>
1679         * attribs.c (decl_attributes): Remove always true condition,
1680         TREE_TYPE(x) will never compare equal to a TYPE_DECL.
1682 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
1684         PR target/63937
1685         * target.def (use_by_pieces_infrastructure_p): Take unsigned
1686         HOST_WIDE_INT as the size parameter.
1687         * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
1688         * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
1689         * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
1690         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
1691         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
1692         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
1693         * config/aarch64/aarch64.c
1694         (aarch64_use_by_pieces_infrastructure_p)): Likewise.
1695         * doc/tm.texi: Regenerate.
1697 2014-11-18  Jan Hubicka  <hubicka@ucw.cz>
1699         * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
1700         (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
1701         (ipa_get_indirect_edge_target_1): Use opt_for_fn.
1702         (good_cloning_opportunity_p): Likewise.
1703         (ipa-cp gate): Enable ipa-cp with LTO.
1704         * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
1705         * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
1706         inheritance.
1707         * ipa-inline-transform.c (inline_transform): Check if there are inlines
1708         to apply even at -O0.
1709         * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
1710         (analyze_functions): Build type inheritance graph.
1711         * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
1712         (want_early_inline_function_p, want_inline_small_function_p):
1713         Likewise.
1714         (check_callers): Likewise.
1715         (edge_badness): Likewise.
1716         (inline_small_functions): Always be ready for indirect inlining
1717         to happend.
1718         (ipa_inline): Always use want_inline_function_to_all_callers_p.
1719         (early_inline_small_functions): Use opt_for_fn.
1720         * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
1721         (estimate_function_body_sizes): Likewise.
1722         (compute_inline_parameters): Likewise.
1723         (estimate_edge_devirt_benefit): Likewise.
1724         (inline_analyze_function): Likewise.
1725         * ipa-devirt.c (ipa_devirt): Likewise.
1726         (gate): Use in_lto_p.
1727         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
1728         (try_make_edge_direct_virtual_call): Likewise.
1729         (update_indirect_edges_after_inlining): Likewise.
1730         (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
1731         * common.opt (findirect-inlining): Turn into optimization.
1732         * ipa-pure-const.c (add_new_function): Use opt_for_fn.
1733         (pure_const_generate_summary): Likewise.
1734         (gate_pure_const): Always enable with in_lto_p.
1736 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
1738         * config/mips/mips.md (compression): Add `micromips32' setting.
1739         (enabled, length): Handle it.
1740         (shift_compression): Replace `micromips' with `micromips32' in
1741         the `compression' attribute.
1742         (*add<mode>3, sub<mode>3): Likewise.
1744 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
1746         * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
1747         range, a jump otherwise.
1749 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1751         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
1752         Split into...
1753         (cortex_a15_gp_to_vfp): ...This.
1754         (cortex_a15_fp_to_gp): ...And this.
1755         Define and comment bypass from vfp operations to fp->gp moves.
1757 2014-11-18  Martin Liska  <mliska@suse.cz>
1759         * var-tracking.c (vt_find_locations): New fibonacci_node is used.
1761 2014-11-18  Martin Liska  <mliska@suse.cz>
1763         * bt-load.c (add_btr_def): New fibonacci_heap is used.
1764         (migrate_btr_defs): Likewise.
1766 2014-11-18  Martin Liska  <mliska@suse.cz>
1768         * tracer.c (tail_duplicate): New fibonacci_heap class is used.
1770 2014-11-18  Martin Liska  <mliska@suse.cz>
1772         * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
1773         (find_traces): Likewise.
1774         (find_traces_1_round): Likewise.
1776 2014-11-18  Martin Liska  <mliska@suse.cz>
1778         * fibonacci_heap.h: New file.
1779         (fibonacci_heap::insert): Created from fibheap_insert.
1780         (fibonacci_heap::empty): Created from fibheap_empty.
1781         (fibonacci_heap::nodes): Created from fibheap_nodes.
1782         (fibonacci_heap::min_key): Created from fibheap_min_key.
1783         (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
1784         (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
1785         (fibonacci_heap::extract_min): Created from fibheap_extract_min.
1786         (fibonacci_heap::min): Created from fibheap_min.
1787         (fibonacci_heap::replace_data): Created from fibheap_replace_data.
1788         (fibonacci_heap::delete_node): Created from fibheap_delete_node.
1789         (fibonacci_heap::union_with): Created from fibheap_union.
1790         * ipa-inline.c (update_edge_key): New heap API is used.
1791         (update_caller_keys): Likewise.
1792         (update_callee_keys): Likewise.
1793         (lookup_recursive_calls): Likewise.
1794         (recursive_inlining): Likewise.
1795         (add_new_edges_to_heap): Likewise.
1796         (heap_edge_removal_hook): Likewise.
1797         (inline_small_functions): Likewise.
1799 2014-11-18  Marek Polacek  <polacek@redhat.com>
1801         PR sanitizer/63866
1802         * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
1803         put it into TYPE_NAME and TYPE_STUB_DECL.
1804         * ubsan.c (ubsan_type_descriptor_type): New variable.
1805         Function renamed to ...
1806         (ubsan_get_type_descriptor_type): ... this.  Cache
1807         return value in ubsan_type_descriptor_type variable.
1808         Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
1809         TYPE_NAME and TYPE_STUB_DECL.
1810         (ubsan_get_source_location_type): Create a TYPE_DECL for
1811         "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
1812         (ubsan_type_descriptor, ubsan_create_data): Call
1813         ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
1814         Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
1816 2014-11-18  Felix Yang  <felix.yang@huawei.com>
1818         * config/aarch64/aarch64.c (doloop_end): New pattern.
1819         * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
1821 2014-11-18  Jason Merrill  <jason@redhat.com>
1823         * tree.c (warn_deprecated_use): Show declaration with inform.
1825 2014-11-18  Richard Biener  <rguenther@suse.de>
1827         PR tree-optimization/63914
1828         * tree-ssa-ccp.c (canonicalize_value): Remove float value
1829         canonicalization.
1830         (valid_lattice_transition): Allow (partial) transition
1831         from NaN to non-NaN if !HONOR_NANS.
1832         (set_lattice_value): Check for valid lattice transitions
1833         only when checking is enabled.
1835 2014-11-18  Bernd Schmidt  <bernds@codesourcery.com>
1837         * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
1839 2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
1841         * config/arm/neon-testgen.ml (emit_prologue): Handle new
1842         compile_test_optim argument.
1843         (emit_automatics): Rename to emit_variables. Support variable
1844         indentation of its output.
1845         (compile_test_optim): New function.
1846         (test_intrinsic): Call compile_test_optim.
1847         * config/arm/neon.ml (features): Add Compiler_optim.
1848         (ops): Add Compiler_optim feature to Vbic and Vorn.
1849         (type_in_crypto_only): Replace 'or' by '||'.
1850         (reinterp): Likewise.
1851         (reinterpq): Likewise.
1853 2014-11-18  Alan Lawrence  <alan.lawrence@arm.com>
1855         * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
1856         vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
1857         vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
1858         vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
1859         vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
1860         vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
1861         pointer dereference.
1863 2014-11-18  Marc Glisse  <marc.glisse@inria.fr>
1865         * tree.c (element_mode, integer_truep): New functions.
1866         * tree.h (element_mode, integer_truep): Declare them.
1867         * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
1868         fold_cond_expr_with_comparison, fold_real_zero_addition_p,
1869         fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
1870         fold_strip_sign_ops): Use element_mode.
1871         (fold_binary_loc): Use element_mode and element_precision.
1872         * match.pd: Use integer_truep, element_mode, element_precision,
1873         VECTOR_TYPE_P and build_one_cst. Extend some transformations to
1874         vectors. Simplify A/-A.
1876 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1878         * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
1879         manual swapping implementation.
1880         (movcond_addsi): Likewise.
1881         * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
1882         (arm_select_dominance_cc_mode): Likewise.
1883         (arm_reload_out_hi): Likewise.
1884         (gen_operands_ldrd_strd): Likewise.
1885         (output_move_double): Likewise.
1886         (arm_print_operand_address): Likewise.
1887         (thumb_output_move_mem_multiple): Likewise.
1888         (SWAP_RTX): Delete.
1890 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
1892         * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
1893         (COPYSIGNF_QUALIFIERS): Likewise.
1894         (CREATE_QUALIFIERS): Likewise.
1895         (DUP_QUALIFIERS): Likewise.
1896         (FLOAT_WIDEN_QUALIFIERS): Likewise.
1897         (FLOAT_NARROW_QUALIFIERS): Likewise.
1898         (REINTERP_QUALIFIERS): Likewise.
1899         (RINT_QUALIFIERS): Likewise.
1900         (SPLIT_QUALIFIERS): Likewise.
1901         (FIXCONV_QUALIFIERS): Likewise.
1902         (SCALARMUL_QUALIFIERS): Likewise.
1903         (SCALARMULL_QUALIFIERS): Likewise.
1904         (SCALARMULH_QUALIFIERS): Likewise.
1905         (SELECT_QUALIFIERS): Likewise.
1906         (VTBX_QUALIFIERS): Likewise.
1907         (SHIFTIMM_QUALIFIERS): Likewise.
1908         (SCALARMAC_QUALIFIERS): Likewise.
1909         (LANEMUL_QUALIFIERS): Likewise.
1910         (LANEMULH_QUALIFIERS): Likewise.
1911         (LANEMULL_QUALIFIERS): Likewise.
1912         (SHIFTACC_QUALIFIERS): Likewise.
1913         (SHIFTINSERT_QUALIFIERS): Likewise.
1914         (VTBL_QUALIFIERS): Likewise.
1915         (LOADSTRUCT_QUALIFIERS): Likewise.
1916         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
1917         (STORESTRUCT_QUALIFIERS): Likewise.
1918         (STORESTRUCTLANE_QUALIFIERS): Likewise.
1919         (neon_builtin_type_mode): Delete.
1920         (v8qi_UP): Map to V8QImode.
1921         (v8qi_UP): Map to V8QImode.
1922         (v4hi_UP): Map to V4HImode.
1923         (v4hf_UP): Map to V4HFmode.
1924         (v2si_UP): Map to V2SImode.
1925         (v2sf_UP): Map to V2SFmode.
1926         (di_UP): Map to DImode.
1927         (v16qi_UP): Map to V16QImode.
1928         (v8hi_UP): Map to V8HImode.
1929         (v4si_UP): Map to V4SImode.
1930         (v4sf_UP): Map to V4SFmode.
1931         (v2di_UP): Map to V2DImode.
1932         (ti_UP): Map to TImode.
1933         (ei_UP): Map to EImode.
1934         (oi_UP): Map to OImode.
1935         (neon_itype): Delete.
1936         (neon_builtin_datum): Remove itype, make mode a machine_mode.
1937         (VAR1): Update accordingly.
1938         (arm_init_neon_builtins): Use machine_mode directly.
1939         (neon_dereference_pointer): Likewise.
1940         (arm_expand_neon_args): Use qualifiers to decide operand types.
1941         (arm_expand_neon_builtin): Likewise.
1942         * config/arm/arm_neon_builtins.def: Remap operation type for
1943         many builtins.
1945 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
1947         * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
1948         (enum arm_simd_type): Likewise.
1949         (struct arm_simd_type_info): Likewise
1950         (arm_mangle_builtin_scalar_type): Likewise.
1951         (arm_mangle_builtin_vector_type): Likewise.
1952         (arm_mangle_builtin_type): Likewise.
1953         (arm_simd_builtin_std_type): Likewise.
1954         (arm_lookup_simd_builtin_type): Likewise.
1955         (arm_simd_builtin_type): Likewise.
1956         (arm_init_simd_builtin_types): Likewise.
1957         (arm_init_simd_builtin_scalar_types): Likewise.
1958         (arm_init_neon_builtins): Rewrite using qualifiers.
1959         * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
1960         * config/arm/arm-simd-builtin-types.def: New file.
1961         * config/arm/t-arm (arm-builtins.o): Depend on it.
1962         * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
1963         * config/arm/arm_neon.h (int8x8_t): Use new internal type.
1964         (int16x4_t): Likewise.
1965         (int32x2_t): Likewise.
1966         (float16x4_t): Likewise.
1967         (float32x2_t): Likewise.
1968         (poly8x8_t): Likewise.
1969         (poly16x4_t): Likewise.
1970         (uint8x8_t): Likewise.
1971         (uint16x4_t): Likewise.
1972         (uint32x2_t): Likewise.
1973         (int8x16_t): Likewise.
1974         (int16x8_t): Likewise.
1975         (int32x4_t): Likewise.
1976         (int64x2_t): Likewise.
1977         (float32x4_t): Likewise.
1978         (poly8x16_t): Likewise.
1979         (poly16x8_t): Likewise.
1980         (uint8x16_t): Likewise.
1981         (uint16x8_t): Likewise.
1982         (uint32x4_t): Likewise.
1983         (uint64x2_t): Likewise.
1985 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
1987         * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
1988         (neon_itype): Add new types corresponding to the types used in
1989         qualifiers names.
1990         (arm_unop_qualifiers): New.
1991         (arm_bswap_qualifiers): Likewise.
1992         (arm_binop_qualifiers): Likewise.
1993         (arm_ternop_qualifiers): Likewise.
1994         (arm_getlane_qualifiers): Likewise.
1995         (arm_lanemac_qualifiers): Likewise.
1996         (arm_setlane_qualifiers): Likewise.
1997         (arm_combine_qualifiers): Likewise.
1998         (arm_load1_qualifiers): Likewise.
1999         (arm_load1_lane_qualifiers): Likewise.
2000         (arm_store1_qualifiers): Likewise.
2001         (arm_storestruct_lane_qualifiers): Likewise.
2002         (UNOP_QUALIFIERS): Likewise.
2003         (DUP_QUALIFIERS): Likewise.
2004         (SPLIT_QUALIFIERS): Likewise.
2005         (CONVERT_QUALIFIERS): Likewise.
2006         (FLOAT_WIDEN_QUALIFIERS): Likewise.
2007         (FLOAT_NARROW_QUALIFIERS): Likewise.
2008         (RINT_QUALIFIERS): Likewise.
2009         (COPYSIGNF_QUALIFIERS): Likewise.
2010         (CREATE_QUALIFIERS): Likewise.
2011         (REINTERP_QUALIFIERS): Likewise.
2012         (BSWAP_QUALIFIERS): Likewise.
2013         (BINOP_QUALIFIERS): Likewise.
2014         (FIXCONV_QUALIFIERS): Likewise.
2015         (SCALARMUL_QUALIFIERS): Likewise.
2016         (SCALARMULL_QUALIFIERS): Likewise.
2017         (SCALARMULH_QUALIFIERS): Likewise.
2018         (TERNOP_QUALIFIERS): Likewise.
2019         (SELECT_QUALIFIERS): Likewise.
2020         (VTBX_QUALIFIERS): Likewise.
2021         (GETLANE_QUALIFIERS): Likewise.
2022         (SHIFTIMM_QUALIFIERS): Likewise.
2023         (LANEMAC_QUALIFIERS): Likewise.
2024         (SCALARMAC_QUALIFIERS): Likewise.
2025         (SETLANE_QUALIFIERS): Likewise.
2026         (SHIFTINSERT_QUALIFIERS): Likewise.
2027         (SHIFTACC_QUALIFIERS): Likewise.
2028         (LANEMUL_QUALIFIERS): Likewise.
2029         (LANEMULL_QUALIFIERS): Likewise.
2030         (LANEMULH_QUALIFIERS): Likewise.
2031         (COMBINE_QUALIFIERS): Likewise.
2032         (VTBL_QUALIFIERS): Likewise.
2033         (LOAD1_QUALIFIERS): Likewise.
2034         (LOADSTRUCT_QUALIFIERS): Likewise.
2035         (LOAD1LANE_QUALIFIERS): Likewise.
2036         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2037         (STORE1_QUALIFIERS): Likewise.
2038         (STORESTRUCT_QUALIFIERS): Likewise.
2039         (STORE1LANE_QUALIFIERS): Likewise.
2040         (STORESTRUCTLANE_QUALIFIERS): Likewise.
2041         (neon_builtin_datum): Keep track of qualifiers.
2042         (VAR1): Likewise.
2044 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2046         * config/arm/arm-builtins.c (VAR1): Add a comma.
2047         (VAR2): Rewrite in terms of VAR1.
2048         (VAR3-10): Likewise.
2049         (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
2050         * config/arm/arm_neon_builtins.def: Remove trailing commas.
2052 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2054         * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
2055         (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
2056         * config/arm/arm-builtins.c: New.
2057         * config/arm/t-arm (arm_builtins.o): New.
2058         * config/arm/arm-protos.h (arm_expand_builtin): New.
2059         (arm_builtin_decl): Likewise.
2060         (arm_init_builtins): Likewise.
2061         (arm_atomic_assign_expand_fenv): Likewise.
2062         * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
2063         (arm_init_builtins): Likewise.
2064         (arm_init_iwmmxt_builtins): Likewise
2065         (safe_vector_operand): Likewise
2066         (arm_expand_binop_builtin): Likewise
2067         (arm_expand_unop_builtin): Likewise
2068         (arm_expand_builtin): Likewise
2069         (arm_builtin_decl): Likewise
2070         (insn_flags): Remove static.
2071         (tune_flags): Likewise.
2072         (enum arm_builtins): Move to config/arm/arm-builtins.c.
2073         (arm_init_neon_builtins): Likewise.
2074         (struct builtin_description): Likewise.
2075         (arm_init_iwmmxt_builtins): Likewise.
2076         (arm_init_fp16_builtins): Likewise.
2077         (arm_init_crc32_builtins): Likewise.
2078         (arm_init_builtins): Likewise.
2079         (arm_builtin_decl): Likewise.
2080         (safe_vector_operand): Likewise.
2081         (arm_expand_ternop_builtin): Likewise.
2082         (arm_expand_binop_builtin): Likewise.
2083         (arm_expand_unop_builtin): Likewise.
2084         (neon_dereference_pointer): Likewise.
2085         (arm_expand_neon_args): Likewise.
2086         (arm_expand_neon_builtin): Likewise.
2087         (neon_split_vcombine): Likewise.
2088         (arm_expand_builtin): Likewise.
2089         (arm_builtin_vectorized_function): Likewise.
2090         (arm_atomic_assign_expand_fenv): Likewise.
2092 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2094         * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
2095         * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
2096         (FL_ARCH3M): Likewise.
2097         (FL_MODE26): Likewise.
2098         (FL_MODE32): Likewise.
2099         (FL_ARCH4): Likewise.
2100         (FL_ARCH5): Likewise.
2101         (FL_THUMB): Likewise.
2102         (FL_LDSCHED): Likewise.
2103         (FL_STRONG): Likewise.
2104         (FL_ARCH5E): Likewise.
2105         (FL_XSCALE): Likewise.
2106         (FL_ARCH6): Likewise.
2107         (FL_VFPV2): Likewise.
2108         (FL_WBUF): Likewise.
2109         (FL_ARCH6K): Likewise.
2110         (FL_THUMB2): Likewise.
2111         (FL_NOTM): Likewise.
2112         (FL_THUMB_DIV): Likewise.
2113         (FL_VFPV3): Likewise.
2114         (FL_NEON): Likewise.
2115         (FL_ARCH7EM): Likewise.
2116         (FL_ARCH7): Likewise.
2117         (FL_ARM_DIV): Likewise.
2118         (FL_ARCH8): Likewise.
2119         (FL_CRC32): Likewise.
2120         (FL_SMALLMUL): Likewise.
2121         (FL_IWMMXT): Likewise.
2122         (FL_IWMMXT2): Likewise.
2123         (FL_TUNE): Likewise.
2124         (FL_FOR_ARCH2): Likewise.
2125         (FL_FOR_ARCH3): Likewise.
2126         (FL_FOR_ARCH3M): Likewise.
2127         (FL_FOR_ARCH4): Likewise.
2128         (FL_FOR_ARCH4T): Likewise.
2129         (FL_FOR_ARCH5): Likewise.
2130         (FL_FOR_ARCH5T): Likewise.
2131         (FL_FOR_ARCH5E): Likewise.
2132         (FL_FOR_ARCH5TE): Likewise.
2133         (FL_FOR_ARCH5TEJ): Likewise.
2134         (FL_FOR_ARCH6): Likewise.
2135         (FL_FOR_ARCH6J): Likewise.
2136         (FL_FOR_ARCH6K): Likewise.
2137         (FL_FOR_ARCH6Z): Likewise.
2138         (FL_FOR_ARCH6ZK): Likewise.
2139         (FL_FOR_ARCH6T2): Likewise.
2140         (FL_FOR_ARCH6M): Likewise.
2141         (FL_FOR_ARCH7): Likewise.
2142         (FL_FOR_ARCH7A): Likewise.
2143         (FL_FOR_ARCH7VE): Likewise.
2144         (FL_FOR_ARCH7R): Likewise.
2145         (FL_FOR_ARCH7M): Likewise.
2146         (FL_FOR_ARCH7EM): Likewise.
2147         (FL_FOR_ARCH8A): Likewise.
2148         * config/arm/arm-protos.h: Take definitions moved from arm.c.
2150 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2152         * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
2153         parameter, rearrange switch statement accordingly.
2154         (arm_evpc_neon_vrev): Remove "Magic Word".
2155         * config/arm/unspecs.md (unspec): Split many UNSPECs to
2156         rounding, or signed/unsigned variants.
2157         * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
2158         (vcondu<mode><mode>): Likewise.
2159         (neon_vadd): Remove "Magic Word" operand.
2160         (neon_vaddl): Remove "Magic Word" operand, convert to use
2161         signed/unsigned iterator.
2162         (neon_vaddw): Likewise.
2163         (neon_vhadd): Likewise, also iterate over "rounding" forms.
2164         (neon_vqadd): Remove "Magic Word" operand, convert to use
2165         signed/unsigned iterator.
2166         (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
2167         over "rounding" forms.
2168         (neon_vmul): Remove "Magic Word" operand, iterate over
2169         polynomial/float instruction forms.
2170         (neon_vmla): Remove "Magic Word" operand.
2171         (neon_vfma): Likewise.
2172         (neon_vfms): Likewise.
2173         (neon_vmls): Likewise.
2174         (neon_vmlal): Remove "Magic Word" operand, iterate over
2175         signed/unsigned forms.
2176         (neon_vmlsl): Likewise.
2177         (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
2178         forms.
2179         (neon_vqdmlal): Remove "Magic Word" operand, iterate over
2180         signed/unsigned forms.
2181         (neon_vqdmlsl): Likewise.
2182         (neon_vmull): Likewise.
2183         (neon_vqdmull): Remove "Magic Word" operand.
2184         (neon_vsub): Remove "Magic Word" operand.
2185         (neon_vsubl): Remove "Magic Word" operand, convert to use
2186         signed/unsigned iterator.
2187         (neon_vsubw): Likewise.
2188         (neon_vhsub): Likewise.
2189         (neon_vqsub): Likewise.
2190         (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
2191         over "rounding" forms.
2192         (neon_vceq): Remove "Magic Word" operand.
2193         (neon_vcge): Likewise.
2194         (neon_vcgeu): Likewise.
2195         (neon_vcgt): Likewise.
2196         (neon_vcgtu): Likewise.
2197         (neon_vcle): Likewise.
2198         (neon_vclt): Likewise.
2199         (neon_vcage): Likewise.
2200         (neon_vcagt): Likewise.
2201         (neon_vabd): Remove "Magic Word" operand, iterate over
2202         signed/unsigned forms, and split out...
2203         (neon_vabdf): ...this as new.
2204         (neon_vabdl): Remove "Magic Word" operand, iterate over
2205         signed/unsigned forms.
2206         (neon_vaba): Likewise.
2207         (neon_vmax): Remove "Magic Word" operand, iterate over
2208         signed/unsigned and max/min forms, and split out...
2209         (neon_v<maxmin>f): ...this as new.
2210         (neon_vmin): Delete.
2211         (neon_vpadd): Remove "Magic Word" operand.
2212         (neon_vpaddl): Remove "Magic Word" operand, iterate over
2213         signed/unsigned variants.
2214         (neon_vpadal): Likewise.
2215         (neon_vpmax): Remove "Magic Word" operand, iterate over
2216         signed/unsigned and max/min forms, and split out...
2217         (neon_vp<maxmin>f): ...this as new.
2218         (neon_vpmin): Delete.
2219         (neon_vrecps): Remove "Magic Word" operand.
2220         (neon_vrsqrts): Likewise.
2221         (neon_vabs): Likewise.
2222         (neon_vqabs): Likewise.
2223         (neon_vneg): Likewise.
2224         (neon_vqneg): Likewise.
2225         (neon_vcls): Likewise.
2226         (neon_vcnt): Likewise.
2227         (neon_vrecpe): Likewise.
2228         (neon_vrsqrte): Likewise.
2229         (neon_vmvn): Likewise.
2230         (neon_vget_lane): Likewise.
2231         (neon_vget_laneu): New.
2232         (neon_vget_lanedi): Remove "Magic Word" operand.
2233         (neon_vget_lanev2di): Likewise.
2234         (neon_vcvt): Remove "Magic Word" operand, iterate over
2235         signed/unsigned variants.
2236         (neon_vcvt_n): Likewise.
2237         (neon_vmovn): Remove "Magic Word" operand.
2238         (neon_vqmovn): Remove "Magic Word" operand, iterate over
2239         signed/unsigned variants.
2240         (neon_vmovun): Remove "Magic Word" operand.
2241         (neon_vmovl): Remove "Magic Word" operand, iterate over
2242         signed/unsigned variants.
2243         (neon_vmul_lane): Remove "Magic Word" operand.
2244         (neon_vmull_lane): Remove "Magic Word" operand, iterate over
2245         signed/unsigned variants.
2246         (neon_vqdmull_lane): Remove "Magic Word" operand.
2247         (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
2248         rounding variants.
2249         (neon_vmla_lane): Remove "Magic Word" operand.
2250         (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
2251         signed/unsigned variants.
2252         (neon_vqdmlal_lane): Remove "Magic Word" operand.
2253         (neon_vmls_lane): Likewise.
2254         (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
2255         signed/unsigned variants.
2256         (neon_vqdmlsl_lane): Remove "Magic Word" operand.
2257         (neon_vmul_n): Remove "Magic Word" operand.
2258         (neon_vmull_n): Rename to...
2259         (neon_vmulls_n): ...this, remove "Magic Word" operand.
2260         (neon_vmullu_n): New.
2261         (neon_vqdmull_n): Remove "Magic Word" operand.
2262         (neon_vqdmulh_n): Likewise.
2263         (neon_vqrdmulh_n): New.
2264         (neon_vmla_n): Remove "Magic Word" operand.
2265         (neon_vmls_n): Likewise.
2266         (neon_vmlal_n): Rename to...
2267         (neon_vmlals_n): ...this, remove "Magic Word" operand.
2268         (neon_vmlalu_n): New.
2269         (neon_vqdmlal_n): Remove "Magic Word" operand.
2270         (neon_vmlsl_n): Rename to...
2271         (neon_vmlsls_n): ...this, remove "Magic Word" operand.
2272         (neon_vmlslu_n): New.
2273         (neon_vqdmlsl_n): Remove "Magic Word" operand.
2274         (neon_vrev64): Remove "Magic Word" operand.
2275         (neon_vrev32): Likewise.
2276         (neon_vrev16): Likewise.
2277         (neon_vshl): Remove "Magic Word" operand, iterate over
2278         signed/unsigned and "rounding" forms.
2279         (neon_vqshl): Likewise.
2280         (neon_vshr_n): Likewise.
2281         (neon_vshrn_n): Remove "Magic Word" operand, iterate over
2282         "rounding" forms.
2283         (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
2284         signed/unsigned and "rounding" forms.
2285         (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
2286         "rounding" forms.
2287         (neon_vshl_n): Remove "Magic Word" operand.
2288         (neon_vqshl_n): Remove "Magic Word" operand, iterate over
2289         signed/unsigned variants.
2290         (neon_vqshlu_n): Remove "Magic Word" operand.
2291         (neon_vshll_n): Remove "Magic Word" operand, iterate over
2292         signed/unsigned variants.
2293         (neon_vsra_n): Remove "Magic Word" operand, iterate over
2294         signed/unsigned and "rounding" forms.
2295         * config/arm/iterators.md (VPF): New.
2296         (VADDL): Likewise.
2297         (VADDW): Likewise.
2298         (VHADD): Likewise.
2299         (VQADD): Likewise.
2300         (VADDHN): Likewise.
2301         (VMLAL): Likewise.
2302         (VMLAL_LANE): Likewise.
2303         (VLMSL): Likewise.
2304         (VMLSL_LANE): Likewise.
2305         (VQDMULH): Likewise,
2306         (VQDMULH_LANE): Likewise.
2307         (VMULL): Likewise.
2308         (VMULL_LANE): Likewise.
2309         (VSUBL): Likewise.
2310         (VSUBW): Likewise.
2311         (VHSUB): Likewise.
2312         (VQSUB): Likewise.
2313         (VSUBHN): Likewise.
2314         (VABD): Likewise.
2315         (VABDL): Likewise.
2316         (VMAXMIN): Likewise.
2317         (VMAXMINF): Likewise.
2318         (VPADDL): Likewise.
2319         (VPADAL): Likewise.
2320         (VPMAXMIN): Likewise.
2321         (VPMAXMINF): Likewise.
2322         (VCVT_US): Likewise.
2323         (VCVT_US_N): Likewise.
2324         (VQMOVN): Likewise.
2325         (VMOVL): Likewise.
2326         (VSHL): Likewise.
2327         (VQSHL): Likewise.
2328         (VSHR_N): Likewise.
2329         (VSHRN_N): Likewise.
2330         (VQSHRN_N): Likewise.
2331         (VQSHRUN_N): Likewise.
2332         (VQSHL_N): Likewise.
2333         (VSHLL_N): Likewise.
2334         (VSRA_N): Likewise.
2335         (pf): Likewise.
2336         (sup): Likewise.
2337         (r): Liekwise.
2338         (maxmin): Likewise.
2339         (shift_op): Likewise.
2340         * config/arm/arm_neon_builtins.def (vaddl): Split to...
2341         (vaddls): ...this and...
2342         (vaddlu): ...this.
2343         (vaddw): Split to...
2344         (vaddws): ...this and...
2345         (vaddwu): ...this.
2346         (vhadd): Split to...
2347         (vhadds): ...this and...
2348         (vhaddu): ...this and...
2349         (vrhadds): ...this and...
2350         (vrhaddu): ...this.
2351         (vqadd): Split to...
2352         (vqadds): ...this and...
2353         (vqaddu): ...this.
2354         (vaddhn): Split to itself and...
2355         (vraddhn): ...this.
2356         (vmul): Split to...
2357         (vmulf): ...this and...
2358         (vmulp): ...this.
2359         (vmlal): Split to...
2360         (vmlals): ...this and...
2361         (vmlalu): ...this.
2362         (vmlsl): Split to...
2363         (vmlsls): ...this and...
2364         (vmlslu): ...this.
2365         (vqdmulh): Split to itself and...
2366         (vqrdmulh): ...this.
2367         (vmull): Split to...
2368         (vmullp): ...this and...
2369         (vmulls): ...this and...
2370         (vmullu): ...this.
2371         (vmull_n): Split to...
2372         (vmulls_n): ...this and...
2373         (vmullu_n): ...this.
2374         (vmull_lane): Split to...
2375         (vmulls_lane): ...this and...
2376         (vmullu_lane): ...this.
2377         (vqdmulh_n): Split to itself and...
2378         (vqrdmulh_n): ...this.
2379         (vqdmulh_lane): Split to itself and...
2380         (vqrdmulh_lane): ...this.
2381         (vshl): Split to...
2382         (vshls): ...this and...
2383         (vshlu): ...this and...
2384         (vrshls): ...this and...
2385         (vrshlu): ...this.
2386         (vqshl): Split to...
2387         (vqshls): ...this and...
2388         (vqrshlu): ...this and...
2389         (vqrshls): ...this and...
2390         (vqrshlu): ...this.
2391         (vshr_n): Split to...
2392         (vshrs_n): ...this and...
2393         (vshru_n): ...this and...
2394         (vrshrs_n): ...this and...
2395         (vrshru_n): ...this.
2396         (vshrn_n): Split to itself and...
2397         (vrshrn_n): ...this.
2398         (vqshrn_n): Split to...
2399         (vqshrns_n): ...this and...
2400         (vqshrnu_n): ...this and...
2401         (vqrshrns_n): ...this and...
2402         (vqrshrnu_n): ...this.
2403         (vqshrun_n): Split to itself and...
2404         (vqrshrun_n): ...this.
2405         (vqshl_n): Split to...
2406         (vqshl_s_n): ...this and...
2407         (vqshl_u_n): ...this.
2408         (vshll_n): Split to...
2409         (vshlls_n): ...this and...
2410         (vshllu_n): ...this.
2411         (vsra_n): Split to...
2412         (vsras_n): ...this and...
2413         (vsrau_n): ...this and.
2414         (vrsras_n): ...this and...
2415         (vrsrau_n): ...this and.
2416         (vsubl): Split to...
2417         (vsubls): ...this and...
2418         (vsublu): ...this.
2419         (vsubw): Split to...
2420         (vsubws): ...this and...
2421         (vsubwu): ...this.
2422         (vqsub): Split to...
2423         (vqsubs): ...this and...
2424         (vqsubu): ...this.
2425         (vhsub): Split to...
2426         (vhsubs): ...this and...
2427         (vhsubu): ...this.
2428         (vsubhn): Split to itself and...
2429         (vrsubhn): ...this.
2430         (vabd): Split to...
2431         (vabds): ...this and...
2432         (vabdu): ...this and...
2433         (vabdf): ...this.
2434         (vabdl): Split to...
2435         (vabdls): ...this and...
2436         (vabdlu): ...this.
2437         (vaba): Split to...
2438         (vabas): ...this and...
2439         (vabau): ...this and...
2440         (vabal): Split to...
2441         (vabals): ...this and...
2442         (vabalu): ...this.
2443         (vmax): Split to...
2444         (vmaxs): ...this and...
2445         (vmaxu): ...this and...
2446         (vmaxf): ...this.
2447         (vmin): Split to...
2448         (vmins): ...this and...
2449         (vminu): ...this and...
2450         (vminf): ...this.
2451         (vpmax): Split to...
2452         (vpmaxs): ...this and...
2453         (vpmaxu): ...this and...
2454         (vpmaxf): ...this.
2455         (vpmin): Split to...
2456         (vpmins): ...this and...
2457         (vpminu): ...this and...
2458         (vpminf): ...this.
2459         (vpaddl): Split to...
2460         (vpaddls): ...this and...
2461         (vpaddlu): ...this.
2462         (vpadal): Split to...
2463         (vpadals): ...this and...
2464         (vpadalu): ...this.
2465         (vget_laneu): New.
2466         (vqmovn): Split to...
2467         (vqmovns): ...this and...
2468         (vqmovnu): ...this.
2469         (vmovl): Split to...
2470         (vmovls): ...this and...
2471         (vmovlu): ...this.
2472         (vmlal_lane): Split to...
2473         (vmlals_lane): ...this and...
2474         (vmlalu_lane): ...this.
2475         (vmlsl_lane): Split to...
2476         (vmlsls_lane): ...this and...
2477         (vmlslu_lane): ...this.
2478         (vmlal_n): Split to...
2479         (vmlals_n): ...this and...
2480         (vmlalu_n): ...this.
2481         (vmlsl_n): Split to...
2482         (vmlsls_n): ...this and...
2483         (vmlslu_n): ...this.
2484         (vext): Make type "SHIFTINSERT".
2485         (vcvt): Split to...
2486         (vcvts): ...this and...
2487         (vcvtu): ...this.
2488         (vcvt_n): Split to...
2489         (vcvts_n): ...this and...
2490         (vcvtu_n): ...this.
2491         * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
2492         (vaddl_s16): Likewise.
2493         (vaddl_s32): Likewise.
2494         (vaddl_u8): Likewise.
2495         (vaddl_u16): Likewise.
2496         (vaddl_u32): Likewise.
2497         (vaddw_s8): Likewise.
2498         (vaddw_s16): Likewise.
2499         (vaddw_s32): Likewise.
2500         (vaddw_u8): Likewise.
2501         (vaddw_u16): Likewise.
2502         (vaddw_u32): Likewise.
2503         (vhadd_s8): Likewise.
2504         (vhadd_s16): Likewise.
2505         (vhadd_s32): Likewise.
2506         (vhadd_u8): Likewise.
2507         (vhadd_u16): Likewise.
2508         (vhadd_u32): Likewise.
2509         (vhaddq_s8): Likewise.
2510         (vhaddq_s16): Likewise.
2511         (vhaddq_s32): Likewise.
2512         (vhaddq_u8): Likewise.
2513         (vhaddq_u16): Likewise.
2514         (vrhadd_s8): Likewise.
2515         (vrhadd_s16): Likewise.
2516         (vrhadd_s32): Likewise.
2517         (vrhadd_u8): Likewise.
2518         (vrhadd_u16): Likewise.
2519         (vrhadd_u32): Likewise.
2520         (vrhaddq_s8): Likewise.
2521         (vrhaddq_s16): Likewise.
2522         (vrhaddq_s32): Likewise.
2523         (vrhaddq_u8): Likewise.
2524         (vrhaddq_u16): Likewise.
2525         (vrhaddq_u32): Likewise.
2526         (vqadd_s8): Likewise.
2527         (vqadd_s16): Likewise.
2528         (vqadd_s32): Likewise.
2529         (vqadd_s64): Likewise.
2530         (vqadd_u8): Likewise.
2531         (vqadd_u16): Likewise.
2532         (vqadd_u32): Likewise.
2533         (vqadd_u64): Likewise.
2534         (vqaddq_s8): Likewise.
2535         (vqaddq_s16): Likewise.
2536         (vqaddq_s32): Likewise.
2537         (vqaddq_s64): Likewise.
2538         (vqaddq_u8): Likewise.
2539         (vqaddq_u16): Likewise.
2540         (vqaddq_u32): Likewise.
2541         (vqaddq_u64): Likewise.
2542         (vaddhn_s16): Likewise.
2543         (vaddhn_s32): Likewise.
2544         (vaddhn_s64): Likewise.
2545         (vaddhn_u16): Likewise.
2546         (vaddhn_u32): Likewise.
2547         (vaddhn_u64): Likewise.
2548         (vraddhn_s16): Likewise.
2549         (vraddhn_s32): Likewise.
2550         (vraddhn_s64): Likewise.
2551         (vraddhn_u16): Likewise.
2552         (vraddhn_u32): Likewise.
2553         (vraddhn_u64): Likewise.
2554         (vmul_p8): Likewise.
2555         (vmulq_p8): Likewise.
2556         (vqdmulh_s16): Likewise.
2557         (vqdmulh_s32): Likewise.
2558         (vqdmulhq_s16): Likewise.
2559         (vqdmulhq_s32): Likewise.
2560         (vqrdmulh_s16): Likewise.
2561         (vqrdmulh_s32): Likewise.
2562         (vqrdmulhq_s16): Likewise.
2563         (vqrdmulhq_s32): Likewise.
2564         (vmull_s8): Likewise.
2565         (vmull_s16): Likewise.
2566         (vmull_s32): Likewise.
2567         (vmull_u8): Likewise.
2568         (vmull_u16): Likewise.
2569         (vmull_u32): Likewise.
2570         (vmull_p8): Likewise.
2571         (vqdmull_s16): Likewise.
2572         (vqdmull_s32): Likewise.
2573         (vmla_s8): Likewise.
2574         (vmla_s16): Likewise.
2575         (vmla_s32): Likewise.
2576         (vmla_f32): Likewise.
2577         (vmla_u8): Likewise.
2578         (vmla_u16): Likewise.
2579         (vmla_u32): Likewise.
2580         (vmlaq_s8): Likewise.
2581         (vmlaq_s16): Likewise.
2582         (vmlaq_s32): Likewise.
2583         (vmlaq_f32): Likewise.
2584         (vmlaq_u8): Likewise.
2585         (vmlaq_u16): Likewise.
2586         (vmlaq_u32): Likewise.
2587         (vmlal_s8): Likewise.
2588         (vmlal_s16): Likewise.
2589         (vmlal_s32): Likewise.
2590         (vmlal_u8): Likewise.
2591         (vmlal_u16): Likewise.
2592         (vmlal_u32): Likewise.
2593         (vqdmlal_s16): Likewise.
2594         (vqdmlal_s32): Likewise.
2595         (vmls_s8): Likewise.
2596         (vmls_s16): Likewise.
2597         (vmls_s32): Likewise.
2598         (vmls_f32): Likewise.
2599         (vmls_u8): Likewise.
2600         (vmls_u16): Likewise.
2601         (vmls_u32): Likewise.
2602         (vmlsq_s8): Likewise.
2603         (vmlsq_s16): Likewise.
2604         (vmlsq_s32): Likewise.
2605         (vmlsq_f32): Likewise.
2606         (vmlsq_u8): Likewise.
2607         (vmlsq_u16): Likewise.
2608         (vmlsq_u32): Likewise.
2609         (vmlsl_s8): Likewise.
2610         (vmlsl_s16): Likewise.
2611         (vmlsl_s32): Likewise.
2612         (vmlsl_u8): Likewise.
2613         (vmlsl_u16): Likewise.
2614         (vmlsl_u32): Likewise.
2615         (vqdmlsl_s16): Likewise.
2616         (vqdmlsl_s32): Likewise.
2617         (vfma_f32): Likewise.
2618         (vfmaq_f32): Likewise.
2619         (vfms_f32): Likewise.
2620         (vfmsq_f32): Likewise.
2621         (vsubl_s8): Likewise.
2622         (vsubl_s16): Likewise.
2623         (vsubl_s32): Likewise.
2624         (vsubl_u8): Likewise.
2625         (vsubl_u16): Likewise.
2626         (vsubl_u32): Likewise.
2627         (vsubw_s8): Likewise.
2628         (vsubw_s16): Likewise.
2629         (vsubw_s32): Likewise.
2630         (vsubw_u8): Likewise.
2631         (vsubw_u16): Likewise.
2632         (vsubw_u32): Likewise.
2633         (vhsub_s8): Likewise.
2634         (vhsub_s16): Likewise.
2635         (vhsub_s32): Likewise.
2636         (vhsub_u8): Likewise.
2637         (vhsub_u16): Likewise.
2638         (vhsub_u32): Likewise.
2639         (vhsubq_s8): Likewise.
2640         (vhsubq_s16): Likewise.
2641         (vhsubq_s32): Likewise.
2642         (vhsubq_u8): Likewise.
2643         (vhsubq_u16): Likewise.
2644         (vhsubq_u32): Likewise.
2645         (vqsub_s8): Likewise.
2646         (vqsub_s16): Likewise.
2647         (vqsub_s32): Likewise.
2648         (vqsub_s64): Likewise.
2649         (vqsub_u8): Likewise.
2650         (vqsub_u16): Likewise.
2651         (vqsub_u32): Likewise.
2652         (vqsub_u64): Likewise.
2653         (vqsubq_s8): Likewise.
2654         (vqsubq_s16): Likewise.
2655         (vqsubq_s32): Likewise.
2656         (vqsubq_s64): Likewise.
2657         (vqsubq_u8): Likewise.
2658         (vqsubq_u16): Likewise.
2659         (vqsubq_u32): Likewise.
2660         (vqsubq_u64): Likewise.
2661         (vsubhn_s16): Likewise.
2662         (vsubhn_s32): Likewise.
2663         (vsubhn_s64): Likewise.
2664         (vsubhn_u16): Likewise.
2665         (vsubhn_u32): Likewise.
2666         (vsubhn_u64): Likewise.
2667         (vrsubhn_s16): Likewise.
2668         (vrsubhn_s32): Likewise.
2669         (vrsubhn_s64): Likewise.
2670         (vrsubhn_u16): Likewise.
2671         (vrsubhn_u32): Likewise.
2672         (vrsubhn_u64): Likewise.
2673         (vceq_s8): Likewise.
2674         (vceq_s16): Likewise.
2675         (vceq_s32): Likewise.
2676         (vceq_f32): Likewise.
2677         (vceq_u8): Likewise.
2678         (vceq_u16): Likewise.
2679         (vceq_u32): Likewise.
2680         (vceq_p8): Likewise.
2681         (vceqq_s8): Likewise.
2682         (vceqq_s16): Likewise.
2683         (vceqq_s32): Likewise.
2684         (vceqq_f32): Likewise.
2685         (vceqq_u8): Likewise.
2686         (vceqq_u16): Likewise.
2687         (vceqq_u32): Likewise.
2688         (vceqq_p8): Likewise.
2689         (vcge_s8): Likewise.
2690         (vcge_s16): Likewise.
2691         (vcge_s32): Likewise.
2692         (vcge_f32): Likewise.
2693         (vcge_u8): Likewise.
2694         (vcge_u16): Likewise.
2695         (vcge_u32): Likewise.
2696         (vcgeq_s8): Likewise.
2697         (vcgeq_s16): Likewise.
2698         (vcgeq_s32): Likewise.
2699         (vcgeq_f32): Likewise.
2700         (vcgeq_u8): Likewise.
2701         (vcgeq_u16): Likewise.
2702         (vcgeq_u32): Likewise.
2703         (vcle_s8): Likewise.
2704         (vcle_s16): Likewise.
2705         (vcle_s32): Likewise.
2706         (vcle_f32): Likewise.
2707         (vcle_u8): Likewise.
2708         (vcle_u16): Likewise.
2709         (vcle_u32): Likewise.
2710         (vcleq_s8): Likewise.
2711         (vcleq_s16): Likewise.
2712         (vcleq_s32): Likewise.
2713         (vcleq_f32): Likewise.
2714         (vcleq_u8): Likewise.
2715         (vcleq_u16): Likewise.
2716         (vcleq_u32): Likewise.
2717         (vcgt_s8): Likewise.
2718         (vcgt_s16): Likewise.
2719         (vcgt_s32): Likewise.
2720         (vcgt_f32): Likewise.
2721         (vcgt_u8): Likewise.
2722         (vcgt_u16): Likewise.
2723         (vcgt_u32): Likewise.
2724         (vcgtq_s8): Likewise.
2725         (vcgtq_s16): Likewise.
2726         (vcgtq_s32): Likewise.
2727         (vcgtq_f32): Likewise.
2728         (vcgtq_u8): Likewise.
2729         (vcgtq_u16): Likewise.
2730         (vcgtq_u32): Likewise.
2731         (vclt_s8): Likewise.
2732         (vclt_s16): Likewise.
2733         (vclt_s32): Likewise.
2734         (vclt_f32): Likewise.
2735         (vclt_u8): Likewise.
2736         (vclt_u16): Likewise.
2737         (vclt_u32): Likewise.
2738         (vcltq_s8): Likewise.
2739         (vcltq_s16): Likewise.
2740         (vcltq_s32): Likewise.
2741         (vcltq_f32): Likewise.
2742         (vcltq_u8): Likewise.
2743         (vcltq_u16): Likewise.
2744         (vcltq_u32): Likewise.
2745         (vcage_f32): Likewise.
2746         (vcageq_f32): Likewise.
2747         (vcale_f32): Likewise.
2748         (vcaleq_f32): Likewise.
2749         (vcagt_f32): Likewise.
2750         (vcagtq_f32): Likewise.
2751         (vcalt_f32): Likewise.
2752         (vcaltq_f32): Likewise.
2753         (vtst_s8): Likewise.
2754         (vtst_s16): Likewise.
2755         (vtst_s32): Likewise.
2756         (vtst_u8): Likewise.
2757         (vtst_u16): Likewise.
2758         (vtst_u32): Likewise.
2759         (vtst_p8): Likewise.
2760         (vtstq_s8): Likewise.
2761         (vtstq_s16): Likewise.
2762         (vtstq_s32): Likewise.
2763         (vtstq_u8): Likewise.
2764         (vtstq_u16): Likewise.
2765         (vtstq_u32): Likewise.
2766         (vtstq_p8): Likewise.
2767         (vabd_s8): Likewise.
2768         (vabd_s16): Likewise.
2769         (vabd_s32): Likewise.
2770         (vabd_f32): Likewise.
2771         (vabd_u8): Likewise.
2772         (vabd_u16): Likewise.
2773         (vabd_u32): Likewise.
2774         (vabdq_s8): Likewise.
2775         (vabdq_s16): Likewise.
2776         (vabdq_s32): Likewise.
2777         (vabdq_f32): Likewise.
2778         (vabdq_u8): Likewise.
2779         (vabdq_u16): Likewise.
2780         (vabdq_u32): Likewise.
2781         (vabdl_s8): Likewise.
2782         (vabdl_s16): Likewise.
2783         (vabdl_s32): Likewise.
2784         (vabdl_u8): Likewise.
2785         (vabdl_u16): Likewise.
2786         (vabdl_u32): Likewise.
2787         (vaba_s8): Likewise.
2788         (vaba_s16): Likewise.
2789         (vaba_s32): Likewise.
2790         (vaba_u8): Likewise.
2791         (vaba_u16): Likewise.
2792         (vaba_u32): Likewise.
2793         (vabaq_s8): Likewise.
2794         (vabaq_s16): Likewise.
2795         (vabaq_s32): Likewise.
2796         (vabaq_u8): Likewise.
2797         (vabaq_u16): Likewise.
2798         (vabaq_u32): Likewise.
2799         (vabal_s8): Likewise.
2800         (vabal_s16): Likewise.
2801         (vabal_s32): Likewise.
2802         (vabal_u8): Likewise.
2803         (vabal_u16): Likewise.
2804         (vabal_u32): Likewise.
2805         (vmax_s8): Likewise.
2806         (vmax_s16): Likewise.
2807         (vmax_s32): Likewise.
2808         (vmax_f32): Likewise.
2809         (vmax_u8): Likewise.
2810         (vmax_u16): Likewise.
2811         (vmax_u32): Likewise.
2812         (vmaxq_s8): Likewise.
2813         (vmaxq_s16): Likewise.
2814         (vmaxq_s32): Likewise.
2815         (vmaxq_f32): Likewise.
2816         (vmaxq_u8): Likewise.
2817         (vmaxq_u16): Likewise.
2818         (vmaxq_u32): Likewise.
2819         (vmin_s8): Likewise.
2820         (vmin_s16): Likewise.
2821         (vmin_s32): Likewise.
2822         (vmin_f32): Likewise.
2823         (vmin_u8): Likewise.
2824         (vmin_u16): Likewise.
2825         (vmin_u32): Likewise.
2826         (vminq_s8): Likewise.
2827         (vminq_s16): Likewise.
2828         (vminq_s32): Likewise.
2829         (vminq_f32): Likewise.
2830         (vminq_u8): Likewise.
2831         (vminq_u16): Likewise.
2832         (vminq_u32): Likewise.
2833         (vpadd_s8): Likewise.
2834         (vpadd_s16): Likewise.
2835         (vpadd_s32): Likewise.
2836         (vpadd_f32): Likewise.
2837         (vpadd_u8): Likewise.
2838         (vpadd_u16): Likewise.
2839         (vpadd_u32): Likewise.
2840         (vpaddl_s8): Likewise.
2841         (vpaddl_s16): Likewise.
2842         (vpaddl_s32): Likewise.
2843         (vpaddl_u8): Likewise.
2844         (vpaddl_u16): Likewise.
2845         (vpaddl_u32): Likewise.
2846         (vpaddlq_s8): Likewise.
2847         (vpaddlq_s16): Likewise.
2848         (vpaddlq_s32): Likewise.
2849         (vpaddlq_u8): Likewise.
2850         (vpaddlq_u16): Likewise.
2851         (vpaddlq_u32): Likewise.
2852         (vpadal_s8): Likewise.
2853         (vpadal_s16): Likewise.
2854         (vpadal_s32): Likewise.
2855         (vpadal_u8): Likewise.
2856         (vpadal_u16): Likewise.
2857         (vpadal_u32): Likewise.
2858         (vpadalq_s8): Likewise.
2859         (vpadalq_s16): Likewise.
2860         (vpadalq_s32): Likewise.
2861         (vpadalq_u8): Likewise.
2862         (vpadalq_u16): Likewise.
2863         (vpadalq_u32): Likewise.
2864         (vpmax_s8): Likewise.
2865         (vpmax_s16): Likewise.
2866         (vpmax_s32): Likewise.
2867         (vpmax_f32): Likewise.
2868         (vpmax_u8): Likewise.
2869         (vpmax_u16): Likewise.
2870         (vpmax_u32): Likewise.
2871         (vpmin_s8): Likewise.
2872         (vpmin_s16): Likewise.
2873         (vpmin_s32): Likewise.
2874         (vpmin_f32): Likewise.
2875         (vpmin_u8): Likewise.
2876         (vpmin_u16): Likewise.
2877         (vpmin_u32): Likewise.
2878         (vrecps_f32): Likewise.
2879         (vrecpsq_f32): Likewise.
2880         (vrsqrts_f32): Likewise.
2881         (vrsqrtsq_f32): Likewise.
2882         (vshl_s8): Likewise.
2883         (vshl_s16): Likewise.
2884         (vshl_s32): Likewise.
2885         (vshl_s64): Likewise.
2886         (vshl_u8): Likewise.
2887         (vshl_u16): Likewise.
2888         (vshl_u32): Likewise.
2889         (vshl_u64): Likewise.
2890         (vshlq_s8): Likewise.
2891         (vshlq_s16): Likewise.
2892         (vshlq_s32): Likewise.
2893         (vshlq_s64): Likewise.
2894         (vshlq_u8): Likewise.
2895         (vshlq_u16): Likewise.
2896         (vshlq_u32): Likewise.
2897         (vshlq_u64): Likewise.
2898         (vrshl_s8): Likewise.
2899         (vrshl_s16): Likewise.
2900         (vrshl_s32): Likewise.
2901         (vrshl_s64): Likewise.
2902         (vrshl_u8): Likewise.
2903         (vrshl_u16): Likewise.
2904         (vrshl_u32): Likewise.
2905         (vrshl_u64): Likewise.
2906         (vrshlq_s8): Likewise.
2907         (vrshlq_s16): Likewise.
2908         (vrshlq_s32): Likewise.
2909         (vrshlq_s64): Likewise.
2910         (vrshlq_u8): Likewise.
2911         (vrshlq_u16): Likewise.
2912         (vrshlq_u32): Likewise.
2913         (vrshlq_u64): Likewise.
2914         (vqshl_s8): Likewise.
2915         (vqshl_s16): Likewise.
2916         (vqshl_s32): Likewise.
2917         (vqshl_s64): Likewise.
2918         (vqshl_u8): Likewise.
2919         (vqshl_u16): Likewise.
2920         (vqshl_u32): Likewise.
2921         (vqshl_u64): Likewise.
2922         (vqshlq_s8): Likewise.
2923         (vqshlq_s16): Likewise.
2924         (vqshlq_s32): Likewise.
2925         (vqshlq_s64): Likewise.
2926         (vqshlq_u8): Likewise.
2927         (vqshlq_u16): Likewise.
2928         (vqshlq_u32): Likewise.
2929         (vqshlq_u64): Likewise.
2930         (vqrshl_s8): Likewise.
2931         (vqrshl_s16): Likewise.
2932         (vqrshl_s32): Likewise.
2933         (vqrshl_s64): Likewise.
2934         (vqrshl_u8): Likewise.
2935         (vqrshl_u16): Likewise.
2936         (vqrshl_u32): Likewise.
2937         (vqrshl_u64): Likewise.
2938         (vqrshlq_s8): Likewise.
2939         (vqrshlq_s16): Likewise.
2940         (vqrshlq_s32): Likewise.
2941         (vqrshlq_s64): Likewise.
2942         (vqrshlq_u8): Likewise.
2943         (vqrshlq_u16): Likewise.
2944         (vqrshlq_u32): Likewise.
2945         (vqrshlq_u64): Likewise.
2946         (vshr_n_s8): Likewise.
2947         (vshr_n_s16): Likewise.
2948         (vshr_n_s32): Likewise.
2949         (vshr_n_s64): Likewise.
2950         (vshr_n_u8): Likewise.
2951         (vshr_n_u16): Likewise.
2952         (vshr_n_u32): Likewise.
2953         (vshr_n_u64): Likewise.
2954         (vshrq_n_s8): Likewise.
2955         (vshrq_n_s16): Likewise.
2956         (vshrq_n_s32): Likewise.
2957         (vshrq_n_s64): Likewise.
2958         (vshrq_n_u8): Likewise.
2959         (vshrq_n_u16): Likewise.
2960         (vshrq_n_u32): Likewise.
2961         (vshrq_n_u64): Likewise.
2962         (vrshr_n_s8): Likewise.
2963         (vrshr_n_s16): Likewise.
2964         (vrshr_n_s32): Likewise.
2965         (vrshr_n_s64): Likewise.
2966         (vrshr_n_u8): Likewise.
2967         (vrshr_n_u16): Likewise.
2968         (vrshr_n_u32): Likewise.
2969         (vrshr_n_u64): Likewise.
2970         (vrshrq_n_s8): Likewise.
2971         (vrshrq_n_s16): Likewise.
2972         (vrshrq_n_s32): Likewise.
2973         (vrshrq_n_s64): Likewise.
2974         (vrshrq_n_u8): Likewise.
2975         (vrshrq_n_u16): Likewise.
2976         (vrshrq_n_u32): Likewise.
2977         (vrshrq_n_u64): Likewise.
2978         (vshrn_n_s16): Likewise.
2979         (vshrn_n_s32): Likewise.
2980         (vshrn_n_s64): Likewise.
2981         (vshrn_n_u16): Likewise.
2982         (vshrn_n_u32): Likewise.
2983         (vshrn_n_u64): Likewise.
2984         (vrshrn_n_s16): Likewise.
2985         (vrshrn_n_s32): Likewise.
2986         (vrshrn_n_s64): Likewise.
2987         (vrshrn_n_u16): Likewise.
2988         (vrshrn_n_u32): Likewise.
2989         (vrshrn_n_u64): Likewise.
2990         (vqshrn_n_s16): Likewise.
2991         (vqshrn_n_s32): Likewise.
2992         (vqshrn_n_s64): Likewise.
2993         (vqshrn_n_u16): Likewise.
2994         (vqshrn_n_u32): Likewise.
2995         (vqshrn_n_u64): Likewise.
2996         (vqrshrn_n_s16): Likewise.
2997         (vqrshrn_n_s32): Likewise.
2998         (vqrshrn_n_s64): Likewise.
2999         (vqrshrn_n_u16): Likewise.
3000         (vqrshrn_n_u32): Likewise.
3001         (vqrshrn_n_u64): Likewise.
3002         (vqshrun_n_s16): Likewise.
3003         (vqshrun_n_s32): Likewise.
3004         (vqshrun_n_s64): Likewise.
3005         (vqrshrun_n_s16): Likewise.
3006         (vqrshrun_n_s32): Likewise.
3007         (vqrshrun_n_s64): Likewise.
3008         (vshl_n_s8): Likewise.
3009         (vshl_n_s16): Likewise.
3010         (vshl_n_s32): Likewise.
3011         (vshl_n_s64): Likewise.
3012         (vshl_n_u8): Likewise.
3013         (vshl_n_u16): Likewise.
3014         (vshl_n_u32): Likewise.
3015         (vshl_n_u64): Likewise.
3016         (vshlq_n_s8): Likewise.
3017         (vshlq_n_s16): Likewise.
3018         (vshlq_n_s32): Likewise.
3019         (vshlq_n_s64): Likewise.
3020         (vshlq_n_u8): Likewise.
3021         (vshlq_n_u16): Likewise.
3022         (vshlq_n_u32): Likewise.
3023         (vshlq_n_u64): Likewise.
3024         (vqshl_n_s8): Likewise.
3025         (vqshl_n_s16): Likewise.
3026         (vqshl_n_s32): Likewise.
3027         (vqshl_n_s64): Likewise.
3028         (vqshl_n_u8): Likewise.
3029         (vqshl_n_u16): Likewise.
3030         (vqshl_n_u32): Likewise.
3031         (vqshl_n_u64): Likewise.
3032         (vqshlq_n_s8): Likewise.
3033         (vqshlq_n_s16): Likewise.
3034         (vqshlq_n_s32): Likewise.
3035         (vqshlq_n_s64): Likewise.
3036         (vqshlq_n_u8): Likewise.
3037         (vqshlq_n_u16): Likewise.
3038         (vqshlq_n_u32): Likewise.
3039         (vqshlq_n_u64): Likewise.
3040         (vqshlu_n_s8): Likewise.
3041         (vqshlu_n_s16): Likewise.
3042         (vqshlu_n_s32): Likewise.
3043         (vqshlu_n_s64): Likewise.
3044         (vqshluq_n_s8): Likewise.
3045         (vqshluq_n_s16): Likewise.
3046         (vqshluq_n_s32): Likewise.
3047         (vqshluq_n_s64): Likewise.
3048         (vshll_n_s8): Likewise.
3049         (vshll_n_s16): Likewise.
3050         (vshll_n_s32): Likewise.
3051         (vshll_n_u8): Likewise.
3052         (vshll_n_u16): Likewise.
3053         (vshll_n_u32): Likewise.
3054         (vsra_n_s8): Likewise.
3055         (vsra_n_s16): Likewise.
3056         (vsra_n_s32): Likewise.
3057         (vsra_n_s64): Likewise.
3058         (vsra_n_u8): Likewise.
3059         (vsra_n_u16): Likewise.
3060         (vsra_n_u32): Likewise.
3061         (vsra_n_u64): Likewise.
3062         (vsraq_n_s8): Likewise.
3063         (vsraq_n_s16): Likewise.
3064         (vsraq_n_s32): Likewise.
3065         (vsraq_n_s64): Likewise.
3066         (vsraq_n_u8): Likewise.
3067         (vsraq_n_u16): Likewise.
3068         (vsraq_n_u32): Likewise.
3069         (vsraq_n_u64): Likewise.
3070         (vrsra_n_s8): Likewise.
3071         (vrsra_n_s16): Likewise.
3072         (vrsra_n_s32): Likewise.
3073         (vrsra_n_s64): Likewise.
3074         (vrsra_n_u8): Likewise.
3075         (vrsra_n_u16): Likewise.
3076         (vrsra_n_u32): Likewise.
3077         (vrsra_n_u64): Likewise.
3078         (vrsraq_n_s8): Likewise.
3079         (vrsraq_n_s16): Likewise.
3080         (vrsraq_n_s32): Likewise.
3081         (vrsraq_n_s64): Likewise.
3082         (vrsraq_n_u8): Likewise.
3083         (vrsraq_n_u16): Likewise.
3084         (vrsraq_n_u32): Likewise.
3085         (vrsraq_n_u64): Likewise.
3086         (vabs_s8): Likewise.
3087         (vabs_s16): Likewise.
3088         (vabs_s32): Likewise.
3089         (vabs_f32): Likewise.
3090         (vabsq_s8): Likewise.
3091         (vabsq_s16): Likewise.
3092         (vabsq_s32): Likewise.
3093         (vabsq_f32): Likewise.
3094         (vqabs_s8): Likewise.
3095         (vqabs_s16): Likewise.
3096         (vqabs_s32): Likewise.
3097         (vqabsq_s8): Likewise.
3098         (vqabsq_s16): Likewise.
3099         (vqabsq_s32): Likewise.
3100         (vneg_s8): Likewise.
3101         (vneg_s16): Likewise.
3102         (vneg_s32): Likewise.
3103         (vneg_f32): Likewise.
3104         (vnegq_s8): Likewise.
3105         (vnegq_s16): Likewise.
3106         (vnegq_s32): Likewise.
3107         (vnegq_f32): Likewise.
3108         (vqneg_s8): Likewise.
3109         (vqneg_s16): Likewise.
3110         (vqneg_s32): Likewise.
3111         (vqnegq_s8): Likewise.
3112         (vqnegq_s16): Likewise.
3113         (vqnegq_s32): Likewise.
3114         (vmvn_s8): Likewise.
3115         (vmvn_s16): Likewise.
3116         (vmvn_s32): Likewise.
3117         (vmvn_u8): Likewise.
3118         (vmvn_u16): Likewise.
3119         (vmvn_u32): Likewise.
3120         (vmvn_p8): Likewise.
3121         (vmvnq_s8): Likewise.
3122         (vmvnq_s16): Likewise.
3123         (vmvnq_s32): Likewise.
3124         (vmvnq_u8): Likewise.
3125         (vmvnq_u16): Likewise.
3126         (vmvnq_u32): Likewise.
3127         (vmvnq_p8): Likewise.
3128         (vcls_s8): Likewise.
3129         (vcls_s16): Likewise.
3130         (vcls_s32): Likewise.
3131         (vclsq_s8): Likewise.
3132         (vclsq_s16): Likewise.
3133         (vclsq_s32): Likewise.
3134         (vclz_s8): Likewise.
3135         (vclz_s16): Likewise.
3136         (vclz_s32): Likewise.
3137         (vclz_u8): Likewise.
3138         (vclz_u16): Likewise.
3139         (vclz_u32): Likewise.
3140         (vclzq_s8): Likewise.
3141         (vclzq_s16): Likewise.
3142         (vclzq_s32): Likewise.
3143         (vclzq_u8): Likewise.
3144         (vclzq_u16): Likewise.
3145         (vclzq_u32): Likewise.
3146         (vcnt_s8): Likewise.
3147         (vcnt_u8): Likewise.
3148         (vcnt_p8): Likewise.
3149         (vcntq_s8): Likewise.
3150         (vcntq_u8): Likewise.
3151         (vcntq_p8): Likewise.
3152         (vrecpe_f32): Likewise.
3153         (vrecpe_u32): Likewise.
3154         (vrecpeq_f32): Likewise.
3155         (vrecpeq_u32): Likewise.
3156         (vrsqrte_f32): Likewise.
3157         (vrsqrte_u32): Likewise.
3158         (vrsqrteq_f32): Likewise.
3159         (vrsqrteq_u32): Likewise.
3160         (vget_lane_s8): Likewise.
3161         (vget_lane_s16): Likewise.
3162         (vget_lane_s32): Likewise.
3163         (vget_lane_f32): Likewise.
3164         (vget_lane_u8): Likewise.
3165         (vget_lane_u16): Likewise.
3166         (vget_lane_u32): Likewise.
3167         (vget_lane_p8): Likewise.
3168         (vget_lane_p16): Likewise.
3169         (vget_lane_s64): Likewise.
3170         (vget_lane_u64): Likewise.
3171         (vgetq_lane_s8): Likewise.
3172         (vgetq_lane_s16): Likewise.
3173         (vgetq_lane_s32): Likewise.
3174         (vgetq_lane_f32): Likewise.
3175         (vgetq_lane_u8): Likewise.
3176         (vgetq_lane_u16): Likewise.
3177         (vgetq_lane_u32): Likewise.
3178         (vgetq_lane_p8): Likewise.
3179         (vgetq_lane_p16): Likewise.
3180         (vgetq_lane_s64): Likewise.
3181         (vgetq_lane_u64): Likewise.
3182         (vcvt_s32_f32): Likewise.
3183         (vcvt_f32_s32): Likewise.
3184         (vcvt_f32_u32): Likewise.
3185         (vcvt_u32_f32): Likewise.
3186         (vcvtq_s32_f32): Likewise.
3187         (vcvtq_f32_s32): Likewise.
3188         (vcvtq_f32_u32): Likewise.
3189         (vcvtq_u32_f32): Likewise.
3190         (vcvt_n_s32_f32): Likewise.
3191         (vcvt_n_f32_s32): Likewise.
3192         (vcvt_n_f32_u32): Likewise.
3193         (vcvt_n_u32_f32): Likewise.
3194         (vcvtq_n_s32_f32): Likewise.
3195         (vcvtq_n_f32_s32): Likewise.
3196         (vcvtq_n_f32_u32): Likewise.
3197         (vcvtq_n_u32_f32): Likewise.
3198         (vmovn_s16): Likewise.
3199         (vmovn_s32): Likewise.
3200         (vmovn_s64): Likewise.
3201         (vmovn_u16): Likewise.
3202         (vmovn_u32): Likewise.
3203         (vmovn_u64): Likewise.
3204         (vqmovn_s16): Likewise.
3205         (vqmovn_s32): Likewise.
3206         (vqmovn_s64): Likewise.
3207         (vqmovn_u16): Likewise.
3208         (vqmovn_u32): Likewise.
3209         (vqmovn_u64): Likewise.
3210         (vqmovun_s16): Likewise.
3211         (vqmovun_s32): Likewise.
3212         (vqmovun_s64): Likewise.
3213         (vmovl_s8): Likewise.
3214         (vmovl_s16): Likewise.
3215         (vmovl_s32): Likewise.
3216         (vmovl_u8): Likewise.
3217         (vmovl_u16): Likewise.
3218         (vmovl_u32): Likewise.
3219         (vmul_lane_s16): Likewise.
3220         (vmul_lane_s32): Likewise.
3221         (vmul_lane_f32): Likewise.
3222         (vmul_lane_u16): Likewise.
3223         (vmul_lane_u32): Likewise.
3224         (vmulq_lane_s16): Likewise.
3225         (vmulq_lane_s32): Likewise.
3226         (vmulq_lane_f32): Likewise.
3227         (vmulq_lane_u16): Likewise.
3228         (vmulq_lane_u32): Likewise.
3229         (vmla_lane_s16): Likewise.
3230         (vmla_lane_s32): Likewise.
3231         (vmla_lane_f32): Likewise.
3232         (vmla_lane_u16): Likewise.
3233         (vmla_lane_u32): Likewise.
3234         (vmlaq_lane_s16): Likewise.
3235         (vmlaq_lane_s32): Likewise.
3236         (vmlaq_lane_f32): Likewise.
3237         (vmlaq_lane_u16): Likewise.
3238         (vmlaq_lane_u32): Likewise.
3239         (vmlal_lane_s16): Likewise.
3240         (vmlal_lane_s32): Likewise.
3241         (vmlal_lane_u16): Likewise.
3242         (vmlal_lane_u32): Likewise.
3243         (vqdmlal_lane_s16): Likewise.
3244         (vqdmlal_lane_s32): Likewise.
3245         (vmls_lane_s16): Likewise.
3246         (vmls_lane_s32): Likewise.
3247         (vmls_lane_f32): Likewise.
3248         (vmls_lane_u16): Likewise.
3249         (vmls_lane_u32): Likewise.
3250         (vmlsq_lane_s16): Likewise.
3251         (vmlsq_lane_s32): Likewise.
3252         (vmlsq_lane_f32): Likewise.
3253         (vmlsq_lane_u16): Likewise.
3254         (vmlsq_lane_u32): Likewise.
3255         (vmlsl_lane_s16): Likewise.
3256         (vmlsl_lane_s32): Likewise.
3257         (vmlsl_lane_u16): Likewise.
3258         (vmlsl_lane_u32): Likewise.
3259         (vqdmlsl_lane_s16): Likewise.
3260         (vqdmlsl_lane_s32): Likewise.
3261         (vmull_lane_s16): Likewise.
3262         (vmull_lane_s32): Likewise.
3263         (vmull_lane_u16): Likewise.
3264         (vmull_lane_u32): Likewise.
3265         (vqdmull_lane_s16): Likewise.
3266         (vqdmull_lane_s32): Likewise.
3267         (vqdmulhq_lane_s16): Likewise.
3268         (vqdmulhq_lane_s32): Likewise.
3269         (vqdmulh_lane_s16): Likewise.
3270         (vqdmulh_lane_s32): Likewise.
3271         (vqrdmulhq_lane_s16): Likewise.
3272         (vqrdmulhq_lane_s32): Likewise.
3273         (vqrdmulh_lane_s16): Likewise.
3274         (vqrdmulh_lane_s32): Likewise.
3275         (vmul_n_s16): Likewise.
3276         (vmul_n_s32): Likewise.
3277         (vmul_n_f32): Likewise.
3278         (vmul_n_u16): Likewise.
3279         (vmul_n_u32): Likewise.
3280         (vmulq_n_s16): Likewise.
3281         (vmulq_n_s32): Likewise.
3282         (vmulq_n_f32): Likewise.
3283         (vmulq_n_u16): Likewise.
3284         (vmulq_n_u32): Likewise.
3285         (vmull_n_s16): Likewise.
3286         (vmull_n_s32): Likewise.
3287         (vmull_n_u16): Likewise.
3288         (vmull_n_u32): Likewise.
3289         (vqdmull_n_s16): Likewise.
3290         (vqdmull_n_s32): Likewise.
3291         (vqdmulhq_n_s16): Likewise.
3292         (vqdmulhq_n_s32): Likewise.
3293         (vqdmulh_n_s16): Likewise.
3294         (vqdmulh_n_s32): Likewise.
3295         (vqrdmulhq_n_s16): Likewise.
3296         (vqrdmulhq_n_s32): Likewise.
3297         (vqrdmulh_n_s16): Likewise.
3298         (vqrdmulh_n_s32): Likewise.
3299         (vmla_n_s16): Likewise.
3300         (vmla_n_s32): Likewise.
3301         (vmla_n_f32): Likewise.
3302         (vmla_n_u16): Likewise.
3303         (vmla_n_u32): Likewise.
3304         (vmlaq_n_s16): Likewise.
3305         (vmlaq_n_s32): Likewise.
3306         (vmlaq_n_f32): Likewise.
3307         (vmlaq_n_u16): Likewise.
3308         (vmlaq_n_u32): Likewise.
3309         (vmlal_n_s16): Likewise.
3310         (vmlal_n_s32): Likewise.
3311         (vmlal_n_u16): Likewise.
3312         (vmlal_n_u32): Likewise.
3313         (vqdmlal_n_s16): Likewise.
3314         (vqdmlal_n_s32): Likewise.
3315         (vmls_n_s16): Likewise.
3316         (vmls_n_s32): Likewise.
3317         (vmls_n_f32): Likewise.
3318         (vmls_n_u16): Likewise.
3319         (vmls_n_u32): Likewise.
3320         (vmlsq_n_s16): Likewise.
3321         (vmlsq_n_s32): Likewise.
3322         (vmlsq_n_f32): Likewise.
3323         (vmlsq_n_u16): Likewise.
3324         (vmlsq_n_u32): Likewise.
3325         (vmlsl_n_s16): Likewise.
3326         (vmlsl_n_s32): Likewise.
3327         (vmlsl_n_u16): Likewise.
3328         (vmlsl_n_u32): Likewise.
3329         (vqdmlsl_n_s16): Likewise.
3330         (vqdmlsl_n_s32): Likewise.
3332 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3334         * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
3335         Add cost of alu.arith in simple SImode case.
3337 2014-11-18  Jiong Wang  <jiong.wang@arm.com>
3339         * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
3340         registers.
3342 2014-11-18  Marat Zakirov  <m.zakirov@samsung.com>
3344         * opts.c (finish_options): Disable aggressive opts for sanitizer.  
3345         (common_handle_option): Move code to finish_options.  
3347 2014-11-18  Yury Gribov  <y.gribov@samsung.com>
3349         PR sanitizer/63802
3350         * stor-layout.c (min_align_of_type): Respect user alignment
3351         more.
3353 2014-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3355         * passes.c (remove_cgraph_node_from_order): New.
3356         (do_per_function_toporder): Register cgraph removal
3357         hook.
3359 2014-11-17  Terry Guo  <terry.guo@arm.com>
3361         * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
3362         * config/arm/arm.md (generic_sched): Exclude cortex-m7.
3363         (generic_vfp): Likewise.
3364         * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
3366 2014-11-17  Vladimir Makarov  <vmakarov@redhat.com>
3368         PR rtl-optimization/63906
3369         * lra-remat.c (operand_to_remat): Check SP and
3370         frame_pointer_required.
3372 2014-11-17  Mircea Namolaru  <mircea.namolaru@inria.fr>
3374         * doc/invoke.texi (floop-unroll-and-jam): Document
3375         (loop-unroll-jam-size): Likewise.
3376         (loop-unroll-jam-depth): Likewise.
3377         * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
3378         (getScheduleForBandList): Replaced unsafe union_map reuse.
3380 2014-11-17  Andrew Pinski  <apinski@cavium.com>
3382         * config/aarch64/thunderx.md: Remove copyright which should not
3383         have been there.
3385 2014-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
3386             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3388         * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
3389         Altivec style vector loads that ignore the bottom 3 bits of the
3390         address.
3391         (rs6000_debug_addr_mask): New function to print the addr_mask
3392         values if debugging.
3393         (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
3394         out addr_mask.
3395         (rs6000_setup_reg_addr_masks): Add support for Altivec style
3396         vector loads that ignore the bottom 3 bits of the address.  Allow
3397         pre-increment and pre-decrement on floating point, even if the
3398         -mupper-regs-{sf,df} options were used.
3399         (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
3400         -mupper-regs-df.  Add support for -mupper-regs-sf.  Rearrange code
3401         placement for direct move support.
3402         (rs6000_option_override_internal): Add checks for -mupper-regs-df
3403         requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
3404         If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
3405         depending on the underlying cpu.
3406         (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
3407         (rs6000_secondary_reload_toc_costs): Helper function to identify
3408         costs of a TOC load for secondary reload support.
3409         (rs6000_secondary_reload_memory): Helper function for secondary
3410         reload, to determine if a particular memory operation is directly
3411         handled by the hardware, or if it needs support from secondary
3412         reload to create a valid address.
3413         (rs6000_secondary_reload): Rework code, to be clearer.  If the
3414         appropriate -mupper-regs-{sf,df} is used, use FPR registers to
3415         reload scalar values, since the FPR registers have D-form
3416         addressing. Move most of the code handling memory to the function
3417         rs6000_secondary_reload_memory, and use the reg_addr structure to
3418         determine what type of address modes are supported.  Print more
3419         debug information if -mdebug=addr.
3420         (rs6000_secondary_reload_inner): Rework entire function to be more
3421         general.  Use the reg_addr bits to determine what type of
3422         addressing is supported.
3423         (rs6000_preferred_reload_class): Rework.  Move constant handling
3424         into a single place.  Prefer using FLOAT_REGS for scalar floating
3425         point.
3426         (rs6000_secondary_reload_class): Use a FPR register to move a
3427         value from an Altivec register to a GPR, and vice versa.  Move VSX
3428         handling above traditional floating point.
3430         * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
3431         Delete some spaces in the constraints.
3432         (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
3433         allow using FPR registers to load/store an Altivec register for
3434         scalar floating point types.
3435         (SF->SF move peephole2): Likewise.
3436         (DFmode splitter): Add a define_split to move floating point
3437         constants to the constant pool before register allocation.
3438         Normally constants are put into the pool immediately, but
3439         -ffast-math delays putting them into the constant pool for the
3440         reciprocal approximation support.
3441         (SFmode splitter): Likewise.
3443         * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
3444         (-mupper-regs-sf): Likewise.
3446         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3447         __UPPER_REGS_DF__ if -mupper-regs-df.  Define __UPPER_REGS_SF__ if
3448         -mupper-regs-sf.
3449         (-mupper-regs): New combination option that sets -mupper-regs-sf
3450         and -mupper-regs-df by default if the cpu supports the instructions.
3452         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3453         -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
3455         * config/rs6000/predicates.md (memory_fp_constant): New predicate
3456         to return true if the operand is a floating point constant that
3457         must be put into the constant pool, before register allocation
3458         occurs.
3460         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
3461         -mupper-regs-df by default.
3462         (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
3463         (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
3464         various -mcpu=... options.
3465         (power7 cpu): Enable -mupper-regs-df by default.
3467         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3468         -mupper-regs.
3470 2014-11-17  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3472         * ira-conflicts.c (build_conflict_bit_table): Add the current
3473         object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
3475 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3477         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3478         (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
3479         (devirtualization_time_bonus): Use it.
3480         (ipcp_discover_new_direct_edges): Likewise.
3481         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
3482         * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
3484 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3486         * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
3487         to optimization_default_node.
3489 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3491         * cgraphunit.c (analyze_functions): Use opt_for_fn.
3492         * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
3494 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3496         * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
3497         (cgraph_node::cannot_return_p): Likewise.
3498         (cgraph_edge::cannot_lead_to_return_p): Likewise.
3499         (cgraph_edge::maybe_hot_p): Likewise.
3501 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3503         * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
3504         (optimize_function_for_size_p): Likewise.
3505         (probably_never_executed): Likewise; replace cfun by fun.
3507 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
3509         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
3510         variant reading from memory and assembling to ld1.
3512         * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
3513         vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
3514         vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
3515         vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
3516         vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
3517         vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
3518         vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
3520 2014-11-17  Jason Merrill  <jason@redhat.com>
3522         * tree-inline.c (copy_fn): New.
3523         * tree-inline.h: Declare it.
3525 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
3527         * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
3528         * config/aarch64/aarch64-simd-builtins.def (create): Remove.
3529         * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
3530         * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
3531         vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
3532         * config/aarch64/iterators.md (VD1): Remove.
3534 2014-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3536         * config/aarch64/aarch64-cores.def (cortex-a53): Remove
3537         AARCH64_FL_CRYPTO from feature flags.
3538         (cortex-a57): Likewise.
3539         (cortex-a57.cortex-a53): Likewise.
3541 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
3543         * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
3544         DECL_FUNCTION_SPECIFIC_TARGET.
3545         * i386.c (ix86_set_current_function): Handle explicit default options.
3547 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3549         * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
3550         instead of BNDmode.
3551         (expand_builtin_mempcpy_with_bounds): Likewise.
3552         (expand_builtin_memset_with_bounds): Likewise.
3554 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3556         * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
3557         ipa-ref.h, plugin-api.h.
3558         (get_string_length): Handle calls with bounds.
3559         (adjust_last_stmt): Likewise.
3560         (handle_builtin_strchr): Likewise.
3561         (handle_builtin_strcpy): Likewise.
3562         (handle_builtin_memcpy): Likewise.
3563         (handle_builtin_strcat): Likewise.
3565 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3567         * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
3568         (chkp_get_nochk_fndecl): New.
3569         (chkp_optimize_string_function_calls): New.
3570         (chkp_opt_execute): Call chkp_optimize_string_function_calls.
3571         * tree-cfg.h (insert_cond_bb): New.
3572         * tree-cfg.c (insert_cond_bb): New.
3574 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3576         * tree-core.h (built_in_class): Add builtin codes to be used
3577         by Pointer Bounds Checker for instrumented builtin functions.
3578         * tree-streamer-in.c: Include ipa-chkp.h.
3579         (streamer_get_builtin_tree): Created instrumented decl if
3580         required.
3581         * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
3582         * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
3583         function decls.
3584         (chkp_maybe_clone_builtin_fndecl): New.
3585         (chkp_maybe_create_clone): Support builtin function decls.
3586         (chkp_versioning): Clone builtin functions.
3587         * tree-chkp.c (chkp_instrument_normal_builtin): New.
3588         (chkp_add_bounds_to_call_stmt): Support builtin functions.
3589         (chkp_replace_function_pointer): Likewise.
3590         * builtins.c (expand_builtin_memcpy_args): New.
3591         (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
3592         (expand_builtin_memcpy_with_bounds): New.
3593         (expand_builtin_mempcpy_with_bounds): New.
3594         (expand_builtin_mempcpy_args): Add orig_exp arg. Support
3595         BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
3596         (expand_builtin_memset_with_bounds): New.
3597         (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
3598         (expand_builtin_with_bounds): New.
3599         * builtins.h (expand_builtin_with_bounds): New.
3600         * expr.c (expand_expr_real_1): Support instrumented builtin calls.
3602 2014-11-17  Dodji Seketeli  <dodji@redhat.com>
3604         * gimple.h (gimple_set_visited, gimple_visited_p)
3605         (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
3606         comments to these accessors.
3608 2014-11-17  Georg-Johann Lay  <avr@gjlay.de>
3610         * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
3611         Set avr_log_details to "all".
3613 2014-11-17  Richard Biener  <rguenther@suse.de>
3615         PR middle-end/63898
3616         * match.pd: Guard X / CST -> X * CST' transform against
3617         zero CST.
3619 2014-11-17  Terry Guo  <terry.guo@arm.com>
3621         * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
3622         format.
3624 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3626         * ifcvt.c (HAVE_cbranchcc4): Define.
3627         (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
3628         Use HAVE_cbranchcc4.
3630 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3632         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3633         aarch64_convert_mode, aarch64_gen_ccmp_first,
3634         aarch64_gen_ccmp_next): New functions.
3635         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
3637 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3639         * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
3640         * aarch64.c (aarch64_nzcv_codes): New data.
3641         (aarch64_ccmp_mode_to_code): New.
3642         (aarch64_print_operand): Output nzcv.
3643         config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
3644         New patterns.
3645         (cstore<mode>4): Handle ccmp_cc_register.
3646         * config/aarch64/predicates.md (const0_operand): New.
3648 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3650         * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
3651         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
3652         extacted from aarch64_get_condition_code.
3653         (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
3654         config/aarch64/predicates.md (ccmp_cc_register): New predicate.
3656 014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3658         * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
3659         aarch64_ccmp_operand): New constraints.
3661 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3663         * Makefile.in: Add ccmp.o.
3664         * ccmp.c: New file.
3665         * ccmp.h: New file.
3666         * expr.c: include "ccmp.h"
3667         (expand_cond_expr_using_cmove): Handle VOIDmode.
3668         (expand_expr_real_1): Try to expand ccmp.
3670 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3672         * cfgexpand.c (expand_gimple_cond): Check ccmp.
3673         * expmed.c (emit_cstore): Make it global.
3674         * expmed.h: #include "insn-codes.h"
3675         (emit_cstore): New prototype.
3676         * expr.c (expand_operands): Make it global.
3677         * expr.h (expand_operands): New prototype.
3678         * optabs.c (get_rtx_code): Make it global.
3679         * optabs.h (get_rtx_code): New prototype.
3681 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3683         * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
3684         * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
3685         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
3687 2014-11-16  Patrick Palka  <ppalka@gcc.gnu.org>
3689         PR middle-end/63790
3690         * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
3691         Always combine comparisons or conversions from booleans.
3693 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
3695         * ipa-polymorphic-call.c
3696         (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
3697         (ipa_polymorphic_call_context::meet_speculation_with): New function.
3698         (ipa_polymorphic_call_context::combine_with): Handle types in construction
3699         better.
3700         (ipa_polymorphic_call_context::equal_to): Do not bother about useless
3701         speculation.
3702         (ipa_polymorphic_call_context::meet_with): New function.
3703         * cgraph.h (class ipa_polymorphic_call_context): Add
3704         meet_width, meet_speculation_with; constify speculation_consistent_p.
3705         * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
3706         context.
3707         (propagate_context_accross_jump_function): Likewise; be more cureful.
3708         about set_contains_variable.
3709         (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
3710         (find_more_scalar_values_for_callers_subset): Fix.
3711         (find_more_contexts_for_caller_subset): Perform meet operation.
3713 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
3715         * passes.c (execute_one_pass): Do not apply all transforms prior
3716         every simple IPA pass.
3717         * cgraphunit.c: Do not include fibheap.h
3718         (expand_thunk): Use get_untransformed_body.
3719         (cgraph_node::expand): Likewise.
3720         * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
3721         * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
3722         (cgraph_node::get_untransformed_body): Break out from ...
3723         (cgraph_node::get_body): ... here; add code to apply all transforms.
3724         * cgraph.h (cgraph_node): Add get_untransformed_body.
3725         * ipa-icf.c (sem_function::init): Use get_untransformed_body.
3726         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3727         * tree-inline.c (expand_call_inline): LIkewise.
3728         * i386.c (ix86_reset_to_default_globals): Break out from ...
3729         (ix86_set_current_function): ... here;
3730         (ix86_reset_previous_fndecl): Use it.
3731         (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
3733 2014-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3735         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
3736         * doc/tm.texi: Regenerate.
3738 2014-11-16  Uros Bizjak  <ubizjak@gmail.com>
3740         * config/sh/sh.c: Do not include algorithm.
3741         (sh_emit_scc_to_t): Replace open-coded swap with std::swap
3742         to swap values.
3743         (sh_emit_compare_and_branch): Ditto.
3744         (sh_emit_compare_and_set): Ditto.
3745         * config/sh/sh.md (replacement peephole2): Ditto.
3746         (cstore4_media): Ditto.
3747         (*fmasf4): Ditto.
3749 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
3751         * lra-remat.c (cand_transf_func): Process regno for
3752         rematerialization too.
3753         * lra.c (lra): Switch on rematerialization pass.
3755 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
3757         * lra.c (lra): Switch off rematerialization pass.
3759 2014-11-15  Marc Glisse  <marc.glisse@inria.fr>
3761         * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
3762         _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
3763         instead of builtins.
3764         * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
3765         typedefs.
3766         (_mm_sqrt_sd): Fix comment.
3767         (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3768         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3769         _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3770         _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
3771         _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
3772         _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
3773         _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
3774         _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
3775         Use vector extensions instead of builtins.
3776         * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
3777         _mm_mullo_epi32): Likewise.
3778         * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
3779         New typedefs.
3780         (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
3781         _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
3782         Use vector extensions instead of builtins.
3783         * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
3784         _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
3785         _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
3786         _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
3787         _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
3788         _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
3789         _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
3790         * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
3791         New typedefs.
3792         (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
3793         _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
3794         _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
3795         _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
3796         _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
3797         _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
3798         _mm512_div_ps): Use vector extensions instead of builtins.
3799         * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
3800         _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
3801         * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
3802         * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
3803         Likewise.
3805 2014-11-15  Jan Hubicka <hubicka@ucw.cz>
3807         * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
3808         * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
3809         * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
3810         * opth-gen.awk: Add prototype of cl_optimization_hash.
3811         * tree-streamer-in.c (unpack_ts_optimization): Remove.
3812         (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
3813         * tree-streamer-out.c (pack_ts_optimization): Remove.
3814         (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
3816 2014-11-15  Mircea Namolaru  <mircea.namolaru@inria.fr>
3818         * common.opt (flag_loop_unroll_and_jam): New flag.
3819         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
3820         jam flag.
3821         (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
3822         * graphite-poly.h (struct poly_bb:map_sepclass): New field
3823         * graphite-poly.c (new_poly_bb): Initialization for new field.
3824         (apply_poly_transforms): Support for unroll and jam flag.
3825         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
3826         separation class.
3827         (generate_luj_sepclass_opt): Build the separation class option.
3828         (generate_luj_options): Set unroll and jam options.
3829         (set_options): Support for unroll and jam options.
3830         (scop_to_isl_ast): Likewise
3831         * graphite-optimize-isl.c (getPrevectorMap_full): New function for
3832         computing the separating class map.
3833         (optimize_isl): Support for the separating class map.
3834         (apply_schedule_map_to_scop): Likewise.
3835         (getScheduleMap): Likewise.
3836         (getScheduleForBand): Likewise.
3837         (getScheduleForBandList): Likewise.
3838         * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
3839         * toplev.c (process_options) Likewise.
3841 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3843         * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
3844         from...
3845         (replace_loop_annotate): ...here.  Call it on the header and on the
3846         latch block, if any.  Restore proper behavior of final cleanup.
3848 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3850         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
3851         for max-completely-peeled-insns limit.
3853 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
3855         * ipa-prop.h (ipa_known_type_data): Remove.
3856         (ipa_binfo_from_known_type_jfunc): Remove.
3858 2014-11-14  Andrew Pinski  <apinski@cavium.com>
3860         * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
3861         over to thunderx.
3862         * config/aarch64/aarch64.md: Include thunderx.md.
3863         (generic_sched): Set to no for thunderx.
3864         * config/aarch64/thunderx.md: New file.
3866 2014-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3868         * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
3869         tests for 0.0.
3871         * config/rs6000/vector.md (VEC_R): Move secondary reload support
3872         insns to rs6000.md from vector.md.
3873         (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
3874         (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
3875         (vec_reload_and_plus_<mptrsize>): Likewise.
3877         * config/rs6000/rs6000.md (Fa): New mode attribute to give
3878         constraint for the Altivec registers for a type.
3879         (RELOAD): New mode iterator for all of the types that have
3880         secondary reload address support to load up a base register.
3881         (extendsfdf2_fpr): Use correct constraint.
3882         (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
3883         instruction.
3884         (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
3885         Generate the non-VSX instruction if all registers were FPRs.  Do
3886         not use the patterns in vsx.md for scalar operations.
3887         (floatsi<mode>2_lfiwax_mem): Likewise.
3888         (floatunssi<mode>2_lfiwzx): Likewise.
3889         (floatunssi<mode>2_lfiwzx_mem): Likewise.
3890         (fix_trunc<mode>di2_fctidz): Likewise.
3891         (fixuns_trunc<mode>di2_fctiduz): Likewise.
3892         (fctiwz_<mode>): Likewise.
3893         (fctiwuz_<mode>): Likewise.
3894         (friz): Likewise.
3895         (floatdidf2_fpr): Likewise.
3896         (floatdidf2_mem): Likewise.
3897         (floatunsdidf2): Likewise.
3898         (floatunsdidf2_fcfidu): Likewise.
3899         (floatunsdidf2_mem): Likewise.
3900         (floatdisf2_fcfids): Likewise.
3901         (floatdisf2_mem): Likewise.
3902         (floatdisf2_internal1): Add explicit test for not FCFIDS to make
3903         it more obvious that the code is for pre-ISA 2.06 machines.
3904         (floatdisf2_internal2): Likewise.
3905         (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
3906         Generate the non-VSX instruction if all registers were FPRs.  Do
3907         not use the patterns in vsx.md for scalar operations.
3908         (floatunsdisf2_mem): Likewise.
3909         (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
3910         handlers here from vector.md, and expand the types we generate
3911         reload handlers for.
3912         (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
3913         (vec_reload_and_plus_<mptrsize>): Likewise.
3915         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
3916         vector forms of the instructions.  Move VSX scalar forms to
3917         rs6000.md, and add support for -mupper-regs-sf.
3918         (vsx_floatuns<VSi><mode>2): Likewise.
3919         (vsx_fix_trunc<mode><VSi>2): Likewise.
3920         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
3921         (vsx_float_fix_<mode>2): Delete DF version, rename to
3922         vsx_float_fix_v2df2.
3923         (vsx_float_fix_v2df2): Likewise.
3925 2014-11-14  Martin Jambor  <mjambor@suse.cz>
3927         * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
3928         (ipa_pass_through_data): Removed field type_preserved.
3929         (ipa_ancestor_jf_data): removed fields type and type_preserved.
3930         (ipa_jump_func): Removed field known_type.
3931         (ipa_get_jf_known_type_offset): Removed.
3932         (ipa_get_jf_known_type_base_type): Likewise.
3933         (ipa_get_jf_known_type_component_type): Likewise.
3934         (ipa_get_jf_ancestor_type): Likewise.
3935         * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
3936         (ipa_get_jf_pass_through_result): Likewise.
3937         (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
3938         (values_equal_for_ipcp_p): Removed BINFO handling.
3939         (ipa_get_indirect_edge_target_1): Updated comment.
3940         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
3941         of IPA_JF_KNOWN_TYPE jump functions.  Do not print removed fields.
3942         (ipa_set_jf_known_type): Removed.
3943         (ipa_set_jf_simple_pass_through): Do not set removed fields.  Update
3944         all callers.
3945         (ipa_set_jf_arith_pass_through): Likewise.
3946         (ipa_set_ancestor_jf): Likewise.
3947         (ipa_binfo_from_known_type_jfunc): Removed.
3948         (prop_type_change_info): Removed fields known_current_type and
3949         multiple_types_encountered.
3950         (extr_type_from_vtbl_ptr_store): Removed.
3951         (check_stmt_for_type_change): Do not attempt to identify changed type.
3952         (detect_type_change_from_memory_writes): Do not set the removed fields,
3953         always set jfunc to unknown.
3954         (compute_complex_assign_jump_func): Do not detect dynamic type change.
3955         (compute_complex_ancestor_jump_func): Likewise.
3956         (compute_known_type_jump_func): Removed.
3957         (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
3958         change.  Do not comute known type jump functions.
3959         (combine_known_type_and_ancestor_jfs): Removed.
3960         (update_jump_functions_after_inlining): Removed handling of
3961         IPA_JF_KNOWN_TYPE jump functions.  Do not set removed fields.
3962         (ipa_write_jump_function): Do not stream removed fields or known type
3963         jump functions.
3964         (ipa_read_jump_function): Likewise.
3966 2014-11-14  Vladimir Makarov  <vmakarov@redhat.com>
3968         * lra-int.h (lra_create_live_ranges): Add parameter.
3969         * lra-lives.c (temp_bitmap): Move higher.
3970         (initiate_live_solver): Move temp_bitmap initialization into
3971         lra_live_ranges_init.
3972         (finish_live_solver): Move temp_bitmap clearing into
3973         live_ranges_finish.
3974         (process_bb_lives): Add parameter.  Use it to control live info
3975         update and dead insn elimination.  Pass it to mark_regno_live and
3976         mark_regno_dead.
3977         (lra_create_live_ranges): Add parameter.  Pass it to
3978         process_bb_lives.
3979         (lra_live_ranges_init, lra_live_ranges_finish): See changes in
3980         initiate_live_solver and finish_live_solver.
3981         * lra-remat.c (do_remat): Process insn non-operand hard regs too.
3982         Use temp_bitmap to update avail_cands.
3983         * lra.c (lra): Pass new parameter to lra_create_live_ranges.  Move
3984         check with lra_need_for_spill_p after live range pass.  Switch on
3985         rematerialization pass.
3987 2014-11-14  Martin Jambor  <mjambor@suse.cz>
3989         * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
3990         agg_preserved flag instead.
3991         (ipa_get_jf_ancestor_type_preserved): Likewise.
3992         (ipa_node_params): Rename known_vals to known_csts, update all users.
3993         New field known_contexts.
3994         (ipa_get_indirect_edge_target): Update prototype.
3995         (ipcp_poly_ctx_values_pool): Declare.
3996         (ipa_context_from_jfunc): Likewise.
3997         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
3998         * cgraph.h (ipa_polymorphic_call_context): New method equal_to.  New
3999         parameter newline of method dump.
4000         * ipa-cp.c (ctxlat): New field.
4001         (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
4002         (ipcp_poly_ctx_values_pool):New variable.
4003         (ipa_get_poly_ctx_lat): New function.
4004         (print_ipcp_constant_value): New overloaded function for contexts.
4005         (print_all_lattices): Also print contexts.
4006         (ipa_topo_info): New field contexts;
4007         (set_all_contains_variable): Also set the flag in the context lattice.
4008         (initialize_node_lattices): Likewise for flag bottom.
4009         (ipa_get_jf_ancestor_result): Removed BINFO handling.
4010         (ipa_value_from_jfunc): Likewise.
4011         (ipa_context_from_jfunc): New function.
4012         (values_equal_for_ipcp_p): New overloaded function for contexts.
4013         (allocate_and_init_ipcp_value): Construct the value.
4014         (allocate_and_init_ipcp_value): New overloaded function for contexts.
4015         (propagate_scalar_accross_jump_function): Removed handling of
4016         KNOWN_TYPE jump functions.
4017         (propagate_context_accross_jump_function): New function.
4018         (propagate_constants_accross_call): Also propagate contexts.
4019         (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
4020         (ipa_get_indirect_edge_target): Likewise.
4021         (devirtualization_time_bonus): Likewise.
4022         (gather_context_independent_values): Create and populate known_contexts
4023         vector rather than known_binfos.
4024         (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
4025         (estimate_local_effects): Likewise.
4026         (add_all_node_vals_to_toposort): Also add contexts to teir topological
4027         sort.
4028         (ipcp_propagate_stage): Also propagate effects of contexts.
4029         (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
4030         ipa_get_indirect_edge_target_1.
4031         (cgraph_edge_brings_value_p): New overloaded function for contexts.
4032         (create_specialized_node): Work on contexts rather than BINFOs.
4033         (find_more_contexts_for_caller_subset): New function.
4034         (known_contexts_useful_p): New function.
4035         (copy_useful_known_contexts): Likewise.
4036         (modify_known_vectors_with_val): Likewise.
4037         (ipcp_val_in_agg_replacements_p): Renamed to
4038         ipcp_val_agg_replacement_ok_p, return true for all offset indicating
4039         non-aggregate.
4040         (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
4041         (decide_about_value): Work on contexts rather than BINFOs.
4042         (decide_whether_version_node): Likewise.
4043         (ipcp_driver): Initialize the new alloc pool.
4044         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
4045         printing of edge contexts.
4046         (ipa_set_ancestor_jf): Replace assert with conditional setting of
4047         type_preserved to false.
4048         (update_jump_functions_after_inlining): Use access function instead of
4049         reading agg_preserved directly.  Store combined context in the ancestor
4050         case.
4051         (try_make_edge_direct_virtual_call): Work on contexts rather than
4052         BINFOs.
4053         (update_indirect_edges_after_inlining): Get context from
4054         ipa_context_from_jfunc.
4055         (ipa_free_node_params_substructures): Free also known_contexts.
4056         (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
4057         (ipa_free_all_structures_after_iinln): Likewise.
4058         * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
4059         contexts rather than BINFOs.
4060         (estimate_edge_devirt_benefit): Likewise.
4061         (estimate_edge_size_and_time): Likewise.
4062         (estimate_calls_size_and_time): Likewise.
4063         (estimate_node_size_and_time): Likewise.
4064         (estimate_ipcp_clone_size_and_time): Likewise.
4065         (do_estimate_edge_time): Likewise.
4066         (do_estimate_edge_size): Likewise.
4067         (do_estimate_edge_hints): Likewise.
4068         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
4069         parameter newline, ouput newline only when it is set.
4070         (ipa_polymorphic_call_context::equal_to): New method.
4072 2014-11-14  Martin Jambor  <mjambor@suse.cz>
4074         * ipa-cp.c (ipcp_value_source): Converted to a template class.  All
4075         users converted to the same specialization as the using class/function
4076         or specialization on tree.
4077         (ipcp_value): Likewise.
4078         (ipcp_lattice): Likewise.
4079         (ipcp_agg_lattice): Now derived from tree specialization of
4080         ipcp_lattice.
4081         (values_topo): Moved to new class value_topo_info.
4082         (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
4083         Updated all callers.
4084         (print_lattice): Turned into ipcp_lattice::print.  Updated all
4085         callers.
4086         (value_topo_info): New class template.
4087         (ipa_topo_info): New field constants.  New constructor.
4088         (build_toporder_info): Do not clear stack_top, only checkign assert
4089         it.
4090         (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
4091         Updated all callers.
4092         (set_lattice_contains_variable): Turned into
4093         ipcp_lattice::set_contains_variable.  Updated all callers.
4094         (add_value_source): Turned into ipcp_value::add_source.  Updated all
4095         callers.
4096         (allocate_and_init_ipcp_value): New function.
4097         (add_value_to_lattice): Turned into ipcp_lattice::add_value.  Last
4098         parameter got default a value.  Updated all callers.
4099         (add_scalar_value_to_lattice): Removed, users converted to using
4100         ipcp_lattice::add_value with default value of the last parameter.
4101         (add_val_to_toposort): Turned to value_topo_info::add_val.  Updated
4102         all callers.
4103         (propagate_effects): Made method of value_topo_info.
4104         (cgraph_edge_brings_value_p): Now a template function.
4105         (get_info_about_necessary_edges): Likewise.
4106         (gather_edges_for_value): Likewise.
4107         (perhaps_add_new_callers): Likewise.
4108         (decide_about_value): Likewise.
4109         * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
4111 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
4113         * doc/install.texi (--with-diagnostics-color=): Document.
4115         * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
4116         IFN_GOMP_SIMD_LANE without lhs as useless.
4118         * ipa-pure-const.c (struct funct_state_d): Add can_free field.
4119         (varying_state): Add true for can_free.
4120         (check_call): For builtin or internal !nonfreeing_call_p set
4121         local->can_free.
4122         (check_stmt): For asm volatile and asm with "memory" set
4123         local->can_free.
4124         (analyze_function): Clear local->can_free initially, continue
4125         calling check_stmt until all flags are computed, dump can_free
4126         flag.
4127         (pure_const_write_summary): Write can_free flag.
4128         (pure_const_read_summary): Read it back.
4129         (propagate_pure_const): Propagate also can_free flag, set
4130         w->nonfreeing_fn if it is false after propagation.
4131         * cgraph.h (cgraph_node): Add nonfreeing_fn member.
4132         * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
4133         (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
4134         Also return true for IFN_ABNORMAL_DISPATCHER.
4135         * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
4136         * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
4137         (input_overwrite_node): Read it back.
4139 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
4140             Marek Polacek  <polacek@redhat.com>
4142         * sanopt.c: Include tree-ssa-operands.h.
4143         (struct sanopt_info): Add has_freeing_call_p,
4144         has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
4145         imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
4146         being_visited_p fields.
4147         (struct sanopt_ctx): Add asan_check_map field.
4148         (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
4149         maybe_optimize_asan_check_ifn): New functions.
4150         (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
4151         internal calls.
4152         (pass_sanopt::execute): Call sanopt_optimize even for
4153         -fsanitize=address.
4154         * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
4155         internal calls.
4157 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
4159         * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
4160         'if (extract_scalar_result)' to the only place that it is true.
4162 2014-11-14  H.J. Lu  <hongjiu.lu@intel.com>
4164         * config.gcc (default_gnu_indirect_function): Set to yes
4165         for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
4166         Android nor uclibc.
4168 2014-11-14  Felix Yang  <felix.yang@huawei.com>
4169             Jiji Jiang  <jiangjiji@huawei.com>
4171         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
4172         VALL mode iterator instead of VALLDI.
4175 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
4177         * optc-save-gen.awk: Output cl_target_option_eq,
4178         cl_target_option_hash, cl_target_option_stream_out,
4179         cl_target_option_stream_in functions.
4180         * opth-gen.awk: Output prototypes for
4181         cl_target_option_eq and cl_target_option_hash.
4182         * lto-streamer.h (cl_target_option_stream_out,
4183         cl_target_option_stream_in): Declare.
4184         * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
4185         (cl_option_hash_eq): Use cl_target_option_eq.
4186         * tree-streamer-in.c (unpack_value_fields): Stream in
4187         TREE_TARGET_OPTION.
4188         * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
4189         DECL_FUNCTION_SPECIFIC_TARGET.
4190         (hash_tree): Hash TREE_TARGET_OPTION; visit
4191         DECL_FUNCTION_SPECIFIC_TARGET.
4192         * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
4193         TS_TARGET_OPTION.
4194         (streamer_write_tree_body): Output TS_TARGET_OPTION.
4196 2014-11-14  Richard Biener  <rguenther@suse.de>
4198         * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
4199         valueization hook defaulted to no_follow_ssa_edges.
4200         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
4201         2nd valueization hook to gimple_simplify.
4202         * tree-ssa-ccp.c (valueize_op_1): New function to be
4203         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4204         (ccp_fold): Adjust.
4205         * tree-vrp.c (vrp_valueize_1): New function to be
4206         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4207         (vrp_visit_assignment_or_call): Adjust.
4209 2014-11-14  Marek Polacek  <polacek@redhat.com>
4211         * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
4212         that overflows when SANITIZE_SI_OVERFLOW is on.  Guard -(-A)
4213         folding with TYPE_OVERFLOW_SANITIZED.
4215 2014-11-14  Marek Polacek  <polacek@redhat.com>
4217         PR sanitizer/63839
4218         * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
4219         ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
4220         * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
4221         Define.
4222         * builtins.c (fold_builtin_0): Don't include ubsan.h.  Don't
4223         instrument BUILT_IN_UNREACHABLE here.
4224         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
4225         const.
4226         * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
4227         * tree-ssa-ccp.c (optimize_unreachable): Bail out if
4228         SANITIZE_UNREACHABLE.
4229         * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
4230         * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
4232 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
4234         * config/rs6000/vector.md (vec_shl_<mode>): Remove.
4235         (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
4237 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
4239         * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
4240         BYTES_BIG_ENDIAN.
4241         * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
4242         vect_create_epilog_for_reduction): Likewise.
4243         * doc/md.texi (vec_shr_m): Clarify direction of shifting.
4245 2014-11-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4247         PR target/63724
4248         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
4249         numerical immediate handling to...
4250         (aarch64_internal_mov_immediate): ...this. New.
4251         (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
4252         (aarch64_mov_operand_p): Relax predicate.
4253         * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
4254         (*movsi_aarch64): Turn into define_insn_and_split and new alternative
4255         for 'n'.
4256         (*movdi_aarch64): Likewise.
4258 2014-11-14  Richard Biener  <rguenther@suse.de>
4260         * match.pd: Implement more binary patterns exercised by
4261         fold_stmt.
4262         * fold-const.c (sing_bit_p): Export.
4263         (exact_inverse): Likewise.
4264         (fold_binary_loc): Remove patterns here.
4265         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
4266         * fold-const.h (sing_bit_p): Declare.
4267         (exact_inverse): Likewise.
4269 2014-11-14  Marek Polacek  <polacek@redhat.com>
4271         * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
4273 2014-11-14  Richard Biener  <rguenther@suse.de>
4275         * genmatch.c (add_operator): Allow CONSTRUCTOR.
4276         (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
4277         (parser::parse_op): Allow to iterate over predicates.
4279 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
4281         * configure.ac (--with-diagnostics-color): New configure
4282         option, default to --with-diagnostics-color=auto.
4283         * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
4284         to determine -fdiagnostics-color= option default.
4285         * doc/invoke.texi (-fdiagnostics-color=): Document new
4286         default.
4287         * configure: Regenerated.
4288         * config.in: Regenerated.
4290 2014-11-13  Teresa Johnson  <tejohnson@google.com>
4292         PR tree-optimization/63841
4293         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4295 2014-11-14  Bin Cheng  <bin.cheng@arm.com>
4297         * timevar.def (TV_SCHED_FUSION): New time var.
4298         * passes.def (pass_sched_fusion): New pass.
4299         * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
4300         (extract_base_offset_in_addr, fusion_load_store): New.
4301         (arm_sched_fusion_priority): New.
4302         (arm_option_override): Disable scheduling fusion by default
4303         on non-armv7 processors or ldrd/strd isn't preferred.
4304         * sched-int.h (struct _haifa_insn_data): New field.
4305         (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
4306         * sched-rgn.c (rest_of_handle_sched_fusion): New.
4307         (pass_data_sched_fusion, pass_sched_fusion): New.
4308         (make_pass_sched_fusion): New.
4309         * haifa-sched.c (sched_fusion): New.
4310         (insn_cost): Handle sched_fusion.
4311         (priority): Handle sched_fusion by calling target hook.
4312         (enum rfs_decision): New enum value.
4313         (rfs_str): New element for RFS_FUSION.
4314         (rank_for_schedule): Support sched_fusion.
4315         (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
4316         (schedule_block, fix_tick_ready): Handle sched_fusion.
4317         * common.opt (flag_schedule_fusion): New.
4318         * tree-pass.h (make_pass_sched_fusion): New.
4319         * target.def (fusion_priority): New.
4320         * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
4321         * doc/tm.texi: Regenerated.
4322         * doc/invoke.texi (-fschedule-fusion): New.
4324 2014-11-13  Rong Xu  <xur@google.com>
4326         PR debug/63581
4327         * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
4328         footer, instead of unconditionally overwritten.
4330 2014-11-14  Martin Jambor  <mjambor@suse.cz>
4332         * cgraph.h (clear_outer_type): Make public.  Fix comment.
4333         * ipa-devirt.c (possible_polymorphic_call_targets): Use
4334         clear_outer_type when resetting the context.
4336 2014-11-13  Dominique Dhumieres  <dominiq@lps.ens.fr>
4338         PR bootstrap/63853
4339         * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
4340         * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
4342 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4344         * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
4345         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4346         * tree-inline.c (estimate_operator_cost): Likewise.
4347         * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
4348         Likewise.
4350         * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
4351         against VEC_RSHIFT_EXPR.
4353         * optabs.h (expand_vec_shift_expr): Remove.
4354         * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
4355         (expand_vec_shift_expr): Remove.
4356         * tree.def (VEC_RSHIFT_EXPR): Remove
4358 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4360         * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
4361         (shift_amt_for_vec_perm_mask): New.
4362         (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
4363         and mask appropriate.
4365         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
4366         (have_whole_vector_shift): New.
4367         (vect_model_reduction_cost): Call have_whole_vector_shift instead of
4368         looking for vec_shr_optab.
4369         (vect_create_epilog_for_reduction): Likewise; also rename local variable
4370         have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
4371         instead of VEC_RSHIFT_EXPRs.
4373         * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
4375 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4377         * tree-vectorizer.h (vect_gen_perm_mask): Remove.
4378         (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
4380         tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
4381         vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
4382         with vect_gen_perm_mask_checked.
4384         * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
4385         Likewise.
4387         (vect_gen_perm_mask_checked): New.
4388         (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
4389         (vect_gen_perm_mask_any): ...this.
4391         (perm_mask_for_reverse): Call can_vec_perm_p and
4392         vect_gen_perm_mask_checked.
4394 2014-11-13  Felix Yang  <felix.yang@huawei.com>
4396         * ipa-utils.h: Fix typo in comments.
4397         * ipa-profile.c: Likewise.
4398         * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
4400 2014-11-13  Teresa Johnson  <tejohnson@google.com>
4402         PR tree-optimization/63841
4403         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4405 2014-11-13  Teresa Johnson  <tejohnson@google.com>
4407         PR tree-optimization/63841
4408         * tree.c (initializer_zerop): A clobber does not zero initialize.
4410 2014-11-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4412         * optabs.c (prepare_operand): Gracefully fail if the mode of X
4413         does not match the operand mode expected by the insn pattern.
4415 2014-11-13  Richard Biener  <rguenther@suse.de>
4417         * match.pd: Add tcc_comparison, inverted_tcc_comparison
4418         and inverted_tcc_comparison_with_nans operator lists.
4419         Use tcc_comparison in the truth_valued_p predicate definition.
4420         Restrict logical_inverted_value with bit_xor to integral types.
4421         Build a boolean true for simplifying x |^ !x because of
4422         vector types.  Implement patterns from forward_propagate_comparison
4423         * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
4424         (get_prop_dest_stmt): Likewise.
4425         (pass_forwprop::execute): Do not call it.
4426         * fold-const.c (fold_unary_loc): Remove the pattern here.
4428 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
4429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4431         * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
4432         tmake_file.
4433         (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
4434         accelerator compiler.
4435         * config/i386/intelmic-mkoffload.c: New file.
4436         * config/i386/t-intelmic: Ditto.
4438 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
4439             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4440             Ilya Verbin  <ilya.verbin@intel.com>
4442         * common.opt (foffload, foffload-abi): New options.
4443         * config/i386/i386.c (ix86_offload_options): New static function.
4444         (TARGET_OFFLOAD_OPTIONS): Define.
4445         * coretypes.h (enum offload_abi): New enum.
4446         * doc/tm.texi: Regenerate.
4447         * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
4448         * gcc.c (offload_targets): New static variable.
4449         (handle_foffload_option): New static function.
4450         (driver_handle_option): Handle OPT_foffload_.
4451         (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
4452         according to offload_targets.
4453         * hooks.c (hook_charptr_void_null): New hook.
4454         * hooks.h (hook_charptr_void_null): Declare.
4455         * lto-opts.c: Include lto-section-names.h.
4456         (lto_write_options): Append options from target offload_options hook and
4457         store them to offload_lto section.  Do not store target-specific,
4458         driver and diagnostic options in offload_lto section.
4459         * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
4460         OPT_foffload_abi_.
4461         (append_compiler_options, append_linker_options)
4462         (append_offload_options): New static functions.
4463         (compile_offload_image): Add new arguments with options.
4464         Call append_compiler_options and append_offload_options.
4465         (compile_images_for_offload_targets): Add new arguments with options.
4466         (find_and_merge_options): New static function.
4467         (run_gcc): Outline options handling into the new functions:
4468         find_and_merge_options, append_compiler_options, append_linker_options.
4469         * opts.c (common_handle_option): Don't handle OPT_foffload_.
4470         Forbid OPT_foffload_abi_ for non-offload compiler.
4471         * target.def (offload_options): New target hook.
4473 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
4474             Bernd Schmidt  <bernds@codesourcery.com>
4475             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4478         * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
4479         (process_command): Tweak path construction for the possibility
4480         of being configured as an offload compiler.
4481         (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
4482         (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
4483         (driver::set_up_specs): Tweak path construction for the possibility of
4484         being configured as an offload compiler.
4485         * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
4486         (offload_names, offloadbegin, offloadend): New static variables.
4487         (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
4488         (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
4489         New static functions.
4490         (run_gcc): Determine whether offload sections are present.  If so, run
4491         compile_images_for_offload_targets and return the names of new generated
4492         objects to linker.  If there are offload sections, but no LTO sections,
4493         then return the copies of input objects without link-time recompilation.
4495 2014-11-13  Richard Biener  <rguenther@suse.de>
4497         * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
4499 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
4500             Bernd Schmidt  <bernds@codesourcery.com>
4501             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4502             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4504         * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
4505         * cgraphunit.c: Include omp-low.h.
4506         * doc/tm.texi: Regenerate.
4507         * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
4508         * gengtype.c (open_base_files): Add omp-low.h to ifiles.
4509         * lto-cgraph.c (output_offload_tables): New function.
4510         (input_offload_tables): Likewise.
4511         * lto-section-in.c (lto_section_name): Add "offload_table".
4512         * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
4513         (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
4514         * lto-streamer-out.c (lto_output): Call output_offload_tables.
4515         * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
4516         (output_offload_tables, input_offload_tables): Declare.
4517         * omp-low.c: Include common/common-target.h and lto-section-names.h.
4518         (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
4519         (expand_omp_target): Add child_fn into offload_funcs vector.
4520         (add_decls_addresses_to_decl_constructor): New function.
4521         (omp_finish_file): Likewise.
4522         * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
4523         * target.def (record_offload_symbol): New DEFHOOK.
4524         * toplev.c: Include omp-low.h.
4525         (compile_file): Call omp_finish_file.
4526         * varpool.c: Include omp-low.h.
4527         (varpool_node::get_create): Add decl into offload_vars vector.
4529 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
4530             Ilya Tocar  <ilya.tocar@intel.com>
4531             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4532             Bernd Schmidt  <bernds@codesourcery.com>
4534         * cgraph.c: Include context.h.
4535         (cgraph_node::create): Set node->offloadable and g->have_offload if
4536         decl have "omp declare target" attribute.
4537         * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
4538         * cgraphunit.c: Include lto-section-names.h.
4539         (ipa_passes): Call ipa_write_summaries if there is something to write to
4540         OFFLOAD_SECTION_NAME_PREFIX sections.
4541         (symbol_table::compile): Set flag_generate_lto if there is something to
4542         offload.
4543         Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
4544         * context.c (gcc::context::context): Initialize have_offload with false.
4545         * context.h (class context): Add have_offload flag.
4546         * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
4547         flag_generate_lto.
4548         (inline_free_summary): Always remove hooks.
4549         * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
4550         from non-offloadable nodes while streaming a node into offload section.
4551         (reachable_from_other_partition_p): Likewise.
4552         (select_what_to_stream): New function.
4553         (compute_ltrans_boundary): Do not call
4554         lto_set_symtab_encoder_in_partition if the node should not be streamed.
4555         * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
4556         (section_name_prefix): Declare.
4557         * lto-streamer.c (section_name_prefix): New variable.
4558         (lto_get_section_name): Use section_name_prefix instead of
4559         LTO_SECTION_NAME_PREFIX.
4560         * lto-streamer.h (select_what_to_stream): Declare.
4561         * omp-low.c: Include context.h.
4562         (is_targetreg_ctx): New function.
4563         (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
4564         (create_omp_child_function, check_omp_nesting_restrictions): Use new
4565         is_targetreg_ctx function.  Replace usage of "omp declare target"
4566         attribute with a cgraph_node flag offloadable.
4567         (expand_omp_target): Set mark_force_output for offloadable functions.
4568         (lower_omp_critical): Set offloadable flag for omp critical symbol.
4569         * passes.c (ipa_write_summaries): New argument offload_lto_mode.  Call
4570         select_what_to_stream.  Do not call lto_set_symtab_encoder_in_partition
4571         if the node should not be streamed out.
4572         * tree-pass.h (ipa_write_summaries): New bool argument.
4573         * varpool.c: Include context.h.
4574         (varpool_node::get_create): Set node->offloadable and g->have_offload if
4575         decl have "omp declare target" attribute.
4577 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
4578             Thomas Schwinge  <thomas@codesourcery.com>
4579             Ilya Verbin  <ilya.verbin@intel.com>
4580             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4582         * Makefile.in (real_target_noncanonical, accel_dir_suffix)
4583         (enable_as_accelerator): New variables substituted by configure.
4584         (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
4585         being configured as an offload compiler.
4586         (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
4587         ACCEL_DIR_SUFFIX.
4588         (install-cpp, install-common, install_driver, install-gcc-ar): Do not
4589         install for the offload compiler.
4590         * config.in: Regenerate.
4591         * configure: Regenerate.
4592         * configure.ac (real_target_noncanonical, accel_dir_suffix)
4593         (enable_as_accelerator): Compute new variables.
4594         (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
4595         (OFFLOAD_TARGETS): List of target names suitable for offloading.
4596         (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
4597         * doc/install.texi (Options specification): Document
4598         --enable-as-accelerator-for and --enable-offload-targets.
4600 2014-11-13  H.J. Lu  <hongjiu.lu@intel.com>
4602         PR tree-optimization/63828
4603         * ipa-polymorphic-call.c (possible_placement_new): Check
4604         POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
4606 2014-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4608         * doc/tm.texi.in (SELECT_CC_MODE): Update example.
4609         (REVERSIBLE_CC_MODE): Fix example.
4610         (REVERSE_CONDITION): Fix typo.
4611         * doc/tm.texi: Regenerate.
4613 2014-11-13  Tom de Vries  <tom@codesourcery.com>
4615         * omp-low.c (pass_data_expand_omp): Set properties_provided to
4616         PROP_gimple_eomp.
4617         (pass_expand_omp::gate): Remove function.  Move gate expression to ...
4618         (pass_expand_omp::execute): ... here, as new variable gate.  Add early
4619         exit if gate is false.
4620         (pass_data pass_data_expand_omp_ssa): New pass_data.
4621         (class pass_expand_omp_ssa): New pass.
4622         (make_pass_expand_omp_ssa): New function.
4623         * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
4624         instead of NEXT_PASS.
4625         (pass_expand_omp_ssa): Add after pass_parallelize_loops.
4626         * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
4627         (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
4628         and TODO_rebuild_alias yet.  Add TODO_update_ssa.  Set
4629         cfun->omp_expand_needed.
4630         * tree-pass.h: Add define PROP_gimple_eomp.
4631         (make_pass_expand_omp_ssa): Declare.
4633 2014-11-13  Marek Polacek  <polacek@redhat.com>
4635         * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
4636         * fold-const.c (fold_binary_loc): Use it.
4637         * match.pd: Likewise.
4639 2014-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4641         * lra-lives.c (struct bb_data): Rename to ...
4642         (struct bb_data_pseudos): ... this.
4643         (initiate_live_solver): Update struct name.
4645 2014-11-13  Richard Biener  <rguenther@suse.de>
4647         * match.pd: Implement conditional expression patterns.
4648         * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
4649         them here.
4650         (combine_cond_exprs): Remove.
4651         (pass_forwprop::execute): Do not call combine_cond_exprs.
4652         * fold-const.c (fold_ternary_loc): Remove patterns here.
4653         (pedantic_omit_one_operand_loc): Remove.
4655 2014-12-13  Richard Biener  <rguenther@suse.de>
4657         PR middle-end/61559
4658         * match.pd: Implement bswap patterns for transforms checked by
4659         gcc.dg/builtin-bswap-8.c.
4661 2014-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4663         * lra.c (lra): Switch off rematerialization pass.
4665 2014-11-12  Vladimir Makarov  <vmakarov@redhat.com>
4667         * common.opt (flra-remat): New.
4668         * opts.c (default_options_table): Add entry for flra_remat.
4669         * timevar_def (TV_LRA_REMAT): New.
4670         * doc/invoke.texi (-flra-remat): Add description of the new
4671         option.
4672         * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
4673         lra-saves.c.  Add lra-remat.c.
4674         * Makefile.in (OBJS): Add lra-remat.o.
4675         * lra-remat.c: New file.
4676         * lra.c: Add info about the rematerialization pass in the top
4677         comment.
4678         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
4679         Process unallocatable regs too.
4680         (lra_constraint_new_insn_uid_start): Remove.
4681         (lra): Add code for calling rematerialization sub-pass.
4682         * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
4683         (lra_constrain_insn, lra_remat): New prototypes.
4684         (lra_eliminate_regs_1): Add parameter.
4685         * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
4686         Process unallocatable hard regs too.
4687         (process_bb_lives): Ditto.
4688         * lra-spills.c (remove_pseudos): Add argument to
4689         lra_eliminate_regs_1 call.
4690         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter.  Use it
4691         for sp offset calculation.
4692         (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
4693         (eliminate_regs_in_insn): Add parameter.  Use it for sp offset
4694         calculation.
4695         (process_insn_for_elimination): Add argument for
4696         eliminate_regs_in_insn call.
4697         * lra-constraints.c (get_equiv_with_elimination):  Add argument
4698         for lra_eliminate_regs_1 call.
4699         (process_addr_reg): Add parameter.  Use it.
4700         (process_address_1): Ditto.  Add argument for process_addr_reg
4701         call.
4702         (process_address): Ditto.
4703         (curr_insn_transform): Add parameter.  Use it.  Add argument for
4704         process_address calls.
4705         (lra_constrain_insn): New function.
4706         (lra_constraints): Add argument for curr_insn_transform call.
4708 2014-11-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4710         * opts-global.c (postpone_unknown_option_warning): Fix spelling.
4711         (print_ignored_options): Fix quoting.
4712         * opts.c (common_handle_option): Likewise.
4713         (set_debug_level): Likewise.
4714         * toplev.c (process_options): Likewise.
4716 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
4718         PR ipa/63838
4719         * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
4720         chain instead of node->indirect_calls.  Put !can_throw into
4721         conditions of all the loops.
4723 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4725         * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
4726         set pic_offset_table_rtx.
4728 2014-11-12  Matthew Fortune  <matthew.fortune@imgtec.com>
4730         * common/config/mips/mips-common.c (mips_handle_option): Ensure
4731         that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
4732         * config.gcc (--with-fp-32): New option.
4733         (--with-odd-spreg-32): Likewise.
4734         * config.in (HAVE_AS_DOT_MODULE): New config define.
4735         * config/mips/mips-protos.h
4736         (mips_secondary_memory_needed): New prototype.
4737         (mips_hard_regno_caller_save_mode): Likewise.
4738         * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
4739         (mips_get_arg_info): Assert that V2SFmode is only handled specially
4740         with TARGET_PAIRED_SINGLE_FLOAT.
4741         (mips_return_mode_in_fpr_p): Likewise.
4742         (mips16_call_stub_mode_suffix): Likewise.
4743         (mips_get_reg_raw_mode): New static function.
4744         (mips_return_fpr_pair): O32 return values span two registers.
4745         (mips16_build_call_stub): Likewise.
4746         (mips_function_value_regno_p): Support both FP return registers.
4747         (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1.  Add
4748         specific cases for TARGET_FPXX to move via memory.
4749         (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
4750         than UNITS_PER_FPREG 'span' one register.
4751         (mips_dwarf_frame_reg_mode): New static function.
4752         (mips_file_start): Switch to using .module instead of .gnu_attribute.
4753         No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
4754         Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
4755         (mips_save_reg, mips_restore_reg): Always represent DFmode frame
4756         slots with two CFI directives even for O32 FP64.
4757         (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
4758         saving/restoring callee-saved registers.
4759         (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
4760         (mips_secondary_memory_needed): New function.
4761         (mips_option_override): ABI check for TARGET_FLOATXX.  Disable
4762         odd-numbered single-precision registers when using TARGET_FLOATXX.
4763         Implement -modd-spreg and defaults.
4764         (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
4765         callee-saved behaviour.
4766         (mips_hard_regno_caller_save_mode): Implement.
4767         (TARGET_GET_RAW_RESULT_MODE): Define target hook.
4768         (TARGET_GET_RAW_ARG_MODE): Define target hook.
4769         (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
4770         * config/mips/mips.h (TARGET_FLOAT32): New macro.
4771         (TARGET_O32_FP64A_ABI): Likewise.
4772         (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
4773         _MIPS_SPFPSET builtin define.
4774         (MIPS_FPXX_OPTION_SPEC): New macro.
4775         (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
4776         --with-odd-spreg-32=* to -m[no-]odd-spreg.
4777         (ISA_HAS_ODD_SPREG): New macro.
4778         (ISA_HAS_MXHC1): True for anything other than -mfp32.
4779         (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
4780         (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
4781         (HARD_REGNO_CALLER_SAVE_MODE): Define.  Implement O32 FPXX extension
4782         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4783         (SECONDARY_MEMORY_NEEDED): Likewise.
4784         (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
4785         * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
4786         FP64A ABI extensions.
4787         (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
4788         TARGET_FLOAT64.
4789         * config/mips/mips.opt (mfpxx): New target option.
4790         (modd-spreg): Likewise.
4791         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
4792         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
4793         fp64 sysroot.
4794         * config/mips/t-mti-elf: Remove fp64 multilib.
4795         * config/mips/t-mti-linux: Likewise.
4796         * configure.ac: Detect .module support.
4797         * configure: Regenerate.
4798         * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
4799         * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
4800         options.
4802 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4804         PR target/63815
4805         * config/i386/i386.c (ix86_init_large_pic_reg): New.  Extracted
4806         from ...
4807         (ix86_init_pic_reg): Here.  Use ix86_init_large_pic_reg.
4808         (x86_output_mi_thunk): Set PIC register to %r11.  Call
4809         ix86_init_large_pic_reg to initialize PIC register.
4811 2014-11-12  Kai Tietz  <ktietz@redhat.com>
4813         * sdbout.c (sdbout_symbol): Eliminate register only
4814         if decl isn't a global variable.
4816 2014-11-12  Alan Lawrence  <alan.lawrence@arm.com>
4818         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
4820         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
4821         qualifier_lane_index.
4822         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
4823         (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
4824         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
4826         (aarch64_types_getlane_qualifiers): Rename to...
4827         (aarch64_types_binop_imm_qualifiers): ...this.
4828         (TYPES_SHIFTIMM): Follow renaming.
4829         (TYPES_GETLANE): Rename to...
4830         (TYPE_GETREG): ...this.
4832         (aarch64_types_setlane_qualifiers): Rename to...
4833         (aarch64_type_ternop_imm_qualifiers): ...this.
4834         (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
4835         (TYPES_SETLANE): Follow renaming above, and rename self to...
4836         (TYPE_SETREG): ...this.
4838         (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
4839         (aarch64_simd_expand_args): Add range check and endianness-flip.
4841         (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
4843         * config/aarch64/aarch64-simd.md
4844         (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
4845         (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
4846         (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
4848         (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
4849         (aarch64_sq<r>dmulh_lane<mode>): ...this.
4851         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
4852         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
4854         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
4855         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
4857         (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
4858         (aarch64_sqdmull_lane<mode>): ...this.
4860         (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
4861         (aarch64_sqdmull_laneq<mode>): ...this.
4863         (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
4864         (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
4865         aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
4866         aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
4868         (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
4869         aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
4870         aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
4871         bounds check and lane flip.
4873         * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
4874         get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
4875         set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
4877         (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
4878         sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
4879         renaming of TERNOP_LANE to QUADOP_LANE.
4881         (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
4882         sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
4883         qualifiers to TERNOP_LANE.
4885 2014-11-12  Tobias Burnus  <burnus@net-b.de>
4887         * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
4888         * configure.ac: Ditto.
4889         * graphite-interchange.c: Remove HAVE_CLOOG block.
4890         * config.in: Regenerate.
4891         * configure: Regenerate.
4893 2014-11-12  Jiong Wang  <jiong.wang@arm.com>
4895         * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
4896         caller-save.
4897         (EPILOGUE_USES): Guard the check by epilogue_completed.
4898         * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
4899         LR.
4900         (aarch64_can_eliminate): Check LR_REGNUM liveness.
4902 2014-11-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4904         * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
4906 2014-11-12  Marek Polacek  <polacek@redhat.com>
4908         * fold-const.c (fold_binary_loc): Don't fold if the result
4909         is undefined.
4910         * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
4911         -(-A) -> A): Likewise.
4913 2014-11-12  Richard Biener  <rguenther@suse.de>
4915         Merge from match-and-simplify branch
4916         2014-11-04  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4918         * genmatch.c (user_id): Add new member is_oper_list.
4919         (user_id::user_id): Add new default argument.
4920         (parser::parse_operator_list): New function.
4921         (parser::parse_for): Allow operator-list.
4922         (parser::parse_pattern): Call parser::parse_operator_list.
4923         (parser::parse_operation): Reject operator-list.
4924         * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
4926         2014-10-31  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4928         * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
4930         2014-10-30  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4932         * genmatch.c (parser::parse_op): Check if predicate is used in
4933         result operand.
4935         2014-10-29  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4937         * genmatch.c (parser::parse_for): Make sure to have a valid
4938         token to report errors at.
4940         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4942         * genmatch.c (parser): Add new member parsing_match_operand.
4943         (parser::parse_operation): Check for conditional convert in result
4944         operand.
4945         (parser::parse_expr): Check for commutative operator in result operand.
4946         Check for :type in match operand.
4947         (parser::parse_simplify): Set/unset parsing_match_operand.
4948         (parser::parser): Initialize parsing_match_operand.
4950         2014-10-28  Richard Biener  <rguenther@suse.de>
4952         * genmatch.c (parser::parse_for): Properly check for already
4953         defined operators.
4955         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4957         * genmatch.c (error_cb): Adjust for printing warnings.
4958         (warning_at): New function.
4959         (user_id): Add new member used.
4960         (get_operator): Mark user_id as used.
4961         (parse_for): Warn for unused operators.
4963 2014-11-12  Richard Biener  <rguenther@suse.de>
4965         * match.pd: Implement simple complex operations cancelling.
4966         * fold-const.c (fold_unary_loc): Remove them here.
4968 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
4970         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
4971         Define __NO_MATH_ERRNO__ if -fno-math-errno.
4972         * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
4974 2014-11-12  Richard Biener  <rguenther@suse.de>
4976         * genmatch.c (::gen_transform): Add capture_info and
4977         expand_compares arguments.
4978         (struct expr): Add is_generic flag.
4979         (lower_cond): New functions lowering [VEC_]COND_EXPR
4980         conditions to a GENERIC and a GIMPLE variant.
4981         (lower): Call lower_cond.
4982         (cmp_operand): Also compare the is_generic flag.
4983         (capture_info::cinfo): Add cond_expr_cond_p flag.
4984         (capture_info::capture_info): Pass down whether the
4985         expression argument is a COND_EXPR condition.
4986         (capture_info::walk_match): Likewise, mark captures
4987         capturing COND_EXPR conditions with cond_expr_cond_p.
4988         (expr::gen_transform): Pass down whether we need to
4989         expand compares from COND_EXPR conditions.
4990         (capture::gen_transform): Expand compares substituted
4991         from COND_EXPR conditions into non-COND_EXPR conditions.
4992         (dt_operand::gen_gimple_expr): Handle explicitely marked
4993         GENERIC expressions as generic.
4994         (dt_simplify::gen): Pass whether we need to expand
4995         conditions to gen_transform.  Handle capture results
4996         which are from COND_EXPR conditions.
4997         (main): Pass gimple flag down to lower.
4999 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
5001         PR c/59708
5002         * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
5003         * builtins.c (fold_builtin_arith_overflow): New function.
5004         (fold_builtin_3): Use it.
5005         * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
5006         BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
5007         BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
5008         BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
5009         BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
5010         BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
5011         BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
5012         BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
5013         BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
5014         BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
5015         * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
5016         BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
5017         BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
5018         BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
5019         BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
5020         * expr.c (write_complex_part): Remove prototype, no longer static.
5021         * expr.h (write_complex_part): New prototype.
5022         * function.c (aggregate_value_p): For internal functions return 0.
5023         * gimple-fold.c (arith_overflowed_p): New functions.
5024         (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
5025         * gimple-fold.h (arith_overflowed_p): New prototype.
5026         * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
5027         (find_non_realpart_uses, maybe_optimize_arith_overflow): New
5028         functions.
5029         (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
5030         into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
5031         never used.
5032         * gimplify.c (gimplify_call_expr): Handle gimplification of
5033         internal calls with lhs.
5034         * internal-fn.c (get_range_pos_neg, get_min_precision,
5035         expand_arith_overflow_result_store): New functions.
5036         (ubsan_expand_si_overflow_addsub_check): Renamed to ...
5037         (expand_addsub_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
5038         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5039         Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
5040         (ubsan_expand_si_overflow_neg_check): Renamed to ...
5041         (expand_neg_overflow): ... this.  Add LOC, LHS, ARG1, IS_UBSAN
5042         arguments, remove STMT argument.  Handle SUB_OVERFLOW with
5043         0 as first argument expansion.
5044         (ubsan_expand_si_overflow_mul_check): Renamed to ...
5045         (expand_mul_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
5046         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5047         Handle MUL_OVERFLOW expansion.
5048         (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
5049         arguments for it.
5050         (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
5051         expand_neg_overflow, prepare arguments for it.
5052         (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
5053         for it.
5054         (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
5055         expand_MUL_OVERFLOW): New functions.
5056         * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
5057         internal functions.
5058         * tree-vrp.c (check_for_binary_op_overflow): New function.
5059         (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
5060         is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
5061         (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
5062         internal functions.
5063         * optabs.def (umulv4_optab): New optab.
5064         * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
5065         (*umulv<mode>4, *<u>mulvqi4): New define_insns.
5066         * doc/extend.texi (Integer Overflow Builtins): Document
5067         __builtin_*_overflow.
5069 2014-11-12  Richard Biener  <rguenther@suse.de>
5071         * genmatch.c (capture_info::capture_info): Add missing
5072         COND_EXPR handling.
5073         (capture_info::walk_match): Fix COND_EXPR handling.
5074         (capture_info::walk_result): Likewise.
5076 2014-11-12  Richard Biener  <rguenther@suse.de>
5078         PR middle-end/63821
5079         * match.pd: Add missing conversion to the -(T)-X pattern.
5081 2014-11-12  Richard Biener  <rguenther@suse.de>
5083         PR bootstrap/63819
5084         * hash-table.h: Include ggc.h also for generator programs.
5085         * genmatch.c (ggc_internal_cleared_alloc): Properly define
5086         using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
5088 2014-11-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5090         PR tree-optimization/63761
5091         * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
5092         rather than taking it as a parameter. Add some comments to explain the
5093         gsi_move_before in case of load and why canonicalization of bswap into
5094         a rotation is only done for 16bit values.
5095         (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
5096         refer to the statement just before cur_stmt. Ignore 16bit bswap that
5097         are already in canonical form. Adapt bswap_replace to removal of its
5098         gsi parameter.
5100 2014-11-12  Richard Sandiford  <richard.sandiford@arm.com>
5102         * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
5103         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
5104         (for_each_rtx_in_insn): Delete.
5105         (init_rtlanal): Remove initialization of non_rtx_starting_operands.
5106         * df-core.c: Remove reference to for_each_rtx in comment.
5108 2014-11-12  Tejas Belagod  <tejas.belagod@arm.com>
5110         * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
5111         arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
5112         * doc/aarch64-acle-intrinsics.texi: Remove.
5113         * doc/arm-acle-intrinsics.texi: Remove.
5114         * doc/arm-neon-intrinsics.texi: Remove.
5115         * doc/extend.texi: Consolidate sections AArch64 intrinsics,
5116         ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
5117         Extension section. Add references to public ACLE specification.
5119 2014-11-11  Patrick Palka  <ppalka@gcc.gnu.org>
5121         * tree-vrp.c (register_edge_assert_for_2): Change return type to
5122         void and adjust accordingly.
5123         (register_edge_assert_for_1): Likewise.
5124         (register_edge_assert_for): Likewise.
5125         (find_conditional_asserts): Likewise.
5126         (find_switch_asserts): Likewise.
5127         (find_assert_locations_1): Likewise.
5128         (find_assert_locations): Likewise.
5129         (insert_range_insertions): Inspect the need_assert_for bitmap.
5131 2014-11-11  Andrew Pinski  <apinski@cavium.com>
5133         Bug target/61997
5134         * config.gcc (aarch64*-*-*): Set target_gtfiles to include
5135         aarch64-builtins.c.
5136         * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
5137         at the end of the file.
5139 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
5140             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5142         PR driver/36312
5143         * diagnostic-core.h: Add prototype for fatal_error.
5144         * diagnostic.c (fatal_error): New function fatal_error.
5145         * gcc.c (store_arg): Remove have_o_argbuf_index.
5146         (process_command): Check if input and output files are the same.
5147         * toplev.c (init_asm_output): Check if input and output files are
5148         the same.
5150 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
5152         * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
5154 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
5156         PR target/61535
5157         * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
5158         smaller than 8 bytes.
5159         (sparc_function_arg_1): Tweak.
5160         (sparc_function_value_1): Tweak.
5162 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
5164         * ChangeLog.jit: New.
5165         * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
5166         sphinx is installed, falling back to "texinfo" otherwise.
5167         (FULL_DRIVER_NAME): New variable, adapted from the
5168         install-driver target.  New target, a symlink within the builddir,
5169         linked to "xgcc", for use when running the JIT library from the
5170         builddir.
5171         (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
5172         (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
5173         out.
5174         * configure.ac (doc_build_sys): New variable, set to "sphinx" if
5175         sphinx is installed, falling back to "texinfo" otherwise.
5176         (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
5177         GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
5178         * configure: Regenerate.
5179         * doc/install.texi (--enable-host-shared): Specify that this is
5180         required when building libgccjit.
5181         (Tools/packages necessary for modifying GCC): Add Sphinx.
5182         * timevar.def (TV_JIT_REPLAY): New.
5183         (TV_ASSEMBLE): New.
5184         (TV_LINK): New.
5185         (TV_LOAD): New.
5187 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5189         PR target/63610
5190         * configure: Regenerate.
5192 2014-11-11  James Greenhalgh  <james.greenhalgh@arm.com>
5194         * config/aarch64/aarch64-simd.md
5195         (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
5196         (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
5197         are punning between float vectors and integer vectors.
5199 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
5201         * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
5202         open-coded swap with std::swap to swap values.
5203         (alpha_emit_setcc): Ditto.
5204         (alpha_emit_conditional_move): Ditto.
5205         (alpha_split_tmode_pair): Ditto.
5207 2014-11-11  Evgeny Stupachenko  <evstupac@gmail.com>
5209         * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
5210         permutations on power of 2 cases.
5212 2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5214         * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
5215         (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
5217 2014-11-11  Richard Biener  <rguenther@suse.de>
5219         * tree-core.h (pedantic_lvalues): Remove.
5220         * fold-const.c (pedantic_lvalues): Likewise.
5221         (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
5223 2014-11-11  Martin Liska  <mliska@suse.cz>
5225         PR ipa/63622
5226         PR ipa/63795
5227         * ipa-icf.c (sem_function::merge): Add new target symbol alias
5228         support guard.
5229         (sem_variable::merge): Likewise.
5230         * ipa-icf.h (target_supports_symbol_aliases_p): New function.
5232 2014-11-11  Richard Biener  <rguenther@suse.de>
5234         * match.pd: Implement patterns from associate_plusminus
5235         and factor in differences from the fold-const.c implementation.
5236         * fold-const.c (fold_binary_loc): Remove patterns here.
5237         * tree-ssa-forwprop.c (associate_plusminus): Remove.
5238         (pass_forwprop::execute): Don't call it.
5239         * tree.c (tree_nop_conversion_p): New function, factored
5240         from tree_nop_conversion.
5241         * tree.h (tree_nop_conversion_p): Declare.
5243 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
5245         * system.h: Include algorithm and utility.
5246         * rtl.h: Do not include utility here.
5247         * wide-int.h: Ditto.
5248         * tree-vect-data-refs.c (swap): Remove template.
5249         (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
5251 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5253         PR bootstrap/63699
5254         PR bootstrap/63750
5255         * system.h: Include <string> before "safe-ctype.h"
5256         * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
5257         calls to min/max with wi namespace.
5258         * ipa-chkp.c: Don't include <string>.
5260 2014-11-11  Terry Guo  <terry.guo@arm.com>
5262         * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
5263         * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
5264         registers.
5265         (*thumb1_movhf): Likewise.
5267 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
5269         * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
5270         instead of INT64_MAX.
5272 2014-11-11  Tobias Burnus  <burnus@net-b.de>
5274         * doc/install.texi (Prerequisites): Remove CLooG.
5276 2014-11-10  Trevor Saunders  <tsaunders@mozilla.com>
5278         * ipa-inline.c (edge_badness): Adjust.
5279         (inline_small_functions): Likewise.
5280         * predict.c (propagate_freq): Likewise.
5281         (estimate_bb_frequencies): Likewise.
5282         * sreal.c (sreal::dump): Rename from dump_sreal.
5283         (debug): Adjust.
5284         (copy): Remove function.
5285         (sreal::shift_right): Rename from sreal_sift_right.
5286         (sreal::normalize): Rename from normalize.
5287         (sreal_init): Remove function.
5288         (sreal::to_int): Rename from sreal_to_int.
5289         (sreal_compare): Remove function.
5290         (sreal::operator+): Rename from sreal_add.
5291         (sreal::operator-): Rename from sreal_sub.
5292         (sreal::operator*): Rename from sreal_mul.
5293         (sreal::operator/): Rename from sreal_div.
5294         * sreal.h (class sreal): Adjust.
5295         (inline sreal &operator+=): New operator.
5296         (inline sreal &operator-=): Likewise.
5297         (inline sreal &operator/=): Likewise.
5298         (inline sreal &operator*=): Likewise.
5299         (inline bool operator!=): Likewise.
5300         (inline bool operator>): Likewise.
5301         (inline bool operator<=): Likewise.
5302         (inline bool operator>=): Likewise.
5304 2014-11-11  Bin Cheng  <bin.cheng@arm.com>
5306         * sched-deps.c (sched_analyze_1): Check pending list if it is not
5307         less than MAX_PENDING_LIST_LENGTH.
5308         (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
5310 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
5312         * config/i386/i386.c (ix86_decompose_address): Replace open-coded
5313         swap with std::swap to swap values.
5314         (ix86_fixup_binary_operands): Ditto.
5315         (ix86_binary_operator_ok): Ditto.
5316         (ix86_prepare_fp_compare_args): Ditto.
5317         (ix86_expand_branch): Ditto.
5318         (ix86_expand_carry_flag_compare): Ditto.
5319         (ix86_expand_int_movcc): Ditto.
5320         (ix86_prepare_sse_fp_compare_args): Ditto.
5321         (ix86_expand_sse_fp_minmax): Ditto.
5322         (ix86_expand_int_vcond): Ditto.
5323         (ix86_split_long_move): Ditto.
5324         (ix86_expand_sse_comi): Ditto.
5325         (ix86_expand_sse_compare_and_jump): Ditto.
5326         (ix86_expand_sse_compare_mask): Ditto.
5327         * config/i386/i386.md (*add<mode>_1): Ditto.
5328         (addsi_1_zext): Ditto.
5329         (*addhi_1): Ditto.
5330         (*addqi_1): Ditto.
5331         (*add<mode>_2): Ditto.
5332         (*addsi_2_zext): Ditto.
5333         (*add<mode>_3): Ditto.
5334         (*addsi_3_zext): Ditto.
5335         (*add<mode>_5): Ditto.
5336         (absneg splitter): Ditto.
5338 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
5340         Revert:
5341         2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
5343         PR target/63620
5344         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
5345         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
5346         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
5347         be reloaded through memory.
5348         (*pushxf): Ditto.
5349         (*pushdf): Ditto.
5351 2014-11-11  Jakub Jelinek  <jakub@redhat.com>
5352             Martin Liska  <mliska@suse.cz>
5354         * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
5355         (func_checker::compare_gimple_call): Compare gimple_call_fn,
5356         gimple_call_chain, gimple_call_fntype and call flags.
5358 2014-11-10  Vladimir Makarov  <vmakarov@redhat.com>
5360         PR rtl-optimization/63620
5361         PR rtl-optimization/63799
5362         * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
5363         and setting PIC pseudo insns.
5364         (lra_create_live_ranges): Fix the typo.
5366 2014-11-10  Patrick Palka  <ppalka@gcc.gnu.org>
5368         PR middle-end/63748
5369         * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
5370         SSA copies whose source and destination names both occur in
5371         abnormal PHIs.
5373 2014-11-10 Roman Gareev  <gareevroman@gmail.com>
5375         * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
5376         * common.opt: Remove using of fgraphite-code-generator flag.
5377         * flag-types.h: Likewise.
5378         * graphite.c: Remove using of CLooG.
5379         * graphite-blocking.c: Likewise.
5380         * graphite-dependences.c: Likewise.
5381         * graphite-poly.c: Likewise.
5382         * graphite-poly.h: Likewise.
5383         * graphite-scop-detection.c: Likewise.
5384         * graphite-sese-to-poly.c: Likewise.
5385         * graphite-clast-to-gimple.c: Removed.
5386         * graphite-clast-to-gimple.h: Likewise.
5387         * graphite-htab.h: Likewise.
5389 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
5391         * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
5392         Add.
5394 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
5396         * config/frv/frv.c (frv_io_handle_use_1): Delete.
5397         (frv_io_handle_use): Use find_all_hard_regs.
5399 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
5401         * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
5402         than an rtx *.  Take the regstate_t directly rather than via a void *.
5403         Return a bool rather than an int.  Iterate over all subrtxes here.
5404         (frv_registers_conflict_p): Update accordingly.
5406 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
5408         * config/frv/frv.c: Include rtl-iter.h.
5409         (frv_acc_group_1): Delete.
5410         (frv_acc_group): Use FOR_EACH_SUBRTX.
5412 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
5414         * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
5415         (frv_clear_registers_used): Delete.
5416         (frv_ifcvt_modify_tests): Use find_all_hard_regs.
5418 2014-11-10  Jan Hubicka  <hubicka@ucw.cz>
5420         PR bootstrap/63573
5421         * calls.c (initialize_argument_information): When emitting thunk call
5422         use original memory placement of the argument.
5424 2014-11-10  Renlin Li  <renlin.li@arm.com>
5426         PR middle-end/61529
5427         * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
5429 2014-11-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5431         * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
5432         bswaphi if available.
5434 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
5436         * config/nvptx/nvptx.c: New file.
5437         * config/nvptx/nvptx.h: New file.
5438         * config/nvptx/nvptx-protos.h: New file.
5439         * config/nvptx/nvptx.md: New file.
5440         * config/nvptx/t-nvptx: New file.
5441         * config/nvptx/nvptx.opt: New file.
5442         * common/config/nvptx/nvptx-common.c: New file.
5443         * config.gcc: Handle nvptx-*-*.
5445 2014-11-10  Richard Biener  <rguenther@suse.de>
5447         * tree-ssa-operands.c (finalize_ssa_uses): Properly put
5448         released operands on the free list.
5450 2014-11-10  Richard Biener  <rguenther@suse.de>
5452         * match.pd: Implement pattern from simplify_mult.
5453         * tree-ssa-forwprop.c (simplify_mult): Remove.
5454         (pass_forwprop::execute): Do not call simplify_mult.
5456 2014-11-10  Richard Biener  <rguenther@suse.de>
5458         PR tree-optimization/63800
5459         * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
5460         we can restore the previous availability in after_dom_children.
5461         (eliminate_dom_walker::after_dom_children): Restore
5462         previous availability.
5464 2014-11-10  Richard Biener  <rguenther@suse.de>
5466         PR middle-end/63798
5467         * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
5468         properly treat the embedded multiplication as commutative
5469         when looking for feeding negates.
5471 2014-11-10  Joern Rennecke  <joern.rennecke@embecosm.com>
5473         * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
5475 2014-11-10  Martin Liska  <mliska@suse.cz>
5477         * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
5478         for the test because of default char signedness
5479         on powerpc64 target.
5481 2014-11-10  Richard Biener  <rguenther@suse.de>
5483         * match.pd: Implement pattern from simplify_conversion_from_bitmask.
5484         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
5485         (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
5487 2014-11-10  Richard Biener  <rguenther@suse.de>
5489         * match.pd: Move rest of the conversion combining patterns
5490         from tree-ssa-forwprop.c.
5491         * tree-ssa-forwprop.c (combine_conversions): Remove.
5492         (pass_forwprop::execute): Do not call it.
5494 2014-11-10  Eric Botcazou  <ebotcazou@adacore.com>
5496         * gimple-low.c (lower_function_body): Clear the location of the first
5497         inserted representative return if it also fills in for the fallthru.
5499 2014-11-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5501         * tree-if-conv.c (add_to_predicate_list): Check unconditionally
5502         that bb is always executed to early exit. Use predicate of
5503         cd-equivalent block for join blocks if it exists.
5504         (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
5505         (tree_if_conversion): Free post-dominance information.
5507 2014-11-09  Jason Merrill  <jason@redhat.com>
5509         * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
5510         * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
5511         (_mm_mask_cvtusepi32_storeu_epi16)
5512         (_mm_mask_cvtsepi64_storeu_epi32): Return void.
5514 2014-11-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5516         * config/avr/predicates.md (low_io_address_operand): Fix typo.
5518 2014-11-09  Vladimir Makarov  <vmakarov@redhat.com>
5520         PR rtl-optimization/63620
5521         * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
5522         name.  Move to lra.c.  Make it external.
5523         (substitute_pseudo_within_insn): Ditto.
5524         (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
5525         the new names.
5526         (undo_optional_reloads): Ditto.
5527         * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
5528         New prototypes.
5529         (lra_substitute_pseudo_within_insn): Ditto.
5530         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
5531         (mark_regno_live): Add parameter.  Update bb_gen_pseudos.
5532         (mark_regno_dead): Add parameter.  Update bb_gen_pseudos and
5533         bb_killed_pseudos.
5534         (struct bb_data, bb_data_t, bb_data): New.
5535         (get_bb_data, get_bb_data_by_index): Ditto.
5536         (all_hard_regs_bitmap): New.
5537         (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
5538         (initiate_live_solver, finish_live_solver): New.
5539         (process_bb_lives): Change return type.  Add code updating local
5540         live data and removing dead insns.  Pass new argument to
5541         mark_regno_live and mark_regno_dead.  Check changing bb pseudo
5542         life info.  Return the result.
5543         (lra_create_live_ranges): Add code to do global pseudo live
5544         analysis.
5545         (lra_live_ranges_init): Call initiate_live_solver.
5546         (lra_live_ranges_finish): Call finish_live_solver.
5547         * lra.c (lra_dump_bitmap_with_title): New.
5548         (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
5549         from lra-constraints.c.
5551 2014-11-09  Richard Biener  <rguenther@suse.de>
5553         * match.pd: Add patterns convering two conversions in a row
5554         from fold-const.c.
5555         * fold-const.c (fold_unary_loc): Remove them here.
5556         * tree-ssa-forwprop.c (combine_conversions): Likewise.
5557         * genmatch.c (dt_node::gen_kids): Check whether we may
5558         follow SSA use-def chains.
5560 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5562         * config/aarch64/aarch64.c: Include rtl-iter.h.
5563         (aarch64_tls_operand_p_1): Delete.
5564         (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
5566 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5568         * config/arm/arm.c (arm_note_pic_base): Delete.
5569         (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
5571 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5573         * config/arm/arm.c: Include rtl-iter.h.
5574         (arm_tls_referenced_p_1): Delete.
5575         (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
5577 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5579         * config/arm/aarch-common.c: Include rtl-iter.h.
5580         (search_term, arm_find_sub_rtx_with_search_term): Delete.
5581         (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
5582         (arm_get_set_operands): Pass the insn pattern rather than the
5583         insn itself.
5584         (arm_no_early_store_addr_dep): Likewise.
5586 2014-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5588         * config/arm/arm.c (arm_set_return_address): Mark the store as frame
5589         related, if any.
5590         (thumb_set_return_address): Likewise.
5592 2014-11-07  Jeff Law  <law@redhat.com>
5594         PR tree-optimization/61515
5595         * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
5596         stack rather than looking at every SSA_NAME's value.
5598 2014-11-07  Richard Biener  <rguenther@suse.de>
5600         PR tree-optimization/63605
5601         * fold-const.c (fold_binary_loc): Properly use element_precision
5602         for types that may not be scalar.
5604 2014-11-07  Evgeny Stupachenko  <evstupac@gmail.com>
5606         PR target/63534
5607         * config/i386/i386.md (builtin_setjmp_receiver): Use
5608         pic_offset_table_rtx for PIC register.
5609         (nonlocal_goto_receiver): Delete.
5611 2014-11-07  Daniel Hellstrom  <daniel@gaisler.com>
5613         * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
5614         * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
5616 2014-11-07  Martin Liska  <mliska@suse.cz>
5618         PR ipa/63580
5619         * cgraphunit.c (cgraph_node::create_wrapper):
5620         TREE_ADDRESSABLE is set to false for a newly created thunk.
5622 2014-11-07  Martin Liska  <mliska@suse.cz>
5624         PR ipa/63747
5625         * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
5626         Missing checking for CASE_LOW and CASE_HIGH added.
5628 2014-11-07  Martin Liska  <mliska@suse.cz>
5630         PR ipa/63595
5631         * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
5632         is correctly handled for thunks created by IPA ICF.
5634 2014-11-07  Jiong Wang  <jiong.wang@arm.com>
5635 2014-11-07  Richard Biener  <rguenther@suse.de>
5637         PR tree-optimization/63676
5638         * gimple-fold.c (fold_gimple_assign): Do not fold node when
5639         TREE_CLOBBER_P be true.
5641 2014-11-07  Richard Biener  <rguenther@suse.de>
5643         PR middle-end/63770
5644         * match.pd: Guard conflicting GENERIC pattern properly.
5646 2014-11-07  Richard Biener  <rguenther@suse.de>
5648         * match.pd: Add patterns for POINTER_PLUS_EXPR association
5649         and special patterns from tree-ssa-forwprop.c
5650         * fold-const.c (fold_binary_loc): Remove them here.
5651         * tree-ssa-forwprop.c (to_purge): New global bitmap.
5652         (fwprop_set_lattice_val): New function.
5653         (fwprop_invalidate_lattice): Likewise.
5654         (remove_prop_source_from_use): Instead of purging dead EH
5655         edges record blocks to do that in to_purge.
5656         (tidy_after_forward_propagate_addr): Likewise.
5657         (forward_propagate_addr_expr): Invalidate the lattice for
5658         SSA names we release.
5659         (simplify_conversion_from_bitmask): Likewise.
5660         (simplify_builtin_call): Likewise.
5661         (associate_pointerplus_align): Remove.
5662         (associate_pointerplus_diff): Likewise.
5663         (associate_pointerplus): Likewise.
5664         (fold_all_stmts): Merge with ...
5665         (pass_forwprop::execute): ... the original loop over all
5666         basic-blocks.  Delay purging dead EH edges and invalidate
5667         the lattice for SSA names we release.
5669 2014-11-07  Terry Guo  <terry.guo@arm.com>
5671         * config/arm/arm.opt (masm-syntax-unified): New option.
5672         * doc/invoke.texi (-masm-syntax-unified): Document new option.
5673         * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
5674         (ASM_APP_ON): Redefined.
5675         * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
5676         code always use UAL syntax.
5677         (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
5678         * config/arm/thumb1.md: Likewise.
5680 2014-11-06  John David Anglin  <danglin@gcc.gnu.org>
5682         * config/pa/pa.md (trap): New insn.  Add "trap" to attribute type.
5683         Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
5684         or in_call_delay.
5685         
5686 2014-11-06  Steve Ellcey  <sellcey@imgtec.com>
5688         * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
5689         Set default_mips_arch and default_mips_abi instead of tm_defines.
5690         (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
5691         of tm_defines.
5692         (mips*-*-*): Check with_arch and with_abi.  Set tm_defines.
5693         * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
5694         based on MIPS_ABI_DEFAULT.
5695         (STANDARD_STARTFILE_PREFIX_2): Ditto.
5697 2014-11-06  Joseph Myers  <joseph@codesourcery.com>
5699         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
5700         cases of extended identifiers.
5702 2014-11-06  Eric Botcazou  <ebotcazou@adacore.com>
5704         * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
5706 2014-11-06  DJ Delorie  <dj@redhat.com>
5708         * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
5709         conditional.
5710         (movhicc_<code>_<mode>): Likewise.
5711         * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
5712         subregs.
5713         (m32c_eh_return_data_regno): Change to using memregs to avoid
5714         tying up all the compute regs.
5715         (m32c_legitimate_address_p) Subregs are not valid addresses.
5717 2014-11-06  Bernd Schmidt  <bernds@codesourcery.com>
5719         * function.c (thread_prologue_and_epilogue_insns): No longer static.
5720         * function.h (thread_prologue_and_epilogue_insns): Declare.
5722         * target.def (assemble_undefined_decl): New hooks.
5723         * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
5724         * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
5725         * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
5726         * doc/tm.texi: Regenerate.
5727         * output.h (assemble_undefined_decl): Declare.
5728         (get_fnname_from_decl): Declare.
5729         * varasm.c (assemble_undefined_decl): New function.
5730         (get_fnname_from_decl): New function.
5731         * final.c (rest_of_handle_final): Use it.
5732         * varpool.c (varpool_output_variables): Call assemble_undefined_decl
5733         for nodes without a definition.
5735         * target.def (call_args, end_call_args): New hooks.
5736         * hooks.c (hook_void_rtx_tree): New empty function.
5737         * hooks.h (hook_void_rtx_tree): Declare.
5738         * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
5739         * doc/tm.texi: Regenerate.
5740         * calls.c (expand_call): Slightly rearrange the code.  Use the two new
5741         hooks.
5742         (expand_library_call_value_1): Use the two new hooks.
5744         * expr.c (use_reg_mode): Just return for pseudo registers.
5746         * combine.c (try_combine): Don't allow a call as one of the source
5747         insns.
5749         * target.def (decl_end): New hook.
5750         * varasm.c (assemble_variable_contents, assemble_constant_contents):
5751         Use it.
5752         * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
5753         * doc/tm.texi: Regenerate.
5755 2014-11-06  Renlin Li  <renlin.li@arm.com>
5757         * config/aarch64/aarch64.c (aarch64_architecture_version): New.
5758         (processor): New architecture_version field.
5759         (aarch64_override_options): Initialize aarch64_architecture_version.
5760         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
5761         __ARM_ARCH_PROFILE, aarch64_arch_name macro.
5763 2014-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
5765         * params.def (sra-max-scalarization-size-Ospeed): New.
5766         (sra-max-scalarization-size-Osize): Likewise.
5767         * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
5768         (sra-max-scalarization-size-Osize): Likewise.
5769         * toplev.c (process_options): Set default values for new
5770         parameters.
5771         * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
5772         * targhooks.c (get_move_ratio): Remove static designator.
5773         * target.h (get_move_ratio): Declare.
5775 2014-11-06  Marek Polacek  <polacek@redhat.com>
5777         * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
5778         Remove vector limit.
5780 2014-11-06  Richard Biener  <rguenther@suse.de>
5782         * match.pd: Implement bitwise binary and unary simplifications
5783         from tree-ssa-forwprop.c.
5784         * fold-const.c (fold_unary_loc): Remove them here.
5785         (fold_binary_loc): Likewise.
5786         * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
5787         (truth_valued_ssa_name): Likewise.
5788         (lookup_logical_inverted_value): Likewise.
5789         (simplify_bitwise_binary_1): Likewise.
5790         (hoist_conversion_for_bitop_p): Likewise.
5791         (simplify_bitwise_binary_boolean): Likewise.
5792         (simplify_bitwise_binary): Likewise.
5793         (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
5794         and simplify_bitwise_binary.
5795         * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
5796         (decision_tree::insert): Also insert non-expressions.
5798 2014-11-06  Hale Wang  <hale.wang@arm.com>
5800         * config/arm/arm-cores.def: Add support for
5801         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
5802         cortex-m1.small-multiply.
5803         * config/arm/arm-tables.opt: Regenerate.
5804         * config/arm/arm-tune.md: Regenerate.
5805         * config/arm/arm.c: Update the rtx-costs for MUL.
5806         * config/arm/bpabi.h: Handle
5807         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
5808         cortex-m1.small-multiply.
5809         * doc/invoke.texi: Document
5810         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
5811         cortex-m1.small-multiply.
5813 2014-11-06  Hale Wang  <hale.wang@arm.com>
5815         * config/arm/arm.c: Add cortex-m7 tune.
5816         * config/arm/arm-cores.def: Use cortex-m7 tune.
5818 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
5820         PR target/63538
5821         * config/i386/i386.c (in_large_data_p): Reject automatic variables.
5822         (ix86_encode_section_info): Do not check for non-automatic varibles
5823         when setting SYMBOL_FLAG_FAR_ADDR flag.
5824         (x86_64_elf_select_section): Do not check ix86_cmodel here.
5825         (x86_64_elf_unique_section): Ditto.
5826         (x86_elf_aligned_common): Emit tab before .largecomm.
5828 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
5830         PR preprocessor/9449
5831         * doc/cpp.texi (Character sets, Tokenization)
5832         (Implementation-defined behavior): Don't refer to UCNs in
5833         identifiers requiring -fextended-identifiers.
5834         * doc/cppopts.texi (-fextended-identifiers): Document as enabled
5835         by default for C99 and later and C++.
5836         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
5837         identifiers needing -fextended-identifiers.
5839 2014-11-05  Ilya Tocar  <ilya.tocar@intel.com>
5841         * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
5842         for 512-bit wide modes.
5843         (expand_vec_perm_1): Use correct versions of patterns.
5844         * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
5845         (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
5847 2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>
5849         * ipa-chkp.c: New.
5850         * ipa-chkp.h: New.
5851         * tree-chkp.c: New.
5852         * tree-chkp.h: New.
5853         * tree-chkp-opt.c: New.
5854         * rtl-chkp.c: New.
5855         * rtl-chkp.h: New.
5856         * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
5857         tree-chkp-opt.o.
5858         (GTFILES): Add tree-chkp.c.
5859         * mode-classes.def (MODE_POINTER_BOUNDS): New.
5860         * tree.def (POINTER_BOUNDS_TYPE): New.
5861         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
5862         (POINTER_BOUNDS_MODE): New.
5863         (make_pointer_bounds_mode): New.
5864         * machmode.h (POINTER_BOUNDS_MODE_P): New.
5865         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
5866         (layout_type): Support POINTER_BOUNDS_TYPE.
5867         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
5868         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5869         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
5870         (type_contains_placeholder_1): Likewise.
5871         (build_common_tree_nodes): Initialize
5872         pointer_bounds_type_node.
5873         * tree.h (POINTER_BOUNDS_TYPE_P): New.
5874         (pointer_bounds_type_node): New.
5875         (POINTER_BOUNDS_P): New.
5876         (BOUNDED_TYPE_P): New.
5877         (BOUNDED_P): New.
5878         (CALL_WITH_BOUNDS_P): New.
5879         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
5880         (gimple_call_with_bounds_p): New.
5881         (gimple_call_set_with_bounds): New.
5882         (gimple_return_retbnd): New.
5883         (gimple_return_set_retbnd): New
5884         * gimple.c (gimple_build_return): Increase number of ops
5885         for return statement.
5886         (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
5887         flag.
5888         * gimple-pretty-print.c (dump_gimple_return): Print second op.
5889         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
5890         * gimplify.c (gimplify_init_constructor): Avoid infinite
5891         loop during gimplification of bounds initializer.
5892         * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
5893         (special_function_p): Use original decl name when analyzing
5894         instrumentation clone.
5895         (arg_data): Add fields special_slot, pointer_arg and
5896         pointer_offset.
5897         (store_bounds): New.
5898         (emit_call_1): Propagate instrumentation flag for CALL.
5899         (initialize_argument_information): Compute pointer_arg,
5900         pointer_offset and special_slot for pointer bounds arguments.
5901         (finalize_must_preallocate): Preallocate when storing bounds
5902         in bounds table.
5903         (compute_argument_addresses): Skip pointer bounds.
5904         (expand_call): Store bounds into tables separately.  Return
5905         result joined with resulting bounds.
5906         * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
5907         (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
5908         (expand_return): Add returned bounds arg.  Handle returned bounds.
5909         (expand_gimple_stmt_1): Adjust to new expand_return signature.
5910         (gimple_expand_cfg): Reset rtx bounds map.
5911         * expr.c: Include tree-chkp.h, rtl-chkp.h.
5912         (expand_assignment): Handle returned bounds.
5913         (store_expr_with_bounds): New.  Replaces store_expr with new bounds
5914         target argument.  Handle bounds returned by calls.
5915         (store_expr): Now wraps store_expr_with_bounds.
5916         * expr.h (store_expr_with_bounds): New.
5917         * function.c: Include tree-chkp.h, rtl-chkp.h.
5918         (bounds_parm_data): New.
5919         (use_register_for_decl): Do not registerize decls used for bounds
5920         stores and loads.
5921         (assign_parms_augmented_arg_list): Add bounds of the result
5922         structure pointer as the second argument.
5923         (assign_parm_find_entry_rtl): Mark bounds are never passed on
5924         the stack.
5925         (assign_parm_is_stack_parm): Likewise.
5926         (assign_parm_load_bounds): New.
5927         (assign_bounds): New.
5928         (assign_parms): Load bounds and determine a location for
5929         returned bounds.
5930         (diddle_return_value_1): New.
5931         (diddle_return_value): Handle returned bounds.
5932         * function.h (rtl_data): Add field for returned bounds.
5933         * varasm.c: Include tree-chkp.h.
5934         (output_constant): Support POINTER_BOUNDS_TYPE.
5935         (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
5936         (ultimate_transparent_alias_target): Move up.
5937         (make_decl_rtl): For instrumented function use
5938         name of the original decl.
5939         (assemble_start_function): Mark function as global
5940         in case it is instrumentation clone of the global
5941         function.
5942         (do_assemble_alias): Follow transparent alias chain
5943         for identifier.  Check if original alias is public.
5944         (maybe_assemble_visibility): Use visibility of the
5945         original function for instrumented version.
5946         (default_unique_section): Likewise.
5947         * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
5948         (init_emit_once): Build pointer bounds zero constants.
5949         * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
5950         * target.def (builtin_chkp_function): New.
5951         (chkp_bound_type): New.
5952         (chkp_bound_mode): New.
5953         (chkp_make_bounds_constant): New.
5954         (chkp_initialize_bounds): New.
5955         (load_bounds_for_arg): New.
5956         (store_bounds_for_arg): New.
5957         (load_returned_bounds): New.
5958         (store_returned_bounds): New.
5959         (chkp_function_value_bounds): New.
5960         (setup_incoming_vararg_bounds): New.
5961         (function_arg): Update hook description with new possible return
5962         value CONST_INT.
5963         * targhooks.h (default_load_bounds_for_arg): New.
5964         (default_store_bounds_for_arg): New.
5965         (default_load_returned_bounds): New.
5966         (default_store_returned_bounds): New.
5967         (default_chkp_bound_type): New.
5968         (default_chkp_bound_mode): New.
5969         (default_builtin_chkp_function): New.
5970         (default_chkp_function_value_bounds): New.
5971         (default_chkp_make_bounds_constant): New.
5972         (default_chkp_initialize_bounds): New.
5973         (default_setup_incoming_vararg_bounds): New.
5974         * targhooks.c (default_load_bounds_for_arg): New.
5975         (default_store_bounds_for_arg): New.
5976         (default_load_returned_bounds): New.
5977         (default_store_returned_bounds): New.
5978         (default_chkp_bound_type): New.
5979         (default_chkp_bound_mode); New.
5980         (default_builtin_chkp_function): New.
5981         (default_chkp_function_value_bounds): New.
5982         (default_chkp_make_bounds_constant): New.
5983         (default_chkp_initialize_bounds): New.
5984         (default_setup_incoming_vararg_bounds): New.
5985         * builtin-types.def (BT_BND): New.
5986         (BT_FN_PTR_CONST_PTR): New.
5987         (BT_FN_CONST_PTR_CONST_PTR): New.
5988         (BT_FN_BND_CONST_PTR): New.
5989         (BT_FN_CONST_PTR_BND): New.
5990         (BT_FN_PTR_CONST_PTR_SIZE): New.
5991         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5992         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5993         (BT_FN_VOID_CONST_PTR_SIZE): New.
5994         (BT_FN_VOID_PTR_BND): New.
5995         (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
5996         (BT_FN_BND_CONST_PTR_SIZE): New.
5997         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5998         (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
5999         * chkp-builtins.def: New.
6000         * builtins.def: include chkp-builtins.def.
6001         (DEF_CHKP_BUILTIN): New.
6002         * builtins.c: Include tree-chkp.h and rtl-chkp.h.
6003         (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6004         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6005         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6006         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6007         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6008         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6009         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6010         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6011         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
6012         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6013         (std_expand_builtin_va_start): Init bounds for va_list.
6014         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
6015         __CHKP__ macro when Pointer Bounds Checker is on.
6016         * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
6017         * passes.def (pass_ipa_chkp_versioning): New.
6018         (pass_early_local_passes): Renamed to pass_build_ssa_passes.
6019         (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
6020         (pass_chkp_instrumentation_passes): New.
6021         (pass_ipa_chkp_produce_thunks): New.
6022         (pass_local_optimization_passes): New.
6023         (pass_chkp_opt): New.
6024         * tree-pass.h (make_pass_ipa_chkp_versioning): New.
6025         (make_pass_ipa_chkp_produce_thunks): New.
6026         (make_pass_chkp): New.
6027         (make_pass_chkp_opt): New.
6028         (make_pass_early_local_passes): Renamed to ...
6029         (make_pass_build_ssa_passes): This.
6030         (make_pass_chkp_instrumentation_passes): New.
6031         (make_pass_local_optimization_passes): New.
6032         * passes.c (pass_manager::execute_early_local_passes): Execute
6033         early passes in three steps.
6034         (execute_all_early_local_passes): Renamed to ...
6035         (execute_build_ssa_passes): This.
6036         (pass_data_early_local_passes): Renamed to ...
6037         (pass_data_build_ssa_passes): This.
6038         (pass_early_local_passes): Renamed to ...
6039         (pass_build_ssa_passes): This.
6040         (pass_data_chkp_instrumentation_passes): New.
6041         (pass_chkp_instrumentation_passes): New.
6042         (pass_data_local_optimization_passes): New.
6043         (pass_local_optimization_passes): New.
6044         (make_pass_early_local_passes): Renamed to ...
6045         (make_pass_build_ssa_passes): This.
6046         (make_pass_chkp_instrumentation_passes): New.
6047         (make_pass_local_optimization_passes): New.
6048         * c-family/c.opt (fcheck-pointer-bounds): New.
6049         (fchkp-check-incomplete-type): New.
6050         (fchkp-zero-input-bounds-for-main): New.
6051         (fchkp-first-field-has-own-bounds): New.
6052         (fchkp-narrow-bounds): New.
6053         (fchkp-narrow-to-innermost-array): New.
6054         (fchkp-optimize): New.
6055         (fchkp-use-fast-string-functions): New.
6056         (fchkp-use-nochk-string-functions): New.
6057         (fchkp-use-static-bounds): New.
6058         (fchkp-use-static-const-bounds): New.
6059         (fchkp-treat-zero-dynamic-size-as-infinite): New.
6060         (fchkp-check-read): New.
6061         (fchkp-check-write): New.
6062         (fchkp-store-bounds): New.
6063         (fchkp-instrument-calls): New.
6064         (fchkp-instrument-marked-only): New.
6065         (Wchkp): New.
6066         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6067         (handle_bnd_legacy): New.
6068         (handle_bnd_instrument): New.
6069         (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
6070         and bnd_instrument.  Fix documentation.
6071         (c_common_format_attribute_table): Likewsie.
6072         * toplev.c: include tree-chkp.h.
6073         (process_options): Check Pointer Bounds Checker is supported.
6074         (compile_file): Add chkp_finish_file call.
6075         * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
6076         to handle instrumentation clones properly.
6077         (propagate_constants_accross_call): Do not propagate
6078         through instrumentation thunks.
6079         * ipa-pure-const.c (propagate_pure_const): Support
6080         IPA_REF_CHKP.
6081         * ipa-inline.c (early_inliner): Check edge has summary allocated.
6082         * ipa-split.c: Include tree-chkp.h.
6083         (find_retbnd): New.
6084         (split_part_set_ssa_name_p): New.
6085         (consider_split): Do not split retbnd and retval
6086         producers.
6087         (insert_bndret_call_after): new.
6088         (split_function): Propagate Pointer Bounds Checker
6089         instrumentation marks and handle returned bounds.
6090         * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
6091         into bit field and add with_bounds field.
6092         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
6093         with_bounds field for instrumented calls.
6094         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
6095         CALL_WITH_BOUNDS_P flag for calls.
6096         * tree-ssa-ccp.c: Include tree-chkp.h.
6097         (insert_clobber_before_stack_restore): Handle
6098         BUILT_IN_CHKP_BNDRET calls.
6099         * tree-ssa-dce.c: Include tree-chkp.h.
6100         (propagate_necessity): For free call fed by alloc check
6101         bounds are also provided by the same alloc.
6102         (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
6103         used by free calls.
6104         * tree-inline.c: Include tree-chkp.h.
6105         (declare_return_variable): Add arg holding
6106         returned bounds slot.  Create and initialize returned bounds var.
6107         (remap_gimple_stmt): Handle returned bounds.
6108         Return sequence of statements instead of a single statement.
6109         (insert_init_stmt): Add declaration.
6110         (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
6111         (copy_bb): Adjust to changed return type of remap_gimple_stmt.
6112         Properly handle bounds in va_arg_pack and va_arg_pack_len.
6113         (expand_call_inline): Handle returned bounds.  Add bounds copy
6114         for generated mem to mem assignments.
6115         * tree-inline.h (copy_body_data): Add fields retbnd and
6116         assign_stmts.
6117         * value-prof.c: Include tree-chkp.h.
6118         (gimple_ic): Support returned bounds.
6119         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6120         with "chkp ctor" and "bnd_legacy" attributes.
6121         (symtab_remove_unreachable_nodes): Keep initial values for
6122         pointer bounds to be used for checks eliminations.
6123         (process_references): Handle IPA_REF_CHKP.
6124         (walk_polymorphic_call_targets): Likewise.
6125         * ipa-visibility.c (cgraph_externally_visible_p): Mark
6126         instrumented 'main' as externally visible.
6127         (function_and_variable_visibility): Filter instrumentation
6128         thunks.
6129         * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
6130         field.
6131         (cgraph_node): Add instrumented_version, orig_decl and
6132         instrumentation_clone fields.
6133         (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
6134         (varpool_node): Add need_bounds_init field.
6135         (cgraph_local_p): New.
6136         * cgraph.c: Include tree-chkp.h.
6137         (cgraph_node::remove): Fix instrumented_version
6138         of the referenced node if any.
6139         (cgraph_node::dump): Dump instrumentation_clone and
6140         instrumented_version fields.
6141         (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
6142         references and instrumentation thunks.
6143         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
6144         all not instrumented instrumentation clones alive.
6145         (cgraph_redirect_edge_call_stmt_to_callee): Support
6146         returned bounds.
6147         * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
6148         reference.
6149         (cgraph_rebuild_references): Likewise.
6150         * cgraphunit.c: Include tree-chkp.h.
6151         (assemble_thunks_and_aliases): Skip thunks calling instrumneted
6152         function version.
6153         (varpool_finalize_decl): Register statically initialized decls
6154         in Pointer Bounds Checker.
6155         (walk_polymorphic_call_targets): Do not mark generated call to
6156         __builtin_unreachable as with_bounds.
6157         (output_weakrefs): If there are both instrumented and original
6158         versions, output only one of them.
6159         (cgraph_node::expand_thunk): Set with_bounds flag
6160         for created call statement.
6161         * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
6162         (ipa_ref): increase size of use field.
6163         * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
6164         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
6165         (ctor_for_folding): Do not fold constant bounds vars.
6166         * lto-streamer.h (LTO_minor_version): Change minor version from
6167         0 to 1.
6168         * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
6169         pointer bounds.
6170         (lto_output_node): Output instrumentation_clone,
6171         thunk.add_pointer_bounds_args and orig_decl field.
6172         (lto_output_ref): Adjust to new ipa_ref::use field size.
6173         (input_overwrite_node): Read instrumentation_clone field.
6174         (input_node): Read thunk.add_pointer_bounds_args and orig_decl
6175         fields.
6176         (input_ref): Adjust to new ipa_ref::use field size.
6177         (input_cgraph_1): Compute instrumented_version fields and restore
6178         IDENTIFIER_TRANSPARENT_ALIAS chains.
6179         (lto_output_varpool_node): Output
6180         need_bounds_init value.
6181         (input_varpool_node): Read need_bounds_init value.
6182         * lto-partition.c (add_symbol_to_partition_1): Keep original
6183         and instrumented versions together.
6184         (privatize_symbol_name): Restore transparent alias chain if required.
6185         (add_references_to_partition): Add references to pointer bounds vars.
6186         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
6187         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
6188         (gen_type_die_with_usage): Skip pointer bounds.
6189         (dwarf2out_global_decl): Likewise.
6190         (is_base_type): Support POINTER_BOUNDS_TYPE.
6191         (gen_formal_types_die): Skip pointer bounds.
6192         (gen_decl_die): Likewise.
6193         * var-tracking.c (vt_add_function_parameters): Skip
6194         bounds parameters.
6195         * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
6196         thunk still exists.
6197         (sem_variable::merge): Reset need_bounds_init flag.
6198         * doc/extend.texi: Document Pointer Bounds Checker built-in functions
6199         and attributes.
6200         * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6201         (TARGET_STORE_BOUNDS_FOR_ARG): New.
6202         (TARGET_LOAD_RETURNED_BOUNDS): New.
6203         (TARGET_STORE_RETURNED_BOUNDS): New.
6204         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6205         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6206         (TARGET_BUILTIN_CHKP_FUNCTION): New.
6207         (TARGET_CHKP_BOUND_TYPE): New.
6208         (TARGET_CHKP_BOUND_MODE): New.
6209         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6210         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6211         * doc/tm.texi: Regenerated.
6212         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6213         (BND32mode): New.
6214         (BND64mode): New.
6215         * doc/invoke.texi (-mmpx): New.
6216         (-mno-mpx): New.
6217         (chkp-max-ctor-size): New.
6218         * config/i386/constraints.md (w): New.
6219         (Ti): New.
6220         (Tb): New.
6221         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6222         * config/i386/i386-modes.def (BND32): New.
6223         (BND64): New.
6224         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6225         * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
6226         (regclass_map): Add bound registers.
6227         (dbx_register_map): Likewise.
6228         (dbx64_register_map): Likewise.
6229         (svr4_dbx_register_map): Likewise.
6230         (isa_opts): Add -mmpx.
6231         (PTA_MPX): New.
6232         (ix86_option_override_internal): Support MPX ISA.
6233         (ix86_conditional_register_usage): Support bound registers.
6234         (ix86_code_end): Add MPX bnd prefix.
6235         (output_set_got): Likewise.
6236         (print_reg): Avoid prefixes for bound registers.
6237         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6238         (ix86_print_operand_punct_valid_p): Likewise.
6239         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6240         UNSPEC_BNDLDX_ADDR.
6241         (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
6242         (ix86_class_likely_spilled_p): Add bound regs support.
6243         (ix86_hard_regno_mode_ok): Likewise.
6244         (x86_order_regs_for_local_alloc): Likewise.
6245         (ix86_bnd_prefixed_insn_p): New.
6246         (ix86_builtins): Add
6247         IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
6248         IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
6249         IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
6250         IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
6251         IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
6252         IX86_BUILTIN_BNDUPPER.
6253         (builtin_isa): Add leaf_p and nothrow_p fields.
6254         (def_builtin): Initialize leaf_p and nothrow_p.
6255         (ix86_add_new_builtins): Handle leaf_p and nothrow_p
6256         flags.
6257         (bdesc_mpx): New.
6258         (bdesc_mpx_const): New.
6259         (ix86_init_mpx_builtins): New.
6260         (ix86_init_builtins): Call ix86_init_mpx_builtins.
6261         (ix86_emit_cmove): New.
6262         (ix86_emit_move_max): New.
6263         (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
6264         IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
6265         IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
6266         IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
6267         IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
6268         IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
6269         (ix86_function_value_bounds): New.
6270         (ix86_builtin_mpx_function): New.
6271         (ix86_get_arg_address_for_bt): New.
6272         (ix86_load_bounds): New.
6273         (ix86_store_bounds): New.
6274         (ix86_load_returned_bounds): New.
6275         (ix86_store_returned_bounds): New.
6276         (ix86_mpx_bound_mode): New.
6277         (ix86_make_bounds_constant): New.
6278         (ix86_initialize_bounds):
6279         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6280         (TARGET_STORE_BOUNDS_FOR_ARG): New.
6281         (TARGET_LOAD_RETURNED_BOUNDS): New.
6282         (TARGET_STORE_RETURNED_BOUNDS): New.
6283         (TARGET_CHKP_BOUND_MODE): New.
6284         (TARGET_BUILTIN_CHKP_FUNCTION): New.
6285         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6286         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6287         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6288         (ix86_option_override_internal): Do not
6289         support x32 with MPX.
6290         (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
6291         and force_bnd_pass.
6292         (function_arg_advance_32): Return number of used integer
6293         registers.
6294         (function_arg_advance_64): Likewise.
6295         (function_arg_advance_ms_64): Likewise.
6296         (ix86_function_arg_advance): Handle pointer bounds.
6297         (ix86_function_arg): Likewise.
6298         (ix86_function_value_regno_p): Mark fisrt bounds registers as
6299         possible function value.
6300         (ix86_function_value_1): Handle pointer bounds type/mode
6301         (ix86_return_in_memory): Likewise.
6302         (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
6303         (ix86_expand_call): Generate returned bounds.
6304         (ix86_setup_incoming_vararg_bounds): New.
6305         (ix86_va_start): Initialize bounds for pointers in va_list.
6306         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6307         * config/i386/i386.h (TARGET_MPX): New.
6308         (TARGET_MPX_P): New.
6309         (FIRST_PSEUDO_REGISTER): Fix to new value.
6310         (FIXED_REGISTERS): Add bound registers.
6311         (CALL_USED_REGISTERS): Likewise.
6312         (REG_ALLOC_ORDER): Likewise.
6313         (HARD_REGNO_NREGS): Likewise.
6314         (VALID_BND_REG_MODE): New.
6315         (FIRST_BND_REG): New.
6316         (LAST_BND_REG): New.
6317         (reg_class): Add BND_REGS.
6318         (REG_CLASS_NAMES): Likewise.
6319         (REG_CLASS_CONTENTS): Likewise.
6320         (BND_REGNO_P): New.
6321         (ANY_BND_REG_P): New.
6322         (BNDmode): New.
6323         (HI_REGISTER_NAMES): Add bound registers.
6324         (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
6325         stdarg fields.
6326         * config/i386/i386.md (UNSPEC_BNDMK): New.
6327         (UNSPEC_BNDMK_ADDR): New.
6328         (UNSPEC_BNDSTX): New.
6329         (UNSPEC_BNDLDX): New.
6330         (UNSPEC_BNDLDX_ADDR): New.
6331         (UNSPEC_BNDCL): New.
6332         (UNSPEC_BNDCU): New.
6333         (UNSPEC_BNDCN): New.
6334         (UNSPEC_MPX_FENCE): New.
6335         (UNSPEC_SIZEOF): New.
6336         (BND0_REG): New.
6337         (BND1_REG): New.
6338         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6339         (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6340         (prefix_rep): Check for bnd prefix.
6341         (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6342         (length_nobnd): New.
6343         (length): Use length_nobnd when specified.
6344         (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6345         (BND): New.
6346         (bnd_ptr): New.
6347         (BNDCHECK): New.
6348         (bndcheck): New.
6349         (*jcc_1): Add MPX bnd prefix.
6350         (*jcc_2): Likewise.
6351         (jump): Likewise.
6352         (*indirect_jump): Likewise.
6353         (*tablejump_1): Likewise.
6354         (simple_return_internal): Likewise.
6355         (simple_return_internal_long): Likewise.
6356         (simple_return_pop_internal): Likewise.
6357         (simple_return_indirect_internal): Likewise.
6358         (<mode>_mk): New.
6359         (*<mode>_mk): New.
6360         (mov<mode>): New.
6361         (*mov<mode>_internal_mpx): New.
6362         (<mode>_<bndcheck>): New.
6363         (*<mode>_<bndcheck>): New.
6364         (<mode>_ldx): New.
6365         (*<mode>_ldx): New.
6366         (<mode>_stx): New.
6367         (*<mode>_stx): New.
6368         move_size_reloc_<mode>): New.
6369         * config/i386/predicates.md (address_mpx_no_base_operand): New.
6370         (address_mpx_no_index_operand): New.
6371         (bnd_mem_operator): New.
6372         (symbol_operand): New.
6373         (x86_64_immediate_size_operand): New.
6374         * config/i386/i386.opt (mmpx): New.
6375         * config/i386/i386-builtin-types.def (BND): New.
6376         (ULONG): New.
6377         (BND_FTYPE_PCVOID_ULONG): New.
6378         (VOID_FTYPE_BND_PCVOID): New.
6379         (VOID_FTYPE_PCVOID_PCVOID_BND): New.
6380         (BND_FTYPE_PCVOID_PCVOID): New.
6381         (BND_FTYPE_PCVOID): New.
6382         (BND_FTYPE_BND_BND): New.
6383         (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
6384         (PVOID_FTYPE_PCVOID_BND_ULONG): New.
6385         (ULONG_FTYPE_VOID): New.
6386         (PVOID_FTYPE_BND): New.
6388 2014-11-05  Bernd Schmidt  <bernds@codesourcery.com>
6390         * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
6391         pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
6392         pass_cleanup_barriers, pass_delay_slots,
6393         pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
6394         pass_shorten_branches, pass_est_nothrow_function_flags,
6395         pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
6396         into pass_late_compilation.
6397         (pass_late_compilation): Add.
6398         * passes.c (pass_data_late_compilation, pass_late_compilation,
6399         make_pass_late_compilation): New.
6400         * timevar.def (TV_LATE_COMPILATION): New.
6402         * target.def (omit_struct_return_reg): New data hook.
6403         * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
6404         * doc/tm.texi: Regenerate.
6405         * function.c (expand_function_end): Use it.
6407         * target.def (no_register_allocation): New data hook.
6408         * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
6409         * doc/tm.texi: Regenerate.
6410         * ira.c (gate_ira): New function.
6411         (pass_data_ira): Set has_gate.
6412         (pass_ira): Add a gate function.
6413         (pass_data_reload): Likewise.
6414         (pass_reload): Add a gate function.
6415         (pass_ira): Use it.
6416         * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
6417         no register allocation happens on the target and return.
6418         * final.c (alter_subreg): Ensure register is not a pseudo before
6419         calling simplify_subreg.
6420         (output_operand): Assert that x isn't a pseudo only if doing
6421         register allocation.
6423         * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
6424         global vars.
6426         * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
6427         sorry if necessary.
6429 2014-11-05  Alex Velenko  <Alex.Velenko@arm.com>
6431         * simplify-rtx.c (simplify_binary_operation_1): Div check added.
6432         * rtl.h (SUBREG_P): New macro added.
6434 2014-11-05  Tejas Belagod  <tejas.belagod@arm.com>
6436         * config/aarch64/aarch64-builtins.c
6437         (aarch64_build_scalar_type): Remove.
6438         (aarch64_scalar_builtin_types, aarch64_simd_type,
6439         aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
6440         aarch64_mangle_builtin_vector_type,
6441         aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
6442         aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
6443         aarch64_init_simd_builtin_types,
6444         aarch64_init_simd_builtin_scalar_types): New.
6445         (aarch64_init_simd_builtins): Refactor.
6446         (aarch64_init_crc32_builtins): Fixup with qualifier.
6447         * config/aarch64/aarch64-protos.h
6448         (aarch64_mangle_builtin_type): Export.
6449         * config/aarch64/aarch64-simd-builtin-types.def: New.
6450         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
6451         (aarch64_mangle_type): Refactor.
6452         * config/aarch64/arm_neon.h: Declare vector types based on
6453         internal types.
6454         * config/aarch64/t-aarch64: Update dependency.
6456 2014-11-04  Pat Haugen  <pthaugen@us.ibm.com>
6458         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
6459         atomic_update_decl): Guard declaration with #ifdef.
6461 2014-11-04  Marek Polacek  <polacek@redhat.com>
6463         * sanopt.c (sanopt_optimize_walker): Remove unused variables.
6465 2014-11-04  Marek Polacek  <polacek@redhat.com>
6467         * Makefile.in (OBJS): Add sanopt.o.
6468         (GTFILES): Add sanopt.c.
6469         * asan.h (asan_expand_check_ifn): Declare.
6470         * asan.c (asan_expand_check_ifn): No longer static.
6471         (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
6472         * sanopt.c: ...here.  New file.
6474 2014-11-04  Jiong Wang  <jiong.wang@arm.com>
6475 2014-11-04  Wilco Dijkstra  <wilco.dijkstra@arm.com>
6477         PR target/63293
6478         * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
6479         stack adjustment.
6481 2014-11-04  Bernd Schmidt  <bernds@codesourcery.com>
6483         * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
6484         also verify that mode is equal to the mode of op0.
6486         * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
6487         emit into a sequence instead.
6489 2014-11-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6491         * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
6493 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
6495         config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
6496         (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
6497         (reduc_smax_<mode> *2): Rename to...
6498         (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
6499         (reduc_umin_<mode> *2): Rename to...
6500         (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
6501         (reduc_umax_<mode> *2): Rename to...
6502         (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
6504 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
6506         config/arm/neon.md (reduc_plus_*): Rename to...
6507         (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
6509 2014-11-04  Michael Collison <michael.collison@linaro.org>
6511         * config/aarch64/iterators.md (lconst_atomic): New mode attribute
6512         to support constraints for CONST_INT in atomic operations.
6513         * config/aarch64/atomics.md
6514         (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
6515         (atomic_nand<mode>): Likewise.
6516         (atomic_fetch_<atomic_optab><mode>): Likewise.
6517         (atomic_fetch_nand<mode>): Likewise.
6518         (atomic_<atomic_optab>_fetch<mode>): Likewise.
6519         (atomic_nand_fetch<mode>): Likewise.
6521 2014-11-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6523         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
6524         of __ARM_FEATURE_IDIV.
6526 2014-11-04  Marek Polacek  <polacek@redhat.com>
6528         * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
6530 2014-11-03  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6532         * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
6534 2014-11-04  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6536         Revert:
6537         2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6538         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6539         Allow CC mode if HAVE_cbranchcc4.
6541 2014-11-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6543         * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
6544         with -fdump-go-spec.  Anonymous substructures are now flattened and
6545         replaced by their fields (record) or the first named, non-bitfield
6546         field (union).
6548 2014-11-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6550         * input.c (expand_location_to_spelling_point): Fix typo.
6551         (expansion_point_location_if_in_system_header): Fix comment.
6553 2014-11-03  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6555         * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
6557 2014-11-03  Richard Biener  <rguenther@suse.de>
6559         * tree-eh.c (operation_could_trap_helper_p): Handle conversions
6560         like ordinary operations.
6561         * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
6562         as NOP_EXPR.
6564 2014-11-03  Joseph Myers  <joseph@codesourcery.com>
6566         * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
6567         macros.
6568         * configure, config.h.in: Regenerate.
6569         * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
6570         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
6571         (RS6000_GLIBC_ATOMIC_FENV): New macro.
6572         * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
6573         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
6574         (RS6000_GLIBC_ATOMIC_FENV): New macro.
6575         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
6576         (atomic_update_decl): New static variables.
6577         (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
6578         Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
6579         and __atomic_feupdateenv for soft-float and no-FPRs.
6581 2014-11-03  Richard Biener  <rguenther@suse.de>
6583         * match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
6584         Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
6585         * fold-const.c (fold_unary_loc): Remove them here.
6586         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
6587         * gimple-fold.c (fold_gimple_assign): Remove now obsolete
6588         GIMPLE_UNARY_RHS case.
6589         (gimple_fold_stmt_to_constant_1): Likewise.
6590         (replace_stmt_with_simplification): Fix inverted comparison.
6592 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
6594         PR tree-optimization/60770
6595         * tree-into-ssa.c (rewrite_update_stmt): Return whether the
6596         statement should be removed.
6597         (maybe_register_def): Likewise. Replace clobbers with default
6598         definitions.
6599         (rewrite_dom_walker::before_dom_children): Remove statement if
6600         rewrite_update_stmt says so.
6601         * tree-ssa-live.c: Include tree-ssa.h.
6602         (set_var_live_on_entry): Do not mark undefined variables as live.
6603         (verify_live_on_entry): Do not check undefined variables.
6604         * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
6605         of partially undefined variables.
6606         * tree-ssa.c (ssa_undefined_value_p): Likewise.
6607         (execute_update_addresses_taken): Do not drop clobbers.
6609 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
6611         PR tree-optimization/63666
6612         * fold-const.c: Include "optabs.h".
6613         (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
6614         can_vec_perm_p permutation to one that is not.
6616 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6618         * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
6620 2014-11-03  Andrew Pinski  <apinski@cavium.com>
6622         * config/mips/mips-cpus.def (octeon3): New cpu.
6623         * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
6624         (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
6625         of the comparison no longer matches mode of the operands.
6626         (mips_issue_rate): Handle PROCESSOR_OCTEON3.
6627         * config/mips/mips.h (TARGET_OCTEON):  Add Octeon3.
6628         (TARGET_OCTEON2): Likewise.
6629         (TUNE_OCTEON): Add Octeon3.
6630         * config/mips/mips.md (processor): Add octeon3.
6631         * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
6632         (octeon_arith): Add octeon3.
6633         (octeon_condmove): Remove.
6634         (octeon_condmove_o1): New reservation.
6635         (octeon_condmove_o2): New reservation.
6636         (octeon_condmove_o3_int_on_cc): New reservation.
6637         (octeon_load_o2): Add octeon3.
6638         (octeon_cop_o2): Likewise.
6639         (octeon_store): Likewise.
6640         (octeon_brj_o2): Likewise.
6641         (octeon_imul3_o2): Likewise.
6642         (octeon_imul_o2): Likewise.
6643         (octeon_mfhilo_o2): Likewise.
6644         (octeon_imadd_o2): Likewise.
6645         (octeon_idiv_o2_si): Likewise.
6646         (octeon_idiv_o2_di): Likewise.
6647         (octeon_fpu): Add to the automaton.
6648         (octeon_fpu): New cpu unit.
6649         (octeon_condmove_o2): Check for non floating point modes.
6650         (octeon_load_o2): Add prefetchx.
6651         (octeon_cop_o2): Don't check for octeon3.
6652         (octeon3_faddsubcvt): New reservation.
6653         (octeon3_fmul): Likewise.
6654         (octeon3_fmadd): Likewise.
6655         (octeon3_div_sf): Likewise.
6656         (octeon3_div_df): Likewise.
6657         (octeon3_sqrt_sf): Likewise.
6658         (octeon3_sqrt_df): Likewise.
6659         (octeon3_rsqrt_sf): Likewise.
6660         (octeon3_rsqrt_df): Likewise.
6661         (octeon3_fabsnegmov): Likewise.
6662         (octeon_fcond): Likewise.
6663         (octeon_fcondmov): Likewise.
6664         (octeon_fpmtc1): Likewise.
6665         (octeon_fpmfc1): Likewise.
6666         (octeon_fpload): Likewise.
6667         (octeon_fpstore): Likewise.
6668         * config/mips/mips-tables.opt: Regenerate.
6669         * doc/invoke.texi (-march=@var{arch}): Add octeon3.
6671 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6673         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6674         Allow CC mode if HAVE_cbranchcc4.
6676 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6678         * config/arc/arc.c (write_ext_corereg_1): Delete.
6679         (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
6681 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6683         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
6684         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
6686 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6688         * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
6689         (small_data_pattern_1): Delete.
6690         (small_data_pattern): Use FOR_EACH_SUBRTX.
6692 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6694         * config/arc/arc.c: Include rtl-iter.h.
6695         (arc_rewrite_small_data_1): Delete.
6696         (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
6698 2014-11-02  Michael Collison  <michael.collison@linaro.org>
6700         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
6701         to support vector modes.
6702         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
6704 2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
6706         * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
6707         and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
6708         * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
6709         * optabs.c: (gen_move_insn): Move to expr.c.
6710         * expr.h: Move protypes and enums to optabs.h.
6711         * expr.c: (gen_move_insn): Relocate from optabs.c.
6712         * genemit.c (main): Include insn-codes.h.
6713         * gengtype.c (open_base_files): Include insn-codes.h.
6714         * asan.c: Include insn-codes.h.
6715         * bb-reorder.c: Ditto.
6716         * builtins.c: Ditto.
6717         * calls.c: Ditto.
6718         * cfgexpand.c: Ditto.
6719         * cilk-common.c: Ditto.
6720         * combine.c: Ditto.
6721         * dojump.c: Ditto.
6722         * dse.c: Ditto.
6723         * except.c: Ditto.
6724         * explow.c: Ditto.
6725         * expmed.c: Ditto.
6726         * function.c: Ditto.
6727         * ifcvt.c: Ditto.
6728         * internal-fn.c: Ditto.
6729         * loop-unroll.c: Ditto.
6730         * lra.c: Ditto.
6731         * modulo-sched.c: Ditto.
6732         * omp-low.c: Ditto.
6733         * postreload.c: Ditto.
6734         * ree.c: Ditto.
6735         * reload.c: Ditto.
6736         * reload1.c: Ditto.
6737         * shrink-wrap.c: Ditto.
6738         * simplify-rtx.c: Ditto.
6739         * stmt.c: Ditto.
6740         * target-globals.c: Ditto.
6741         * targhooks.c: Ditto.
6742         * toplev.c: Ditto.
6743         * tree-if-conv.c: Ditto.
6744         * tree-ssa-forwprop.c: Ditto.
6745         * tree-ssa-loop-prefetch.c: Ditto.
6746         * tree-ssa-math-opts.c: Ditto.
6747         * tree-ssa-phiopt.c: Ditto.
6748         * tree-ssa-reassoc.c: Ditto.
6749         * tree-switch-conversion.c: Ditto.
6750         * tree-vect-data-refs.c: Ditto.
6751         * tree-vect-generic.c: Ditto.
6752         * tree-vect-loop.c: Ditto.
6753         * tree-vect-patterns.c: Ditto.
6754         * tree-vect-slp.c: Ditto.
6755         * tree-vect-stmts.c: Ditto.
6756         * tree-vrp.c: Ditto.
6757         * value-prof.c: Ditto.
6758         * config/aarch64/aarch64-builtins.c: Ditto.
6759         * config/alpha/alpha.c: Ditto.
6760         * config/arm/arm.c: Ditto.
6761         * config/cris/cris.c: Ditto.
6762         * config/epiphany/epiphany.c: Ditto.
6763         * config/frv/frv.c: Ditto.
6764         * config/h8300/h8300.c: Ditto.
6765         * config/ia64/ia64.c: Ditto.
6766         * config/iq2000/iq2000.c: Ditto.
6767         * config/m32c/m32c.c: Ditto.
6768         * config/mep/mep.c: Ditto.
6769         * config/microblaze/microblaze.c: Ditto.
6770         * config/mips/mips.c: Ditto.
6771         * config/mn10300/mn10300.c: Ditto.
6772         * config/moxie/moxie.c: Ditto.
6773         * config/msp430/msp430.c: Ditto.
6774         * config/nios2/nios2.c: Ditto.
6775         * config/pa/pa.c: Ditto.
6776         * config/rl78/rl78.c: Ditto.
6777         * config/rs6000/rs6000.c: Ditto.
6778         * config/rx/rx.c: Ditto.
6779         * config/s390/s390.c: Ditto.
6780         * config/sh/sh.c: Ditto.
6781         * config/sh/sh_treg_combine.cc: Ditto.
6782         * config/spu/spu.c: Ditto.
6783         * config/stormy16/stormy16.c: Ditto.
6784         * config/tilegx/mul-tables.c: Ditto.
6785         * config/tilegx/tilegx.c: Ditto.
6786         * config/tilepro/mul-tables.c: Ditto.
6787         * config/tilepro/tilepro.c: Ditto.
6788         * config/vax/vax.c: Ditto.
6790 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6792         * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
6793         (CLEAR_BY_PIECES_P): Likewise.
6794         (SET_BY_PIECES_P): Likewise.
6795         (STORE_BY_PIECES_P): Likewise.
6796         * doc/tm.texi: Regenerate.
6797         * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
6798         SET_BY_PIECES_P, STORE_BY_PIECES_P.
6799         * expr.c (MOVE_BY_PIECES_P): Remove.
6800         (CLEAR_BY_PIECES_P): Likewise.
6801         (SET_BY_PIECES_P): Likewise.
6802         (STORE_BY_PIECES_P): Likewise.
6803         (can_move_by_pieces): Rewrite in terms of
6804         targetm.use_by_pieces_infrastructure_p.
6805         (emit_block_move_hints): Likewise.
6806         (can_store_by_pieces): Likewise.
6807         (store_by_pieces): Likewise.
6808         (clear_storage_hints): Likewise.
6809         (emit_push_insn): Likewise.
6810         (expand_constructor): Likewise.
6812 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6814         * config/aarch64/aarch64.c
6815         (aarch64_use_by_pieces_infrastructre_p): New.
6816         (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
6817         * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
6819 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6821         * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
6822         (STORE_BY_PIECES_P): Likewise.
6823         * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
6824         (mips_move_by_pieces_p): Rename to...
6825         (mips_use_by_pieces_infrastructure_p): ...this, use new hook
6826         parameters, use the default hook implementation as a
6827         fall-back.
6829 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6831         * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
6832         (sh_use_by_pieces_infrastructure_p): Likewise.
6833         * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
6834         (STORE_BY_PIECES_P): Likewise.
6835         (SET_BY_PIECES_P): Likewise.
6837 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6839         * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
6840         (arc_use_by_pieces_infrastructure_p): Likewise.
6841         * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
6842         (CAN_MOVE_BY_PIECES): Likewise.
6844 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6846         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
6847         (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
6848         * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
6849         (CLEAR_BY_PIECES): Likewise.
6850         (SET_BY_PIECES): Likewise.
6851         (STORE_BY_PIECES): Likewise.
6853 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
6855         * target.def (use_by_pieces_infrastructure_p): New.
6856         * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
6857         is deprecated.
6858         (STORE_BY_PIECES_P): Likewise.
6859         (CLEAR_BY_PIECES_P): Likewise.
6860         (SET_BY_PIECES_P): Likewise.
6861         (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
6862         * doc/tm.texi: Regenerate.
6863         * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
6864         TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
6865         (STORE_BY_PIECES_P): Likewise.
6866         (CLEAR_BY_PIECES_P): Likewise.
6867         (SET_BY_PIECES_P): Likewise.
6868         (STORE_MAX_PIECES): Move to...
6869         * defaults.h (STORE_MAX_PIECES): ...here.
6870         * targhooks.c (get_move_ratio): New.
6871         (default_use_by_pieces_infrastructure_p): Likewise.
6872         * targhooks.h (default_use_by_pieces_infrastructure_p): New.
6873         * target.h (by_pieces_operation): New.
6875 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
6877         PR target/63702
6878         * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
6879         assignment to 'nargs' variable.
6881 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
6883         PR target/63620
6884         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
6885         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
6886         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
6887         be reloaded through memory.
6888         (*pushxf): Ditto.
6889         (*pushdf): Ditto.
6891 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
6893         PR rtl-optimization/63659
6894         * ree.c (update_reg_equal_equiv_notes): New function.
6895         (combine_set_extension, transform_ifelse): Use it.
6897 2014-10-31  Jeff Law  <law@redhat.com>
6899         * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
6900         and Jonny Grant (collect2).
6902 2014-10-31  Richard Biener  <rguenther@suse.de>
6904         * builtins.c (fold_builtin_atomic_always_lock_free): Use
6905         CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
6906         approprate.
6907         (fold_builtin_expect): Likewise.
6908         (integer_valued_real_p): Likewise.
6909         * cfgexpand.c (expand_debug_expr): Likewise.
6910         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
6911         (find_foldable_builtin_expect): Likewise.
6912         * trans-mem.c (thread_private_new_memory): Likewise.
6913         * tree-affine.c (aff_combination_expand): Likewise.
6914         * tree-data-ref.c (initialize_matrix_A): Likewise.
6915         * tree-inline.c (copy_bb): Likewise.
6916         * tree-pretty-print.c (dump_function_name): Likewise.
6917         (print_call_name): Likewise.
6918         * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
6919         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
6920         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
6921         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
6922         (vect_recog_widen_mult_pattern): Likewise.
6923         (vect_operation_fits_smaller_type): Likewise.
6924         * tree-vrp.c (find_assert_locations_1): Likewise.
6925         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
6926         converts to NOP_EXPR.
6928 2014-10-31  Richard Biener  <rguenther@suse.de>
6930         * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
6931         CONVERT_EXPRs in generated code.
6932         (dt_simplify::gen): Likewise.
6934 2014-10-31  Evgeny Stupachenko  <evstupac@gmail.com>
6936         PR target/63534
6937         * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
6938         REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
6939         (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
6940         using mcount in 32bit PIC mode.
6941         (ix86_elim_entry_set_got): New.
6942         (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
6943         in PROLOGUE, delete initial if possible.
6945 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
6947         * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
6948         (want_inline_function_to_all_callers_p): Fix formatting and simplify.
6950 2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6952         PR tree-optimization/63259
6953         * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
6954         rotation left if it is a 16 bit byte swap.
6955         (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
6956         and RROTATE_EXPR statements if it is a byte rotation.
6958 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
6960         PR sanitizer/63697
6961         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
6962         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
6963         instead of vr0.min - vr1.min and vr0.max - vr1.max.
6965 2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6967         PR ipa/63696
6968         * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
6969         alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
6971 2014-10-30  Felix Yang  <felix.yang@huawei.com>
6973         * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
6974         * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
6975         (xtensa_reorg, xtensa_reorg_loops): New.
6976         (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
6977         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
6978         (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
6979         (xtensa_doloop_hooks): Define.
6980         * config/xtensa/xtensa.md (doloop_end, loop_end): New
6981         (zero_cost_loop_start): Rewritten.
6982         (zero_cost_loop_end): Likewise.
6984 2014-10-30  Steve Ellcey  <sellcey@imgtec.com>
6986         * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
6988 2014-10-30  Richard Biener  <rguenther@suse.de>
6990         * genmatch.c: Remove <map>, <utility> and <string> includes.
6991         Include ggc.h and hash-map.h.
6992         (ggc_internal_cleared_alloc): Provide stub definition.
6993         (ggc_free): Likewise.
6994         (struct capture_id_map_hasher): New traits for hash_map.
6995         (cid_map_t): New typedef.
6996         (everywhere else): Replace std::map use with cid_map_t.
6997         * hash-map.h (hash_map::elements): New member function.
6998         * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
6999         hash-map.h and $(GGC_H) as dependency.
7001 2014-10-30  Richard Biener  <rguenther@suse.de>
7003         * genmatch.c (capture_info::walk_c_expr): Ignore capture
7004         uses inside TREE_TYPE ().
7005         * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
7006         (find_candidates_dom_walker::before_dom_children): Likewise.
7007         (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
7008         (replace_profitable_candidates): Likewise.
7009         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7010         CONVERT_EXPR_CODE_P to CONVERT_EXPR.
7011         * convert.c (convert_to_integer): Use CASE_CONVERT.
7013 2014-10-30  Richard Biener  <rguenther@suse.de>
7015         * match.pd: Implement more patterns that simplify to a single value.
7016         * fold-const.c (fold_binary_loc): Remove them here.
7017         * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
7018         (fwprop_ssa_val): Remove restriction on single uses.
7020 2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7022         * config/avr/driver-avr.c (avr_set_current_device): Remove.
7024 2014-10-30  Martin Liska  <mliska@suse.cz>
7026         PR ipa/63574
7027         PR ipa/63664
7028         * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
7029         (func_checker::compare_gimple_label): Simlified comparison introduced.
7030         * ipa-icf-gimple.h: Missing comment added.
7032 2014-10-30  Jeff Law  <law@redhat.com>
7034         * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
7035         argument from rtx to rtx_insn *.
7036         (compute_movmem_length, compute_clrmem_length): Likewise.
7037         (copy_fp_args, length_fp_args): Likewise.
7038         * config/pa/pa.c (legitimize_pic_address): Promote local variable
7039         "insn" from rtx to rtx_insn *.
7040         (legitimize_tls_address, pa_emit_move_sequence): Likewise.
7041         (pa_output_block_move, store_reg, store_reg_modify): Likewise.
7042         (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
7043         (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
7044         (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
7045         (compute_movmem_length, compute_clrmem_length): Likewise.
7046         (copy_fp-args, length_fp_args): Likewise.
7048 2014-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7050         * config/arm/arm.h (MACHMODE): Treat machine_mode as a
7051         scalar typedef.
7052         (CUMULATIVE_ARGS): Guard against target includes.
7053         (machine_function): Likewise.
7055 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7057         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
7058         recog state after aarch64_prev_real_insn call.
7060 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7062         * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
7064 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7066         * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
7067         (struct machine_function): Gate definition on
7068         !defined(USED_FOR_TARGET).
7070 2014-10-29  DJ Delorie  <dj@redhat.com>
7072         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
7074 2014-10-29  Martin Liska  <mliska@suse.cz>
7076         PR ipa/63587
7077         * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
7078         to local declarations.
7079         * function.c (add_local_decl): Implementation moved from header
7080         file, assert introduced for tree type.
7081         * function.h: Likewise.
7083 2014-10-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7085         * godump.c (go_format_type): Represent "float _Complex" and
7086         "double _Complex" as complex64 or complex128 in Go, as appropriate.
7088 2014-10-29  Richard Biener  <rguenther@suse.de>
7090         * match.pd: Implement a first set of conversion patterns.
7091         * fold-const.c (fold_unary_loc): Remove them here.
7092         * tree-ssa-forwprop.c (simplify_vce): Remove.
7093         (pass_forwprop::execute): Do not call simplify_vce.
7095 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7097         * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
7098         builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
7099         cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
7100         config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
7101         config/aarch64/aarch64.c, config/aarch64/aarch64.h,
7102         config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
7103         config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
7104         config/arc/arc.h, config/arc/predicates.md,
7105         config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
7106         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
7107         config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
7108         config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
7109         config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
7110         config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
7111         config/cr16/cr16-protos.h, config/cr16/cr16.c,
7112         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
7113         config/darwin-protos.h, config/darwin.c,
7114         config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
7115         config/epiphany/epiphany.md, config/fr30/fr30.c,
7116         config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
7117         config/h8300/h8300-protos.h, config/h8300/h8300.c,
7118         config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
7119         config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
7120         config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
7121         config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
7122         config/iq2000/iq2000.c, config/iq2000/iq2000.md,
7123         config/lm32/lm32-protos.h, config/lm32/lm32.c,
7124         config/m32c/m32c-protos.h, config/m32c/m32c.c,
7125         config/m32r/m32r-protos.h, config/m32r/m32r.c,
7126         config/m68k/m68k-protos.h, config/m68k/m68k.c,
7127         config/mcore/mcore-protos.h, config/mcore/mcore.c,
7128         config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
7129         config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
7130         config/mips/mips-protos.h, config/mips/mips.c,
7131         config/mmix/mmix-protos.h, config/mmix/mmix.c,
7132         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7133         config/moxie/moxie.c, config/msp430/msp430-protos.h,
7134         config/msp430/msp430.c, config/nds32/nds32-cost.c,
7135         config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
7136         config/nds32/nds32-protos.h, config/nds32/nds32.c,
7137         config/nios2/nios2-protos.h, config/nios2/nios2.c,
7138         config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
7139         config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
7140         config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
7141         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7142         config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
7143         config/s390/predicates.md, config/s390/s390-protos.h,
7144         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7145         config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
7146         config/sh/sh.md, config/sparc/predicates.md,
7147         config/sparc/sparc-protos.h, config/sparc/sparc.c,
7148         config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
7149         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7150         config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
7151         config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
7152         config/tilepro/tilepro.c, config/v850/v850-protos.h,
7153         config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
7154         config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
7155         config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
7156         dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
7157         doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
7158         dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
7159         except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
7160         fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
7161         fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
7162         genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
7163         graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
7164         internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
7165         ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
7166         libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
7167         loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
7168         lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
7169         lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
7170         output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
7171         recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
7172         regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
7173         rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
7174         sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
7175         simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
7176         targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
7177         tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
7178         tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
7179         tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
7180         tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
7181         tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
7182         tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
7183         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
7184         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
7185         tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
7186         var-tracking.c, varasm.c: Remove redundant enum from
7187         machine_mode.
7188         * gengtype.c (main): Treat machine_mode as a scalar typedef.
7189         * genmodes.c (emit_insn_modes_h): Hide inline functions if
7190         USED_FOR_TARGET.
7192 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7194         PR rtl-optimization/63340 (part 2)
7195         * rtl.h (invalid_mode_change_p): Delete.
7196         (valid_mode_changes_for_regno): New function.
7197         * reginfo.c (invalid_mode_change_p): Delete.
7198         (valid_mode_changes_for_regno): New function.
7199         * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
7200         classes to registers that are allowed by valid_mode_changes_for_regno.
7201         (setup_regno_cost_classes_by_mode): Likewise.
7202         (print_allocno_costs): Remove invalid_mode_change_p test.
7203         (print_pseudo_costs, find_costs_and_classes): Likewise.
7205 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7207         PR rtl-optimization/63340 (part 1)
7208         * ira-costs.c (all_cost_classes): New variable.
7209         (complete_cost_classes): New function, split out from...
7210         (setup_cost_classes): ...here.
7211         (initiate_regno_cost_classes): Set up all_cost_classes.
7212         (restrict_cost_classes): New function.
7213         (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
7214         registers that are valid for the register's mode.
7215         (setup_regno_cost_classes_by_mode): Model the mode cache as a
7216         restriction of all_cost_classes to a particular mode.
7217         (print_allocno_costs): Remove contains_reg_of_mode check.
7218         (print_pseudo_costs, find_costs_and_classes): Likewise.
7220 2014-10-29  Richard Biener  <rguenther@suse.de>
7222         PR tree-optimization/63666
7223         * tree-vect-slp.c (vect_get_mask_element): Properly handle
7224         accessing out-of-bound elements.
7226 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7227             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7228             Anna Tikhonova  <anna.tikhonova@intel.com>
7229             Ilya Tocar  <ilya.tocar@intel.com>
7230             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7231             Ilya Verbin  <ilya.verbin@intel.com>
7232             Kirill Yukhin  <kirill.yukhin@intel.com>
7233             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7235         * config/i386/i386.md
7236         (movhi_internal): Always detect maskmov.
7237         (movqi_internal): Fix target check.
7239 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7241             Anna Tikhonova  <anna.tikhonova@intel.com>
7242             Ilya Tocar  <ilya.tocar@intel.com>
7243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7244             Ilya Verbin  <ilya.verbin@intel.com>
7245             Kirill Yukhin  <kirill.yukhin@intel.com>
7246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7248         * config/i386/avx512bwintrin.h: Add new intrinsics.
7249         * config/i386/avx512vlbwintrin.h: Ditto.
7250         * config/i386/avx512vlintrin.h: Ditto.
7252 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7254         * godump.c (precision_to_units): New helper function.
7255         (go_append_artificial_name): Ditto.
7256         (go_append_decl_name): Ditto.
7257         (go_append_bitfield): Ditto.
7258         (go_get_uinttype_for_precision): Ditto.
7259         (go_append_padding): Ditto.
7260         (go_force_record_alignment): Ditto.
7261         (go_format_type): Represent unions with an array of uints of the size
7262         of the alignment in go.  This fixes the 'random' size of the union's
7263         representation using just the first field.
7264         (go_format_type): Add argument that indicates whether a record is
7265         nested (used for generation of artificial go names).
7266         (go_output_fndecl): Adapt to new go_format_type signature.
7267         (go_output_typedef): Ditto.
7268         (go_output_var): Ditto.
7269         (go_output_var): Prefer to output type as alias (typedef).
7270         (go_format_type): Bitfields in records are simulated as arrays of bytes
7271         in go.
7273         * godump.c (go_format_type): Fix handling of arrays with zero elements.
7275 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
7277         * cgraph.h: Flatten.  Remove all include files.
7278         (symbol_table::initialize): Move to cgraph.c.
7279         * cgraph.c: Adjust include files.
7280         (symbol_table::initialize): Relocate from cgraph.h.
7281         * gengtype.c (open_base_files): Adjust include files.
7282         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
7283         included files.
7284         * ipa-inline.h: Remove all include files.
7285         * ipa-prop.h: Ditto.
7286         * ipa-reference.h: Ditto.
7287         * ipa-utils.h: Ditto:
7288         * lto-streamer.h: Remove cgraph.h from include list.
7289         * asan.c: Adjust include files.
7290         * auto-profile.c: Ditto.
7291         * bb-reorder.c: Ditto.
7292         * calls.c: Ditto.
7293         * cfgexpand.c: Ditto.
7294         * cgraphbuild.c: Ditto.
7295         * cgraphclones.c: Ditto.
7296         * cgraphunit.c: Ditto.
7297         * combine.c: Ditto.
7298         * coverage.c: Ditto.
7299         * data-streamer.c: Ditto.
7300         * data-streamer-in.c: Ditto.
7301         * data-streamer-out.c: Ditto.
7302         * dbxout.c: Ditto.
7303         * dwarf2out.c: Ditto.
7304         * except.c: Ditto.
7305         * expr.c: Ditto.
7306         * final.c: Ditto.
7307         * fold-const.c: Ditto.
7308         * ggc-page.c: Ditto.
7309         * gimple-fold.c: Ditto.
7310         * gimple-iterator.c: Ditto.
7311         * gimple-pretty-print.c: Ditto.
7312         * gimple-streamer-in.c: Ditto.
7313         * gimple-streamer-out.c: Ditto.
7314         * gimplify.c: Ditto.
7315         * ipa.c: Ditto.
7316         * ipa-comdats.c: Ditto.
7317         * ipa-cp.c: Ditto.
7318         * ipa-devirt.c: Ditto.
7319         * ipa-icf.c: Ditto.
7320         * ipa-icf-gimple.c: Ditto.
7321         * ipa-inline-analysis.c: Ditto.
7322         * ipa-inline.c: Ditto.
7323         * ipa-inline-transform.c: Ditto.
7324         * ipa-polymorphic-call.c: Ditto.
7325         * ipa-profile.c: Ditto.
7326         * ipa-prop.c: Ditto.
7327         * ipa-pure-const.c: Ditto.
7328         * ipa-ref.c: Ditto.
7329         * ipa-reference.c: Ditto.
7330         * ipa-split.c: Ditto.
7331         * ipa-utils.c: Ditto.
7332         * ipa-visibility.c: Ditto.
7333         * langhooks.c: Ditto.
7334         * lto-cgraph.c: Ditto.
7335         * lto-compress.c: Ditto.
7336         * lto-opts.c: Ditto.
7337         * lto-section-in.c: Ditto.
7338         * lto-section-out.c: Ditto.
7339         * lto-streamer.c: Ditto.
7340         * lto-streamer-in.c: Ditto.
7341         * lto-streamer-out.c: Ditto.
7342         * omp-low.c: Ditto.
7343         * opts-global.c: Ditto.
7344         * passes.c: Ditto.
7345         * predict.c: Ditto.
7346         * print-tree.c: Ditto.
7347         * profile.c: Ditto.
7348         * ree.c: Ditto.
7349         * stor-layout.c: Ditto.
7350         * symtab.c: Ditto.
7351         * toplev.c: Ditto.
7352         * trans-mem.c: Ditto.
7353         * tree.c: Ditto.
7354         * tree-cfg.c: Ditto.
7355         * tree-eh.c: Ditto.
7356         * tree-emutls.c: Ditto.
7357         * tree-inline.c: Ditto.
7358         * tree-nested.c: Ditto.
7359         * tree-pretty-print.c: Ditto.
7360         * tree-profile.c: Ditto.
7361         * tree-sra.c: Ditto.
7362         * tree-ssa-alias.c: Ditto.
7363         * tree-ssa-loop-ivcanon.c: Ditto.
7364         * tree-ssa-loop-ivopts.c: Ditto.
7365         * tree-ssa-pre.c: Ditto.
7366         * tree-ssa-structalias.c: Ditto.
7367         * tree-streamer.c: Ditto.
7368         * tree-streamer-in.c: Ditto.
7369         * tree-streamer-out.c: Ditto.
7370         * tree-switch-conversion.c: Ditto.
7371         * tree-tailcall.c: Ditto.
7372         * tree-vect-data-refs.c: Ditto.
7373         * tree-vectorizer.c: Ditto.
7374         * tree-vect-stmts.c: Ditto.
7375         * tsan.c: Ditto.
7376         * ubsan.c: Ditto.
7377         * value-prof.c: Ditto.
7378         * varasm.c: Ditto.
7379         * varpool.c: Ditto.
7380         * config/arm/arm.c: Ditto.
7381         * config/bfin/bfin.c: Ditto.
7382         * config/c6x/c6x.c: Ditto.
7383         * config/cris/cris.c: Ditto.
7384         * config/darwin.c: Ditto.
7385         * config/darwin-c.c: Ditto.
7386         * config/i386/i386.c: Ditto.
7387         * config/i386/winnt.c: Ditto.
7388         * config/microblaze/microblaze.c: Ditto.
7389         * config/mips/mips.c: Ditto.
7390         * config/rs6000/rs6000.c: Ditto.
7391         * config/rx/rx.c: Ditto.
7393 2014-10-28  Richard Biener  <rguenther@suse.de>
7395         * gimple-fold.h (follow_single_use_edges): Declare.
7396         * gimple-fold.c (follow_single_use_edges): New function.
7397         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
7398         * tree-ssa-propagate.c
7399         (substitute_and_fold_dom_walker::before_dom_children): Allow
7400         following single-use edges when folding stmts we propagated into.
7402 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7403             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7404             Anna Tikhonova  <anna.tikhonova@intel.com>
7405             Ilya Tocar  <ilya.tocar@intel.com>
7406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7407             Ilya Verbin  <ilya.verbin@intel.com>
7408             Kirill Yukhin  <kirill.yukhin@intel.com>
7409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7411         * config/i386/avx512bwintrin.h: New.
7412         * config/i386/avx512dqintrin.h: Ditto.
7413         * config/i386/avx512vlbwintrin.h: Ditto.
7414         * config/i386/avx512vldqintrin.h: Ditto.
7415         * config/i386/avx512vlintrin.h: Ditto.
7416         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
7417         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
7419 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7420             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7421             Anna Tikhonova  <anna.tikhonova@intel.com>
7422             Ilya Tocar  <ilya.tocar@intel.com>
7423             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7424             Ilya Verbin  <ilya.verbin@intel.com>
7425             Kirill Yukhin  <kirill.yukhin@intel.com>
7426             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7428         * config/i386/i386.c
7429         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
7430         avx_shufpd256_mask, avx_vpermilv2df_mask.
7432 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7434             Anna Tikhonova  <anna.tikhonova@intel.com>
7435             Ilya Tocar  <ilya.tocar@intel.com>
7436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7437             Ilya Verbin  <ilya.verbin@intel.com>
7438             Kirill Yukhin  <kirill.yukhin@intel.com>
7439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7441         * config/i386/i386.c
7442         (ix86_init_mmx_sse_builtins):
7443         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
7444         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
7445         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
7446         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
7447         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
7448         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
7449         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
7450         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
7451         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
7452         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
7453         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
7454         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
7455         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
7456         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
7457         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
7458         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
7459         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
7460         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
7462 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7464             Anna Tikhonova  <anna.tikhonova@intel.com>
7465             Ilya Tocar  <ilya.tocar@intel.com>
7466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7467             Ilya Verbin  <ilya.verbin@intel.com>
7468             Kirill Yukhin  <kirill.yukhin@intel.com>
7469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7471         * config/i386/i386.c
7472         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
7473         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
7474         IX86_BUILTIN_GATHER3ALTDIV8SI.
7475         (ix86_expand_builtin):
7476         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
7477         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
7478         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
7479         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
7480         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
7481         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
7482         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
7483         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
7484         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
7485         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
7486         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
7487         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
7488         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
7489         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
7490         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
7491         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
7492         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
7493         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
7494         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
7495         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
7497 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7498             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7499             Anna Tikhonova  <anna.tikhonova@intel.com>
7500             Ilya Tocar  <ilya.tocar@intel.com>
7501             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7502             Ilya Verbin  <ilya.verbin@intel.com>
7503             Kirill Yukhin  <kirill.yukhin@intel.com>
7504             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7506         * config/i386/i386-builtin-types.def
7507         (SHORT): New.
7508         (V32HI): Ditto.
7509         (V12QI): Ditto.
7510         (V14QI): Ditto.
7511         (V32SI): Ditto.
7512         (V8UDI): Ditto.
7513         (V16USI): Ditto.
7514         (V32UHI): Ditto.
7515         (PSHORT): Ditto.
7516         (PV32QI): Ditto.
7517         (PV32HI): Ditto.
7518         (PV64QI): Ditto.
7519         (PCV8HI): Ditto.
7520         (PCV16QI): Ditto.
7521         (PCV16HI): Ditto.
7522         (PCV32QI): Ditto.
7523         (PCV32HI): Ditto.
7524         (PCV64QI): Ditto.
7525         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
7526         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
7527         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
7528         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
7529         (V16SF_FTYPE_V16HI): Ditto.
7530         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
7531         (V16SF_FTYPE_V16SI): Ditto.
7532         (V4DI_FTYPE_V4DI): Ditto.
7533         (V16SI_FTYPE_V16SF): Ditto.
7534         (V8DI_FTYPE_PV2DI): Ditto.
7535         (V8DF_FTYPE_PV2DF): Ditto.
7536         (V4DI_FTYPE_PV2DI): Ditto.
7537         (V4DF_FTYPE_PV2DF): Ditto.
7538         (V16SI_FTYPE_PV2SI): Ditto.
7539         (V16SF_FTYPE_PV2SF): Ditto.
7540         (V8SF_FTYPE_FLOAT): Ditto.
7541         (V4SF_FTYPE_FLOAT): Ditto.
7542         (V4DF_FTYPE_DOUBLE): Ditto.
7543         (V8SF_FTYPE_PV4SF): Ditto.
7544         (V8SI_FTYPE_PV4SI): Ditto.
7545         (V4SI_FTYPE_PV2SI): Ditto.
7546         (V8SF_FTYPE_PV2SF): Ditto.
7547         (V8SI_FTYPE_PV2SI): Ditto.
7548         (V16SF_FTYPE_PV8SF): Ditto.
7549         (V16SI_FTYPE_PV8SI): Ditto.
7550         (V8DI_FTYPE_V8SF): Ditto.
7551         (V4DI_FTYPE_V4SF): Ditto.
7552         (V2DI_FTYPE_V4SF): Ditto.
7553         (V64QI_FTYPE_QI): Ditto.
7554         (V32HI_FTYPE_HI): Ditto.
7555         (V16UHI_FTYPE_V16UHI): Ditto.
7556         (V32UHI_FTYPE_V32UHI): Ditto.
7557         (V2UDI_FTYPE_V2UDI): Ditto.
7558         (V4UDI_FTYPE_V4UDI): Ditto.
7559         (V8UDI_FTYPE_V8UDI): Ditto.
7560         (V4USI_FTYPE_V4USI): Ditto.
7561         (V16USI_FTYPE_V16USI): Ditto.
7562         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
7563         (V2DF_FTYPE_V8DF_INT): Ditto.
7564         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
7565         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
7566         (V8DF_FTYPE_V8DF_INT): Ditto.
7567         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
7568         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
7569         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
7570         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
7571         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
7572         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
7573         (V8DI_FTYPE_V8DI_INT): Ditto.
7574         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
7575         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
7576         (V8SF_FTYPE_V16SF_INT): Ditto.
7577         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
7578         (V64QI_FTYPE_V32HI_V32HI): Ditto.
7579         (V32HI_FTYPE_V16SI_V16SI): Ditto.
7580         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
7581         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
7582         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
7583         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
7584         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
7585         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
7586         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
7587         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
7588         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
7589         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
7590         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
7591         (V32HI_FTYPE_V64QI_V64QI): Ditto.
7592         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
7593         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
7594         (V32HI_FTYPE_V32HI_V32HI): Ditto.
7595         (V32HI_FTYPE_V32HI_INT): Ditto.
7596         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
7597         (V16SI_FTYPE_V32HI_V32HI): Ditto.
7598         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
7599         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
7600         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
7601         (V8SI_FTYPE_V16SI_INT): Ditto.
7602         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
7603         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
7604         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
7605         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
7606         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
7607         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
7608         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
7609         (V8DI_FTYPE_V16SI_V16SI): Ditto.
7610         (V8DI_FTYPE_V64QI_V64QI): Ditto.
7611         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
7612         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
7613         (V2DI_FTYPE_V8DI_INT): Ditto.
7614         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
7615         (QI_FTYPE_QI): Ditto.
7616         (SI_FTYPE_SI): Ditto.
7617         (DI_FTYPE_DI): Ditto.
7618         (HI_FTYPE_V16QI): Ditto.
7619         (SI_FTYPE_V32QI): Ditto.
7620         (DI_FTYPE_V64QI): Ditto.
7621         (QI_FTYPE_V8HI): Ditto.
7622         (HI_FTYPE_V16HI): Ditto.
7623         (SI_FTYPE_V32HI): Ditto.
7624         (QI_FTYPE_V4SI): Ditto.
7625         (QI_FTYPE_V8SI): Ditto.
7626         (HI_FTYPE_V16SI): Ditto.
7627         (QI_FTYPE_V2DI): Ditto.
7628         (QI_FTYPE_V4DI): Ditto.
7629         (QI_FTYPE_V8DI): Ditto.
7630         (V16QI_FTYPE_HI): Ditto.
7631         (V32QI_FTYPE_SI): Ditto.
7632         (V64QI_FTYPE_DI): Ditto.
7633         (V8HI_FTYPE_QI): Ditto.
7634         (V16HI_FTYPE_HI): Ditto.
7635         (V32HI_FTYPE_SI): Ditto.
7636         (V4SI_FTYPE_QI): Ditto.
7637         (V4SI_FTYPE_HI): Ditto.
7638         (V8SI_FTYPE_QI): Ditto.
7639         (V8SI_FTYPE_HI): Ditto.
7640         (V2DI_FTYPE_QI): Ditto.
7641         (V4DI_FTYPE_QI): Ditto.
7642         (QI_FTYPE_QI_QI): Ditto.
7643         (SI_FTYPE_SI_SI): Ditto.
7644         (DI_FTYPE_DI_DI): Ditto.
7645         (QI_FTYPE_QI_INT): Ditto.
7646         (SI_FTYPE_SI_INT): Ditto.
7647         (DI_FTYPE_DI_INT): Ditto.
7648         (HI_FTYPE_V16QI_V16QI): Ditto.
7649         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
7650         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
7651         (SI_FTYPE_V32QI_V32QI): Ditto.
7652         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
7653         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
7654         (DI_FTYPE_V64QI_V64QI): Ditto.
7655         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
7656         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
7657         (QI_FTYPE_V8HI_V8HI): Ditto.
7658         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
7659         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
7660         (HI_FTYPE_V16HI_V16HI): Ditto.
7661         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
7662         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
7663         (SI_FTYPE_V32HI_V32HI): Ditto.
7664         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
7665         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
7666         (QI_FTYPE_V4SI_V4SI): Ditto.
7667         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
7668         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
7669         (QI_FTYPE_V8SI_V8SI): Ditto.
7670         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
7671         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
7672         (QI_FTYPE_V2DI_V2DI): Ditto.
7673         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
7674         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
7675         (QI_FTYPE_V4DI_V4DI): Ditto.
7676         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
7677         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
7678         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
7679         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
7680         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
7681         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
7682         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
7683         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
7684         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
7685         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
7686         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
7687         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
7688         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
7689         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
7690         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
7691         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
7692         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
7693         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
7694         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
7695         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
7696         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
7697         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
7698         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
7699         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
7700         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
7701         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
7702         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
7703         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
7704         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
7705         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
7706         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
7707         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
7708         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
7709         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
7710         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
7711         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
7712         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
7713         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
7714         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
7715         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
7716         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
7717         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
7718         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
7719         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
7720         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
7721         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
7722         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
7723         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
7724         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
7725         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
7726         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
7727         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
7728         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
7729         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
7730         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
7731         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
7732         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
7733         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
7734         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
7735         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
7736         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
7737         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
7738         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
7739         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
7740         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
7741         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
7742         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
7743         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
7744         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
7745         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
7746         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
7747         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
7748         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
7749         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
7750         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
7751         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
7752         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
7753         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
7754         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
7755         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
7756         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
7757         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
7758         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
7759         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
7760         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
7761         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
7762         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
7763         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
7764         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
7765         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
7766         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
7767         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
7768         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
7769         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
7770         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
7771         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
7772         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
7773         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
7774         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
7775         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
7776         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
7777         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
7778         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
7779         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
7780         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
7781         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
7782         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
7783         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
7784         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
7785         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
7786         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
7787         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
7788         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
7789         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
7790         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
7791         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
7792         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
7793         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
7794         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
7795         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
7796         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
7797         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
7798         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
7799         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
7800         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
7801         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
7802         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
7803         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
7804         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
7805         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
7806         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
7807         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
7808         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
7809         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
7810         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
7811         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
7812         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
7813         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
7814         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
7815         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
7816         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
7817         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
7818         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
7819         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
7820         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
7821         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
7822         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
7823         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
7824         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
7825         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
7826         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
7827         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
7828         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
7829         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
7830         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
7831         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
7832         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
7833         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
7834         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
7835         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
7836         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
7837         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
7838         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
7839         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
7840         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
7841         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
7842         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
7843         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
7844         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
7845         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
7846         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
7847         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
7848         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
7849         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
7850         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
7851         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
7852         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
7853         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
7854         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
7855         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
7856         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
7857         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
7858         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
7859         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
7860         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
7861         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
7862         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
7863         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
7864         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
7865         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
7866         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
7867         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
7868         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
7869         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
7870         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
7871         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
7872         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
7873         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
7874         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
7875         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
7876         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
7877         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
7878         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
7879         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
7880         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
7881         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
7882         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
7883         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
7884         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
7885         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
7886         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
7887         (QI_FTYPE_V8DF_INT): Ditto.
7888         (QI_FTYPE_V4DF_INT): Ditto.
7889         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
7890         (QI_FTYPE_V2DF_INT): Ditto.
7891         (HI_FTYPE_V16SF_INT): Ditto.
7892         (QI_FTYPE_V8SF_INT): Ditto.
7893         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
7894         (QI_FTYPE_V4SF_INT): Ditto.
7895         (QI_FTYPE_V8DF_INT_QI): Ditto.
7896         (QI_FTYPE_V4DF_INT_QI): Ditto.
7897         (QI_FTYPE_V2DF_INT_QI): Ditto.
7898         (HI_FTYPE_V16SF_INT_HI): Ditto.
7899         (QI_FTYPE_V8SF_INT_QI): Ditto.
7900         (QI_FTYPE_V4SF_INT_QI): Ditto.
7901         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
7902         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
7903         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
7904         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
7905         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
7906         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
7907         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
7908         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
7909         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
7910         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
7911         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
7912         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
7913         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
7914         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
7915         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
7916         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
7917         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
7918         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
7919         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
7920         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
7921         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
7922         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
7923         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
7924         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
7925         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
7926         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
7927         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
7928         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
7929         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
7930         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
7931         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
7932         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
7933         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
7934         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
7935         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
7936         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
7937         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
7938         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
7939         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
7940         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
7941         (V8DI_FTYPE_V8DI_INT): Ditto.
7942         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
7943         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
7944         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
7945         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
7946         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
7947         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
7948         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
7949         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
7950         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
7951         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
7952         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
7953         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
7954         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
7955         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
7956         * config/i386/i386.c (ix86_builtins):
7957         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
7958         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
7959         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
7960         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
7961         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
7962         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
7963         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
7964         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
7965         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
7966         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
7967         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
7968         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
7969         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
7970         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
7971         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
7972         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
7973         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
7974         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
7975         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
7976         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
7977         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
7978         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
7979         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
7980         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
7981         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
7982         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
7983         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
7984         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
7985         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
7986         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
7987         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
7988         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
7989         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
7990         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
7991         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
7992         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
7993         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
7994         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
7995         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
7996         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
7997         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
7998         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
7999         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
8000         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
8001         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
8002         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
8003         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
8004         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
8005         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
8006         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
8007         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
8008         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
8009         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
8010         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
8011         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
8012         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
8013         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
8014         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
8015         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
8016         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
8017         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
8018         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
8019         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
8020         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
8021         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
8022         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
8023         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
8024         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
8025         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
8026         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
8027         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
8028         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
8029         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
8030         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
8031         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
8032         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
8033         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
8034         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
8035         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
8036         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
8037         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
8038         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
8039         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
8040         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
8041         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
8042         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
8043         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
8044         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
8045         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
8046         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
8047         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
8048         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
8049         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
8050         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
8051         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
8052         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
8053         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
8054         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
8055         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
8056         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
8057         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
8058         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
8059         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
8060         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
8061         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
8062         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
8063         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
8064         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
8065         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
8066         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
8067         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
8068         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
8069         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
8070         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
8071         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
8072         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
8073         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
8074         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
8075         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
8076         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
8077         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
8078         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
8079         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
8080         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
8081         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
8082         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
8083         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
8084         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
8085         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
8086         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
8087         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
8088         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
8089         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
8090         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
8091         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
8092         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
8093         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
8094         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
8095         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
8096         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
8097         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
8098         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
8099         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
8100         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
8101         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
8102         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
8103         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
8104         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
8105         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
8106         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
8107         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
8108         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
8109         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
8110         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
8111         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
8112         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
8113         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
8114         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
8115         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
8116         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
8117         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
8118         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
8119         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
8120         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
8121         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
8122         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
8123         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
8124         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
8125         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
8126         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
8127         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
8128         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
8129         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
8130         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
8131         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
8132         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
8133         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
8134         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
8135         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
8136         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
8137         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
8138         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
8139         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
8140         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
8141         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
8142         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
8143         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
8144         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
8145         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
8146         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
8147         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
8148         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
8149         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
8150         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
8151         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
8152         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
8153         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
8154         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
8155         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
8156         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
8157         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
8158         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
8159         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
8160         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
8161         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
8162         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
8163         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
8164         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
8165         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
8166         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
8167         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
8168         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
8169         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
8170         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
8171         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
8172         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
8173         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
8174         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
8175         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
8176         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
8177         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
8178         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
8179         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
8180         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
8181         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
8182         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
8183         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
8184         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
8185         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
8186         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
8187         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
8188         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
8189         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
8190         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
8191         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
8192         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
8193         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
8194         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
8195         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
8196         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
8197         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
8198         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
8199         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
8200         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
8201         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
8202         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
8203         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
8204         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
8205         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
8206         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
8207         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
8208         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
8209         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
8210         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
8211         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
8212         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
8213         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
8214         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
8215         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
8216         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
8217         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
8218         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
8219         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
8220         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
8221         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
8222         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
8223         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
8224         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
8225         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
8226         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
8227         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
8228         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
8229         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
8230         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
8231         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
8232         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
8233         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
8234         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
8235         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
8236         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
8237         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
8238         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
8239         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
8240         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
8241         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
8242         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
8243         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
8244         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
8245         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
8246         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
8247         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
8248         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
8249         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
8250         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
8251         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
8252         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
8253         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
8254         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
8255         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
8256         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
8257         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
8258         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
8259         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
8260         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
8261         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
8262         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
8263         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
8264         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
8265         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
8266         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
8267         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
8268         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
8269         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
8270         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
8271         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
8272         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
8273         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
8274         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
8275         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
8276         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
8277         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
8278         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
8279         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
8280         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
8281         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
8282         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
8283         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
8284         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
8285         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
8286         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
8287         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
8288         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
8289         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
8290         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
8291         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
8292         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
8293         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
8294         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
8295         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
8296         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
8297         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
8298         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
8299         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
8300         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
8301         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
8302         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
8303         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
8304         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
8305         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
8306         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
8307         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
8308         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
8309         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
8310         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
8311         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
8312         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
8313         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
8314         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
8315         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
8316         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
8317         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
8318         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
8319         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
8320         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
8321         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
8322         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
8323         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
8324         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
8325         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
8326         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
8327         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
8328         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
8329         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
8330         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
8331         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
8332         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
8333         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
8334         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
8335         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
8336         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
8337         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
8338         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
8339         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
8340         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
8341         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
8342         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
8343         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
8344         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
8345         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
8346         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
8347         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
8348         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
8349         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
8350         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
8351         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
8352         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
8353         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
8354         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
8355         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
8356         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
8357         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
8358         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
8359         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
8360         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
8361         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
8362         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
8363         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
8364         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
8365         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
8366         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
8367         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
8368         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
8369         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
8370         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
8371         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
8372         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
8373         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
8374         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
8375         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
8376         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
8377         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
8378         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
8379         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
8380         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
8381         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
8382         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
8383         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
8384         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
8385         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
8386         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
8387         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
8388         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
8389         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
8390         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
8391         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
8392         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
8393         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
8394         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
8395         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
8396         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
8397         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
8398         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
8399         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
8400         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
8401         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
8402         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
8403         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
8404         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
8405         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
8406         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
8407         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
8408         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
8409         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
8410         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
8411         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
8412         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
8413         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
8414         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
8415         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
8416         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
8417         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
8418         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
8419         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
8420         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
8421         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
8422         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
8423         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
8424         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
8425         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
8426         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
8427         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
8428         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
8429         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
8430         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
8431         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
8432         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
8433         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
8434         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
8435         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
8436         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
8437         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
8438         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
8439         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
8440         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
8441         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
8442         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
8443         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
8444         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
8445         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
8446         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
8447         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
8448         (bdesc_special_args):
8449         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
8450         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
8451         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
8452         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
8453         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
8454         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
8455         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
8456         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
8457         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
8458         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
8459         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
8460         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
8461         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
8462         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
8463         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
8464         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
8465         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
8466         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
8467         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
8468         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
8469         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
8470         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
8471         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
8472         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
8473         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
8474         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
8475         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
8476         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
8477         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
8478         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
8479         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
8480         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
8481         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
8482         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
8483         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
8484         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
8485         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
8486         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
8487         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
8488         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
8489         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
8490         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
8491         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
8492         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
8493         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
8494         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
8495         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
8496         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
8497         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
8498         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
8499         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
8500         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
8501         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
8502         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
8503         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
8504         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
8505         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
8506         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
8507         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
8508         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
8509         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
8510         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
8511         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
8512         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
8513         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
8514         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
8515         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
8516         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
8517         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
8518         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
8519         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
8520         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
8521         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
8522         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
8523         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
8524         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
8525         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
8526         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
8527         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
8528         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
8529         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
8530         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
8531         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
8532         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
8533         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
8534         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
8535         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
8536         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
8537         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
8538         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
8539         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
8540         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
8541         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
8542         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
8543         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
8544         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
8545         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
8546         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
8547         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
8548         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
8549         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
8550         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
8551         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
8552         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
8553         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
8554         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
8555         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
8556         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
8557         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
8558         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
8559         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
8560         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
8561         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
8562         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
8563         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
8564         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
8565         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
8566         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
8567         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
8568         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
8569         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
8570         __builtin_ia32_reducesd, __builtin_ia32_reducess,
8571         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
8572         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
8573         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
8574         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
8575         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
8576         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
8577         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
8578         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
8579         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
8580         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
8581         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
8582         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
8583         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
8584         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
8585         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
8586         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
8587         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
8588         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
8589         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
8590         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
8591         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
8592         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
8593         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
8594         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
8595         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
8596         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
8597         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
8598         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
8599         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
8600         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
8601         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
8602         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
8603         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
8604         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
8605         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
8606         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
8607         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
8608         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
8609         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
8610         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
8611         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
8612         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
8613         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
8614         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
8615         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
8616         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
8617         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
8618         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
8619         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
8620         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
8621         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
8622         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
8623         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
8624         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
8625         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
8626         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
8627         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
8628         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
8629         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
8630         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
8631         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
8632         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
8633         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
8634         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
8635         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
8636         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
8637         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
8638         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
8639         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
8640         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
8641         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
8642         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
8643         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
8644         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
8645         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
8646         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
8647         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
8648         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
8649         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
8650         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
8651         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
8652         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
8653         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
8654         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
8655         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
8656         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
8657         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
8658         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
8659         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
8660         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
8661         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
8662         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
8663         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
8664         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
8665         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
8666         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
8667         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
8668         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
8669         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
8670         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
8671         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
8672         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
8673         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
8674         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
8675         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
8676         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
8677         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
8678         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
8679         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
8680         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
8681         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
8682         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
8683         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
8684         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
8685         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
8686         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
8687         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
8688         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
8689         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
8690         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
8691         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
8692         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
8693         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
8694         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
8695         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
8696         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
8697         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
8698         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
8699         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
8700         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
8701         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
8702         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
8703         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
8704         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
8705         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
8706         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
8707         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
8708         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
8709         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
8710         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
8711         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
8712         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
8713         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
8714         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
8715         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
8716         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
8717         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
8718         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
8719         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
8720         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
8721         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
8722         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
8723         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
8724         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
8725         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
8726         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
8727         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
8728         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
8729         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
8730         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
8731         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
8732         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
8733         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
8734         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
8735         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
8736         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
8737         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
8738         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
8739         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
8740         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
8741         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
8742         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
8743         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
8744         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
8745         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
8746         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
8747         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
8748         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
8749         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
8750         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
8751         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
8752         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
8753         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
8754         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
8755         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
8756         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
8757         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
8758         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
8759         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
8760         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
8761         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
8762         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
8763         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
8764         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
8765         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
8766         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
8767         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
8768         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
8769         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
8770         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
8771         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
8772         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
8773         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
8774         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
8775         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
8776         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
8777         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
8778         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
8779         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
8780         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
8781         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
8782         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
8783         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
8784         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
8785         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
8786         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
8787         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
8788         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
8789         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
8790         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
8791         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
8792         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
8793         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
8794         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
8795         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
8796         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
8797         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
8798         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
8799         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
8800         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
8801         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
8802         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
8803         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
8804         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
8805         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
8806         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
8807         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
8808         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
8809         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
8810         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
8811         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
8812         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
8813         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
8814         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
8815         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
8816         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
8817         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
8818         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
8819         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
8820         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
8821         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
8822         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
8823         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
8824         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
8825         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
8826         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
8827         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
8828         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
8829         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
8830         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
8831         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
8832         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
8833         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
8834         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
8835         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
8836         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
8837         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
8838         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
8839         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
8840         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
8841         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
8842         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
8843         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
8844         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
8845         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
8846         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
8847         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
8848         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
8849         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
8850         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
8851         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
8852         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
8853         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
8854         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
8855         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
8856         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
8857         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
8858         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
8859         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
8860         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
8861         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
8862         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
8863         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
8864         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
8865         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
8866         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
8867         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
8868         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
8869         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
8870         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
8871         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
8872         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
8873         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
8874         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
8875         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
8876         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
8877         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
8878         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
8879         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
8880         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
8881         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
8882         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
8883         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
8884         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
8885         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
8886         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
8887         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
8888         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
8889         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
8890         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
8891         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
8892         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
8893         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
8894         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
8895         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
8896         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
8897         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
8898         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
8899         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
8900         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
8901         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
8902         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
8903         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
8904         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
8905         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
8906         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
8907         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
8908         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
8909         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
8910         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
8911         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
8912         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
8913         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
8914         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
8915         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
8916         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
8917         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
8918         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
8919         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
8920         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
8921         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
8922         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
8923         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
8924         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
8925         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
8926         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
8927         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
8928         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
8929         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
8930         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
8931         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
8932         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
8933         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
8934         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
8935         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
8936         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
8937         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
8938         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
8939         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
8940         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
8941         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
8942         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
8943         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
8944         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
8945         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
8946         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
8947         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
8948         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
8949         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
8950         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
8951         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
8952         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
8953         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
8954         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
8955         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
8956         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
8957         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
8958         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
8959         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
8960         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
8961         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
8962         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
8963         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
8964         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
8965         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
8966         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
8967         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
8968         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
8969         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
8970         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
8971         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
8972         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
8973         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
8974         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
8975         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
8976         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
8977         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
8978         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
8979         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
8980         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
8981         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
8982         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
8983         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
8984         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
8985         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
8986         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
8987         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
8988         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
8989         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
8990         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
8991         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
8992         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
8993         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
8994         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
8995         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
8996         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
8997         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
8998         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
8999         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
9000         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
9001         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
9002         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
9003         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
9004         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
9005         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
9006         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
9007         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
9008         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
9009         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
9010         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
9011         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
9012         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
9013         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
9014         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
9015         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
9016         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
9017         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
9018         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
9019         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
9020         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
9021         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
9022         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
9023         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
9024         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
9025         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
9026         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
9027         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
9028         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
9029         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
9030         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
9031         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
9032         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
9033         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
9034         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
9035         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
9036         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
9037         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
9038         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
9039         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
9040         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
9041         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
9042         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
9043         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
9044         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
9045         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
9046         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
9047         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
9048         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
9049         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
9050         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
9051         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
9052         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
9053         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
9054         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
9055         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
9056         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
9057         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
9059 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
9061         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
9062         type for the left shift in CASE_CONVERT case.
9064 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9066         * asan.h (asan_intercepted_p): New function.
9067         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
9068         hash value construction.  Call iterative_hash_expr instead of explicit
9069         hash building.
9070         (asan_mem_ref_hasher::equal): Change condition.
9071         (has_mem_ref_been_instrumented): Likewise.
9072         (update_mem_ref_hash_table): Likewise.
9073         (maybe_update_mem_ref_hash_table): New function.
9074         (instrument_strlen_call): Removed.
9075         (get_mem_refs_of_builtin_call): Handle new parameter.
9076         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
9077         of instrument_mem_region_access if intercepted_p is true.
9078         (instrument_mem_region_access): Instrument only base with len instead of
9079         base and end with 1.
9080         (build_check_stmt): Remove start_instrumented and end_instrumented
9081         parameters.
9082         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
9083         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
9084         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
9085         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
9086         builtin functions that have interceptors if ASan is enabled.
9088 2014-10-28  Richard Biener  <rguenther@suse.de>
9090         PR middle-end/63665
9091         * fold-const.c (fold_comparison): Properly guard simplifying
9092         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
9094 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
9096         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
9097         * fold-const.c (const_binop): Likewise.
9098         * cfgexpand.c (expand_debug_expr): Likewise.
9099         * tree-inline.c (estimate_operator_cost): Likewise.
9100         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9101         * optabs.c (optab_for_tree_code): Likewise.
9102         (expand_vec_shift_expr): Likewise, update comment.
9103         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
9104         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
9105         * optabs.def: Remove vec_shl_optab.
9106         * doc/md.texi: Remove references to vec_shr_m.
9108 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
9110         * asan.c (report_error_func): Add noabort path.
9111         (check_func): Ditto.  Formatting.
9112         (asan_expand_check_ifn): Handle noabort path.
9113         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
9114         to default value.
9115         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
9116         * opts.c (finish_options): Reword comment.
9117         * sanitizer.def: Add noabort ASan builtins.
9119 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
9121         * asan.c (set_asan_shadow_offset): New function.
9122         (asan_shadow_offset): Likewise.
9123         (asan_emit_stack_protection): Call asan_shadow_offset.
9124         (build_shadow_mem_access): Likewise.
9125         * asan.h (set_asan_shadow_offset): Declare.
9126         * common.opt (fasan-shadow-offset): New option.
9127         (frandom-seed): Fixed parameter name.
9128         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
9129         (frandom-seed): Fixed parameter name.
9130         * opts-global.c (handle_common_deferred_options): Handle
9131         -fasan-shadow-offset.
9132         * opts.c (common_handle_option): Likewise.
9134 2014-10-27  Jiong Wang <jiong.wang@arm.com>
9136         PR target/63442
9137         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
9139 2014-10-27  DJ Delorie  <dj@redhat.com>
9141         * tree.c (build_common_tree_nodes): Don't even store the
9142         __int128 types if they're not supported.
9144 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9146         * config/i386/i386.c (ix86_loop_memcount): Delete.
9147         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
9149 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9151         * config/i386/i386.c (find_constant_1): Delete.
9152         (find_constant): Use FOR_EACH_SUBRTX.
9154 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9156         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
9157         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
9159 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9161         * config/i386/i386.c: Include rtl-iter.h
9162         (ix86_check_avx256_register): Take a const_rtx and return a bool.
9163         (ix86_check_avx256_stores): Update call accordingly.
9164         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
9165         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
9167 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9169         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
9170         Take an rtx and return a bool.
9171         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
9172         Use FOR_EACH_SUBRTX_VAR.
9173         * config/alpha/predicates.md (some_small_symbolic_operand): Update
9174         accordingly.
9176 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9178         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
9179         a bool.
9180         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
9181         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
9183 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9185         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
9186         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
9188 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9190         * config/alpha/alpha.c: Include rtl-iter.h.
9191         (split_small_symbolic_operand_1): Delete.
9192         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
9194 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9196         * config/s390/s390.c: Include rtl-iter.h.
9197         (check_dpu): Delete.
9198         (s390_loop_unroll_adjust): Only iterate over patterns.
9199         Use FOR_EACH_SUBRTX.
9201 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9203         * config/spu/spu.c: Include rtl-iter.h
9204         (ea_symbol_ref): Replace with...
9205         (ea_symbol_ref_p): ...this new function.
9206         (spu_legitimate_address_p): Update call accordingly.
9207         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
9209 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
9210             Tom Tromey  <tromey@redhat.com>
9212         * aclocal.m4, configure: Rebuild.
9213         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
9214         * configure.ac: Use GCC_ENABLE_PLUGINS.
9215         * stor-layout.c (finish_bitfield_layout): Now public.  Change
9216         argument type to 'tree'.
9217         (finish_record_layout): Update.
9218         * stor-layout.h (finish_bitfield_layout): Declare.
9220 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9222         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
9223         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
9224         Restore, enable for bigendian, update to use __builtin..._scal...
9226 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9228         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
9229         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
9230         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
9231         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
9233         * config/aarch64/aarch64-simd.md
9234         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
9235         (reduc_<maxmin_uns>_internal<mode>): ...this.
9236         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
9237         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
9239         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
9240         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
9241         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
9243         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
9244         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
9245         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
9246         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
9247         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
9248         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
9249         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
9250         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
9252 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9254         * config/aarch64/aarch64-simd-builtins.def
9255         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
9256         Remove.
9257         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
9259         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
9260         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
9262         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
9263         (aarch64_reduc_plus_internal<mode>): ...this.
9265         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
9266         (aarch64_reduc_plus_internalv2si): ...this.
9268         (reduc_splus_<mode>/V2F): Rename to...
9269         (aarch64_reduc_plus_internal<mode>): ...this.
9271         * config/aarch64/iterators.md
9272         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
9273         (UNSPEC_ADDV): New.
9274         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
9276         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
9277         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
9278         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
9279         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
9280         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
9282 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9284         PR tree-optimization/61114
9285         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
9286         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
9288         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
9289         back to old reduc_... + BIT_FIELD_REF only if not.
9291         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
9292         return the reduce-to-scalar (reduc_..._scal) optab.
9293         (scalar_reduc_to_vector): New.
9295         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
9296         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
9297         New.
9299         * optabs.h (scalar_reduc_to_vector): Declare.
9301         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
9302         to either scalar or vector.
9304 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9306         PR tree-optimization/61114
9307         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
9308         extract_bit_field around optab result.
9310         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
9311         scalar not vector.
9313         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
9314         for REDUC_{MIN,MAX,PLUS}_EXPR.
9316         * tree-vect-loop.c (vect_analyze_loop): Update comment.
9317         (vect_create_epilog_for_reduction): For direct vector reduction, use
9318         result of tree code directly without extract_bit_field.
9320         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
9321         comment.
9323 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
9325         * basic-block.h: Remove all includes.
9326         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
9327         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
9328         * Makefile.in (GTFILES): Add cfg.h to list.
9329         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
9330         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
9331         * genconditions.c (write_header): Add predict.h and basic-block.h to
9332         lits of includes.
9333         * genemit.c (main): Ditto.
9334         * genpreds.c (write_insn_preds_c): Ditto.
9335         * genrecog.c (write_header): Ditto.
9336         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
9337         to list of includes.
9338         * alias.c: Adjust include files.
9339         * asan.c: Ditto.
9340         * auto-inc-dec.c: Ditto.
9341         * auto-profile.c: Ditto.
9342         * bb-reorder.c: Ditto.
9343         * bt-load.c: Ditto.
9344         * builtins.c: Ditto.
9345         * caller-save.c: Ditto.
9346         * calls.c: Ditto.
9347         * cfg.c: Ditto.
9348         * cfganal.c: Ditto.
9349         * cfgbuild.c: Ditto.
9350         * cfgcleanup.c: Ditto.
9351         * cfgexpand.c: Ditto.
9352         * cfghooks.c: Ditto.
9353         * cfgloop.c: Ditto.
9354         * cfgloopanal.c: Ditto.
9355         * cfgloopmanip.c: Ditto.
9356         * cfgrtl.c: Ditto.
9357         * cgraphbuild.c: Ditto.
9358         * cgraphclones.c: Ditto.
9359         * cgraphunit.c: Ditto.
9360         * combine-stack-adj.c: Ditto.
9361         * combine.c: Ditto.
9362         * compare-elim.c: Ditto.
9363         * coverage.c: Ditto.
9364         * cprop.c: Ditto.
9365         * cse.c: Ditto.
9366         * cselib.c: Ditto.
9367         * data-streamer-in.c: Ditto.
9368         * data-streamer-out.c: Ditto.
9369         * data-streamer.c: Ditto.
9370         * dce.c: Ditto.
9371         * ddg.c: Ditto.
9372         * ddg.h: Ditto.
9373         * df-core.c: Ditto.
9374         * df-problems.c: Ditto.
9375         * df-scan.c: Ditto.
9376         * df.h: Ditto.
9377         * dojump.c: Ditto.
9378         * dominance.c: Ditto.
9379         * domwalk.c: Ditto.
9380         * dse.c: Ditto.
9381         * dwarf2cfi.c: Ditto.
9382         * emit-rtl.c: Ditto.
9383         * et-forest.c: Ditto.
9384         * except.c: Ditto.
9385         * expmed.c: Ditto.
9386         * expr.c: Ditto.
9387         * final.c: Ditto.
9388         * fold-const.c: Ditto.
9389         * function.c: Ditto.
9390         * fwprop.c: Ditto.
9391         * gcc-plugin.h: Ditto.
9392         * gcse.c: Ditto.
9393         * generic-match-head.c: Ditto.
9394         * ggc-page.c: Ditto.
9395         * gimple-builder.c: Ditto.
9396         * gimple-expr.c: Ditto.
9397         * gimple-fold.c: Ditto.
9398         * gimple-iterator.c: Ditto.
9399         * gimple-low.c: Ditto.
9400         * gimple-match-head.c: Ditto.
9401         * gimple-pretty-print.c: Ditto.
9402         * gimple-ssa-isolate-paths.c: Ditto.
9403         * gimple-ssa-strength-reduction.c: Ditto.
9404         * gimple-streamer-in.c: Ditto.
9405         * gimple-streamer-out.c: Ditto.
9406         * gimple-streamer.h: Ditto.
9407         * gimple-walk.c: Ditto.
9408         * gimple.c: Ditto.
9409         * gimplify-me.c: Ditto.
9410         * gimplify.c: Ditto.
9411         * graph.c: Ditto.
9412         * graphite-blocking.c: Ditto.
9413         * graphite-clast-to-gimple.c: Ditto.
9414         * graphite-dependences.c: Ditto.
9415         * graphite-interchange.c: Ditto.
9416         * graphite-isl-ast-to-gimple.c: Ditto.
9417         * graphite-optimize-isl.c: Ditto.
9418         * graphite-poly.c: Ditto.
9419         * graphite-scop-detection.c: Ditto.
9420         * graphite-sese-to-poly.c: Ditto.
9421         * graphite.c: Ditto.
9422         * haifa-sched.c: Ditto.
9423         * hw-doloop.c: Ditto.
9424         * ifcvt.c: Ditto.
9425         * init-regs.c: Ditto.
9426         * internal-fn.c: Ditto.
9427         * ipa-cp.c: Ditto.
9428         * ipa-devirt.c: Ditto.
9429         * ipa-icf-gimple.c: Ditto.
9430         * ipa-icf.c: Ditto.
9431         * ipa-inline-analysis.c: Ditto.
9432         * ipa-inline.c: Ditto.
9433         * ipa-polymorphic-call.c: Ditto.
9434         * ipa-profile.c: Ditto.
9435         * ipa-prop.c: Ditto.
9436         * ipa-pure-const.c: Ditto.
9437         * ipa-reference.c: Ditto.
9438         * ipa-split.c: Ditto.
9439         * ipa-utils.c: Ditto.
9440         * ipa.c: Ditto.
9441         * ira-build.c: Ditto.
9442         * ira-color.c: Ditto.
9443         * ira-conflicts.c: Ditto.
9444         * ira-costs.c: Ditto.
9445         * ira-emit.c: Ditto.
9446         * ira-lives.c: Ditto.
9447         * ira.c: Ditto.
9448         * jump.c: Ditto.
9449         * lcm.c: Ditto.
9450         * loop-doloop.c: Ditto.
9451         * loop-init.c: Ditto.
9452         * loop-invariant.c: Ditto.
9453         * loop-iv.c: Ditto.
9454         * loop-unroll.c: Ditto.
9455         * lower-subreg.c: Ditto.
9456         * lra-assigns.c: Ditto.
9457         * lra-coalesce.c: Ditto.
9458         * lra-constraints.c: Ditto.
9459         * lra-eliminations.c: Ditto.
9460         * lra-lives.c: Ditto.
9461         * lra-spills.c: Ditto.
9462         * lra.c: Ditto.
9463         * lto-cgraph.c: Ditto.
9464         * lto-compress.c: Ditto.
9465         * lto-opts.c: Ditto.
9466         * lto-section-in.c: Ditto.
9467         * lto-section-out.c: Ditto.
9468         * lto-streamer-in.c: Ditto.
9469         * lto-streamer-out.c: Ditto.
9470         * lto-streamer.c: Ditto.
9471         * mcf.c: Ditto.
9472         * mode-switching.c: Ditto.
9473         * modulo-sched.c: Ditto.
9474         * omp-low.c: Ditto.
9475         * optabs.c: Ditto.
9476         * opts-global.c: Ditto.
9477         * passes.c: Ditto.
9478         * postreload-gcse.c: Ditto.
9479         * postreload.c: Ditto.
9480         * predict.c: Ditto.
9481         * print-rtl.c: Ditto.
9482         * profile.c: Ditto.
9483         * recog.c: Ditto.
9484         * ree.c: Ditto.
9485         * reg-stack.c: Ditto.
9486         * regcprop.c: Ditto.
9487         * regcprop.h: Ditto.
9488         * reginfo.c: Ditto.
9489         * regrename.c: Ditto.
9490         * regstat.c: Ditto.
9491         * reload.c: Ditto.
9492         * reload1.c: Ditto.
9493         * reorg.c: Ditto.
9494         * resource.c: Ditto.
9495         * rtlanal.c: Ditto.
9496         * sched-deps.c: Ditto.
9497         * sched-ebb.c: Ditto.
9498         * sched-int.h: Ditto.
9499         * sched-rgn.c: Ditto.
9500         * sched-vis.c: Ditto.
9501         * sel-sched-dump.c: Ditto.
9502         * sel-sched-ir.c: Ditto.
9503         * sel-sched-ir.h: Ditto.
9504         * sel-sched.c: Ditto.
9505         * sese.c: Ditto.
9506         * shrink-wrap.c: Ditto.
9507         * stack-ptr-mod.c: Ditto.
9508         * stmt.c: Ditto.
9509         * store-motion.c: Ditto.
9510         * symtab.c: Ditto.
9511         * toplev.c: Ditto.
9512         * tracer.c: Ditto.
9513         * trans-mem.c: Ditto.
9514         * tree-affine.c: Ditto.
9515         * tree-call-cdce.c: Ditto.
9516         * tree-cfg.c: Ditto.
9517         * tree-cfgcleanup.c: Ditto.
9518         * tree-chrec.c: Ditto.
9519         * tree-complex.c: Ditto.
9520         * tree-data-ref.c: Ditto.
9521         * tree-dfa.c: Ditto.
9522         * tree-eh.c: Ditto.
9523         * tree-emutls.c: Ditto.
9524         * tree-if-conv.c: Ditto.
9525         * tree-inline.c: Ditto.
9526         * tree-into-ssa.c: Ditto.
9527         * tree-loop-distribution.c: Ditto.
9528         * tree-nested.c: Ditto.
9529         * tree-nrv.c: Ditto.
9530         * tree-object-size.c: Ditto.
9531         * tree-outof-ssa.c: Ditto.
9532         * tree-parloops.c: Ditto.
9533         * tree-phinodes.c: Ditto.
9534         * tree-predcom.c: Ditto.
9535         * tree-pretty-print.c: Ditto.
9536         * tree-profile.c: Ditto.
9537         * tree-scalar-evolution.c: Ditto.
9538         * tree-sra.c: Ditto.
9539         * tree-ssa-address.c: Ditto.
9540         * tree-ssa-alias.c: Ditto.
9541         * tree-ssa-ccp.c: Ditto.
9542         * tree-ssa-coalesce.c: Ditto.
9543         * tree-ssa-copy.c: Ditto.
9544         * tree-ssa-copyrename.c: Ditto.
9545         * tree-ssa-dce.c: Ditto.
9546         * tree-ssa-dom.c: Ditto.
9547         * tree-ssa-dse.c: Ditto.
9548         * tree-ssa-forwprop.c: Ditto.
9549         * tree-ssa-ifcombine.c: Ditto.
9550         * tree-ssa-live.c: Ditto.
9551         * tree-ssa-loop-ch.c: Ditto.
9552         * tree-ssa-loop-im.c: Ditto.
9553         * tree-ssa-loop-ivcanon.c: Ditto.
9554         * tree-ssa-loop-ivopts.c: Ditto.
9555         * tree-ssa-loop-manip.c: Ditto.
9556         * tree-ssa-loop-niter.c: Ditto.
9557         * tree-ssa-loop-prefetch.c: Ditto.
9558         * tree-ssa-loop-unswitch.c: Ditto.
9559         * tree-ssa-loop.c: Ditto.
9560         * tree-ssa-math-opts.c: Ditto.
9561         * tree-ssa-operands.c: Ditto.
9562         * tree-ssa-phiopt.c: Ditto.
9563         * tree-ssa-phiprop.c: Ditto.
9564         * tree-ssa-pre.c: Ditto.
9565         * tree-ssa-propagate.c: Ditto.
9566         * tree-ssa-reassoc.c: Ditto.
9567         * tree-ssa-sccvn.c: Ditto.
9568         * tree-ssa-sink.c: Ditto.
9569         * tree-ssa-strlen.c: Ditto.
9570         * tree-ssa-structalias.c: Ditto.
9571         * tree-ssa-tail-merge.c: Ditto.
9572         * tree-ssa-ter.c: Ditto.
9573         * tree-ssa-threadedge.c: Ditto.
9574         * tree-ssa-threadupdate.c: Ditto.
9575         * tree-ssa-uncprop.c: Ditto.
9576         * tree-ssa-uninit.c: Ditto.
9577         * tree-ssa.c: Ditto.
9578         * tree-ssanames.c: Ditto.
9579         * tree-stdarg.c: Ditto.
9580         * tree-streamer-in.c: Ditto.
9581         * tree-streamer-out.c: Ditto.
9582         * tree-streamer.c: Ditto.
9583         * tree-switch-conversion.c: Ditto.
9584         * tree-tailcall.c: Ditto.
9585         * tree-vect-data-refs.c: Ditto.
9586         * tree-vect-generic.c: Ditto.
9587         * tree-vect-loop-manip.c: Ditto.
9588         * tree-vect-loop.c: Ditto.
9589         * tree-vect-patterns.c: Ditto.
9590         * tree-vect-slp.c: Ditto.
9591         * tree-vect-stmts.c: Ditto.
9592         * tree-vectorizer.c: Ditto.
9593         * tree-vrp.c: Ditto.
9594         * tree.c: Ditto.
9595         * tsan.c: Ditto.
9596         * ubsan.c: Ditto.
9597         * valtrack.c: Ditto.
9598         * valtrack.h: Ditto.
9599         * value-prof.c: Ditto.
9600         * var-tracking.c: Ditto.
9601         * varasm.c: Ditto.
9602         * varpool.c: Ditto.
9603         * vtable-verify.c: Ditto.
9604         * web.c: Ditto.
9605         * config/aarch64/aarch64-builtins.c: Ditto.
9606         * config/aarch64/aarch64.c: Ditto.
9607         * config/alpha/alpha.c: Ditto.
9608         * config/arc/arc.c: Ditto.
9609         * config/arm/arm.c: Ditto.
9610         * config/avr/avr.c: Ditto.
9611         * config/bfin/bfin.c: Ditto.
9612         * config/c6x/c6x.c: Ditto.
9613         * config/cr16/cr16.c: Ditto.
9614         * config/cris/cris.c: Ditto.
9615         * config/darwin-c.c: Ditto.
9616         * config/darwin.c: Ditto.
9617         * config/epiphany/epiphany.c: Ditto.
9618         * config/epiphany/mode-switch-use.c: Ditto.
9619         * config/epiphany/resolve-sw-modes.c: Ditto.
9620         * config/fr30/fr30.c: Ditto.
9621         * config/frv/frv.c: Ditto.
9622         * config/h8300/h8300.c: Ditto.
9623         * config/i386/i386.c: Ditto.
9624         * config/i386/winnt.c: Ditto.
9625         * config/ia64/ia64.c: Ditto.
9626         * config/iq2000/iq2000.c: Ditto.
9627         * config/lm32/lm32.c: Ditto.
9628         * config/m32c/m32c.c: Ditto.
9629         * config/m32r/m32r.c: Ditto.
9630         * config/m68k/m68k.c: Ditto.
9631         * config/mcore/mcore.c: Ditto.
9632         * config/mep/mep.c: Ditto.
9633         * config/microblaze/microblaze.c: Ditto.
9634         * config/mips/mips.c: Ditto.
9635         * config/mmix/mmix.c: Ditto.
9636         * config/mn10300/mn10300.c: Ditto.
9637         * config/moxie/moxie.c: Ditto.
9638         * config/msp430/msp430.c: Ditto.
9639         * config/nds32/nds32-cost.c: Ditto.
9640         * config/nds32/nds32-fp-as-gp.c: Ditto.
9641         * config/nds32/nds32-intrinsic.c: Ditto.
9642         * config/nds32/nds32-isr.c: Ditto.
9643         * config/nds32/nds32-md-auxiliary.c: Ditto.
9644         * config/nds32/nds32-memory-manipulation.c: Ditto.
9645         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
9646         * config/nds32/nds32-predicates.c: Ditto.
9647         * config/nds32/nds32.c: Ditto.
9648         * config/nios2/nios2.c: Ditto.
9649         * config/pa/pa.c: Ditto.
9650         * config/pdp11/pdp11.c: Ditto.
9651         * config/rl78/rl78.c: Ditto.
9652         * config/rs6000/rs6000.c: Ditto.
9653         * config/rx/rx.c: Ditto.
9654         * config/s390/s390.c: Ditto.
9655         * config/sh/sh-mem.cc: Ditto.
9656         * config/sh/sh.c: Ditto.
9657         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
9658         * config/sh/sh_treg_combine.cc: Ditto.
9659         * config/sparc/sparc.c: Ditto.
9660         * config/spu/spu.c: Ditto.
9661         * config/stormy16/stormy16.c: Ditto.
9662         * config/tilegx/tilegx.c: Ditto.
9663         * config/tilepro/tilepro.c: Ditto.
9664         * config/v850/v850.c: Ditto.
9665         * config/vax/vax.c: Ditto.
9666         * config/xtensa/xtensa.c: Ditto.
9668 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9670         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
9671         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
9672         Remove using preprocessor directives.
9674 2014-10-27  Richard Biener  <rguenther@suse.de>
9676         * match.pd (0 % X): Properly use the iterator iterating over
9677         all modulo operators.
9678         (X % 1): Likewise.
9680 2014-10-27  Richard Biener  <rguenther@suse.de>
9682         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
9683         (lattice): New global.
9684         (fwprop_ssa_val): New function.
9685         (fold_all_stmts): Likewise.
9686         (pass_forwprop::execute): Finally fold all stmts.
9688 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9690         PR c++/53061
9691         * doc/invoke.texi (fmessage-length): Update text to match reality.
9693 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9695         * config/microblaze/microblaze.c: Include rtl-iter.h.
9696         (microblaze_tls_referenced_p_1): Delete.
9697         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
9699 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9701         * config/mips/mips.c (mips_at_reg_p): Delete.
9702         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
9704 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9706         * config/mips/mips.c (mips_record_lo_sum): Replace with...
9707         (mips_record_lo_sums): ...this new function.
9708         (mips_reorg_process_insns): Update accordingly.
9710 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9712         * config/mips/mips.c (mips_sim_insn): Update comment.
9713         (mips_sim_wait_regs_2): Delete.
9714         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
9716 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9718         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
9719         and return a bool.  Iterate over all subrtxes here.
9720         (r10k_needs_protection_p): Update accordingly.
9722 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9724         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
9725         rather than an rtx pointer.  Change type of insn from "void *"
9726         to its real type.  Return bool rather than int.  Iterate over
9727         all subrtxes here.
9728         (r10k_needs_protection_p_store): Update accordingly.
9729         (r10k_needs_protection_p): Likewise.
9731 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9733         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
9734         (mips16_rewrite_pool_refs): Take the insn and constant pool as
9735         parameters.  Iterate over the instruction's pattern and return void.
9736         (mips16_lay_out_constants): Update accordingly.
9738 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9740         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
9741         (mips_refers_to_kernel_reg_p): ...this new function.
9742         (mips_expand_prologue): Update accordingly.
9744 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9746         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
9747         as a parameter instead of the containing MEM.  Iterate over all
9748         subrtxes.  Don't return a value.
9749         (mips_rewrite_small_data): Update call accordingly.
9751 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9753         * config/mips/mips.c: Include rtl-iter.h.
9754         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
9755         Take the context as a parameter instead of the containing MEM.
9756         Iterate over all subrtxes.
9757         (mips_small_data_pattern_p): Update call accordingly.
9759 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9761         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
9762         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
9764 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9766         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
9767         return a bool.  Replace "void *" with specific type.  Iterate
9768         over all subrtxes.
9769         (mep_store_data_bypass_1): Update calls accordingly.
9771 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9773         * config/mep/mep.c: Include rtl-iter.h.
9774         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
9775         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
9777 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9779         * config/xtensa/xtensa.c: Include rtl-iter.h.
9780         (xtensa_tls_referenced_p_1): Delete.
9781         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
9783 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9785         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
9786         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
9788 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9790         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
9791         rtx as argument and return the number of changes.
9792         * config/sh/sh.c: Include rtl-iter.h.
9793         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
9794         over all subrtxes.  Return the number of changes made.
9795         * config/sh/sh.md: Update caller accordingly.
9797 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9799         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
9800         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
9802 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9804         * config/m68k/m68k.c: Include rtl-iter.h.
9805         (m68k_final_prescan_insn_1): Delete.
9806         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
9808 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
9810         PR tree-optimization/63641
9811         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
9812         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
9814 2014-10-25  Alan Modra  <amodra@gmail.com>
9816         PR rtl-optimization/63615
9817         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
9818         decomposing PLUS or MINUS if operands are not placed adjacent
9819         in the "ops" array.
9821 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
9823         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
9824         not allow e500 double in registers not satisyfing
9825         SPE_SIMD_REGNO_P.
9827 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
9829         * dwarf2out.c (declare_in_namespace): Only emit external
9830         declarations in the local scope once.
9832 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
9834         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
9836 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
9838         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
9839         update uses to use new macro arguments.
9840         (__LD3_LANE_FUNC): Likewise.
9841         (__LD4_LANE_FUNC): Likewise.
9843 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
9845         * config/aarch64/aarch64-builtins.c
9846         (aarch64_types_loadstruct_lane_qualifiers): Define.
9847         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
9848         ld4_lane): New builtins.
9849         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
9850         New pattern.
9851         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9852         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9853         (aarch64_ld2_lane<mode>): New expand.
9854         (aarch64_ld3_lane<mode>): Likewise.
9855         (aarch64_ld4_lane<mode>): Likewise.
9856         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
9857         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
9859 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
9861         * avr-protos.h (avr_out_sign_extend): New.
9862         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
9863         (avr_out_sign_extend): New function.
9864         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
9865         (extendhisi2, extendpsisi2): Use it.
9866         (adjust_len) [sext]: New.
9868 2014-10-24  Martin Liska  <mliska@suse.cz>
9870         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
9871         added.
9873 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9875         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
9876         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
9877         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
9878         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
9880 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9882         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
9883         do while (0).
9884         * config/aarch64/aarch64.c (is_mem_p): Delete.
9885         (is_memory_op): Rename to...
9886         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
9887         (dep_between_memop_and_curr): Assert that the input is a SET.
9888         (aarch64_madd_needs_nop): Add comment.  Do not call
9889         dep_between_memop_and_curr on NULL body.
9890         (aarch64_final_prescan_insn): Add comment.
9891         Include rtl-iter.h.
9893 2014-10-24  Richard Biener  <rguenther@suse.de>
9895         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
9896         to genmatch BUILD_LIBS instead.
9898 2014-10-24  Richard Biener  <rguenther@suse.de>
9900         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
9901         and build_call_expr_loc.
9902         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
9903         non_lvalue_loc to build it for GENERIC.
9904         (decision_tree::gen_generic): Add location argument to
9905         generic_simplify prototype.
9906         (capture_info): New class.
9907         (capture_info::capture_info): New constructor.
9908         (capture_info::walk_match): New method.
9909         (capture_info::walk_result): New method.
9910         (capture_info::walk_c_expr): New method.
9911         (dt_simplify::gen): Handle preserving side-effects for
9912         GENERIC code generation.
9913         (decision_tree::gen_generic): Do not reject operands
9914         with TREE_SIDE_EFFECTS.
9915         * generic-match.h: New file.
9916         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
9917         * match.pd: Add some constant folding patterns from fold-const.c.
9918         * fold-const.c: Include generic-match.h.
9919         (fold_unary_loc): Dispatch to generic_simplify.
9920         (fold_ternary_loc): Likewise.
9921         (fold_binary_loc): Likewise.  Remove patterns now implemented
9922         by generic_simplify.
9923         * gimple-fold.c (replace_stmt_with_simplification): New function.
9924         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
9925         (no_follow_ssa_edges): New function.
9926         (fold_stmt): New overload with valueization hook.  Use
9927         no_follow_ssa_edges for the overload without hook.
9928         (fold_stmt_inplace): Likewise.
9929         * gimple-fold.h (no_follow_ssa_edges): Declare.
9931 2014-10-24  Felix Yang  <felix.yang@huawei.com>
9932         Jiji Jiang  <jiangjiji@huawei.com>
9934         PR target/63173
9935         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
9936         (__LD3R_FUNC): Ditto.
9937         (__LD4R_FUNC): Ditto.
9938         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
9939          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
9940          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
9941          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
9942          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
9943          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
9944         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
9945          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
9946          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
9947          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
9948          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
9949          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
9950         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
9951          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
9952          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
9953          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
9954          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
9955          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
9956         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
9957         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
9958         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
9959         builtins.
9960         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
9961         (aarch64_simd_ld3r<mode>): Likewise.
9962         (aarch64_simd_ld4r<mode>): Likewise.
9963         (aarch64_ld2r<mode>): New expand.
9964         (aarch64_ld3r<mode>): Likewise.
9965         (aarch64_ld4r<mode>): Likewise.
9967 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9969         * rtlanal.c (get_base_term): Handle SCRATCH.
9971 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9973         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
9974         register pressure.
9976 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9978         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
9979         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
9980         (max_issue, choose_ready, sched_init): Update.
9982 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9984         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
9985         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
9986         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
9987         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
9988         (print_rank_for_schedule_stats): Print out elements of ready list that
9989         ended up on their respective places due to each of the sorting
9990         heuristics.
9991         (ready_sort): Update.
9992         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
9993         (schedule_block): Update.
9995 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9997         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
9998         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
9999         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
10000         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
10001         (model_start_schedule): Update.
10002         (sched_pressure_start_bb): New static function.  Calculate
10003         sched_class_regs_num.
10004         (schedule_block): Use it.
10005         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
10007 2014-10-24  Richard Biener  <rguenther@suse.de>
10009         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
10010         host library and make sure to pull in the required libintl
10011         and libiconv dependencies.
10013 2014-10-24  Richard Biener  <rguenther@suse.de>
10015         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
10017 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
10019         PR bootstrap/63632
10020         * collect2.c (main): Filter out -fno-lto.
10022 2014-10-24  Martin Liska  <mliska@suse.cz>
10024         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
10025         division by zero in dumps.
10026         (sem_item_optimizer::merge_classes): Ditto.
10028 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
10030         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
10032 2014-10-23  Ian Lance Taylor  <iant@google.com>
10034         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
10036 2014-10-23  Ian Lance Taylor  <iant@google.com>
10038         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
10040 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
10042         PR debug/63623
10043         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
10044         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
10045         instead of only handling autoinc in dest if it is a MEM.
10046         (vt_stack_adjustments): Fix up formatting.
10048 2014-10-23  DJ Delorie  <dj@redhat.com>
10050         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
10051         independend of -mlarge.
10052         * config/msp430/constraints.md (Ys): Update comment.
10054 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
10056         PR target/63534
10057         PR target/63618
10058         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
10059         while it is pseudo.
10060         * dse.c (deletable_insn_p): Likewise.
10062 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
10064         * config/avr/avr.c: Fix GNU coding rules and typos.
10065         * config/avr/avr.h: Dito.
10066         * config/avr/avr-c.c: Dito.
10067         * config/avr/avr.md: Dito.
10069 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10071         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
10072         New.
10073         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
10074         iterator.
10075         (define_expand "abs<mode>2"): Ditto.
10077 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10079         * tree-core.h (tree_var_decl): Extend `function_code' field
10080         by one bit, move `regdecl_flag' field to ...
10081         (tree_decl_with_vis): Here.
10082         * tree.h (DECL_STATIC_CHAIN): Update struct name.
10084 2014-10-23  Richard Biener  <rguenther@suse.de>
10086         * Makefile.in (BUILD_CPPLIB): Add.
10087         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
10088         Drop LIBIBERTY.
10090 2014-10-23  Richard Biener  <rguenther@suse.de>
10092         * fold-const.c (fold_binary_loc): Preserve side-effects of
10093         X - X when simplifying to 0.
10094         * stor-layout.c (finish_bitfield_representative): Strip
10095         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
10097 2014-10-22  Richard Biener  <rguenther@suse.de>
10098             Tobias Burnus <burnus@net-b.de>
10100         PR lto/63603
10101         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
10103 2014-10-22  Dehao Chen  <dehao@google.com>
10105         * auto-profile.c: Change order of header files.
10107 2014-10-22  Guozhi Wei  <carrot@google.com>
10109         PR tree-optimization/63530
10110         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
10111         pointer alignment according to DR_MISALIGNMENT.
10113 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
10115         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
10117 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
10119         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
10120         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
10121         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
10122         * dominance.h: New.  Add prototypes for dominance.c.
10123         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
10124         * cfghooks.h: (struct profile_record) Relocate here.
10125         Relocate 2 prototypes from basic-block.h.
10126         * basic-block.h: Move prototypes and struct to new header files.
10127         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
10128         * rtl.h: Move a few prototypes to new header files.
10129         * cfgcleanup.c (merge_memattrs): Make static.
10130         * genopinit.c (main): Add predict.h to list of includes.
10131         * predict.h: Update prototype list to match predict.c.
10132         * predict.c (maybe_hot_count_p): Export.
10133         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
10134         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
10135         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
10136         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
10137         * profile.h: Adjust prototypes.
10138         * ifcvt.h: New.  Relocate struct ce_if_block here.
10139         * ifcvt.c: Include ifcvt.h.
10140         * config/frv/frv.c: Include ifcvt.h.
10141         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
10143 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10145         * lra.c (lra): Remove call to recog_init.
10146         * config/i386/i386.md (preferred_for_speed): New attribute
10147         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
10148         "enabled".  Remove check for sched1.
10150 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10152         * recog.h (recog_data_d): Remove enabled_alternatives.
10153         * recog.c (extract_insn): Don't set it.
10154         * reload.c (find_reloads): Call get_enabled_alternatives.
10156 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10158         * recog.h (constrain_operands): Add an alternative_mask parameter.
10159         (constrain_operands_cached): Likewise.
10160         (get_preferred_alternatives): Declare new form.
10161         * recog.c (get_preferred_alternatives): New bb-taking instance.
10162         (constrain_operands): Take the set of available alternatives as
10163         a parameter.
10164         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
10165         (extract_constrain_insn_cached): Update calls to constrain_operands.
10166         * caller-save.c (reg_save_code): Likewise.
10167         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10168         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10169         * ree.c (combine_reaching_defs): Likewise.
10170         * reload.c (can_reload_into): Likewise.
10171         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
10172         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
10173         (emit_insn_if_valid_for_reload): Likewise.
10174         * reorg.c (fill_slots_from_thread): Likewise.
10175         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
10176         * config/pa/pa.c (pa_can_combine_p): Likewise.
10177         * config/rl78/rl78.c (insn_ok_now): Likewise.
10178         * config/sh/sh.md (define_peephole2): Likewise.
10179         * final.c (final_scan_insn): Update call to constrain_operands_cached.
10181 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10183         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
10184         attributes.
10185         * genattr.c (main): Handle "preferred_for_size" and
10186         "preferred_for_speed" in the same way as "enabled".
10187         * recog.h (bool_attr): New enum.
10188         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
10189         (get_preferred_alternatives, check_bool_attrs): Declare.
10190         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
10191         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
10192         New functions.
10193         (get_enabled_alternatives): Use get_bool_attr_mask.
10194         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
10195         instead of recog_data.enabled_alternatives.
10196         * ira.c (ira_setup_alts): Likewise.
10197         * postreload.c (reload_cse_simplify_operands): Likewise.
10198         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10199         * ira-lives.c (preferred_alternatives): New variable.
10200         (process_bb_node_lives): Set it.
10201         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
10202         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
10203         of recog_data.enabled_alternatives.
10204         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
10205         to preferred_alternatives.
10206         * lra-constraints.c (process_alt_operands): Update accordingly.
10207         * lra.c (lra_set_insn_recog_data): Likewise.
10208         (lra_update_insn_recog_data): Assert check_bool_attrs.
10210 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10212         * recog.h (extract_constrain_insn): Declare.
10213         * recog.c (extract_constrain_insn): New function.
10214         * lra.c (check_rtl): Use it.
10215         * postreload.c (reload_cse_simplify_operands): Likewise.
10216         * reg-stack.c (check_asm_stack_operands): Likewise.
10217         (subst_asm_stack_regs): Likewise.
10218         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
10219         * regrename.c (build_def_use): Likewise.
10220         * sel-sched.c (get_reg_class): Likewise.
10221         * config/arm/arm.c (note_invalid_constants): Likewise.
10222         * config/s390/predicates.md (execute_operation): Likewise.
10224 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
10225             Yury Gribov  <y.gribov@samsung.com>
10227         * common.opt (flag_sanitize_recover): New variable.
10228         (fsanitize-recover): Remove Var/Init, deprecate.
10229         (fsanitize-recover=): New option.
10230         * doc/invoke.texi (fsanitize-recover): Update docs.
10231         * opts.c (finish_options): Use opts->x_flag_sanitize
10232         instead of flag_sanitize.  Prohibit -fsanitize-recover
10233         for anything besides UBSan.  Formatting.
10234         (common_handle_option): Handle OPT_fsanitize_recover_
10235         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
10236         instead of flag_sanitize.
10237         * asan.c (pass_sanopt::execute): Fix up formatting.
10238         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
10239         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
10240         instrument_bool_enum_load, ubsan_instrument_float_cast,
10241         instrument_nonnull_arg, instrument_nonnull_return): Check
10242         bits in flag_sanitize_recover bitmask instead of
10243         flag_sanitize_recover as bool flag.
10245 2014-10-22  Jiong Wang <jiong.wang@arm.com>
10247         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
10249 2014-10-22  Renlin Li <renlin.li@arm.com>
10251         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
10252         __ARM_FEATURE_IDIV__.
10254 2014-10-22  Richard Biener  <rguenther@suse.de>
10256         * Makefile.in (s-match): Adjust dependencies to only catch
10257         match.pd.
10259 2014-10-22  Richard Biener  <rguenther@suse.de>
10260         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
10262         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
10263         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
10264         (gimple-match.c): Generate by triggering s-match.
10265         (generic-match.c): Likewise.
10266         (s-match): Rule to build gimple-match.c and generic-match.c
10267         by running the genmatch generator program.
10268         (build/hash-table.o): Dependencies to build hash-table.c for the host.
10269         (build/genmatch.o): Dependencies to build genmatch.
10270         (genprog): Add match.
10271         (build/genmatch): Likewise.
10272         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
10273         * generic-match-head.c: New file.
10274         * gimple-match-head.c: Likewise.
10275         * gimple-match.h: Likewise.
10276         * genmatch.c: Likewise.
10277         * match.pd: Likewise.
10278         * builtins.h (fold_builtin_n): Export.
10279         * builtins.c (fold_builtin_n): Likewise.
10280         * gimple-fold.h (gimple_build): Declare various overloads.
10281         (gimple_simplify): Likewise.
10282         (gimple_convert): Re-implement in terms of gimple_build.
10283         * gimple-fold.c (gimple_convert): Remove.
10284         (gimple_build): New functions.
10285         * doc/match-and-simplify.texi: New file.
10286         * doc/gccint.texi: Add menu item Match and Simplify and include
10287         match-and-simplify.texi.
10289 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
10291         PR target/63594
10292         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
10293         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
10294         even for just TARGET_AVX2, not only for
10295         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
10296         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
10297         otherwise build it using concatenation of 256-bit
10298         broadcast.
10299         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
10300         avx512 broadcast patterns.
10301         (vec_dup<mode>): Likewise.  For avx2 use
10302         v<sseintprefix>broadcast<bcstscalarsuff> instead of
10303         vbroadcast<ssescalarmodesuffix>.
10304         (AVX2_VEC_DUP_MODE): New mode iterator.
10305         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
10306         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
10308         PR target/63542
10309         * config/i386/i386.c (ix86_pic_register_p): Also return
10310         true if x is a hard register with ORIGINAL_REGNO equal to
10311         pic_offset_table_rtx pseudo REGNO.
10312         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
10313         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
10315 2014-10-22  Alan Modra  <amodra@gmail.com>
10317         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
10318         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
10319         (gcc_obstack_init): Use obstack_specify_allocation in place of
10320         _obstack_begin.
10321         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
10322         (regexp_representation): Likewise.
10323         * godump.c (go_output_type): Likewise.
10325 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
10327         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
10328         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
10329         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
10331 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
10333         * doc/invoke.texi (pedantic-errors): Explain better.
10335 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
10336             Vidya Praveen <vidya.praveen@atmel.com>
10337             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
10338             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
10339             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10341         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
10342         __MEMX for avrtiny.
10343         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
10344         (avr_nonconst_pointer_addrspace): Likewise.
10345         * config/avr/avr.h (AVR_HAVE_LPM): Define.
10347         Added AVRTINY architecture to avr target.
10348         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
10349         (base_arch_s): member added for AVRTINY architecture.
10350         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
10351         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
10352         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
10353         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
10354         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
10355         in callee saved register list.
10356         (avr_option_override): CCP address updated for AVRTINY.
10357         (avr_init_expanders): tmp and zero rtx initialized as per arch.
10358         Reset avr_have_dimode if AVRTINY.
10359         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
10360         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
10361         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
10362         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
10363         (expand_epilogue): Likewise.
10364         (avr_print_operand): Print CCP address in case of AVRTINY also.
10365         <TBD>bad address
10366         (function_arg_regno_p): Check different register list for arguments
10367         if AVRTINY.
10368         (init_cumulative_args): Check for AVRTINY to update number of argument
10369         registers.
10370         (tiny_valid_direct_memory_access_range): New function. Return false if
10371         direct memory access range is not in accepted range for AVRTINY.
10372         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
10373         indirect load (with displacement) for AVRTINY.
10374         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
10375         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
10376         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
10377         indirect load (no displacement) for AVRTINY.
10378         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
10379         indirect load (with displacement) for AVRTINY.
10380         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
10381         indirect load for pre-decrement address.
10382         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
10383         functions. Update instruction length for AVRTINY.
10384         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
10385         SImode.
10386         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
10387         (out_movsi_r_mr): Likewise, for SImode.
10388         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
10389         indirect store (no displacement) for AVRTINY.
10390         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
10391         indirect store (with displacement) for AVRTINY.
10392         (out_movsi_mr_r): Emit out insn for IO address store. Update store
10393         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
10394         store functions.
10395         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
10396         indirect load (no displacement) for PSImode in AVRTINY.
10397         (avr_out_load_psi_reg_disp_tiny): New function to handle register
10398         indirect load (with displacement) for PSImode in AVRTINY.
10399         (avr_out_load_psi): Call PSImode register indirect load functions for
10400         AVRTINY. Update instruction length for AVRTINY.
10401         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
10402         indirect store (no displacement) for PSImode in AVRTINY.
10403         (avr_out_store_psi_reg_disp_tiny): New function to handle register
10404         indirect store (with displacement) for PSImode in AVRTINY.
10405         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
10406         register indirect store functions for AVRTINY.
10407         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
10408         register indirect store (with displacement) for AVRTINY.
10409         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
10410         register indirect store function for QImode in AVRTINY.
10411         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
10412         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
10413         indirect store (no displacement) for HImode in AVRTINY.
10414         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
10415         indirect store (with displacement) for HImode in AVRTINY.
10416         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
10417         indirect store for post-increment address in HImode.
10418         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
10419         register indirect store function for HImode in AVRTINY.
10420         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
10421         in case of AVRTINY.
10422         (order_regs_for_local_alloc): Updated register allocation order for
10423         AVRTINY.
10424         (avr_conditional_register_usage): New function. It is a target hook
10425         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
10426         used registers list and register allocation order for AVRTINY.
10427         (avr_return_in_memory): Update return value size for AVRTINY.
10428         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
10429         for AVRTINY arch and tiny program memory base address.
10430         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
10431         (avr_texinfo): Added description for AVRTINY arch.
10432         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
10433         STATIC_CHAIN_REGNUM for AVRTINY.
10434         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
10435         * config/avr/avr.md: Added constants for tmp/ zero registers in
10436         AVRTINY. Attributes for AVRTINY added.
10437         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
10438         memory access range.
10439         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
10440         in AVRTINY memory access range.
10441         (*mov<mode>): Likewise for HImode and SImode.
10442         (*movsf): Likewise for SFmode.
10443         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
10444         not have sbiw.
10445         * config/avr/avr-protos.h: Added function prototype for
10446         tiny_valid_direct_memory_access_range.
10447         * config/avr/avr-tables.opt: Regenerate.
10448         * gcc/config/avr/t-multilib: Regenerate.
10449         * doc/avr-mmcu.texi: Regenerate.
10451 2014-10-21  Andrew Pinski  <apinski@cavium.com>
10453         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
10454         available option also.
10455         * config/aarch64/aarch64-cost-tables.h: New file.
10456         * config/aarch64/aarch64-cores.def (thunderx): New core.
10457         * config/aarch64/aarch64-tune.md: Regenerate.
10458         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
10459         of config/arm/aarch-cost-tables.h.
10460         (thunderx_regmove_cost): New variable.
10461         (thunderx_tunings): New variable.
10463 2014-10-21  Dehao Chen  <dehao@google.com>
10465         * auto-profile.c: New file.
10466         * auto-profile.h: New file.
10467         * basic-block.h (maybe_hot_count_p): New export func.
10468         (add_working_set): New export func.
10469         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
10470         (GCOV_TAG_AFDO_FUNCTION): Likewise.
10471         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
10472         * opts.c (enable_fdo_optimizations): New func.
10473         (common_handle_option): Handle -fauto-profile flag.
10474         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
10475         (class pass_early_inline): Export early_inliner.
10476         (early_inliner): Likewise.
10477         (pass_early_inline::execute): Likewise.
10478         * ipa-inline.h (early_inliner): Likewise.
10479         * predict.c (maybe_hot_count_p): New export func.
10480         (counts_to_freqs): AutoFDO logic.
10481         (rebuild_frequencies): Likewise.
10482         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
10483         * profile.c (add_working_set): New func.
10484         * Makefile.in (auto-profile.o): New object file.
10485         * passes.def (pass_ipa_auto_profile): New pass.
10486         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
10487         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
10488         * toplev.c (compile_file): AutoFDO logic.
10489         * doc/invoke.texi (-fauto-profile): New doc.
10490         * coverage.c (coverage_init): AutoFDO logic.
10491         * common.opt (-fauto-profile): New flag.
10492         * timevar.def (TV_IPA_AUTOFDO): New tag.
10493         * value-prof.c (gimple_alloc_histogram_value): New export func.
10494         (check_ic_target): Likewise.
10495         * value-prof.h (gimple_alloc_histogram_value): Likewise.
10496         (check_ic_target): Likewise.
10498 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
10500         * cgraph.c (cgraph_c_finalize): New function.
10501         * cgraph.h (cgraph_c_finalize): New prototype.
10502         (cgraphunit_c_finalize): New prototype.
10503         * cgraphunit.c (first_analyzed): Move from analyze_functions
10504         to file-scope.
10505         (first_analyzed_var): Likewise.
10506         (analyze_functions): Move static variables into file-scope.
10507         (cgraphunit_c_finalize): New function.
10508         * diagnostic.c (diagnostic_finish): Free the memory for
10509         context->classify_diagnostic and context->printer, running the
10510         destructor for the latter.
10511         (bt_stop): Use toplev::main.
10512         * dwarf2out.c (dwarf2out_finalize): New function.
10513         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
10514         * gcse.c (gcse_c_finalize): New function.
10515         * gcse.h (gcse_c_finalize): New prototype.
10516         * ggc-page.c (init_ggc): Make idempotent.
10517         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
10518         * ipa-cp.c (ipa_cp_c_finalize): New function.
10519         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
10520         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
10521         a field of class pass_ipa_pure_const.
10522         (node_duplication_hook_holder): Likewise.
10523         (node_removal_hook_holder): Likewise.
10524         (register_hooks): Convert to method...
10525         (pass_ipa_pure_const::register_hooks): ...here, converting
10526         static variable init_p into...
10527         (pass_ipa_pure_const::init_p): ...new field.
10528         (pure_const_generate_summary): Update invocation of
10529         register_hooks to invoke as a method of current_pass.
10530         (pure_const_read_summary): Likewise.
10531         (propagate): Convert to...
10532         (pass_ipa_pure_const::execute): ...method.
10533         * ipa-reference.c (ipa_init): Move static bool init_p from here
10534         to...
10535         (ipa_init_p): New file-scope variable, so that it can be reset
10536         when repeatedly invoking the compiler within one process by...
10537         (ipa_reference_c_finalize): New function.
10538         * ipa-reference.h (ipa_reference_c_finalize): New.
10539         * main.c (main): Replace invocation of toplev_main with
10540         construction of a toplev instance, and call its "main" method.
10541         * params.c (global_init_params): Add an assert that
10542         params_finished is false.
10543         (params_c_finalize): New.
10544         * params.h (params_c_finalize): New.
10545         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
10546         invoking generate_summary, for the benefit of pass_ipa_pure_const.
10547         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
10548         before calling write_summary hook.
10549         (ipa_write_optimization_summaries_1): Likewise when calling
10550         write_optimization_summary hook.
10551         (ipa_read_summaries_1): Likewise for read_summary hook.
10552         (ipa_read_optimization_summaries_1): Likewise for
10553         read_optimization_summary hook.
10554         (execute_ipa_stmt_fixups): Likewise.
10555         * stringpool.c (init_stringpool): Clean up if we're called more
10556         than once.
10557         * timevar.c (timevar_init): Ignore repeated calls.
10558         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
10559         "ipa-prop.h".
10560         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
10561         (initialize_rtl): Move static local "initialized_once"
10562         into file scope, and rename to...
10563         (rtl_initialized): New variable.
10564         (do_compile): Move timevar initialization from here to
10565         toplev::start_timevars.
10566         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
10567         toplev::finalize): New functions.
10568         (toplev_main): Rename to...
10569         (toplev::main): ...this.
10570         * toplev.h (class toplev): New class.
10572 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
10574         * loop-doloop.c: Include loop-unroll.h.
10576 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
10578         * cfg.h: New.  Header file for cfg.c.
10579         * cfganal.h: New.  Header file for cfganal.c.
10580         * lcm.h: New.  Header file for lcm.c.
10581         * loop-unroll.h: New.  Header file for loop-unroll.h.
10582         * cfgloop.h: (unroll_loops): Remove prototype.
10583         * basic-block.h: Move prototypes and structs to new header files.
10584         Include cfg.h, cfganal.h, and lcm.h.
10585         * loop-init.c: Include loop-unroll.h.
10586         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
10587         * modulo-sched.c: Include loop-unroll.h.
10589 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10591         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
10592         MARKER_BYTE_UNKNOWN markers when handling casts.
10594 2014-10-21  Richard Biener  <rguenther@suse.de>
10596         * tree-ssa-phiopt.c (value_replacement): Properly verify we
10597         are the non-singleton PHI.
10599 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
10601         PR tree-optimization/63563
10602         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
10603         if either dra or drb stmts are not normal loads/stores.
10605 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
10607         * config/i386/i386.c (expand_vec_perm_1): Fix
10608         expand_vec_perm_palignr case.
10609         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
10610         VI1_AVX512.
10612 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10614         * cfgloopanal.c (seq_cost): Delete.
10615         * rtl.h (seq_cost): New prototype.
10616         * rtlanal.c (seq_cost): New function.
10617         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
10619 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
10621         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
10622         * basic-block.h: Remove prototypes for cfgrtl.c.
10623         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
10624         prototypes to cfgrtl.h.
10625         * profile.h (profile_info): Add extern export declaration.
10626         * rtl.h: Remove prototypes for cfgrtl.h.
10627         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
10628         * ipa-inline.c: Include profile.h.
10629         * loop-unroll.c: Ditto.
10630         * modulo-sched.c: Ditto.
10631         * postreload-gcse.c: Ditto.
10632         * predict.c: Ditto.
10633         * sched-ebb.c: Ditto.
10634         * sched-rgn.c: Ditto.
10635         * tracer.c: Ditto.
10636         * tree-ssa-loop-ivcanon.c: Ditto.
10638 2014-10-20  Richard Biener  <rguenther@suse.de>
10640         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
10641         operands to get a def operand kind match.  Signal mismatches
10642         to the parent so we can try swapping its operands.
10643         (vect_build_slp_tree): Try swapping operands if they have
10644         a mismatched operand kind.
10646 2014-10-20  Alan Modra  <amodra@gmail.com>
10648         PR debug/60655
10649         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
10650         Increase "ops" array size.  Correct array size tests.  Init
10651         n_constants in loop.  Break out of innermost loop when finding
10652         a trivial CONST expression.
10654 2014-10-20  Martin Liska  <mliska@suse.cz>
10656         PR ipa/63583
10657         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
10658         Gimple tempate string is compared.
10660 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
10662         * varasm.c (const_alias_set): Remove.
10663         (init_varasm_once): Remove initialization of const_alias_set.
10664         (build_constant_desc): Do not set alias set to const_alias_set.
10666 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
10668         * configure: Regenerate.
10669         * configure.ac: Move the test for section attribute specifier "e" in GAS
10670         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
10671         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
10672         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
10673         ifdef HAVE_GAS_SECTION_EXCLUDE.
10675 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
10677         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
10678         match_operand expression.
10680 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10681             David Edelsohn  <dje.gcc@gmail.com>
10683         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
10684         function.
10685         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10687 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10689         * doc/invoke.texi (Options to Request or Suppress Warnings):
10690         Explain options precedence.
10691         (Wtrampolines): Do not indent paragraph.
10693 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
10695         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
10696         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
10697         (pa_jump_in_call_delay): Likewise.
10698         * config/pa/pa.c (pa_option_override): Remove jump in call delay
10699         override.
10700         (pa_output_millicode_call): Remove support for jump in call delay.
10701         (pa_output_call): Likewise.
10702         (pa_jump_in_call_delay): Delete.
10703         (pa_following_call): Likewise.
10704         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
10705         (uncond_branch): Remove following call check from attribute length.
10707 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
10709         PR target/53513
10710         * config/sh/sh-modes.def (PSI): Remove.
10711         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
10712         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
10713         (sh_reorg): Remove commented out FPSCR code.
10714         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
10715         insn instead of move insn.
10716         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
10717         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
10718         handling.
10719         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
10720         (sh1_builtin_p): Uncomment.
10721         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
10722         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
10723         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
10724         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
10725         (general_movsrc_operand, general_movdst_operand): Disallow
10726         fpscr_operand.
10727         * config/sh/sh.md (FPSCR_FR): New constant.
10728         (push_fpscr): Emit sts_fpscr insn.
10729         (pop_fpscr): Emit lds_fpscr_insn.
10730         (movsi_ie): Disallow FPSCR operands.
10731         (fpu_switch, unnamed related split, extend_psi_si,
10732         truncate_si_psi): Remove insns.
10733         (lds_fpscr, sts_fpscr): New insns.
10734         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
10736 >>>>>>> .r217525
10737 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
10739         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
10740         (clone_inlined_nodes): Do not overwrite the clone if above predicate
10741         returns true.
10743 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
10745         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
10746         (expand_vec_perm_d): Ditto.
10747         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
10748         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
10749         V4DFmode.
10750         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
10751         (ix86_expand_sse_unpack): Handle V64QImode.
10752         (expand_vec_perm_blend): Update conditions for TARGET, handle
10753         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
10754         (expand_vec_perm_pshufb): Handle V64QImode.
10755         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
10756         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
10757         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
10758         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
10759         (ix86_expand_vecop_qihi): Handle V64QImode.
10760         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
10761         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
10762         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
10763         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
10764         (mul<mode>3): Use VI1_AVX512.
10765         (<sse2_avx2>_packsswb): Ditto.
10766         (<sse2_avx2>_packuswb): Ditto.
10767         (<ssse3_avx2>_pshufb<mode>3): Ditto.
10768         (<shift_insn><mode>3): Ditto.
10770 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
10772         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
10773         conditions to fix bootstrap.
10775 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
10777         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
10779 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10780             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10781             Anna Tikhonova  <anna.tikhonova@intel.com>
10782             Ilya Tocar  <ilya.tocar@intel.com>
10783             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10784             Ilya Verbin  <ilya.verbin@intel.com>
10785             Kirill Yukhin  <kirill.yukhin@intel.com>
10786             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10788         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
10789         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
10790         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
10791         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
10792         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
10793         (define_expand "vec_init<mode>"): Use VF48_I1248.
10795 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10796             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10797             Anna Tikhonova  <anna.tikhonova@intel.com>
10798             Ilya Tocar  <ilya.tocar@intel.com>
10799             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10800             Ilya Verbin  <ilya.verbin@intel.com>
10801             Kirill Yukhin  <kirill.yukhin@intel.com>
10802             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10804         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
10805         expand_sse2_mulvxdi3.
10807 2014-10-17  Richard Biener  <rguenther@suse.de>
10809         * fold-const.c (fold_comparison): Remove redundant constant
10810         folding and operand swapping.
10811         (fold_binary_loc): Do comparison operand swapping here.
10812         (fold_ternary_loc): Canonicalize operand order for
10813         commutative ternary operations.
10814         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
10815         and FMA_EXPR.
10817 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
10819         PR tree-optimization/63464
10820         * gimple.h (gimple_seq_discard): New prototype.
10821         * gimple.c: Include stringpool.h and tree-ssanames.h.
10822         (gimple_seq_discard): New function.
10823         * optabs.h (lshift_cheap_p): New prototype.
10824         * optabs.c (lshift_cheap_p): New function, moved from...
10825         * tree-switch-conversion.c (lshift_cheap_p): ... here.
10826         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
10827         (reassoc_branch_fixups): New variable.
10828         (update_range_test): Add otherrangep and seq arguments.
10829         Unshare exp.  If otherrange is NULL, use for other ranges
10830         array of pointers pointed by otherrangep instead.
10831         Emit seq before gimplified statements for tem.
10832         (optimize_range_tests_diff): Adjust update_range_test
10833         caller.
10834         (optimize_range_tests_xor): Likewise.  Fix up comment.
10835         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
10836         functions.
10837         (optimize_range_tests): Adjust update_range_test caller.
10838         Call optimize_range_tests_to_bit_test.
10839         (branch_fixup): New function.
10840         (execute_reassoc): Call branch_fixup.
10842         PR tree-optimization/63302
10843         * tree-ssa-reassoc.c (optimize_range_tests_xor,
10844         optimize_range_tests_diff): Use !integer_pow2p () instead of
10845         tree_log2 () < 0.
10847 2014-10-17  Martin Liska  <mliska@suse.cz>
10849         * ipa-icf.c (sem_function::merge): Local flags are set to false
10850         to enforce equal calling convention to be used.
10851         * opts.c (common_handle_option): Indentation fix.
10853 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
10855         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
10857 2014-10-17  Tom de Vries  <tom@codesourcery.com>
10859         PR rtl-optimization/61605
10860         * regcprop.c (copyprop_hardreg_forward_1): Use
10861         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
10863 2014-10-17  Tom de Vries  <tom@codesourcery.com>
10865         PR rtl-optimization/61605
10866         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
10867         notice stores for noops.  Don't regard noops as copies.
10869 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
10871         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
10872         register in a special way.
10873         (__cpuid_count): Ditto.
10874         * config/i386/driver-i386.h: Protect with
10875         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
10876         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
10877         is required to compile the function.
10879 2014-10-16  DJ Delorie  <dj@redhat.com>
10881         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
10882         integers.
10884         * config/rs6000/rs6000-c.c (rid_int128): New.
10885         (rs6000_macro_to_expand): Use instead of RID_INT128.
10887 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
10889         * function.h: Flatten file.  Remove includes, adjust prototypes to
10890         reflect only what is in function.h.
10891         (enum direction, struct args_size, struct locate_and_pad_arg_data,
10892         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
10893         from expr.h.
10894         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
10895         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
10896         prototypes to predict.h.
10897         (init_varasm_status): Move prototype to varasm.h.
10898         * expr.h: Adjust include files.
10899         (enum direction, struct args_size, struct locate_and_pad_arg_data,
10900         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
10901         to function.h.
10902         (locate_and_pad_parm): Move prototype to function.h.
10903         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
10904         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
10905         assign_temp, reposition_prologue_and_epilogue_notes,
10906         prologue_epilogue_contains, sibcall_epilogue_contains,
10907         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
10908         set_return_jump_label): Move prototypes to function.h.
10909         * predict.h (optimize_function_for_size_p,
10910         optimize_function_for_speed_p): Relocate prototypes from function.h.
10911         * shrink-wrap.h (emit_return_into_block, active_insn_between,
10912         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
10913         function.h.
10914         * varasm.h (init_varasm_status): Relocate prototype from function.h.
10915         * genattrtab.c (write_header): Add predict.h to include list.
10916         * genconditions.c (write_header): Add predict.h to include list.
10917         * genemit.c (main): Adjust header file includes.
10918         * gengtype.c (ifiles): Add flattened function.h header files.
10919         * genoutput.c (output_prologue): Add predict.h to include list.
10920         * genpreds.c (write_insn_preds_c): Adjust header file includes.
10921         * genrecog.c (write_header): Add flattened function.h header files.
10922         * alias.c: Adjust include files.
10923         * auto-inc-dec.c: Likewise.
10924         * basic-block.h: Likewise.
10925         * bb-reorder.c: Likewise.
10926         * bt-load.c: Likewise.
10927         * builtins.c: Likewise.
10928         * caller-save.c: Likewise.
10929         * calls.c: Likewise.
10930         * cfgbuild.c: Likewise.
10931         * cfgcleanup.c: Likewise.
10932         * cfgexpand.c: Likewise.
10933         * cfgloop.c: Likewise.
10934         * cfgloop.h: Likewise.
10935         * cfgrtl.c: Likewise.
10936         * cgraph.h: Likewise.
10937         * cgraphclones.c: Likewise.
10938         * cgraphunit.c: Likewise.
10939         * combine-stack-adj.c: Likewise.
10940         * combine.c: Likewise.
10941         * coverage.c: Likewise.
10942         * cprop.c: Likewise.
10943         * cse.c: Likewise.
10944         * cselib.c: Likewise.
10945         * dbxout.c: Likewise.
10946         * ddg.c: Likewise.
10947         * df-core.c: Likewise.
10948         * df-problems.c: Likewise.
10949         * df-scan.c: Likewise.
10950         * dojump.c: Likewise.
10951         * dwarf2cfi.c: Likewise.
10952         * dwarf2out.c: Likewise.
10953         * emit-rtl.c: Likewise.
10954         * except.c: Likewise.
10955         * explow.c: Likewise.
10956         * expr.c: Likewise.
10957         * final.c: Likewise.
10958         * function.c: Likewise.
10959         * gcse.c: Likewise.
10960         * gimple-fold.c: Likewise.
10961         * gimple-low.c: Likewise.
10962         * gimple-streamer.h: Likewise.
10963         * haifa-sched.c: Likewise.
10964         * ifcvt.c: Likewise.
10965         * ira.c: Likewise.
10966         * jump.c: Likewise.
10967         * lcm.c: Likewise.
10968         * loop-invariant.c: Likewise.
10969         * lra-assigns.c: Likewise.
10970         * lra-coalesce.c: Likewise.
10971         * lra-constraints.c: Likewise.
10972         * lra-eliminations.c: Likewise.
10973         * lra-lives.c: Likewise.
10974         * lra-spills.c: Likewise.
10975         * lra.c: Likewise.
10976         * lto-cgraph.c: Likewise.
10977         * lto-section-in.c: Likewise.
10978         * lto-section-out.c: Likewise.
10979         * lto-streamer-in.c: Likewise.
10980         * lto-streamer-out.c: Likewise.
10981         * mode-switching.c: Likewise.
10982         * modulo-sched.c: Likewise.
10983         * omp-low.c: Likewise.
10984         * optabs.c: Likewise.
10985         * passes.c: Likewise.
10986         * postreload-gcse.c: Likewise.
10987         * postreload.c: Likewise.
10988         * predict.c: Likewise.
10989         * profile.c: Likewise.
10990         * recog.c: Likewise.
10991         * ree.c: Likewise.
10992         * reg-stack.c: Likewise.
10993         * regcprop.c: Likewise.
10994         * reginfo.c: Likewise.
10995         * regrename.c: Likewise.
10996         * reload.c: Likewise.
10997         * reload1.c: Likewise.
10998         * reorg.c: Likewise.
10999         * resource.c: Likewise.
11000         * rtlanal.c: Likewise.
11001         * sched-deps.c: Likewise.
11002         * sched-ebb.c: Likewise.
11003         * sched-rgn.c: Likewise.
11004         * sel-sched-dump.c: Likewise.
11005         * sel-sched-ir.c: Likewise.
11006         * sel-sched.c: Likewise.
11007         * shrink-wrap.c: Likewise.
11008         * simplify-rtx.c: Likewise.
11009         * statistics.c: Likewise.
11010         * stmt.c: Likewise.
11011         * stor-layout.c: Likewise.
11012         * store-motion.c: Likewise.
11013         * symtab.c: Likewise.
11014         * targhooks.c: Likewise.
11015         * toplev.c: Likewise.
11016         * trans-mem.c: Likewise.
11017         * tree-cfg.c: Likewise.
11018         * tree-cfgcleanup.c: Likewise.
11019         * tree-dfa.c: Likewise.
11020         * tree-eh.c: Likewise.
11021         * tree-inline.c: Likewise.
11022         * tree-into-ssa.c: Likewise.
11023         * tree-nested.c: Likewise.
11024         * tree-nrv.c: Likewise.
11025         * tree-profile.c: Likewise.
11026         * tree-ssa-alias.c: Likewise.
11027         * tree-ssa-ccp.c: Likewise.
11028         * tree-ssa-copy.c: Likewise.
11029         * tree-ssa-copyrename.c: Likewise.
11030         * tree-ssa-dom.c: Likewise.
11031         * tree-ssa-operands.c: Likewise.
11032         * tree-ssa-propagate.c: Likewise.
11033         * tree-ssa-structalias.c: Likewise.
11034         * tree-ssa-tail-merge.c: Likewise.
11035         * tree-ssa-threadedge.c: Likewise.
11036         * tree-ssa-threadupdate.c: Likewise.
11037         * tree-ssa-uncprop.c: Likewise.
11038         * tree-ssa-uninit.c: Likewise.
11039         * tree-ssa.c: Likewise.
11040         * tree-stdarg.c: Likewise.
11041         * tree-tailcall.c: Likewise.
11042         * tree.c: Likewise.
11043         * tsan.c: Likewise.
11044         * valtrack.c: Likewise.
11045         * varasm.c: Likewise.
11046         * vmsdbgout.c: Likewise.
11047         * web.c: Likewise.
11048         * config/aarch64/aarch64.c: Add flattened includes from function.h.
11049         * config/alpha/alpha.c: Likewise.
11050         * config/arc/arc.c: Likewise.
11051         * config/arm/arm.c: Likewise.
11052         * config/avr/avr-log.c: Likewise.
11053         * config/avr/avr.c: Likewise.
11054         * config/bfin/bfin.c: Likewise.
11055         * config/c6x/c6x.c: Likewise.
11056         * config/cr16/cr16.c: Likewise.
11057         * config/cris/cris.c: Likewise.
11058         * config/darwin.c: Likewise.
11059         * config/epiphany/epiphany.c: Likewise.
11060         * config/epiphany/mode-switch-use.c: Likewise.
11061         * config/epiphany/resolve-sw-modes.c: Likewise.
11062         * config/fr30/fr30.c: Likewise.
11063         * config/frv/frv.c: Likewise.
11064         * config/h8300/h8300.c: Likewise.
11065         * config/i386/i386.c: Likewise.
11066         * config/ia64/ia64.c: Likewise.
11067         * config/iq2000/iq2000.c: Likewise.
11068         * config/lm32/lm32.c: Likewise.
11069         * config/m32c/m32c.c: Likewise.
11070         * config/m32r/m32r.c: Likewise.
11071         * config/m68k/m68k.c: Likewise.
11072         * config/mcore/mcore.c: Likewise.
11073         * config/mep/mep-pragma.c: Likewise.
11074         * config/mep/mep.c: Likewise.
11075         * config/microblaze/microblaze.c: Likewise.
11076         * config/mips/mips.c: Likewise.
11077         * config/mmix/mmix.c: Likewise.
11078         * config/mn10300/mn10300.c: Likewise.
11079         * config/moxie/moxie.c: Likewise.
11080         * config/msp430/msp430.c: Likewise.
11081         * config/nds32/nds32-cost.c: Likewise.
11082         * config/nds32/nds32-fp-as-gp.c: Likewise.
11083         * config/nds32/nds32-intrinsic.c: Likewise.
11084         * config/nds32/nds32-isr.c: Likewise.
11085         * config/nds32/nds32-md-auxiliary.c: Likewise.
11086         * config/nds32/nds32-memory-manipulation.c: Likewise.
11087         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11088         * config/nds32/nds32-predicates.c: Likewise.
11089         * config/nds32/nds32.c: Likewise.
11090         * config/nios2/nios2.c: Likewise.
11091         * config/pa/pa.c: Likewise.
11092         * config/pdp11/pdp11.c: Likewise.
11093         * config/rl78/rl78.c: Likewise.
11094         * config/rs6000/rs6000.c: Likewise.
11095         * config/rx/rx.c: Likewise.
11096         * config/s390/s390.c: Likewise.
11097         * config/score/score.c: Likewise.
11098         * config/sh/sh.c: Likewise.
11099         * config/sparc/sparc.c: Likewise.
11100         * config/spu/spu.c: Likewise.
11101         * config/stormy16/stormy16.c: Likewise.
11102         * config/tilegx/tilegx.c: Likewise.
11103         * config/tilepro/tilepro.c: Likewise.
11104         * config/v850/v850.c: Likewise.
11105         * config/vax/vax.c: Likewise.
11106         * config/xtensa/xtensa.c: Likewise.
11108 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
11110         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
11111         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
11113 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
11115         * config/sh/sh-protos.h (fldi_ok): Remove.
11116         * config/sh/sh.c (fldi_ok): Likewise.
11117         (sh_secondary_reload): Don't use fldi_ok.
11118         * config/sh/constraints.md (G constraint, H constraint): Don't use
11119         fldi_ok.
11121 2014-10-16  Martin Liska  <mliska@suse.cz>
11123         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
11124         Cast to unsigned long.
11125         (sem_item_optimizer::dump_cong_classes): Likewise.
11127 2014-10-16  Tom de Vries  <tom@codesourcery.com>
11129         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
11130         with SSA_NAME_IN_FREELIST.
11132 2014-10-16  Richard Biener  <rguenther@suse.de>
11134         PR middle-end/63554
11135         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
11136         (fold_builtin_strncat_chk): Move ...
11137         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
11138         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
11140 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
11142         PR target/59401
11143         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
11144         GBR to 0.
11146 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11147             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11148             Anna Tikhonova  <anna.tikhonova@intel.com>
11149             Ilya Tocar  <ilya.tocar@intel.com>
11150             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11151             Ilya Verbin  <ilya.verbin@intel.com>
11152             Kirill Yukhin  <kirill.yukhin@intel.com>
11153             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11155         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
11156         V64QI modes.
11158 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11160             Anna Tikhonova  <anna.tikhonova@intel.com>
11161             Ilya Tocar  <ilya.tocar@intel.com>
11162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11163             Ilya Verbin  <ilya.verbin@intel.com>
11164             Kirill Yukhin  <kirill.yukhin@intel.com>
11165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11167         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
11168         V16SI, V32HI, V64QI modes.
11170 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
11172         PR target/53513
11173         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
11174         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
11176         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
11177         to match fp insn patterns.
11178         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
11179         list.
11180         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
11181         expand_df_unop, expand_df_binop): Remove.
11182         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
11183         FPSCR_STAT_REG as not call clobbered.
11184         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
11185         invoking fpscr_set_from_mem.
11187         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
11188         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
11189         FPSCR_STAT_REG.
11190         (REGISTER_NAMES): Adjust.
11191         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11192         (FIRST_PSEUDO_REGISTER): Increase to 156.
11193         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
11194         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
11195         FPSCR_STAT_REG.
11196         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
11197         FPSCR_MODES_REG and FPSCR_STAT_REG.
11198         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11200         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
11201         FPSCR_SZ): Add new constants.
11202         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
11204         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
11205         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
11206         Use TARGET_FPU_ANY condition.
11207         (fpu_switch peephole2): Remove.
11208         (fpu_switch split): Use simple_mem_operand to capture the mem and
11209         adjust split implementation.
11210         (extend_psi_si, truncate_si_psi): New insns.
11211         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
11212         set of FPSCR_MODES_REG.
11214         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
11215         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
11216         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
11217         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
11218         call_value_compact, call_value_compact_rettramp, call,
11219         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
11220         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
11221         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
11222         sibcall_value_compact, sibcall_value, call_value_pop_compact,
11223         call_value_pop_compact_rettramp, various unnamed splits):
11224         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
11225         function uses.
11227         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
11228         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
11229         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
11230         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
11231         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
11233         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
11234         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
11235         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
11236         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
11237         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
11238         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
11239         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
11241 2014-10-16  Martin Liska  <mliska@suse.cz>
11242             Jan Hubicka  <hubicka@ucw.cz>
11244         * Makefile.in: New object files included.
11245         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
11246         is printed.
11247         (verify_edge_corresponds_to_fndecl): More sensitive verification
11248         of nodes that are merged by IPA ICF.
11249         * cgraph.h (cgraph_node::num_references): New function.
11250         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
11251         * common.opt: New options ipa-icf, ipa-icf-functions and
11252         ipa-icf-variables introduced.
11253         * doc/invoke.texi: Documentation of new options introduced.
11254         * ipa-icf-gimple.c: New file.
11255         * ipa-icf-gimple.h: New file.
11256         * ipa-icf.c: New file.
11257         * ipa-icf.h: New file.
11258         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
11259         (input_overwrite_node): Likewise.
11260         * lto-section-in.c: New icf section added.
11261         * lto-streamer.h (enum lto_section_type): Likewise.
11262         * opts.c (common_handle_option): New option added.
11263         * passes.def: New pass included.
11264         * timevar.def: Time variable for IPA ICF added.
11265         * tree-pass.h: New IPA ICF pass entry point added.
11267 2014-10-16  Richard Biener  <rguenther@suse.de>
11269         PR tree-optimization/63168
11270         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
11271         latches if after merging they are no longer simple.
11272         * cfghooks.c (merge_blocks): Handle merging a latch block
11273         into another block.
11275 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11276             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11277             Anna Tikhonova  <anna.tikhonova@intel.com>
11278             Ilya Tocar  <ilya.tocar@intel.com>
11279             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11280             Ilya Verbin  <ilya.verbin@intel.com>
11281             Kirill Yukhin  <kirill.yukhin@intel.com>
11282             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11284         * config/i386/sse.md
11285         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
11286         support AVX-512VL instructions.
11288 2014-10-16  DJ Delorie  <dj@redhat.com>
11290         * tree-core.h: Fix comment to not assume pointers are multiples of
11291         bytes.
11293 2014-10-15  Tom Tromey  <tromey@redhat.com>
11295         * timevar.h (class auto_timevar): New class.
11297 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
11299         PR go/59432
11300         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11301         Remove the second alternative.
11302         (regprefix): Remove mode attribute.
11303         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
11304         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
11306         Revert:
11307         2013-11-05  Ian Lance Taylor  <iant@google.com>
11309         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11310         If possible, add .cfi directives to record change to bx.
11311         * config/i386/i386.c (ix86_emit_cfi): New function.
11312         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
11314 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
11316         PR lto/62026
11317         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
11318         to duplicate.
11319         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
11320         at WPA time.
11322 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
11324         PR rtl-optimization/63448
11325         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
11326         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
11327         (LRA_MAX_INHERITANCE_PASSES): Use it.
11328         (lra_constraint_iter_after_spill): Remove.
11329         (lra_assignment_iter): New.
11330         (lra_assignment_iter_after_spill): New.
11331         * lra-assigns.c (lra_assignment_iter): New.
11332         (lra_assignment_iter_after_spill): New.
11333         (former_reload_pseudo_spill_p): New.
11334         (spill_for): Set up former_reload_pseudo_spill_p.
11335         (setup_live_pseudos_and_spill_after_risky): Ditto.
11336         (assign_by_spills): Ditto.
11337         (lra_assign): Increment lra_assignment_iter.  Print the iteration
11338         number.  Reset former_reload_pseudo_spill_p.  Check
11339         lra_assignment_iter_after_spill.
11340         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
11341         lra_assignment_iter and lra_assignment_iter_after_spill.
11342         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
11343         (lra_constraints): Remove code with
11344         lra_assignment_iter_after_spill.
11346 2014-10-15  Teresa Johnson  <tejohnson@google.com>
11348         PR bootstrap/63432
11349         * tree-ssa-threadupdate.c (recompute_probabilities): Better
11350         overflow checking.
11352 2014-10-15  Renlin Li <renlin.li@arm.com>
11354         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11355         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
11356         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
11357         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
11359 2014-10-15  Richard Biener  <rguenther@suse.de>
11361         * gimple-fold.c (gimple_fold_call): Properly keep virtual
11362         SSA form up-to-date when devirtualizing a call to
11363         __builtin_unreachable and avoid fixing up EH info here.
11365 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11366             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11367             Anna Tikhonova  <anna.tikhonova@intel.com>
11368             Ilya Tocar  <ilya.tocar@intel.com>
11369             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11370             Ilya Verbin  <ilya.verbin@intel.com>
11371             Kirill Yukhin  <kirill.yukhin@intel.com>
11372             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11374         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
11375         to support AVX-512BW.
11376         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
11377         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
11378         (define_insn "*<plusminus_insn><mode>3"): Ditto.
11379         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
11380         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11381         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
11382         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11383         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
11384         (define_insn "*andnot<mode>3"): Ditto.
11385         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
11386         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
11387         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
11388         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
11389         (define_insn "*abs<mode>2"): Remove masking support.
11390         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
11391         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
11392         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
11394 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11395             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11396             Anna Tikhonova  <anna.tikhonova@intel.com>
11397             Ilya Tocar  <ilya.tocar@intel.com>
11398             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11399             Ilya Verbin  <ilya.verbin@intel.com>
11400             Kirill Yukhin  <kirill.yukhin@intel.com>
11401             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11403         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
11404         * config/i386/sse.md
11405         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
11406         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
11407         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
11408         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11409         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11410         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11411         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11413 2014-10-15  Renlin Li <renlin.li@arm.com>
11415         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
11417 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
11419         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
11420         MINUS_EXPR in unsigned type to avoid undefined behavior.
11422 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
11424         * stor-layout.c (self_referential_size): Do not promote arguments.
11426 2014-10-15  Marek Polacek  <polacek@redhat.com>
11428         * doc/invoke.texi: Update to reflect that GNU11 is the default
11429         mode for C.
11430         * c-common.h (c_language_kind): Update comment.
11432 2014-10-15  Richard Biener  <rguenther@suse.de>
11434         * hash-table.c: Include bconfig.h if building for the host.
11435         * hash-table.h: Do not include ggc.h on the host but just declare
11436         a few ggc allocation templates.
11438 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
11439             Jeff Law  <law@redhat.com>
11441         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
11442         multiple hard registers, use smaller mode derived from MODE.
11444 2014-10-15  Andreas Schwab  <schwab@suse.de>
11446         * explow.c (convert_memory_address_addr_space_1): Mark in_const
11447         as ATTRIBUTE_UNUSED.
11449 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
11451         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
11452         (decide_unrolling): ... this one.
11453         (peel_loops_completely): Remove.
11454         (decide_peel_simple): Remove.
11455         (decide_peel_once_rolling): Remove.
11456         (decide_peel_completely): Remove.
11457         (peel_loop_simple): Remove.
11458         (peel_loop_completely): Remove.
11459         (unroll_and_peel_loops): Rename to ...
11460         (unroll_loops): ... this one; handle only unrolling.
11461         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
11462         LPT_PEEL_SIMPLE.
11463         (UAP_PEEL): Remove.
11464         (unroll_and_peel_loops): Remove.
11465         (unroll_loops): New.
11466         * passes.def: Replace
11467         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
11468         * loop-init.c (gate_rtl_unroll_and_peel_loops,
11469         rtl_unroll_and_peel_loops): Rename to ...
11470         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
11471         (pass_rtl_unroll_and_peel_loops): Rename to ...
11472         (pass_rtl_unroll_loops): ... this one.
11473         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
11474         (make_pass_rtl_unroll_loops): New.
11475         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
11476         (canonicalize_loop_induction_variables): Update.
11478 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
11480         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
11481         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
11482         !TARGET_HARD_FLOAT_POSTINC.
11483         (*lsip, *ssip): new instructions.
11485 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
11487         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
11488         remove.
11490 2014-10-14  Andrew Pinski  <apinski@cavium.com>
11492         * explow.c (convert_memory_address_addr_space): Rename to ...
11493         (convert_memory_address_addr_space_1): This.  Add in_const argument.
11494         Inside a CONST RTL, permute the conversion and addition of constant
11495         for zero and sign extended pointers.
11496         (convert_memory_address_addr_space): New function.
11498 2014-10-14  Andrew Pinski  <apinski@cavium.com>
11500         Revert:
11501         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11503         PR middle-end/49721
11504         * explow.c (convert_memory_address_addr_space): Also permute the
11505         conversion and addition of constant for zero-extend.
11507 2014-10-14  DJ Delorie  <dj@redhat.com>
11509         * config/msp430/msp430-modes.def (PSI): Add.
11511         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
11512         (msp430_hard_regno_nregs_with_padding): New.
11513         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
11514         (msp430_hard_regno_nregs_has_padding): New.
11515         (msp430_hard_regno_nregs_with_padding): New.
11516         (msp430_unwind_word_mode): Use PSImode instead of SImode.
11517         (msp430_addr_space_legitimate_address_p): New.
11518         (msp430_asm_integer): New.
11519         (msp430_init_dwarf_reg_sizes_extra): New.
11520         (msp430_print_operand): Use X suffix for PSImode even in small model.
11521         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
11522         (PTR_SIZE): ...but 4 bytes for EH.
11523         (SIZE_TYPE): Use __int20.
11524         (PTRDIFF_TYPE): Likewise.
11525         (INCOMING_FRAME_SP_OFFSET): Adjust.
11526         * config/msp430/msp430.md (movqi_topbyte): New.
11527         (movpsi): Use fixed suffixes.
11528         (movsipsi2): Enable for 430X, not large model.
11529         (extendhipsi2): Likewise.
11530         (zero_extendhisi2): Likewise.
11531         (zero_extendhisipsi2): Likewise.
11532         (extend_and_shift1_hipsi2): Likewise.
11533         (extendpsisi2): Likewise.
11534         (*bitbranch<mode>4_z): Fix suffix logic.
11536 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11538         PR ada/62019
11539         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
11540         do not choke on null node.
11541         <VAR_DECL>: Likewise.
11543 2014-10-14  DJ Delorie  <dj@redhat.com>
11545         * machmode.h (int_n_data_t): New.
11546         (int_n_enabled_p): New.
11547         (int_n_data): New.
11548         * tree.c (int_n_enabled_p): New.
11549         (int_n_trees): New.
11550         (make_or_reuse_type): Check for all __intN types, not just
11551         __int128.
11552         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
11553         entries.
11554         * tree.h (int128_integer_type_node): Remove.
11555         (int128_unsigned_type_node): Remove.
11556         (int_n_trees_t): New.
11557         (int_n_enabled_p): New.
11558         (int_n_trees): New.
11559         * toplev.c (standard_type_bitsize): New.
11560         (do_compile): Check which __intN types are enabled for the current
11561         run.
11562         * builtin-types.def (BT_INT128): Remove.
11563         (BT_UINT128): Remove.
11564         * machmode.def: Add macro to create __int128 for all targets.
11565         * stor-layout.c (mode_for_size): Support __intN types.
11566         (smallest_mode_for_size): Likewise.
11567         (initialize_sizetypes): Support __intN types.
11568         * genmodes.c (struct mode_data): Add int_n field.
11569         (blank_mode): Likewise.
11570         (INT_N): New.
11571         (make_int_n): New.
11572         (emit_insn_modes_h): Count __intN entries and define
11573         NUM_INT_N_ENTS.
11574         (emit_mode_int_n): New.
11575         (emit_insn_modes_c): Call it.
11576         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
11577         types, not just __int128.
11578         * tree-core.h (integer_type_kind): Remove __int128-specific
11579         entries, reserve spots for __intN entries.
11581         * config/msp430/msp430-modes.def (PSI): Add.
11583 2014-10-14  Kito Cheng  <kito@0xlab.org>
11585         * ira.c: Fix typo in comment.
11586         * ira.h: Ditto.
11587         * ira-build.c: Ditto.
11588         * ira-color.c: Ditto.
11589         * ira-emit.c: Ditto.
11590         * ira-int.h: Ditto.
11591         * ira-lives.c: Ditto.
11593 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
11595         PR rtl-optimization/63475
11596         * alias.c (true_dependence_1): Always use get_addr to extract
11597         true address operands from x_addr and mem_addr.  Use extracted
11598         address operands to check for references with alignment ANDs.
11599         Use extracted address operands with find_base_term and
11600         base_alias_check. For noncanonicalized operands call canon_rtx with
11601         extracted address operand.
11602         (write_dependence_1): Ditto.
11603         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
11605 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
11607         PR target/63534
11608         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
11609         __morestack local.
11611 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11612             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11613             Anna Tikhonova  <anna.tikhonova@intel.com>
11614             Ilya Tocar  <ilya.tocar@intel.com>
11615             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11616             Ilya Verbin  <ilya.verbin@intel.com>
11617             Kirill Yukhin  <kirill.yukhin@intel.com>
11618             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11620         * config/i386/i386.c
11621         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
11622         (ix86_expand_int_vcond): Ditto.
11624 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11625             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11626             Anna Tikhonova  <anna.tikhonova@intel.com>
11627             Ilya Tocar  <ilya.tocar@intel.com>
11628             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11629             Ilya Verbin  <ilya.verbin@intel.com>
11630             Kirill Yukhin  <kirill.yukhin@intel.com>
11631             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11633         * config/i386/i386.c
11634         (emit_reduc_half): Handle V64QI and V32HI mode.
11635         * config/i386/sse.md
11636         (define_mode_iterator VI_AVX512BW): New.
11637         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
11639 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11640             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11641             Anna Tikhonova  <anna.tikhonova@intel.com>
11642             Ilya Tocar  <ilya.tocar@intel.com>
11643             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11644             Ilya Verbin  <ilya.verbin@intel.com>
11645             Kirill Yukhin  <kirill.yukhin@intel.com>
11646             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11648         * config/i386/sse.md
11649         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
11651 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11653             Anna Tikhonova  <anna.tikhonova@intel.com>
11654             Ilya Tocar  <ilya.tocar@intel.com>
11655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11656             Ilya Verbin  <ilya.verbin@intel.com>
11657             Kirill Yukhin  <kirill.yukhin@intel.com>
11658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11660         * config/i386/i386.c
11661         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
11662         * config/i386/sse.md
11663         (define_mode_iterator VI): Add V64QI and V32HI modes.
11665 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11666             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11667             Anna Tikhonova  <anna.tikhonova@intel.com>
11668             Ilya Tocar  <ilya.tocar@intel.com>
11669             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11670             Ilya Verbin  <ilya.verbin@intel.com>
11671             Kirill Yukhin  <kirill.yukhin@intel.com>
11672             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11674         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
11676 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11677             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11678             Anna Tikhonova  <anna.tikhonova@intel.com>
11679             Ilya Tocar  <ilya.tocar@intel.com>
11680             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11681             Ilya Verbin  <ilya.verbin@intel.com>
11682             Kirill Yukhin  <kirill.yukhin@intel.com>
11683             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11685         * config/i386/sse.md
11686         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
11687         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
11689 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11690             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11691             Anna Tikhonova  <anna.tikhonova@intel.com>
11692             Ilya Tocar  <ilya.tocar@intel.com>
11693             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11694             Ilya Verbin  <ilya.verbin@intel.com>
11695             Kirill Yukhin  <kirill.yukhin@intel.com>
11696             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11698         * config/i386/sse.md
11699         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
11700         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
11702 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11703             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11704             Anna Tikhonova  <anna.tikhonova@intel.com>
11705             Ilya Tocar  <ilya.tocar@intel.com>
11706             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11707             Ilya Verbin  <ilya.verbin@intel.com>
11708             Kirill Yukhin  <kirill.yukhin@intel.com>
11709             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11711         * config/i386/sse.md
11712         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
11713         (define_mode_iterator VI2_AVX2): Add V32HI mode.
11714         (define_expand "mul<mode>3<mask_name>"): Add masking.
11715         (define_insn "*mul<mode>3<mask_name>"): Ditto.
11716         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
11717         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
11718         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
11719         (define_mode_attr SDOT_PMADD_SUF): Ditto.
11720         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
11721         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
11722         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
11723         (define_insn "avx2_packusdw"): Delete.
11724         (define_insn "sse4_1_packusdw"): Ditto.
11725         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
11727 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11729             Anna Tikhonova  <anna.tikhonova@intel.com>
11730             Ilya Tocar  <ilya.tocar@intel.com>
11731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11732             Ilya Verbin  <ilya.verbin@intel.com>
11733             Kirill Yukhin  <kirill.yukhin@intel.com>
11734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11736         * config/i386/sse.md
11737         (define_insn "vec_dup<mode>"): Update constraints.
11739 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11740             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11741             Anna Tikhonova  <anna.tikhonova@intel.com>
11742             Ilya Tocar  <ilya.tocar@intel.com>
11743             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11744             Ilya Verbin  <ilya.verbin@intel.com>
11745             Kirill Yukhin  <kirill.yukhin@intel.com>
11746             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11748         * config/i386/sse.md
11749         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
11750         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
11751         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
11753 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11754             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11755             Anna Tikhonova  <anna.tikhonova@intel.com>
11756             Ilya Tocar  <ilya.tocar@intel.com>
11757             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11758             Ilya Verbin  <ilya.verbin@intel.com>
11759             Kirill Yukhin  <kirill.yukhin@intel.com>
11760             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11762         * config/i386/sse.md
11763         (define_expand "mul<mode>3<mask_name>"): Add masking.
11765 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11766             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11767             Anna Tikhonova  <anna.tikhonova@intel.com>
11768             Ilya Tocar  <ilya.tocar@intel.com>
11769             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11770             Ilya Verbin  <ilya.verbin@intel.com>
11771             Kirill Yukhin  <kirill.yukhin@intel.com>
11772             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11774         * config/i386/sse.md
11775         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
11776         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
11778 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11779             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11780             Anna Tikhonova  <anna.tikhonova@intel.com>
11781             Ilya Tocar  <ilya.tocar@intel.com>
11782             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11783             Ilya Verbin  <ilya.verbin@intel.com>
11784             Kirill Yukhin  <kirill.yukhin@intel.com>
11785             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11787         * config/i386/sse.md
11788         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
11789         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
11790         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
11791         Ditto.
11793 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11794             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11795             Anna Tikhonova  <anna.tikhonova@intel.com>
11796             Ilya Tocar  <ilya.tocar@intel.com>
11797             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11798             Ilya Verbin  <ilya.verbin@intel.com>
11799             Kirill Yukhin  <kirill.yukhin@intel.com>
11800             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11802         * config/i386/sse.md
11803         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
11804         use VF_128_256 mode iterator and update assembler emit code.
11805         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
11806         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
11807         Add masking, use VF_128_256 mode iterator.
11808         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
11809         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
11810         Add masking, use VF_128_256 mode iterator and update assembler emit
11811         code.
11812         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
11813         (define_mode_attr avx512flogicsuff): Delete.
11814         (define_insn "avx512f_<logic><mode>"): Ditto.
11815         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
11816         MODE_TI.
11817         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
11819 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11820             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11821             Anna Tikhonova  <anna.tikhonova@intel.com>
11822             Ilya Tocar  <ilya.tocar@intel.com>
11823             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11824             Ilya Verbin  <ilya.verbin@intel.com>
11825             Kirill Yukhin  <kirill.yukhin@intel.com>
11826             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11828         * config/i386/sse.md
11829         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
11830         (define_expand "vashr<mode>3<mask_name>"): Add masking,
11831         use VI12_128 mode iterator.
11832         (define_expand "ashrv2di3<mask_name>"): New.
11834 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11835             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11836             Anna Tikhonova  <anna.tikhonova@intel.com>
11837             Ilya Tocar  <ilya.tocar@intel.com>
11838             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11839             Ilya Verbin  <ilya.verbin@intel.com>
11840             Kirill Yukhin  <kirill.yukhin@intel.com>
11841             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11843         * config/i386/i386.c
11844         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
11845         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
11846         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
11847         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
11848         CODE_FOR_avx512vl_ucmpv4si3_mask.
11849         * config/i386/sse.md
11850         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
11851         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
11852         (define_insn
11853         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
11854         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
11855         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
11856         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
11857         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
11858         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
11860 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11861             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11862             Anna Tikhonova  <anna.tikhonova@intel.com>
11863             Ilya Tocar  <ilya.tocar@intel.com>
11864             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11865             Ilya Verbin  <ilya.verbin@intel.com>
11866             Kirill Yukhin  <kirill.yukhin@intel.com>
11867             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11869         * config/i386/sse.md
11870         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
11871         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
11872         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
11873         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
11874         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
11875         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
11876         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
11877         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
11878         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
11880 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11882             Anna Tikhonova  <anna.tikhonova@intel.com>
11883             Ilya Tocar  <ilya.tocar@intel.com>
11884             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11885             Ilya Verbin  <ilya.verbin@intel.com>
11886             Kirill Yukhin  <kirill.yukhin@intel.com>
11887             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11889         * config/i386/sse.md
11890         (define_insn "avx512f_blendm<mode>"): Delete.
11891         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
11892         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
11893         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
11894         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
11895         (define_insn
11896         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
11897         Remove.
11898         (define_insn
11899         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
11900         New.
11901         (define_insn
11902         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
11903         Ditto.
11904         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
11905         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
11906         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
11907         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
11908         Delete.
11909         (define_insn
11910         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
11911         New.
11912         (define_insn
11913         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
11914         Ditto.
11915         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
11916         Delete.
11917         (define_insn
11918         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
11919         New.
11920         (define_insn
11921         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
11922         Ditto.
11924 2014-10-14  Richard Biener  <rguenther@suse.de>
11926         PR tree-optimization/63512
11927         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
11928         modified.
11930 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
11932         PR target/63260
11933         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
11934         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
11935         of FPSCR.
11936         (negsf2_i): Rename to *negsf2_i.
11937         (abssf2_i): Rename to *abssf2_i.
11938         (negdf2_i): Rename to *negdf2_i.
11939         (absdf2_i): Rename to *absdf2_i.
11941 2014-10-14  Felix Yang  <felix.yang@huawei.com>
11942             Jeff Law  <law@redhat.com>
11944         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
11945         "replace" into boolean bitfields; turn member "loop_depth" into a short
11946         integer; add new member "no_equiv" and "reserved".
11947         (no_equiv): Set no_equiv of struct equivalence if register is marked
11948         as having no known equivalence.
11949         (update_equiv_regs): Check all definitions for a multiple-set
11950         register to make sure that the RHS have the same value.
11952 2014-10-13  Richard Henderson  <rth@redhat.com>
11954         * combine-stack-adj.c (no_unhandled_cfa): New.
11955         (maybe_merge_cfa_adjust): New.
11956         (combine_stack_adjustments_for_block): Use them.
11958 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
11960         * Makefile.in (TAGS): Tag ../include files.
11962 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11964         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
11965         to rs6000_dbx_register_number.
11966         (DWARF_FRAME_REGNUM): Redefine as identity map.
11967         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
11968         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
11969         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
11970         argument to handle .debug_frame and .eh_frame directly.  Always
11971         translate SPE high register numbers.  Add special treatment for CR,
11972         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
11974         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
11975         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
11976         (RS6000_USE_DWARF_NUMBERING): Define.
11977         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
11978         (RS6000_USE_DWARF_NUMBERING): Define.
11979         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
11980         (RS6000_USE_DWARF_NUMBERING): Define.
11981         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
11982         (RS6000_USE_DWARF_NUMBERING): Define.
11983         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
11984         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
11986 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
11988         * config/i386/i386.c (ix86_address_cost): Lower cost for
11989         when address contains GOT register.
11991 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11992             Vladimir Makarov  <vmakarov@redhat.com>
11994         PR target/8340
11995         PR middle-end/47602
11996         PR rtl-optimization/55458
11997         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
11998         (ix86_init_pic_reg): New.
11999         (ix86_select_alt_pic_regnum): Add check on pseudo register.
12000         (ix86_save_reg): Likewise.
12001         (ix86_expand_prologue): Remove PIC register initialization
12002         now performed in ix86_init_pic_reg.
12003         (ix86_output_function_epilogue): Add check on pseudo register.
12004         (set_pic_reg_ever_alive): New.
12005         (legitimize_pic_address): Replace df_set_regs_ever_live with new
12006         set_pic_reg_ever_alive.
12007         (legitimize_tls_address): Likewise.
12008         (ix86_pic_register_p): New check.
12009         (ix86_delegitimize_address): Add check on pseudo register.
12010         (ix86_expand_call): Insert move from pseudo PIC register to ABI
12011         defined REAL_PIC_OFFSET_TABLE_REGNUM.
12012         (TARGET_INIT_PIC_REG): New.
12013         (TARGET_USE_PSEUDO_PIC_REG): New.
12014         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
12015         if pic_offset_table_rtx exists.
12016         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
12017         Document.
12018         * doc/tm.texi: Regenerate.
12019         * function.c (assign_parms): Generate pseudo register for PIC.
12020         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
12021         register.
12022         * ira-color.c (color_pass): Add check on pseudo register.
12023         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
12024         register.
12025         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
12026         register.
12027         (ira): Add target specific PIC register initialization.
12028         (do_reload): Keep PIC pseudo register.
12029         * lra-assigns.c (spill_for): Add checks on pseudo register.
12030         * lra-constraints.c (contains_symbol_ref_p): New.
12031         (lra_constraints): Enable lra risky transformations when PIC is pseudo
12032         register.
12033         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
12034         * target.def (use_pseudo_pic_reg): New.
12035         (init_pic_reg): New.
12037 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
12039         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
12040         Remove m_SILVERMONT and m_INTEL from the tune.
12042 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12044         PR libfortran/63471
12045         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12046         when _HPUX_SOURCE is defined.
12048 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
12050         PR tree-optimization/62127
12051         * tree.c (remap_type_1): When remapping array, remap
12052         also its type.
12054 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
12056         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
12057         longer impact parallelization.
12059 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
12061         PR bootstrap/63496
12062         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
12064 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
12066         * asan.c (instrument_derefs): BIT_FIELD_REF added.
12068 2014-10-13  Richard Biener  <rguenther@suse.de>
12070         PR tree-optimization/63419
12071         * gimple-fold.h (gimple_convert): New function.
12072         * gimple-fold.c (gimple_convert): Likewise.
12073         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
12074         to split out required conversions early.
12076 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
12078         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
12079         Add the parts of an insn in reverse order, with the pattern at
12080         the top of the queue.  Detect when we're iterating over a SEQUENCE
12081         pattern and in that case just consider patterns of subinstructions.
12083 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
12085         PR target/59401
12086         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
12087         of rtx.
12088         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
12089         insn walking.
12090         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
12091         address.  Use def chains to handle GBR clobbering call insns.
12093 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
12095         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
12096         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
12097         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
12098         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
12099         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
12100         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
12101         * doc/gty.texi (for_user): Document new option.
12102         * gengtype.c (create_user_defined_type): Don't try to get a struct for
12103         char.
12104         (walk_type): Don't error out on for_user option.
12105         (write_func_for_structure): Emit user marking routines if requested by
12106         for_user option.
12107         (write_local_func_for_structure): Likewise.
12108         (main): Mark types with for_user option as used.
12109         * ggc.h (gt_pch_nx): Add overload for unsigned int.
12110         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
12111         * hash-table.h (ggc_hasher): New struct.
12112         (hash_table::create_ggc): New function.
12113         (gt_pch_nx): New overload for hash_table.
12115 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
12117         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
12118         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
12119         * config/sh/sh.c: Likewise.
12120         * config/sh/sh-mem.cc: Likewise.
12121         * config/sh/sh.md: Likewise.
12122         * config/sh/predicates.md: Likewise.
12123         * config/sh/sync.md: Likewise.
12125 2014-10-11  Martin Liska  <mliska@suse.cz>
12127         PR middle-end/63376
12128         * cgraphunit.c (symbol_table::process_new_functions): Missing call
12129         for call_cgraph_insertion_hooks added.
12131 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
12133         PR c/63495
12134         * stor-layout.c (min_align_of_type): Don't decrease alignment
12135         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
12136         TYPE_USER_ALIGN is set.
12138 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
12140         PR rtl-optimization/63483
12141         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
12142         references when alignment ANDs are involved.
12143         (write_dependence_p): Ditto.
12144         (may_alias_p): Ditto.
12146 2014-10-10  Marek Polacek  <polacek@redhat.com>
12148         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
12149         * doc/invoke.texi: Document -fsanitize=object-size.
12150         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
12151         or it into SANITIZE_UNDEFINED.
12152         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
12153         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
12154         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
12155         * opts.c (common_handle_option): Handle -fsanitize=object-size.
12156         * ubsan.c: Include tree-object-size.h.
12157         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
12158         (ubsan_expand_bounds_ifn): Use false instead of 0.
12159         (ubsan_expand_objsize_ifn): New function.
12160         (instrument_object_size): New function.
12161         (pass_ubsan::execute): Add object size instrumentation.
12162         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
12164 2014-10-10  Richard Henderson  <rth@redhat.com>
12166         PR target/63404
12167         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
12168         Restrict the set of expressions we're willing to move.
12170 2014-10-10  Jeff Law  <law@redhat.com>
12172         * ira.c (struct equivalence): Promote INIT_INSNs field to
12173         an rtx_insn_list.  Add comments.
12174         (no_equiv): Promote LIST to an rtx_insn_list.  Update
12175         testing for and creating the special marker.  Use methods
12176         to extract the insn and next pointers.  Promote INSN to an
12177         rtx_insn.
12178         (update_equiv_regs): Update test for special marker in the
12179         INIT_INSNs list.
12181 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12183         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
12184         * configure: Regenerate.
12185         * config/aarch64/aarch64.c (aarch64_override_options): Handle
12186         TARGET_FIX_ERR_A53_835769_DEFAULT.
12187         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
12188         value to 2.
12189         * doc/install.texi (aarch64*-*-*): Document
12190         new --enable-fix-cortex-a53-835769 option.
12192 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12193             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12195         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
12196         (ADJUST_INSN_LENGTH): Define.
12197         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
12198         * config/aarch64/aarch64.c (is_mem_p): New function.
12199         (is_memory_op): Likewise.
12200         (aarch64_prev_real_insn): Likewise.
12201         (is_madd_op): Likewise.
12202         (dep_between_memop_and_curr): Likewise.
12203         (aarch64_madd_needs_nop): Likewise.
12204         (aarch64_final_prescan_insn): Likewise.
12205         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
12206         and -mno-fix-cortex-a53-835769 options.
12208 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
12210         PR tree-optimization/63464
12211         * tree-switch-conversion.c (struct case_bit_test): Remove
12212         hi and lo fields, add wide_int mask field.
12213         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
12214         hi/lo fields into wide_int mask operations, optimize by pretending
12215         minval to be 0 if maxval is small enough.
12216         (process_switch): Adjust caller.
12218 2014-10-10  Richard Biener  <rguenther@suse.de>
12220         PR tree-optimization/63379
12221         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
12222         a neutral operand for min/max when it is not a reduction chain.
12224 2014-10-10  Richard Biener  <rguenther@suse.de>
12226         PR tree-optimization/63476
12227         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
12228         (BB_LIVE_VOP_ON_EXIT): New define.
12229         (create_expression_by_pieces): Assign VUSEs to stmts.
12230         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
12231         (pass_pre::execute): Assert virtual SSA form is up-to-date
12232         after insertion.
12234 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
12236         * lra-assigns.c (assign_by_spills): Error out on spill failure.
12238 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
12240         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
12241         assertion.
12243 2014-10-09  Richard Biener  <rguenther@suse.de>
12245         PR tree-optimization/63380
12246         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
12247         may trap.
12249 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12251         * config/avr/avr.opt (mmcu=): Change to have a string value.
12252         (mn-flash=, mskip-bug, march=, mrmw): New options.
12253         (HeaderInclude): New.
12254         (mmcu=): Remove Var / Init clauses.
12255         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
12256         -specs option.
12257         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
12258         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
12259         (SYMBOL_FLAG_IO_LOW): Define.
12260         (avr_device_to_as, avr_device_to_ld): Don't declare.
12261         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
12262         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
12263         (EXTRA_SPEC_FUNCTIONS): Don't define.
12264         (ASM_SPEC): Translate -arch= option to -mmcu= option.
12265         (LINK_SPEC): Translate -arch= option to -m= option.
12266         Don't use device_to_ld / device_to_data_start.
12267         (STARTFILE_SPEC): Now empty.
12268         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
12269         * config/avr/gen-avr-mmcu-specs.c: New file.
12270         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
12271         (s-device-specs): Likewise.
12272         (GCC_PASSES): Add s-device-specs.
12273         (install-driver): Depend on install-device-specs.
12274         (install-device-specs): New rule.
12275         * config/avr/avr.c (avr_option_override): Look up mcu arch by
12276         avr_arch_index and provide fallback initialization for avr_n_flash.
12277         (varasm.h): #include.
12278         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
12279         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
12280         (avr_attribute_table): Add "io", "address" and "io_low".
12281         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
12282         Add special handling for symbols with "io" and/or "address" attributes.
12283         (avr_asm_asm_output_aligned_bss): New function.
12284         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
12285         as appropriate.  Handle io_low attribute.
12286         (avr_out_sbxx_branch): Handle symbolic io addresses.
12287         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
12288         avr_n_flash instead of avr_current_device->n_flash.
12289         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
12290         (avr_emit_movmemhi): Likewise.
12291         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
12292         Use TARGET_RMW instead of avr_current_device->dev_attributes.
12293         Don't define avr_current_device->macro (that's the specfile's job).
12294         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
12295         * config/avr/avr.c (avr_2word_insn_p): Likewise.
12296         * config/avr/avr.md (*cpse.ne): Likewise.
12297         (mov<mode>): Use avr_eval_addr_attrib.
12298         (cbi): Change constraint for low_io_address_operand operand to "i".
12299         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
12300         * config/avr/predicates.md (io_address_operand):
12301         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
12302         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
12303         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
12304         Update prototype.
12305         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
12306         * config/avr/genmultilib.awk: Use -march=.
12307         Remove Multilib matches processing.
12308         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
12309         * config/avr/avr-arch.h: Add double include guard.
12310         (avr_mcu_t) <library_name>: Update comment.
12311         * config/avr/driver-avr.c (avr_device_to_as): Delete.
12312         (avr_device_to_ld, avr_device_to_data_start): Likewise.
12313         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
12314         (avr_device_to_sp8): Likewise.
12315         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
12317         * doc/extend.texi (io, address): Document new AVR variable attributes.
12318         (io_low): Likewise.
12320 2014-10-09  Marek Polacek  <polacek@redhat.com>
12322         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
12324 2014-10-08  Richard Biener  <rguenther@suse.de>
12326         PR tree-optimization/61969
12327         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
12328         variables.
12330 2014-10-09  Richard Biener  <rguenther@suse.de>
12332         PR tree-optimization/63445
12333         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
12334         overflow for non-equality compares.
12336 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
12338         PR rtl-optimization/57003
12339         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
12340         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
12341         killing regs_invalidated_by_call.
12343 2014-10-08  Teresa Johnson  <tejohnson@google.com>
12345         PR bootstrap/63432.
12346         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
12347         (ssa_fix_duplicate_block_edges): Invoke it.
12348         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
12350 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
12352         PR target/52941
12353         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12354         atomic_fetch_<fetchop_name>si_hard,
12355         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
12356         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
12357         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
12358         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
12360 2014-10-08  Rong Xu  <xur@google.com>
12362         * gcov-tool.c (profile_overlap): New driver function
12363         to compute profile overlap.
12364         (print_overlap_usage_message): New.
12365         (overlap_usage): New.
12366         (do_overlap): New.
12367         (print_usage): Add calls to overlap function.
12368         (main): Ditto.
12369         * doc/gcov-tool.texi: Add documentation.
12371 2014-10-08  Steve Ellcey  <sellcey@mips.com>
12373         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
12374         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
12376 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
12378         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
12379         pattern matching of MEM_REF.
12380         (check_stmt_for_type_change): Update.
12382 2014-10-08  Steve Ellcey  <sellcey@mips.com>
12384         * config/mips/linux64.h: Remove.
12385         * config/mips/gnu-user64.h: Remove.
12386         * gcc.config (mips*-*-*): Remove references to linux64.h and
12387         gnu-user64.h
12388         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
12389         with modified version from gnu-user64.h.
12390         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
12391         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
12392         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
12393         linux64.h.
12394         (GNU_USER_LINK_EMULATION64): Ditto.
12395         (GNU_USER_LINK_EMULATIONN32): Ditto.
12396         (GLIBC_DYNAMIC_LINKER32): Ditto.
12397         (GLIBC_DYNAMIC_LINKER64): Ditto.
12398         (GLIBC_DYNAMIC_LINKERN32): Ditto.
12399         (UCLIBC_DYNAMIC_LINKER32): Ditto.
12400         (UCLIBC_DYNAMIC_LINKER64): Ditto.
12401         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
12402         (BIONIC_DYNAMIC_LINKERN32): Ditto.
12403         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
12404         (GLIBC_DYNAMIC_LINKER): Delete.
12405         (UCLIBC_DYNAMIC_LINKER): Delete.
12407 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
12408             Richard Biener  <rguenther@suse.de>
12410         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
12411         Get address space from operand 0 (BASE).
12413 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
12415         PR target/61387
12416         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
12418 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
12420         * dwarf2out.c: Remove current_function_has_inlines.
12421         (gen_subprogram_die): Same.
12422         (gen_inlined_subroutine_die): Same.
12424 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
12426         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
12427         type.
12428         (_addcarry_u64): Ditto.
12429         (_addcarryx_u64): Ditto.
12431 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
12433         * cgraph.h (cgraph_node::get_fun): Declare.
12434         * cgraph.c (cgraph_node::get_fun): New method.
12435         * ipa-inline.c (can_inline_edge_p): Use it.
12437 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
12439         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
12440         and -ftrapping-math.
12441         * lto-wrapper.c (merge_and_complain): Likewise.
12442         (run_gcc): Likewise.
12444 2014-10-06  Rong Xu  <xur@google.com>
12446         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
12447         * tree-profile.c: (params.h): New include.
12448         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
12449         and __gcov_indirect_call_topn_counters for
12450         indirect_call_topn_profile.
12451         (gimple_init_edge_profiler): New decls for
12452         __gcov_indirect_call_topn_profiler.
12453         (gimple_gen_ic_profiler): Generate the correct profiler call.
12454         (gimple_gen_ic_func_profiler): Fix format.
12455         * value-prof.c (params.h): New include.
12456         (dump_histogram_value): Hanlde indirect_call_topn counters.
12457         (stream_in_histogram_value): Ditto.
12458         (gimple_indirect_call_to_profile): Use indirect_call_topn
12459         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
12460         (gimple_find_values_to_profile): Hanlde indirect_call_topn
12461         counters.
12462         * value-prof.h (enum hist_type): Histrogram type for
12463         indirect_call_topn counters.
12464         * profile.c (instrument_values): Instrument
12465         indirect_call_topn counters.
12467 2014-10-06  Rong Xu  <xur@google.com>
12469         * Makefile.in: Fix dependence.
12470         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
12471         indirect call topn profiler.
12472         * gcov-io.h: Ditto.
12474 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12476         * calls.c (expand_call): Do not use the target as the return slot if
12477         it is not sufficiently aligned.
12479 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12481         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
12482         discussion of permutes and why we don't handle them.
12484 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12486         * config/sparc/predicates.md (int_register_operand): Delete.
12488 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12490         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
12492 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
12494         * ubsan.h (ubsan_get_source_location): New prototype.
12495         * ubsan.c (ubsan_source_location_type): New variable.
12496         Function renamed to ...
12497         (ubsan_get_source_location_type): ... this.  Cache
12498         return value in ubsan_source_location_type variable.
12499         (ubsan_source_location, ubsan_create_data): Use
12500         ubsan_get_source_location_type instead of
12501         ubsan_source_location_type.
12502         * asan.c (asan_protect_global): Don't protect globals
12503         with ubsan_get_source_location_type () type.
12504         (asan_add_global): Provide global decl location info
12505         if possible.
12507 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
12509         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
12510         sanity check.
12512 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
12514         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
12515         on size.
12516         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
12517         into vptr pointer.
12518         (ipa_polymorphic_call_context::dump): Fix formating.
12519         (walk_ssa_copies): Add logic avoiding loops; update uses.
12520         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
12522 2014-10-02  Mark Wielaard  <mjw@redhat.com>
12524         PR debug/63239
12525         * dwarf2out.c (gen_subprogram_die): When a member function is
12526         explicitly deleted then add a DW_AT_GNU_deleted attribute.
12527         * langhooks.h (struct lang_hooks_for_decls): Add
12528         function_decl_deleted_p langhook.
12529         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
12530         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
12532 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
12534         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
12535         NULL pointer checks.
12536         (ipa_polymorphic_call_context::get_dynamic_type): Return true
12537         if type doesn't change.
12538         * cgraph.h (cgraph_indirect_call_info): New flag.
12539         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
12540         (cgraph_node::dump): Dump it.
12541         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
12542         of context.get_dynamic_type.
12543         (ipa_make_edge_direct_to_target): Do not speculate
12544         edge that is already speuclative.
12545         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
12546         speculate to __builtin_unreachable
12547         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
12548         vptr_changed.
12549         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
12551 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
12553         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
12554         get_dynamic_type; drop TODO.
12555         * ipa-polymorphic-call.c
12556         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
12557         for otr_type to be unknown.
12559 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
12561         * common/config/score/score-common.c: Remove.
12562         * config.gcc: Remove support for score-*.
12563         * config/score/constraints.md: Remove.
12564         * config/score/elf.h: Remove.
12565         * config/score/predicates.md: Remove.
12566         * config/score/score-conv.h: Remove.
12567         * config/score/score-generic.md: Remove.
12568         * config/score/score-modes.def: Remove.
12569         * config/score/score-protos.h: Remove.
12570         * config/score/score.c: Remove.
12571         * config/score/score.h: Remove.
12572         * config/score/score.md: Remove.
12573         * config/score/score.opt: Remove.
12574         * doc/md.texi: Don't document score-*.
12576 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
12578         PR pch/63429
12579         * genconditions.c: Directly include ggc.h before rtl.h.
12581 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
12583         * ipa-polymorphic-call.c
12584         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
12585         code determining speculative type.
12586         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
12588 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12590         * altivec.md (altivec_lvsl): New define_expand.
12591         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
12592         (altivec_lvsr): New define_expand.
12593         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
12594         * rs6000.c (rs6000_expand_builtin): Change to use
12595         altivec_lvs[lr]_direct; remove commented-out code.
12597 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12599         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12600         Issue a warning message when vec_lvsl or vec_lvsr is used with a
12601         little endian target.
12603 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12605         * tree-pretty-print.c (dump_location): Make it extern. Dump also
12606         the column.
12607         * tree-pretty-print.h (dump_location): Declare.
12608         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
12609         (pp_gimple_stmt_1): Likewise.
12610         (dump_implicit_edges): Likewise.
12611         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
12612         LOCATION_LINE.
12615 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
12617         * gcc.c (driver::global_initializations): Remove "const" so
12618         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
12619         and decoded_options_count.
12621 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
12623         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
12624         macro.
12625         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
12626         TARGET_E500_DOUBLE case here.
12628 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
12630         PR c++/54427
12631         PR c++/57198
12632         PR c++/58845
12633         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
12635 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
12637         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
12638         * lto-cgraph.c (lto_output_edge, input_edge): Stream
12639         in_polymorphic_cdtor
12640         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
12641         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
12642         * cgraphclones.c (cgraph_edge::clone): Likewise.
12643         * ipa-prop.c (update_jump_functions_after_inlining,
12644         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
12645         to possible_dynamic_type_change.
12646         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
12647         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
12648         IN_POLY_CDOTR argument.
12650         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
12651         for BASE and OUTER_TYPE being NULL.
12652         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
12653         in_poly_cdtor parameter.
12655 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12657         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
12658         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
12659         TARGET_AVX512F.
12660         (expand_vec_perm_1): Likewise.
12662 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12663             Uros Bizjak  <ubizjak@gmail.com>
12665         PR tree-optimization/61403
12666         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
12667         error in comment.  Also optimize 256-bit vectors for AVX2
12668         or AVX (floating vectors only), provided the first permutation
12669         can be performed in one insn.
12671 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
12673         * gcc.c (class driver): New class.
12674         (main): Reimplement in terms of driver::main, moving most of the
12675         locals to be locals within individual methods of class driver.
12676         The remaining locals "explicit_link_files", "decoded_options" and
12677         "decoded_options_count" are used by multiple driver:: methods, and
12678         so become member data.  Doing so isolates the argc/argv reads and
12679         writes.  Replace "goto out" with a special exit code from
12680         new method driver::prepare_infiles.  Split out the old
12681         implementation of main into the following...
12682         (driver::main): New function, corresponding to the old "main"
12683         implementation.
12684         (driver::set_progname): New function, taken from the old
12685         "main" implementation.
12686         (driver::expand_at_files): Likewise.
12687         (driver::decode_argv): Likewise.
12688         (driver::global_initializations): Likewise.
12689         (driver::build_multilib_strings): Likewise.
12690         (driver::set_up_specs): Likewise.
12691         (driver::putenv_COLLECT_GCC): Likewise.
12692         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
12693         (driver::handle_unrecognized_options): Likewise.
12694         (driver::maybe_print_and_exit): Likewise.
12695         (driver::prepare_infiles): Likewise.
12696         (driver::do_spec_on_infiles): Likewise.
12697         (driver::maybe_run_linker): Likewise.
12698         (driver::final_actions): Likewise.
12699         (driver::get_exit_code): Likewise.
12701 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
12703         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
12704         don't emit empty ctors.
12706 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
12708         * convert.c (convert_to_integer): Do not introduce useless conversions
12709         between integral types.
12711 2014-10-03  David Sherwood  <david.sherwood@arm.com>
12713         * ira-int.h (ira_allocno): Mark hard_regno as signed.
12715 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12717         * lra-constraints.c (inherit_in_ebb): Handle calls with
12718         multiple return values.
12719         * caller-save.c (save_call_clobbered_regs): Likewise.
12721 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12723         * tree-vect-data-refs.c (vect_permute_load_chain,
12724         vect_shift_permute_load_chain): Fix a typo in temporary var names,
12725         suffle3 to shuffle3.
12727         PR libgomp/61200
12728         * omp-low.c (taskreg_contexts): New variable.
12729         (scan_omp_parallel): Push newly created context into taskreg_contexts
12730         vector and move record layout code to finish_taskreg_scan.
12731         (scan_omp_task): Likewise.
12732         (finish_taskreg_scan): New function.
12733         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
12734         vector elements and release it.
12736         PR target/62128
12737         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
12738         of palignr arguments can't be used due to min 0 or max - min
12739         too high, try also op0, op1 order of palignr arguments.
12741 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
12743         * cgraph.h (ipa_polymorphic_call_context):
12744         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
12745         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
12746         * ipa-polymorphic-call.c
12747         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
12748         past end of dynamic types.
12749         (ipa_polymorphic_call_context::stream_out,
12750         speculative_outer_type): Stream dynamic flag.
12751         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
12752         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
12753         Clear DYNAMIC.
12754         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
12755         set it.
12756         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
12757         * ipa-prop.c (update_jump_functions_after_inlining,
12758         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
12760 2014-10-02  Teresa Johnson  <tejohnson@google.com>
12762         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
12763         up when synthesizing counts to avoid rounding errors.
12765 2014-10-02  Teresa Johnson  <tejohnson@google.com>
12767         PR middle-end/63422
12768         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
12769         asserts to handle incoming insanities.
12771 2014-10-02  Martin Jambor  <mjambor@suse.cz>
12773         PR tree-optimization/63375
12774         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
12775         references.
12777 2014-10-02  Olivier Hainque  <hainque@adacore.com>
12779         * Makefile.in (CROSS): Define, to @CROSS.
12781 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
12783         PR target/62128
12784         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
12785         if it expands to a single insn only.
12786         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
12787         fail unless in_order is true.  Add forward declaration.
12788         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
12789         is useful for one_operand_p.
12790         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
12792 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
12794         * cgraphclones.c (build_function_type_skip_args): Do not make new
12795         type variant of old.
12797 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
12799         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
12800         when speculation is added.
12801         (ipa_edge_args): Add polymorphic_call_contexts.
12802         (ipa_get_ith_polymorhic_call_context): New accesor.
12803         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
12804         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
12805         (ipa_compute_jump_functions_for_edge): Compute contexts.
12806         (update_jump_functions_after_inlining): Update contexts.
12807         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
12808         update dumping; add speculative edge creation.
12809         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
12810         context updating.
12811         (update_indirect_edges_after_inlining): Pass down context.
12812         (ipa_edge_duplication_hook): Duplicate contexts.
12813         (ipa_write_node_info): Stream out contexts.
12814         (ipa_read_node_info): Stream in contexts.
12815         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
12816         types.
12817         (try_speculative_devirtualization): New function.
12818         * ipa-utils.h (try_speculative_devirtualization): Declare.
12820 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
12822         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
12823         dumping during WPA.
12825 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
12827         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
12828         type variants.
12830 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
12832         * ipa-polymorphic-call.c
12833         (ipa_polymorphic_call_context::restrict_to_inner_class):
12834         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
12835         use speculation_consistent_p to do so; Add CONSDER_BASES
12836         and CONSIDER_PLACEMENT_NEW parameters.
12837         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
12838         short circuit obvious cases.
12839         (ipa_polymorphic_call_context::dump): Improve formatting.
12840         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
12841         combine_speculation_with to record speculations; Do not ICE when
12842         object is located in pointer type decl; do not ICE for methods
12843         of UNION_TYPE; do not record nonpolymorphic types.
12844         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
12845         (ipa_polymorphic_call_context::combine_speculation_with): New method.
12846         (ipa_polymorphic_call_context::combine_with): New method.
12847         (ipa_polymorphic_call_context::make_speculative): Move here; use
12848         combine speculation.
12849         * cgraph.h (ipa_polymorphic_call_context): Update
12850         restrict_to_inner_class prototype; add offset_by, make_speculative,
12851         combine_with, useless_p, combine_speculation_with and
12852         speculation_consistent_p methods.
12853         (ipa_polymorphic_call_context::offset_by): New method.
12854         (ipa_polymorphic_call_context::useless_p): New method.
12856 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12858         PR rtl-optimization/62151
12859         * combine.c (can_combine_p): Allow the destination register of INSN
12860         to be clobbered in I3.
12861         (subst): Do not substitute into clobbers of registers.
12863 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
12865         PR debug/63342
12866         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
12867         offset, TARGET_MEM_REF and SSA_NAME.
12869         * config/i386/i386.c (expand_vec_perm_palignr): Handle
12870         256-bit vectors for TARGET_AVX2.
12872         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
12873         dfirst permutation.
12875         PR target/63428
12876         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
12877         argument to avx2_permv2ti.
12879 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12881         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
12883 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
12885         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
12886         (fmod<mode>3): Ditto.
12887         (fpremxf4_i387): Ditto.
12888         (reminderxf3): Ditto.
12889         (reminder<mode>3): Ditto.
12890         (fprem1xf4_i387): Ditto.
12892 2014-09-30  Teresa Johnson  <tejohnson@google.com>
12894         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
12895         duplicate_blocks bitmap.
12896         (remove_ctrl_stmt_and_useless_edges): Ditto.
12897         (create_block_for_threading): Ditto.
12898         (compute_path_counts): New function.
12899         (update_profile): Ditto.
12900         (recompute_probabilities): Ditto.
12901         (update_joiner_offpath_counts): Ditto.
12902         (freqs_to_counts_path): Ditto.
12903         (clear_counts_path): Ditto.
12904         (ssa_fix_duplicate_block_edges): Update profile info.
12905         (ssa_create_duplicates): Pass new parameter.
12906         (ssa_redirect_edges): Remove old profile update.
12907         (thread_block_1): New duplicate_blocks bitmap,
12908         remove old profile update.
12909         (thread_single_edge): Pass new parameter.
12911 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
12913         PR middle-end/62120
12914         * varasm.c (decode_reg_name_and_count): Check availability for
12915         registers from ADDITIONAL_REGISTER_NAMES.
12917 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
12919         PR plugins/63410
12920         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
12921         (PLUGIN_HEADERS): Add pass-instances.def.
12923 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
12925         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
12926         iterator.
12927         * config/aarch64/aarch64-simd.md
12928         (aarch64_sqdmull_laneq<mode>): Expand iterator.
12929         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
12930         (vqdmulls_lane_s32): Fix return type.
12931         (vqdmulls_laneq_s32): New.
12933 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
12935         PR inline-asm/63282
12936         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
12937         or invert_jump_1 if jump isn't any_condjump_p.
12939 2014-09-30  Terry Guo  <terry.guo@arm.com>
12941         * config/arm/arm-cores.def (cortex-m7): New core name.
12942         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
12943         (fpv5-d16): Ditto.
12944         * config/arm/arm-tables.opt: Regenerated.
12945         * config/arm/arm-tune.md: Regenerated.
12946         * config/arm/arm.h (TARGET_VFP5): New macro.
12947         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
12948         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
12949         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
12950         * doc/invoke.texi: Document new cpu and fpu names.
12952 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
12954         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
12955         before sinking insn.
12957 2014-09-30  David Sherwood  <david.sherwood@arm.com>
12959         * ira-int.h (ira_allocno): Add "wmode" field.
12960         * ira-build.c (create_insn_allocnos): Add new "parent" function
12961         parameter.
12962         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
12963         that cannot be accessed in wmode.
12965 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
12967         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
12968         integer overflow.
12970 2014-09-29  Andi Kleen  <ak@linux.intel.com>
12972         * opts.c (print_filtered_help): Print --param min/max/default
12973         with -Q.
12975 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12977         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
12979 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
12981         * tree-vrp.c (get_single_symbol): New function.
12982         (build_symbolic_expr): Likewise.
12983         (symbolic_range_based_on_p): New predicate.
12984         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
12985         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
12986         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
12987         operand is symbolic and based on the other operand.
12989 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
12991         * config/microblaze/microblaze.md (call_internal1): Use VOID
12992         instead of SI to fix "((void (*)(void)) 0)()" issue
12994 2014-09-29  Nick Clifton  <nickc@redhat.com>
12996         * config/msp430/msp430.c (msp430_expand_prologue): Return a
12997         CLOBBER rtx for naked functions.
12998         (msp430_expand_epilogue): Likewise.
12999         (msp430_use_f5_series_hwmult): Cache result.
13000         (use_32bit_hwmult): Cache result.
13001         (msp430_no_hwmult): New function.
13002         (msp430_output_labelref): Use it.
13004 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
13006         PR middle-end/63247
13007         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
13008         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
13009         use the alignment of avar rather than ovar.
13011 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
13013         * config/pa/pa.c (pa_output_function_epilogue): Only update
13014         last_address when a nonnote insn is found.
13016 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
13018         PR ipa/60665
13019         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
13021 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
13023         PR ipa/62121
13024         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
13025         fix pasto in checking array size.
13027 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
13029         PR middle-end/35545
13030         * passes.def (pass_tracer): Move before last dominator pass.
13032 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
13034         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
13035         users.
13036         (run_attempt): Handle errors of "pex_run" invocation.
13038 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
13040         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
13041         (CC1_SPEC): Define.
13042         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
13043         (TARGET_ASAN_SHADOW_OFFSET): Define.
13045 2014-09-26  Martin Liska  <mliska@suse.cz>
13047         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
13048         introduced.
13049         * cgraph.h: Likewise.
13050         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
13051         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
13052         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
13053         * tree-ssa-alias.h: Likewise.
13055 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
13056             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13058         * common.opt: New option.
13059         * doc/invoke.texi: Describe new option.
13060         * gcc.c (execute): Don't free first string early, but at the end
13061         of the function.  Call retry_ice if compiler exited with
13062         ICE_EXIT_CODE.
13063         (main): Factor out common code.
13064         (print_configuration): New function.
13065         (files_equal_p): Likewise.
13066         (check_repro): Likewise.
13067         (run_attempt): Likewise.
13068         (do_report_bug): Likewise.
13069         (append_text): Likewise.
13070         (try_generate_repro): Likewise
13072 2014-09-25  Andi Kleen  <ak@linux.intel.com>
13074         * config/i386/i386.c (x86_print_call_or_nop): New function.
13075         (x86_function_profiler): Support -mnop-mcount and
13076         -mrecord-mcount.
13077         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
13078         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
13080 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
13082         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
13083         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
13084         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
13085         Remove.
13087 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
13089         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
13090         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
13091         types_odr_comparable): Declare.
13092         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
13093         * ipa-polymorphic-call.c: New file.
13094         (contains_polymorphic_type_p, possible_placement_new,
13095         ipa_polymorphic_call_context::restrict_to_inner_class,
13096         contains_type_p, decl_maybe_in_construction_p,
13097         ipa_polymorphic_call_context::stream_out,
13098         ipa_polymorphic_call_context::debug,
13099         ipa_polymorphic_call_context::stream_in,
13100         ipa_polymorphic_call_context::set_by_decl,
13101         ipa_polymorphic_call_context::set_by_invariant,
13102         walk_ssa_copies,
13103         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13104         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13105         extr_type_from_vtbl_ptr_store, record_known_type
13106         check_stmt_for_type_change,
13107         ipa_polymorphic_call_context::get_dynamic_type): Move here from
13108         ipa-devirt.c
13109         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
13110         and streamer-hooks.h
13111         (contains_polymorphic_type_p, possible_placement_new,
13112         ipa_polymorphic_call_context::restrict_to_inner_class,
13113         contains_type_p, decl_maybe_in_construction_p,
13114         ipa_polymorphic_call_context::stream_out,
13115         ipa_polymorphic_call_context::debug,
13116         ipa_polymorphic_call_context::stream_in,
13117         ipa_polymorphic_call_context::set_by_decl,
13118         ipa_polymorphic_call_context::set_by_invariant,
13119         walk_ssa_copies,
13120         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13121         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13122         extr_type_from_vtbl_ptr_store, record_known_type
13123         check_stmt_for_type_change,
13124         ipa_polymorphic_call_context::get_dynamic_type): Move to
13125         ipa-polymorphic-call.c
13126         (type_all_derivations_known_p, types_odr_comparable,
13127         types_must_be_same_for_odr): Export.
13128         (type_known_to_have_no_deriavations_p): New function.
13129         * Makefile.in: Add ipa-polymorphic-call.c
13131 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
13133         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
13134         for better storage.
13135         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
13136         (possible_polymorphic_call_targets): Instead of computing both
13137         speculative and non-speculative answers, do just one at a time.
13138         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
13139         (dump_targets): Break out from ...
13140         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
13141         and non-speculative lists.
13142         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
13143         * ipa-utils.h (possible_polymorphic_call_targets): Update.
13145 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
13147         PR rtl-optimization/63348
13148         * emit-rtl.c (try_split): Do not emit extra barrier.
13150 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
13152         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
13153         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
13154         new predicates.
13155         (aarch64_<sur>shll2_n<mode>): Likewise.
13156         (aarch64_<sur>shr_n<mode>): Likewise.
13157         (aarch64_<sur>sra_n<mode>: Likewise.
13158         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13159         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13160         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
13161         * config/aarch64/iterators.md (ve_mode): New.
13162         (offsetlr): Remap to infix text for use in new predicates.
13163         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
13164         (aarch64_simd_shift_imm_hi): Likewise.
13165         (aarch64_simd_shift_imm_si): Likewise.
13166         (aarch64_simd_shift_imm_di): Likewise.
13167         (aarch64_simd_shift_imm_offset_qi): Likewise.
13168         (aarch64_simd_shift_imm_offset_hi): Likewise.
13169         (aarch64_simd_shift_imm_offset_si): Likewise.
13170         (aarch64_simd_shift_imm_offset_di): Likewise.
13171         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
13172         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
13173         (aarch64_simd_shift_imm_bitsize_si): Likewise.
13174         (aarch64_simd_shift_imm_bitsize_di): Likewise.
13176 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
13178         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
13179         new created BB as the intersection of live-in from "old_dest" and
13180         live-out from "bb".
13182 2014-09-25  Felix Yang  <felix.yang@huawei.com>
13184         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
13185         * genautomata.c (merge_states): Ditto.
13187 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
13189         PR target/62218
13190         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
13191         in instruction sequence.
13193 2014-09-25  Nick Clifton  <nickc@redhat.com>
13195         PR target/62218
13196         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
13197         in instruction sequence.
13199 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13201         PR target/63335
13202         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
13203         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
13205 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13207             Anna Tikhonova  <anna.tikhonova@intel.com>
13208             Ilya Tocar  <ilya.tocar@intel.com>
13209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13210             Ilya Verbin  <ilya.verbin@intel.com>
13211             Kirill Yukhin  <kirill.yukhin@intel.com>
13212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13214         * config/i386/sse.md
13215         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
13216         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
13217         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
13218         (define_expand "<avx512>_perm<mode>_mask"): ... this.
13219         Use VI8F_256_512 mode iterator.
13220         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
13221         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
13223 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13224             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13225             Anna Tikhonova  <anna.tikhonova@intel.com>
13226             Ilya Tocar  <ilya.tocar@intel.com>
13227             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13228             Ilya Verbin  <ilya.verbin@intel.com>
13229             Kirill Yukhin  <kirill.yukhin@intel.com>
13230             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13232         * config/i386/sse.md
13233         (define_insn "avx_movshdup256<mask_name>"): Add masking.
13234         (define_insn "sse3_movshdup<mask_name>"): Ditto.
13235         (define_insn "avx_movsldup256<mask_name>"): Ditto.
13236         (define_insn "sse3_movsldup<mask_name>"): Ditto.
13237         (define_insn "vec_dupv2df<mask_name>"): Ditto.
13238         (define_insn "*vec_concatv2df"): Add EVEX version.
13240 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13241             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13242             Anna Tikhonova  <anna.tikhonova@intel.com>
13243             Ilya Tocar  <ilya.tocar@intel.com>
13244             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13245             Ilya Verbin  <ilya.verbin@intel.com>
13246             Kirill Yukhin  <kirill.yukhin@intel.com>
13247             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13249         * config/i386/sse.md
13250         (define_insn "vec_set<mode>_0"): Add EVEX version.
13252 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13253             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13254             Anna Tikhonova  <anna.tikhonova@intel.com>
13255             Ilya Tocar  <ilya.tocar@intel.com>
13256             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13257             Ilya Verbin  <ilya.verbin@intel.com>
13258             Kirill Yukhin  <kirill.yukhin@intel.com>
13259             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13261         * config/i386/sse.md
13262         (define_insn
13263         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
13264         New.
13265         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13266         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
13267         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
13268         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
13269         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
13270         (define_expand "sse2_cvtpd2ps_mask): New.
13271         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
13272         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
13274 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13276             Anna Tikhonova  <anna.tikhonova@intel.com>
13277             Ilya Tocar  <ilya.tocar@intel.com>
13278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13279             Ilya Verbin  <ilya.verbin@intel.com>
13280             Kirill Yukhin  <kirill.yukhin@intel.com>
13281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13283         * config/i386/i386.c
13284         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
13285         (ufix_notruncv8dfv8si2_mask_round): ... this.
13286         * config/i386/sse.md
13287         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
13288         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
13289         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
13290         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
13291         (define_expand "sse2_cvtpd2dq"): Delete.
13292         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
13293         make 2nd operand const0 vector.
13294         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
13295         Delete.
13296         (define_mode_attr pd2udqsuff): New.
13297         (define_insn
13298         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
13299         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
13300         (define_insn "*avx_cvttpd2dq256_2"): Delete.
13301         (define_expand "sse2_cvttpd2dq"): Ditto.
13302         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
13303         make 2nd operand const0 vector.
13305 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
13307         PR tree-optimization/63341
13308         * tree-vectorizer.h (vect_create_data_ref_ptr,
13309         vect_create_addr_base_for_vector_ref): Add another tree argument
13310         defaulting to NULL_TREE.
13311         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
13312         argument, pass it down to vect_create_addr_base_for_vector_ref.
13313         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
13314         add that to base_offset too if non-NULL.
13315         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
13316         for dr_explicit_realign_optimized set it to vector byte size
13317         - 1 instead of setting offset, pass byte_offset down to
13318         vect_create_data_ref_ptr.
13320 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
13322         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
13323         forgotten debug output; canonicalize querries more wtih LTO.
13325 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
13327         * cgraph.h (class ipa_polymorphic_call_context): Move here from
13328         ipa-utils.h; add stream_int and stream_out methods.
13329         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
13330         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
13331         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
13332         add CONTEXT.
13333         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13334         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13335         ipa_polymorphic_call_context::clear_speculation,
13336         ipa_polymorphic_call_context::clear_outer_type): Move here from
13337         ipa-utils.h
13338         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
13339         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13340         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13341         ipa_polymorphic_call_context::clear_speculation,
13342         ipa_polymorphic_call_context::clear_outer_type): Likewise.
13343         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
13344         streamer-hooks.h
13345         (ipa_polymorphic_call_context::stream_out): New method.
13346         (ipa_polymorphic_call_context::stream_in): New method.
13347         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
13348         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
13349         OUTER_TYPE.
13350         (ipa_analyze_call_uses): Simplify.
13351         (update_indirect_edges_after_inlining): Do not care about outer_type.
13352         (ipa_write_indirect_edge_info): Update.
13353         (ipa_write_indirect_edge_info): Likewise.
13354         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
13355         (dump_edge_flags): Break out from ...
13356         (cgraph_node::dump): ... here; dump indirect edges.
13358 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
13360         * ipa-utils.h (polymorphic_call_context): Add
13361         metdhos dump, debug and clear_outer_type.
13362         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13363         (ipa_polymorphic_call_context::clear_outer_type): New method.
13364         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
13365         * ipa-devirt.c (types_odr_comparable): New function.
13366         (types_must_be_same_for_odr): New function.
13367         (odr_subtypes_equivalent_p): Simplify.
13368         (possible_placement_new): Break out from ...
13369         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
13370         be more cuatious about returning false in cases the context may be
13371         valid in derived type or via placement new.
13372         (contains_type_p): Clear maybe_derived_type
13373         (ipa_polymorphic_call_context::dump): New method.
13374         (ipa_polymorphic_call_context::debug): New method.
13375         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
13376         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
13377         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13378         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
13379         to suceed on all valid cases; remove confused sanity check.
13380         (dump_possible_polymorphic_call_targets): Simplify.
13382 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
13384         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
13385         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
13386         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
13387         varpool.c: Rename all instances of DECL_ABSTRACT to
13388         DECL_ABSTRACT_P.
13390 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13392         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
13393         special handling for stores whose SET_SRC is an UNSPEC (such as
13394         UNSPEC_STVE).
13396 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
13398         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
13399         !REG_P (src) to release more instruction sink opportunities.
13401 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
13403         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
13404         move costs for 128-bit types.
13406 2014-09-24  Martin Jambor  <mjambor@suse.cz>
13408         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
13409         when duplicating a PASS_THROUGH jump function when creating a
13410         speculative edge.
13412 2014-09-24  Marek Polacek  <polacek@redhat.com>
13414         PR c/61405
13415         PR c/53874
13416         * asan.c (maybe_instrument_call): Add default case.
13417         * ipa-pure-const.c (special_builtin_state): Likewise.
13418         * predict.c (expr_expected_value_1): Likewise.
13419         * lto-streamer-out.c (write_symbol): Initialize variable.
13421 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13423         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
13424         the lane.
13425         (vmuld_laneq_f64): Likewise.
13426         (vmuls_lane_f32): Likewise.
13427         (vmuls_laneq_f32): Likewise.
13429 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
13431         PR bootstrap/63235
13432         * varpool.c (varpool_node::add): Pass decl attributes
13433         to lookup_attribute.
13435 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
13437         PR sanitizer/63316
13438         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
13440 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13442         PR tree-optimization/63266
13443         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
13444         marker for unknown byte value.
13445         (MARKER_MASK): New macro.
13446         (MARKER_BYTE_UNKNOWN): New macro.
13447         (HEAD_MARKER): New macro.
13448         (do_shift_rotate): Mark bytes with unknown values due to sign
13449         extension when doing an arithmetic right shift. Replace hardcoded
13450         mask for marker by new MARKER_MASK macro.
13451         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
13452         numbers accordingly.
13454 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13455             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13456             Anna Tikhonova  <anna.tikhonova@intel.com>
13457             Ilya Tocar  <ilya.tocar@intel.com>
13458             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13459             Ilya Verbin  <ilya.verbin@intel.com>
13460             Kirill Yukhin  <kirill.yukhin@intel.com>
13461             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13463         * config/i386/sse.md
13464         (define_insn
13465         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
13466         Add masking.
13467         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
13468         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
13470 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13471             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13472             Anna Tikhonova  <anna.tikhonova@intel.com>
13473             Ilya Tocar  <ilya.tocar@intel.com>
13474             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13475             Ilya Verbin  <ilya.verbin@intel.com>
13476             Kirill Yukhin  <kirill.yukhin@intel.com>
13477             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13479         * config/i386/sse.md
13480         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
13481         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
13482         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
13483         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
13484         (define_expand "avx512vl_pshuflw_mask"): New.
13485         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
13486         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
13487         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
13488         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
13489         (define_expand "avx512vl_pshufhw_mask"): New.
13490         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
13492 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13493             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13494             Anna Tikhonova  <anna.tikhonova@intel.com>
13495             Ilya Tocar  <ilya.tocar@intel.com>
13496             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13497             Ilya Verbin  <ilya.verbin@intel.com>
13498             Kirill Yukhin  <kirill.yukhin@intel.com>
13499             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13501         * config/i386/i386.c
13502         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
13503         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
13504         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
13505         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
13506         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
13507         * config/i386/sse.md
13508         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
13509         (define_insn
13510         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
13511         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
13512         (define_insn
13513         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
13514         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
13515         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
13516         (define_expand "avx512vl_pshufd_mask"): New.
13517         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
13519 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13520             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13521             Anna Tikhonova  <anna.tikhonova@intel.com>
13522             Ilya Tocar  <ilya.tocar@intel.com>
13523             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13524             Ilya Verbin  <ilya.verbin@intel.com>
13525             Kirill Yukhin  <kirill.yukhin@intel.com>
13526             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13528         * config/i386/i386.c
13529         (CODE_FOR_avx2_extracti128): Rename to ...
13530         (CODE_FOR_avx_vextractf128v4di): this.
13531         (CODE_FOR_avx2_inserti128): Rename to ...
13532         (CODE_FOR_avx_vinsertf128v4di): this.
13533         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
13534         CODE_FOR_avx_vextractf128v4di.
13535         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
13536         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
13537         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
13538         CODE_FOR_avx512vl_vinsertv8si.
13539         * config/i386/sse.md
13540         (define_expand
13541         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
13542         AVX512_VEC mode iterator.
13543         (define_insn
13544         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
13545         Ditto.
13546         (define_expand
13547         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
13548         AVX512_VEC_2 mode iterator.
13549         (define_insn "vec_set_lo_<mode><mask_name>"): New.
13550         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13551         (define_expand "avx512vl_vinsert<mode>"): Ditto.
13552         (define_insn "avx2_vec_set_lo_v4di"): Delete.
13553         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
13554         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
13555         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13556         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
13557         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13558         (define_expand "avx2_extracti128"): Delete.
13559         (define_expand "avx2_inserti128"): Ditto.
13561 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13562             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13563             Anna Tikhonova  <anna.tikhonova@intel.com>
13564             Ilya Tocar  <ilya.tocar@intel.com>
13565             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13566             Ilya Verbin  <ilya.verbin@intel.com>
13567             Kirill Yukhin  <kirill.yukhin@intel.com>
13568             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13570         * config/i386/sse.md
13571         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
13572         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
13573         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
13574         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
13575         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
13576         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
13577         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
13578         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
13579         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
13580         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
13581         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
13582         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
13583         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
13585 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13587         PR rtl-optimization/63210
13588         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
13589         HARD_REGNO is not available for CONFLICT_A.
13591 2014-09-23  Andi Kleen  <ak@linux.intel.com>
13593         * cgraph.h (symtab_node): Add no_reorder attribute.
13594         (symbol_table::output_asm_statements): Remove.
13595         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
13596         (cgraph_node::create_version_clone): Dito.
13597         (symbol_table::output_asm_statements): Remove.
13598         * trans-mem.c (ipa_tm_create_version_alias): Dito.
13599         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
13600         (output_in_order): Add no_reorder flag. Only handle no_reorder
13601         nodes when set.
13602         (symbol_table::compile): Add separate pass for no_reorder nodes.
13603         (process_common_attributes): Set no_reorder flag in symtab node.
13604         Add node argument.
13605         (process_function_and_variable_attributes): Pass symtab nodes to
13606         process_common_attributes.
13607         * doc/extend.texi (no_reorder): Document no_reorder attribute.
13608         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
13609         (lto_output_varpool_node): Dito.
13610         (input_overwrite_node): Dito.
13611         (input_varpool_node): Dito.
13612         * varpool.c (varpool_node::add): Set no_reorder attribute.
13613         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
13614         (symbol_table::output_variables): Dito.
13615         * symtab.c (symtab_node::dump_base): Print no_reorder.
13617 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
13619         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
13620         be INVALID_REGNUM.
13622 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13624         * configure: Regenerate.
13626 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
13628         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
13629         when result_mode == shift_mode.
13631 2014-09-23  Kostya Serebryany  <kcc@google.com>
13633         Update to match the changed asan API.
13634         * asan.c (asan_global_struct): Update the __asan_global definition
13635         to match the new API.
13636         (asan_add_global): Ditto.
13637         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
13638         to __asan_init_v4.
13640 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13642         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
13643         refine the constraints used on 32/64-bit floating point moves.
13644         (f32_av): Likewise.
13645         (f64_vsx): Likewise.
13646         (f64_dm): Likewise.
13647         (f64_av): Likewise.
13648         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
13649         (BOOL_REGS_OP1): Likewise.
13650         (BOOL_REGS_OP2): Likewise.
13651         (BOOL_REGS_UNARY): Likewise.
13652         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
13653         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
13654         for moves involving VSX registers.  Do not use constraints that
13655         target VSX registers for decimal types.
13656         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
13657         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
13659 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
13661         * tree.h (int_bit_position): Turn into inline function;
13662         implement using wide int.
13663         * tree.c (int_bit_position): Remove.
13665 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13667         PR bootstrap/63280
13668         * target-globals.c (target_globals::~target_globals): Fix location
13669         of ira_int destruction.
13671 2014-09-23  Renlin Li  <renlin.li@arm.com>
13673         * config/aarch64/aarch64.md (return): New.
13674         (simple_return): Likewise.
13675         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
13676         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
13678 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
13680         * common/config/aarch64/aarch64-common.c:
13681         (default_options aarch_option_optimization_table):
13682         Default to -fsched-pressure.
13684 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
13686         * cfgcleanup.c (try_optimize_cfg): Do not remove label
13687         with LABEL_PRESERVE_P flag set.
13689 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13690             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13691             Anna Tikhonova  <anna.tikhonova@intel.com>
13692             Ilya Tocar  <ilya.tocar@intel.com>
13693             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13694             Ilya Verbin  <ilya.verbin@intel.com>
13695             Kirill Yukhin  <kirill.yukhin@intel.com>
13696             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13698         * config/i386/sse.md
13699         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
13700         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
13701         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
13702         (define_insn "sse2_shufpd_v2df_mask"): New.
13704 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13705             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13706             Anna Tikhonova  <anna.tikhonova@intel.com>
13707             Ilya Tocar  <ilya.tocar@intel.com>
13708             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13709             Ilya Verbin  <ilya.verbin@intel.com>
13710             Kirill Yukhin  <kirill.yukhin@intel.com>
13711             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13713         * config/i386/sse.md
13714         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
13715         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
13716         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
13717         (define_insn "sse_shufps_v4sf_mask"): New.
13719 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13720             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13721             Anna Tikhonova  <anna.tikhonova@intel.com>
13722             Ilya Tocar  <ilya.tocar@intel.com>
13723             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13724             Ilya Verbin  <ilya.verbin@intel.com>
13725             Kirill Yukhin  <kirill.yukhin@intel.com>
13726             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13728         * config/i386/sse.md
13729         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
13730         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
13731         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
13732         (define_insn "unpcklps128_mask"): New.
13734 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13735             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13736             Anna Tikhonova  <anna.tikhonova@intel.com>
13737             Ilya Tocar  <ilya.tocar@intel.com>
13738             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13739             Ilya Verbin  <ilya.verbin@intel.com>
13740             Kirill Yukhin  <kirill.yukhin@intel.com>
13741             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13743         * config/i386/sse.md
13744         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
13745         (define_insn "avx512vl_unpckhpd128_mask"): New.
13746         (define_expand "avx_movddup256<mask_name>"): Add masking.
13747         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
13748         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
13749         (define_insn "avx512vl_unpcklpd128_mask"): New.
13751 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
13753         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13754         * doc/tm.texi: Regenerate.
13755         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
13756         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13757         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
13758         Remove.
13759         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13760         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13761         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13762         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13763         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
13764         Remove.
13765         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13766         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13767         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13768         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13769         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13770         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13771         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13772         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13773         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13774         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
13775         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
13776         Remove.
13778 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
13780         * tree-ssa-ccp.c (prop_value_d): Rename to ...
13781         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
13782         * ipa-prop.c (struct type_change_info): Rename to ...
13783         (prop_type_change_info): ... this; update uses.
13784         * ggc-page.c (globals): Rename to ...
13785         (static struct ggc_globals): ... this; update uses.
13786         * tree-ssa-loop-im.c (mem_ref): Rename to ...
13787         (im_mem_ref): ... this; update uses.
13788         * ggc-common.c (loc_descriptor): Rename to ...
13789         (ggc_loc_descriptor): ... this; update uses.
13790         * lra-eliminations.c (elim_table): Rename to ...
13791         (lra_elim_table): ... this; update uses.
13792         * bitmap.c (output_info): Rename to ...
13793         (bitmap_output_info): ... this; update uses.
13794         * gcse.c (expr): Rename to ...
13795         (gcse_expr) ... this; update uses.
13796         (occr): Rename to ...
13797         (gcse_occr): .. this; update uses.
13798         * tree-ssa-copy.c (prop_value_d): Rename to ...
13799         (prop_value_t): ... this.
13800         * predict.c (block_info_def): Rename to ...
13801         (block_info): ... this; update uses.
13802         (edge_info_def): Rename to ...
13803         (edge_info): ... this; update uses.
13804         * profile.c (bb_info): Rename to ...
13805         (bb_profile_info): ... this; update uses.
13806         * alloc-pool.c (output_info): Rename to ...
13807         (pool_output_info): ... this; update uses.
13808         * ipa-cp.c (topo_info): Rename to ..
13809         (ipa_topo_info): ... this; update uses.
13810         * tree-nrv.c (nrv_data): Rename to ...
13811         (nrv_data_t): ... this; update uses.
13812         * ipa-split.c (bb_info): Rename to ...
13813         (split_bb_info): ... this one.
13814         * profile.h (edge_info): Rename to ...
13815         (edge_profile_info): ... this one; update uses.
13816         * dse.c (bb_info): Rename to ...
13817         (dse_bb_info): ... this one; update uses.
13818         * cprop.c (occr): Rename to ...
13819         (cprop_occr): ... this one; update uses.
13820         (expr): Rename to ...
13821         (cprop_expr): ... this one; update uses.
13823 2014-09-22  Jason Merrill  <jason@redhat.com>
13825         * Makefile.in (check-parallel-%): Add @.
13827 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
13829         * config/aarch64/geniterators.sh: New.
13830         * config/aarch64/iterators.md (VDQF_DF): New.
13831         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
13832         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
13834 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
13836         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
13837         -lnosys when -msim absent.
13839 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
13841         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
13843 2014-09-22  Richard Biener  <rguenther@suse.de>
13845         * gimplify.c (gimplify_init_constructor): Do not leave
13846         non-GIMPLE vector constructors around.
13847         * tree-cfg.c (verify_gimple_assign_single): Verify that
13848         CONSTRUCTORs have gimple elements.
13850 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
13852         PR debug/63328
13853         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
13854         insert a debug source bind stmt setting DEBUG_EXPR_DECL
13855         instead of a normal gimple assignment stmt.
13857 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
13859         * config/bfin/bfin.md: Fix use of constraints in define_split.
13861 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
13863         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
13864         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
13866 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
13868         * hard-reg-set.h: Include hash-table.h.
13869         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
13870         field.
13871         * target-globals.c (target_globals::~target_globals): Call
13872         hard_regs->finalize.
13873         * rtl.h (subreg_shape): New structure.
13874         (shape_of_subreg): New function.
13875         (simplifiable_subregs): Declare.
13876         * reginfo.c (simplifiable_subreg): New structure.
13877         (simplifiable_subregs_hasher): Likewise.
13878         (simplifiable_subregs): New function.
13879         (invalid_mode_changes): Delete.
13880         (alid_mode_changes, valid_mode_changes_obstack): New variables.
13881         (record_subregs_of_mode): Remove subregs_of_mode parameter.
13882         Record valid mode changes in valid_mode_changes.
13883         (find_subregs_of_mode): Remove subregs_of_mode parameter.
13884         Update calls to record_subregs_of_mode.
13885         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
13886         handling.  Initialize new variables.  Update call to
13887         find_subregs_of_mode.
13888         (invalid_mode_change_p): Check new variables instead of
13889         invalid_mode_changes.
13890         (finish_subregs_of_mode): Finalize new variables instead of
13891         invalid_mode_changes.
13892         (target_hard_regs::finalize): New function.
13893         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
13894         even when CLASS_CANNOT_CHANGE_MODE is undefined.
13896 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
13898         * combine.c (subst): Use simplify_subreg_regno rather than
13899         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
13901 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
13903         * rtl.h (subreg_info): Expand commentary
13904         * rtlanal.c (subreg_get_info): Likewise.
13906 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
13908         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13909         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13910         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
13912 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13914         * config/arm/arm.c: #include "tm-constrs.h"
13915         (thumb1_size_rtx_costs): Adjust rtx costs.
13917 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
13919         * configure.ac (target_header_dir): Move block defining
13920         this to before the block setting inhibit_libc.
13921         (inhibit_libc): When considering $with_headers, just
13922         check it it's explicitly "no".  If not, also check if
13923         $target_header_dir/stdio.h is present.  If not, set
13924         inhibit_libc=true.
13925         * configure: Regenerate.
13927 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
13929         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
13931 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13933         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
13934         insn for divides by integer powers of two.
13935         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
13936         (mod<mode>3): Fix formatting.
13937         (three anonymous define_insn and two define_split): Delete.
13939 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13941         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
13942         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
13943         (floatdisf2_internal2): Ditto.
13944         (ashrdi3_no_power): Ditto.  Fix formatting.
13946 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13948         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
13949         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
13950         Tidy.
13952 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13954         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
13955         constant, use addsi3 directly.
13956         (three anonymous define_insn, two define_split): Delete.
13957         (sub<mode>3): Move.  Do not allow constant second operand.
13958         Generate different insn for constant first operand.
13959         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
13960         (subf<mode>3_imm): New.
13961         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
13962         (*plus_ltu<mode>): Only handle registers.
13963         (*plus_ltu<mode>_1): New.  Handle integer third operand.
13964         (*plus_gtu<mode>): Only handle registers.
13965         (*plus_gtu<mode>_1): New.  Handle integer third operand.
13967 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13969         * config/rs6000/rs6000.md (iorxor): New code_iterator.
13970         (iorxor): New code_attr.
13971         (IORXOR): New code_attr.
13972         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
13973         (ior<mode>3, xor<mode>3): Delete.
13974         (<iorxor><mode>3): New.
13975         (splitter for "big" integer ior, xor): New.
13976         (*bool<mode>3): Move.  Also handle AND.
13977         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
13978         (splitter for "big" integer ior, xor): Delete.
13980 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13982         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
13983         (two anonymous define_insn and two define_split): Delete.
13984         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
13986 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13988         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
13989         (two anonymous define_insn and two define_split): Delete.
13990         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
13992 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13994         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
13996 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13998         * config/rs6000/predicates.md (ca_operand): Allow subregs.
13999         (input_operand): Do not allow ca_operand.
14000         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
14001         carry bit, allow SImode and Pmode.
14002         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
14004 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
14006         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
14007         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
14008         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
14009         (*call_rex64_ms_sysv): Remove.
14010         (*call_value_rex64_ms_sysv): Ditto.
14011         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
14013 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
14015         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
14016         operand 3 to "CnL".
14018 2014-09-20  Andreas Schwab  <schwab@suse.de>
14020         * config/ia64/ia64.md: Remove constraints from define_split
14021         patterns.
14023 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14025         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14026         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14027         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14028         (get_dynamic_type): Remove.
14029         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14030         (clear_speculation): Bring to ipa-deivrt.h
14031         (get_class_context): Rename to ...
14032         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14033         (contains_type_p): Update.
14034         (get_dynamic_type): Rename to ...
14035         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14036         (possible_polymorphic_call_targets): UPdate.
14037         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14038         * ipa-prop.c (ipa_analyze_call_uses): Update.
14040 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14042         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
14043         privatize dynamic TLS variables.
14045 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14047         * diagnostic.c (warning_n): New function.
14048         * diagnostic-core.h (warning_n): Declare.
14049         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
14050         output dynamic counts when available.
14052 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14054         PR tree-optimization/63255
14055         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
14056         issue in setting body_removed flag.
14058 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14060         PR c++/61825
14061         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
14062         that visibility change is possible
14063         (handle_weakref_attribute): Likewise.
14064         * cgraph.h (symtab_node): Add method get_create and
14065         field refuse_visibility_changes.
14066         (symtab_node::get_create): New method.
14067         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
14068         * varasm.c (mark_weak): Verify that visibility change is
14069         possible.
14071 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
14073         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
14074         for base_reg_operand to be common between LO_SUM and PLUS.
14075         (fusion_gpr_mem_combo): New predicate to match a fused address
14076         that combines the addis and memory offset address.
14078         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
14079         calling signature.
14080         (emit_fusion_gpr_load): Likewise.
14082         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
14083         signature to pass each argument separately, rather than
14084         using an operands array.  Rewrite the insns found by peephole2 to
14085         be a single insn, rather than hoping the insns will still be
14086         together when the peephole pass is done.  Drop being called via a
14087         normal peephole.
14088         (emit_fusion_gpr_load): Change calling signature to be called from
14089         the fusion_gpr_load_<mode> insns with a combined memory address
14090         instead of the peephole pass passing the addis and offset
14091         separately.
14093         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
14094         fusion.
14095         (power8 fusion peephole): Drop support for doing power8 via a
14096         normal peephole that was created by the peephole2 pass.
14097         (power8 fusion peephole2): Create a new insn with the fused
14098         address, so that the fused operation is kept together after
14099         register allocation is done.
14100         (fusion_gpr_load_<mode>): Likewise.
14102 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
14104         PR lto/63286
14105         * tree.c (need_assembler_name_p): Do not mangle variadic types.
14107 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
14109         * recog.c (scratch_operand): Do not simply allow all hard registers:
14110         only allow those that are allocatable.
14112 2014-09-19  Felix Yang  <felix.yang@huawei.com>
14114         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
14115         comments and fix spacing to conform to coding style.
14117 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
14119         * genrecog.c (validate_pattern): Allow empty constraints in
14120         a match_scratch.
14122 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
14124         * dwarf2out.c (decl_ultimate_origin): Update comment.
14125         * tree.c (block_ultimate_origin): Same.
14127 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14129         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
14130         Update GCC version name to GCC 5.
14131         (rs6000_function_arg_boundary): Likewise.
14132         (rs6000_function_arg): Likewise.
14134 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
14136         * config/sh/sh.md: Fix use of constraints in define_split.
14138 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
14140         PR ipa/61998
14141         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
14143 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
14145         * doc/md.texi (Modifiers): Consistently use "read/write"
14146         nomenclature rather than "input/output".
14147         * genrecog.c (constraints_supported_in_insn_p): New.
14148         (validate_pattern): If needed, also check constraints on
14149         MATCH_SCRATCH operands.
14150         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
14151         operands with no '=' or '+' modifier.
14153 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
14155         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
14156         scratch register as written.
14158 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14160         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
14161         assignment.
14163 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14165         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
14166         expanders.
14168 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14170         PR target/62662
14171         * config/s390/s390.c (s390_emit_epilogue): When doing the return
14172         address load optimization force s390_optimize_prologue to leave it
14173         that way.  Only do the optimization if we already decided to push
14174         r14 into a stack slot.
14176 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
14178         * asan.c (build_check_stmt): Alignment arg was added.
14179         (asan_expand_check_ifn): Optimization for alignment >= 8.
14181 2014-09-19  Olivier Hainque  <hainque@adacore.com>
14183         * config/i386/vxworksae.h: Remove obsolete definitions.
14184         (STACK_CHECK_PROTECT): Define.
14185         * config/i386/vx-common.h: Remove.  Merge contents within
14186         config/i386/vxworks.h.
14187         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
14188         i386/vx-common.h.
14190 2014-09-19  Olivier Hainque  <hainque@adacore.com>
14192         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
14193         * config/rs6000/t-vxworksmils: New file.
14194         * config/rs6000/vxworksmils.h: New file.
14196 2014-09-19  Olivier Hainque  <hainque@adacore.com>
14198         * varasm.c (default_section_type_flags): Flag .persistent.bss
14199         sections as SECTION_BSS.
14201 2014-09-19  Nick Clifton  <nickc@redhat.com>
14203         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
14204         pop'ed registers so that DCE does not eliminate them.
14206 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
14208         PR lto/63298
14209         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
14211 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
14213         * system.h (LIBGCC2_TF_CEXT): Poison.
14214         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
14215         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
14216         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
14217         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
14218         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
14219         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
14220         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
14221         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
14222         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
14224 2014-09-19  Kito Cheng  <kito@0xlab.org>
14226         * except.h: Fix header guard.
14227         * addresses.h: Add missing header guard.
14228         * cfghooks.h: Likewise.
14229         * collect-utils.h: Likewise.
14230         * collect2-aix.h: Likewise.
14231         * conditions.h: Likewise.
14232         * cselib.h: Likewise.
14233         * dwarf2asm.h: Likewise.
14234         * graphds.h: Likewise.
14235         * graphite-scop-detection.h: Likewise.
14236         * gsyms.h: Likewise.
14237         * hw-doloop.h: Likewise.
14238         * incpath.h: Likewise.
14239         * ipa-inline.h: Likewise.
14240         * ipa-ref.h: Likewise.
14241         * ira-int.h: Likewise.
14242         * ira.h: Likewise.
14243         * lra-int.h: Likewise.
14244         * lra.h: Likewise.
14245         * lto-section-names.h: Likewise.
14246         * read-md.h: Likewise.
14247         * reload.h: Likewise.
14248         * rtl-error.h: Likewise.
14249         * sdbout.h: Likewise.
14250         * targhooks.h: Likewise.
14251         * tree-affine.h: Likewise.
14252         * xcoff.h: Likewise.
14253         * xcoffout.h: Likewise.
14255 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14257         PR debug/63285
14258         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
14259         if advance != 0.
14261 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14263         PR target/61360
14264         * lra.c (lra): Call recog_init.
14266 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
14268         PR c++/62017
14269         * asan.c (transform_statements): Don't instrument clobber statements.
14271 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14273         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
14274         to neon_load1_1reg<q>.
14276 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
14278         PR debug/63284
14279         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
14280         if there are only debug stmts after the noreturn call, instead
14281         remove the debug stmts.
14283 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
14285         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
14286         (odr_types_equivalent_p): Use pair hash.
14287         (odr_subtypes_equivalent_p): Likewise, do structural compare
14288         on ODR types that may be mismatched.
14289         (warn_odr): Support warning when only one field is given.
14290         (odr_types_equivalent_p): Strenghten comparsions made;
14291         support VOIDtype.
14292         (add_type_duplicate): Update VISITED hash set.
14294 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14296         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
14297         Enable selection of 'posix' or no thread model.
14299 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
14301         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
14302         when architecture is older than ARMv7.
14304 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
14306         PR target/61853
14307         * config/pa/pa.c (pa_function_value): Directly handle aggregates
14308         that fit exactly in a word or double word.
14310 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
14312         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
14313         zmm/k regs support.
14315 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14317             Anna Tikhonova  <anna.tikhonova@intel.com>
14318             Ilya Tocar  <ilya.tocar@intel.com>
14319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14320             Ilya Verbin  <ilya.verbin@intel.com>
14321             Kirill Yukhin  <kirill.yukhin@intel.com>
14322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14324         * config/i386/i386.c
14325         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
14326         * config/i386/sse.md
14327         (define_mode_iterator VI48F_256): New.
14328         (define_mode_attr extract_type): Ditto.
14329         (define_mode_attr extract_suf): Ditto.
14330         (define_mode_iterator AVX512_VEC): Ditto.
14331         (define_expand
14332         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
14333         AVX512_VEC.
14334         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
14335         (define_insn
14336         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
14337         Ditto.
14338         (define_mode_attr extract_type_2): Ditto.
14339         (define_mode_attr extract_suf_2): Ditto.
14340         (define_mode_iterator AVX512_VEC_2): Ditto.
14341         (define_expand
14342         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
14343         AVX512_VEC_2 mode iterator.
14344         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14345         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
14346         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14347         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14348         (define_split for V16FI mode): Ditto.
14349         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14350         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14351         (define_split for VI8F_256 mode): Ditto.
14352         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14353         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14354         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14355         (define_split for VI4F_256 mode): Ditto.
14356         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
14357         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14358         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14359         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
14360         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
14361         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
14362         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
14363         Update `type' attribute, remove explicit `memory' attribute calculation.
14365 2014-09-16  Kito Cheng  <kito@0xlab.org>
14367         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
14368         ira_spilled_reg_stack_slots_num if using lra.
14369         (do_reload): Remove release ira_spilled_reg_stack_slots part.
14370         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
14371         make sure not using lra.
14372         (ira_reuse_stack_slot): Likewise.
14373         (ira_mark_new_stack_slot): Likewise.
14375 2014-09-15  Andi Kleen  <ak@linux.intel.com>
14377         * function.c (allocate_struct_function): Force
14378         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
14379         profiling is disabled.
14381 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
14383         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
14384         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
14385         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
14386         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
14387         macro with statically checked member functions.
14388         * rtl.h (rtx_insn::deleted): New method.
14389         (rtx_insn::set_deleted): Likewise.
14390         (rtx_insn::set_undeleted): Likewise.
14391         (INSN_DELETED_P): Remove.
14393 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
14395         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
14396         result of emit_jump_insn_before to a new variable.
14397         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
14398         (mark_jump_label_1): Likewise.
14399         (mark_jump_label_asm): Likewise.
14400         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
14401         * rtl.h (mark_jump_label): Adjust.
14403 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
14405         * Makefile.in (dg_target_exps): Remove.
14406         (check_gcc_parallelize): Change to just an upper bound number.
14407         (check-%-subtargets): Always print the non-parallelized goals.
14408         (check_p_vars, check_p_comma, check_p_subwork): Remove.
14409         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
14410         check_p_numbers3, check_p_numbers4, check_p_numbers5,
14411         check_p_numbers6): New variables.
14412         (check_p_numbers): Set to sequence from 1 to 9999.
14413         (check_p_subdirs): Set to sequence from 1 to minimum of
14414         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
14415         or 128.
14416         (check-%, check-parallel-%): Rewritten so that for parallelized
14417         testing each job runs all the *.exp files, with
14418         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
14420 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
14422         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
14423         rtx to rtx_insn *.
14424         (arc_sets_cc_p): Likewise.
14425         * config/arc/arc.c (arc_print_operand): Use methods of
14426         "final_sequence" for clarity, and to enable strengthening of
14427         locals "jump" and "delay" from rtx to rtx_insn *.
14428         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
14429         rtx_insn *; use method of rtx_sequence for typesafety.
14430         (arc_get_insn_variants): Use insn method of rtx_sequence for
14431         typesafety.
14432         (arc_pad_return): Likewise.
14433         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
14434         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
14435         dyn_cast to rtx_sequence *, using insn method for typesafety.
14436         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
14437         rtx_sequence * and use insn method when invoking get_attr_length.
14438         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
14439         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
14440         rtx_sequence *, introducing a local "seq", using its insn method
14441         from typesafety and clarity.
14442         (add_sched_insns_for_speculation): Strengthen local "next" from
14443         rtx to rtx_insn *.
14444         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
14445         (predicate_insn): Likewise.
14446         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
14447         second param.
14448         * config/cris/cris.c (cris_notice_update_cc): Likewise.
14449         * config/epiphany/epiphany-protos.h
14450         (extern void epiphany_insert_mode_switch_use): Likewise for param
14451         "insn".
14452         (get_attr_sched_use_fpu): Likewise for param.
14453         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
14454         Likewise for param "insn".
14455         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
14456         param "insn" of "target_insert_mode_switch_use" callback.
14457         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
14458         (frv_issues_to_branch_unit_p): Likewise.
14459         (frv_pack_insn_p): Likewise.
14460         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
14461         const rtx * (i.e. mutable rtx_def * const *) to
14462         rtx_insn * const *.
14463         * config/i386/i386-protos.h (standard_sse_constant_opcode):
14464         Strengthen first param from rtx to rtx_insn *.
14465         (output_fix_trunc): Likewise.
14466         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
14467         (output_fix_trunc): Likewise.
14468         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
14469         local "insn".
14470         (min_insn_size): Likewise for param "insn".
14471         (get_mem_group): Likewise.
14472         (is_cmp): Likewise.
14473         (get_insn_path): Likewise.
14474         (get_insn_group): Likewise.
14475         (count_num_restricted): Likewise.
14476         (fits_dispatch_window): Likewise.
14477         (add_insn_window): Likewise.
14478         (add_to_dispatch_window): Likewise.
14479         (debug_insn_dispatch_info_file): Likewise.
14480         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
14481         first param.
14482         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
14483         "cmp" and local "prev".
14484         (m32c_output_compare): Likewise for param "insn".
14485         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
14486         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
14487         (define_predicate "large_insn_p"): Likewise.
14488         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
14489         param from rtx to rtx_insn *.
14490         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
14491         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
14492         (m68k_sched_attr_size): Likewise.
14493         (sched_get_opxy_mem_type): Likewise for param "insn".
14494         (m68k_sched_attr_op_mem): Likewise.
14495         (sched_mem_operand_p): Likewise.
14496         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
14497         * config/mep/mep.c (mep_multi_slot): Likewise.
14498         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
14499         first param.
14500         (mips_sync_loop_insns): Likewise.
14501         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
14502         method of "final_sequence" for typesafety.
14503         (mips_process_sync_loop): Strengthen param "insn" from rtx to
14504         rtx_insn *.
14505         (mips_output_sync_loop): Likewise.
14506         (mips_sync_loop_insns): Likewise.
14507         (mips_74k_agen_init): Likewise.
14508         (mips_sched_init): Use NULL rather than NULL_RTX when working with
14509         insns.
14510         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
14511         Strengthen param "insn" from rtx to rtx_insn *.
14512         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
14513         local "insn".
14514         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
14515         param.
14516         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
14517         "insn".  Use method of rtx_sequence for typesafety.
14518         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
14519         rtx_insn *.
14520         (branch_needs_nop_p): Likewise.
14521         (use_skip_p): Likewise.
14522         (pa_insn_refs_are_delayed): Likewise.
14523         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
14524         for locals "insn", "ninsn".
14525         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
14526         "insn".
14527         (is_cracked_insn): Likewise.
14528         (is_branch_slot_insn): Likewise.
14529         (is_nonpipeline_insn): Likewise.
14530         (insn_terminates_group_p): Likewise.
14531         (insn_must_be_first_in_group): Likewise.
14532         (insn_must_be_last_in_group): Likewise.
14533         (force_new_group): Likewise for param "next_insn".
14534         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
14535         "insn".
14536         (s390_sched_score): Likewise.
14537         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
14538         (rtx sfunc_uses_reg): Likewise for sole param.
14539         * config/sh/sh.c (sh_print_operand): Use insn method of
14540         final_sequence for typesafety.
14541         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
14542         Use insn method of final_sequence for typesafety.
14543         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
14544         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
14545         for param.
14546         (eligible_for_return_delay): Likewise.
14547         (eligible_for_sibcall_delay): Likewise.
14548         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
14549         (eligible_for_return_delay): Likewise.
14550         (eligible_for_sibcall_delay): Likewise.
14551         * config/stormy16/stormy16-protos.h
14552         (xstormy16_output_cbranch_hi): Likewise for final param.
14553         (xstormy16_output_cbranch_si): Likewise.
14554         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
14555         (xstormy16_output_cbranch_si): Likewise.
14556         * config/v850/v850-protos.h (notice_update_cc): Likewise.
14557         * config/v850/v850.c (notice_update_cc): Likewise.
14559         * final.c (get_attr_length_1): Strengthen param "insn" and param
14560         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
14561         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
14562         (get_attr_min_length): Likewise.
14563         (shorten_branches): Likewise for signature of locals "length_fun"
14564         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
14565         from a checked cast and use its methods for clarity and to enable
14566         strengthening local "inner_insn" from rtx to rtx_insn *.
14567         * genattr.c (gen_attr): When writing out the prototypes of the
14568         various generated "get_attr_" functions, strengthen the params of
14569         the non-const functions from rtx to rtx_insn *.
14570         Similarly, strengthen the params of insn_default_length,
14571         insn_min_length, insn_variable_length_p, insn_current_length.
14572         (main): Similarly, strengthen the param of num_delay_slots,
14573         internal_dfa_insn_code, insn_default_latency, bypass_p,
14574         insn_latency, min_issue_delay, print_reservation,
14575         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
14576         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
14577         to hook_int_rtx_insn_unreachable.
14578         * genattrtab.c (write_attr_get): When writing out the generated
14579         "get_attr_" functions, strengthen the param "insn" from rtx to
14580         rtx_insn *, eliminating a checked cast.
14581         (make_automaton_attrs): When writing out prototypes of
14582         "internal_dfa_insn_code_", "insn_default_latency_" functions
14583         and the "internal_dfa_insn_code" and "insn_default_latency"
14584         callbacks, strengthen their params from rtx to rtx_insn *
14585         * genautomata.c (output_internal_insn_code_evaluation): When
14586         writing out code, add a checked cast from rtx to rtx_insn * when
14587         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
14588         (output_dfa_insn_code_func): Strengthen param of generated
14589         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
14590         (output_trans_func): Likewise for generated function
14591         "state_transition".
14592         (output_internal_insn_latency_func): When writing out generated
14593         function "internal_insn_latency", rename params from "insn" and
14594         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
14595         locals "insn" and "insn2" as rtx_insn * with checked casts once
14596         we've proven that we're not dealing with const0_rtx.
14597         (output_insn_latency_func):  Strengthen param of generated
14598         function "insn_latency" from rtx to rtx_insn *.
14599         (output_print_reservation_func): Likewise for generated function
14600         "print_reservation".
14601         (output_insn_has_dfa_reservation_p): Likewise for generated
14602         function "insn_has_dfa_reservation_p".
14603         * hooks.c (hook_int_rtx_unreachable): Rename to...
14604         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
14605         from rtx to rtx_insn *.
14606         * hooks.h (hook_int_rtx_unreachable): Likewise.
14607         (extern int hook_int_rtx_insn_unreachable): Likewise.
14608         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
14609         (get_attr_min_length): Likewise.
14610         * recog.c (get_enabled_alternatives): Likewise.
14611         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
14612         * reorg.c (find_end_label): Introduce local rtx "pat" and
14613         strengthen local "insn" from rtx to rtx_insn *.
14614         (redundant_insn): Use insn method of "seq" rather than element for
14615         typesafety; strengthen local "control" from rtx to rtx_insn *.
14616         * resource.c (mark_referenced_resources): Add checked cast to
14617         rtx_insn * within INSN/JUMP_INSN case.
14618         (mark_set_resources): Likewise.
14619         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
14620         rtx to rtx_insn *.
14622 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
14624         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
14625         param "label" from rtx to rtx_insn *.
14626         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
14627         and local "op".
14628         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
14629         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
14630         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
14631         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
14632         * final.c (default_label_align_after_barrier_max_skip): Strengthen
14633         param from rtx to rtx_insn *.
14634         (default_loop_align_max_skip): Likewise.
14635         (default_label_align_max_skip): Likewise.
14636         (default_jump_align_max_skip): Likewise.
14637         * target.def (label_align_after_barrier_max_skip): Likewise.
14638         (loop_align_max_skip): Likewise.
14639         (label_align_max_skip): Likewise.
14640         (jump_align_max_skip): Likewise.
14641         * targhooks.h (default_label_align_after_barrier_max_skip):
14642         Likewise.
14643         (default_loop_align_max_skip): Likewise.
14644         (default_label_align_max_skip): Likewise.
14645         (default_jump_align_max_skip): Likewise.
14647 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
14649         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
14650         from const_rtx to const rtx_insn *.  Update union members from rtx
14651         to rtx_insn *.
14652         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
14653         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
14654         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
14655         strengthen both params from const_rtx to const rtx_insn *.
14656         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
14657         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
14658         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
14659         rtx_insn *.
14660         * target.def (can_follow_jump): Strengthen both params from
14661         const_rtx to const rtx_insn *, and update default implementation
14662         from hook_bool_const_rtx_const_rtx_true to
14663         hook_bool_const_rtx_insn_const_rtx_insn_true.
14665 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
14667         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
14668         "insn" from rtx to rtx_insn *.
14669         * sched-int.h (deps_start_bb): Likewise for 2nd param.
14671 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14672             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14673             Anna Tikhonova  <anna.tikhonova@intel.com>
14674             Ilya Tocar  <ilya.tocar@intel.com>
14675             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14676             Ilya Verbin  <ilya.verbin@intel.com>
14677             Kirill Yukhin  <kirill.yukhin@intel.com>
14678             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14680         * config/i386/sse.md
14681         (define_insn "vcvtph2ps<mask_name>"): Add masking.
14682         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
14683         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
14684         (define_expand "vcvtps2ph_mask"): New.
14685         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
14686         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
14687         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
14689 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14690             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14691             Anna Tikhonova  <anna.tikhonova@intel.com>
14692             Ilya Tocar  <ilya.tocar@intel.com>
14693             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14694             Ilya Verbin  <ilya.verbin@intel.com>
14695             Kirill Yukhin  <kirill.yukhin@intel.com>
14696             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14698         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
14699         New.
14700         (define_mode_iterator VI24_AVX512BW_1): Ditto.
14701         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
14702         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
14703         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
14704         also for TARGET_AVX512VL.
14705         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
14707 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
14709         * doc/install.texi (Options specification): add
14710         --disable-libsanitizer item.
14712 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
14713             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14715         PR target/61407
14716         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
14717         and above.
14718         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
14719         kernel version check to avoid incrementing it after every major OS X
14720         release.
14721         (darwin_default_min_version): Avoid static memory buffer.
14723 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
14725         * tree.c (need_assembler_name_p): Store C++ type mangling only
14726         for aggregates.
14728 2014-09-13  Marek Polacek  <polacek@redhat.com>
14730         * tree.c (protected_set_expr_location): Don't check whether T is
14731         non-null here.
14733 2014-09-12  DJ Delorie  <dj@redhat.com>
14735         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
14736         (extend_and_shift1_hipsi2): Likewise.
14737         (extend_and_shift2_hipsi2): Likewise.
14739 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
14741         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
14742         with NULL when dealing with an insn.
14743         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
14744         from rtx to rtx_insn *.
14745         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
14746         const_rtx to const rtx_insn *.
14747         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
14749 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
14751         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
14752         assert.
14754 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
14756         * target.def (libgcc_floating_mode_supported_p): New hook.
14757         * targhooks.c (default_libgcc_floating_mode_supported_p): New
14758         function.
14759         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
14760         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
14761         (LIBGCC2_HAS_TF_MODE): Remove.
14762         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
14763         * doc/tm.texi: Regenerate.
14764         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
14765         machine mode.
14766         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
14767         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
14768         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
14769         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
14770         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14771         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
14772         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
14773         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
14774         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
14775         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
14776         function.
14777         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
14778         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14779         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14780         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14781         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14782         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14783         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14784         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
14785         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
14786         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
14787         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
14788         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
14789         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
14790         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
14791         Remove.
14792         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
14793         New macro.
14794         (ia64_libgcc_floating_mode_supported_p): New function.
14795         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
14796         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
14797         (IA64_NO_LIBGCC_TFMODE): Define.
14798         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
14799         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
14800         macro.
14801         (pdp11_scalar_mode_supported_p): New function.
14802         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
14803         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
14805 2014-09-12  Richard Biener  <rguenther@suse.de>
14807         PR middle-end/63237
14808         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
14810 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
14812         * tree.c (integer_each_onep): New function.
14813         * tree.h (integer_each_onep): Declare it.
14814         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
14815         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
14816         (X & 1) == 0 for vector and complex.
14818 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14820         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
14821         for A57.
14822         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
14823         cost to spilling from integer to FP registers.
14825 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14827         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
14828         move handling.
14829         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
14830         are now handled correctly.
14832 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14834         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
14835         handling of CALLER_SAVE_REGS and POINTER_REGS.
14837 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14839         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
14840         the number of hard registers.
14842 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14843             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14844             Anna Tikhonova  <anna.tikhonova@intel.com>
14845             Ilya Tocar  <ilya.tocar@intel.com>
14846             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14847             Ilya Verbin  <ilya.verbin@intel.com>
14848             Kirill Yukhin  <kirill.yukhin@intel.com>
14849             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14851         * config/i386/sse.md
14852         (define_mode_iterator VI48_AVX512VL): New.
14853         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
14854         "avx512f_vternlog<mode>_maskz" and update mode iterator.
14855         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
14856         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
14857         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
14858         "avx512f_vternlog<mode>_mask" and update mode iterator.
14859         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
14860         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
14861         iterator.
14862         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
14863         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
14864         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
14865         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
14866         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
14867         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
14869 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14870             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14871             Anna Tikhonova  <anna.tikhonova@intel.com>
14872             Ilya Tocar  <ilya.tocar@intel.com>
14873             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14874             Ilya Verbin  <ilya.verbin@intel.com>
14875             Kirill Yukhin  <kirill.yukhin@intel.com>
14876             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14878         * config/i386/sse.md (VI128_256): Delete.
14879         (define_mode_iterator VI124_256): New.
14880         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
14881         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
14882         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
14883         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
14884         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
14885         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
14886         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14887         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
14888         iterator.
14889         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
14890         in presence of AVX-512.
14892 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14893             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14894             Anna Tikhonova  <anna.tikhonova@intel.com>
14895             Ilya Tocar  <ilya.tocar@intel.com>
14896             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14897             Ilya Verbin  <ilya.verbin@intel.com>
14898             Kirill Yukhin  <kirill.yukhin@intel.com>
14899             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14901         * config/i386/sse.md
14902         (define_expand "<avx512>_gathersi<mode>"): Rename from
14903         "avx512f_gathersi<mode>".
14904         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
14905         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
14906         (define_expand "<avx512>_gatherdi<mode>"): Rename from
14907         "avx512f_gatherdi<mode>".
14908         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
14909         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
14910         wide versions.
14911         (define_expand "<avx512>_scattersi<mode>"): Rename from
14912         "avx512f_scattersi<mode>".
14913         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
14914         (define_expand "<avx512>_scatterdi<mode>"): Rename from
14915         "avx512f_scatterdi<mode>".
14916         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
14918 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
14920         * ira.h (ira_finish_once): Delete.
14921         * ira-int.h (target_ira_int::~target_ira_int): Declare.
14922         (target_ira_int::free_ira_costs): Likewise.
14923         (target_ira_int::free_register_move_costs): Likewise.
14924         (ira_finish_costs_once): Delete.
14925         * ira.c (free_register_move_costs): Replace with...
14926         (target_ira_int::free_register_move_costs): ...this new function.
14927         (target_ira_int::~target_ira_int): Define.
14928         (ira_init): Call free_register_move_costs as a member function rather
14929         than a global function.
14930         (ira_finish_once): Delete.
14931         * ira-costs.c (free_ira_costs): Replace with...
14932         (target_ira_int::free_ira_costs): ...this new function.
14933         (ira_init_costs): Call free_ira_costs as a member function rather
14934         than a global function.
14935         (ira_finish_costs_once): Delete.
14936         * target-globals.c (target_globals::~target_globals): Call the
14937         target_ira_int destructor.
14938         * toplev.c: Include lra.h.
14939         (finalize): Call lra_finish_once rather than ira_finish_once.
14941 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
14943         * common.opt (flto-odr-type-merging): New flag.
14944         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
14945         (types_same_for_odr): Likewise.
14946         (odr_subtypes_equivalent_p): Likewise.
14947         (add_type_duplicate): Do not walk type variants.
14948         (register_odr_type): New function.
14949         * ipa-utils.h (register_odr_type): Declare.
14950         (odr_type_p): New function.
14951         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
14952         TYPE_DECLs
14953         * doc/invoke.texi (-flto-odr-type-merging): Document.
14954         * tree.c (need_assembler_name_p): Compute ODR names when asked
14955         for it.
14956         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
14958 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14960         PR target/63228
14961         * config/i386/i386.c (ix86_option_override_internal): Also turn
14962         off OPTION_MASK_ABI_X32 for -m16.
14964 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
14966         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
14967         GPR instead of P.
14969 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
14971         PR target/58757
14972         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
14973         Directly forward to __*_DENORM_MIN__.
14975 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
14977         * rtl.h (LABEL_REF_LABEL): New macro.
14979         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
14980         of XEXP (, 0), where we know that we have a LABEL_REF.
14981         * cfgbuild.c (make_edges): Likewise.
14982         (purge_dead_tablejump_edges): Likewise.
14983         * cfgexpand.c (convert_debug_memory_address): Likewise.
14984         * cfgrtl.c (patch_jump_insn): Likewise.
14985         * combine.c (distribute_notes): Likewise.
14986         * cse.c (hash_rtx_cb): Likewise.
14987         (exp_equiv_p): Likewise.
14988         (fold_rtx): Likewise.
14989         (check_for_label_ref): Likewise.
14990         * cselib.c (rtx_equal_for_cselib_1): Likewise.
14991         (cselib_hash_rtx): Likewise.
14992         * emit-rtl.c (mark_label_nuses): Likewise.
14993         * explow.c (convert_memory_address_addr_space): Likewise.
14994         * final.c (output_asm_label): Likewise.
14995         (output_addr_const): Likewise.
14996         * gcse.c (add_label_notes): Likewise.
14997         * genconfig.c (walk_insn_part): Likewise.
14998         * genrecog.c (validate_pattern): Likewise.
14999         * ifcvt.c (cond_exec_get_condition): Likewise.
15000         (noce_emit_store_flag): Likewise.
15001         (noce_get_alt_condition): Likewise.
15002         (noce_get_condition): Likewise.
15003         * jump.c (maybe_propagate_label_ref): Likewise.
15004         (mark_jump_label_1): Likewise.
15005         (redirect_exp_1): Likewise.
15006         (rtx_renumbered_equal_p): Likewise.
15007         * lra-constraints.c (operands_match_p): Likewise.
15008         * reload.c (operands_match_p): Likewise.
15009         (find_reloads): Likewise.
15010         * reload1.c (set_label_offsets): Likewise.
15011         * reorg.c (get_branch_condition): Likewise.
15012         * rtl.c (rtx_equal_p_cb): Likewise.
15013         (rtx_equal_p): Likewise.
15014         * rtlanal.c (reg_mentioned_p): Likewise.
15015         (rtx_referenced_p): Likewise.
15016         (get_condition): Likewise.
15017         * sched-vis.c (print_value): Likewise.
15018         * varasm.c (const_hash_1): Likewise.
15019         (compare_constant): Likewise.
15020         (const_rtx_hash_1): Likewise.
15021         (output_constant_pool_1): Likewise.
15023 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
15025         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
15026         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
15027         instead of minus.
15028         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
15029         cr6_test_for_lt_reverse): Ditto.
15031 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
15033         PR c++/61489
15034         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
15036 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
15038         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
15039         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
15040         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
15041         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
15042         Delete.
15044         (aarch64_fold_builtin): Remove all reinterpret cases.
15046         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
15048         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
15050         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
15051         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
15052         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
15053         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
15054         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
15055         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
15056         aarch64_reinterpretv2df<mode>): Delete.
15058         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
15060         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
15061         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
15062         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
15063         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
15064         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
15065         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
15066         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
15067         vreinterpret_u32_f64): Use cast.
15069         * config/aarch64/iterators.md (VD_RE): Delete.
15071 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
15073         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
15074         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
15075         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
15076         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
15077         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
15078         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
15079         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
15080         Replace inline assembler with __aarch64_vset_lane_any.
15082 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
15084         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
15085         types.
15086         (vmull_high_lane_s32): Likewise.
15087         (vmull_high_lane_u16): Likewise.
15088         (vmull_high_lane_u32): Likewise.
15090 2014-09-11  Jason Merrill  <jason@redhat.com>
15092         PR c++/58678
15093         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
15095 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
15097         PR target/63223
15098         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
15099         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
15100         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
15102 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15103             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15104             Anna Tikhonova  <anna.tikhonova@intel.com>
15105             Ilya Tocar  <ilya.tocar@intel.com>
15106             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15107             Ilya Verbin  <ilya.verbin@intel.com>
15108             Kirill Yukhin  <kirill.yukhin@intel.com>
15109             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15111         * config/i386/sse.md
15112         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
15113         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
15114         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
15115         New.
15116         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
15117         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
15118         iterator.
15119         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15120         New.
15121         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
15122         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
15123         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
15124         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
15125         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
15126         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
15127         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
15128         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
15129         iterator.
15130         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15131         New.
15132         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
15133         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
15134         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
15136 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
15138         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
15139         to access removed nodes.
15141 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
15143         PR tree-optimization/63186
15144         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
15145         (mark_nonssa_use): Likewise.
15146         (verify_non_ssa_vars): Verify all header blocks for label
15147         definitions.
15149 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15150             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15151             Anna Tikhonova  <anna.tikhonova@intel.com>
15152             Ilya Tocar  <ilya.tocar@intel.com>
15153             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15154             Ilya Verbin  <ilya.verbin@intel.com>
15155             Kirill Yukhin  <kirill.yukhin@intel.com>
15156             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15158         * config/i386/sse.md
15159         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
15160         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
15161         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
15162         "<avx2_avx512f>_permvar<mode><mask_name>".
15163         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
15164         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
15165         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
15166         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
15167         Ditto.
15168         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
15169         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15170         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
15171         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15173 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15175         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
15176         V2DF, V4SF, DF, and DI modes.
15177         (vsx_fmav2df2): Likewise.
15178         (vsx_float_fix_<mode>2): Likewise.
15179         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
15181 2014-09-10  Xinliang David Li  <davidxl@google.com>
15183         PR target/63209
15184         * config/arm/arm.md (movcond_addsi): Handle case where source
15185         and target operands are the same.
15187 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
15189         * final.c (this_is_asm_operands): Strengthen this variable from
15190         rtx to const rtx_insn *.
15191         * output.h (this_is_asm_operands): Likewise.
15192         * rtl-error.c (location_for_asm): Strengthen param "insn" from
15193         const_rtx to const rtx_insn *.
15194         (diagnostic_for_asm): Likewise.
15195         * rtl-error.h (error_for_asm): Likewise.
15196         (warning_for_asm): Likewise.
15198 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
15200         * genextract.c (print_header): When writing out insn_extract to
15201         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
15202         * recog.h (insn_extract): Strengthen the param from rtx to
15203         rtx_insn *.
15205 2014-09-10  Mike Stump  <mikestump@comcast.net>
15207         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
15208         8.6.1.
15210 2014-09-10  Martin Jambor  <mjambor@suse.cz>
15212         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
15213         (analyze): Do not set analyze flag if expand_thunk returns false;.
15214         (create_wrapper): Likewise.
15215         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
15217 2014-09-10  Martin Jambor  <mjambor@suse.cz>
15219         PR ipa/61654
15220         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
15221         new decl properly.  Analyze the new thunk if it is expanded.
15223 2014-09-10  Andreas Schwab  <schwab@suse.de>
15225         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
15226         [USED_FOR_TARGET]: Define.
15228 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
15230         * config/mips/mips.c (mips_secondary_reload_class): Handle
15231         regno < 0 case.
15233 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
15235         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
15236         assignment.
15238 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
15240         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
15241         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
15242         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
15243         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
15244         flag_delete_null_pointer_checks for them.
15245         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15246         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
15247         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
15248         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
15249         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
15250         stmt's iterator.
15251         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
15252         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
15253         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
15254         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
15255         * doc/invoke.texi (-fsanitize=nonnull-attribute,
15256         -fsanitize=returns-nonnull-attribute): Document.
15258         * ubsan.h (struct ubsan_mismatch_data): Removed.
15259         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15260         * ubsan.c (ubsan_source_location): For unknown locations,
15261         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
15262         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15263         Allow more than one location and arbitrary extra arguments passed
15264         in ... instead of through MISMATCH pointer.
15265         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
15266         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15267         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
15268         callers.
15270 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15271             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15272             Anna Tikhonova  <anna.tikhonova@intel.com>
15273             Ilya Tocar  <ilya.tocar@intel.com>
15274             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15275             Ilya Verbin  <ilya.verbin@intel.com>
15276             Kirill Yukhin  <kirill.yukhin@intel.com>
15277             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15279         * config/i386/sse.md
15280         (define_mode_iterator VI48F): New.
15281         (define_insn "<avx512>_compress<mode>_mask"): Rename from
15282         "avx512f_compress<mode>_mask" and update mode iterator.
15283         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
15284         "avx512f_compressstore<mode>_mask" and update mode iterator.
15285         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
15286         "avx512f_expand<mode>_maskz" and update mode iterator.
15287         (define_insn "<avx512>_expand<mode>_mask"): Rename from
15288         "avx512f_expand<mode>_mask" and update mode iterator.
15290 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15291             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15292             Anna Tikhonova  <anna.tikhonova@intel.com>
15293             Ilya Tocar  <ilya.tocar@intel.com>
15294             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15295             Ilya Verbin  <ilya.verbin@intel.com>
15296             Kirill Yukhin  <kirill.yukhin@intel.com>
15297             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15299         * config/i386/i386.c
15300         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
15301         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
15302         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
15303         avx512dq_rangepv4sf_mask.
15304         * config/i386/sse.md
15305         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
15306         UNSPEC_RANGE.
15307         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
15308         (define_insn "reduces<mode>"): Ditto.
15309         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
15310         Ditto.
15311         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
15312         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
15313         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
15315 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15317             Anna Tikhonova  <anna.tikhonova@intel.com>
15318             Ilya Tocar  <ilya.tocar@intel.com>
15319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15320             Ilya Verbin  <ilya.verbin@intel.com>
15321             Kirill Yukhin  <kirill.yukhin@intel.com>
15322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15324         * config/i386/i386.c
15325         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
15326         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
15327         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
15328         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
15329         avx512vl_getmantv2df_mask.
15330         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
15331         avx512f_vgetmantv4sf_round.
15332         * config/i386/sse.md
15333         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
15334         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
15335         mode iterator.
15336         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
15337         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
15338         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
15339         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
15340         iterator..
15341         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
15342         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
15343         update mode iterator.
15344         (define_expand
15345         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
15346         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
15347         mode iterator.
15348         (define_insn
15349         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
15350         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
15351         update mode iterator.
15352         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
15353         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
15354         iterator..
15355         (define_insn
15356         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
15357         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
15358         mode iterator..
15359         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
15360         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
15361         update mode iterator.
15362         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
15363         "avx512f_getmant<mode><round_saeonly_name>".
15365 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
15367         PR ipa/63166
15368         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
15370 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15371             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15372             Anna Tikhonova  <anna.tikhonova@intel.com>
15373             Ilya Tocar  <ilya.tocar@intel.com>
15374             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15375             Ilya Verbin  <ilya.verbin@intel.com>
15376             Kirill Yukhin  <kirill.yukhin@intel.com>
15377             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15379         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
15380         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
15381         (define_mode_iterator FMAMODE_AVX512): New.
15382         (define_mode_iterator FMAMODE): Remove conditions.
15383         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
15384         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
15385         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
15386         mode iterator.
15387         (define_mode_iterator FMAMODE_NOVF512): Remove.
15388         (define_insn "*fma_fmadd_<mode>"): Rename from
15389         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
15390         FMAMODE mode iterator.
15391         (define_mode_iterator VF_SF_AVX512VL): New.
15392         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
15393         Use VF_SF_AVX512VL mode iterator.
15394         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
15395         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15396         iterator.
15397         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
15398         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15399         iterator.
15400         (define_insn "*fma_fmsub_<mode>"): Rename from
15401         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
15402         FMAMODE mode iterator.
15403         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
15404         Use VF_SF_AVX512VL mode iterator.
15405         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
15406         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15407         iterator.
15408         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
15409         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15410         iterator.
15411         (define_insn "*fma_fnmadd_<mode>"): Rename from
15412         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
15413         use FMAMODE mode iterator.
15414         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
15415         Use VF_SF_AVX512VL mode iterator.
15416         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
15417         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15418         iterator.
15419         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
15420         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15421         iterator.
15422         (define_insn "*fma_fnmsub_<mode>"): Rename from
15423         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
15424         FMAMODE mode iterator.
15425         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
15426         Use VF_SF_AVX512VL mode iterator.
15427         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
15428         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15429         iterator.
15430         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
15431         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15432         iterator.
15433         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
15434         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
15435         use VF_AVX512VL mode iterator.
15436         (define_insn "*fma_fmaddsub_<mode>"): Rename from
15437         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
15438         remove subst usage.
15439         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
15440         Use VF_SF_AVX512VL mode iterator.
15441         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
15442         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15443         iterator.
15444         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
15445         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15446         iterator.
15447         (define_insn "*fma_fmsubadd_<mode>"): Rename from
15448         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
15449         remove usage of subst.
15450         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
15451         Use VF_SF_AVX512VL mode iterator.
15452         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
15453         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15454         iterator.
15455         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
15456         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15457         iterator.
15459 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
15461         Revert r213751:
15462         * calls.c (precompute_arguments): Check
15463          promoted_for_signed_and_unsigned_p and set the promoted mode.
15464         (promoted_for_signed_and_unsigned_p): New function.
15465         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15466         and set the promoted mode.
15467         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15468         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15469         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15471 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15473         * opth-gen.awk: Generate mapping from cpp message reasons to the
15474         options that enable them.
15475         * doc/options.texi (CppReason): Document.
15477 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15479         * doc/invoke.texi (Wnormalized=): Update.
15481 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
15483         PR target/63195
15484         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
15485         operands.  Split off the constant operand alternative to ...
15486         (*bool<mode>3_imm): New.
15488 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
15490         * rtl.h (single_set_2): Strengthen first param from const_rtx to
15491         const rtx_insn *, and move prototype to above...
15492         (single_set): ...this.  Convert this from a macro to an inline
15493         function, enforcing the requirement that the param is a const
15494         rtx_insn *.
15495         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
15497         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
15498         Strengthen both params from rtx to rtx_insn *.
15499         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15500         Likewise; introduce locals "producer_set", "consumer_set", using
15501         them in place of "producer" and "consumer" when dealing with SET
15502         rather than insn.
15503         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
15504         when invoking single_set in region guarded by INSN_P.
15505         (avr_out_bitop): Likewise.
15506         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
15507         region guarded by GET_CODE check, using methods to strengthen
15508         local "this_insn" from rtx to rtx_insn *, and for clarity.
15509         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
15510         Strengthen local "insn" from rtx to rtx_insn *.
15511         (define_insn_and_split "xload<mode>_A"): Likewise.
15512         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
15513         "insn".
15514         (find_load): Likewise for return type.
15515         (workaround_speculation): Likewise for both locals named
15516         "load_insn".
15517         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
15518         local "cc0_user".
15519         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
15520         for local "prev".
15521         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
15522         param 2.
15523         * config/h8300/h8300.c (notice_update_cc): Likewise.
15524         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
15525         "insn" and "dep_insn".
15526         (exact_store_load_dependency): Likewise for both params.
15527         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
15528         since this now clashes with inline function.  Instead, delay
15529         calling single_set until the point where its needed, and then
15530         assign the result to "compare_set" and rework the conditional that
15531         follows.
15532         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
15533         local "last" from rtx to rtx_insn *.
15534         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
15535         second param.
15536         (mips_store_data_bypass_p): Likewise for both params.
15537         * config/mips/mips.c (mips_load_store_insns): Likewise for second
15538         param.
15539         (mips_store_data_bypass_p): Likewise for both params.
15540         (mips_orphaned_high_part_p): Likewise for param "insn".
15541         * config/mn10300/mn10300.c (extract_bundle): Likewise.
15542         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
15543         Introduce local rtx "insn2_pat".
15544         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
15545         "ninsn".
15546         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
15547         Introduce local rtx "set", using it in place of "insn" for the
15548         result of single_set.  This appears to fix a bug, since the call
15549         to find_regno_note on a SET does nothing.
15550         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
15551         params from rtx to rtx_insn *.
15552         (set_to_load_agen): Likewise.
15553         * config/s390/s390.c (s390_label_align): Likewise for local
15554         "prev_insn".  Introduce new rtx locals "set" and "src", using
15555         them in place of "prev_insn" for the results of single_set
15556         and SET_SRC respectively.
15557         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
15558         Introduce new rtx local "set" using in place of "jump" for the
15559         result of single_set.  Use SET_SRC (set) rather than plain
15560         XEXP (set, 1).
15561         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
15562         rtx to rtx_insn *.
15563         (noncall_uses_reg): Likewise.
15564         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
15565         guarded by GET_CODE check, using its methods for clarity, and to
15566         enable strengthening local "this_insn" from rtx to rtx_insn *.
15567         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
15568         "insn" from rtx to rtx_insn *.
15569         (define_expand "umulhisi3"): Likewise.
15570         (define_expand "smulsi3_highpart"): Likewise.
15571         (define_expand "umulsi3_highpart"): Likewise.
15572         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
15573         local "after".  Replace GET_CODE check with a dyn_cast,
15574         introducing new local rtx_sequence * "seq", using insn method for
15575         typesafety.
15577         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
15578         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
15579         place of "insn" once we're dealing with patterns rather than the
15580         input insn.
15581         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
15582         (scan_trace): Likewise for local "elt", updating lookups within
15583         sequence to use insn method rather than element method.
15584         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
15585         to rtx_insn *.
15586         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
15587         * ifcvt.c (noce_try_abs): Likewise for local "insn".
15588         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
15589         invoking single_set.
15590         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
15591         "insn" from rtx to rtx_insn *.
15592         (skip_usage_debug_insns): Likewise for return type, adding a
15593         checked cast.
15594         (check_secondary_memory_needed_p): Likewise for local "insn".
15595         (inherit_reload_reg): Likewise.
15596         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
15597         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
15598         checked casts.
15599         (store_data_bypass_p): Likewise for both params.
15600         (if_test_bypass_p): Likewise.
15601         * recog.h (store_data_bypass_p): Likewise for both params.
15602         (if_test_bypass_p): Likewise.
15603         * reload.c (find_equiv_reg): Likewise for local "where".
15604         * reorg.c (delete_jump): Likewise for param "insn".
15605         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
15606         to const rtx_insn *.
15607         * store-motion.c (replace_store_insn): Likewise for param "del".
15608         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
15609         and use its methods for clarity, and to strengthen local "del"
15610         from rtx to rtx_insn *.
15611         (build_store_vectors): Use insn method of "st" when calling
15612         replace_store_insn for typesafety and clarity.
15614 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15616         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
15617         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
15618         on how to make it legal in future.
15620 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
15622         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
15623         to rtx_insn *.
15624         (restinsn): Likewise.
15625         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
15626         Likewise for param.
15627         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
15628         Likewise.
15629         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
15630         first param.
15631         (arc_hazard): Likewise for both params.
15632         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
15633         checked casts to rtx_sequence * and uses of the insn method for
15634         type-safety.
15635         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
15636         (arc_adjust_insn_length): Likewise for param "insn".
15637         (struct insn_length_parameters_s): Likewise for first param of
15638         "get_variants" callback field.
15639         (arc_get_insn_variants): Likewise for first param and local
15640         "inner".  Replace a check of GET_CODE with a dyn_cast to
15641         rtx_sequence *, using methods for type-safety and clarity.
15642         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
15643         rtx_sequence * and uses of the insn method for type-safety when
15644         invoking arc_adjust_insn_length.
15645         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
15646         for param.
15647         (arm_address_offset_is_imm): Likewise.
15648         (struct tune_params): Likewise for params 1 and 3 of the
15649         "sched_adjust_cost" callback field.
15650         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
15651         params 1 and 3 ("insn" and "dep").
15652         (xscale_sched_adjust_cost): Likewise.
15653         (fa726te_sched_adjust_cost): Likewise.
15654         (cortexa7_older_only): Likewise for param "insn".
15655         (cortexa7_younger): Likewise.
15656         (arm_attr_length_move_neon): Likewise.
15657         (arm_address_offset_is_imm): Likewise.
15658         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
15659         * config/avr/avr.c (avr_notice_update_cc): Likewise.
15660         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
15661         (workaround_speculation): Likewise for local "last_condjump".
15662         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
15663         (shadow_or_blockage_p): Likewise.
15664         (get_unit_reqs): Likewise.
15665         (get_unit_operand_masks): Likewise.
15666         (c6x_registers_update): Likewise.
15667         (returning_call_p): Likewise.
15668         (can_use_callp): Likewise.
15669         (convert_to_callp): Likewise.
15670         (find_last_same_clock): Likwise for local "t".
15671         (reorg_split_calls): Likewise for local "shadow".
15672         (hwloop_pattern_reg): Likewise for param "insn".
15673         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
15674         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
15675         (frv_extract_membar): Likewise.
15676         (frv_optimize_membar_local): Strengthen param "last_membar" from
15677         rtx * to rtx_insn **.
15678         (frv_optimize_membar_global): Strengthen param "membar" from rtx
15679         to rtx_insn *.
15680         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
15681         to rtx_insn **.
15682         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
15683         both params from rtx to rtx_insn *.
15684         (ia64_ld_address_bypass_p): Likewise.
15685         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
15686         "insn".
15687         (ia64_safe_type): Likewise.
15688         (group_barrier_needed): Likewise.
15689         (safe_group_barrier_needed): Likewise.
15690         (ia64_single_set): Likewise.
15691         (is_load_p): Likewise.
15692         (record_memory_reference): Likewise.
15693         (get_mode_no_for_insn): Likewise.
15694         (important_for_bundling_p): Likewise.
15695         (unknown_for_bundling_p): Likewise.
15696         (ia64_st_address_bypass_p): Likewise for both params.
15697         (ia64_ld_address_bypass_p): Likewise.
15698         (expand_vselect): Introduce new local rtx_insn * "insn", using it
15699         in place of rtx "x" after the emit_insn call.
15700         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
15701         Strengthen param from rtx to rtx_insn *.
15702         (ix86_agi_dependent): Likewise for both params.
15703         (ix86_attr_length_immediate_default): Likewise for param 1.
15704         (ix86_attr_length_address_default): Likewise for param.
15705         (ix86_attr_length_vex_default): Likewise for param 1.
15706         * config/i386/i386.c (ix86_attr_length_immediate_default):
15707         Likewise for param "insn".
15708         (ix86_attr_length_address_default): Likewise.
15709         (ix86_attr_length_vex_default): Likewise.
15710         (ix86_agi_dependent): Likewise for both params.
15711         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
15712         (vselect_insn): Likewise for this variable.
15713         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
15714         for param 1.
15715         (m68k_sched_attr_opy_type): Likewise.
15716         * config/m68k/m68k.c (sched_get_operand): Likewise.
15717         (sched_attr_op_type): Likewise.
15718         (m68k_sched_attr_opx_type): Likewise.
15719         (m68k_sched_attr_opy_type): Likewise.
15720         (sched_get_reg_operand): Likewise.
15721         (sched_get_mem_operand): Likewise.
15722         (m68k_sched_address_bypass_p): Likewise for both params.
15723         (sched_get_indexed_address_scale): Likewise.
15724         (m68k_sched_indexed_address_bypass_p): Likewise.
15725         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
15726         (m68k_sched_indexed_address_bypass_p): Likewise.
15727         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
15728         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
15729         removing another.
15730         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
15731         params from rtx to rtx_insn *.
15732         (mips_fmadd_bypass): Likewise.
15733         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
15734         (mips_linked_madd_p): Likewise.
15735         (mips_macc_chains_last_hilo): Likewise for this variable.
15736         (mips_macc_chains_record): Likewise for param.
15737         (vr4130_last_insn): Likewise for this variable.
15738         (vr4130_swap_insns_p): Likewise for both params.
15739         (mips_ls2_variable_issue): Likewise for param.
15740         (mips_need_noat_wrapper_p): Likewise for param "insn".
15741         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
15742         in place of "x" after the emit_insn.
15743         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
15744         params from rtx to rtx_insn *.
15745         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
15746         (pa_combine_instructions): Introduce local "par" for result of
15747         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
15748         to make_insn_raw.
15749         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
15750         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
15751         (rl78_alloc_physical_registers_op1): Likewise.
15752         (rl78_alloc_physical_registers_op2): Likewise.
15753         (rl78_alloc_physical_registers_ro1): Likewise.
15754         (rl78_alloc_physical_registers_cmp): Likewise.
15755         (rl78_alloc_physical_registers_umul): Likewise.
15756         (rl78_alloc_address_registers_macax): Likewise.
15757         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
15758         * config/s390/predicates.md (execute_operation): Likewise for
15759         local "insn".
15760         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
15761         params.
15762         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
15763         (addr_generation_dependency_p): Likewise for param "insn".
15764         (s390_agen_dep_p): Likewise for both params.
15765         (s390_fpload_toreg): Likewise for param "insn".
15766         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
15767         * config/sh/sh.c (sh_loop_align): Likewise for param and local
15768         "next".
15769         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
15770         * config/sh/sh_treg_combine.cc
15771         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
15772         and local "i".
15773         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
15774         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
15775         "and_insn", "load", "shift".
15776         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
15777         "insn".
15778         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
15779         for XEXP (note, 0) of the REG_CC_SETTER note.
15780         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
15781         rtx_insn *, eliminating a checked cast made redundant by this.
15782         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
15783         to rtx_insn *.
15784         * genattr.c (main): When writing out the prototype to
15785         const_num_delay_slots, strengthen the param from rtx to
15786         rtx_insn *.
15787         * genattrtab.c (write_const_num_delay_slots): Likewise when
15788         writing out the implementation of const_num_delay_slots.
15789         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
15790         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
15791         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
15792         favor of new rtx locals "src" and "set" and new local rtx_insn *
15793         "insn" and "seq".
15794         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
15795         to rtx_insn *.
15796         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
15797         locals "cond", "if_then_else", "set" and new rtx_insn * locals
15798         "insn" and "seq".
15799         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
15800         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
15801         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
15802         the top-level scope, replacing with new more tightly-scoped rtx
15803         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
15804         "new_insn", "copy_of_insn_b", and make local rtx "set" more
15805         tightly-scoped.
15806         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
15807         rtx_insn *.
15808         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
15809         "move_insn".
15810         (ira_setup_alts): Likewise for param "insn".
15811         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
15812         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
15813         and an rtx_insn *.
15814         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
15815         new more-tightly scoped rtx locals "add3_insn", "insn",
15816         "add2_insn" and rtx_insn * "move_insn".
15817         * postreload-gcse.c (eliminate_partially_redundant_load): Add
15818         checked cast on result of gen_move_insn when invoking
15819         extract_insn.
15820         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
15821         rtx_insn *.
15822         (verify_changes): Add a checked cast on "object" when invoking
15823         insn_invalid_p.
15824         (extract_insn_cached): Strengthen param "insn" from rtx to
15825         rtx_insn *.
15826         (extract_constrain_insn_cached): Likewise.
15827         (extract_insn): Likewise.
15828         * recog.h (insn_invalid_p): Likewise for param 1.
15829         (recog_memoized): Likewise for param.
15830         (extract_insn): Likewise.
15831         (extract_constrain_insn_cached): Likewise.
15832         (extract_insn_cached): Likewise.
15833         * reload.c (can_reload_into): Likewise for local "test_insn".
15834         * reload.h (cleanup_subreg_operands): Likewise for param.
15835         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
15836         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
15837         result of emit_insn.  Remove a checked cast made redundant by this
15838         change.
15839         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
15840         rtx to rtx_insn *.
15841         * sel-sched.c (get_reg_class): Likewise.
15843 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15844             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15846         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
15847         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
15848         Define.
15849         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
15851 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
15853         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
15854         const rtx_insn *, and from rtx to rtx_insn * for the other
15855         overloaded variant.
15856         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
15857         INSN_LOCATION, since we know INSN_P holds.
15858         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
15859         (insn_file): Likewise.
15860         (insn_scope): Likewise.
15861         (insn_location): Likewise.
15863         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
15864         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
15865         for the result of gen_load_const_gp.
15866         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
15867         param from rtx to rtx_insn *.
15868         * config/rs6000/rs6000.c (output_call): Likewise.
15869         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
15870         introducing a checked cast to rtx_sequence * and use of the insn
15871         method.
15872         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
15873         from rtx to rtx_insn *.
15874         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
15875         (insn_line): Likewise.
15876         (insn_file): Likewise.
15877         (insn_location): Likewise.
15878         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
15879         from rtx to rtx_insn *.
15880         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
15881         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
15882         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
15883         via a checked cast.
15884         * reorg.c (relax_delay_slots): Strengthen locals named "after"
15885         from rtx to rtx_insn *; use methods of "pat" for type-safety.
15887 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
15889         * combine.c (try_combine): Eliminate checked cast on result of
15890         gen_rtx_INSN.
15891         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
15892         autogenerated one by strengthening the return type and params 2 and 3
15893         from rtx to rtx_insn *, and by naming the params.
15894         * gengenrtl.c (special_rtx): Add INSN to those that are
15895         special-cased.
15896         * rtl.h (gen_rtx_INSN): New prototype.
15898 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
15900         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
15901         than NULL_RTX.
15902         (no_equiv): Likewise.
15903         (update_equiv_regs): Likewise.
15904         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
15905         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
15906         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
15907         clarity.
15908         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
15909         from rtx to rtx_insn_list *.
15910         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
15911         rtx_insn_list * and use methods for clarity and typesafety.
15912         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
15913         "list".
15914         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
15915         redundant check on INSN_P (insns): this cannot hold, as "insns" is
15916         an INSN_LIST, not an insn.
15917         (reverse_equiv_p): Strengthen local "insns" from rtx to
15918         rtx_insn_list * and use methods for clarity and typesafety.
15919         (contains_reloaded_insn_p): Likewise for local "list".
15921 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
15923         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
15924         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
15925         (arm_builtin_vectorized_function): Likewise.
15926         * config/arm/arm_neon_builtins.def: New macro for copysignf.
15927         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
15929 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15931         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
15932         * builtins.h (default_target_builtins): Likewise.
15933         * gcse.h (default_target_gcse): Likewise.
15934         * target-globals.h (target_globals): Add a destructor.  Convert
15935         void-pointer fields back to their real type and change from
15936         GTY((atomic)) to GTY((skip)).
15937         (restore_target_globals): Remove casts accordingly.
15938         * target-globals.c (save_target_globals): Use XCNEW rather than
15939         ggc_internal_cleared_alloc to allocate non-GC structures.
15940         Use ggc_cleared_alloc to allocate the target_globals structure
15941         itself.
15942         (target_globals::~target_globals): Define.
15944 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15946         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
15947         mnemonic instead of fldmfdd.
15948         * config/arm/arm.c (vfp_output_fstmd): Rename to...
15949         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
15950         Output vpush when address register is SP.
15951         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
15952         (vfp_output_vstmd): ... This.
15953         * config/arm/vfp.md (push_multi_vfp): Update call to
15954         vfp_output_vstmd.
15956 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15958         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
15960 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15962         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
15963         (*sqrtdf2_vfp): Likewise.
15964         (*cmpsf_vfp): Likewise.
15965         (*cmpsf_trap_vfp): Likewise.
15966         (*cmpdf_vfp): Likewise.
15967         (*cmpdf_trap_vfp): Likewise.
15969 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15971         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
15972         (*truncdfsf2_vfp): Likewise.
15973         (*truncsisf2_vfp): Likewise.
15974         (*truncsidf2_vfp): Likewise.
15975         (fixuns_truncsfsi2): Likewise.
15976         (fixuns_truncdfsi2): Likewise.
15977         (*floatsisf2_vfp): Likewise.
15978         (*floatsidf2_vfp): Likewise.
15979         (floatunssisf2): Likewise.
15980         (floatunssidf2): Likewise.
15982 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15984         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
15985         (*muldf3_vfp): Likewise.
15986         (*mulsf3negsf_vfp): Likewise.
15987         (*muldf3negdf_vfp): Likewise.
15988         (*mulsf3addsf_vfp): Likewise.
15989         (*muldf3adddf_vfp): Likewise.
15990         (*mulsf3subsf_vfp): Likewise.
15991         (*muldf3subdf_vfp): Likewise.
15992         (*mulsf3negsfaddsf_vfp): Likewise.
15993         (*fmuldf3negdfadddf_vfp): Likewise.
15994         (*mulsf3negsfsubsf_vfp): Likewise.
15995         (*muldf3negdfsubdf_vfp): Likewise.
15997 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15999         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
16000         (*absdf2_vfp): Likewise.
16001         (*negsf2_vfp): Likewise.
16002         (*negdf2_vfp): Likewise.
16003         (*addsf3_vfp): Likewise.
16004         (*adddf3_vfp): Likewise.
16005         (*subsf3_vfp): Likewise.
16006         (*subdf3_vfp): Likewise.
16007         (*divsf3_vfp): Likewise.
16008         (*divdf3_vfp): Likewise.
16010 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16012         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
16013         multiple.
16014         (arm_print_operand): Don't convert real values to decimal
16015         representation in default case.
16016         (fp_immediate_constant): Delete.
16017         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
16018         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
16019         syntax.
16020         (*thumb2_movsi_vfp): Likewise.
16021         (*movdi_vfp): Likewise.
16022         (*movdi_vfp_cortexa8): Likewise.
16023         (*movhf_vfp_neon): Likewise.
16024         (*movhf_vfp): Likewise.
16025         (*movsf_vfp): Likewise.
16026         (*thumb2_movsf_vfp): Likewise.
16027         (*movdf_vfp): Likewise.
16028         (*thumb2_movdf_vfp): Likewise.
16029         (*movsfcc_vfp): Likewise.
16030         (*thumb2_movsfcc_vfp): Likewise.
16031         (*movdfcc_vfp): Likewise.
16032         (*thumb2_movdfcc_vfp): Likewise.
16034 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
16036         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
16037         (-mtune): Likewise.
16038         (-mcpu): Likewise.
16040 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16042         PR target/61749
16043         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
16044         Use qualifier_immediate for last operand.  Rename to...
16045         (aarch64_types_ternop_lane_qualifiers): ... This.
16046         (TYPES_QUADOP): Rename to...
16047         (TYPES_TERNOP_LANE): ... This.
16048         (aarch64_simd_expand_args): Return const0_rtx when encountering user
16049         error.  Change return of 0 to return of NULL_RTX.
16050         (aarch64_crc32_expand_builtin): Likewise.
16051         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
16052         ICE when expanding unknown builtin.
16053         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
16054         TERNOP_LANE qualifiers.
16055         (sqdmlsl_lane): Likewise.
16056         (sqdmlal_laneq): Likewise.
16057         (sqdmlsl_laneq): Likewise.
16058         (sqdmlal2_lane): Likewise.
16059         (sqdmlsl2_lane): Likewise.
16060         (sqdmlal2_laneq): Likewise.
16061         (sqdmlsl2_laneq): Likewise.
16063 2014-09-09  Nick Clifton  <nickc@redhat.com>
16065         * doc/invoke.texi (Optimization Options): Add missing @gol to the
16066         end of a line.
16067         (S/390 and zSeries Options): Remove superfluous word from the
16068         description of the -mhotpatch option.
16070 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16072         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
16073         * ira.c: #include "shrink-wrap.h"
16074         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
16075         * ifcvt.c: #include "shrink-wrap.h"
16076         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
16078 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
16080         * common/config/picochip/picochip-common.c: Remove.
16081         * config.gcc: Remove support for picochip.
16082         * config/picochip/constraints.md: Remove.
16083         * config/picochip/dfa_space.md: Remove.
16084         * config/picochip/dfa_speed.md: Remove.
16085         * config/picochip/picochip-protos.h: Remove.
16086         * config/picochip/picochip.c: Remove.
16087         * config/picochip/picochip.h: Remove.
16088         * config/picochip/picochip.md: Remove.
16089         * config/picochip/picochip.opt: Remove.
16090         * config/picochip/predicates.md: Remove.
16091         * config/picochip/t-picochip: Remove.
16092         * doc/md.texi: Don't document picochi.
16094 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
16096         * basic-block.h (control_flow_insn_p): Strengthen param from
16097         const_rtx to const rtx_insn *.
16098         * cfgbuild.c (control_flow_insn_p): Likewise.
16100 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
16102         * gcse.c (modify_mem_list): Strengthen this variable from
16103         vec<rtx> * to vec<rtx_insn *> *.
16104         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
16105         vec<rtx_insn *>.
16106         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
16107         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
16108         (record_last_mem_set_info): Strengthen param "insn" from rtx to
16109         rtx_insn *.
16110         (record_last_set_info): Likewise for local "last_set_insn".
16112 2014-09-08  DJ Delorie  <dj@redhat.com>
16114         * doc/invoke.texi (MSP430 Options): Add -minrt.
16116 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16118         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
16119         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
16120         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
16121         handling SH_SPLAT.
16122         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
16123         of extracted lane.
16124         (adjust_splat): New function.
16125         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
16126         (dump_swap_insn_table): Add case for SH_SPLAT.
16128 2014-09-08  Richard Biener  <rguenther@suse.de>
16130         PR ipa/63196
16131         * tree-inline.c (copy_loops): The source loop header should
16132         always be non-NULL.
16133         (tree_function_versioning): If loops need fixup after removing
16134         unreachable blocks fix them.
16135         * omp-low.c (simd_clone_adjust): Do not add incr block to
16136         loop under construction.
16138 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16140         * config/aarch64/aarch64-builtins.c
16141         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
16143 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
16145         * config/i386/cygming.h (TF_SIZE): Remove.
16146         * config/i386/darwin.h (TF_SIZE): Remove.
16147         * config/i386/dragonfly.h (TF_SIZE): Remove.
16148         * config/i386/freebsd.h (TF_SIZE): Remove.
16149         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
16150         * config/i386/openbsdelf.h (TF_SIZE): Remove.
16151         * config/i386/sol2.h (TF_SIZE): Remove.
16152         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
16153         * config/ia64/linux.h (TF_SIZE): Remove.
16154         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
16155         * doc/tm.texi: Regenerate.
16156         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
16158 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
16160         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16161         Remove.
16162         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
16163         Remove.
16164         * doc/tm.texi: Regenerate.
16165         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16166         Poison.
16167         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
16168         * config/cris/cris.h (__make_dp): Remove.
16170 2014-09-08  Richard Biener  <rguenther@suse.de>
16172         PR bootstrap/63204
16173         * cfgloop.c (mark_loop_for_removal): Track former header
16174         unconditionally.
16175         * cfgloop.h (struct loop): Add former_header member unconditionally.
16176         * loop-init.c (fix_loop_structure): Enable bogus loop removal
16177         diagnostic unconditionally.
16179 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16181         PR target/63190
16182         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
16183         constraint for operand0 and remove write only modifier from operand3.
16185 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
16187         PR rtl-optimization/62208
16188         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
16189         rather than const0_rtx in eq/ne-xor simplifications.
16191 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
16193         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
16194         (arc_output_mi_thunk): Likewise.
16196         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
16197         arguments to silence bogus warning.
16199 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
16201         PR middle-end/63171
16202         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
16204 2014-09-06  Tom de Vries  <tom@codesourcery.com>
16206         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
16207         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
16208         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16210 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
16212         PR target/63188
16213         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
16214         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
16216 2014-09-05  Easwaran Raman  <eraman@google.com>
16218         PR rtl-optimization/62146
16219         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
16220         hoisted instruction unconditional.
16222 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
16224         PR target/63187
16225         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
16226         Do not allow any_mask_operand for operands[2].
16227         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
16229 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16231         * config/arc/arc.c (arc_print_operand): Use insn method of
16232         final_sequence for type-safety.
16233         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
16234         "insn" from rtx to rtx_insn *.
16235         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16236         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
16237         Likewise for locals "branch", "label".
16238         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
16239         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
16240         (same_cmp_following_p): Likewise for locals "i2", "i3".
16241         * config/sh/sh_optimize_sett_clrt.cc
16242         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
16243         param "cbranch_insn".
16244         * function.c (convert_jumps_to_returns): Likewis for local "jump".
16245         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
16246         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
16247         const rtx_insn *.
16248         (condjump_p): Likewise.
16249         (condjump_in_parallel_p): Likewise.
16250         (pc_set): Likewise.
16251         (any_uncondjump_p): Likewise.
16252         (any_condjump_p): Likewise.
16253         (condjump_label): Likewise.
16254         (returnjump_p): Strengthen param "insn" from rtx to
16255         const rtx_insn *.
16256         (onlyjump_p): Strengthen param "insn" from const_rtx to
16257         const rtx_insn *.
16258         (jump_to_label_p): Likewise.
16259         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
16260         (invert_jump): Likewise.
16261         * reorg.c (simplejump_or_return_p): Add checked cast when calling
16262         simplejump_p.
16263         (get_jump_flags): Strengthen param "insn" from rtx to
16264         const rtx_insn *.
16265         (get_branch_condition): Likewise.
16266         (condition_dominates_p): Likewise.
16267         (make_return_insns): Move declaration of local "pat" earlier, to
16268         after we've handled NONJUMP_INSN_P and non-sequences, using its
16269         methods to simplify the code and for type-safety.
16270         * rtl.h (find_constant_src): Strengthen param from const_rtx to
16271         const rtx_insn *.
16272         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
16273         (condjump_p): Strengthen param from const_rtx to
16274         const rtx_insn *.
16275         (any_condjump_p): Likewise.
16276         (any_uncondjump_p): Likewise.
16277         (pc_set): Likewise.
16278         (condjump_label): Likewise.
16279         (simplejump_p): Likewise.
16280         (returnjump_p): Likewise.
16281         (onlyjump_p): Likewise.
16282         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
16283         (invert_jump): Likewise.
16284         (condjump_in_parallel_p): Strengthen param from const_rtx to
16285         const rtx_insn *.
16286         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
16287         to const rtx_insn *.
16288         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
16289         to const rtx_insn *.
16290         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
16292 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16294         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
16295         above the conditional, and convert the check on GET_CODE to a
16296         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
16297         the conditional.  Simplify the conditional by using methods of
16298         "trial_seq".
16300 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16302         * haifa-sched.c (check_clobbered_conditions): Strengthen local
16303         "link" from rtx to rtx_insn_list *, and use its methods for
16304         clarity and type-safety.
16305         (toggle_cancelled_flags): Likewise.
16306         (restore_last_backtrack_point): Likewise.
16307         (queue_to_ready): Use insn method of "link" in one place.
16308         (schedule_block): Strengthen local "link" from rtx to
16309         rtx_insn_list *, and use its methods for clarity and type-safety.
16311 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16313         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
16314         param "insn" from const_rtx to const rtx_insn *.
16315         (sched_get_reverse_condition_uncached): Likewise.
16316         (sched_get_condition_with_rev): Likewise.
16317         (sched_has_condition_p): Likewise.
16318         (sched_insns_conditions_mutex_p): Likewise for both params.
16319         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
16320         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
16321         (setup_insn_reg_uses): Move local "list" to be more tightly
16322         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
16323         its methods for clarity and type-safety.
16324         (sched_analyze_1): Strengthen local "pending" from rtx to
16325         rtx_insn_list *, and local "pending_mem" from rtx to
16326         rtx_expr_list *.  Use methods of each for clarity and type-safety.
16327         (sched_analyze_2): Likewise.
16328         (sched_analyze_insn): Likewise.
16330         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
16331         param from const_rtx to const rtx_insn *.
16332         (sched_insns_conditions_mutex_p): Likewise for both params.
16333         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
16334         param.
16336         * system.h (CONST_CAST_RTX_INSN): New macro.
16338 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16340         * recog.c (peep2_attempt): Strengthen return type from rtx to
16341         rtx_insn *.
16342         (peep2_update_life): Likewise for params "last", "prev", removing
16343         a checked cast made redundant by this.
16344         (peephole2_optimize): Likewise for local "last".
16346 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16348         * basic-block.h (set_block_for_insn): Eliminate this macro in
16349         favor of...
16350         * rtl.h (set_block_for_insn): New inline function, imposing the
16351         requirement that the "insn" param is an rtx_insn *.
16353 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16355         * caller-save.c (setup_save_areas): Strengthen local "insn" from
16356         rtx to rtx_insn *.
16357         * final.c (get_call_reg_set_usage): Likewise for first param,
16358         eliminating a checked cast.
16359         * regs.h (get_call_reg_set_usage): Likewise for first param.
16360         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
16361         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
16362         cast, replacing references to "x" with "call_insn" where
16363         appropriate.
16364         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
16365         rtx_insn *, adding a checked cast.
16367 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16369         * output.h (final_scan_insn): Strengthen first param from rtx to
16370         rtx_insn *.
16372         * final.c (final_scan_insn): Likewise, renaming it back from
16373         "uncast_insn" to "insn", eliminating the checked cast.
16375         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
16376         "vec" with an rtx_sequence * "seq", taking a copy of
16377         "final_sequence", and using methods of "seq" for clarity, and for
16378         type-safety in the calls to final_scan_insn.
16379         * config/mips/mips.c (mips_output_conditional_branch): Use methods
16380         of "final_sequence" for clarity, and for type-safety in the call to
16381         final_scan_insn.
16382         * config/sh/sh.c (print_slot): Strengthen param from rtx to
16383         rtx_sequence * and rename from "insn" to "seq".
16385 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16387         * jump.c (delete_related_insns): Introduce a new local "table" by
16388         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
16389         get_labels method of "table" to simplify access to the labels in
16390         the jump table.
16392 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16394         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
16395         f_minmaxs, f_minmaxd types.
16397 2014-09-05  Richard Biener  <rguenther@suse.de>
16399         * cfgloop.c (mark_loop_for_removal): Record former header
16400         when ENABLE_CHECKING.
16401         * cfgloop.h (strut loop): Add former_header member when
16402         ENABLE_CHECKING.
16403         * loop-init.c (fix_loop_structure): Sanity check loops
16404         marked for removal if they re-appeared.
16406 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16408         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
16409         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
16411         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
16412         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
16413         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
16414         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
16415         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
16416         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
16417         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
16418         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
16419         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
16420         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
16421         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
16422         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
16423         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
16424         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
16425         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
16426         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
16427         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
16428         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
16429         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
16430         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
16431         with int{32,16,8}_t.
16433 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16435         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
16436         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
16437         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
16438         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
16439         Remove temporary __asm__ and reimplement.
16441 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16443         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
16444         handling cmge, cmgt, cmeq, cmtst.
16446         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
16447         cmlt, cmgeu, cmgtu, cmtst): Remove.
16449         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
16450         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
16451         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
16452         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
16454 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16456         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
16457         TYPES_TST): Define.
16458         (aarch64_fold_builtin): Update pattern for cmtst.
16460         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
16461         Declare.
16463         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
16465         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
16466         Switch operands, separate out more cases, refactor.
16468         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
16470         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
16471         argument; rename old version to...
16472         (aarch64_const_vec_all_same_in_range_p): ...this.
16473         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
16475         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
16477 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16479         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16480         Remove qualifier_const_pointer, update comment.
16482 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16484         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
16486 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16488         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
16489         varargs with pointer parameter.
16490         (aarch64_simd_expand_builtin): pass pointer into previous.
16492 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16494         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
16495         alus_ext.
16497 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
16499         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
16500         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
16501         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
16502         Replace temporary asm with call to builtin.
16503         (vrbit_p8, vrbitq_p8): New functions.
16505 2014-09-05  Richard Biener  <rguenther@suse.de>
16507         * cfgloop.c (mark_loop_for_removal): New function.
16508         * cfgloop.h (mark_loop_for_removal): Declare.
16509         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
16510         (merge_blocks): Likewise.
16511         (duplicate_block): Likewise.
16512         * except.c (sjlj_emit_dispatch_table): Likewise.
16513         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
16514         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
16515         (thread_through_loop_header): Likewise.
16517 2014-09-05  Richard Biener  <rguenther@suse.de>
16519         PR middle-end/63148
16520         * fold-const.c (try_move_mult_to_index): Remove.
16521         (fold_binary_loc): Do not call it.
16522         * tree-data-ref.c (dr_analyze_indices): Strip conversions
16523         from the base object again.
16525 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16527         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
16528         DImode.
16530 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
16532         PR target/55701
16533         * config/arm/arm.md (setmem): New pattern.
16534         * config/arm/arm-protos.h (struct tune_params): New fields.
16535         (arm_gen_setmem): New prototype.
16536         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
16537         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
16538         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
16539         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
16540         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
16541         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
16542         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
16543         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
16544         (arm_const_inline_cost): New function.
16545         (arm_block_set_max_insns): New function.
16546         (arm_block_set_non_vect_profit_p): New function.
16547         (arm_block_set_vect_profit_p): New function.
16548         (arm_block_set_unaligned_vect): New function.
16549         (arm_block_set_aligned_vect): New function.
16550         (arm_block_set_unaligned_non_vect): New function.
16551         (arm_block_set_aligned_non_vect): New function.
16552         (arm_block_set_vect, arm_gen_setmem): New functions.
16554 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
16556         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
16558 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
16560         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
16562 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
16564         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
16565         an rtx.
16566         * valtrack.h: Adjust.
16568 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
16570         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
16571         an rtx.
16572         (emit_jump_insn_before_noloc): Likewise.
16573         (emit_call_insn_before_noloc): Likewise.
16574         (emit_label_before): Likewise.
16575         (emit_label_after): Likewise.
16576         (emit_insn_before_setloc): Likewise.
16577         (emit_jump_insn_before_setloc): Likewise.
16578         (emit_call_insn_before_setloc): Likewise.
16579         (emit_call_insn_before): Likewise.
16580         * rtl.h: Adjust.
16582 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16584         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
16585         rtx_insn *, eliminating a checked cast.
16587 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16589         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
16590         const_rtx to const rtx_insn *.
16591         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
16592         cast.
16594 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16596         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
16597         fixup_args_size_notes.
16598         * expr.c (fixup_args_size_notes): Strengthen first two params from
16599         rtx to rtx_insn *, eliminating a checked cast.
16600         * rtl.h (fixup_args_size_notes): Strengthen first two params from
16601         rtx to rtx_insn *.
16603 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
16605         * haifa-sched.c (get_ready_element): Strengthen return type from
16606         rtx to rtx_insn *.
16607         * sched-int.h (get_ready_element): Likewise.
16609 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
16611         PR target/63165
16612         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
16613         indexed_or_indirect_operand instead of memory_operand.
16614         (floatsi<mode>2_lfiwzx_mem): Ditto.
16616 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
16618         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
16619         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
16620         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
16622 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
16624         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
16625         rtx.
16626         (get_last_nonnote_insn): Likewise.
16627         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
16628         * resource.c (find_basic_block): Likewise.
16629         * rtl.h: Adjust.
16630         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
16631         const_rtx.
16633 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
16635         * genattr.c (main): Within the prototype of insn_latency written
16636         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
16637         * genautomata.c (output_internal_maximal_insn_latency_func):
16638         Within the implementation of insn_latency written out to
16639         insn-automata.c, strengthen both params from rtx to rtx_insn *,
16640         eliminating a pair of checked casts.
16642 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
16644         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
16645         rtx_insn *.
16647         * rtl.h (eh_returnjump_p): Likewise.
16649 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
16651         * Makefile.in (TAGS): Handle constructs in timevar.def.
16653 2014-09-04  Guozhi Wei  <carrot@google.com>
16655         PR target/62040
16656         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
16657         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
16658         it into two patterns.
16659         (move_lo_quad_internal_be_<mode>): Likewise.
16661 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16663         * doc/options.texi: Document that Var and Init are required if CPP
16664         is given.
16665         * optc-gen.awk: Require Var and Init if CPP is given.
16666         * common.opt (Wpedantic): Use Init.
16668 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16670         * config/rs6000/rs6000.c (special_handling_values): Add
16671         SH_EXTRACT.
16672         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
16673         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
16674         as swappable with special handling SH_EXTRACT.  Remove
16675         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
16676         optimization.
16677         (adjust_extract): New function.
16678         (handle_special_swappables): Add default to case statement; add
16679         case for SH_EXTRACT that calls adjust_extract.
16680         (dump_swap_insn_table): Handle SH_EXTRACT.
16682 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16684         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
16685         selection of 0th memory doubleword, regardless of endianness.
16687 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16689         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
16691 2014-09-04  Alan Modra  <amodra@gmail.com>
16693         PR debug/60655
16694         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
16695         can't be output.
16697 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
16699         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
16700         * targhooks.c (default_dwarf_frame_reg_mode): New function.
16701         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
16702         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
16703         * doc/tm.texi: Regenerate.
16704         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
16705         selection logic to default_dwarf_frame_reg_mode.
16707 2014-09-03  Marek Polacek  <polacek@redhat.com>
16709         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
16710         by -Wall.
16712 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
16714         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
16715         the automodified register.
16717 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
16719         * output.h (get_some_local_dynamic_name): Declare.
16720         * final.c (some_local_dynamic_name): New variable.
16721         (get_some_local_dynamic_name): New function.
16722         (final_end_function): Clear some_local_dynamic_name.
16723         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
16724         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
16725         (print_operand): Report an error if '%&' is used inappropriately.
16726         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
16727         (get_some_local_dynamic_name_1): Delete.
16728         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
16729         (rs6000_get_some_local_dynamic_name): Delete.
16730         (rs6000_get_some_local_dynamic_name_1): Delete.
16731         (print_operand): Report an error if '%&' is used inappropriately.
16732         * config/s390/s390.c (machine_function): Remove some_ld_name.
16733         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
16734         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
16735         * config/sparc/sparc.c: Include rtl-iter.h.
16736         (machine_function): Remove some_ld_name.
16737         (sparc_print_operand): Report an error if '%&' is used inappropriately.
16738         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
16740 2014-09-03  Richard Henderson  <rth@redhat.com>
16742         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
16743         (aarch64_popwb_pair_reg): Remove.
16744         (aarch64_set_frame_expr): Remove.
16745         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
16746         the restore ops performed by the insns generated.
16747         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
16748         insn.  Perform the calls_eh_return addition later; do not attempt to
16749         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
16750         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
16751         special markup at all.  Load cfun->machine->frame.hard_fp_offset
16752         into a local variable.
16753         (aarch64_frame_pointer_required): Don't check calls_alloca.
16755 2014-09-03  Richard Biener  <rguenther@suse.de>
16757         * opts.c (default_options_optimization): Adjust
16758         max-combine-insns to 2 for -Og.
16760 2014-09-03  Martin Jambor  <mjambor@suse.cz>
16762         PR ipa/62015
16763         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
16764         pass-trough jump functions correctly.
16766 2014-09-03  Martin Jambor  <mjambor@suse.cz>
16768         PR ipa/61986
16769         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
16770         created replacements in ascending order of offsets.
16771         (known_aggs_to_agg_replacement_list): Likewise.
16773 2014-09-03  Martin Liska  <mliska@suse.cz>
16775         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
16776         is set to set uninitialized value for vnresult.
16778 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16780         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
16781         for TARGET_MUST_PASS_IN_STACK.
16783 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16785         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
16786         for TARGET_ARG_PARTIAL_BYTES.
16788 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16790         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
16791         instructions for varargs implementation.
16792         (nds32_expand_epilogue): Emit stack adjustment instructions for
16793         varargs implementation.
16795 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16797         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
16798         optimization detection.
16800 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16802         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
16803         arguments.
16804         (nds32_function_arg_advance): Deal with nameless arguments.
16805         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
16806         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
16807         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
16809 2014-09-03  Richard Biener  <rguenther@suse.de>
16811         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
16812         (struct bb_bitmap_sets): Remove deferred member.
16813         (BB_DEFERRED): Remove.
16814         (defer_or_phi_translate_block): Remove.
16815         (compute_antic_aux): Remove deferring of blocks, assert
16816         proper iteration order.
16817         (compute_antic): Do not set BB_DEFERRED.
16818         (eliminate): Allocate el_avail of proper size initially.
16820 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16822         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
16823         according to the value of crtl->args.pretend_args_size.
16825 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16827         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
16828         varargs information.
16830 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16832         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
16833         implementation for TARGET_SETUP_INCOMING_VARARGS.
16834         (nds32_strict_argument_naming): Refine comment.
16835         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
16836         Define for future implementation.
16838 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
16840         * config/i386/adxintrin.h (_subborrow_u32): New.
16841         (_addcarry_u32): Ditto.
16842         (_subborrow_u64): Ditto.
16843         (_addcarry_u64): Ditto.
16844         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
16845         IX86_BUILTIN_SBB64.
16846         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
16847         __builtin_ia32_sbb_u64
16849 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16851         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
16852         GPR-specific stuff.
16853         (nds32_function_arg_advance): Likewise.
16854         (nds32_init_cumulative_args): Likewise.
16855         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
16856         (NDS32_FIRST_GPR_REGNUM): Define.
16857         (NDS32_LAST_GPR_REGNUM): Define.
16858         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
16859         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
16860         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
16861         (machine_function): Use GRP-specific stuff.
16863 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16865         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
16866         (nds32_expand_epilogue): Likewise.
16867         (nds32_expand_prologue_v3push): Likewise.
16868         (nds32_expand_epilogue_v3pop): Likewise.
16870 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16872         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
16873         v3push/v3pop for variadic function.
16874         * config/nds32/nds32.md (prologue, epilogue): Likewise.
16876 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16878         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16879         Check rtx for varargs implementation.
16880         (nds32_output_stack_pop): Likewise.
16881         * config/nds32/nds32-protos.h: Have a rtx argument for
16882         nds32_output_stack_push and nds32_output_stack_pop.
16883         * config/nds32/nds32.md: Likewise.
16885 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16887         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
16888         to check if FUNC is an interrupt service routine.
16889         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
16891 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16893         * config/nds32/nds32.h (machine_function): Add some fields for variadic
16894         arguments implementation.
16896 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16898         * config/nds32/nds32-predicates.c
16899         (nds32_valid_stack_push_pop): Rename to ...
16900         (nds32_valid_stack_push_pop_p): ... this.
16901         * config/nds32/nds32-protos.h: Likewise.
16902         * config/nds32/predicates.md: Likewise.
16904 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16906         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
16907         (nds32_emit_stack_v3push): ... this.
16908         (nds32_gen_stack_v3pop): Rename to ...
16909         (nds32_emit_stack_v3pop): ... this and consider CFA restore
16910         information.
16912 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16914         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
16915         (nds32_emit_stack_push_multiple): ... this.
16916         (nds32_gen_stack_pop_multiple): Rename to ...
16917         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
16918         information.
16920 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16922         PR target/61078
16923         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
16924         and add a second splitter to handle the remaining cases.
16926 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
16928         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
16930 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
16932         * cfgexpand.c (label_rtx_for_bb): Change type to
16933         hash_map<basic_block, rtx_code_label *> *.
16934         (expand_gimple_basic_block): Adjust.
16935         (pass_expand::execute): Likewise.
16937 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
16939         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
16940         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
16941         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
16942         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
16943         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
16944         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
16945         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
16946         of rtx.
16948 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
16950         * alloc-pool.c: Include coretypes.h.
16951         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
16952         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
16953         hash_set instead of htab.
16954         * ggc-page.c (in_gc): New variable.
16955         (ggc_free): Do nothing if a collection is taking place.
16956         (ggc_collect): Set in_gc appropriately.
16957         * ggc.h (gt_ggc_mx(const char *)): New function.
16958         (gt_pch_nx(const char *)): Likewise.
16959         (gt_ggc_mx(int)): Likewise.
16960         (gt_pch_nx(int)): Likewise.
16961         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
16962         (hash_map::hash_entry::pch_nx): Likewise.
16963         (hash_map::hash_entry::pch_nx_helper): Likewise.
16964 (hash_map::hash_map): Adjust.
16965 (hash_map::create_ggc): New function.
16966 (gt_ggc_mx): Likewise.
16967 (gt_pch_nx): Likewise.
16968         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
16969 (default_hashset_traits::pch_nx): Likewise.
16970 (hash_set::hash_entry::ggc_mx): Likewise.
16971 (hash_set::hash_entry::pch_nx): Likewise.
16972 (hash_set::hash_entry::pch_nx_helper): Likewise.
16973 (hash_set::hash_set): Adjust.
16974 (hash_set::create_ggc): New function.
16975 (hash_set::elements): Likewise.
16976 (gt_ggc_mx): Likewise.
16977 (gt_pch_nx): Likewise.
16978         * hash-table.h (hash_table::hash_table): Adjust.
16979 (hash_table::m_ggc): New member.
16980         (hash_table::~hash_table): Adjust.
16981         (hash_table::expand): Likewise.
16982         (hash_table::empty): Likewise.
16983 (gt_ggc_mx): New function.
16984         (hashtab_entry_note_pointers): Likewise.
16985 (gt_pch_nx): Likewise.
16987 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16989         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
16990         built-in definition.
16991         (XVCVUXDDP_SCALE): Likewise.
16992         (XVCVDPSXDS_SCALE): Likewise.
16993         (XVCVDPUXDS_SCALE): Likewise.
16994         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
16995         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
16996         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
16997         VSX_BUILTIN_XVCVDPUXDS_SCALE.
16998         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
16999         prototype.
17000         * config/rs6000/rs6000.c (real.h): New include.
17001         (rs6000_scale_v2df): New function.
17002         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
17003         (UNSPEC_VSX_XVCVUXDDP): Likewise.
17004         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
17005         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
17006         (vsx_xvcvsxddp_scale): New define_expand.
17007         (vsx_xvcvsxddp): New define_insn.
17008         (vsx_xvcvuxddp_scale): New define_expand.
17009         (vsx_xvcvuxddp): New define_insn.
17010         (vsx_xvcvdpsxds_scale): New define_expand.
17011         (vsx_xvcvdpsxds): New define_insn.
17012         (vsx_xvcvdpuxds_scale): New define_expand.
17013         (vsx_xvcvdpuxds): New define_insn.
17014         * doc/extend.texi (vec_ctf): Add new prototypes.
17015         (vec_cts): Likewise.
17016         (vec_ctu): Likewise.
17017         (vec_splat): Likewise.
17018         (vec_div): Likewise.
17019         (vec_mul): Likewise.
17021 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17023         PR target/62275
17024         * config/arm/neon.md
17025         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
17026         <v_cmp_result>): New pattern.
17027         * config/arm/iterators.md (NEON_VCVT): New int iterator.
17028         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
17029         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
17030         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
17031         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
17032         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
17034 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17036         PR target/62275
17037         * config/arm/iterators.md (FIXUORS): New code iterator.
17038         (VCVT): New int iterator.
17039         (su_optab): New code attribute.
17040         (su): Likewise.
17041         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
17043 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17045         * config/aarch64/predicates.md (aarch64_comparison_operation):
17046         New special predicate.
17047         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
17048         aarch64_comparison_operation instead of matching an operator.
17049         Update operand numbers.
17050         (csinc3<mode>_insn): Likewise.
17051         (*csinv3<mode>_insn): Likewise.
17052         (*csneg3<mode>_insn): Likewise.
17053         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
17054         * config/aarch64/aarch64.c (aarch64_get_condition_code):
17055         Return -1 instead of aborting on invalid condition codes.
17056         (aarch64_print_operand): Update aarch64_get_condition_code callsites
17057         to assert that the returned condition code is valid.
17058         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
17060 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
17062         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
17063         tree.def, and gimple.def
17065 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
17066             Balaji V. Iyer  <balaji.v.iyer@intel.com>
17067             Igor Zamyatin  <igor.zamyatin@intel.com>
17069         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
17070         (__cilkrts_cilk_for_64): Likewise.
17071         * cilk-common.c (declare_cilk_for_builtin): New function.
17072         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
17073         __cilkrts_cilk_for_64 bultins.
17074         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
17075         CILK_TI_F_LOOP_64.
17076         (cilk_for_32_fndecl): New define.
17077         (cilk_for_64_fndecl): Likewise.
17078         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
17079         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
17080         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
17081         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
17082         GF_OMP_FOR_COMBINED_INTO.
17083         * gimplify.c (gimplify_scan_omp_clauses): Added
17084         OMP_CLAUSE__CILK_FOR_COUNT_ case.
17085         (gimplify_adjust_omp_clauses): Ditto.
17086         (gimplify_omp_for): Added CILK_FOR case.
17087         (gimplify_expr): Ditto.
17088         * omp-low.c: Include cilk.h.
17089         (extract_omp_for_data): Set appropriate kind for
17090         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
17091         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
17092         (create_omp_child_function_name): Added second argument to handle
17093         cilk_for case.
17094         (cilk_for_check_loop_diff_type): New function.
17095         (expand_cilk_for_call): Likewise.
17096         (expand_cilk_for): Likewise.
17097         (create_omp_child_function): Set cilk_for_count; handle the cases when
17098         it is true; call create_omp_child_function_name with second argument.
17099         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
17100         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
17101         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
17102         * tree-nested.c (convert_nonlocal_omp_clauses): Added
17103         OMP_CLAUSE__CILK_FOR_COUNT_ case.
17104         (convert_local_omp_clauses): Ditto.
17105         * tree-pretty-print.c (dump_omp_clause): Added
17106         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
17107         (dump_generic_node): Added CILK_FOR case.
17108         * tree.c (omp_clause_num_ops): New element
17109         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
17110         (omp_clause_code_name): New element _Cilk_for_count_.
17111         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
17112         * tree.def: Add tree code for CILK_FOR.
17114 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
17116         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
17117         (ppc403-compare): Add "exts with dot" case.
17118         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
17119         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
17120         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
17121         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
17122         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
17123         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
17124         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
17125         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17126         cell-cmp-microcoded): Similarly.
17127         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
17128         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
17129         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
17130         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
17131         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
17132         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
17133         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
17134         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
17135         (power6-compare): Add "exts with dot" case.
17136         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
17137         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
17138         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
17140         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
17141         if avoiding Cell microcode.
17142         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
17143         (is_cracked_insn): Ditto.
17144         (insn_must_be_first_in_group): Ditto.
17145         * config/rs6000/rs6000.md (dot): Adjust comment.
17146         (cell_micro): Handle exts+dot.
17147         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
17148         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
17149         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
17150         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
17151         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
17152         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
17153         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
17155 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
17157         * config/rs6000/rs6000.md (QHSI): Delete.
17158         (EXTQI, EXTHI, EXTSI): New mode iterators.
17159         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
17160         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17161         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
17162         9 anonymous instructions, and 8 splitters): Delete.
17163         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
17164         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
17165         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
17166         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
17167         *zero_extendsi<mode>2_dot2): New.
17169 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
17171         * config/rs6000/rs6000.md (any_extend): New code iterator.
17172         (u, su): New code attributes.
17173         (dmode, DMODE): New mode attributes.
17174         (<su>mul<mode>3_highpart): New.
17175         (*<su>mul<mode>3_highpart): New.
17176         (<su>mulsi3_highpart_le): New.
17177         (<su>muldi3_highpart_le): New.
17178         (<su>mulsi3_highpart_64): New.
17179         (<u>mul<mode><dmode>3): New.
17180         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
17181         splitters): Delete.
17182         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
17183         splitters): Delete.
17185 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
17187         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
17188         *mulsi3_internal2, and two splitters): Delete.
17189         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
17190         Delete.
17191         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
17193 2014-09-02  Richard Biener  <rguenther@suse.de>
17195         PR tree-optimization/62695
17196         * tree-ssa-structalias.c (find_func_clobbers): Add missing
17197         vector truncate.
17199 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
17201         PR target/62312
17202         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
17204 2014-09-01  Andi Kleen  <ak@linux.intel.com>
17206         * file-find.c (add_prefix_begin): Add.
17207         (do_add_prefix): Rename from add_prefix with first argument.
17208         (add_prefix): Add new wrapper.
17209         * file-find.h (add_prefix_begin): Add.
17210         * gcc-ar.c (main): Support -B option.
17212 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
17214         * genemit.c: Include dumpfile.h.
17215         (gen_split): Print name of splitter function to dump file.
17217 2014-09-01  Richard Biener  <rguenther@suse.de>
17219         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
17220         Use stack auto_vecs for constraint expressions.
17221         (find_func_aliases_for_call): Likewise.
17222         (find_func_aliases): Likewise.
17223         (find_func_clobbers): Likewise.
17225 2014-09-01  Richard Biener  <rguenther@suse.de>
17227         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
17228         operands vector in most cases.  Remove redundant code.
17230 2014-09-01  Olivier Hainque  <hainque@adacore.com>
17232         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
17233         $WIND_BASE instead of designating a harcoded arbitrary home dir.
17234         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
17236 2014-09-01  Richard Biener  <rguenther@suse.de>
17238         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
17239         copy_reference_ops_from_call, vn_nary_op_compute_hash,
17240         vn_reference_compute_hash, vn_reference_insert): Remove.
17241         (vn_reference_lookup_call): New function.
17242         * tree-ssa-sccvn.c (vn_reference_compute_hash,
17243         copy_reference_ops_from_ref, copy_reference_ops_from_call,
17244         vn_reference_insert, vn_nary_op_compute_hash): Make static.
17245         (create_reference_ops_from_call): Remove.
17246         (vn_reference_lookup_3): Properly update shared_lookup_references.
17247         (vn_reference_lookup_pieces): Assert that we updated
17248         shared_lookup_references properly.
17249         (vn_reference_lookup): Likewise.
17250         (vn_reference_lookup_call): New function.
17251         (visit_reference_op_call): Use it.  Avoid re-building the
17252         reference ops.
17253         (visit_reference_op_load): Remove redundant lookup.
17254         (visit_reference_op_store): Perform special tail-merging work
17255         only when possibly doing tail-merging.
17256         (visit_use): Likewise.
17257         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
17259 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
17261         PR target/62025
17262         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
17263         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
17264         (find_inc): Revert 2014-08-13 change.
17266 2014-09-01  Marek Polacek  <polacek@redhat.com>
17268         PR middle-end/61903
17269         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
17270         Change the type of V to unsigned HOST_WIDE_INT.
17272 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17274         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
17275         the size of byte markers.
17276         (do_shift_rotate): Fix confusion between host, target and marker byte
17277         size.
17278         (verify_symbolic_number_p): Likewise.
17279         (find_bswap_or_nop_1): Likewise.
17280         (find_bswap_or_nop): Likewise.
17282 2014-09-01  Olivier Hainque  <hainque@adacore.com>
17284         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
17285         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
17287 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
17289         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
17290         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
17291         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
17293 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
17295         PR sanitizer/61897
17296         PR sanitizer/62140
17297         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
17298         (build_check_stmt): Likewise.
17299         (instrument_strlen_call): Likewise.
17300         (asan_expand_check_ifn): Likewise and fix types.
17301         (maybe_cast_to_ptrmode): New function.
17303 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17305         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
17307 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
17309         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
17311 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
17313         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
17314         prefix to function labels when generating fast indirect calls.
17316 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
17318         PR bootstrap/62304
17320         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
17321         param back from rtx_insn * to rtx.  Rename param from "label" to
17322         "label_or_return", reintroducing "label" as an rtx_insn * after
17323         we've ensured it's not a RETURN.
17324         (first_active_target_insn): Likewise for return type and param;
17325         add a checked cast to rtx_insn * once we've ensured "insn" is not
17326         a RETURN.
17327         (steal_delay_list_from_target): Convert param "pnew_thread" back
17328         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
17329         with JUMP_LABEL.
17330         (own_thread_p): Convert param "thread" back from an rtx_insn * to
17331         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
17332         cast once we've established we're not dealing with a RETURN,
17333         renaming subsequent uses of "thread" to "thread_insn".
17334         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
17335         to JUMP_LABEL.
17336         (follow_jumps): Convert return type and param "label" from
17337         rtx_insn * back to rtx.  Move initialization of "value" to after
17338         the handling for ANY_RETURN_P, adding a checked cast there to
17339         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
17340         rename to "this_label_or_return", reintroducing "this_label" as
17341         an rtx_insn * once we've handled the case where it could be an
17342         ANY_RETURN_P.
17343         (fill_slots_from_thread): Rename param "thread" to
17344         "thread_or_return", converting from an rtx_insn * back to an rtx.
17345         Reintroduce name "thread" as an rtx_insn * local with a checked
17346         cast once we've handled the case of it being an ANY_RETURN_P.
17347         Convert local "new_thread" from an rtx_insn * back to an rtx.
17348         Add a checked cast when assigning to "trial" from "new_thread".
17349         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
17350         checked cast to rtx_insn * from "new_thread" when invoking
17351         get_label_before.
17352         (fill_eager_delay_slots): Convert locals "target_label",
17353         "insn_at_target" from rtx_insn * back to rtx.
17354         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
17355         (relax_delay_slots): Convert locals "trial", "target_label" from
17356         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
17357         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
17358         invoking update_block.
17359         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
17360         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
17362         * resource.h (mark_target_live_regs): Undo erroneous conversion
17363         of second param of r214693, converting it back from rtx_insn * to
17364         rtx, since it could be a RETURN.
17366         * resource.c (find_dead_or_set_registers): Similarly, convert
17367         param "jump_target" back from an rtx_insn ** to an rtx *, as we
17368         could be writing back a RETURN.  Rename local rtx_insn * "next" to
17369         "next_insn", and introduce "lab_or_return" as a local rtx,
17370         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
17371         (mark_target_live_regs): Undo erroneous conversion
17372         of second param of r214693, converting it back from rtx_insn * to
17373         rtx, since it could be a RETURN.  Rename it from "target" to
17374         "target_maybe_return", reintroducing the name "target" as a local
17375         rtx_insn * with a checked cast, after we've handled the case of
17376         ANY_RETURN_P.
17378 2014-08-29  DJ Delorie  <dj@redhat.com>
17380         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
17381         pointer size up to a power of two.
17382         * defaults.h (DWARF2_ADDR_SIZE): Round up.
17383         (POINTER_SIZE_UNITS): New, rounded up value.
17384         * dwarf2asm.c (size_of_encoded_value): Use it.
17385         (dw2_output_indirect_constant_1): Likewise.
17386         * expmed.c (init_expmed_one_conv): We now know the sizes of
17387         partial int modes.
17388         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
17389         * optabs.c (expand_float): Use precision, not size.
17390         (expand_fix): Likewise.
17391         * simplify-rtx (simplify_unary_operation_1): Likewise.
17392         * tree-dfa.c (get_ref_base_and_extent): Likewise.
17393         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
17394         (default_assemble_integer) Likewise.
17395         (dump_tm_clone_pairs): Likewise.
17396         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
17397         * var-tracking.c (adjust_mems): Allow partial-int modes also.
17398         (prepare_call_arguments): Likewise.
17399         * stor-layout.c (finalize_type_size): Preserve precision.
17400         (layout_type): Use precision, not size.
17402         * expr.c (convert_move): If the target has an explicit converter,
17403         use it.
17405 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
17407         * gdbinit.in: Skip various inline functions in rtl.h when
17408         stepping.
17410 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
17412         PR bootstrap/62301
17413         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
17415 2014-08-29  Richard Biener  <rguenther@suse.de>
17417         PR tree-optimization/62291
17418         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
17419         exactly the vector size needed and use quick_push.
17420         (phi_translate_1): Adjust comment.
17421         (valid_in_sets): Remove block argument and remove pointless
17422         checking of NAMEs.
17423         (dependent_clean): Adjust for removal of block argument.
17424         (clean): Likewise.
17425         (compute_antic_aux): Likewise.
17426         (compute_partial_antic_aux): Likewise.
17428 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17430             Anna Tikhonova  <anna.tikhonova@intel.com>
17431             Ilya Tocar  <ilya.tocar@intel.com>
17432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17433             Ilya Verbin  <ilya.verbin@intel.com>
17434             Kirill Yukhin  <kirill.yukhin@intel.com>
17435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17437         * config/i386/sse.md
17438         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
17439         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
17440         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
17441         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
17443 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17444             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17445             Anna Tikhonova  <anna.tikhonova@intel.com>
17446             Ilya Tocar  <ilya.tocar@intel.com>
17447             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17448             Ilya Verbin  <ilya.verbin@intel.com>
17449             Kirill Yukhin  <kirill.yukhin@intel.com>
17450             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17452         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
17453         * config/i386/sse.md
17454         (define_mode_iterator VI4_128_8_256): New.
17455         (define_mode_iterator VI2_128_4_256): Ditto.
17456         (define_mode_iterator PMOV_DST_MODE): Rename into
17457         (define_mode_iterator PMOV_DST_MODE_1): this.
17458         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
17459         Use PMOV_DST_MODE_1 mode iterator.
17460         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17461         Ditto.
17462         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17463         Ditto.
17464         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
17465         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
17466         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
17467         (define_mode_iterator PMOV_DST_MODE_2): New.
17468         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
17469         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
17470         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
17471         Ditto.
17472         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
17473         (define_mode_attr pmov_dst_3): Ditto.
17474         (define_mode_attr pmov_dst_zeroed_3): Ditto.
17475         (define_mode_attr pmov_suff_3): Ditto.
17476         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
17477         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
17478         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
17479         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
17480         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
17481         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
17482         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
17483         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
17484         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
17485         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
17486         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
17487         (define_mode_attr pmov_dst_4): Ditto.
17488         (define_mode_attr pmov_dst_zeroed_4): Ditto.
17489         (define_mode_attr pmov_suff_4): Ditto.
17490         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
17491         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
17492         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
17493         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
17494         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
17495         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
17496         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
17497         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
17498         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
17499         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
17500         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
17502 2014-08-29  Richard Biener  <rguenther@suse.de>
17504         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
17505         NON_LVALUE_EXPR in gimple.
17507 2014-08-29  Richard Biener  <rguenther@suse.de>
17509         PR middle-end/62292
17510         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
17511         from previous refactoring.
17512         (gimple_fold_builtin_strncpy): Likewise.
17514 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
17516         PR bootstrap/62300
17517         * function.c (assign_parm_setup_reg): Remove erroneous checked
17518         cast to rtx_insn * on result of gen_extend_insn in favor of
17519         introducing a new local rtx "pat".
17521 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17523         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
17524         to silence warning.
17525         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
17527 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17529         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
17530         (next_insn): Likewise.
17531         * emit-rtl.c (next_insn): Likewise.
17532         (previous_insn): Likewise.
17533         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
17534         "insn" and "next" from rtx to rtx_insn *.
17535         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
17536         "insn", "insn1", "vliw_start",  "prologue_end_note",
17537         "last_insn_in_packet".
17539 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17541         * shrink-wrap.h (active_insn_between): Strengthen both params from
17542         rtx to rtx_insn *.
17543         * function.c (active_insn_between): Likewise.
17545 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17547         * genattr.c (main): When writing out insn-attr.h, strengthen param
17548         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
17549         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
17550         writing out the definition of dfa_clear_single_insn_cache to the
17551         generated insn-automata.c
17553 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17555         * resource.h (clear_hashed_info_for_insn): Strengthen param from
17556         rtx to rtx_insn *.
17557         (incr_ticks_for_insn): Likewise.
17558         (init_resource_info): Likewise.
17560         * resource.c (init_resource_info): Likewise.
17561         (clear_hashed_info_for_insn): Likewise.
17562         (incr_ticks_for_insn): Likewise.
17564         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
17565         rtx to rtx_insn *.
17566         (steal_delay_list_from_target): Use methods of "seq".
17567         (try_merge_delay_insns): Use methods of "merged_insns".
17568         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
17569         (reorg_redirect_jump): Likewise for param "jump".
17571 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17573         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
17574         rtx to rtx_insn *.
17575         * config/s390/s390.c (s390_split_branches): Eliminate top-level
17576         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
17577         "set_insn".
17578         (s390_mainpool_finish): In three places, split out a local rtx
17579         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
17580         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
17581         and split another local rtx "insn" out into rtx "pat" and
17582         rtx_insn * "insn".
17583         * config/sh/sh.c (output_branchy_insn): Rather than working
17584         directly on operands[9], introduce local rtx_code_label *
17585         variables named "lab" in two places, working on them, and then
17586         assigning them to operands[9], so that the intervening operations
17587         are known by the type system to be on insns.
17589 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17591         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
17592         const rtx_insn *.
17594         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
17595         in invocation of INSN_HAS_LOCATION.
17597 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17599         * config/rs6000/altivec.h (vec_xl): New #define.
17600         (vec_xst): Likewise.
17601         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
17602         (XXSPLTD_V2DI): Likewise.
17603         (DIV_V2DI): Likewise.
17604         (UDIV_V2DI): Likewise.
17605         (MUL_V2DI): Likewise.
17606         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17607         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
17608         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
17609         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
17610         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
17611         (UNSPEC_VSX_DIVSD): Likewise.
17612         (UNSPEC_VSX_DIVUD): Likewise.
17613         (UNSPEC_VSX_MULSD): Likewise.
17614         (vsx_mul_v2di): New insn-and-split.
17615         (vsx_div_v2di): Likewise.
17616         (vsx_udiv_v2di): Likewise.
17617         (vsx_xxspltd_<mode>): New insn.
17619 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17621         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
17622         NEXT_INSN.
17623         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
17624         (NEXT_INSN): Likewise.
17625         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
17626         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
17627         const rtx_insn *.
17628         (no_labels_between_p): Likewise for both params.
17630         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
17631         cast when using NEXT_INSN on operands[2].
17632         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
17633         "insn" from rtx to rtx_insn *, adding a checked cast.
17634         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
17635         rtx_insn *.
17636         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
17637         for third param.
17638         (arc_text_label): Likewise for param "insn".
17639         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
17640         "insn".
17641         (arc_ccfsm_record_condition): Likewise for param "jump".
17642         (arc_text_label): Likewise for local "label".
17643         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
17644         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
17645         a method for typesafety.  Add a checked cast.
17646         * config/arc/constraints.md (Clb): Add a checked cast when getting
17647         the CODE_LABEL from a LABEL_REF.
17648         * config/arm/arm.c (require_pic_register): Strengthen locals
17649         "seq", "insn" from rtx to rtx_insn *.
17650         (create_fix_barrier): Likewise for locals "selected", "next".
17651         (thumb1_reorg): Likewise for locals "prev", "insn".
17652         (arm_expand_prologue): Likewise for local "last".
17653         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
17654         operands[0].
17655         (thumb2_output_casesi): Likewise for operands[2].
17656         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
17657         strengthen local "insn" from rtx to rtx_insn *.
17658         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
17659         type and param "insn".
17660         (find_prev_insn_start): Likewise.
17661         (hwloop_optimize): Likewise for locals "insn", "last_insn",
17662         "prev".
17663         (gen_one_bundle): Likewise for loal "t".
17664         (find_load): Likewise for param "insn".
17665         (workaround_speculation): Likewise for locals "insn", "next",
17666         "target", "next_tgt".
17667         * config/c6x/c6x.c (assign_reservations): Likewise for both params
17668         and for locals "insn", "within", "last".
17669         (count_unit_reqs): Likewise for params "head", "tail" and local
17670         "insn".
17671         (try_rename_operands): Likewise for params "head", "tail".
17672         (reshuffle_units): Likewise for locals "head", "tail", "insn".
17673         (struct c6x_sched_context): Likewise for fields
17674         "last_scheduled_insn", "last_scheduled_iter0".
17675         (init_sched_state): Replace NULL_RTX with NULL.
17676         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
17677         to rtx_insn *.
17678         (undo_split_delayed_nonbranch): Likewise for param and for local
17679         "prev".
17680         (conditionalize_after_sched): Likewise for local "insn".
17681         (bb_earliest_end_cycle): Likewise.
17682         (filter_insns_above): Likewise for locals "insn", "next".
17683         (hwloop_optimize): Remove redundant checked cast.
17684         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
17685         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
17686         NULL_RTX with NULL.
17687         (cris_simple_epilogue): Likewise.
17688         (cris_expand_prologue): Likewise.
17689         (cris_expand_epilogue): Likewise.
17690         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
17691         local "insn" from rtx to rtx_insn *.
17692         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
17693         (struct frv_packet_group): Likewise for the elements within array
17694         fields "insns", "sorted", and for field "nop".
17695         (frv_packet): Likewise for the elements within array field
17696         "insns".
17697         (frv_add_insn_to_packet): Likewise for param "insn".
17698         (frv_insert_nop_in_packet): Likewise for param "insn" and local
17699         "last".
17700         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
17701         (frv_sort_insn_group_1): Likewise for local "insn".
17702         (frv_optimize_membar_local): Likewise.
17703         (frv_align_label): Likewise for locals "x", "last", "barrier",
17704         "label".
17705         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
17706         local.
17707         (ia64_sched_init): Likewise for local "insn".
17708         (scheduled_good_insn): Likewise for param "last".
17709         (struct _ia64_sched_context): Likewise for field
17710         "last_scheduled_insn".
17711         (ia64_init_sched_context): Replace NULL_RTX with NULL.
17712         (struct bundle_state): Likewise for field "insn".
17713         (issue_nops_and_insn): Likewise for param "insn".
17714         (get_next_important_insn): Likewise for return type and both
17715         params.
17716         (ia64_add_bundle_selector_before): Likewise for param "insn".
17717         (bundling): Likewise for params "prev_head_insn", "tail" and
17718         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
17719         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
17720         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
17721         Strengthen final param from rtx to rtx_insn *.
17722         (iq2000_move_1word): Likewise for second param.
17723         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
17724         param "cur_insn" and local "next_insn".
17725         (iq2000_move_1word): Likewise for param "insn".
17726         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
17727         casts when using NEXT_INSN on operands[1].
17728         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
17729         "insn" from rtx to rtx_insn *.
17730         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
17731         "x", introducing local rtx_insn * "insn" for when working with the
17732         CODE_LABEL of the LABEL_REF.
17733         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
17734         rtx_insn *.
17735         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
17736         param.
17737         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
17738         type.
17739         (conditionalize_block): Likewise for return type and param.
17740         (mcore_is_dead): Likewise for param "first" and local "insn".
17741         (emit_new_cond_insn): Likewise for return type.
17742         (conditionalize_block): Likewise for return type, param, and
17743         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
17744         "newinsn".
17745         (conditionalize_optimization): Likewise for local "insn".
17746         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
17747         using NEXT_INSN.
17748         * config/microblaze/microblaze.md: Add checked casts when using
17749         NEXT_INSN.
17750         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
17751         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
17752         and rtx_insn * "insn".
17753         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
17754         checked cast when using NEXT_INSN on operands[2].
17755         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
17756         local "insn" from rtx to rtx_insn *.
17757         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
17758         Likewise.
17759         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
17760         Add a checked cast when using NEXT_INSN on operands[1].
17761         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
17762         rtx to rtx_insn *.
17763         (pa_output_cbranch): Likewise for final param.
17764         (pa_output_lbranch): Likewise for second param.
17765         (pa_output_bb): Likewise for third param.
17766         (pa_output_bvb): Likewise.
17767         (pa_output_dbra): Likewise for second param.
17768         (pa_output_movb): Likewise.
17769         (pa_output_parallel_movb): Likewise.
17770         (pa_output_parallel_addb): Likewise.
17771         (pa_output_millicode_call): Likewise for first param.
17772         (pa_output_mul_insn): Likewise for second param.
17773         (pa_output_div_insn): Likewise for third param.
17774         (pa_output_mod_insn): Likewise for second param.
17775         (pa_jump_in_call_delay): Likewise for param.
17776         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
17777         (pa_output_div_insn): Likewise.
17778         (pa_output_mod_insn): Likewise.
17779         (pa_output_cbranch): Likewise.
17780         (pa_output_lbranch): Likewise.
17781         (pa_output_bb): Likewise.
17782         (pa_output_bvb): Likewise.
17783         (pa_output_dbra): Likewise.
17784         (pa_output_movb): Likewise.
17785         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
17786         to simplify and for typesafety.
17787         (pa_output_call): Use method of rtx_sequence *.
17788         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
17789         (pa_jump_in_call_delay): Likewise.
17790         (pa_output_parallel_movb): Likewise.
17791         (pa_output_parallel_addb): Likewise.
17792         (pa_following_call): Likewise.
17793         (pa_combine_instructions): Likewise for locals "anchor",
17794         "floater".
17795         (pa_can_combine_p): Likewise for params "anchor", "floater" and
17796         locals "start", "end".
17797         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
17798         param "insn" and local "local_insn".
17799         (picochip_final_prescan_insn): Likewise for local "local_insn".
17800         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
17801         local "insn".
17802         (uses_TOC): Likewise.
17803         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
17804         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
17805         splitting out to more tightly-scoped locals, 3 as rtx and one as
17806         rtx_insn *.
17807         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
17808         to rtx_insn *.
17809         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
17810         where needed.
17811         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
17812         to rtx_insn *.
17813         (fixup_addr_diff_vecs): Likewise.
17814         (reg_unused_after): Likewise for param 2.
17815         (sh_can_redirect_branch): Likewise for both params.
17816         (check_use_sfunc_addr): Likewise for param 1.
17817         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
17818         (find_barrier): Likewise for local "last_got".
17819         (gen_block_redirect): Likewise for return type, param "jump" and
17820         locals "prev", "scan", "next", "insn".
17821         (struct far_branch): Likewise for fields "near_label",
17822         "insert_place", "far_label".
17823         (gen_far_branch): Likewise for local "jump".
17824         (fixup_addr_diff_vecs): Likewise for param "first" and locals
17825         "insn", "prev".
17826         (barrier_align): Likewise for param and for locals "prev", "x".
17827         Introduce local rtx_sequence * "prev_seq" and use insn method for
17828         typesafety and clarity.
17829         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
17830         (get_dest_uid): Likewise for local "dest".
17831         (split_branches): Likewise for locals "next", "beyond", "label",
17832         "block", "far_label".  Add checked casts when assigning to
17833         bp->far_label and "far_label".
17834         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
17835         (sequence_insn_p): Likewise.
17836         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
17837         more loop-scoped rtx "insn" when walking LABEL_REFS.
17838         (sh_can_redirect_branch): Strengthen both params from rtx to
17839         rtx_insn *.
17840         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
17841         new local rtx_sequence * "seq" via a dyn_cast, and use a method
17842         for clarity and typesafety.
17843         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
17844         "insn" from rtx to rtx_insn *.
17845         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
17846         when using NEXT_INSN on the CODE_LABEL in operands[2].
17847         (define_insn "casesi_worker_2"): Likewise.
17848         (define_insn "casesi_shift_media"): Likewise.
17849         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
17850         operands[3].
17851         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
17852         Strengthen field "insn" from rtx to rtx_insn *.
17853         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
17854         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
17855         param "start_insn" and local "start_insn".
17856         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
17857         field "insn".
17858         (find_set_of_reg_bb): Likewise for param "insn".
17859         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
17860         (trace_reg_uses): Likewise for param "start_insn".
17861         (sh_treg_combine::cbranch_trace): Likewise for field
17862         "cbranch_insn".
17863         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
17864         param "insn".
17865         (sh_treg_combine::record_set_of_reg): Likewise for param
17866         "start_insn" and local "i".
17867         (sh_treg_combine::can_remove_cstore): Likewise for local
17868         "prev_insn".
17869         (sh_treg_combine::try_optimize_cbranch): Likewise for param
17870         "insn".
17871         (sh_treg_combine::execute): Likewise for local "i".
17872         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
17873         param.
17874         (sparc_check_64): Likewise for second param.
17875         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
17876         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
17877         dyn_cast, using its insn method for typesafety and clarity.
17878         (empty_delay_slot): Strengthen param "insn" from rtx to
17879         rtx_insn *.
17880         (set_extends): Likewise.
17881         (sparc_check_64): Likewise.
17882         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
17883         for locals "seq", "last_insn".
17884         (combine_bnp): Likewise for param "insn".
17885         (xstormy16_reorg): Likewise for local "insn".
17886         * config/v850/v850.c (substitute_ep_register): Likewise for params
17887         "first_insn", "last_insn" and local "insn".
17888         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
17889         elements of "regs" array, and local "insn".
17890         * except.c (emit_note_eh_region_end): Likewise for param "insn".
17891         * final.c (final_sequence): Strengthen this global from rtx to
17892         rtx_sequence *.
17893         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
17894         rtx_insn *.
17895         (final_scan_insn): Update assignment to "final_sequence" to be
17896         from "seq", the cast version of "body", for type-safety.
17897         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
17898         "insns" from rtx to rtx_insn *.
17899         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
17900         * genattr.c (main): When writing out generated insn-attr.h,
17901         strengthen params 1 and 3 of eligible_for_delay,
17902         eligible_for_annul_true, eligible_for_annul_false from rtx to
17903         rtx_insn *.
17904         * genattrtab.c (write_eligible_delay): Likewise when writing out
17905         generated insn-attrtab.c; also local "insn" the generated
17906         functions.
17907         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
17908         to rtx_insn *.
17909         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
17910         "start_label" from rtx to rtx_insn *.
17911         * ira.c (decrease_live_ranges_number): Likewise for local "p".
17912         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
17913         "insns" and local "insn".
17914         (validate_equiv_mem): Likewise for param "start" and local "insn".
17915         (memref_used_between_p): Likewise for params "start", "end" and
17916         local "insn".
17917         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
17918         final param.
17919         * loop-doloop.c (doloop_optimize): Within region guarded by
17920         INSN_P (doloop_pat), introduce a new local rtx_insn *
17921         "doloop_insn" via a checked cast, and use it for typesafety,
17922         eventually writing the value back into doloop_pat.
17923         * output.h (final_sequence): Strengthen this global from rtx to
17924         rtx_sequence *.
17925         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
17926         reintroducing "insn" as an rtx_insn * via a checked cast.
17927         Strengthen param "attempt" and local "new_insn"from rtx to
17928         rtx_insn *.
17929         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
17930         to rtx_insn *.
17931         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
17932         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
17933         "p" in favor of more tightly-scoped replacements, sometimes rtx
17934         and sometimes rtx_insn *, as appropriate.
17935         (delete_output_reload): Eliminate top-level rtx "i1", splitting
17936         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
17937         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
17938         local "trial" from rtx to rtx_insn *.
17939         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
17940         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
17941         rtx_sequence * and use methods for clarity and typesafety.
17942         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
17943         rtx to rtx_insn *.  Strenghten local "li" from rtx to
17944         rtx_insn_list * and use its methods for clarity and typesafety.
17945         (steal_delay_list_from_target): Strengthen param "insn" from rtx
17946         to rtx_insn *.
17947         (steal_delay_list_from_fallthrough): Likewise.
17948         (try_merge_delay_insns): Likewise for param "thread" and locals
17949         "trial", "next_trial", "delay_insn".
17950         (redundant_insn): Likewise for param "target" and local "trial".
17951         (own_thread_p): Likewise for param "thread" and locals
17952         "active_insn", "insn".
17953         (get_label_before): Likewise for param "insn".
17954         (fill_simple_delay_slots): Likewise for local "new_label"; use
17955         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
17956         (label_before_next_insn): Strengthen return type and local "insn"
17957         from rtx to rtx_insn *.
17958         (relax_delay_slots): Likewise for locals "other", "tmp".
17959         (make_return_insns): Likewise for param "first" and locals "insn",
17960         "jump_insn", "prev".  Move declaration of "pat" to its assignment
17961         and strengthen from rtx to rtx_sequence *.  Use its methods for
17962         clarity and typesafety.
17963         * rtlanal.c (no_labels_between_p): Strengthen params from
17964         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
17965         rtx_insn *.
17966         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
17967         from const_rtx to const rtx_insn *.
17968         (reg_set_between_p): Rename param "from_insn" to
17969         "uncast_from_insn", and reintroduce "from_insn" as a
17970         const rtx_insn * via a checked cast.
17971         (modified_between_p): Likewise for param "start" as "uncast_start".
17972         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
17973         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
17974         "tmp", head" from rtx to rtx_insn *.
17975         (recompute_rev_top_order): Likewise for local "insn".
17976         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
17977         * store-motion.c (build_store_vectors): Likewise for local "insn".
17978         Strengthen local "st" from rtx to rtx_insn_list * and use methods
17979         for clarity and typesafety.
17980         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
17981         rtx to rtx_insn *.
17982         (computation_cost): Likewise for local "seq".
17983         (get_address_cost): Likewise.
17985 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17987         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
17988         const rtx_insn *.
17989         (label_is_jump_target_p): Likewise for second param.
17991         * rtlanal.c (tablejump_p): Likewise for param "insn".
17992         (label_is_jump_target_p): Likewise for param "jump_insn".
17994 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
17996         * rtl.h (find_first_parameter_load): Strengthen return type and
17997         both params from rtx to rtx_insn *.
17998         * rtlanal.c (find_first_parameter_load): Strengthen return type,
17999         both params and locals "before", "first_set" from rtx to
18000         rtx_insn *.  Remove now-redundant cast.
18001         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
18003 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18005         * rtl.h (find_last_value): Delete.
18006         * rtlanal.c (find_last_value): Delete.
18008 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18010         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
18011         from rtx to rtx_insn *.
18012         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
18013         rtx "note" with new local rtx_insn * "new_head" when calculating
18014         head insn of new basic block.
18015         * combine.c (combine_split_insns): Strengthen return type and local
18016         "ret" from rtx to rtx_insn *.
18017         (likely_spilled_retval_p): Likewise for locals "use" and "p".
18018         (try_combine): Eliminate local "m_split", splitting into new
18019         locals "m_split_insn" and "m_split_pat".
18020         (find_split_point): Strengthen local "seq" from rtx into
18021         rtx_insn *.
18022         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
18023         locals "label", "branch".
18024         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
18025         for local "insn".
18026         (define_expand "umulsi3_highpart"): Likewise for local "insn".
18027         * dse.c (note_add_store_info): Likewise for fields "first",
18028         "current".
18029         (note_add_store): Likewise for local "insn".
18030         (emit_inc_dec_insn_before): Likewise for locals "insn",
18031         "new_insn", "cur".
18032         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
18033         (replace_read): Likewise for locals "insns", "this_insn".
18034         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
18035         (notice_eh_throw): Likewise for param "insn".
18036         (before_next_cfi_note): Likewise for return type, param, and local
18037         "prev".
18038         (connect_traces): Likewise for local "note".
18039         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
18040         (verify_rtl_sharing): Likewise.
18041         (unshare_all_rtl_in_chain): Likewise for param "insn".
18042         (get_first_nonnote_insn): Likewise for local "insn".
18043         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
18044         "seq" and use its methods to clarify things.
18045         (next_insn): Strengthen return type from rtx to rtx_insn *.
18046         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
18047         local rtx_insn * using a checked cast, dropping a checked cast
18048         made redundant by this change.  Use a cast to and method of
18049         rtx_sequence to clarify the code.
18050         (previous_insn): Rename param "insn" to "uncast_insn" and
18051         reintroduce "insn" as a local rtx_insn * using a checked cast,
18052         dropping a checked cast made redundant by this change.  Use a cast
18053         to and method of rtx_sequence to clarify the code.
18054         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
18055         reintroduce "insn" as a local rtx_insn * using a checked cast,
18056         dropping a checked cast made redundant by this change.
18057         (next_nonnote_insn_bb): Likewise.
18058         (prev_nonnote_insn): Likewise.
18059         (prev_nonnote_insn_bb): Likewise.
18060         (next_nondebug_insn): Likewise.
18061         (prev_nondebug_insn): Likewise.
18062         (next_nonnote_nondebug_insn): Likewise.
18063         (prev_nonnote_nondebug_insn): Likewise.
18064         (next_real_insn): Likewise.
18065         (prev_real_insn): Likewise.
18066         (next_active_insn): Likewise.
18067         (prev_active_insn): Likewise.
18068         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
18069         clarity.
18070         (prev_cc0_setter): Likewise.
18071         (try_split): Rename param "trial" to "uncast_trial" and
18072         reintroduce "insn" as a local rtx_insn * using a checked cast,
18073         dropping checked casts made redundant by this change.
18074         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
18075         rtx to rtx_insn *.
18076         (remove_insn): Rename param "insn" to "uncast_insn" and
18077         reintroduce "insn" as a local rtx_insn * using a checked cast.
18078         (emit_pattern_after_setloc): Likewise for param "after", as
18079         "uncast_after".
18080         (emit_pattern_after): Likewise.  Strengthen local "prev" from
18081         rtx to rtx_insn *.
18082         (emit_pattern_before_setloc): Rename param "before" to
18083         "uncast_before" and reintroduce "before" as a local rtx_insn *
18084         using a checked cast.  Strengthen locals "first", "last" from
18085         rtx to rtx_insn *.
18086         (emit_pattern_before): Likewise rename/cast param "before" to
18087         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
18088         * except.c (copy_reg_eh_region_note_forward): Strengthen param
18089         "first" and local "insn" from rtx to rtx_insn *.
18090         (copy_reg_eh_region_note_backward): Likewise for param "last"
18091         and local "insn".
18092         * expr.c (fixup_args_size_notes): Rename param "last" to
18093         "uncast_last" and reintroduce "last" as a local rtx_insn *
18094         using a checked cast.  Strengthen local "insn" from rtx to
18095         rtx_insn *.
18096         * function.c (set_insn_locations): Strengthen param "insn" from
18097         rtx to rtx_insn *.
18098         (record_insns): Likewise for param "insns" and local "tmp".
18099         (active_insn_between): Rename param "tail" to
18100         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
18101         using a checked cast.
18102         (thread_prologue_and_epilogue_insns): Split out top-level local
18103         rtx "seq" into three different rtx_insn * locals.  Strengthen
18104         local "prologue_seq" from rtx to rtx_insn *.
18105         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
18106         from rtx to rtx_insn *.
18107         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18108         (priority): Likewise for locals "prev_first", "twin".
18109         (setup_insn_max_reg_pressure): Likewise for param "after".
18110         (sched_setup_bb_reg_pressure_info): Likewise.
18111         (no_real_insns_p): Strengthen params from const_rtx to
18112         const rtx_insn *.
18113         (schedule_block): Strengthen local "next_tail" from rtx to
18114         rtx_insn *.
18115         * ifcvt.c (find_active_insn_before): Strengthen return type and
18116         param "insn" from rtx to rtx_insn *.
18117         (find_active_insn_after): Likewise.
18118         (cond_exec_process_insns): Likewise for param "start" and local "insn".
18119         (cond_exec_process_if_block): Likewise for locals "then_start",
18120         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
18121         (noce_process_if_block): Likewise for local "jump".
18122         (merge_if_block): Likewise for two locals named "end".
18123         (cond_exec_find_if_block): Likewise for local "last_insn".
18124         * jump.c (delete_related_insns): Rename param "insn" to
18125         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
18126         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
18127         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
18128         NULL.
18129         (split_reg): Likewise.
18130         * lra.c (lra_process_new_insns): Likewise.
18131         * modulo-sched.c (permute_partial_schedule): Strengthen param
18132         "last" from rtx to rtx_insn *.
18133         * optabs.c (add_equal_note): Likewise for param "insns" and local
18134         "last_insn".
18135         (expand_binop_directly): Add checked casts to rtx_insn * within
18136         NEXT_INSN (pat) uses.
18137         (expand_unop_direct): Likewise.
18138         (maybe_emit_unop_insn): Likewise.
18139         * recog.c (peep2_attempt): Strengthen locals "last",
18140         "before_try", "x" from rtx to rtx_insn *.
18141         * reorg.c (optimize_skip): Strengthen return type and local
18142         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
18143         and locals "trial", "next_trial" from rtx to rtx_insn *.
18144         * resource.c (next_insn_no_annul): Strengthen return type and
18145         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
18146         rtx_sequence to clarify the code.
18147         (mark_referenced_resources): Add a checked cast to rtx_insn *
18148         within PREV_INSN (x).
18149         (find_dead_or_set_registers): Strengthen return type, param
18150         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
18151         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
18152         to rtx_insn **.
18153         (mark_target_live_regs): Strengthen params "insns" and "target",
18154         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
18155         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
18156         the code.
18157         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
18158         from rtx to rtx_insn *.
18159         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
18160         from rtx to rtx_insn *.
18161         (copy_reg_eh_region_note_backward): Likewise.
18162         (unshare_all_rtl_in_chain): Likewise for sole param.
18163         (dump_rtl_slim): Strengthen second and third params from const_rtx
18164         to const rtx_insn *.
18165         * sched-deps.c (sched_free_deps): Strengthen params "head" and
18166         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
18167         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
18168         "next_tail" from rtx to rtx_insn *.
18169         (begin_move_insn): Likewise for local "next".
18170         * sched-int.h (sched_free_deps): Likewise for first and second
18171         params.
18172         (no_real_insns_p): Strengthen both params from const_rtx to
18173         const rtx_insn *.
18174         (sched_setup_bb_reg_pressure_info): Strengthen second params from
18175         rtx to rtx_insn *.
18176         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
18177         "next_tail".
18178         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
18179         and locals "insn", "tail" from const_rtx to const rtx_insn *.
18180         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
18181         rtx_insn *.
18182         (debug_rtl_slim): Strengthen params "first" and "last" from
18183         const_rtx to const rtx_insn *.
18184         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
18185         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
18186         (convert_to_simple_return): Likewise for param "returnjump".
18187         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
18188         "prologue_seq".
18189         (convert_to_simple_return): Likewise for param "returnjump".
18190         * valtrack.c (propagate_for_debug): Likewise for params
18191         "insn", "last".
18192         * valtrack.h (propagate_for_debug): Likewise for second param.
18194 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18196         * output.h (insn_current_reference_address): Strengthen param
18197         from rtx to rtx_insn *.
18198         * final.c (insn_current_reference_address): Likewise.
18200 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18202         * basic-block.h (inside_basic_block_p): Strengthen param from
18203         const_rtx to const rtx_insn *.
18204         * cfgbuild.c (inside_basic_block_p): Likewise.
18206 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18208         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
18209         rtx_insn *.
18210         (get_trace_info): Likewise for param "insn".
18211         (save_point_p): Likewise.
18212         (maybe_record_trace_start): Likewise for both params.
18213         (maybe_record_trace_start_abnormal): Likewise.
18214         (create_trace_edges): Likewise for sole param and for three of the
18215         locals named "lab".
18216         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
18217         to rtx_insn *, and update a call to pat->element to pat->insn.
18219 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18221         * function.h (struct expr_status): Convert field "x_forced_labels"
18222         from rtx_expr_list * to rtx_insn_list *.
18224         * cfgbuild.c (make_edges): Convert local "x" from an
18225         rtx_expr_list * to an rtx_insn_list *, replacing use of
18226         "element" method with "insn" method.
18227         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18228         * except.c (sjlj_emit_dispatch_table): Replace use of
18229         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
18230         forced_labels.
18231         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
18232         rtx_expr_list * to an rtx_insn_list *, replacing use of
18233         "element" method with "insn" method.
18234         * reload1.c (set_initial_label_offsets): Likewise for local "x".
18235         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
18236         rtx_insn *, adding a checked cast.  Replace use of
18237         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
18238         forced_labels.
18239         (expand_label): Likewise for local "label_r".
18241 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18243         * function.h (struct rtl_data): Convert field
18244         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
18245         rtx_insn_list *.
18246         * rtl.h (remove_node_from_insn_list): New prototype.
18248         * builtins.c (expand_builtin): When prepending to
18249         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18250         gen_rtx_EXPR_LIST.
18251         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
18252         to rtx_insn_list *, and use its "insn" method rather than
18253         "element" method.
18254         * cfgrtl.c (delete_insn): Use new function
18255         remove_node_from_insn_list rather than
18256         remove_node_from_expr_list.
18257         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
18258         to rtx_insn_list *, and use its "insn" method rather than
18259         "element" method.
18260         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18261         * reload1.c (set_initial_label_offsets): Likewise for local "x".
18262         * rtlanal.c (remove_node_from_insn_list): New function, adapted
18263         from remove_node_from_expr_list.
18264         * stmt.c (expand_label): When prepending to
18265         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18266         gen_rtx_EXPR_LIST.
18268 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18270         * function.h (struct rtl_data): Strengthen fields "x_return_label"
18271         and "x_naked_return_label" from rtx to rtx_code_label *.
18273 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18275         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
18276         (SET_NEXT_INSN): Likewise.
18277         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
18279         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
18280         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
18281         to split out the SEQUENCE from local "bundle", strengthening the
18282         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
18283         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
18284         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
18285         and the type of the elements of the "slot" array from rtx to
18286         rtx_insn *.
18287         (reorg_split_calls): Likewise for locals "insn" and "next", and
18288         the type of the elements of the "slot" array.
18290         * config/frv/frv.c (frv_nops): Likewise for the elements of this
18291         array.
18292         (frv_function_prologue): Likewise for locals "insn", "next",
18293         "last_call".
18294         (frv_register_nop): Introduce a local "nop_insn" to be the
18295         rtx_insn * containing rtx "nop".
18297         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
18298         used as an insn and sometimes as a pattern, so rename it to
18299         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
18300         using it where dealing with the core insn.
18302         * config/picochip/picochip.c (reorder_var_tracking_notes):
18303         Strengthen locals "insn", "next", "last_insn", "queue",
18304         "next_queue", "prev" from rtx to rtx_insn *.
18306         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
18307         the second param is an rtx_insn ** rather than an rtx **.
18308         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
18309         from rtx to rtx_sequence *, and introduce local named "sequence",
18310         using methods of rtx_sequence to clarify the code.
18311         (remove_insn): Introduce local rtx_sequence * named "sequence" and
18312         use its methods.
18313         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
18314         Rename param "after" to "uncast_after", reintroducing "after" as a
18315         local rtx_insn * with a checked cast.
18316         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
18317         reintroducing "after" as a local rtx_insn * with a checked cast.
18318         Strengthen local "last" from rtx to rtx_insn * and remove the
18319         now-redundant checked casts.
18320         (copy_delay_slot_insn): Strengthen return type and param from rtx
18321         to rtx_insn *.
18323         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
18324         "last" from rtx to rtx_insn *.
18326 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18328         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
18329         param from rtx to rtx_insn *.
18331         * emit-rtl.c (copy_delay_slot_insn): Likewise.
18333         * reorg.c (skip_consecutive_labels): Strengthen return type, param
18334         and local "insn" from rtx to rtx_insn *.
18335         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
18336         (unfilled_slots_next): Likewise.
18337         (function_return_label): Strengthen from rtx to rtx_code_label *.
18338         (function_simple_return_label): Likewise.
18339         (first_active_target_insn): Strengthen return type and param from
18340         rtx to rtx_insn *.
18341         (find_end_label): Strengthen return type from rtx to
18342         rtx_code_label *; strengthen locals as appropriate.
18343         (emit_delay_sequence): Strengthen return type, param "insn" and
18344         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
18345         and local "li" from rtx to rtx_insn_list *, using methods of
18346         rtx_insn_list for clarity and typesafety.
18347         (add_to_delay_list): Strengthen return type and param "insn" from
18348         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
18349         rtx_insn_list * and use methods of rtx_insn_list.
18350         (delete_from_delay_slot): Strengthen return type, param "insn",
18351         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
18352         Strengthen local "seq" from rtx to rtx_sequence *, and local
18353         "delay_list" from rtx to rtx_insn_list *, using methods of
18354         rtx_sequence for clarity and type-safety.
18355         (delete_scheduled_jump): Add checked cast when invoking
18356         delete_from_delay_slot.  Strengthen local "trial" from rtx to
18357         rtx_insn *.
18358         (optimize_skip): Strengthen return type and local "delay_list"
18359         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
18360         rtx_insn *.
18361         (steal_delay_list_from_target): Strengthen return type, param
18362         "delay_list" and local "new_delay_list" from rtx to
18363         rtx_insn_list *.  Strengthen param "seq" from rtx to
18364         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
18365         rtx_insn **.
18366         Split out local "temp" into multiple more-tightly scoped locals:
18367         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
18368         of rtx_insn_list and rtx_sequence for clarity and typesafety.
18369         Strengthen locals named "trial" from rtx to rtx_insn *.
18370         (steal_delay_list_from_fallthrough): Strengthen return type and
18371         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
18372         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
18373         Strengthen local "trial" from rtx to rtx_insn *.
18374         (try_merge_delay_insns): Strength local "merged_insns" from rtx
18375         to rtx_insn_list * and use its methods.  Strengthen local "pat"
18376         from rtx to rtx_sequence * and use its methods.  Strengthen locals
18377         "dtrial" and "new_rtx" from rtx to rtx_insn *.
18378         (get_label_before): Strengthen return type and local "label" from
18379         rtx to rtx_insn *.
18380         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
18381         "next_trial", "next", prev".  Strengthen local "delay_list" from
18382         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
18383         rtx_insn **.
18384         (follow_jumps): Strengthen return type, param "label" and locals
18385         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
18386         (fill_slots_from_thread): Strengthen return type, param
18387         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
18388         "insn", "thread", "opposite_thread" and locals "new_thread",
18389         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
18390         "sequence" from a checked cast to rtx_sequence so that we can call
18391         steal_delay_list_from_target and steal_delay_list_from_fallthrough
18392         with an rtx_sequence *.
18393         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
18394         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
18395         Strengthen local "delay_list" from rtx to rtx_insn_list *.
18396         (relax_delay_slots): Strengthen param "first" and locals "insn",
18397         "next", "trial", "delay_insn", "target_label" from rtx to
18398         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
18399         Introduce a local "trial_seq" for PATTERN (trial) of type
18400         rtx_sequence *, in both cases using methods of rtx_sequence.
18401         (dbr_schedule): Strengthen param "first" and locals "insn",
18402         "next", "epilogue_insn" from rtx to rtx_insn *.
18404 2014-08-28  Richard Biener  <rguenther@suse.de>
18406         PR tree-optimization/62283
18407         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18408         Do not peel loops for alignment where the vector loop likely
18409         doesn't run at least VF times.
18411 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
18413         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
18414         important_candidates.  Consider all important candidates if
18415         IVS doesn't give any result.  Remove check on ivs->upto.
18416         (try_add_cand_for): Call iv_ca_add_use only once.
18418 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18419             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18420             Anna Tikhonova  <anna.tikhonova@intel.com>
18421             Ilya Tocar  <ilya.tocar@intel.com>
18422             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18423             Ilya Verbin  <ilya.verbin@intel.com>
18424             Kirill Yukhin  <kirill.yukhin@intel.com>
18425             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18427         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
18428         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
18429         masking.
18430         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
18431         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18432         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18433         (define_insn "*mul<mode>3"): Add EVEX version.
18435 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18436             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18437             Anna Tikhonova  <anna.tikhonova@intel.com>
18438             Ilya Tocar  <ilya.tocar@intel.com>
18439             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18440             Ilya Verbin  <ilya.verbin@intel.com>
18441             Kirill Yukhin  <kirill.yukhin@intel.com>
18442             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18444         * config/i386/sse.md
18445         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
18446         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
18447         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
18448         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
18449         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
18450         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
18451         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
18452         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
18453         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
18454         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
18455         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
18456         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
18457         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
18458         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
18459         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
18460         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
18462 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18464             Anna Tikhonova  <anna.tikhonova@intel.com>
18465             Ilya Tocar  <ilya.tocar@intel.com>
18466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18467             Ilya Verbin  <ilya.verbin@intel.com>
18468             Kirill Yukhin  <kirill.yukhin@intel.com>
18469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18471         * config/i386/sse.md
18472         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
18473         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
18474         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
18476 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18477             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18478             Anna Tikhonova  <anna.tikhonova@intel.com>
18479             Ilya Tocar  <ilya.tocar@intel.com>
18480             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18481             Ilya Verbin  <ilya.verbin@intel.com>
18482             Kirill Yukhin  <kirill.yukhin@intel.com>
18483             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18485         * config/i386/sse.md
18486         (define_mode_iterator VI128_256): New.
18487         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
18489 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18490             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18491             Anna Tikhonova  <anna.tikhonova@intel.com>
18492             Ilya Tocar  <ilya.tocar@intel.com>
18493             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18494             Ilya Verbin  <ilya.verbin@intel.com>
18495             Kirill Yukhin  <kirill.yukhin@intel.com>
18496             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18498         * config/i386/sse.md
18499         (define_mode_iterator VI8_256_512): New.
18500         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
18501         Ditto.
18502         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
18503         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
18504         Ditto.
18505         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
18507 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18509         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
18510         pointer to the cumulative reloc value and return the value for
18511         this reloc instead.
18512         (compute_reloc_for_rtx): Take a const_rtx.  Call
18513         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
18514         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
18515         for_each_rtx for the CONST case.
18517 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18519         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
18520         (mark_constants_in_pattern): ...this new function to iterate over
18521         all the subrtxes.
18522         (mark_constants): Update accordingly.
18524 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18526         * varasm.c: Include rtl-iter.h.
18527         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
18528         Remove the pointer to the cumulative hashval_t and just return
18529         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
18530         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18531         Accumulate the hashval_ts here instead of const_rtx_hash_1.
18533 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18535         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
18536         Give real type of data parameter.  Remove return value.
18537         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
18538         to iterate over subrtxes.
18540 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18542         * var-tracking.c (use_narrower_mode_test): Turn from being a
18543         for_each_rtx callback to being a function that examines each
18544         subrtx itself.
18545         (adjust_mems): Update accordingly.
18547 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18549         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
18550         callback to being a function that examines each subrtx itself.
18551         Remove handling of null rtxes.
18552         (add_uses): Update accordingly.
18554 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18556         * var-tracking.c: Include rtl-iter.h.
18557         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
18558         to being a function that examines each subrtx itself.
18559         (use_type): Update accordingly.
18561 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18563         * store-motion.c: Include rtl-iter.h.
18564         (extract_mentioned_regs_1): Delete.
18565         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
18566         for_each_rtx to iterate over subrtxes.
18568 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18570         * sel-sched.c: Include rtl-iter.h
18571         (count_occurrences_1): Delete.
18572         (count_occurrences_equiv): Turn rtxes into const_rtxes.
18573         Use FOR_EACH_SUBRTX rather than for_each_rtx.
18575 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18577         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
18578         * rtlanal.c (tls_referenced_p_1): Delete.
18579         (tls_referenced_p): Take a const_rtx rather than an rtx.
18580         Use FOR_EACH_SUBRTX rather than for_each_rtx.
18582 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18584         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
18585         (for_each_inc_dec): Take an rtx rather than an rtx *.
18586         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
18587         (cselib_record_sets): Likewise.
18588         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
18589         (check_for_inc_dec): Likewise.
18590         * rtlanal.c (for_each_inc_dec_ops): Delete.
18591         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
18592         rather than a pointer to the memory address.  Replace
18593         for_each_inc_dec_ops argument with separate function and data
18594         arguments.  Abort on non-autoinc addresses.
18595         (for_each_inc_dec_find_mem): Delete.
18596         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
18597         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
18599 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18601         * rtl.h (find_all_hard_regs): Declare.
18602         * rtlanal.c (find_all_hard_regs): New function.
18603         (record_hard_reg_uses_1): Delete.
18604         (record_hard_reg_uses): Use find_all_hard_regs.
18606 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18608         * rtl.h (replace_label_data): Delete.
18609         (replace_label): Take the old label, new label and update-nuses flag
18610         as direct arguments.  Return void.
18611         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
18612         * rtlanal.c (replace_label): Update interface as above.  Handle
18613         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
18614         iterator.  Use FOR_EACH_SUBRTX_PTR.
18616 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18618         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
18619         with const_rtx parameters.
18620         * varasm.c (get_pool_constant): Likewise.
18621         * rtlanal.c (rtx_referenced_p_1): Delete.
18622         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18623         Assert that the rtx we're looking for is nonnull.  Allow searches
18624         for constant pool SYMBOL_REFs.
18626 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18628         * reload1.c: Include rtl-iter.h.
18629         (note_reg_elim_costly): Turn from being a for_each_rtx callback
18630         to being a function that examines each subrtx itself.
18631         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
18633 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18635         * regcprop.c (cprop_find_used_regs_1): Delete.
18636         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18638 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18640         * regcprop.c: Include rtl-iter.h.
18641         (kill_value): Take a const_rtx.
18642         (kill_autoinc_value): Turn from being a for_each_rtx callback
18643         to being a function that examines each subrtx itself.
18644         (copyprop_hardreg_forward_1): Update accordingly.
18646 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18648         * reg-stack.c: Include rtl-iter.h.
18649         (subst_stack_regs_in_debug_insn): Delete.
18650         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
18651         instead of for_each_rtx.
18653 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18655         * lower-subreg.c (find_decomposable_subregs): Turn from being
18656         a for_each_rtx callback to being a function that examines each
18657         subrtx itself.  Remove handling of null rtxes.
18658         (decompose_multiword_subregs): Update accordingly.
18660 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18662         * lower-subreg.c (adjust_decomposed_uses): Delete.
18663         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
18664         Remove handling of null rtxes.
18666 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18668         * lower-subreg.c: Include rtl-iter.h.
18669         (resolve_subreg_use): Turn from being a for_each_rtx callback
18670         to being a function that examines each subrtx itself.  Remove
18671         handling of null rtxes.
18672         (resolve_reg_notes, resolve_simple_move): Update accordingly.
18673         (decompose_multiword_subregs): Likewise.
18675 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18677         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
18678         to being a function that examines each subrtx itself.
18679         (simplify_using_condition, simplify_using_initial_values): Update
18680         accordingly.
18682 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18684         * loop-iv.c: Include rtl-iter.h.
18685         (find_single_def_src): New function.
18686         (replace_single_def_regs): Turn from being a for_each_rtx callback
18687         to being a function that examines each subrtx itself.
18688         (replace_in_expr, simplify_using_initial_values): Update accordingly.
18690 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18692         * jump.c (eh_returnjump_p_1): Delete.
18693         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
18694         Remove handling of null rtxes.
18696 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18698         * jump.c: Include rtl-iter.h.
18699         (returnjump_p_1): Delete.
18700         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
18701         Remove handling of null rtxes.
18703 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18705         * ira.c: Include rtl-iter.h.
18706         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
18707         to being a function that examines each subrtx itself.  Remove
18708         handling of null rtxes.
18709         (update_equiv_regs): Update call accordingly.
18711 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18713         * fwprop.c: Include rtl-iter.h.
18714         (varying_mem_p): Turn from being a for_each_rtx callback to being
18715         a function that examines each subrtx itself.
18716         (propagate_rtx): Update accordingly.
18718 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18720         * function.c: Include rtl-iter.h
18721         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
18722         callback to being a function that examines each subrtx itself.
18723         Return the changed flag.
18724         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
18725         (instantiate_virtual_regs): Update calls accordingly.
18727 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18729         * final.c: Include rtl-iter.h.
18730         (mark_symbol_ref_as_used): Delete.
18731         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
18732         for_each_rtx.
18734 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18736         * emit-rtl.c: Include rtl-iter.h.
18737         (find_auto_inc): Turn from being a for_each_rtx callback to being
18738         a function that examines each subrtx itself.  Assume the first operand
18739         to an RTX_AUTOINC is the automodified register.
18740         (try_split): Update call accordingly.
18742 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18744         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
18745         Return a bool, inverting the result so that 0/false means "not ok".
18746         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
18747         subrtxes of a CONST.
18748         (mem_loc_descriptor, add_const_value_attribute)
18749         (resolve_addr_in_expr): Update calls accordingly.
18751 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18753         * dwarf2out.c: Include rtl-iter.h.
18754         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
18755         Remove unused data parameter.  Return a bool, inverting the result
18756         so that 0/false means "not ok".
18757         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
18758         instead of for_each_rtx.
18760 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18762         * dse.c: Include rtl-iter.h.
18763         (check_mem_read_rtx): Change void * parameter to real type.
18764         Remove return value.
18765         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
18766         for_each_rtx.  Don't handle null rtxes.
18768 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18770         * df-problems.c: Include rtl-iter.h.
18771         (find_memory): Turn from being a for_each_rtx callback to being
18772         a function that examines each subrtx itself.  Continue to look for
18773         volatile references even after a nonvolatile one has been found.
18774         (can_move_insns_across): Update calls accordingly.
18776 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18778         * ddg.c (walk_mems_2, walk_mems_1): Delete.
18779         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
18780         to iterate over subrtxes.  Return a bool rather than an int.
18782 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18784         * ddg.c: Include rtl-iter.h.
18785         (mark_mem_use_1): Rename to...
18786         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
18787         instead of for_each_rtx.
18788         (mem_read_insn_p): Update accordingly.
18790 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18792         * cse.c (change_cc_mode_args): Delete.
18793         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
18794         a function that examines each subrtx itself.  Take the fields of
18795         change_cc_mode_args as argument and return void.
18796         (cse_change_cc_mode_insn): Update calls accordingly.
18798 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18800         * cse.c (is_dead_reg): Change argument to const_rtx.
18801         (dead_debug_insn_data): Delete.
18802         (is_dead_debug_insn): Expand commentary.  Turn from being a
18803         for_each_rtx callback to being a function that examines
18804         each subrtx itself.  Take the fields of dead_debug_insn_data
18805         as argument.
18806         (delete_trivially_dead_insns): Update call accordingly.
18808 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18810         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
18811         being a for_each_rtx callback to being a function that examines
18812         each subrtx itself.
18813         (cse_extended_basic_block): Update call accordingly.
18815 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18817         * cse.c (check_dependence_data): Delete.
18818         (check_dependence): Change from being a for_each_rtx callback to being
18819         a function that examines all subrtxes itself.  Don't handle null rtxes.
18820         (invalidate): Update call accordingly.
18822 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18824         * cse.c: Include rtl-iter.h.
18825         (approx_reg_cost_1): Delete.
18826         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18827         Don't handle null rtxes.
18829 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18831         * cfgcleanup.c: Include rtl-iter.h.
18832         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
18833         to being a function that examines each subrtx itself.
18834         (thread_jump): Update accordingly.
18836 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18838         * combine-stack-adj.c: Include rtl-iter.h.
18839         (record_stack_refs_data): Delete.
18840         (record_stack_refs): Turn from being a for_each_rtx callback
18841         to being a function that examines each subrtx itself.
18842         Take a pointer to the reflist.  Invert sense of return value
18843         so that true means success and false means failure.  Don't
18844         handle null rtxes.
18845         (combine_stack_adjustments_for_block): Update accordingly.
18847 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18849         * combine.c (record_truncated_value): Turn from being a for_each_rtx
18850         callback to a function that takes an rtx and returns a bool
18851         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
18852         for_each_rtx.
18854 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18856         * combine.c: Include rtl-iter.h.
18857         (unmentioned_reg_p_1): Delete.
18858         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
18859         Don't handle null rtxes.
18861 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18863         * calls.c: Include rtl-iter.h.
18864         (internal_arg_pointer_based_exp_1): Delete.
18865         (internal_arg_pointer_based_exp): Take a const_rtx.
18866         Use FOR_EACH_SUBRTX to iterate over subrtxes.
18868 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18870         * caller-save.c: Include rtl-iter.h.
18871         (add_used_regs_1): Delete.
18872         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
18873         to iterate over subrtxes.  Assert that any remaining pseudos
18874         have been spilled.
18876 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18878         * bt-load.c: Include rtl-iter.h.
18879         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
18880         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
18881         to iterate over subrtxes.
18882         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
18883         find_btr_use rather than btr_referenced_p.
18885 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18887         * alias.c: Include rtl-iter.h.
18888         (refs_newer_value_cb): Delete.
18889         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18891 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
18893         * rtl-iter.h: New file.
18894         * rtlanal.c: Include it.
18895         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
18896         (generic_subrtx_iterator <T>::add_single_to_queue)
18897         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
18898         (generic_subrtx_iterator <T>::free_array): New functions.
18899         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
18900         (generic_subrtx_iterator <const_rtx_accessor>)
18901         (generic_subrtx_iterator <rtx_var_accessor>
18902         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
18903         (setup_reg_subrtx_bounds): New function.
18904         (init_rtlanal): Call it.
18906 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
18908         PR target/62261
18909         * config/sh/sh.md (ashlsi3): Handle negative shift count for
18910         TARGET_SHMEDIA.
18911         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
18913 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
18915         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
18917 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
18919         * rtl.h (JUMP_LABEL_AS_INSN): New.
18921 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
18923         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
18924         rtx_expr_list **.
18925         (alloc_EXPR_LIST): Strengthen return type from rtx to
18926         rtx_expr_list *.
18927         (remove_free_EXPR_LIST_node): Likewise for param.
18928         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
18929         from rtx to rtx_expr_list *.
18930         * sched-int.h (struct deps_desc): Strengthen fields
18931         "pending_read_mems" and "pending_write_mems" from rtx to
18932         rtx_expr_list *.
18934         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
18935         rtx to rtx_expr_list *.
18936         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
18937         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
18938         rtx_expr_list **.
18939         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
18940         from rtx to rtx_expr_list *.
18941         * loop-iv.c (simplify_using_initial_values): Strengthen local
18942         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
18943         "pnote_next" from rtx * to rtx_expr_list **.
18944         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
18945         param "exprp" from rtx * to rtx_expr_list **.
18946         (add_insn_mem_dependence): Strengthen local "mem_list" from
18947         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
18948         to rtx_expr_list *.
18949         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
18950         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
18951         param "old_mems_p" from rtx * to rtx_expr_list **.
18952         * var-tracking.c (struct adjust_mem_data): Strengthen field
18953         "side_effects" from rtx to rtx_expr_list *.
18954         (adjust_insn): Replace NULL_RTX with NULL when assigning to
18955         rtx_expr_list *.
18956         (prepare_call_arguments): Likewise.
18958 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
18960         * function.h (struct rtl_data): Strengthen field
18961         "x_stack_slot_list" from rtx to rtx_expr_list *.
18963         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
18964         when assigning to stack_slot_list.
18966 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
18968         * function.h (struct rtl_data): Strengthen field
18969         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
18970         * rtl.h (remove_node_from_expr_list): Strengthen second param from
18971         rtx * to rtx_expr_list **.
18973         * cfgbuild.c (make_edges): In loop over
18974         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
18975         rtx_expr_list *, and use methods of the latter class to clarify
18976         the code.
18977         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
18978         rtx_expr_list *, and use methods of the latter class to clarify
18979         the code.
18980         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18981         * reload1.c (set_initial_label_offsets): Likewise for local "x".
18982         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
18983         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
18984         to rtx_expr_list *.  Use methods of the latter class to clarify
18985         the code.
18987 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
18989         * function.h (struct expr_status): Strengthen field
18990         "x_forced_labels" from rtx to rtx_expr_list *.
18992         * cfgbuild.c (make_edges): Split local "x" into two locals,
18993         strengthening one from rtx to rtx_expr_list *, and using methods
18994         of said class.
18995         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
18996         loop over forced_labels, introduce strengthen it from rtx to
18997         rtx_expr_list *, using methods to clarify the code.
18998         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
18999         to rtx_expr_list *, using methods of said class to clarify the
19000         code.
19001         * reload1.c (set_initial_label_offsets): Split local "x" into two
19002         per-loop variables, strengthening the first from rtx to
19003         rtx_expr_list * and using methods.
19005 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19007         * coretypes.h (class rtx_expr_list): Add forward declaration.
19008         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
19009         * gengenrtl.c (special_rtx): Add EXPR_LIST.
19010         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
19011         invariant: GET_CODE (X) == EXPR_LIST.
19012         (is_a_helper <rtx_expr_list *>::test): New.
19013         (rtx_expr_list::next): New.
19014         (rtx_expr_list::element): New.
19015         (gen_rtx_EXPR_LIST): New.
19017 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19019         * varasm.c (mark_constants): Convert a GET_CODE check into a
19020         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19021         Use methods of rtx_sequence to clarify the code.
19023 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19025         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
19026         local "seq" via a checked cast, and use methods of rtx_sequence
19027         to simplify the code.
19029 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19031         * resource.c (mark_referenced_resources): Strengthen local
19032         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
19033         using methods of rtx_sequence to clarify the code.
19034         (find_dead_or_set_registers): Within the switch statement, convert
19035         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
19036         the JUMP_P handling, introduce another local "seq", adding a
19037         checked cast to rtx_sequence *.  In both cases, use methods of
19038         rtx_sequence to clarify the code.
19039         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
19040         via a checked cast, and use methods of rtx_sequence to simplify
19041         the code.
19043 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19045         * reorg.c (redundant_insn): In two places in the function, replace
19046         a check of GET_CODE with a dyn_cast, introducing local "seq", and
19047         usings methods of rtx_sequence to clarify the code.
19049 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19051         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
19052         local "seq" with a checked cast, and use methods of rtx_sequence
19053         to clarify the code.
19055 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19057         * function.c (contains): Introduce local "seq" for PATTERN (insn),
19058         with a checked cast, in the region for where we know it's a
19059         SEQUENCE.  Use methods of rtx_sequence.
19061 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19063         * final.c (get_attr_length_1): Replace GET_CODE check with a
19064         dyn_cast, introducing local "seq" and the use of methods of
19065         rtx_sequence.
19066         (shorten_branches): Likewise, introducing local "body_seq".
19067         Strengthen local "inner_insn" from rtx to rtx_insn *.
19068         (reemit_insn_block_notes): Replace GET_CODE check with a
19069         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
19070         Use methods of rtx_sequence.
19071         (final_scan_insn): Likewise, introducing local "seq" for when
19072         "body" is known to be a SEQUENCE, using its methods.
19074 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19076         * except.c (can_throw_external): Strengthen local "seq" from rtx
19077         to rtx_sequence *.  Use methods of rtx_sequence.
19078         (insn_nothrow_p): Likewise.
19080 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19082         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
19083         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19084         Use methods of rtx_sequence.
19085         (scan_trace): Likewise for local "pat".
19087 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19089         * coretypes.h (class rtx_sequence): Add forward declaration.
19090         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
19091         invariant: GET_CODE (X) == SEQUENCE.
19092         (is_a_helper <rtx_sequence *>::test): New.
19093         (is_a_helper <const rtx_sequence *>::test): New.
19094         (rtx_sequence::len): New.
19095         (rtx_sequence::element): New.
19096         (rtx_sequence::insn): New.
19098 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19100         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
19101         rtx_insn_list **.
19102         (alloc_INSN_LIST): Strengthen return type from rtx to
19103         rtx_insn_list *.
19104         (copy_INSN_LIST): Likewise for return type and param.
19105         (concat_INSN_LIST): Likewise for both params and return type.
19106         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
19107         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
19108         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
19109         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
19111         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
19112         "implicit_sets", "control_uses", "clobbers" from rtx to
19113         rtx_insn_list *.
19114         (struct deps_desc): Likewise for fields "pending_read_insns",
19115         "pending_write_insns", "pending_jump_insns",
19116         "last_pending_memory_flush", "last_function_call",
19117         "last_function_call_may_noreturn", "sched_before_next_call",
19118         "sched_before_next_jump".
19119         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
19120         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
19122         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
19123         from rtx to rtx_insn_list *.
19124         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
19125         rtx_insn_list *.
19127         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
19128         to rtx_insn_list **.
19129         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
19130         rtx_insn_list *.
19131         (queue_insn): Likewise for local "link".
19132         (struct haifa_saved_data): Strengthen field "insn_queue" from
19133         rtx * to rtx_insn_list **.
19134         (save_backtrack_point): Update allocation of save->insn_queue to
19135         reflect the strengthening of elements from rtx to rtx_insn_list *.
19136         (queue_to_ready): Strengthen local "link" from rtx to
19137         rtx_insn_list *; use methods "next" and "insn" when traversing the
19138         list.
19139         (early_queue_to_ready): Likewise for locals "link", "next_link",
19140         "prev_link".
19141         (schedule_block): Update allocation of insn_queue to reflect the
19142         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
19143         local "link" from rtx to rtx_insn_list *, and use methods when
19144         working it.
19145         (add_to_speculative_block): Strengthen locals "twins" and
19146         "next_node" from rtx to rtx_insn_list *, and use methods when
19147         working with them.  Strengthen local "twin" from rtx to
19148         rtx_insn *, eliminating a checked cast.
19149         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
19150         from rtx to rtx_insn_list *, and use methods when working with
19151         them.
19153         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
19154         from rtx to rtx_insn_list *, adding a checked cast.
19155         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
19156         rtx_insn_list **.
19157         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
19158         "newlink" from rtx to rtx_insn_list *.  Strengthen local
19159         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
19160         from rtx to rtx_insn *.
19161         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
19162         from rtx to rtx_insn_list *.  Use methods of the latter class.
19163         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
19164         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
19165         (remove_free_INSN_LIST_node): Strengthen return type and local
19166         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
19167         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
19168         rtx_insn_list *, using "insn" method.
19170         * sched-deps.c (add_dependence_list):  Strengthen param "list"
19171         from rtx to rtx_insn_list *, and use methods when working with it.
19172         (add_dependence_list_and_free):  Strengthen param "listp" from
19173         rtx * to rtx_insn_list **.
19174         (remove_from_dependence_list): Strenghten param "listp" from rtx *
19175         to rtx_insn_list **, and use methods when working with *listp.
19176         (remove_from_both_dependence_lists): Strengthen param "listp" from
19177         rtx * to rtx_insn_list **
19178         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
19179         to rtx_insn_list **.  Eliminate local "link", in favor of two new
19180         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
19181         respectively.
19182         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
19183         by introducing local "cond_deps".
19184         (remove_from_deps): Strengthen param "insn" from rtx to
19185         rtx_insn *.
19187         * sched-rgn.c (concat_insn_mem_list): Strengthen param
19188         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
19189         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
19190         Use methods of rtx_insn_list.
19192         * store-motion.c (struct st_expr): Strengthen fields
19193         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
19194         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
19195         rtx_insn_list *.
19196         (find_moveable_store): Split out "tmp" into multiple more-tightly
19197         scoped locals.  Use methods of rtx_insn_list *.
19198         (compute_store_table): Strengthen local "tmp" from rtx to
19199         rtx_insn *.  Use methods of rtx_insn_list *.
19201 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19203         * coretypes.h (class rtx_insn_list): Add forward declaration.
19204         * rtl.h (class rtx_insn_list): New subclass of rtx_def
19205         (is_a_helper <rtx_insn_list *>::test): New.
19206         (rtx_insn_list::next): New.
19207         (rtx_insn_list::insn): New.
19208         (gen_rtx_INSN_LIST): Add prototype.
19209         * emit-rtl.c (gen_rtx_INSN_LIST): New.
19210         * gengenrtl.c (special_rtx): Add INSN_LIST.
19212 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19214         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
19215         "prev" from rtx to rtx_insn *.
19217 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19219         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
19220         functions.  Require merely an rtx for now, not an rtx_insn *.
19221         (BLOCK_FOR_INSN): Likewise.
19222         (INSN_LOCATION): Likewise.
19223         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
19225 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19227         * rtl.h (PATTERN): Convert this macro into a pair of inline
19228         functions, for now, requiring const_rtx and rtx.
19230 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19232         * target.def (unwind_emit): Strengthen param "insn" from rtx to
19233         rtx_insn *.
19234         (final_postscan_insn): Likewise.
19235         (adjust_cost): Likewise.
19236         (adjust_priority): Likewise.
19237         (variable_issue): Likewise.
19238         (macro_fusion_pair_p): Likewise.
19239         (dfa_post_cycle_insn): Likewise.
19240         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
19241         (first_cycle_multipass_issue): Likewise.
19242         (dfa_new_cycle): Likewise.
19243         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
19244         (speculate_insn): Likewise for param "insn".
19245         (gen_spec_check): Likewise for params "insn" and "label".
19246         (get_insn_spec_ds): Likewise for param "insn".
19247         (get_insn_checked_ds): Likewise.
19248         (dispatch_do): Likewise.
19249         (dispatch): Likewise.
19250         (cannot_copy_insn_p): Likewise.
19251         (invalid_within_doloop): Likewise.
19252         (legitimate_combined_insn): Likewise.
19253         (needed): Likewise.
19254         (after): Likewise.
19256         * doc/tm.texi: Automatically updated to reflect changes to
19257         target.def.
19259         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
19260         working with insn.
19261         (schedule_block): Likewise.
19262         (sched_init): Likewise.
19263         (sched_speculate_insn): Strengthen param "insn" from rtx to
19264         rtx_insn *.
19265         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
19266         working with insn.
19267         * hooks.c (hook_bool_rtx_true): Rename to...
19268         hook_bool_rtx_insn_true): ...this, and strengthen first param from
19269         rtx to rtx_insn *.
19270         (hook_constcharptr_const_rtx_null): Rename to...
19271         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19272         first param from const_rtx to const rtx_insn *.
19273         (hook_bool_rtx_int_false): Rename to...
19274         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19275         param from rtx to rtx_insn *.
19276         (hook_void_rtx_int): Rename to...
19277         (hook_void_rtx_insn_int): ...this, and strengthen first param from
19278         rtx to rtx_insn *.
19280         * hooks.h (hook_bool_rtx_true): Rename to...
19281         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
19282         rtx to rtx_insn *.
19283         (hook_bool_rtx_int_false): Rename to...
19284         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19285         param from rtx to rtx_insn *.
19286         (hook_void_rtx_int): Rename to...
19287         (hook_void_rtx_insn_int): ...this, and strengthen first param from
19288         rtx to rtx_insn *.
19289         (hook_constcharptr_const_rtx_null): Rename to...
19290         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19291         first param from const_rtx to const rtx_insn *.
19293         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
19294         and local "prev" from rtx to rtx_insn *.
19296         * sched-int.h (sched_speculate_insn): Strengthen first param from
19297         rtx to rtx_insn *.
19299         * sel-sched.c (create_speculation_check): Likewise for local "label".
19300         * targhooks.c (default_invalid_within_doloop): Strengthen param
19301         "insn" from const_rtx to const rtx_insn *.
19302         * targhooks.h (default_invalid_within_doloop): Strengthen param
19303         from const_rtx to const rtx_insn *.
19305         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
19306         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
19308         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
19309         "insn".
19310         (arc_invalid_within_doloop): Likewise, with const.
19312         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
19313         (arm_cannot_copy_insn_p): Likewise for param "insn".
19314         (arm_unwind_emit): Likewise.
19316         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
19317         "dep_insn".
19319         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
19320         (c6x_variable_issue): Likewise.  Removed now-redundant checked
19321         cast.
19322         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
19324         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
19325         Likewise for param "insn".
19326         (epiphany_mode_after): Likewise.
19327         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
19328         params "insn", "dep_insn".
19329         (epiphany_mode_needed): Likewise for param "insn".
19330         (epiphany_mode_after): Likewise.
19332         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
19333         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19334         (ix86_avx_u128_mode_needed): Likewise.
19335         (ix86_i387_mode_needed): Likewise.
19336         (ix86_mode_needed): Likewise.
19337         (ix86_avx_u128_mode_after): Likewise.
19338         (ix86_mode_after): Likewise.
19339         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
19340         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
19341         (ix86_adjust_priority): Likewise for param "insn".
19342         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
19343         (do_dispatch): Likewise.
19344         (has_dispatch): Likewise.
19345         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
19347         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
19348         reflect renaming of default hook implementation from
19349         hook_constcharptr_const_rtx_null to
19350         hook_constcharptr_const_rtx_insn_null.
19351         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
19352         rtx to rtx_insn *.
19353         (ia64_variable_issue): Likewise for param "insn".
19354         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
19355         (ia64_dfa_new_cycle): Likewise.
19356         (ia64_get_insn_spec_ds): Likewise.
19357         (ia64_get_insn_checked_ds): Likewise.
19358         (ia64_speculate_insn): Likewise.
19359         (ia64_gen_spec_check): Likewise for params "insn", "label".
19360         (ia64_asm_unwind_emit): Likewise for param "insn".
19362         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
19364         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
19365         "insn", "def_insn".
19366         (m68k_sched_variable_issue): Likewise for param "insn".
19368         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
19369         "def_insn".
19371         * config/microblaze/microblaze.c (microblaze_adjust_cost):
19372         Likewise for params "insn", "dep".
19374         * config/mips/mips.c (mips_adjust_cost): Likewise.
19375         (mips_variable_issue): Likewise for param "insn".
19376         (mips_final_postscan_insn): Likewise.
19378         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
19379         for params "insn", "dep".
19381         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
19382         "dep_insn".
19383         (pa_adjust_priority): Likewise for param "insn".
19385         * config/picochip/picochip.c (picochip_sched_adjust_cost):
19386         Likewise for params "insn", "dep_insn".
19388         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
19389         param "insn".
19390         (rs6000_variable_issue): Likewise.
19391         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
19392         (rs6000_debug_adjust_cost): Likewise.
19393         (rs6000_adjust_priority): Likewise for param "insn".
19394         (rs6000_use_sched_lookahead_guard): Likewise.
19395         (get_next_active_insn): Likewise for return type and both params.
19396         (redefine_groups): Likewise for params "prev_head_insn", "tail"
19397         and locals "insn", "next_insn".
19398         (pad_groups): Likewise.
19400         * config/s390/s390.c (s390_adjust_priority): Likewise for param
19401         "insn".
19402         (s390_cannot_copy_insn_p): Likewise.
19403         (s390_sched_variable_issue): Likewise for third param, eliminating
19404         checked cast.
19405         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
19406         default hook implementation from hook_constcharptr_const_rtx_null
19407         to hook_constcharptr_const_rtx_insn_null.
19409         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
19410         from rtx to rtx_insn *.
19411         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
19412         (sh_variable_issue): Likewise for param "insn".
19413         (sh_dfa_new_cycle): Likewise.
19414         (sh_mode_needed): Likewise.
19415         (sh_mode_after): Likewise.
19417         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
19418         params "insn", "dep_insn".
19419         (hypersparc_adjust_cost): Likewise.
19420         (sparc_adjust_cost): Likewise.
19422         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
19423         param, eliminated checked cast.
19424         (spu_sched_adjust_cost): Likewise for first and third params.
19426         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
19427         params "insn" and "dep_insn" from rtx to rtx_insn *.
19429         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
19431 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19433         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
19434         (set_is_load_p): ...this, updating to work on a SET pattern rather
19435         than an insn.
19436         (is_store_insn): Rename to...
19437         (set_is_store_p): ...this, updating to work on a SET pattern
19438         rather than an insn.
19439         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
19440         top of function to where it is needed.  Rewrite the bogus
19441         condition that checks for "insn" and "dep" being PARALLEL to
19442         instead use single_set, introducing locals "insn_set" and
19443         "dep_set".  Given that we only ever returned "cost" for a non-pair
19444         of SETs, bail out early if we don't have a pair of SET.
19445         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
19446         use the new locals "insn_set" and "dep_set", and update calls to
19447         is_load_insn and is_store_insn to be calls to set_is_load_p and
19448         set_is_store_p.
19450 2014-08-27  Guozhi Wei  <carrot@google.com>
19452         PR target/62262
19453         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
19454         amount before using it.
19456 2014-08-27  Richard Biener  <rguenther@suse.de>
19458         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
19459         get_maxval_strlen inside a more useful API.
19460         (gimple_fold_builtin_with_strlen): Remove and fold into ...
19461         (gimple_fold_builtin): ... caller.
19462         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
19463         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
19464         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
19465         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
19466         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
19467         gimple_fold_builtin_sprintf): Adjust to compute maxval
19468         themselves.
19470 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
19472         PR other/62248
19473         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
19475 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19477             Anna Tikhonova  <anna.tikhonova@intel.com>
19478             Ilya Tocar  <ilya.tocar@intel.com>
19479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19480             Ilya Verbin  <ilya.verbin@intel.com>
19481             Kirill Yukhin  <kirill.yukhin@intel.com>
19482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19484         * config/i386/sse.md
19485         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
19486         Use `concat_tg_mode' attribute to determine asm register size.
19488 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19489             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19490             Anna Tikhonova  <anna.tikhonova@intel.com>
19491             Ilya Tocar  <ilya.tocar@intel.com>
19492             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19493             Ilya Verbin  <ilya.verbin@intel.com>
19494             Kirill Yukhin  <kirill.yukhin@intel.com>
19495             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19497         * config/i386/sse.md
19498         (define_mode_iterator VI48_AVX512VL): New.
19499         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
19500         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
19501         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
19502         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19503         with VI1): Change mode iterator.
19504         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19505         with VI_ULOADSTORE_BW_AVX512VL): New.
19506         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19507         with VI_ULOADSTORE_F_AVX512VL): Ditto.
19508         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19509         with VI1): Change mode iterator.
19510         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19511         with VI_ULOADSTORE_BW_AVX512VL): New.
19512         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19513         with VI_ULOADSTORE_F_AVX512VL): Ditto.
19514         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19515         with VI1): Change mode iterator.
19516         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19517         with VI_ULOADSTORE_BW_AVX512VL): New.
19518         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19519         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
19520         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
19521         (define_insn "<avx512>_storedqu<mode>_mask" with
19522         VI48_AVX512VL): New.
19523         (define_insn "<avx512>_storedqu<mode>_mask" with
19524         VI12_AVX512VL): Ditto.
19526 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19527             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19528             Anna Tikhonova  <anna.tikhonova@intel.com>
19529             Ilya Tocar  <ilya.tocar@intel.com>
19530             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19531             Ilya Verbin  <ilya.verbin@intel.com>
19532             Kirill Yukhin  <kirill.yukhin@intel.com>
19533             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19535         * config/i386/sse.md
19536         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
19537         (define_mode_iterator VI48_AVX512BW): New.
19538         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
19539         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
19540         with VI48_AVX2_48_AVX512F): New.
19541         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
19542         with VI2_AVX512VL): Ditto.
19544 2014-08-27  Richard Biener  <rguenther@suse.de>
19546         PR middle-end/62239
19547         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
19548         (fold_builtin_3): Do not fold strcat_chk here.
19549         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
19550         from builtins.c.
19551         (gimple_fold_builtin): Fold strcat_chk here.
19553 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
19555         * dwarf2out.h (dwarf2out_decl): Remove prototype.
19556         * dwarf2out.c (dwarf2out_decl): Make static.
19558 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
19560         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
19562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19564         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
19565         from rtx to rtx_insn *.
19566         (cselib_lookup_from_insn): Likewise for final param.
19567         (cselib_subst_to_values_from_insn): Likewise.
19568         (cselib_add_permanent_equiv): Likewise.
19570         * cselib.c (cselib_current_insn): Likewise for this variable.
19571         (cselib_subst_to_values_from_insn): Likewise for param "insn".
19572         (cselib_lookup_from_insn): Likewise.
19573         (cselib_add_permanent_equiv): Likewise for param "insn" and local
19574         "save_cselib_current_insn".
19575         (cselib_process_insn): Replace use of NULL_RTX with NULL.
19577         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
19578         from rtx to rtx_insn *.
19580 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19582         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
19583         rtx_insn *.
19585 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19587         * df.h (df_dump_insn_problem_function): Strengthen first param of
19588         this callback from const_rtx to const rtx_insn *.
19589         (struct df_insn_info): Strengthen field "insn" from rtx to
19590         rtx_insn *.
19591         (DF_REF_INSN): Eliminate this function, reinstating the older
19592         macro definition.
19593         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
19594         (df_reg_defined): Likewise.
19595         (df_find_use): Likewise.
19596         (df_reg_used): Likewise.
19597         (df_dump_insn_top): Strengthen param 1 from const_rtx to
19598         const rtx_insn *.
19599         (df_dump_insn_bottom): Likewise.
19600         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
19601         (df_insn_debug_regno): Likewise.
19602         (debug_df_insn): Likewise.
19603         (df_rd_simulate_one_insn): Likewise for param 2.
19604         (df_word_lr_simulate_defs): Likewise for param 1.
19605         (df_word_lr_simulate_uses): Likewise.
19606         (df_md_simulate_one_insn): Likewise for param 2.
19607         (df_simulate_find_noclobber_defs): Likewise for param 1.
19608         (df_simulate_find_defs): Likewise.
19609         (df_simulate_defs): Likewise.
19610         (df_simulate_uses): Likewise.
19611         (df_simulate_one_insn_backwards): Likewise for param 2.
19612         (df_simulate_one_insn_forwards): Likewise.
19613         (df_uses_create): Likewise for param 2.
19614         (df_insn_create_insn_record): Likewise for param 1.
19615         (df_insn_delete): Likewise.
19616         (df_insn_rescan): Likewise.
19617         (df_insn_rescan_debug_internal): Likewise.
19618         (df_insn_change_bb): Likewise.
19619         (df_notes_rescan): Likewise.
19620         * rtl.h (remove_death): Likewise for param 2.
19621         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
19622         const rtx_insn *.
19623         * sched-int.h (reemit_notes): Strengthen param from rtx to
19624         rtx_insn *.
19625         * valtrack.h (propagate_for_debug): Likewise for param 1.
19627         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
19628         local "tmp_rtx" from const_rtx to const rtx_insn *.
19629         * combine.c (remove_death): Strengthen param "insn" from rtx to
19630         rtx_insn *.
19631         (move_deaths): Likewise for local "where_dead".
19632         * cse.c (delete_trivially_dead_insns): Introduce local
19633         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
19634         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
19635         rtx_insn *.
19636         (df_reg_defined): Likewise.
19637         (df_find_use): Likewise.
19638         (df_reg_used): Likewise.
19639         (df_dump_insn_problem_data): Strengthen param "insn" from
19640         const_rtx to const rtx_insn *.
19641         (df_dump_insn_top): Likewise.
19642         (df_dump_insn_bottom): Likewise.
19643         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
19644         (df_insn_debug_regno): Likewise.
19645         (debug_df_insn): Likewise.
19646         (DF_REF_INSN): Delete.
19647         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
19648         from rtx to rtx_insn *.
19649         (df_chain_insn_top_dump): Strengthen param "insn" from
19650         const_rtx to const rtx_insn *.
19651         (df_chain_insn_bottom_dump): Likewise.
19652         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
19653         rtx_insn *.
19654         (df_word_lr_simulate_uses): Likewise.
19655         (df_print_note): Likewise.
19656         (df_remove_dead_and_unused_notes): Likewise.
19657         (df_set_unused_notes_for_mw): Likewise.
19658         (df_set_dead_notes_for_mw): Likewise.
19659         (df_create_unused_note): Likewise.
19660         (df_simulate_find_defs): Likewise.
19661         (df_simulate_find_uses): Likewise.
19662         (df_simulate_find_noclobber_defs): Likewise.
19663         (df_simulate_defs): Likewise.
19664         (df_simulate_uses): Likewise.
19665         (df_simulate_one_insn_backwards): Likewise.
19666         (df_simulate_one_insn_forwards): Likewise.
19667         (df_md_simulate_one_insn): Likewise.
19668         * df-scan.c (df_uses_create): Likewise.
19669         (df_insn_create_insn_record): Likewise.
19670         (df_insn_delete): Likewise.
19671         (df_insn_rescan): Likewise.
19672         (df_insn_rescan_debug_internal): Likewise.
19673         (df_insn_change_bb): Likewise.
19674         (df_notes_rescan): Likewise.
19675         (df_refs_add_to_chains): Likewise.
19676         (df_insn_refs_verify): Likewise.
19677         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
19678         when invoking df_insn_delete.
19679         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
19680         (set_unique_reg_note): Add checked cast.
19681         * final.c (cleanup_subreg_operands): Likewise.
19682         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
19683         "insn" from rtx to rtx_insn *.
19684         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
19685         "last" from rtx to rtx_insn *.
19686         * ira-emit.c (change_regs_in_insn): New function.
19687         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
19688         Invoke change_regs_in_insn rather than change_regs.
19689         * ira.c (update_equiv_regs): Strengthen locals "insn",
19690         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
19691         for_each_rtx_in_insn rather than for_each_rtx.
19692         * recog.c (confirm_change_group): Add checked casts.
19693         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
19694         Add checked cast.
19695         (peep2_fill_buffer): Add checked cast.
19696         * rtlanal.c (remove_note): Likewise.
19697         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
19698         locals "next" "end" from rtx to rtx_insn *.
19700 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19702         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
19703         to rtx_insn *.
19704         (struct reg_use_data): Likewise for field "insn".
19705         (insn_cost): Likewise for param.
19706         (real_insn_for_shadow): Likewise for return type and param.
19707         (increase_insn_priority): Likewise for param 1.
19708         (debug_dependencies): Likewise for both params.
19710         * haifa-sched.c (insn_delay): Likewise for param "insn".
19711         (real_insn_for_shadow): Likewise for return type and param "insn".
19712         (update_insn_after_change): Likewise for param "insn".
19713         (recompute_todo_spec): Likewise for param "next" and locals "pro",
19714         "other".
19715         (insn_cost): Likewise for param "insn".
19716         (increase_insn_priority): Likewise.
19717         (calculate_reg_deaths): Likewise.
19718         (setup_insn_reg_pressure_info): Likewise.
19719         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
19720         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
19721         (model_recompute): Likewise.
19722         (must_restore_pattern_p): Likewise for param "next".
19723         (model_excess_cost): Likewise for param "insn".
19724         (queue_remove): Likewise.
19725         (adjust_priority): Likewise for param "prev".
19726         (update_register_pressure): Likewise for param "insn".
19727         (setup_insn_max_reg_pressure): Likewise for local "insn".
19728         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
19729         (model_add_to_schedule): Likewise.
19730         (model_reset_queue_indices): Likewise for local "insn".
19731         (unschedule_insns_until): Strengthen local "recompute_vec" from
19732         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
19733         "con" from rtx to rtx_insn *.
19734         (restore_last_backtrack_point): Likewise for both locals "x". Add
19735         checked casts.
19736         (estimate_insn_tick): Likewise for param "insn".
19737         (commit_schedule): Likewise for params "prev_head", "tail" and
19738         local "x".
19739         (verify_shadows): Likewise for locals "i1", "i2".
19740         (dump_insn_stream): Likewise for params "head", "tail" and locals
19741         "next_tail", "insn".
19742         (schedule_block): Likewise for locals "insn", "x".  Add a checked
19743         cast.
19744         (fix_inter_tick): Likewise for params "head", "tail".
19745         (create_check_block_twin): Likewise for local "jump".
19746         (haifa_change_pattern): Likewise for param "insn".
19747         (haifa_speculate_insn): Likewise.
19748         (dump_new_block_header): Likewise for params "head", "tail".
19749         (fix_jump_move): Likewise for param "jump".
19750         (move_block_after_check): Likewise.
19751         (sched_init_insn_luid): Likewise for param "insn".
19752         (sched_init_luids): Likewise for local "insn".
19753         (insn_luid): Likewise for param "insn".
19754         (init_h_i_d): Likewise.
19755         (haifa_init_h_i_d): Likewise for local "insn".
19756         (haifa_init_insn): Likewise for param "insn".
19757         * sched-deps.c (add_dependence): Likewise for local "real_pro",
19758         "other".
19759         (create_insn_reg_use): Likewise for param "insn".
19760         (setup_insn_reg_uses): Likewise.  Add a checked cast.
19761         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
19762         "tail" from rtx to rtx_insn *.
19763         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
19764         "insn", "next_tail".
19766 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19768         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
19769         from rtx to rtx_insn *.
19770         (model_add_to_schedule): Likewise for locals "start", "end",
19771         "iter".
19773 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19775         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
19776         rtx_insn *.
19777         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
19778         "to" and locals "insn", "next", "copy".  Remove now-redundant
19779         checked cast.
19781 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19783         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
19784         rtx_insn * and param 4 from rtx * to rtx_insn **.
19785         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
19786         param 2 from rtx * to rtx_insn **.
19788         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
19789         rtx_insn * and final param from rtx * to rtx_insn **.
19791         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
19792         from rtx to rtx_insn *.
19793         (try_head_merge_bb): Likewise for both locals named "move_upto".
19794         * df-problems.c (can_move_insns_across): Likewise for params
19795         "from", "to", "across_from", "across_to" and locals "insn",
19796         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
19797         rtx_insn **.
19798         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
19799         from rtx to rtx_insn *.
19800         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
19801         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
19802         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
19803         rtx_insn *.
19804         (noce_try_abs): Likewise.
19805         (noce_get_condition): Likewise for param "jump".  Strengthen param
19806         "earliest" from rtx * to rtx_insn **.
19807         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
19808         rtx_insn *.
19809         (find_cond_trap): Likewise.
19810         (dead_or_predicable): Likewise for local "earliest".
19811         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
19812         checked cast.
19813         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
19814         and local "prev".  Strengthen param "earliest" from rtx * to
19815         rtx_insn **.
19816         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
19817         Strengthen param "earliest" from rtx * to rtx_insn **.
19819 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19821         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
19822         "to" and local "insn" from rtx to rtx_insn *.
19824 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19826         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
19827         from rtx to rtx_insn *.
19828         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
19829         (code_motion_path_driver): Likewise for local "last_insn".
19830         (simplify_changed_insns): Likewise for local "insn".
19832 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19834         * rtl.h (push_to_sequence): Strengthen param from rtx to
19835         rtx_insn *.
19836         (push_to_sequence2): Likewise for both params.
19837         (delete_insns_since): Likewise for param.
19838         (reorder_insns_nobb): Likewise for all three params.
19839         (set_new_first_and_last_insn): Likewise for both params.
19841         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
19842         rtx_insn *.  Remove now-redundant cast.
19843         (set_last_insn): Likewise.
19845         * builtins.c (expand_builtin_return): Strengthen local
19846         "call_fusage" from rtx to rtx_insn *.
19847         * cfgrtl.c (create_basic_block_structure): Likewise for local
19848         "after".
19849         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
19850         "first", "last" and local "insn".
19851         (delete_insns_since): Likewise for param "from".
19852         (reorder_insns_nobb): Likewise for params "from", "to", "after"
19853         and local "x".
19854         (push_to_sequence): Likewise for param "first" and local "last".
19855         (push_to_sequence2): Likewise for params "first" and "last".
19856         * lra.c (emit_add3_insn): Likewise for local "last".
19857         (lra_emit_add): Likewise.
19858         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
19859         "last_insn".
19860         (process_address_1): Likewise for locals "insn", last".
19861         * modulo-sched.c (ps_first_note): Likewise for return type.
19862         * optabs.c (expand_binop_directly): Likewise for param "last".
19864 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19866         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
19867         to rtx_insn*.
19868         * emit-rtl.c (get_last_insn_anywhere): Likewise.
19870 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19872         * function.h (struct sequence_stack): Strengthen fields "first"
19873         and "last" from rtx to rtx_insn *.
19874         (struct emit_status): Likewise for fields "x_first_insn" and
19875         "x_last_insn".
19877         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
19878         (set_first_insn): Add checked cast.
19879         (get_last_insn): Remove now-redundant checked cast.
19880         (set_last_insn): Add checked cast.
19882         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
19883         "saved_first" and "saved_last" from rtx to rtx_insn *.
19885 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19887         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
19888         (unlink_insn_chain): Strengthen both params from rtx to
19889         rtx_insn *.
19891         * cfgrtl.c (cfg_layout_function_header): Likewise for this
19892         variable.
19893         (unlink_insn_chain): Likewise for params "first" and "last".
19894         Remove now-redundant checked cast.
19895         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
19896         (fixup_reorder_chain): Strengthen local "insn" from rtx to
19897         rtx_insn *.
19898         * emit-rtl.c (link_insn_into_chain): Likewise for all three
19899         params.
19900         (add_insn): Likewise for param "insn" and local "prev".
19901         (add_insn_after_nobb): Likewise for both params and local "next".
19902         (add_insn_before_nobb): Likewise for both params and local "prev".
19903         (add_insn_after): Rename param "after" to "uncast_after",
19904         introducing local "after" with another checked cast.
19905         (add_insn_before): Rename params "insn" and "before", giving them
19906         "uncast_" prefixes, adding the old names back using checked casts.
19907         (emit_note_after): Likewise for param "after".
19908         (emit_note_before): Likewise for param "before".
19909         (emit_label): Add a checked cast.
19911 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19913         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
19914         "insn" from rtx to rtx_insn *.
19916         * cselib.c (cselib_record_sets_hook): Likewise.
19918         * var-tracking.c (add_with_sets): Likewise, renaming back from
19919         "uncast_insn" to "insn" and eliminating the checked cast from rtx
19920         to rtx_insn *.
19922 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
19924         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
19925         and "header_" from rtx to rtx_insn *.
19926         (struct basic_block_d): Likewise for field "head_" within "x"
19927         field of union basic_block_il_dependent.
19928         (BB_HEAD): Drop function...
19929         (SET_BB_HEAD): ...and this function in favor of...
19930         (BB_HEAD): ...reinstate macro.
19931         (BB_END): Drop function...
19932         (SET_BB_END): ...and this function in favor of...
19933         (BB_END): ...reinstate macro.
19934         (BB_HEADER): Drop function...
19935         (SET_BB_HEADER): ...and this function in favor of...
19936         (BB_HEADER): ...reinstate macro.
19938         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
19939         (fix_crossing_unconditional_branches): Likewise.
19940         * caller-save.c (save_call_clobbered_regs): Likewise.
19941         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
19942         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
19943         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
19944         (merge_blocks_move_successor_nojumps): Likewise.
19945         (outgoing_edges_match): Update use of for_each_rtx to
19946         for_each_rtx_in_insn.
19947         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
19948         (expand_gimple_cond): Likewise.
19949         (expand_gimple_tailcall): Likewise.
19950         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
19951         SET_BB_END.
19952         (construct_exit_block): Drop use of SET_BB_END.
19953         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
19954         rtx_insn *.
19955         (delete_insn): Rename param "insn" to "uncast_insn", introducing
19956         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
19957         SET_BB_HEAD and SET_BB_END.
19958         (create_basic_block_structure): Drop use of SET_BB_HEAD and
19959         SET_BB_END.
19960         (rtl_delete_block): Drop use of SET_BB_HEAD.
19961         (rtl_split_block): Drop use of SET_BB_END.
19962         (emit_nop_for_unique_locus_between): Likewise.
19963         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
19964         (block_label): Drop use of SET_BB_HEAD.
19965         (fixup_abnormal_edges): Drop use of SET_BB_END.
19966         (record_effective_endpoints): Drop use of SET_BB_HEADER.
19967         (relink_block_chain): Likewise.
19968         (fixup_reorder_chain): Drop use of SET_BB_END.
19969         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
19970         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
19971         rtx_insn **.  Drop use of SET_BB_HEADER.
19972         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
19973         SET_BB_HEAD.
19974         (BB_HEAD): Delete this function.
19975         (SET_BB_HEAD): Likewise.
19976         (BB_END): Likewise.
19977         (SET_BB_END): Likewise.
19978         (BB_HEADER): Likewise.
19979         (SET_BB_HEADER): Likewise.
19980         * emit-rtl.c (add_insn_after):  Rename param "insn" to
19981         "uncast_insn", adding a new local "insn" and a checked cast to
19982         rtx_insn *.  Drop use of SET_BB_END.
19983         (remove_insn): Strengthen locals "next" and "prev" from rtx to
19984         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
19985         (reorder_insns): Drop use of SET_BB_END.
19986         (emit_insn_after_1): Strengthen param "first" and locals "last",
19987         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
19988         (emit_pattern_after_noloc): Add checked cast.
19989         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
19990         (restore_other_notes): Likewise.
19991         (move_insn): Likewise.
19992         (sched_extend_bb): Likewise.
19993         (fix_jump_move): Likewise.
19994         * ifcvt.c (noce_process_if_block): Likewise.
19995         (dead_or_predicable): Likewise.
19996         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
19997         * reg-stack.c (change_stack): Drop use of SET_BB_END.
19998         * sel-sched-ir.c (sel_move_insn): Likewise.
19999         * sel-sched.c (move_nop_to_previous_block): Likewise.
20001         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
20002         SET_BB_END.
20003         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
20005 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20007         * basic-block.h (create_basic_block_structure): Strengthen params
20008         1 "head" and 2 "end" from rtx to rtx_insn *.
20009         * cfgrtl.c (create_basic_block_structure): Likewise.
20010         (rtl_create_basic_block): Update casts from void * to rtx to
20011         rtx_insn *, so that we can pass them as rtx_insn * to
20012         create_basic_block_structure.
20013         * sel-sched-ir.c (sel_create_basic_block): Likewise.
20015 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20017         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
20018         rtx_insn **.
20019         (check_for_inc_dec): Strengthen param "insn" from rtx to
20020         rtx_insn *.
20022         * cselib.h (cselib_process_insn): Likewise.
20024         * cselib.c (cselib_record_sets): Likewise.
20025         (cselib_process_insn): Likewise.
20027         * dse.c (struct insn_info): Likewise for field "insn".
20028         (check_for_inc_dec_1): Likewise for local "insn".
20029         (check_for_inc_dec): Likewise for param "insn".
20030         (scan_insn): Likewise.
20031         (dse_step1): Likewise for local "insn".
20033         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
20034         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
20036 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20038         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
20039         from rtx to rtx_insn *.
20040         (DEP_PRO): Delete this function and...
20041         (SET_DEP_PRO): ...this function in favor of...
20042         (DEP_PRO): ...reinstate this macro.
20043         (DEP_CON): Delete this function and...
20044         (SET_DEP_CON): ...this function in favor of...
20045         (DEP_CON): ...reinstate this old macro.
20046         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
20047         (init_dep): Likewise.
20048         (set_priorities): Likewise for both params.
20049         (sd_copy_back_deps): Likewise for params 1 and 2.
20051         * haifa-sched.c (priority): Likewise for param "insn" and local
20052         "next".
20053         (set_priorities): Likewise for params "head" and "tail" and local
20054         "insn".
20055         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
20056         local "consumer".
20057         (add_to_speculative_block): Add a checked cast.
20058         (create_check_block_twin): Drop use of SET_DEP_CON.
20059         (add_jump_dependencies): Strengthen params "insn" and "jump" from
20060         rtx to rtx_insn *.
20062         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
20063         Drop use of SET_DEP_PRO
20064         (init_dep): Strengthen params "pro" and "con" from rtx to
20065         rtx_insn *.
20066         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
20067         use of SET_DEP_CON.
20068         (DEP_PRO): Delete.
20069         (DEP_CON): Delete.
20070         (SET_DEP_PRO): Delete.
20071         (SET_DEP_CON): Delete.
20073 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20075         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
20076         from rtx to rtx_insn *.
20077         (VINSN_INSN_RTX): Eliminate rvalue function and...
20078         (SET_VINSN_INSN): ...lvalue function in favor of...
20079         (VINSN_INSN_RTX): reinstate this old macro.
20081         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
20082         in favor of VINSN_INSN_RTX.
20083         (VINSN_INSN_RTX): Delete this function.
20084         (SET_VINSN_INSN_RTX): Likewise.
20086 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20088         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
20089         (BND_TO): Delete this function and...
20090         (SET_BND_TO): ...this functions in favor of...
20091         (BND_TO): ...reinstating this macro.
20092         (struct _fence): Strengthen field "executing_insns" from
20093         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
20094         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
20095         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
20096         and param "insn" from rtx to insn_t.
20097         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
20098         rtx_insn *.
20100         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
20101         vec<rtx_insn *> .
20102         (rtx_vec_t): Likewise.
20103         (struct sched_deps_info_def): Strengthen param of "start_insn"
20104         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
20105         "note_mem_dep" callback and first param of "note_dep" callback.
20107         * haifa-sched.c (add_to_speculative_block): Strengthen param
20108         "insn" from rtx to rtx_insn *.
20109         (clear_priorities): Likewise.
20110         (calc_priorities): Likewise for local "insn".
20112         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
20113         Remove redundant checked cast.
20114         (haifa_note_mem_dep): Likewise for param "pending_insn".
20115         (haifa_note_dep): Likewise for param "elem".
20116         (note_mem_dep): Likewise for param "e".
20117         (sched_analyze_1): Add checked casts.
20118         (sched_analyze_2): Likewise.
20120         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
20121         from rtx to rtx_insn *.
20122         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
20123         from vec<rtx> * to vec<rtx_insn *> *.
20125         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
20126         scaffolding.
20127         (flist_add): Strengthen param "executing_insns" from
20128         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20129         (advance_deps_context): Remove now-redundant checked cast.
20130         (init_fences): Replace uses of NULL_RTX with NULL.
20131         (merge_fences): Strengthen params "last_scheduled_insn" and
20132         "sched_next" from rtx to rtx_insn * and "executing_insns" from
20133         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20134         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
20135         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
20136         an instruction, rather than doing double-duty as a pattern.
20137         (return_nop_to_pool): Update for change of insn_t.
20138         (deps_init_id): Remove now-redundant checked cast.
20139         (struct sched_scan_info_def): Strengthen param of "init_insn"
20140         callback from rtx to insn_t.
20141         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
20142         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
20143         NULL.
20144         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
20145         "end" from rtx to rtx_insn *.
20146         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
20147         (rtx insn_rtx, bool force_unique_p)
20148         (BND_TO): Delete function.
20149         (SET_BND_TO): Delete function.
20151         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
20152         rtx to rtx_insn *.
20153         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
20154         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
20155         rtx to rtx_insn *.
20156         (undo_transformations): Likewise for param "insn".
20157         (update_liveness_on_insn): Likewise.
20158         (compute_live_below_insn): Likewise for param "insn" and local
20159         "succ".
20160         (update_data_sets): Likewise for param "insn".
20161         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
20162         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
20163         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
20164         rtx_insn *.
20165         (move_cond_jump): Likewise for param "insn".
20166         (move_cond_jump): Drop use of SET_BND_TO.
20167         (compute_av_set_on_boundaries): Likewise.
20168         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
20169         (update_and_record_unavailable_insns): Strengthen local "bb_end"
20170         from rtx to rtx_insn *.
20171         (maybe_emit_renaming_copy): Likewise for param "insn".
20172         (maybe_emit_speculative_check): Likewise.
20173         (handle_emitting_transformations): Likewise.
20174         (remove_insn_from_stream): Likewise.
20175         (code_motion_process_successors): Strengthen local "succ" from rtx
20176         to insn_t.
20178 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20180         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
20181         ilist_t, not _xlist_t;
20182         (ILIST_INSN): Define in terms of new union field "insn".
20183         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
20184         _XLIST_NEXT.
20185         (struct _list_node): Add new field "insn" to the union, of type
20186         insn_t.
20187         (ilist_add): Replace macro with an inline function, requiring an
20188         insn_t.
20189         (ilist_remove): Define this macro directly in terms of
20190         _list_remove, rather than indirectly via _xlist_remove.
20191         (ilist_clear): Likewise, in terms of _list_clear rather than
20192         _xlist_clear.
20193         (ilist_is_in_p): Replace macro with an inline function, requiring
20194         an insn_t.
20195         (_list_iter_cond_insn): New function.
20196         (ilist_iter_remove): Define this macro directly in terms of
20197         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
20198         (ilist_iterator): Define directly in terms of _list_iterator
20199         rather than indirectly through _xlist_iterator.
20200         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
20201         than in terms of _FOR_EACH_X.
20202         (FOR_EACH_INSN_1): Likewise.
20204 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
20206         PR target/60606
20207         PR target/61330
20208         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
20209         DECL_HARD_REGISTER and return for invalid register specifications.
20210         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
20211         DECL_HARD_REGISTER, call expand_one_error_var.
20212         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
20213         CC_REGNUM with non-MODE_CC modes.
20214         (arm_regno_class): Return NO_REGS for PC_REGNUM.
20216 2014-08-26  Marek Polacek  <polacek@redhat.com>
20218         PR c/61271
20219         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
20221 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
20223         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
20224         qi cost; add di cost.
20225         (cortexa57_addrcost_table): Likewise.
20227 2014-08-26  Marek Polacek  <polacek@redhat.com>
20229         PR c/61271
20230         * expr.c (is_aligning_offset): Remove logical not.
20232 2014-08-26  Marek Polacek  <polacek@redhat.com>
20234         PR c/61271
20235         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
20236         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
20238 2014-08-26  Richard Biener  <rguenther@suse.de>
20240         PR tree-optimization/62175
20241         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20242         expand possibly trapping operations.
20244 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20246         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
20247         "insn" from rtx to rtx_insn *.
20248         (permute_load): Likewise for param "insn".
20249         (permute_store): Likewise.
20250         (handle_special_swappables): Likewise for local "insn".
20251         (replace_swap_with_copy): Likewise for locals "insn" and
20252         "new_insn".
20253         (rs6000_analyze_swaps): Likewise for local "insn".
20255 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20257         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
20258         to rtx_insn *.
20260 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20262         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
20263         "note_list" from rtx to rtx_insn *.
20264         (BB_NOTE_LIST): Replace this function and...
20265         (SET_BB_NOTE_LIST): ...this function with...
20266         (BB_NOTE_LIST): ...the former macro implementation.
20268         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
20269         local "from_start" from rtx to rtx_insn *.  Strengthen param
20270         "to_endp" from rtx * to rtx_insn **.
20272         * haifa-sched.c (concat_note_lists): Likewise.
20273         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
20274         BB_NOTE_LIST.
20275         (sel_restore_notes): Likewise.
20276         (move_bb_info): Likewise.
20277         (BB_NOTE_LIST): Delete this function.
20278         (SET_BB_NOTE_LIST): Delete this function.
20279         * sel-sched.c (create_block_for_bookkeeping): Eliminate
20280         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
20282 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20284         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
20285         from rtx * to rtx_insn **.
20286         (reorder2): Likewise.
20287         (dependencies_evaluation_hook): Strengthen params "head", "tail"
20288         from rtx to rtx_insn *.
20290         * doc/tm.texi: Update mechanically for above change to target.def.
20292         * sched-int.h (note_list): Strengthen this variable from rtx to
20293         rtx_insn *.
20294         (remove_notes): Likewise for both params.
20295         (restore_other_notes): Likewise for return type and first param.
20296         (struct ready_list): Strengthen field "vec" from rtx * to
20297         rtx_insn **.
20298         (struct dep_replacement): Strenghten field "insn" from rtx to
20299         rtx_insn *.
20300         (struct deps_desc): Likewise for fields "last_debug_insn",
20301         "last_args_size".
20302         (struct haifa_sched_info): Likewise for callback field
20303         "can_schedule_ready_p"'s param, for first param of "new_ready"
20304         callback field, for both params of "rank" callback field, for
20305         first field of "print_insn" callback field (with a const), for
20306         both params of "contributes_to_priority" callback, for param
20307         of "insn_finishes_block_p" callback, for fields "prev_head",
20308         "next_tail", "head", "tail", for first param of "add_remove_insn"
20309         callback, for first param of "begin_schedule_ready" callback, for
20310         both params of "begin_move_insn" callback, and for second param
20311         of "advance_target_bb" callback.
20312         (add_dependence): Likewise for params 1 and 2.
20313         (sched_analyze): Likewise for params 2 and 3.
20314         (deps_analyze_insn): Likewise for param 2.
20315         (ready_element): Likewise for return type.
20316         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20317         (try_ready): Strenghten param from rtx to rtx_insn *.
20318         (sched_emit_insn): Likewise for return type.
20319         (record_delay_slot_pair): Likewise for params 1 and 2.
20320         (add_delay_dependencies): Likewise for param.
20321         (contributes_to_priority): Likewise for both params.
20322         (find_modifiable_mems): Likewise.
20324         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
20325         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
20326         "first_older_only_insn" from rtx to rtx_insn *.
20327         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
20328         rtx_insn **.
20330         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
20331         "last_scheduled_iter0" from rtx to rtx_insn *.
20332         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
20333         (c6x_sched_reorder_1): Strengthen param "ready" and locals
20334         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
20335         "insn" from rtx to rtx_insn *.
20336         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
20337         rtx_insn **.
20338         (c6x_sched_reorder2): Strengthen param "ready" and locals
20339         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
20340         "insn" from rtx to rtx_insn *.
20341         (c6x_variable_issue):  Add a checked cast when assigning from insn
20342         to ss.last_scheduled_iter0.
20343         (split_delayed_branch): Strengthen param "insn" and local "i1"
20344         from rtx to rtx_insn *.
20345         (split_delayed_nonbranch): Likewise.
20346         (undo_split_delayed_nonbranch): Likewise for local "insn".
20347         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
20348         "entry_after", "end_packet", "head_insn", "tail_insn",
20349         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
20350         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
20351         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
20352         but add a checked cast on loop->start_label.  Consolidate calls to
20353         avoid assigning result of gen_spkernel to "insn", now an
20354         rtx_insn *.
20356         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
20357         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
20358         rtx to rtx_insn *.
20359         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
20360         rtx_insn **.  Strengthen locals "top", "next" from rtx to
20361         rtx_insn *.
20362         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
20363         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
20364         (add_parameter_dependencies): Strengthen params "call", "head" and
20365         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
20366         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
20367         (add_dependee_for_func_arg): Likewise for param "arg" and local
20368         "insn".
20369         (ix86_dependencies_evaluation_hook): Likewise for params "head",
20370         "tail" and locals "insn", "first_arg".
20372         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
20373         for params "head", "tail" and locals "insn", "next", "next_tail".
20374         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
20375         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
20376         "insn", "lowest", "highest" from rtx to rtx_insn *.
20377         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
20378         rtx_insn **.
20379         (ia64_sched_reorder2): Likewise.
20381         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
20382         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
20383         from rtx * to rtx_insn **.
20384         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
20385         rtx_insn **.
20386         (mep_print_sched_insn): Strengthen param "insn" from rtx to
20387         rtx_insn *.
20388         (mep_sched_reorder): Strengthen param "ready" from rtx * to
20389         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
20390         to rtx_insn *.
20392         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
20393         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
20394         to rtx_insn *.
20395         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
20396         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
20397         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
20398         rtx_insn **.
20399         (vr4130_reorder): Likewise.
20400         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
20401         rtx to rtx_insn *.
20402         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
20403         rtx_insn **.
20404         (mips_sched_reorder): Likewise.
20405         (mips_sched_reorder2): Likewise.
20407         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
20409         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
20410         Strengthen local "tmp" from rtx to rtx_insn *.
20411         (rs6000_sched_reorder2): Likewise.
20413         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
20414         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
20415         (s390_sched_reorder): Strengthen param "ready" from rtx * to
20416         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
20418         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
20419         "tmp2" from rtx to rtx_insn *.
20420         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
20421         Strengthen local "insn" from rtx to rtx_insn *.
20422         (ready_reorder): Strengthen param "ready" from rtx * to
20423         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
20424         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
20425         (sh_reorder2): Likewise.
20427         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
20428         local "insn" from rtx to rtx_insn *.
20430         * haifa-sched.c (note_list): Strengthen this variable from rtx to
20431         rtx_insn *.
20432         (scheduled_insns): Strengthen this variable from vec<rtx> to
20433         vec<rtx_insn *>.
20434         (set_modulo_params): Likewise for locals "i1", "i2".
20435         (record_delay_slot_pair): Likewise for params "i1", "i2".
20436         (add_delay_dependencies): Likewise for param "insn".
20437         (cond_clobbered_p): Likewise.
20438         (recompute_todo_spec): Likewise for local "prev".
20439         (last_scheduled_insn): Likewise for this variable.
20440         (nonscheduled_insns_begin): Likewise.
20441         (model_set_excess_costs): Strengthen param "insns" from rtx * to
20442         rtx_insn **.
20443         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
20444         rtx_insn *.
20445         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
20446         Strengthen local "insn" from rtx to rtx_insn *.
20447         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
20448         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20449         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
20450         (ready_remove_first): Likewise for return type and local "t".
20451         (ready_element): Likewise for return type.
20452         (ready_remove): Likewise for return type and local "t".
20453         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
20454         (check_clobbered_conditions): Strengthen local "x" from rtx to
20455         rtx_insn *, adding a checked cast.
20456         (schedule_insn): Likewise for param "insn".
20457         (remove_notes): Likewise for params "head", "tail" and locals
20458         "next_tail", "insn", "next".
20459         (struct haifa_saved_data): Likewise for fields
20460         "last_scheduled_insn", "nonscheduled_insns_begin".
20461         (save_backtrack_point): Update for change to field "vec" of
20462         struct ready_list.
20463         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
20464         rtx_insn **.
20465         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
20466         from rtx to rtx_insn *
20467         (resolve_dependencies): Strengthen param "insn" from rtx to
20468         rtx_insn *
20469         (restore_other_notes): Likewise for return type, for param "head"
20470         and local "note_head".
20471         (undo_all_replacements): Likewise for local "insn".
20472         (first_nonscheduled_insn): Likewise for return type and local "insn".
20473         (queue_to_ready): Likewise for local "insn", adding checked casts.
20474         (early_queue_to_ready): Likewise for local "insn".
20475         (debug_ready_list_1): Strengthen local "p" from rtx * to
20476         rtx_insn **.
20477         (move_insn): Strengthen param "insn" and local "note" from rtx to
20478         rtx_insn *
20479         (insn_finishes_cycle_p): Likewise for param "insn".
20480         (max_issue): Likewise for local "insn".
20481         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
20482         to rtx_insn **.
20483         (commit_schedule): Strengthen param "prev_head" and local "insn"
20484         from rtx to rtx_insn *
20485         (prune_ready_list): Likewise for local "insn".
20486         (schedule_block): Likewise for locals "prev_head", "head", "tail",
20487         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
20488         (set_priorities): Likewise for local "prev_head".
20489         (try_ready): Likewise for param "next".
20490         (fix_tick_ready): Likewise.
20491         (change_queue_index): Likewise.
20492         (sched_extend_ready_list): Update for change to field "vec" of
20493         struct ready_list.
20494         (generate_recovery_code): Strengthen param "insn" from rtx to
20495         rtx_insn *.
20496         (begin_speculative_block): Likewise.
20497         (create_check_block_twin): Likewise for param "insn" and locals
20498         "label", "check", "twin".  Introduce local "check_pat" to avoid
20499         "check" being used as a plain rtx before being used as an insn.
20500         (fix_recovery_deps): Add a checked cast to rtx_insn * when
20501         extracting elements from ready_list.
20502         (sched_remove_insn): Strengthen param "insn" from rtx to
20503         rtx_insn *.
20504         (sched_emit_insn): Likewise for return type.
20505         (ready_remove_first_dispatch): Likewise for return type and local
20506         "insn".
20508         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
20510         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
20511         const rtx_insn *.
20513         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
20514         from rtx to rtx_insn *.
20515         (add_dependence_list): Likewise for param "insn".  Add a checked
20516         cast.
20517         (add_dependence_list_and_free): Strengthen param "insn" from rtx
20518         to rtx_insn *.  Strengthen param "list_p" from rtx * to
20519         rtx_insn **.
20520         (chain_to_prev_insn): Strengthen param "insn" and locals
20521         "prec_nonnote", "i" from rtx to rtx_insn *.
20522         (flush_pending_lists): Likewise for param "insn".
20523         (cur_insn): Likewise for this variable.
20524         (haifa_start_insn): Add a checked cast.
20525         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
20526         (sched_analyze_reg): Likewise for param "insn".
20527         (sched_analyze_1): Likewise.
20528         (sched_analyze_2): Likewise.  Add checked casts.
20529         (sched_analyze_insn): Likewise.  Also for local "prev".
20530         (deps_analyze_insn): Likewise for param "insn".
20531         (sched_analyze): Likewise for params "head", "tail" and local "insn".
20532         (add_dependence_1): Likewise for params "insn", "elem".
20533         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
20534         (parse_add_or_inc): Likewise for param "insn".
20535         (find_inc): Likewise for local "inc_cand".
20536         (find_modifiable_mems): Likewise for params "head", "tail" and
20537         locals "insn", "next_tail".
20539         * sched-ebb.c (init_ready_list): Likewise for local "insn".
20540         (begin_schedule_ready): Likewise for param "insn".
20541         (begin_move_insn): Likewise for params "insn" and "last".
20542         (ebb_print_insn): Strengthen param "insn" from const_rtx to
20543         const rtx_insn *.
20544         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
20545         (ebb_contributes_to_priority): Likewise for params "next", "insn".
20546         (ebb_add_remove_insn): Likewise for param "insn".
20547         (advance_target_bb): Likewise.
20549         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
20550         "insn".
20551         (check_live): Likewise for param "insn".
20552         (init_ready_list): Likewise for local "insn".
20553         (can_schedule_ready_p): Likewise for param "insn".
20554         (begin_schedule_ready): Likewise.
20555         (new_ready): Likewise for param "next".
20556         (rgn_print_insn): Likewise for param "insn".
20557         (rgn_rank): Likewise for params "insn1", "insn2".
20558         (contributes_to_priority): Likewise for params "next", "insn".
20559         (rgn_insn_finishes_block_p): Likewise for param "insn".
20560         (add_branch_dependences): Likewise for params "head", "tail" and
20561         locals "insn", "last".
20562         (rgn_add_remove_insn): Likewise for param "insn".
20563         (advance_target_bb): Likewise.
20565         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
20566         const_rtx to const rtx_insn *.
20568         * sel-sched-dump.h (sel_print_insn): Likewise.
20570         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
20571         (deps_init_id): Likewise.
20573         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
20574         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
20575         rtx_insn **.
20577 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20579         * output.h (final_start_function): Strengthen param 1 from rtx to
20580         rtx_insn *.
20582         * final.c (final_start_function): Likewise, renaming back from
20583         "uncast_first" to "first", and dropping the checked cast from rtx
20584         to rtx_insn *.
20586 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20588         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
20589         * final.c (final): Likewise.  Rename param back from
20590         "uncast_first" to "first" and eliminate the checked cast from rtx
20591         to rtx_insn *.
20593 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20595         * output.h (shorten_branches): Strengthen param from rtx to
20596         rtx_insn *.
20598         * final.c (shorten_branches): Likewise, renaming param back from
20599         "uncast_first" to "first", and dropping the checked cast from rtx
20600         to rtx_insn *.
20602         * genattr.c (gen_attr): Likewise when writing out the prototype of
20603         shorten_branches.
20605 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20607         * sched-int.h (struct haifa_sched_info): Strengthen fields
20608         "prev_head" and "next_tail" from rtx to rtx_insn *.
20610 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20612         * rtl.h (rtx_jump_table_data::get_labels): New method.
20613         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
20614         with use of the new rtx_jump_table_data::get_labels method.
20615         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
20616         to rtx_jump_table_data *.  Simplify by using get_labels method.
20617         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
20618         a dyn_cast, introducing local "table", using it to replace
20619         label-lookup logic with a get_labels method call.
20620         (patch_jump_insn): Simplify using get_labels method.
20621         * dwarf2cfi.c (create_trace_edges): Likewise.
20622         * rtlanal.c (label_is_jump_target_p): Likewise.
20624 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20626         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
20627         to rtx_insn *.
20629         * emit-rtl.c (unshare_all_rtl_1): Likewise.
20630         (unshare_all_rtl_again): Likewise, also for local "p".
20632 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20634         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
20635         to rtx_insn *.
20636         * cfgrtl.c (delete_insn_and_edges): Likewise.
20638 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20640         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
20641         from rtx to rtx_insn *.
20643         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
20645 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20647         * function.c (thread_prologue_and_epilogue_insns): Likewise for
20648         locals "returnjump", "epilogue_end", "insn", "next".
20650         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
20651         "returnjump" from rtx * to rtx_insn **.
20652         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
20654 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20656         * basic-block.h (struct edge_def). Strengthen "r" within
20657         union edge_def_insns from rtx to rtx_insn *.
20659         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
20660         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
20661         rtx_insn *.
20662         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
20663         from rtx to rtx_insn *.
20664         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
20665         rtx_insn *.
20666         * postreload-gcse.c (reg_killed_on_edge): Likewise.
20667         (reg_used_on_edge): Likewise.
20668         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
20669         (gt_pch_nx): New overload for rtx_insn *&.
20670         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
20671         from rtx to rtx_insn *.
20673 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20675         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
20676         from rtx to rtx_insn *.
20677         (BB_FOOTER): Replace function with access macro.
20678         (SET_BB_FOOTER): Delete.
20680         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
20681         with BB_FOOTER.
20682         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20683         (emit_barrier_after_bb): Likewise.
20684         (record_effective_endpoints): Likewise.
20685         (relink_block_chain): Likewise.
20686         (fixup_fallthru_exit_predecessor): Likewise.
20687         (cfg_layout_duplicate_bb): Likewise.
20688         (cfg_layout_split_block): Likewise.
20689         (cfg_layout_delete_block): Likewise.
20690         (cfg_layout_merge_blocks): Likewise.
20691         (BB_FOOTER): Delete function.
20692         (SET_BB_FOOTER): Delete function.
20693         * combine.c (update_cfg_for_uncondjump): Replace uses of
20694         SET_BB_FOOTER with BB_FOOTER.
20696 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20698         * except.h (struct eh_landing_pad_d): Strengthen field
20699         "landing_pad" from rtx to rtx_code_label *.
20701         * except.c (sjlj_emit_dispatch_table): Likewise for param
20702         "dispatch_label"
20703         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
20705 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20707         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
20708         first param from rtx to rtx_insn *.
20709         * config/xtensa/xtensa.c (struct machine_function): Likewise for
20710         field "set_frame_ptr_insn".
20711         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
20712         "csend" from rtx to rtx_code_label *.
20713         (xtensa_expand_atomic): Likewise for local "csloop".
20714         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
20715         rtx_insn *.
20716         (xtensa_call_tls_desc): Likewise for return type and locals
20717         "call_insn", "insns".
20718         (xtensa_legitimize_tls_address): Likewise for local "insns".
20719         (xtensa_expand_prologue): Likewise for locals "insn", "first".
20721 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20723         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
20724         first param from rtx to rtx_insn *.
20725         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
20726         "insn".
20728 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20730         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
20731         Strengthen param 1 from rtx to rtx_insn *.
20732         (tilepro_output_cbranch): Likewise.
20733         (tilepro_adjust_insn_length): Likewise.
20734         (tilepro_final_prescan_insn): Likewise for sole param.
20736         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
20737         Likewise for local "last".
20738         (cbranch_predicted_p): Likewise for param "insn".
20739         (tilepro_output_simple_cbranch_with_opcode): Likewise.
20740         (tilepro_output_cbranch_with_opcode): Likewise.
20741         (tilepro_output_cbranch): Likewise.
20742         (frame_emit_load): Likewise for return type and locals "seq",
20743         "insn".
20744         (emit_sp_adjust): Likewise for return type and local "insn".
20745         (tilepro_expand_epilogue): Likewise for locals "last_insn",
20746         "insn".
20747         (tilepro_adjust_insn_length): Likewise for param "insn".
20748         (next_insn_to_bundle): Likewise for return type and params
20749         "r", "end".
20750         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
20751         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
20752         local "new_insns".
20753         (match_addli_pcrel): Likewise for param "insn".
20754         (replace_addli_pcrel): Likewise.
20755         (match_auli_pcrel): Likewise.
20756         (replace_auli_pcrel): Likewise.
20757         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
20758         "next_insn".
20759         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
20760         "queue", "next_queue", "prev".
20761         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
20762         (tilepro_final_prescan_insn): Likewise for param "insn".
20764 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20766         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
20767         Strengthen param 1 from rtx to rtx_insn *.
20768         (tilegx_output_cbranch): Likewise.
20769         (tilegx_adjust_insn_length): Likewise.
20770         (tilegx_final_prescan_insn): Likewise for sole param.
20772         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
20773         or local "last".
20774         (cbranch_predicted_p): Likewise for param "insn".
20775         (tilegx_output_simple_cbranch_with_opcode): Likewise.
20776         (tilegx_output_cbranch_with_opcode): Likewise.
20777         (tilegx_output_cbranch): Likewise.
20778         (frame_emit_load): Likewise for return type.
20779         (set_frame_related_p): Likewise for locals "seq", "insn".
20780         (emit_sp_adjust): Likewise for return type, and for local "insn".
20781         Introduce local "pat" for use in place of "insn" where the latter
20782         isn't an instruction.
20783         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
20784         from rtx to rtx_insn *.
20785         (tilegx_adjust_insn_length): Likewise for param "insn".
20786         (next_insn_to_bundle): Likewise for return type and params "r" and
20787         "end".
20788         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
20789         "end".
20790         (replace_insns): Likewise for params "old_insn", "new_insns".
20791         (replace_mov_pcrel_step1): Likewise for param "insn" and local
20792         "new_insns".
20793         (replace_mov_pcrel_step2): Likewise.
20794         (replace_mov_pcrel_step3): Likewise.
20795         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
20796         "next_insn".
20797         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
20798         "queue", "next_queue", "prev".
20799         (tilegx_output_mi_thunk): Likewise for local "insn".
20800         (tilegx_final_prescan_insn): Likewise for param "insn".
20802 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20804         * config/spu/spu.c (frame_emit_store): Strengthen return type from
20805         rtx to rtx_insn *.
20806         (frame_emit_load): Likewise.
20807         (frame_emit_add_imm): Likewise, also for local "insn".
20808         (spu_expand_prologue): Likewise for local "insn".
20809         (struct spu_bb_info): Likewise for field "prop_jump".
20810         (emit_nop_for_insn): Likewise for param "insn" and local
20811         "new_insn".
20812         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
20813         "hbr_insn".
20814         (spu_emit_branch_hint): Likewise for params "before", "branch" and
20815         locals "hint", "insn".
20816         (get_branch_target): Likewise for param "branch".
20817         (insn_clobbers_hbr): Likewise for param "insn".
20818         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
20819         locals "insn", "before_4", "before_16".
20820         (insert_hbrp): Likewise for local "insn".
20821         (spu_machine_dependent_reorg): Likewise for locals "branch",
20822         "insn", "next", "bbend".
20823         (uses_ls_unit): Likewise for param "insn".
20824         (get_pipe): Likewise.
20825         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
20826         introducing a checked cast.
20827         (spu_sched_adjust_cost): Likewise for params "insn" and
20828         "dep_insn".
20829         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
20830         (spu_sms_res_mii): Likewise.
20832 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20834         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
20835         from rtx to rtx_insn *.
20836         (output_cbranch): Likewise for param 6.
20837         (output_return): Likewise for param 1.
20838         (output_sibcall): Likewise.
20839         (output_v8plus_shift): Likewise.
20840         (output_v8plus_mult): Likewise.
20841         (output_v9branch): Likewise for param 7.
20842         (output_cbcond):  Likewise for param 3.
20844         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
20845         for local "insn".
20846         (sparc_legitimize_pic_address): Likewise.
20847         (sparc_emit_call_insn): Likewise.
20848         (emit_save_or_restore_regs): Likewise.
20849         (emit_window_save): Likewise for return type and local "insn".
20850         (sparc_expand_prologue): Likewise for local "insn".
20851         (sparc_flat_expand_prologue): Likewise.
20852         (output_return): Likewise for param "insn".
20853         (output_sibcall): Likewise for param "insn" and local "delay".
20854         (output_ubranch): Likewise for param "insn".
20855         (output_cbranch): Likewise.
20856         (output_cbcond): Likewise.
20857         (output_v9branch): Likewise.
20858         (output_v8plus_shift): Likewise.
20859         (sparc_output_mi_thunk): Likewise for local "insn".
20860         (get_some_local_dynamic_name): Likewise.
20861         (output_v8plus_mult): Likewise for param "insn".
20863 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20865         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
20866         from rtx to rtx_insn *.
20867         (output_branchy_insn): Likewise for param 3.
20868         (output_far_jump): Likewise for param 1.
20869         (final_prescan_insn): Likewise.
20870         (sh_insn_length_adjustment): Likewise for sole param.
20872         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
20873         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
20874         rtx_code_label *.
20875         (sh_emit_compare_and_set): Likewise for local "lab".
20876         (output_far_jump): Strengthen param "insn" and local "prev" from
20877         rtx to rtx_insn *.
20878         (output_branchy_insn): Likewise for param "insn" and local
20879         "next_insn".
20880         (output_ieee_ccmpeq): Likewise for param "insn".
20881         (struct label_ref_list_d): Strengthen field "label" from rtx to
20882         rtx_code_label *.
20883         (pool_node): Likewise.
20884         (pool_window_label): Likewise for this global.
20885         (add_constant): Likewise for return type and locals "lab", "new_rtx".
20886         (dump_table): Strengthen params "start", "barrier" and local
20887         "scan" from rtx to rtx_insn *.
20888         (broken_move): Likewise for param "insn".
20889         (untangle_mova): Likewise for params "first_mova" and "new_mova".
20890         Strengthen param "first_mova" from rtx * to rtx_insn **.
20891         (mova_p): Likewise for param "insn".
20892         (fixup_mova): Likewise for param "mova".
20893         (find_barrier): Likewise for return type, params "mova" and
20894         "from", and locals "barrier_before_mova", "found_barrier",
20895         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
20896         "label" from rtx to rtx_code_label *.
20897         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
20898         rtx to rtx_insn *.
20899         (sh_reorg): Likewise for locals "link", "scan", "barrier".
20900         (split_branches): Likewise for param "first" and local "insn".
20901         (final_prescan_insn): Likewise for param "insn".
20902         (sequence_insn_p): Likewise for locals "prev", "next".
20903         (sh_insn_length_adjustment): Likewise for param "insn".
20904         (sh_can_redirect_branch): Likewise for local "insn".
20905         (find_r0_life_regions): Likewise for locals "end", "insn".
20906         (sh_output_mi_thunk): Likewise for local "insns".
20908 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20910         * config/score/score.c (score_output_mi_thunk): Strengthen local
20911         "insn" from rtx to rtx_insn *.
20912         (score_prologue): Likewise.
20914 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20916         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
20917         1 from rtx to rtx_insn *.
20918         (s390_emit_jump): Likewise for return type.
20919         (s390_emit_call): Likewise.
20920         (s390_load_got): Likewise.
20922         * config/s390/s390.c (last_scheduled_insn): Likewise for this
20923         variable.
20924         (s390_match_ccmode): Likewise for param "insn".
20925         (s390_emit_jump): Likewise for return type.
20926         (s390_split_branches): Likewise for local "label".
20927         (struct constant): Strengthen field "label" from rtx to
20928         rtx_code_label *.
20929         (struct constant_pool): Likewise for field "label".  Strengthen
20930         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
20931         rtx_insn *.
20932         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
20933         insns.
20934         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
20935         (s390_end_pool): Likewise.
20936         (s390_dump_pool): Likewise for local "insn".
20937         (s390_mainpool_start): Likewise.
20938         (s390_chunkify_start): Likewise.
20939         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
20940         with insns.  Strengthen locals "label", "jump", "barrier", "next",
20941         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
20942         (s390_chunkify_finish): Strengthen local "insn" from rtx to
20943         rtx_insn *.
20944         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
20945         "jump", "label", "next_insn".
20946         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
20947         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
20948         "tbegin_insn".
20949         (s390_load_got): Likewise for return type and local "insns".
20950         (s390_save_gprs_to_fprs): Likewise for local "insn".
20951         (s390_restore_gprs_from_fprs): Likewise.
20952         (pass_s390_early_mach::execute): Likewise.
20953         (s390_emit_prologue): Likewise for local "insns".
20954         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
20955         rtx_code_label *.
20956         (s390_emit_call): Strengthen return type and local "insn" from
20957         rtx to rtx_insn *.
20958         (s390_emit_tpf_eh_return): Likewise for local "insn".
20959         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
20960         "next_insn", introducing locals "s_pat", "rpat" to allow this.
20961         (s390_fix_long_loop_prediction): Likewise for param "insn" and
20962         local "cur_insn".
20963         (s390_non_addr_reg_read_p): Likewise for param "insn".
20964         (find_cond_jump): Likewise for return type and param "insn".
20965         (s390_swap_cmp): Likewise for param "insn".
20966         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
20967         "prev_insn", "next_insn".
20968         (s390_reorg): Likewise for locals "insn", "target".
20969         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
20970         (s390_sched_variable_issue): For now, rename param "insn" to
20971         "uncast_insn", introducing a checked cast.
20972         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
20973         insn.
20974         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
20975         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
20977 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20979         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
20980         param from rtx to rtx_insn *.
20981         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
20983 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
20985         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
20986         4 from rtx to rtx_insn *.
20987         (rs6000_final_prescan_insn): Likewise for first param.
20988         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
20989         local "insn".
20990         (rs6000_get_some_local_dynamic_name): Likewise.
20991         (output_cbranch): Likewise for param "insn".
20992         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
20993         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
20994         (rs6000_emit_allocate_stack): Likewise for local "insn".
20995         (load_cr_save): Likewise.
20996         (restore_saved_cr): Likewise.
20997         (restore_saved_lr): Likewise.
20998         (emit_cfa_restores): Likewise.
20999         (rs6000_output_function_epilogue): Likewise for locals "insn" and
21000         "deleted_debug_label".
21001         (rs6000_output_mi_thunk): Likewise for local "insn".
21002         (rs6000_final_prescan_insn): Likewise for param "insn".
21004 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21006         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
21007         Strengthen param "insn" from rtx to rtx_insn *.
21008         * config/picochip/picochip.c (picochip_current_prescan_insn):
21009         Likewise for this variable.
21010         (picochip_final_prescan_insn): Likewise for param "insn".
21012 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21014         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
21015         from rtx to rtx_insn *.
21016         (pa_output_indirect_call): Likewise.
21017         (pa_adjust_insn_length): Likewise.
21018         (pa_attr_length_millicode_call): Likewise.
21019         (pa_attr_length_call): Likewise.
21020         (pa_attr_length_indirect_call): Likewise.
21022         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
21023         "insn".
21024         (pa_attr_length_millicode_call): Likewise.
21025         (pa_attr_length_call): Likewise.
21026         (pa_output_call): Likewise.
21027         (pa_attr_length_indirect_call): Likewise.
21028         (pa_output_indirect_call): Likewise.
21030 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21032         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
21033         Strengthen first param from rtx to rtx_insn *.
21034         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
21035         param "insn".
21037 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21039         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
21040         type from rtx to rtx_insn *.
21041         (mips_expand_call): Likewise.
21042         (mips_adjust_insn_length): Likewise for first param.
21043         (mips_output_conditional_branch): Likewise.
21044         (mips_output_order_conditional_branch): Likewise.
21045         (mips_final_prescan_insn): Likewise.
21047         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
21048         rtx_insn * for the SEQUENCE case.
21049         (SEQ_END): Likewise.
21050         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
21051         (mips_emit_call_insn): Likewise, also for local "insn".
21052         (mips16_gp_pseudo_reg): Likewise for local "scan".
21053         (mips16_build_call_stub): Likewise for return type and for local
21054         "insn".  Introduce a new local "pattern" so that "insn" can indeed
21055         be an insn.
21056         (mips_expand_call): Strengthen return type and local "insn" from
21057         rtx to rtx_insn *.
21058         (mips_block_move_loop): Strengthen local "label" from rtx to
21059         rtx_code_label *.
21060         (mips_expand_synci_loop): Likewise for locals "label",
21061         "end_label".
21062         (mips_set_frame_expr): Strengthen local "insn" from rtx to
21063         rtx_insn *.
21064         (mips16e_collect_argument_saves): Likewise for locals "insn",
21065         "next".
21066         (mips_find_gp_ref): Likewise for param of callback for "pred"
21067         param, and for local "insn".
21068         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
21069         (mips_insn_has_flexible_gp_ref_p): Likewise.
21070         (mips_epilogue_emit_cfa_restores): Likewise for return type and
21071         local "insn".
21072         (mips_epilogue_set_cfa): Likewise for local "insn".
21073         (mips_expand_epilogue): Likewise.
21074         (mips_adjust_insn_length): Likewise for param "insn".
21075         (mips_output_conditional_branch): Likewise.
21076         (mips_output_order_conditional_branch): Likewise.
21077         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
21078         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
21079         "falu2_turn_enabled_insn".
21080         (mips_builtin_branch_and_move): Strengthen locals "true_label",
21081         "done_label" from rtx to rtx_code_label *.
21082         (struct mips16_constant): Likewise for field "label".
21083         (mips16_add_constant): Likewise for return type.
21084         (mips16_emit_constants_1): Strengthen return type and param "insn"
21085         from rtx to rtx_insn *.
21086         (mips16_emit_constants): Likewise for param "insn".
21087         (mips16_insn_length): Likewise.
21088         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
21089         to rtx_code_label *.
21090         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
21091         from rtx to rtx_insn *.
21092         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
21093         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
21094         (r10k_simplify_address): Strengthen param "insn" and local
21095         "def_insn" from rtx to rtx_insn *.
21096         (r10k_safe_address_p): Strengthen param "insn" from rtx to
21097         rtx_insn *.
21098         (r10k_needs_protection_p_1): Update target type of cast of data
21099         from to rtx to rtx_insn *.
21100         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
21101         rtx * to rtx_insn **.
21102         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
21103         rtx_insn *.
21104         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
21105         (mips_call_expr_from_insn): Likewise for param "insn".
21106         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
21107         (mips_find_pic_call_symbol): Likewise for param "insn".
21108         (mips_annotate_pic_calls): Likewise for local "insn".
21109         (mips_sim_insn): Likewise for this variable.
21110         (struct mips_sim): Likewise for field "insn" within elements of
21111         last_set array.
21112         (mips_sim_wait_reg): Likewise for param "insn".
21113         (mips_sim_wait_regs): Likewise.
21114         (mips_sim_wait_units): Likewise.
21115         (mips_sim_wait_insn): Likewise.
21116         (mips_sim_issue_insn): Likewise.
21117         (mips_sim_finish_insn): Likewise.
21118         (mips_seq_time): Likewise for param "seq" and local "insn".
21119         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
21120         locals "first", "second".
21121         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
21122         "last", "last2", "next".
21123         (mips_avoid_hazard): Likewise for params "after", "insn".
21124         (mips_reorg_process_insns): Likewise for locals "insn",
21125         "last_insn", "subinsn", "next_insn".
21126         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
21127         (mips16_split_long_branches): Likewise for locals "insn" "jump",
21128         "jump_sequence".
21129         (mips_output_mi_thunk): Likewise for local "insn".
21130         (mips_final_prescan_insn): Likewise for param "insn".
21132 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21134         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
21135         Strengthen return type and local "insns" from rtx to rtx_insn *.
21136         (microblaze_legitimize_tls_address): Likewise for local "insns".
21137         (microblaze_block_move_loop): Strengthen local "label" from rtx
21138         to rtx_code_label *.
21139         (microblaze_expand_prologue): Strengthen two locals named "insn"
21140         from rtx to rtx_insn *.
21141         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
21142         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
21143         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
21144         to rtx_code_label *.
21146 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21148         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
21149         param from rtx to rtx_insn *.
21150         (mep_reuse_lo): Likewise for third param.
21151         (mep_use_post_modify_p): Likewise for first param.
21152         (mep_core_address_length): Likewise.
21153         (mep_cop_address_length): Likewise.
21154         (mep_final_prescan_insn): Likewise.
21155         (mep_store_data_bypass_p): Likewise for both params.
21156         (mep_mul_hilo_bypass_p): Likewise.
21157         (mep_ipipe_ldc_p): Likewise for param.
21159         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
21160         (mep_rewrite_mult): Likewise.
21161         (mep_rewrite_mulsi3): Likewise.
21162         (mep_rewrite_maddsi3): Likewise.
21163         (mep_reuse_lo_p_1): Likewise.
21164         (mep_reuse_lo_p): Likewise.
21165         (mep_frame_expr): Likewise.
21166         (mep_make_parallel): Likewise for both params.
21167         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
21168         local "insn".
21169         (mep_use_post_modify_p): Likewise for param "insn".
21170         (mep_core_address_length): Likewise.
21171         (mep_cop_address_length): Likewise.
21172         (mep_reg_set_in_function): Likewise for local "insn".
21173         (mep_asm_without_operands_p): Likewise.
21174         (F): Likewise for return type and param "x".
21175         (add_constant): Likewise for local "insn".
21176         (maybe_dead_move): Likewise for return type and local "insn".
21177         (mep_expand_prologue): Likewise for local "insn".
21178         (mep_final_prescan_insn): Likewise for param "insn".
21179         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
21180         "next", "follow", "x".
21181         (mep_insert_repeat_label_last): Likewise for return type, param
21182         "last_insn", and locals "next", "prev".  Strengthen param "label"
21183         from rtx to rtx_code_label *.
21184         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
21185         rtx_insn *.
21186         (struct mep_doloop_end): Likewise for fields "insn" and
21187         "fallthrough".
21188         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
21189         Strengthen local "repeat_label" from rtx to rtx_code_label *.
21190         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
21191         rtx_insn *.
21192         (mep_invert_branch): Likewise for params "insn" and "after".
21193         (mep_reorg_erepeat): Likewise for param "insns" and locals
21194         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
21195         "l" from rtx to rtx_code_label *.
21196         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
21197         from rtx to rtx_insn *.
21198         (mep_reorg_addcombine): Likewise for param "insns" and locals
21199         "i", "n".
21200         (add_sp_insn_p): Likewise for param "insn".
21201         (mep_reorg_noframe): Likewise for param "insns" and locals
21202         "start_frame_insn", "end_frame_insn", "next".
21203         (mep_reorg): Likewise for local "insns".
21204         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
21205         cast.
21206         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
21207         (mep_mul_hilo_bypass_p): Likewise.
21208         (mep_ipipe_ldc_p): Likewise for param "insn".
21209         (mep_make_bundle): Likewise for return type, param "cop" and local
21210         "insn", splitting out the latter into a new local "seq" for when it
21211         is a SEQUENCE rather than an insn.
21212         (core_insn_p): Likewise for param "insn".
21213         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
21214         "last", "first", "note", "prev", "core_insn".
21216 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21218         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
21219         rtx to rtx_insn *.
21220         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
21221         (m68k_final_prescan_insn): Likewise for first param.
21223         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
21224         (m68k_set_frame_related): Likewise for param "insn".
21225         (output_btst): Likewise for param "insn".
21226         (m68k_final_prescan_insn): Likewise.
21227         (m68k_move_to_reg): Likewise for local "insn".
21228         (m68k_call_tls_get_addr): Likewise for local "insns".
21229         (m68k_call_m68k_read_tp): Likewise.
21230         (strict_low_part_peephole_ok): Likewise for param "first_insn".
21231         (m68k_output_mi_thunk): Likewise for local "insn".
21233 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21235         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
21236         first param from rtx to rtx_insn *.
21237         (iq2000_adjust_insn_length): Likewise.
21238         (iq2000_output_conditional_branch): Likewise.
21239         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
21240         "insn" and local "nop_insn".
21241         (iq2000_annotate_frame_insn): Likewise for param "insn".
21242         (iq2000_expand_prologue): Likewise for both locals "insn".
21243         (iq2000_adjust_insn_length): Likewise for param "insn".
21244         (iq2000_output_conditional_branch): Likewise.
21246 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21248         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
21249         "insns" from rtx to rtx_insn *.
21250         (ia64_emit_cond_move): Likewise for locals "insn", "first".
21251         (struct spill_fill_data): Likewise for field "init_after" and for
21252         elements of array field "prev_insn".
21253         (spill_restore_mem): Likewise for locals "insn", "first".
21254         (do_spill): Likewise for local "insn".
21255         (do_restore): Likewise.
21256         (ia64_expand_prologue): Likewise.
21257         (ia64_expand_epilogue): Likewise.
21258         (emit_insn_group_barriers): Likewise for locals "insn",
21259         "last_label".
21260         (emit_all_insn_group_barriers): Likewise for locals "insn",
21261         "last".
21262         (dfa_stop_insn): Likewise for this global.
21263         (dfa_pre_cycle_insn): Likewise.
21264         (ia64_nop): Likewise.
21265         (final_emit_insn_group_barriers): Likewise for locals "insn",
21266         "last".
21267         (emit_predicate_relation_info): Likewise for locals "head", "n",
21268         "insn", "b", "a".
21269         (ia64_reorg): Likewise for local "insn".
21270         (ia64_output_mi_thunk): Likewise.
21271         (expand_vec_perm_interleave_2): Likewise for local "seq".
21273 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21275         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
21276         param 1 "insn" from rtx to rtx_insn *.
21277         (ix86_use_lea_for_mov): Likewise.
21278         (ix86_avoid_lea_for_addr): Likewise.
21279         (ix86_split_lea_for_addr): Likewise.
21280         (ix86_lea_for_add_ok): Likewise.
21281         (ix86_output_call_insn): Likewise.
21283         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
21284         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
21285         (ix86_output_function_epilogue): Likewise for locals "insn",
21286         "deleted_debug_label".
21287         (legitimize_tls_address): Likewise for local "insn".
21288         (get_some_local_dynamic_name): Likewise.
21289         (increase_distance): Likewise for params "prev", "next".
21290         (distance_non_agu_define_in_bb): Likewise for params "insn",
21291         "start" and locals "prev", "next".
21292         (distance_non_agu_define): Likewise for param "insn".
21293         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
21294         locals "next", "prev".
21295         (distance_agu_use): Likewise for param "insn".
21296         (ix86_lea_outperforms): Likewise.
21297         (ix86_ok_to_clobber_flags): Likewise.
21298         (ix86_avoid_lea_for_add): Likewise.
21299         (ix86_use_lea_for_mov): Likewise.
21300         (ix86_avoid_lea_for_addr): Likewise.
21301         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
21302         (ix86_split_lea_for_addr): Likewise for param "insn".
21303         (ix86_lea_for_add_ok): Likewise for param "insn".
21304         (ix86_expand_carry_flag_compare): Likewise for local
21305         "compare_seq".
21306         (ix86_expand_int_movcc): Likewise.
21307         (ix86_output_call_insn): Likewise for param "insn".
21308         (ix86_output_call_insn): Likewise for local "i".
21309         (x86_output_mi_thunk): Introduce local "insn", using it in place
21310         of "tmp" when dealing with insns.
21311         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
21312         "start".
21313         (ix86_pad_returns): Likewise for locals "ret", "prev".
21314         (ix86_count_insn_bb): Likewise for local "insn".
21315         (ix86_pad_short_function): Likewise for locals "ret", "insn".
21316         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
21317         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
21318         (expand_vec_perm_interleave2): Likewise for local "seq".
21319         (expand_vec_perm_vperm2f128_vblend): Likewise.
21320         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
21321         call to for_each_rtx with for_each_rtx_in_insn.
21323 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21325         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
21326         "label" from rtx to rtx_code_label *.
21327         (ix86_expand_prologue): Likewise.
21328         (ix86_expand_split_stack_prologue): Likewise for locals "label",
21329         "varargs_label".
21330         (ix86_split_idivmod): Likewise for locals "end_label" and
21331         "qimode_label".
21332         (ix86_expand_branch): Likewise for local "label2".
21333         (ix86_expand_aligntest): Likewise for return type and local "label".
21334         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
21335         "top_label".
21336         (expand_movmem_epilogue): Likewise for the various locals named
21337         "label".
21338         (expand_setmem_epilogue): Likewise.
21339         (expand_small_movmem_or_setmem): Likewise for local "label".
21340         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21341         Strengthen param "done_label" from rtx * to rtx_code_label **.
21342         Strengthen locals "loop_label" and "label" from rtx to
21343         rtx_code_label *.
21344         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21345         Likewise for locals "loop_label", "label".
21346         (ix86_expand_set_or_movmem): Likewise for locals "label",
21347         "jump_around_label", "hot_label".
21348         (ix86_expand_strlensi_unroll_1): Likewise for locals
21349         "align_2_label", align_3_label", "align_4_label", "end_0_label",
21350         "end_2_label".
21351         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
21352         (void ix86_emit_i387_log1p): Likewise for locals "label1",
21353         "label2", "jump_label".
21354         (ix86_expand_sse_compare_and_jump): Likewise for return type and
21355         local "label".
21356         (ix86_expand_lfloorceil): Likewise for local "label".
21357         (ix86_expand_rint): Likewise.
21358         (ix86_expand_floorceildf_32): Likewise.
21359         (ix86_expand_floorceil): Likewise.
21360         (ix86_expand_rounddf_32): Likewise.
21361         (ix86_expand_trunc): Likewise.
21362         (ix86_expand_truncdf_32): Likewise.
21363         (ix86_expand_round): Likewise.
21365 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21367         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
21368         first param from rtx to rtx_insn *.
21369         (h8300_insn_length_from_table): Likewise.
21370         * config/h8300/h8300.c (F): Likewise for return type and param
21371         "x".
21372         (Fpa): Add a checked cast to rtx_insn *.
21373         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
21374         rtx_insn *.
21375         (final_prescan_insn): Likewise for param "insn".
21376         (h8300_binary_length): Likewise.
21377         (h8300_insn_length_from_table): Likewise.
21379 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21381         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
21382         Strengthen first param "insn" from rtx to rtx_insn *.
21384         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
21385         Likewise.
21386         (frame_insn): Likewise for return type.  Introduce local "insn"
21387         for use in place of local "x" for use as an rtx_insn *.
21388         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
21389         (epiphany_expand_prologue): Likewise for local "insn".
21390         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
21391         * config/epiphany/resolve-sw-modes.c
21392         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
21393         "seq".
21395 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21397         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
21398         param from rtx to rtx_insn *.
21399         (c6x_final_prescan_insn): Likewise for first param.
21401         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
21402         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
21403         (c6x_expand_compare): Strengthen local "insns" from rtx to
21404         rtx_insn *.
21405         (c6x_get_unit_specifier): Likewise for param "insn".
21406         (c6x_print_unit_specifier_field): Likewise.
21407         (c6x_final_prescan_insn): Likewise.
21408         (emit_add_sp_const): Likewise for local "insn".
21409         (c6x_expand_prologue): Likewise.
21411 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21413         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
21414         param 1 from rtx to rtx_insn *.
21415         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
21416         the various locals named "insn".
21417         (expand_epilogue_reg_restore): Likewise.
21418         (frame_related_constant_load): Likewise.
21419         (add_to_reg): Likewise.
21420         (emit_link_insn): Likewise.
21421         (do_link): Likewise.
21422         (expand_interrupt_handler_prologue): Likewise.
21423         (branch_dest): Likewise for param "branch".
21424         (asm_conditional_branch): Likewise for param "insn".
21425         (gen_one_bundle): Likewise for elements of param "slot" and local
21426         "t".
21427         (bfin_gen_bundles): Likewise for locals "insn", "next" and
21428         elements of local "slot".
21429         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21430         "queue", "next_queue", "prev".
21431         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
21432         (add_sched_insns_for_speculation): Likewise for local "insn".
21434 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21436         * config/avr/avr-protos.h (output_movqi): Strengthen first param
21437         from rtx to rtx_insn *.
21438         (output_movhi): Likewise.
21439         (output_movsisf): Likewise.
21440         (avr_out_tstsi): Likewise.
21441         (avr_out_tsthi): Likewise.
21442         (avr_out_tstpsi): Likewise.
21443         (avr_out_compare): Likewise.
21444         (avr_out_compare64): Likewise.
21445         (avr_out_movpsi): Likewise.
21446         (ashlqi3_out): Likewise.
21447         (ashlhi3_out): Likewise.
21448         (ashlsi3_out): Likewise.
21449         (ashrqi3_out): Likewise.
21450         (ashrhi3_out): Likewise.
21451         (ashrsi3_out): Likewise.
21452         (lshrqi3_out): Likewise.
21453         (lshrhi3_out): Likewise.
21454         (lshrsi3_out): Likewise.
21455         (avr_out_ashlpsi3): Likewise.
21456         (avr_out_ashrpsi3): Likewise.
21457         (avr_out_lshrpsi3): Likewise.
21458         (avr_out_fract): Likewise.
21459         (avr_out_sbxx_branch): Likewise.
21460         (avr_out_round): Likewise.
21461         (avr_out_xload): Likewise.
21462         (avr_out_movmem): Likewise.
21463         (adjust_insn_length): Likewise.
21464         (avr_out_lpm): Likewise.
21465         (reg_unused_after): Likewise.
21466         (_reg_unused_after): Likewise.
21467         (avr_jump_mode): Likewise for second param.
21468         (jump_over_one_insn): Likewise for first param.
21469         (avr_final_prescan_insn): Likewise.
21470         (out_shift_with_cnt): Likewise for second param.
21472         * config/avr/avr.c (get_sequence_length): Likewise for param
21473         "insns" and local "insn".
21474         (emit_push_byte): Likewise for local "insn".
21475         (emit_push_sfr): Likewise.
21476         (avr_prologue_setup_frame): Likewise for locals "insn",
21477         "fp_plus_insns", "sp_plus_insns".
21478         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
21479         "sp_plus_insns".
21480         (avr_jump_mode): Likewise for param "insn".
21481         (avr_final_prescan_insn): Likewise.
21482         (avr_find_unused_d_reg): Likewise.
21483         (avr_out_lpm_no_lpmx): Likewise.
21484         (avr_out_lpm): Likewise.
21485         (avr_out_xload): Likewise.
21486         (output_movqi): Likewise.
21487         (output_movhi): Likewise.
21488         (out_movqi_r_mr): Likewise.
21489         (out_movhi_r_mr): Likewise.
21490         (out_movsi_r_mr): Likewise.
21491         (out_movsi_mr_r): Likewise.
21492         (output_movsisf): Likewise.
21493         (avr_out_load_psi): Likewise.
21494         (avr_out_store_psi): Likewise.
21495         (avr_out_movpsi): Likewise.
21496         (out_movqi_mr_r): Likewise.
21497         (avr_out_movhi_mr_r_xmega): Likewise.
21498         (out_movhi_mr_r): Likewise.
21499         (compare_condition): Likewise for param "insn" and local "next".
21500         (compare_sign_p): Likewise for param "insn".
21501         (compare_diff_p): Likewise.
21502         (compare_eq_p): Likewise.
21503         (avr_out_compare): Likewise.
21504         (avr_out_compare64): Likewise.
21505         (avr_out_tsthi): Likewise.
21506         (avr_out_tstpsi): Likewise.
21507         (avr_out_tstsi): Likewise.
21508         (out_shift_with_cnt): Likewise.
21509         (ashlqi3_out): Likewise.
21510         (ashlhi3_out): Likewise.
21511         (avr_out_ashlpsi3): Likewise.
21512         (ashlsi3_out): Likewise.
21513         (ashrqi3_out): Likewise.
21514         (ashrhi3_out): Likewise.
21515         (avr_out_ashrpsi3): Likewise.
21516         (ashrsi3_out): Likewise.
21517         (lshrqi3_out): Likewise.
21518         (lshrhi3_out): Likewise.
21519         (avr_out_lshrpsi3): Likewise.
21520         (lshrsi3_out): Likewise.
21521         (avr_out_fract): Likewise.
21522         (avr_out_round): Likewise.
21523         (avr_adjust_insn_length): Likewise.
21524         (reg_unused_after): Likewise.
21525         (_reg_unused_after): Likewise.
21526         (avr_compare_pattern): Likewise.
21527         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
21528         and locals "branch1", "branch2", "insn2", "jump".
21529         (avr_reorg): Likewise for local "insn".
21530         (avr_2word_insn_p): Likewise for param "insn".
21531         (jump_over_one_insn_p): Likewise.
21532         (avr_out_sbxx_branch): Likewise.
21533         (avr_out_movmem): Likewise.
21535 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21537         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
21538         param from rtx to rtx_insn *.
21539         (thumb1_final_prescan_insn): Likewise.
21540         (thumb2_final_prescan_insn): Likewise.
21542         * config/arm/arm.c (emit_set_insn): Strengthen return type from
21543         rtx to rtx_insn *.
21544         (struct minipool_node): Likewise for field "insn".
21545         (dump_minipool): Likewise for param "scan".
21546         (create_fix_barrier): Likewise for local "from".  Strengthen local
21547         "label" from rtx to rtx_code_label *.
21548         (push_minipool_barrier): Strengthen param "insn" from rtx to
21549         rtx_insn *.
21550         (push_minipool_fix): Likewise.
21551         (note_invalid_constants): Likewise.
21552         (thumb2_reorg): Likewise for local "insn".
21553         (arm_reorg): Likewise.
21554         (thumb2_final_prescan_insn): Likewise for param
21555         "insn" and local "first_insn".
21556         (arm_final_prescan_insn): Likewise for param "insn" and locals
21557         "start_insn", "this_insn".
21558         (arm_debugger_arg_offset): Likewise for param "insn".
21559         (thumb1_emit_multi_reg_push): Likewise for return type and local
21560         "insn".
21561         (thumb1_final_prescan_insn): Likewise for param "insn".
21562         (thumb_far_jump_used_p): Likewise for local "insn".
21563         (thumb1_expand_prologue): Likewise.
21564         (arm_expand_epilogue_apcs_frame): Likewise.
21565         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
21566         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
21567         from rtx to rtx_code_label *.
21568         (arm_split_atomic_op): Likewise for local "label".
21569         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
21571 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21573         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
21574         first param from rtx to rtx_insn *.
21575         (arc_verify_short): Likewise.
21576         (arc_short_long): Likewise.
21577         (arc_need_delay): Likewise.
21579         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
21580         "target_insn".
21581         (arc_ccfsm_advance): Likewise for param "insn" and locals
21582         "start_insn", "this_insn".
21583         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
21584         (arc_ccfsm_post_advance): Likewise for param "insn".
21585         (arc_next_active_insn): Likewise for return type and param "insn".
21586         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
21587         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
21588         (output_short_suffix): Likewise for local "insn".
21589         (arc_final_prescan_insn): Likewise for param "insn".  Remove
21590         now-redundant checked cast.
21591         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
21592         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
21593         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
21594         for use where lc_set became an insn.
21595         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
21596         rtx to rtx_insn *.
21597         (arc_get_insn_variants): Likewise for local "prev".
21598         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
21599         "next".
21600         (arc_predicate_delay_insns): Likewise for local "insn".
21601         (arc_pad_return): Likewise for local "prev".  For now, add a
21602         checked cast when extracting the insn from "final_sequence".
21603         (arc_short_long): Likewise for param "insn".
21604         (arc_need_delay): Likewise for param "insn" and local "next".
21605         (arc_label_align): Likewise for locals "prev", "next".
21607 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21609         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
21610         "insn" from rtx to rtx_insn *.
21611         (alpha_gp_save_rtx): Likewise for local "seq".
21612         (alpha_instantiate_decls): Likewise for local "top".
21613         (get_some_local_dynamic_name): Likewise for local "insn".
21614         (alpha_does_function_need_gp): Likewise.
21615         (set_frame_related_p): Likewise for return type and for locals
21616         "seq" and "insn".
21617         (emit_frame_store_1): Likewise for local "insn".
21618         (alpha_expand_prologue): Likewise for locals "insn", "seq".
21619         (alpha_end_function): Likewise for local "insn".
21620         (alpha_output_mi_thunk_osf): Likewise.
21621         (alphaev4_insn_pipe): Likewise for param "insn".
21622         (alphaev5_insn_pipe): Likewise.
21623         (alphaev4_next_group): Likewise for return type and param 1
21624         "insn".
21625         (alphaev5_next_group): Likewise.
21626         (alpha_align_insns_1): Likewise for return type and param 1 of
21627         callback param "next_group", and for locals "i", "next", "prev",
21628         "where", "where2", "insn".
21630 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
21632         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
21633         rather than modifying the stmt.
21635 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21637         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
21638         cgraph_state conversion.
21640 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21642         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21643         Strengthen local "insns" from rtx to rtx_insn *.
21644         (aarch64_set_frame_expr): Likewise for local "insn".
21645         (aarch64_save_or_restore_fprs): Likewise.
21646         (aarch64_save_or_restore_callee_save_registers): Likewise.
21647         (aarch64_expand_prologue): Likewise.
21648         (aarch64_expand_epilogue): Likewise.
21649         (aarch64_output_mi_thunk): Likewise.
21650         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
21651         "label2" from rtx to rtx_code_label *.
21652         (aarch64_split_atomic_op): Likewise for local "label".
21654 2014-08-25  Martin Liska  <mliska@suse.cz>
21656         * cgraph.h (symtab_node):
21657         (bool needed_p (void)): created from decide_is_symbol_needed
21658         (bool referred_to_p (void)): created from referred_to_p
21659         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
21660         * cgraph.h (cgraph_node):
21661         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
21662         (void expand (void)): created from expand_function
21663         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
21664         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
21665         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
21666         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
21667         * cgraph.h (varpool_node):
21668         (static void add (tree decl): created from varpool_add_new_variable
21669         * cgraph.h (cgraph_edge):
21670         void remove (void);
21671         (void remove_caller (void)): created from cgraph_edge_remove_caller
21672         (void remove_callee (void)): created from cgraph_edge_remove_callee
21673         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
21674           created from cgraph_set_call_stmt
21675         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
21676         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
21677         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
21678           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
21679         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
21680           created from cgraph_speculative_call_info
21681         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
21682           int freq_scale, bool update_original)): created from cgraph_clone_edge
21683         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
21684         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
21685         (bool recursive_p (void)): created from cgraph_edge_recursive_p
21686         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
21687         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
21688         (static void rebuild_references (void)): created from cgraph_rebuild_references
21689         * cgraph.h (symbol_table):
21690         (create_reference): renamed from add_reference
21691         (maybe_create_reference): renamed from maybe_add_reference
21692         (void register_symbol (symtab_node *node)): new function
21693         (void clear_asm_symbols (void)): new function
21694         (void unregister (symtab_node *node)): new function
21695         (void release_symbol (cgraph_node *node, int uid)): new function
21696         (cgraph_node * allocate_cgraph_symbol (void)): new function
21697         (void initialize (void)): created from cgraph_init
21698         (symtab_node *first_symbol (void)):new function
21699         (asm_node *first_asm_symbol (void)):new function
21700         (symtab_node *first_defined_symbol (void)):new function
21701         (varpool_node *first_variable (void)):new function
21702         (varpool_node *next_variable (varpool_node *node)):new function
21703         (varpool_node *first_static_initializer (void)):new function
21704         (varpool_node *next_static_initializer (varpool_node *node)):new function
21705         (varpool_node *first_defined_variable (void)):new function
21706         (varpool_node *next_defined_variable (varpool_node *node)):new function
21707         (cgraph_node *first_defined_function (void)):new function
21708         (cgraph_node *next_defined_function (cgraph_node *node)):new function
21709         (cgraph_node *first_function (void)):new function
21710         (cgraph_node *next_function (cgraph_node *node)):new function
21711         (cgraph_node *first_function_with_gimple_body (void)):new function
21712         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
21713         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
21714           created from symtab_remove_unreachable_nodes
21715         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
21716         (void process_new_functions (void)): created from cgraph_process_new_functions
21717         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
21718         (bool output_variables (void)): created from varpool_node::output_variables
21719         (void output_asm_statements (void)): created from output_asm_statements
21720         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
21721         (void compile (void)): created from compile
21722         (void output_weakrefs (void)): created from output_weakrefs
21723         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
21724         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
21725           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
21726         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
21727         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
21728           created from cgraph_next_function_with_gimple_body
21729         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
21730           created from cgraph_remove_edge_removal_hook
21731         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
21732           created from cgraph_add_node_removal_hook
21733         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
21734           created from cgraph_remove_node_removal_hook
21735         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
21736           created from varpool_add_node_removal_hook
21737         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
21738           created from varpool_remove_node_removal_hook
21739         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
21740           created from cgraph_add_function_insertion_hook
21741         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
21742           created from cgraph_remove_function_insertion_hook
21743         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
21744           created from varpool_add_variable_insertion_hook
21745         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
21746           created from varpool_remove_variable_insertion_hook
21747         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
21748           created from cgraph_add_edge_duplication_hook
21749         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
21750           created from cgraph_remove_edge_duplication_hook
21751         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
21752           created from cgraph_add_node_duplication_hook
21753         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
21754           created from cgraph_remove_node_duplication_hook
21755         (void call_edge_removal_hooks (cgraph_edge *e)):
21756           created from cgraph_call_edge_removal_hooks
21757         (void call_cgraph_insertion_hooks (cgraph_node *node)):
21758           created from call_function_insertion_hooks
21759         (void call_cgraph_removal_hooks (cgraph_node *node)):
21760           created from cgraph_call_node_removal_hooks
21761         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
21762           created from cgraph_node::call_duplication_hooks
21763         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
21764           created from cgraph_call_edge_duplication_hooks
21765         (void call_varpool_removal_hooks (varpool_node *node)):
21766           created from varpool_call_node_removal_hooks
21767         (void call_varpool_insertion_hooks (varpool_node *node)):
21768           created from varpool_call_variable_insertion_hooks
21769         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
21770           created from insert_to_assembler_name_hash
21771         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
21772           created from unlink_from_assembler_name_hash
21773         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
21774           created from symtab_prevail_in_asm_name_hash
21775         (void symtab_initialize_asm_name_hash (void)):
21776           created from symtab_initialize_asm_name_hash
21777         (void change_decl_assembler_name (tree decl, tree name)):
21778           created from change_decl_assembler_name
21779         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
21780         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
21781           created from decl_assembler_name_hash
21782         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
21783           created from decl_assembler_name_equal
21784         (static hashval_t hash_node_by_assembler_name (const void *p)):
21785           created from hash_node_by_assembler_name
21786         (static int eq_assembler_name (const void *p1, const void *p2)):
21787           created from eq_assembler_name
21789 2014-08-25  Marek Polacek  <polacek@redhat.com>
21791         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
21793 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
21795         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
21796         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
21797         SWI1248_AVX512BW mode iterator.
21799 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
21801         PR target/62111
21802         * config/sh/predicates.md (general_extend_operand): Disable
21803         TRUNCATE before reload completes.
21805 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
21807         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
21809 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
21811         PR target/61996
21812         * config/sh/sh.opt (musermode): Allow negative form.
21813         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
21814         targets that don't support it.
21815         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
21816         Document -mno-usermode option.
21818 2014-08-24  Kito Cheng  <kito@0xlab.org>
21820         * system.h (CALLER_SAVE_PROFITABLE): Poison.
21821         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
21822         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
21823         * doc/tm.texi: Regenerate.
21825 2014-08-24  Kito Cheng  <kito@0xlab.org>
21827         * ira.c: Fix typo in comment.
21829 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
21831         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
21832         Deprecate c++1y. Change language to reflect greater confidence in C++14.
21834 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
21836         PR target/62038
21837         * config/pa/pa.c (pa_output_function_epilogue): Don't set
21838         last_address when the current function is a thunk.
21839         (pa_asm_output_mi_thunk): When we don't have named sections or they
21840         are not being used, check that thunk can reach the stub table with a
21841         short branch.
21843 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
21845         * web.c (union_match_dups): Strengthen param "insn" from rtx to
21846         rtx_insn *.
21847         (pass_web::execute): Likewise for local "insn".
21849 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
21851         * var-tracking.c (struct micro_operation_def): Strengthen field
21852         "insn" from rtx to rtx_insn *.
21853         (struct emit_note_data_def): Likewise.
21854         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
21855         (vt_stack_adjustments): Likewise for local "insn".
21856         (adjust_insn): Likewise for param "insn".
21857         (val_store): Likewise.
21858         (val_resolve): Likewise.
21859         (struct count_use_info): Likewise for field "insn".
21860         (log_op_type): Likewise for param "insn".
21861         (reverse_op): Likewise.
21862         (prepare_call_arguments): Likewise.
21863         (add_with_sets):  The initial param takes an insn, but we can't
21864         yet strengthen it from rtx to rtx_insn * since it's used as a
21865         cselib_record_sets_hook callback.  For now rename initial param
21866         from "insn" to "uncast_insn", and introduce a local "insn" of
21867         the stronger rtx_insn * type, with a checked cast.
21868         (compute_bb_dataflow): Strengthen local "insn" from rtx to
21869         rtx_insn *.
21870         (emit_note_insn_var_location): Likewise.
21871         (emit_notes_for_changes): Likewise.
21872         (emit_notes_for_differences): Likewise.
21873         (next_non_note_insn_var_location): Likewise for return type and
21874         for param "insn".
21875         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
21876         (vt_initialize): Likewise for local "insn".
21877         (delete_debug_insns): Likewise for locals "insn" and "next".
21879 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
21881         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
21882         rtx_insn *.
21883         (mark_constant_pool): Likewise for local "insn".
21885 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
21887         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
21888         rtx to rtx_insn *.
21889         (dead_debug_promote_uses): Likewise.
21890         (dead_debug_insert_temp): Likewise.
21892 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
21894         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
21895         from const_rtx to const rtx_insn *.
21896         (store_killed_after): Likewise.  Strengthen locals "last", "act"
21897         from rtx to rtx_insn *.
21898         (store_killed_before): Strengthen param "insn" from const_rtx to
21899         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
21900         (find_moveable_store): Strengthen param "insn" from rtx to
21901         rtx_insn *.
21902         (compute_store_table): Likewise for local "insn".
21903         (insert_insn_start_basic_block): Likewise for param "insn" and
21904         locals "prev", "before", "insn".
21905         (insert_store): For now, add a checked cast to rtx_insn * on the
21906         result of gen_move_insn.
21907         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
21908         to rtx_insn *.
21909         (replace_store_insn): Likewise.  For now, add a checked cast to
21910         rtx_insn * on the result of gen_move_insn.
21912 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21914         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
21915         rtx_insn *.
21916         (expand_sjlj_dispatch_table): Likewise.
21918 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21920         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
21921         "insn" from rtx to rtx_insn *.
21923 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21925         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
21926         "insn" from rtx to rtx_insn *.
21927         (dup_block_and_redirect): Likewise for param 3 "before".
21929         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
21930         from rtx to rtx_insn *.
21931         (move_insn_for_shrink_wrap): Likewise.
21932         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
21933         (dup_block_and_redirect): Likewise for param "before" and local
21934         "insn".
21935         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
21936         "end".
21937         (convert_to_simple_return): Likewise for local "start".
21939         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
21940         Strengthen local "insn" from rtx to rtx_insn *, for use when
21941         invoking requires_stack_frame_p.
21943 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21945         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
21946         rtx_insn *.
21947         (speculate_expr): Likewise for locals "orig_insn_rtx",
21948         "spec_insn_rtx".
21949         (eq_transformed_insns): Likewise for locals "i1", "i2".
21950         (check_for_new_jump): Likewise for return type and local "end".
21951         (find_new_jump): Likewise for return type and local "jump".
21952         (sel_split_edge): Likewise for local "jump".
21953         (sel_create_recovery_block): Likewise.
21954         (sel_redirect_edge_and_branch_force): Likewise.
21955         (sel_redirect_edge_and_branch): Likewise.
21957 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21959         * sel-sched.c (substitute_reg_in_expr): Strengthen local
21960         "new_insn" from rtx to rtx_insn *.
21961         (create_insn_rtx_with_rhs): Likewise for return type and for local
21962         "insn_rtx".
21963         (create_insn_rtx_with_lhs): Likewise.
21964         (create_speculation_check): Likewise for local "insn_rtx".
21965         (implicit_clobber_conflict_p): Likewise for local "insn".
21966         (get_expr_cost): Likewise.
21967         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
21968         (move_cond_jump): Likewise for locals "next", "prev", "link",
21969         "head", "from", "to".
21971 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21973         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
21974         "next" from rtx to rtx_insn *.
21975         (find_conditional_protection): Likewise for local "next".
21976         (is_conditionally_protected): Likewise for local "insn1".
21977         (is_pfree): Likewise for locals "insn1", "insn2".
21979 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21981         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
21982         from rtx to rtx_insn *.
21984         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
21985         locals "insn1", "insn2" from rtx to rtx_insn *.
21986         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
21987         locals "insn", "prev", "last_jump", "next_tail".
21988         (schedule_ebb): Likewise for params "head", "tail".
21989         (schedule_ebbs): Likewise for locals "tail", "head".
21991         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
21992         to rtx_insn on "last_insn" in one of the invocations of
21993         schedule_ebb.
21995 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
21997         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
21998         "elem", "insn" from rtx to rtx_insn *.
21999         (change_spec_dep_to_hard): Likewise.
22000         (get_back_and_forw_lists): Likewise for local "con".
22001         (sd_add_dep): Likewise for locals "elem", "insn".
22002         (sd_resolve_dep): Likewise for locals "pro", "con".
22003         (sd_unresolve_dep): Likewise.
22004         (sd_delete_dep): Likewise.
22005         (chain_to_prev_insn): Likewise for local "pro".
22006         (find_inc): Likewise for locals "pro", "con".
22008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22010         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
22011         to rtx_insn *.
22012         (reg_set_between_p): Strengthen local "insn" from const_rtx to
22013         const rtx_insn *.
22014         (modified_between_p): Strengthen local "insn" from rtx to
22015         rtx_insn *.
22016         (remove_reg_equal_equiv_notes_for_regno): Likewise.
22017         (keep_with_call_p): Strengthen local "i2" from const_rtx to
22018         const rtx_insn *.
22020 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22022         * resource.c (next_insn_no_annul): Strengthen local "next" from
22023         rtx to rtx_insn *.
22024         (mark_referenced_resources): Likewise for local "insn".
22026 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22028         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
22029         to rtx_insn *.
22030         (find_reloads): Likewise for param 1.
22031         (subst_reloads): Likewise for sole param.
22032         (find_equiv_reg): Likwise for param 2.
22033         (regno_clobbered_p): Likwise for param 2.
22034         (reload): Likewise for param 1.
22036         * caller-save.c (save_call_clobbered_regs): Strengthen local
22037         "insn" from rtx to rtx_insn *.
22038         (insert_one_insn): Likewise for local "insn".
22040         * reload.c (this_insn): Likewise for this global.
22041         (find_reloads): Likewise for param "insn".
22042         (find_reloads_toplev): Likewise.
22043         (find_reloads_address): Likewise.
22044         (subst_reg_equivs): Likewise.
22045         (update_auto_inc_notes): Likewise.
22046         (find_reloads_address_1): Likewise.
22047         (find_reloads_subreg_address): Likewise.
22048         (subst_reloads): Likewise.
22049         (find_equiv_reg): Likewise, also for local "p".
22050         (regno_clobbered_p): Likewise for param "insn".
22052         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
22053         array.
22054         (spill_reg_store): Likewise for the elements of this array.
22055         (remove_init_insns): Likewise for local "equiv_insn".
22056         (will_delete_init_insn_p): Likewise for param "insn".
22057         (reload): Likewise for param ""first" and local "insn".
22058         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
22059         rtx_insn *.
22060         (calculate_elim_costs_all_insns): Likewise.
22061         (delete_caller_save_insns): Likewise.
22062         (spill_failure): Likewise for param "insn".
22063         (delete_dead_insn): Likewise.
22064         (set_label_offsets): Likewise.
22065         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
22066         "prev_insn".
22067         (elimination_costs_in_insn): Likewise for param "insn".
22068         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
22069         when referring to an insn.
22070         (set_initial_label_offsets): Likewise.
22071         (set_offsets_for_label): Strengthen param "insn" from rtx to
22072         rtx_insn *.
22073         (init_eliminable_invariants): Likewise for param "first" and local
22074         "insn".
22075         (fixup_eh_region_note): Likewise for param "insn".
22076         (reload_as_needed): Likewise for locals "prev", "insn",
22077         "old_next", "old_prev", "next".
22078         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
22079         "last".
22080         (reload_inheritance_insn): Strengthen elements of this array from
22081         rtx to rtx_insn *.
22082         (failed_reload): Likewise for param "insn".
22083         (choose_reload_regs): Likewise for local "insn".  Replace use of
22084         NULL_RTX with NULL when referring to an insn.
22085         (input_reload_insns): Strengthen elements of this array from rtx
22086         to rtx_insn *.
22087         (other_input_address_reload_insns): Likewise for this global.
22088         (other_input_reload_insns): Likewise for this global.
22089         (input_address_reload_insns): Likwise for the elements of this
22090         array.
22091         (inpaddr_address_reload_insns): Likwise for the elements of this
22092         array.
22093         (output_reload_insns): Likewise for the elements of this array.
22094         (output_address_reload_insns): Likewise for the elements of this
22095         array.
22096         (outaddr_address_reload_insns): Likewise for the elements of this
22097         array.
22098         (operand_reload_insns): Likewise for this global.
22099         (other_operand_reload_insns): Likewise for this global.
22100         (other_output_reload_insns): Likewise for the elements of this
22101         array.
22102         (new_spill_reg_store): Likewise for the elements of this
22103         array.
22104         (emit_input_reload_insns): Likewise for locals "insn", "temp".
22105         Strengthen local "where" from rtx * to rtx_insn **.
22106         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
22107         from rtx to rtx_insn *.
22108         (do_input_reload): Likewise for local "insn".
22109         (do_output_reload): Likewise for local "insn".
22110         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
22111         (emit_insn_if_valid_for_reload): Likewise for return type and local
22112         "last".  Add checked cast to rtx_insn when returning "insn" since
22113         this has been through emit_insn.
22114         (gen_reload): Strengthen return type and locals "last", "insn", "set"
22115         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
22116         returning "insn" since it's been through
22117         emit_insn_if_valid_for_reload at this point.
22118         (delete_output_reload): Strengthen param "insn" and locals
22119         "output_reload_insn", "i2" from rtx to rtx_insn *.
22120         (delete_address_reloads): Likewise for params "dead_insn",
22121         "current_insn" and locals "prev", "next".
22122         (delete_address_reloads_1): Likewise for params "dead_insn",
22123         "current_insn" and locals "prev", "i2".
22124         (inc_for_reload): Likewise for locals "last", "add_insn".
22125         (add_auto_inc_notes): Strengthen param "insn" from rtx to
22126         rtx_insn *.
22128         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
22129         param of this duplicate of the prototype from reload.h
22131 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22133         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
22134         rtx to rtx_insn *.
22135         (regstat_bb_compute_calls_crossed): Likewise.
22137 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22139         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
22140         to rtx_insn *.
22141         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
22142         with an insn.
22143         (regrename_analyze): Strengthen local "insn" from rtx to
22144         rtx_insn *.
22145         (scan_rtx_reg): Likewise for param "insn".
22146         (scan_rtx_address): Likewise.
22147         (scan_rtx): Likewise.
22148         (restore_operands): Likewise.
22149         (record_out_operands): Likewise.
22150         (build_def_use): Likewise for local "insn".  Replace use of
22151         NULL_RTX with NULL when dealing with an insn.
22153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22155         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
22156         * reginfo.c (reg_scan): Likewise, also for local "insn".
22157         (reg_scan_mark_refs): Likewise for param "insn".
22158         (init_subregs_of_mode): Likewise for local "insn".
22160 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22162         * regcprop.c (struct queued_debug_insn_change): Strengthen field
22163         "insn" from rtx to rtx_insn *.
22164         (replace_oldest_value_reg): Likewise for param "insn".
22165         (replace_oldest_value_addr): Likewise.
22166         (replace_oldest_value_mem): Likewise.
22167         (apply_debug_insn_changes): Likewise for local "last_insn".
22168         (copyprop_hardreg_forward_1): Likewise for local "insn".
22170 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22172         * reg-stack.c (next_flags_user): Strengthen return type and param
22173         "insn" from rtx to rtx_insn *.
22174         (straighten_stack): Likewise for param "insn".
22175         (check_asm_stack_operands): Likewise.
22176         (remove_regno_note): Likewise.
22177         (emit_pop_insn): Likewise for return type, param "insn", local
22178         "pop_insn".
22179         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
22180         "limit" from rtx to rtx_insn *.
22181         (swap_to_top): Likewise for param "insn".
22182         (move_for_stack_reg): Likewise.
22183         (move_nan_for_stack_reg): Likewise.
22184         (swap_rtx_condition): Likewise.
22185         (compare_for_stack_reg): Likewise.
22186         (subst_all_stack_regs_in_debug_insn): Likewise.
22187         (subst_stack_regs_pat): Likewise, and local "insn2".
22188         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
22189         rtx_insn *.
22190         (subst_stack_regs): Likewise.
22191         (change_stack): Likewise.
22192         (convert_regs_1): Likewise for locals "insn", "next".
22194 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22196         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
22197         rtx_insn *.
22198         (combine_set_extension): Likewise for param "curr_insn".
22199         (transform_ifelse): Likewise for param "def_insn".
22200         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
22201         from vec<rtx> * to vec<rtx_insn *> *.
22202         (is_cond_copy_insn): Likewise for param "insn".
22203         (struct ext_state): Strengthen the four vec fields from vec<rtx>
22204         to vec<rtx_insn *>.
22205         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
22206         local "def_insn" from rtx to rtx_insn *.
22207         (get_sub_rtx): Likewise for param "def_insn".
22208         (merge_def_and_ext): Likewise.
22209         (combine_reaching_defs): Likewise.
22210         (add_removable_extension): Likewise for param "insn".
22211         (find_removable_extensions): Likewise for local "insn".
22212         (find_and_remove_re): Likewise for locals "curr_insn" and
22213         "def_insn".  Strengthen locals "reinsn_del_list" and
22214         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
22216 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22218         * recog.c (split_insn): Strengthen param "insn" and locals
22219         "first", "last" from rtx to rtx_insn *.
22220         (split_all_insns): Likewise for locals "insn", "next".
22221         (split_all_insns_noflow): Likewise.
22223 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22225         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
22226         const rtx_insn *.
22227         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22228         (debug_rtx_find): Likewise for param 1 "x".
22230         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
22231         const_rtx to const rtx_insn *.  Likewise for local "insn".
22232         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22233         (debug_rtx_find): Likewise for param 1 "x".
22234         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
22235         from const_rtx to const rtx_insn * within the appropriate cases of
22236         the switch statement.
22238         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
22239         Strengthen local "insns" from rtx to rtx_insn * since this is
22240         passed to a call to debug_rtx_list.
22242 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22244         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
22245         to rtx_insn *.
22247         * function.c (stack_protect_epilogue): Add checked cast to
22248         rtx_insn for now when invoking predict_insn_def.
22250         * predict.c (predict_insn): Strengthen param "insn" from rtx to
22251         rtx_insn *.
22252         (predict_insn_def): Likewise.
22253         (rtl_predict_edge): Likewise for local "last_insn".
22254         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
22255         const rtx_insn *.
22256         (combine_predictions_for_insn): Strengthen param "insn" from rtx
22257         to rtx_insn *.
22258         (bb_estimate_probability_locally): Likewise for local "last_insn".
22259         (expensive_function_p): Likewise for local "insn".
22261         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
22262         local "jmp", since this is used when invoking predict_insn_def.
22264 2014-08-22  Marek Polacek  <polacek@redhat.com>
22266         PR c++/62199
22267         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
22269 2014-08-22  Marek Polacek  <polacek@redhat.com>
22271         PR c/61271
22272         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
22273         a comparison in parens.
22274         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
22275         in parens.
22277 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22279         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
22280         rtx_insn *.
22282         * cprop.c (fis_get_condition): Likewise.
22284         * postreload.c (reload_cse_regs): Likewise for param "first".
22285         (reload_cse_simplify): Likewise for param "insn".
22286         (reload_cse_regs_1): Likewise for local "insn".
22287         (reload_cse_simplify_set): Likewise for param "insn".
22288         (reload_cse_simplify_operands): Likewise.
22289         (struct reg_use): Likewise for field "insn".
22290         (reload_combine_purge_insn_uses): Likewise for param "insn".
22291         (fixup_debug_insns): Likewise for params "from", "to" and local
22292         "insn".
22293         (try_replace_in_use): Likewise for local "use_insn".
22294         (reload_combine_recognize_const_pattern): Likewise for param
22295         "insn" and locals "add_moved_after_insn", "use_insn".
22296         (reload_combine_recognize_pattern): Likewise for param "insn" and
22297         local "prev".
22298         (reload_combine): Likewise for locals "insn", "prev".
22299         (reload_combine_note_use): Likewise for param "insn".
22300         (move2add_use_add2_insn): Likewise.
22301         (move2add_use_add3_insn): Likewise.
22302         (reload_cse_move2add): Likewise, also for local "next".
22303         (move2add_note_store): Likewise for local "insn".
22305 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22307         * postreload-gcse.c (struct occr): Strengthen field "insn" from
22308         rtx to rtx_insn *.
22309         (struct unoccr): Likewise.
22310         (struct modifies_mem): Likewise.
22311         (alloc_mem): Likewise for local "insn".
22312         (insert_expr_in_table): Likewise for param "insn".
22313         (dump_expr_hash_table_entry): Likewise for local "insn".
22314         (oprs_unchanged_p): Likewise for param "insn".
22315         (load_killed_in_block_p): Likewise for local "setter".
22316         (record_last_reg_set_info): Likewise for param "insn".
22317         (record_last_reg_set_info_regno): Likewise.
22318         (record_last_mem_set_info): Likewise.
22319         (record_last_set_info): Likewise for local "last_set_insn".
22320         (record_opr_changes): Likewise for param "insn".
22321         (hash_scan_set): Likewise.
22322         (compute_hash_table): Likewise for local "insn".
22323         (get_avail_load_store_reg): Likewise for param "insn".
22324         (eliminate_partially_redundant_load): Likewise, also for locals
22325         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
22326         RTX for insns.
22327         (eliminate_partially_redundant_loads): Likewise for local "insn".
22329 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22331         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
22332         rtx to rtx_insn *.
22333         (expand_binop): Likewise for locals "entry_last", "last", "insns"
22334         (expand_twoval_unop): Likewise for locals entry_last", "last".
22335         (expand_twoval_binop): Likewise.
22336         (expand_twoval_binop_libfunc): Likewise for local "insns".
22337         (widen_leading): Likewise for local "last".
22338         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
22339         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
22340         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
22341         (expand_parity): Likewise for locals "last" and "seq".
22342         (expand_ffs): Likewise for local "seq".  Strengthen local
22343         "nonzero_label" from rtx to rtx_code_label *.
22344         (expand_absneg_bit): Strengthen local "insns" from rtx to
22345         rtx_insn *.
22346         (expand_unop_direct): Likewise for local "last".
22347         (expand_unop): Likewise for locals "last", "insns".
22348         (expand_abs_nojump): Likewise for local "last".
22349         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
22350         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
22351         rtx_insn *.
22352         (expand_copysign_absneg): Strengthen local "label" from rtx to
22353         rtx_code_label *.
22354         (expand_copysign_bit): Strengthen local "insns" from rtx to
22355         rtx_insn *.
22356         (struct no_conflict_data): Likewise for fields "first", "insn".
22357         (emit_libcall_block_1): Likewise for param "insns" and locals
22358         "next", "last", "insn".
22359         (emit_libcall_block): For now, add a checked cast to rtx_insn *
22360         on "insns" when invoking emit_libcall_block_1.  Ultimately we
22361         want to strengthen insns itself.
22362         (prepare_cmp_insn): Strengthen local "last" from rtx to
22363         rtx_insn *.
22364         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
22365         (prepare_float_lib_cmp): Likewise for local "insns".
22366         (emit_conditional_move): Likewise for local "last".
22367         (emit_conditional_add): Likewise.
22368         (have_sub2_insn): Likewise for local "seq".
22369         (expand_float): Likewise for local "insns".  Strengthen locals
22370         "label", "neglabel" from rtx to rtx_code_label *.
22371         (expand_fix): Likewise for locals "last", "insn", "insns" (to
22372         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
22373         (expand_fixed_convert): Likewise for local "insns" (to
22374         rtx_insn *).
22375         (expand_sfix_optab): Likewise for local "last".
22376         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
22377         to rtx_code_label *.
22378         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
22379         from rtx to rtx_insn *.
22380         (expand_atomic_fetch_op): Likewise for local "insn".
22381         (maybe_legitimize_operand_same_code): Likewise for local "last".
22382         (maybe_legitimize_operands): Likewise.
22384 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22386         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
22387         "insn" from rtx to rtx_insn *.
22388         (ps_rtl_insn): Likewise for return type.
22389         (doloop_register_get): Likewise for params "head", "tail" and
22390         locals "insn", "first_insn_not_to_check".
22391         (schedule_reg_move): Likewise for local "this_insn".
22392         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
22393         of gen_move_insn for now.
22394         (reset_sched_times): Strengthen local "insn" from rtx to
22395         rtx_insn *.
22396         (permute_partial_schedule): Likewise.
22397         (duplicate_insns_of_cycles): Likewise for local "u_insn".
22398         (dump_insn_location): Likewise for param "insn".
22399         (loop_canon_p): Likewise for local "insn".
22400         (sms_schedule): Likewise.
22401         (print_partial_schedule): Likewise.
22402         (ps_has_conflicts): Likewise.
22404 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22406         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
22407         "tailp" from rtx * to rtx_insn **.
22409         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
22410         from rtx to rtx_insn *.
22411         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
22412         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
22413         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
22414         rtx to rtx_insn *.
22415         * modulo-sched.c (const_iteration_count): Strengthen return type
22416         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
22417         use of NULL_RTX with NULL when working with insns.
22418         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
22419         to rtx_insn *.
22420         (sms_schedule): Likewise.
22421         * sched-rgn.c (init_ready_list): Likewise, also for locals
22422         "src_head" and "src_next_tail".
22423         (compute_block_dependences): Likewise.
22424         (free_block_dependencies): Likewise.
22425         (debug_rgn_dependencies): Likewise.
22426         (free_rgn_deps): Likewise.
22427         (compute_priorities): Likewise.
22428         (schedule_region): Likewise.
22429         * sel-sched.c (find_ebb_boundaries): Likewise.
22431         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
22432         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
22434 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22436         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
22437         from rtx to rtx_insn *.
22438         (new_seginfo): Likewise for param "insn".
22439         (create_pre_exit): Likewise for locals "last_insn",
22440         "before_return_copy", "return_copy".
22441         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
22442         "mode_set".
22444 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22446         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
22447         from rtx to rtx_insn *.
22448         (lra_push_insn): Likewise for 1st param.
22449         (lra_push_insn_and_update_insn_regno_info): Likewise.
22450         (lra_pop_insn): Likewise for return type.
22451         (lra_invalidate_insn_data): Likewise for 1st param.
22452         (lra_set_insn_deleted): Likewise.
22453         (lra_delete_dead_insn): Likewise.
22454         (lra_process_new_insns): Likewise for first 3 params.
22455         (lra_set_insn_recog_data): Likewise for 1st param.
22456         (lra_update_insn_recog_data): Likewise.
22457         (lra_set_used_insn_alternative): Likewise.
22458         (lra_invalidate_insn_regno_info): Likewise.
22459         (lra_update_insn_regno_info): Likewise.
22460         (lra_former_scratch_operand_p): Likewise.
22461         (lra_eliminate_regs_1): Likewise.
22462         (lra_get_insn_recog_data): Likewise.
22464         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
22465         rtx to rtx_insn *.
22467         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
22468         "mv1" and "mv2".
22469         (substitute_within_insn): New.
22470         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
22471         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
22472         Replace call to "substitute" with call to substitute_within_insn.
22474         * lra-constraints.c (curr_insn): Strengthen from rtx to
22475         rtx_insn *.
22476         (get_equiv_with_elimination): Likewise for param "insn".
22477         (match_reload): Strengthen params "before" and "after" from rtx *
22478         to rtx_insn **.
22479         (emit_spill_move): Likewise for return type.  Add a checked cast
22480         to rtx_insn * on result of gen_move_insn for now.
22481         (check_and_process_move): Likewise for local "before".  Replace
22482         NULL_RTX with NULL when referring to insns.
22483         (process_addr_reg): Strengthen params "before" and "after" from
22484         rtx * to rtx_insn **.
22485         (insert_move_for_subreg): Likewise.
22486         (simplify_operand_subreg): Strengthen locals "before" and "after"
22487         from rtx to rtx_insn *.
22488         (process_address_1): Strengthen params "before" and "after" from
22489         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
22490         rtx to rtx_insn *.
22491         (process_address): Strengthen params "before" and "after" from
22492         rtx * to rtx_insn **.
22493         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
22494         (curr_insn_transform): Strengthen locals "before" and "after"
22495         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
22496         to insns.
22497         (loc_equivalence_callback): Update cast of "data", changing
22498         resulting type from rtx to rtx_insn *.
22499         (substitute_pseudo_within_insn): New.
22500         (inherit_reload_reg): Strengthen param "insn" from rtx to
22501         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
22502         NULL when referring to insns.  Add a checked cast to rtx_insn *
22503         when using usage_insn to invoke lra_update_insn_regno_info.
22504         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
22505         likewise for locals "restore", "save".  Add checked casts to
22506         rtx_insn * when using usage_insn to invoke
22507         lra_update_insn_regno_info and lra_process_new_insns.  Replace
22508         NULL_RTX with NULL when referring to insns.
22509         (split_if_necessary): Strengthen param "insn" from rtx to
22510         rtx_insn *.
22511         (update_ebb_live_info): Likewise for params "head", "tail" and local
22512         "prev_insn".
22513         (get_last_insertion_point): Likewise for return type and local "insn".
22514         (get_live_on_other_edges): Likewise for local "last".
22515         (inherit_in_ebb): Likewise for params "head", "tail" and locals
22516         "prev_insn", "next_insn", "restore".
22517         (remove_inheritance_pseudos): Likewise for local "prev_insn".
22518         (undo_optional_reloads): Likewise for local "insn".
22520         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
22521         "insn".
22522         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
22523         insns.
22524         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
22525         rtx_insn *.
22526         (spill_pseudos): Likewise for local "insn".
22527         (init_elimination): Likewise.
22528         (process_insn_for_elimination): Likewise for param "insn".
22530         * lra-lives.c (curr_insn): Likewise.;
22532         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
22533         (remove_pseudos): Likewise for param "insn".
22534         (spill_pseudos): Likewise for local "insn".
22535         (lra_final_code_change): Likewise for locals "insn", "curr".
22537         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
22538         (lra_set_insn_deleted): Likewise.
22539         (lra_delete_dead_insn): Likewise, and for local "prev".
22540         (new_insn_reg): Likewise for param "insn".
22541         (lra_set_insn_recog_data): Likewise.
22542         (lra_update_insn_recog_data): Likewise.
22543         (lra_set_used_insn_alternative): Likewise.
22544         (get_insn_freq): Likewise.
22545         (invalidate_insn_data_regno_info): Likewise.
22546         (lra_invalidate_insn_regno_info): Likewise.
22547         (lra_update_insn_regno_info): Likewise.
22548         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
22549         vec<rtx_insn *>.
22550         (lra_push_insn_1): Strengthen param "insn" from rtx to
22551         rtx_insn *.
22552         (lra_push_insn): Likewise.
22553         (lra_push_insn_and_update_insn_regno_info): Likewise.
22554         (lra_pop_insn): Likewise for return type and local "insn".
22555         (push_insns): Likewise for params "from", "to", and local "insn".
22556         (setup_sp_offset): Likewise for params "from", "last" and locals
22557         "before", "insn".
22558         (lra_process_new_insns): Likewise for params "insn", "before",
22559         "after" and local "last".
22560         (struct sloc): Likewise for field "insn".
22561         (lra_former_scratch_operand_p): Likewise for param "insn".
22562         (remove_scratches): Likewise for locals "insn", "last".
22563         (check_rtl): Likewise for local "insn".
22564         (add_auto_inc_notes): Likewise for param "insn".
22565         (update_inc_notes): Likewise for local "insn".
22566         (lra): Replace NULL_RTX with NULL when referring to insn.
22568 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22570         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
22571         to rtx_insn *.
22572         (resolve_reg_notes): Likewise.
22573         (resolve_simple_move): Likewise for return type, param "insn", and
22574         locals "insns", "minsn".
22575         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
22576         (resolve_use): Likewise.
22577         (resolve_debug): Likewise.
22578         (find_decomposable_shift_zext): Likewise.
22579         (resolve_shift_zext): Likewise for return type, param "insn", and
22580         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
22581         (decompose_multiword_subregs): Likewise for local "insn",
22582         "orig_insn", "decomposed_shift", "end".
22584 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22586         * basic-block.h (basic_block split_edge_and_insert): Strengthen
22587         param "insns" from rtx to rtx_insn *.
22589         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
22590         rtx to rtx_insn *.
22591         (struct iv_to_split): Likewise.
22592         (loop_exit_at_end_p): Likewise for local "insn".
22593         (split_edge_and_insert): Likewise for param "insns".
22594         (compare_and_jump_seq): Likewise for return type, param "cinsn",
22595         and locals "seq", "jump".
22596         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
22597         "branch_code"; update invocations of compare_and_jump_seq to
22598         eliminate NULL_RTX in favor of NULL.
22599         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
22600         rtx to rtx_insn *.
22601         (reset_debug_uses_in_loop): Likewise.
22602         (analyze_insn_to_expand_var): Likewise for param "insn".
22603         (analyze_iv_to_split_insn): Likewise.
22604         (analyze_insns_in_loop): Likewise for local "insn".
22605         (insert_base_initialization): Likewise for param
22606         "insn" and local "seq".
22607         (split_iv): Likewise for param "insn" and local "seq".
22608         (expand_var_during_unrolling): Likewise for param "insn".
22609         (insert_var_expansion_initialization): Likewise for local "seq".
22610         (combine_var_copies_in_loop_exit): Likewise.
22611         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
22612         "insn".
22613         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
22614         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
22615         "next".
22617 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22619         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
22620         rtx_insn *.
22621         (iv_analyze_result): Likewise.
22622         (iv_analyze_expr): Likewise.
22623         (biv_p): Likewise.
22625         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
22626         local "def_insn" from rtx to rtx_insn *.
22627         (get_biv_step_1): Likewise for local "insn".
22628         (iv_analyze_expr): Likewise for param "insn".
22629         (iv_analyze_def): Likewise for local "insn".
22630         (iv_analyze_op): Likewise for param "insn".
22631         (iv_analyze): Likewise.
22632         (iv_analyze_result): Likewise.
22633         (biv_p): Likewise.
22634         (suitable_set_for_replacement): Likewise.
22635         (simplify_using_initial_values): Likewise for local "insn".
22636         (iv_number_of_iterations): Likewise for param "insn".
22637         (check_simple_exit): Add checked cast to rtx_insn when invoking
22638         iv_number_of_iterations for now (until get_condition is
22639         strengthened).
22641         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
22642         "insn" from rtx to rtx_insn *.
22643         (analyze_insns_in_loop): Likewise for local "insn".
22645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22647         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
22648         to rtx_insn *.
22649         (struct invariant): Likewise.
22650         (hash_invariant_expr_1): Likewise for param "insn".
22651         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
22652         (find_exits): Likewise for local "insn".
22653         (create_new_invariant): Likewise for param "insn".
22654         (check_dependencies): Likewise.
22655         (find_invariant_insn): Likewise.
22656         (record_uses): Likewise.
22657         (find_invariants_insn): Likewise.
22658         (find_invariants_bb): Likewise for local "insn".
22659         (get_pressure_class_and_nregs): Likewise for param "insn".
22660         (calculate_loop_reg_pressure): Likewise for local "insn".
22662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22664         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
22665         to rtx_insn *.
22666         (add_test): Likewise for locals "seq", "jump".
22667         (doloop_modify): Likewise for locals "sequence", "jump_insn".
22669 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22671         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
22672         rtx_insn *.
22673         (rebuild_jump_labels_chain): Likewise for param "chain".
22675         * cfgexpand.c (pass_expand::execute): Add checked cast to
22676         rtx_insn * when calling rebuild_jump_labels_chain in region where
22677         we know e->insns.r is non-NULL.
22679         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
22680         rtx_insn *.
22681         (rebuild_jump_labels): Likewise.
22682         (rebuild_jump_labels_chain): Likewise for param "chain".
22683         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
22684         (init_label_info): Likewise for param "f".
22685         (maybe_propagate_label_ref): Likewise for params "jump_insn",
22686         "prev_nonjump_insn".
22687         (mark_all_labels): Likewise for param "f" and locals "insn",
22688         "prev_nonjump_insn".
22690 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22692         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
22693         from rtx to rtx_insn *insn.
22694         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
22695         (ira_add_allocno_copy): Likewise.
22696         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
22697         rtx to rtx_insn *.
22698         (ira_create_copy): Likewise.
22699         (ira_add_allocno_copy): Likewise.
22700         (create_bb_allocnos): Likewise for local "insn".
22701         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
22702         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
22703         process_regs_for_copy for rtx_insn * param.
22704         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
22705         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
22706         process_regs_for_copy for rtx_insn * param.
22707         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
22708         * ira-costs.c (record_reg_classes): Likewise for param "insn".
22709         (record_operand_costs): Likewise.
22710         (scan_one_insn): Likewise for return type, and for param "insn".
22711         (process_bb_for_costs): Likewise for local "insn".
22712         (process_bb_node_for_hard_reg_moves): Likewise.
22713         * ira-emit.c (struct move): Likewise for field "insn".
22714         (create_move): Eliminate use of NULL_RTX when dealing with an
22715         rtx_insn *.
22716         (emit_move_list): Strengthen return type and locals "result",
22717         "insn" from rtx to rtx_insn *insn.
22718         (emit_moves): Likewise for locals "insns", "tmp".
22719         (ira_emit): Likewise for local "insn".
22720         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
22721         "insn".
22722         (find_call_crossed_cheap_reg): Likewise.
22723         (process_bb_node_lives): Likewise for local "insn".
22724         * ira.c (decrease_live_ranges_number): Likewise.
22725         (compute_regs_asm_clobbered): Likewise.
22726         (build_insn_chain): Likewise.
22727         (find_moveable_pseudos): Likewise, also locals "def_insn",
22728         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
22729         to rtx_insn **.  Add a checked cast when assigning from
22730         "closest_use" into closest_uses array in a region where we know
22731         it's a non-NULL insn.
22732         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
22733         to rtx_insn *.
22734         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
22735         "last_interesting_insn", "uin".
22736         (move_unallocated_pseudos): Likewise for locals "def_insn",
22737         "move_insn", "newinsn".
22739 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22741         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
22742         Strengthen locals "done_label", "do_error" from rtx to
22743         rtx_code_label *.
22744         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
22745         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
22746         rtx_code_label *.
22747         (ubsan_expand_si_overflow_neg_check): Likewise for locals
22748         "done_label", "do_error" to rtx_code_label * and local  "last" to
22749         rtx_insn *.
22750         (ubsan_expand_si_overflow_mul_check): Likewise for locals
22751         "done_label", "do_error", "large_op0", "small_op0_large_op1",
22752         "one_small_one_large", "both_ops_large", "after_hipart_neg",
22753         "after_lopart_neg", "do_overflow", "hipart_different"  to
22754         rtx_code_label * and local  "last" to rtx_insn *.
22756 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22758         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
22759         "insn" and "move_insn" from rtx to rtx_insn *.
22761 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22763         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
22764         rtx_insn *.
22765         (cheap_bb_rtx_cost_p): Likewise.
22766         (first_active_insn): Likewise for return type and local "insn".
22767         (last_active_insn):  Likewise for return type and locals "insn",
22768         "head".
22769         (struct noce_if_info): Likewise for fields "jump", "insn_a",
22770         "insn_b".
22771         (end_ifcvt_sequence): Likewise for return type and locals "insn",
22772         "seq".
22773         (noce_try_move): Likewise for local "seq".
22774         (noce_try_store_flag): Likewise.
22775         (noce_try_store_flag_constants): Likewise.
22776         (noce_try_addcc): Likewise.
22777         (noce_try_store_flag_mask): Likewise.
22778         (noce_try_cmove): Likewise.
22779         (noce_try_minmax): Likewise.
22780         (noce_try_abs): Likewise.
22781         (noce_try_sign_mask): Likewise.
22782         (noce_try_bitop): Likewise.
22783         (noce_can_store_speculate_p): Likewise for local "insn".
22784         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
22785         seq".
22786         (check_cond_move_block): Likewise for local "insn".
22787         (cond_move_convert_if_block): Likewise.
22788         (cond_move_process_if_block): Likewise for locals "seq",
22789         "loc_insn".
22790         (noce_find_if_block): Likewise for local "jump".
22791         (merge_if_block): Likewise for local "last".
22792         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
22793         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
22794         (block_has_only_trap): Likewise for return type and local "trap".
22795         (find_if_case_1): Likewise for local "jump".
22796         (dead_or_predicable): Likewise for locals "head", "end", "jump",
22797         "insn".
22799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22801         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
22802         "last_insn", "loop_end" from rtx to rtx_insn *.
22804         * hw-doloop.c (scan_loop): Likewise for local "insn".
22805         (discover_loop): Likewise for param "tail_insn".
22806         (discover_loops): Likewise for local "tail".
22808         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
22809         cast to rtx_insn * when assigning from an rtx local to a
22810         hwloop_info's "last_insn" field.
22812 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22814         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
22815         (add_delay_dependencies): Strengthen local "pro" from rtx to
22816         rtx_insn *.
22817         (recompute_todo_spec): Likewise.
22818         (dep_cost_1): Likewise for locals "insn", "used".
22819         (schedule_insn): Likewise for local "dbg".
22820         (schedule_insn): Likewise for locals "pro", "next".
22821         (unschedule_insns_until): Likewise for local "con".
22822         (restore_pattern): Likewise for local "next".
22823         (estimate_insn_tick): Likewise for local "pro".
22824         (resolve_dependencies): Likewise for local "next".
22825         (fix_inter_tick): Likewise.
22826         (fix_tick_ready): Likewise for local "pro".
22827         (add_to_speculative_block): Likewise for locals "check", "twin",
22828         "pro".
22829         (sched_extend_bb): Likewise for locals "end", "insn".
22830         (init_before_recovery): Likewise for local "x".
22831         (sched_create_recovery_block): Likewise for local "barrier".
22832         (create_check_block_twin): Likewise for local "pro".
22833         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
22834         "consumer".
22835         (unlink_bb_notes): Update for change to type of bb_header.
22836         Strengthen locals "prev", "label", "note", "next" from rtx to
22837         rtx_insn *.
22838         (clear_priorities): Likewise for local "pro".
22840 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22842         * gcse.c (struct occr): Strengthen field "insn" from rtx to
22843         rtx_insn *.
22844         (test_insn): Likewise for this global.
22845         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
22846         const rtx_insn *.
22847         (oprs_anticipatable_p): Likewise.
22848         (oprs_available_p): Likewise.
22849         (insert_expr_in_table): Strengthen param "insn" from  rtx to
22850         rtx_insn *.
22851         (hash_scan_set): Likewise.
22852         (hash_scan_clobber): Likewise.
22853         (hash_scan_call): Likewise.
22854         (hash_scan_insn): Likewise.
22855         (compute_hash_table_work): Likewise for local "insn".
22856         (process_insert_insn): Likewise for return type and local "pat".
22857         (insert_insn_end_basic_block): Likewise for locals "new_insn",
22858         "pat", "pat_end", "maybe_cc0_setter".
22859         (pre_edge_insert): Likewise for local "insn".
22860         (pre_insert_copy_insn): Likewise for param "insn".
22861         (pre_insert_copies): Likewise for local "insn".
22862         (struct set_data): Likewise for field "insn".
22863         (single_set_gcse): Likewise for param "insn".
22864         (gcse_emit_move_after): Likewise.
22865         (pre_delete): Likewise for local "insn".
22866         (update_bb_reg_pressure): Likewise for param "from" and local
22867         "insn".
22868         (should_hoist_expr_to_dom): Likewise for param "from".
22869         (hoist_code): Likewise for local "insn".
22870         (get_pressure_class_and_nregs): Likewise for param "insn".
22871         (calculate_bb_reg_pressure): Likewise for local "insn".
22872         (compute_ld_motion_mems): Likewise.
22874 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22876         * genpeep.c (main): Rename param back from "uncast_ins1" to
22877         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
22878         checked cast.
22880         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
22882 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
22884         PR target/62195
22885         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
22886         documentation to state it is only for VSX operations.
22888         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
22889         constraint only active if VSX.
22891         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
22892         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
22893         (lfiwzx): Likewise.
22895 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22897         * fwprop.c (single_def_use_dom_walker::before_dom_children):
22898         Strengthen local "insn" from rtx to rtx_insn *.
22899         (use_killed_between): Likewise for param "target_insn".
22900         (all_uses_available_at): Likewise for param "target_insn" and
22901         local "next".
22902         (update_df_init): Likewise for params "def_insn", "insn".
22903         (update_df): Likewise for param "insn".
22904         (try_fwprop_subst): Likewise for param "def_insn" and local
22905         "insn".
22906         (free_load_extend): Likewise for param "insn".
22907         (forward_propagate_subreg): Likewise for param "def_insn" and
22908         local "use_insn".
22909         (forward_propagate_asm): Likewise for param "def_insn" and local
22910         "use_insn".
22911         (forward_propagate_and_simplify): Likewise for param "def_insn"
22912         and local "use_insn".
22913         (forward_propagate_into): Likewise for locals "def_insn" and
22914         "use_insn".
22916 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22918         * function.c (emit_initial_value_sets): Strengthen local "seq"
22919         from rtx to rtx_insn *.
22920         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
22921         local "seq".
22922         (instantiate_virtual_regs): Likewise for local "insn".
22923         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
22924         (reorder_blocks_1): Likewise for param "insns" and local "insn".
22925         (expand_function_end): Likewise for locals "insn" and "seq".
22926         (epilogue_done): Likewise for local "insn".
22927         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
22928         "last", "trial".
22929         (reposition_prologue_and_epilogue_notes): Likewise for locals
22930         "insn", "last", "note", "first".
22931         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
22932         (pass_match_asm_constraints::execute): Likewise for local "insn".
22934 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22936         * output.h (final_scan_insn): Strengthen return type from rtx to
22937         rtx_insn *.
22938         (final_forward_branch_p): Likewise for param.
22939         (current_output_insn): Likewise for this global.
22941         * final.c (rtx debug_insn): Likewise for this variable.
22942         (current_output_insn): Likewise.
22943         (get_attr_length_1): Rename param "insn" to "uncast_insn",
22944         adding "insn" back in as an rtx_insn * with a checked cast, so
22945         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
22946         first param.
22947         (compute_alignments): Strengthen local "label" from rtx to
22948         rtx_insn *.
22949         (shorten_branches): Rename param from "first" to "uncast_first",
22950         introducing a new local rtx_insn * "first" using a checked cast to
22951         effectively strengthen "first" from rtx to rtx_insn * without
22952         affecting the type signature.  Strengthen locals "insn", "seq",
22953         "next", "label" from rtx to rtx_insn *.
22954         (change_scope): Strengthen param "orig_insn" and local "insn" from
22955         rtx to rtx_insn *.
22956         (final_start_function): Rename param from "first" to "uncast_first",
22957         introducing a new local rtx_insn * "first" using a checked cast to
22958         effectively strengthen "first" from rtx to rtx_insn * without
22959         affecting the type signature.  Strengthen local "insn" from rtx to
22960         rtx_insn *.
22961         (dump_basic_block_info): Strengthen param "insn" from rtx to
22962         rtx_insn *.
22963         (final): Rename param from "first" to "uncast_first",
22964         introducing a new local rtx_insn * "first" using a checked cast to
22965         effectively strengthen "first" from rtx to rtx_insn * without
22966         affecting the type signature.  Strengthen locals "insn", "next"
22967         from rtx to rtx_insn *.
22968         (output_alternate_entry_point): Strengthen param "insn" from rtx to
22969         rtx_insn *.
22970         (call_from_call_insn): Strengthen param "insn" from rtx to
22971         rtx_call_insn *.
22972         (final_scan_insn): Rename param from "insn" to "uncast_insn",
22973         introducing a new local rtx_insn * "insn" using a checked cast to
22974         effectively strengthen "insn" from rtx to rtx_insn * without
22975         affecting the type signature.  Strengthen return type and locals
22976         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
22977         now-redundant checked cast to rtx_insn * from both invocations of
22978         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
22979         introducing a local "call_insn" for use when invoking
22980         call_from_call_insn.
22981         (notice_source_line): Strengthen param "insn" from rtx to
22982         rtx_insn *.
22983         (leaf_function_p): Likewise for local "insn".
22984         (final_forward_branch_p): Likewise.
22985         (leaf_renumber_regs): Likewise for param "first".
22986         (rest_of_clean_state): Likewise for locals "insn" and "next".
22987         (self_recursive_call_p): Likewise for param "insn".
22988         (collect_fn_hard_reg_usage): Likewise for local "insn".
22989         (get_call_fndecl): Likewise for param "insn".
22990         (get_call_cgraph_rtl_info): Likewise.
22991         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
22992         introducing a new local rtx_insn * "insn" using a checked cast to
22993         effectively strengthen "insn" from rtx to rtx_insn * without
22994         affecting the type signature.
22996         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
22997         cast when assigning from param "insn" to current_output_insn.
22998         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
22999         so that we can assign it back to current_output_insn.
23001 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23003         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
23004         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
23005         atmxt540s and atmxt540sreva devices.
23006         * config/avr/avr-tables.opt: Regenerate.
23007         * config/avr/t-multilib: Regenerate.
23008         * doc/avr-mmcu.texi: Regenerate.
23010 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23012         * expr.c (convert_move): Strengthen local "insns" from rtx to
23013         rtx_insn *.
23014         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
23015         "top_label" from rtx to rtx_code_label *.
23016         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
23017         rtx_insn *.
23018         (emit_single_push_insn): Likewise for locals "prev", "last".
23019         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
23020         to rtx_code_label *.
23021         (store_constructor): Likewise for locals "loop_start", "loop_end".
23022         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
23023         rtx_insn *.
23024         (expand_expr_real_2): Likewise.
23025         (expand_expr_real_1): Strengthen local "label" from rtx to
23026         rtx_code_label *.
23028 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23030         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
23031         from rtx to rtx_insn *.
23032         (store_bit_field_1): Likewise.
23033         (extract_bit_field_1): Likewise.
23034         (expand_mult_const): Likewise for local "insns".
23035         (expmed_mult_highpart): Strengthen local "label" from rtx to
23036         rtx_code_label *.
23037         (expand_smod_pow2): Likewise.
23038         (expand_sdiv_pow2): Likewise.
23039         (expand_divmod): Strengthen locals "last", "insn" from rtx to
23040         rtx_insn *.  Strengthen locals "label", "label1", "label2",
23041         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
23042         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
23043         (emit_store_flag): Likewise.
23044         (emit_store_flag_force): Strengthen local "label" from rtx to
23045         rtx_code_label *.
23046         (do_cmp_and_jump): Likewise for param "label".
23048 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23050         * explow.c (force_reg): Strengthen local "insn" from rtx to
23051         rtx_insn *.
23052         (adjust_stack_1): Likewise.
23053         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
23054         "final_label", "available_label", "space_available" from rtx to
23055         rtx_code_label *.
23056         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
23057         (anti_adjust_stack_and_probe): Likewise.
23059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23061         * except.h (sjlj_emit_function_exit_after): Strengthen param
23062         "after" from rtx to rtx_insn *.  This is only called with
23063         result of get_last_insn (in function.c) so type-change should be
23064         self-contained.
23066         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
23067         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
23068         to rtx_insn *.  These fields are only used from except.c so this
23069         type-change should be self-contained to this patch.
23071         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
23072         local "last" from rtx to rtx_insn *.
23073         (dw2_build_landing_pads): Likewise for local "seq".
23074         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
23075         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
23076         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
23077         rtx to rtx_insn *.
23078         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
23079         to rtx_insn *.
23080         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
23081         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
23082         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
23083         referring to an insn.  Strengthen local "dispatch_label" from
23084         rtx to rtx_code_label *.
23085         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
23086         rtx_insn *.
23087         (expand_eh_return): Strengthen local "around_label" from
23088         rtx to rtx_code_label *.
23089         (convert_to_eh_region_ranges): Strengthen locals "iter",
23090         "last_action_insn", "first_no_action_insn",
23091         "first_no_action_insn_before_switch",
23092         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
23094 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23096         * dwarf2out.c (last_var_location_insn): Strengthen this variable
23097         from rtx to rtx_insn *.
23098         (cached_next_real_insn): Likewise.
23099         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
23100         working with insns.
23101         (dwarf2out_var_location): Strengthen locals "next_real",
23102         "next_note", "expected_next_loc_note", "last_start", "insn" from
23103         rtx to rtx_insn *.
23105 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23107         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
23108         from rtx to rtx_insn *.
23109         (create_pseudo_cfg): Likewise for local "insn".
23111 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23113         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
23114         from rtx to rtx_insn *.
23115         (df_bb_regno_last_def_find): Likewise.
23117         * df-problems.c (df_rd_bb_local_compute): Likewise.
23118         (df_lr_bb_local_compute): Likewise.
23119         (df_live_bb_local_compute): Likewise.
23120         (df_chain_remove_problem): Likewise.
23121         (df_chain_create_bb): Likewise.
23122         (df_word_lr_bb_local_compute): Likewise.
23123         (df_remove_dead_eq_notes): Likewise for param "insn".
23124         (df_note_bb_compute): Likewise for local "insn".
23125         (simulate_backwards_to_point): Likewise.
23126         (df_md_bb_local_compute): Likewise.
23128         * df-scan.c (df_scan_free_bb_info): Likewise.
23129         (df_scan_start_dump): Likewise.
23130         (df_scan_start_block): Likewise.
23131         (df_install_ref_incremental): Likewise for local "insn".
23132         (df_insn_rescan_all): Likewise.
23133         (df_reorganize_refs_by_reg_by_insn): Likewise.
23134         (df_reorganize_refs_by_insn_bb): Likewise.
23135         (df_recompute_luids): Likewise.
23136         (df_bb_refs_record): Likewise.
23137         (df_update_entry_exit_and_calls): Likewise.
23138         (df_bb_verify): Likewise.
23140 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23142         * ddg.h (struct ddg_node): Strengthen fields "insn" and
23143         "first_note" from rtx to rtx_insn *.
23144         (get_node_of_insn): Likewise for param 2 "insn".
23145         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23147         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
23148         rtx_insn *.
23149         (mem_write_insn_p): Likewise.
23150         (mem_access_insn_p): Likewise.
23151         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23152         (def_has_ccmode_p): Likewise for param "insn".
23153         (add_cross_iteration_register_deps): Likewise for locals
23154         "def_insn" and "use_insn".
23155         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
23156         (build_intra_loop_deps): Likewise for local "src_insn".
23157         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
23158         to rtx_insn *.
23159         (get_node_of_insn): Likewise for param "insn".
23161 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23163         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
23164         (deletable_insn_p): Strengthen param "insn" from rtx to
23165         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
23166         find_call_stack_args, since this is guarded by CALL_P (insn).
23167         (marked_insn_p): Strengthen param "insn" from rtx to
23168         rtx_insn *.
23169         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
23170         invoking find_call_stack_args, since this is guarded by
23171         CALL_P (insn).
23172         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
23173         rtx_insn *; we know this is an insn since this was called by
23174         mark_nonreg_stores.
23175         (mark_nonreg_stores_2): Likewise.
23176         (mark_nonreg_stores): Strengthen param "insn" from rtx to
23177         rtx_insn *.
23178         (find_call_stack_args): Strengthen param "call_insn" from rtx to
23179         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
23180         to rtx_insn *.
23181         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
23182         from rtx to rtx_insn *.
23183         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
23184         "next", "ref_insn".
23185         (delete_unmarked_insns): Likewise for locals "insn", "next".
23186         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
23187         (mark_reg_dependencies): Likewise for param "insn".
23188         (rest_of_handle_ud_dce): Likewise for local "insn".
23189         (word_dce_process_block): Likewise.
23190         (dce_process_block): Likewise.
23192 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23194         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
23195         from rtx to rtx_insn *.
23196         (struct change_cc_mode_args): Likewise for field "insn".
23197         (this_insn): Strengthen from rtx to rtx_insn *.
23198         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
23199         with insn.
23200         (validate_canon_reg): Strengthen param "insn" from rtx to
23201         rtx_insn *.
23202         (canon_reg): Likewise.
23203         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
23204         dealing with insn.
23205         (record_jump_equiv): Strengthen param "insn" from rtx to
23206         rtx_insn *.
23207         (try_back_substitute_reg): Likewise, also for locals "prev",
23208         "bb_head".
23209         (find_sets_in_insn): Likewise for param "insn".
23210         (canonicalize_insn): Likewise.
23211         (cse_insn): Likewise.  Add a checked cast.
23212         (invalidate_from_clobbers): Likewise for param "insn".
23213         (invalidate_from_sets_and_clobbers): Likewise.
23214         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
23215         dealing with insn.
23216         (cse_prescan_path): Strengthen local "insn" from rtx to
23217         rtx_insn *.
23218         (cse_extended_basic_block): Likewise for locals "insn" and
23219         "prev_insn".
23220         (cse_main): Likewise for param "f".
23221         (check_for_label_ref): Likewise for local "insn".
23222         (set_live_p): Likewise for second param ("insn").
23223         (insn_live_p): Likewise for first param ("insn") and for local
23224         "next".
23225         (cse_change_cc_mode_insn): Likewise for first param "insn".
23226         (cse_change_cc_mode_insns): Likewise for first and second params
23227         "start" and "end".
23228         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
23229         and "end".
23230         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
23231         "cc_src_insn".
23233 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23234             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
23235             Anna Tikhonova  <anna.tikhonova@intel.com>
23236             Ilya Tocar  <ilya.tocar@intel.com>
23237             Andrey Turetskiy  <andrey.turetskiy@intel.com>
23238             Ilya Verbin  <ilya.verbin@intel.com>
23239             Kirill Yukhin  <kirill.yukhin@intel.com>
23240             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
23242         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
23243         New.
23244         * config/i386/sse.md
23245         (define_mode_iterator VI248_AVX2): Delete.
23246         (define_mode_iterator VI2_AVX2_AVX512BW): New.
23247         (define_mode_iterator VI48_AVX2): Ditto.
23248         (define_insn <shift_insn><mode>3): Delete.
23249         (define_insn "<shift_insn><mode>3<mask_name>" with
23250         VI2_AVX2_AVX512BW): New.
23251         (define_insn "<shift_insn><mode>3<mask_name>" with
23252         VI48_AVX2): Ditto.
23254 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23255             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
23256             Anna Tikhonova  <anna.tikhonova@intel.com>
23257             Ilya Tocar  <ilya.tocar@intel.com>
23258             Andrey Turetskiy  <andrey.turetskiy@intel.com>
23259             Ilya Verbin  <ilya.verbin@intel.com>
23260             Kirill Yukhin  <kirill.yukhin@intel.com>
23261             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
23263         * config/i386/sse.md
23264         (define_mode_iterator VI4F_BRCST32x2): New.
23265         (define_mode_attr 64x2_mode): Ditto.
23266         (define_mode_attr 32x2mode): Ditto.
23267         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
23268         with VI4F_BRCST32x2): Ditto.
23269         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
23270         with V16FI mode iterator): Ditto.
23271         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23272         with V16FI): Ditto.
23273         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23274         with VI8F_BRCST64x2): Ditto.
23276 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
23278             Anna Tikhonova  <anna.tikhonova@intel.com>
23279             Ilya Tocar  <ilya.tocar@intel.com>
23280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
23281             Ilya Verbin  <ilya.verbin@intel.com>
23282             Kirill Yukhin  <kirill.yukhin@intel.com>
23283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
23285         * config/i386/sse.md
23286         (define_mode_iterator VI8_AVX512VL): New.
23287         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
23289 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
23291         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
23292         (define_mode_iterator V48_AVX512VL): New.
23293         (define_mode_iterator V12_AVX512VL): Ditto.
23294         (define_insn <avx512>_load<mode>_mask): Split into two similar
23295         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
23296         Refactor output template.
23297         (define_insn "<avx512>_store<mode>_mask"): Ditto.
23299 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23301         * cprop.c (struct occr): Strengthen field "insn" from rtx to
23302         rtx_insn *.
23303         (reg_available_p): Likewise for param "insn".
23304         (insert_set_in_table): Likewise.
23305         (hash_scan_set): Likewise.
23306         (hash_scan_insn): Likewise.
23307         (make_set_regs_unavailable): Likewise.
23308         (compute_hash_table_work): Likewise for local "insn".
23309         (reg_not_set_p): Strengthen param "insn" from const_rtx to
23310         const rtx_insn *.
23311         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
23312         (try_replace_reg): Likewise.
23313         (find_avail_set): Likewise.
23314         (cprop_jump): Likewise for params "setcc", "jump".
23315         (constprop_register): Likewise for param "insn".
23316         (cprop_insn): Likewise.
23317         (do_local_cprop): Likewise.
23318         (local_cprop_pass): Likewise for local "insn".
23319         (bypass_block): Likewise for params "setcc" and "jump".
23320         (bypass_conditional_jumps): Likewise for locals "setcc" and
23321         "insn".
23322         (one_cprop_pass): Likewise for local "insn".
23324 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23326         * compare-elim.c (struct comparison_use): Strengthen field "insn"
23327         from rtx to rtx_insn *.
23328         (struct comparison): Likewise, also for field "prev_clobber".
23329         (conforming_compare): Likewise for param "insn".
23330         (arithmetic_flags_clobber_p): Likewise.
23331         (find_flags_uses_in_insn): Likewise.
23332         (find_comparison_dom_walker::before_dom_children): Likewise for
23333         locals "insn", "next", "last_clobber".
23334         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
23336 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23338         * combine-stack-adj.c (struct csa_reflist): Strengthen field
23339         "insn" from rtx to rtx_insn *.
23340         (single_set_for_csa): Likewise for param "insn".
23341         (record_one_stack_ref): Likewise.
23342         (try_apply_stack_adjustment): Likewise.
23343         (struct record_stack_refs_data): Likewise for field "insn".
23344         (maybe_move_args_size_note): Likewise for params "last" and "insn".
23345         (prev_active_insn_bb): Likewise for return type and param "insn".
23346         (next_active_insn_bb): Likewise.
23347         (force_move_args_size_note): Likewise for params "prev" and "last"
23348         and locals "test", "next_candidate", "prev_candidate".
23349         (combine_stack_adjustments_for_block): Strengthen locals
23350         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
23351         rtx_insn *.
23353 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23355         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
23356         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
23357         (subst_insn): Likewise for this variable.
23358         (added_links_insn): Likewise.
23359         (struct insn_link): Likewise for field "insn".
23360         (alloc_insn_link): Likewise for param "insn".
23361         (struct undobuf): Likewise for field "other_insn".
23362         (find_single_use): Likewise for param "insn" and local "next".
23363         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
23364         (delete_noop_moves): Likewise for locals "insn", "next".
23365         (create_log_links): Likewise for locals "insn", "use_insn".
23366         Strengthen local "next_use" from rtx * to rtx_insn **.
23367         (insn_a_feeds_b): Likewise for params "a", "b".
23368         (combine_instructions): Likewise for param "f" and locals "insn",
23369         "next", "prev", "first", "last_combined_insn", "link", "link1",
23370         "temp".  Replace use of NULL_RTX with NULL when referring to
23371         insns.
23372         (setup_incoming_promotions): Likewise for param "first"
23373         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
23374         (can_combine_p): Likewise for params "insn", "i3", "pred",
23375         "pred2", "succ", "succ2" and for local "p".
23376         (combinable_i3pat): Likewise for param "i3".
23377         (cant_combine_insn_p): Likewise for param "insn".
23378         (likely_spilled_retval_p): Likewise.
23379         (adjust_for_new_dest): Likewise.
23380         (update_cfg_for_uncondjump): Likewise, also for local "insn".
23381         (try_combine): Likewise for return type and for params "i3", "i2",
23382         "i1", "i0", "last_combined_insn", and for locals "insn",
23383         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
23384         "i0_insn".  Eliminate local "tem" in favor of new locals
23385         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
23386         checked cast for now to rtx_insn * on the return type of
23387         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
23388         insns.
23389         (find_split_point): Strengthen param "insn" from rtx to
23390         rtx_insn *.
23391         (simplify_set): Likewise for local "other_insn".
23392         (recog_for_combine): Likewise for param "insn".
23393         (record_value_for_reg): Likewise.
23394         (record_dead_and_set_regs_1): Likewise for local
23395         "record_dead_insn".
23396         (record_dead_and_set_regs): Likewise for param "insn".
23397         (record_promoted_value): Likewise.
23398         (check_promoted_subreg): Likewise.
23399         (get_last_value_validate): Likewise.
23400         (reg_dead_at_p): Likewise.
23401         (move_deaths): Likewise for param "to_insn".
23402         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
23403         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
23404         in favor of new locals "tem_note" and "tem_insn", the latter being
23405         an rtx_insn *.
23406         (distribute_links): Strengthen locals "place", "insn" from rtx to
23407         rtx_insn *.
23409 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23411         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
23412         than a const_rtx.
23413         (can_delete_label_p): Require a const rtx_code_label * rather than
23414         a const_rtx.
23415         (delete_insn): Add checked cast to rtx_code_label * when we know
23416         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
23417         rtx to rtx_insn *.
23418         (delete_insn_chain): Strengthen locals "prev" and "current" from
23419         rtx to rtx_insn *.  Add a checked cast when assigning from
23420         "finish" (strengthening the params will come later).  Add a
23421         checked cast to rtx_note * in region where we know
23422         NOTE_P (current).
23423         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
23424         rtx_insn *.
23425         (compute_bb_for_insn): Likewise.
23426         (free_bb_for_insn): Likewise for local "insn".
23427         (compute_bb_for_insn): Likewise.
23428         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
23429         local "insn" from rtx to rtx_insn *
23430         (flow_active_insn_p): Require a const rtx_insn * rather than a
23431         const_rtx.
23432         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
23433         rtx_insn *.
23434         (can_fallthru): Likewise for locals "insn" and "insn2".
23435         (bb_note): Likewise for local "note".
23436         (first_insn_after_basic_block_note): Likewise for local "note" and
23437         for return type.
23438         (rtl_split_block): Likewise for locals "insn" and "next".
23439         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
23440         "end".
23441         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
23442         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
23443         "prev", "tmp".
23444         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
23445         them), "kill_from", "barrier", "new_insn".
23446         (patch_jump_insn): Likewise for params "insn", "old_label".
23447         (redirect_branch_edge): Likewise for locals "old_label", "insn".
23448         (force_nonfallthru_and_redirect): Likewise for locals "insn",
23449         "old_label", "new_label".
23450         (rtl_tidy_fallthru_edge): Likewise for local "q".
23451         (rtl_split_edge): Likewise for locals "before", "last".
23452         (commit_one_edge_insertion): Likewise for locals "before",
23453         "after", "insns", "tmp", "last", adding a checked cast where
23454         currently necessary.
23455         (commit_edge_insertions): Likewise.
23456         (rtl_dump_bb): Likewise for locals "insn", "last".
23457         (print_rtl_with_bb): Likewise for local "x".
23458         (rtl_verify_bb_insns): Likewise for local "x".
23459         (rtl_verify_bb_pointers): Likewise for local "insn".
23460         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
23461         "head", "end".
23462         (rtl_verify_fallthru): Likewise for local "insn".
23463         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
23464         (purge_dead_edges): Likewise for local "insn".
23465         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
23466         (skip_insns_after_block): Likewise for return type and for locals
23467         "insn", "last_insn", "next_head", "prev".
23468         (record_effective_endpoints): Likewise for locals "next_insn",
23469         "insn", "end".
23470         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
23471         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
23472         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
23473         (duplicate_insn_chain): For now, add checked cast from rtx to
23474         rtx_insn * when returning insn.
23475         (cfg_layout_duplicate_bb): Likewise for local "insn".
23476         (cfg_layout_delete_block): Likewise for locals "insn", "next",
23477         "prev", "remaints".
23478         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
23479         (rtl_block_empty_p): Likewise.
23480         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
23481         "split_point", "last".
23482         (rtl_block_ends_with_call_p): Likewise for local "insn".
23483         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
23484         const rtx_insn *.
23485         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
23486         "split_at_insn" from rtx to rtx_insn *.
23487         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
23488         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
23489         to const rtx_insn *.
23490         (rtl_account_profile_record): Likewise.
23492 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23494         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
23495         rtx to rtx_insn *.
23496         (average_num_loop_insns): Likewise.
23497         (init_set_costs): Likewise for local "seq".
23498         (seq_cost): Likewise for param "seq", from const_rtx to const
23499         rtx_insn *.
23501 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23503         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
23504         rtx to rtx_insn *.
23506 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23508         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
23509         "f1" and "f2" from rtx * to rtx_insn **.
23510         (flow_find_head_matching_sequence): Likewise.
23512         * cfgcleanup.c (try_simplify_condjump): Strengthen local
23513         "cbranch_insn" from rtx to rtx_insn *.
23514         (thread_jump): Likewise for local "insn".
23515         (try_forward_edges): Likewise for local "last".
23516         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
23517         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
23518         "real_b_end".
23519         (can_replace_by): Likewise for params "i1", "i2".
23520         (old_insns_match_p): Likewise.
23521         (merge_notes): Likewise.
23522         (walk_to_nondebug_insn): Likewise for param "i1".
23523         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
23524         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
23525         "afterlast1", "afterlast2" from rtx to rtx_insn *.
23526         (flow_find_head_matching_sequence): Strengthen params "f1" and
23527         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
23528         "last1", "last2", "beforelast1", "beforelast2" from rtx to
23529         rtx_insn *.
23530         (outgoing_edges_match): Likewise for locals "last1", "last2".
23531         (try_crossjump_to_edge): Likewise for local "insn".
23532         Replace call to for_each_rtx with for_each_rtx_in_insn.
23534         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
23535         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
23536         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
23537         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
23538         (try_optimize_cfg): Strengthen local "last" from rtx to
23539         rtx_insn *.
23540         (delete_dead_jumptables): Likewise for locals "insn", "next",
23541         "label".
23543         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
23544         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
23545         "rtx else_first_tail", to reflect the basic-block.h changes above.
23547 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23549         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
23550         rtx_insn *.
23551         (purge_dead_tablejump_edges): Likewise.
23552         (find_bb_boundaries): Likewise for locals "insn", "end",
23553         "flow_transfer_insn".
23555 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23557         * caller-save.c (save_call_clobbered_regs): Strengthen locals
23558         "ins" and "prev" from rtx to rtx_insn *.
23560 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23562         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
23563         rtx_insn *.
23564         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
23565         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
23566         "scan_start".
23567         (load_register_parameters): Likewise for local "before_arg".
23568         (check_sibcall_argument_overlap): Likewise for param "insn".
23569         (expand_call): Likewise for locals "normal_call_insns",
23570         "tail_call_insns", "insns", "before_call", "after_args",
23571         "before_arg", "last", "prev".  Strengthen one of the "last" from
23572         rtx to rtx_call_insn *.
23573         (fixup_tail_calls): Strengthen local "insn" from rtx to
23574         rtx_insn *.
23575         (emit_library_call_value_1): Likewise for locals "before_call" and
23576         "last".
23578 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23580         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
23581         and "last" from rtx to rtx_insn *.
23582         (expand_builtin_nonlocal_goto): Likewise for local "insn".
23583         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
23584         rtx_call_insn *.
23585         (expand_errno_check): Strengthen local "lab" from rtx to
23586         rtx_code_label *.
23587         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
23588         rtx_insn *.
23589         (expand_builtin_mathfn_2): Likewise.
23590         (expand_builtin_mathfn_ternary): Likewise.
23591         (expand_builtin_mathfn_3): Likewise.
23592         (expand_builtin_interclass_mathfn): Likewise for local "last".
23593         (expand_builtin_int_roundingfn): Likewise for local "insns".
23594         (expand_builtin_int_roundingfn_2): Likewise.
23595         (expand_builtin_strlen): Likewise for local "before_strlen".
23596         (expand_builtin_strncmp): Likewise for local "seq".
23597         (expand_builtin_signbit): Likewise for local "last".
23598         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
23599         from rtx to rtx_code_label *.
23600         (expand_stack_restore):  Strengthen local "prev" from rtx to
23601         rtx_insn *.
23603 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23605         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
23606         to rtx_insn *.
23607         (struct btr_def_s): Likewise.
23608         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
23609         const rtx_insn *.
23610         (add_btr_def): Likewise.
23611         (new_btr_user): Likewise.
23612         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
23613         rtx to rtx_insn *.
23614         (link_btr_uses): Likewise.
23615         (move_btr_def): Likewise for locals "insp", "old_insn",
23616         "new_insn".  Add checked cast to rtx_insn * for now on result of
23617         gen_move_insn.
23618         (can_move_up): Strengthen param "insn" from const_rtx to
23619         const rtx_insn *.
23621 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23623         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
23624         rtx_insn *.
23625         (get_uncond_jump_length): Likewise for locals "label", "jump".
23626         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
23627         "jump", "insn".
23628         (add_labels_and_missing_jumps): Likewise for local "new_jump".
23629         (fix_up_fall_thru_edges): Likewise for local "old_jump".
23630         (find_jump_block): Likewise for local "insn".
23631         (fix_crossing_conditional_branches): Likewise for locals
23632         "old_jump", "new_jump".
23633         (fix_crossing_unconditional_branches): Likewise for locals
23634         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
23635         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
23637 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23639         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
23640         rtx to rtx_insn *.
23641         (struct mem_insn): Likewise for field "insn".
23642         (reg_next_use): Strengthen from rtx * to rtx_insn **.
23643         (reg_next_inc_use): Likewise.
23644         (reg_next_def): Likewise.
23645         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
23646         from rtx to rtx_insn *.
23647         (move_insn_before): Likewise for param "next_insn" and local "insns".
23648         (attempt_change): Likewise for local "mov_insn".
23649         (try_merge): Likewise for param "last_insn".
23650         (get_next_ref): Likewise for return type and local "insn".
23651         Strengthen param "next_array" from rtx * to rtx_insn **.
23652         (parse_add_or_inc): Strengthen param "insn" from rtx to
23653         rtx_insn *.
23654         (find_inc): Likewise for locals "insn" and "other_insn" (three of
23655         the latter).
23656         (merge_in_block): Likewise for locals "insn", "curr",
23657         "other_insn".
23658         (pass_inc_dec::execute): Update allocations of the arrays to
23659         reflect the stronger types.
23661 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23663         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
23664         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
23665         from rtx to rtx_code_label *.
23667 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23669         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
23670         to rtx_insn *.
23672 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23674         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
23675         generated a warning and prevented bootstrapping the compiler.
23677 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23679         * rtl.h (delete_related_insns): Strengthen return type from rtx to
23680         rtx_insn *.
23682         * jump.c (delete_related_insns): Likewise, also for locals "next"
23683         and "prev".
23685 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23687         * genautomata.c (output_internal_insn_latency_func): When writing
23688         the function "internal_insn_latency" to insn-automata.c,
23689         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
23690         allowing the optional guard function of (define_bypass) clauses to
23691         expect a pair of rtx_insn *, rather than a pair of rtx.
23692         (output_insn_latency_func): When writing the function
23693         "insn_latency", add an "uncast_" prefix to params "insn" and
23694         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
23695         using checked casts from the params, thus enabling the above
23696         change to the generated "internal_insn_latency" function.
23698 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
23700         PR tree-optimization/62091
23701         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
23702         handle correctly arrays.
23703         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
23704         inheritance binfos.
23705         (record_known_type): Walk into inner type.
23706         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
23707         condition on no type changes.
23709 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23711         * genattrtab.c (write_attr_get): Within the generated get_attr_
23712         functions, rename param "insn" to "uncast_insn" and reintroduce
23713         "insn" as an local rtx_insn * using a checked cast, so that "insn"
23714         is an rtx_insn * within insn-attrtab.c
23716 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23718         * output.h (peephole): Strengthen return type from rtx to
23719         rtx_insn *.
23720         * rtl.h (delete_for_peephole): Likewise for both params.
23721         * genpeep.c (main): In generated "peephole" function, strengthen
23722         return type and local "insn" from rtx to rtx_insn *.  For now,
23723         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
23724         rtx_insn *, with a checked cast.
23725         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
23726         locals "insn", "next", "prev" from rtx to rtx_insn *.
23728 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
23730         PR tree-optimization/62112
23731         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
23732         * gimple-iterator.h (gsi_replace): Return bool.
23733         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
23734         moved from ref_may_alias_global_p.
23735         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
23736         New overloads.
23737         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
23738         (stmt_kills_ref_p_1): Rename...
23739         (stmt_kills_ref_p): ... to this.
23740         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
23741         stmt_kills_ref_p): Declare.
23742         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
23743         Move the self-assignment case...
23744         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
23746 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23748         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
23750         * emit-rtl.c (try_split): Likewise, also for locals "before" and
23751         "after".  For now, don't strengthen param "trial", which requires
23752         adding checked casts when returning it.
23754 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23756         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
23757         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
23758         "var_location" hook from rtx to rtx_insn *.
23759         (debug_nothing_rtx): Delete in favor of...
23760         (debug_nothing_rtx_code_label): New prototype.
23761         (debug_nothing_rtx_rtx): Delete unused prototype.
23762         (debug_nothing_rtx_insn): New prototype.
23764         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
23765         invoking debug_hooks->var_location (in two places, one in a NOTE
23766         case of a switch statement, the other guarded by a CALL_P
23767         conditional.  Add checked cast to rtx_code_label * when invoking
23768         debug_hooks->label (within CODE_LABEL case of switch statement).
23770         * dbxout.c (dbx_debug_hooks): Update "label" hook from
23771         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
23772         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
23773         (xcoff_debug_hooks): Likewise.
23774         * debug.c (do_nothing_debug_hooks): Likewise.
23775         (debug_nothing_rtx): Delete in favor of...
23776         (debug_nothing_rtx_insn): New function.
23777         (debug_nothing_rtx_rtx): Delete unused function.
23778         (debug_nothing_rtx_code_label): New function.
23779         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
23780         debug_nothing_rtx to debug_nothing_rtx_code_label.
23781         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
23782         to rtx_insn *.
23783         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
23784         debug_nothing_rtx to debug_nothing_rtx_insn.
23785         (sdbout_label): Strengthen param "insn" from rtx to
23786         rtx_code_label *.
23787         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
23788         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
23789         "var_location" hook from debug_nothing_rtx to
23790         debug_nothing_rtx_insn.
23792 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23794         * recog.h (insn_output_fn): Update this function typedef to match
23795         the changes below to the generated output functions, strengthening
23796         the 2nd param from rtx to rtx_insn *.
23798         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
23799         insn when invoking an output function, to match the new signature
23800         of insn_output_fn with a stronger second param.
23802         * genconditions.c (write_header): In the generated code for
23803         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
23804         to match the other changes in this patch.
23806         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
23807         the generated "gen_" functions from rtx to rtx_insn * within their
23808         implementations.
23810         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
23811         the subfunctions within the generated "recog_", "split", "peephole2"
23812         function trees from rtx to rtx_insn *.  For now, the top-level
23813         generated functions ("recog", "split", "peephole2") continue to
23814         take a plain rtx for "insn", to avoid introducing dependencies on
23815         other patches.  Rename this 2nd param from "insn" to
23816         "uncast_insn", and reintroduce "insn" as a local variable of type
23817         rtx_insn *, initialized at the top of the generated function with
23818         a checked cast on "uncast_insn".
23819         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
23820         the generated "gen_" functions from rtx to rtx_insn * within their
23821         prototypes.
23823         * genoutput.c (process_template): Strengthen the 2nd param within
23824         the generated "output_" functions "insn" from rtx to rtx_insn *.
23826 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
23828         * tree-profile.c (tree_profiling): Skip external functions
23829         when doing coverage instrumentation.
23830         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
23832 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23834         * config/rs6000/altivec.h (vec_cpsgn): New #define.
23835         (vec_mergee): Likewise.
23836         (vec_mergeo): Likewise.
23837         (vec_cntlz): Likewise.
23838         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
23839         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
23840         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
23841         VMRGEW, and VMRGOW.
23842         * doc/extend.texi: Document various forms of vec_cpsgn,
23843         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
23844         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
23845         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
23846         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
23847         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
23849 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23851         * config/rs6000/rs6000.c (context.h): New include.
23852         (tree-pass.h): Likewise.
23853         (make_pass_analyze_swaps): New decl.
23854         (rs6000_option_override): Register pass_analyze_swaps.
23855         (swap_web_entry): New subsclass of web_entry_base (df.h).
23856         (special_handling_values): New enum.
23857         (union_defs): New function.
23858         (union_uses): Likewise.
23859         (insn_is_load_p): Likewise.
23860         (insn_is_store_p): Likewise.
23861         (insn_is_swap_p): Likewise.
23862         (rtx_is_swappable_p): Likewise.
23863         (insn_is_swappable_p): Likewise.
23864         (chain_purpose): New enum.
23865         (chain_contains_only_swaps): New function.
23866         (mark_swaps_for_removal): Likewise.
23867         (swap_const_vector_halves): Likewise.
23868         (adjust_subreg_index): Likewise.
23869         (permute_load): Likewise.
23870         (permute_store): Likewise.
23871         (handle_special_swappables): Likewise.
23872         (replace_swap_with_copy): Likewise.
23873         (dump_swap_insn_table): Likewise.
23874         (rs6000_analyze_swaps): Likewise.
23875         (pass_data_analyze_swaps): New pass_data.
23876         (pass_analyze_swaps): New rtl_opt_pass.
23877         (make_pass_analyze_swaps): New function.
23878         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
23880 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23882         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
23883         type from rtx to rtx_insn *.
23884         (create_copy_of_insn_rtx): Likewise.
23885         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
23886         (create_copy_of_insn_rtx): Likewise, also for local "res".
23888 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23890         * rtl.h (find_first_parameter_load): Strengthen return type from
23891         rtx to rtx_insn *.
23892         * rtlanal.c (find_first_parameter_load): Strengthen return type
23893         from rtx to rtx_insn *.  Add checked cast for now, to postpone
23894         strengthening the params.
23896 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23898         PR fortran/44054
23899         * diagnostic.c: Set default caret.
23900         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
23901         line is needed.
23902         * diagnostic.h (struct diagnostic_context):
23904 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23906         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
23907         (sel_bb_head): Strengthen return type insn_t (currently just an
23908         rtx) to rtx_insn *.
23909         (sel_bb_end): Likewise.
23911         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
23912         (sel_bb_head): Strengthen return type and local "head" from
23913         insn_t (currently just an rtx) to rtx_insn *.
23914         (sel_bb_end): Likewise for return type.
23915         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
23916         working with insn.
23918 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
23920         * basic-block.h (get_last_bb_insn): Strengthen return type from
23921         rtx to rtx_insn *.
23922         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
23923         end".
23925 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23927         PR fortran/44054
23928         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
23929         to here ...
23930         (diagnostic_report_diagnostic): ... from here.
23931         * toplev.c (general_init): Move code to c-family.
23933 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23935         * df.h (web_entry_base): Replace existing struct web_entry with a
23936         new class web_entry_base with only the predecessor member.
23937         (unionfind_root): Remove declaration and move to class member.
23938         (unionfind_union): Remove declaration and move to friend
23939         function.
23940         (union_defs): Remove declaration.
23941         * web.c (web_entry_base::unionfind_root): Modify to be member
23942         function and adjust accessors.
23943         (unionfind_union): Modify to be friend function and adjust
23944         accessors.
23945         (web_entry): New subclass of web_entry_base containing the reg
23946         member.
23947         (union_match_dups): Modify for struct -> class changes.
23948         (union_defs): Likewise.
23949         (entry_register): Likewise.
23950         (pass_web::execute): Likewise.
23952 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
23954         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
23955         builtin define __VEC_ELEMENT_REG_ORDER__.
23957 2014-08-20  Martin Jambor  <mjambor@suse.cz>
23958             Wei Mi  <wmi@google.com>
23960         PR ipa/60449
23961         PR middle-end/61776
23962         * tree-ssa-operands.c (update_stmt_operands): Remove
23963         MODIFIED_NORETURN_CALLS.
23964         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
23965         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
23966         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
23967         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
23968         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
23969         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
23970         (gimple_call_set_ctrl_altering): New func.
23971         (gimple_call_ctrl_altering_p): Ditto.
23972         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
23973         (make_blocks): Use gimple_call_initialize_ctrl_altering.
23974         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
23975         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
23976         remove MODIFIED_NORETURN_CALLS.
23978 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
23980         * coverage.c (coverage_compute_profile_id): Return non-0;
23981         also handle symbols with unique name.
23982         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
23984 2014-08-20  Steve Ellcey  <sellcey@mips.com>
23986         PR middle-end/49191
23987         * doc/sourcebuild.texi (non_strict_align): New.
23989 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
23991         * cgraphunit.c (ipa_passes, compile): Reshedule
23992         symtab_remove_unreachable_nodes passes; update comments.
23993         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
23994         TODO_remove_functions before the pass; the functions ought to be
23995         already removed.
23996         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
23997         TODO_remove_functions.
23998         * passes.c (pass_data_early_local_passes): Do not schedule function
23999         removal.
24000         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
24002 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24004         PR c/59304
24005         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
24006         before setting the option.
24007         * diagnostic.c (diagnostic_classify_diagnostic): Record
24008         command-line status.
24010 2014-08-20  Richard Biener  <rguenther@suse.de>
24012         PR lto/62190
24013         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
24014         to build uint{16,32,64}_type_node.
24016 2014-08-20  Terry Guo  <terry.guo@arm.com>
24018         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
24019         with immediate_operand.
24021 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
24023         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
24024         "insn" from an as_a to a safe_as_a, for the case when "insn" is
24025         NULL.
24027 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24029         PR preprocessor/51303
24030         * incpath.c (remove_duplicates): Use cpp_warning.
24032 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24034         PR c/60975
24035         PR c/53063
24036         * doc/options.texi (CPP): Document it.
24037         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
24038         * optc-gen.awk: Handle CPP.
24039         * opth-gen.awk: Likewise.
24041 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24043         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
24044         rtx_insn *.
24045         (duplicate_insn_chain): Likewise.
24046         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
24047         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
24048         checked cast for now (until we can strengthen the params in the
24049         same way).
24050         (duplicate_insn_chain): Likewise.
24052 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24054         * rtl.h (next_cc0_user): Strengthen return type from rtx to
24055         rtx_insn *.
24056         (prev_cc0_setter): Likewise.
24058         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
24059         rtx_insn *, adding checked casts for now as necessary.
24060         (prev_cc0_setter): Likewise.
24062 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24064         * expr.h (emit_move_insn): Strengthen return type from rtx to
24065         rtx_insn *.
24066         (emit_move_insn_1): Likewise.
24067         (emit_move_complex_push): Likewise.
24068         (emit_move_complex_parts): Likewise.
24070         * expr.c (emit_move_via_integer): Strengthen return type from rtx
24071         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
24072         with insns.
24073         (emit_move_complex_push): Strengthen return type from rtx to
24074         rtx_insn *.
24075         (emit_move_complex): Likewise, also for local "ret".
24076         (emit_move_ccmode): Likewise.
24077         (emit_move_multi_word): Likewise for return type and locals
24078         "last_insn", "seq".
24079         (emit_move_insn_1): Likewise for return type and locals "result",
24080         "ret".
24081         (emit_move_insn): Likewise for return type and local "last_insn".
24082         (compress_float_constant): Likewise.
24084 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24086         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
24087         from rtx to rtx_insn *.
24089         * rtl.h (emit_insn_before): Likewise.
24090         (emit_insn_before_noloc): Likewise.
24091         (emit_insn_before_setloc): Likewise.
24092         (emit_jump_insn_before): Likewise.
24093         (emit_jump_insn_before_noloc): Likewise.
24094         (emit_jump_insn_before_setloc): Likewise.
24095         (emit_call_insn_before): Likewise.
24096         (emit_call_insn_before_noloc): Likewise.
24097         (emit_call_insn_before_setloc): Likewise.
24098         (emit_debug_insn_before): Likewise.
24099         (emit_debug_insn_before_noloc): Likewise.
24100         (emit_debug_insn_before_setloc): Likewise.
24101         (emit_label_before): Likewise.
24102         (emit_insn_after): Likewise.
24103         (emit_insn_after_noloc): Likewise.
24104         (emit_insn_after_setloc): Likewise.
24105         (emit_jump_insn_after): Likewise.
24106         (emit_jump_insn_after_noloc): Likewise.
24107         (emit_jump_insn_after_setloc): Likewise.
24108         (emit_call_insn_after): Likewise.
24109         (emit_call_insn_after_noloc): Likewise.
24110         (emit_call_insn_after_setloc): Likewise.
24111         (emit_debug_insn_after): Likewise.
24112         (emit_debug_insn_after_noloc): Likewise.
24113         (emit_debug_insn_after_setloc): Likewise.
24114         (emit_label_after): Likewise.
24115         (emit_insn): Likewise.
24116         (emit_debug_insn): Likewise.
24117         (emit_jump_insn): Likewise.
24118         (emit_call_insn): Likewise.
24119         (emit_label): Likewise.
24120         (gen_clobber): Likewise.
24121         (emit_clobber): Likewise.
24122         (gen_use): Likewise.
24123         (emit_use): Likewise.
24124         (emit): Likewise.
24126         (emit_barrier_before): Strengthen return type from rtx to
24127         rtx_barrier *.
24128         (emit_barrier_after): Likewise.
24129         (emit_barrier): Likewise.
24131         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
24132         from rtx to rtx_insn *.  Add checked casts for now when converting
24133         "last" from rtx to rtx_insn *.
24134         (emit_insn_before_noloc): Likewise for return type.
24135         (emit_jump_insn_before_noloc): Likewise.
24136         (emit_call_insn_before_noloc): Likewise.
24137         (emit_debug_insn_before_noloc): Likewise.
24138         (emit_barrier_before): Strengthen return type and local "insn"
24139         from rtx to rtx_barrier *.
24140         (emit_label_before): Strengthen return type from rtx to
24141         rtx_insn *.  Add checked cast for now when returning param
24142         (emit_pattern_after_noloc): Strengthen return type from rtx to
24143         rtx_insn *.  Add checked casts for now when converting "last" from
24144         rtx to rtx_insn *.
24145         (emit_insn_after_noloc): Strengthen return type from rtx to
24146         rtx_insn *.
24147         (emit_jump_insn_after_noloc): Likewise.
24148         (emit_call_insn_after_noloc): Likewise.
24149         (emit_debug_insn_after_noloc): Likewise.
24150         (emit_barrier_after): Strengthen return type from rtx to
24151         rtx_barrier *.
24152         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
24153         Add checked cast for now when converting "label" from rtx to
24154         rtx_insn *.
24155         (emit_pattern_after_setloc): Strengthen return type from rtx to
24156         rtx_insn *.  Add checked casts for now when converting "last" from
24157         rtx to rtx_insn *.
24158         (emit_pattern_after): Strengthen return type from rtx to
24159         rtx_insn *.
24160         (emit_insn_after_setloc): Likewise.
24161         (emit_insn_after): Likewise.
24162         (emit_jump_insn_after_setloc): Likewise.
24163         (emit_jump_insn_after): Likewise.
24164         (emit_call_insn_after_setloc): Likewise.
24165         (emit_call_insn_after): Likewise.
24166         (emit_debug_insn_after_setloc): Likewise.
24167         (emit_debug_insn_after): Likewise.
24168         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
24169         when converting "last" from rtx to rtx_insn *.
24170         (emit_pattern_before): Strengthen return type from rtx to
24171         rtx_insn *.
24172         (emit_insn_before_setloc): Likewise.
24173         (emit_insn_before): Likewise.
24174         (emit_jump_insn_before_setloc): Likewise.
24175         (emit_jump_insn_before): Likewise.
24176         (emit_call_insn_before_setloc): Likewise.
24177         (emit_call_insn_before): Likewise.
24178         (emit_debug_insn_before_setloc): Likewise.
24179         (emit_debug_insn_before): Likewise.
24180         (emit_insn): Strengthen return type and locals "last", "insn",
24181         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
24182         within cases where we know we have an insn.
24183         (emit_debug_insn): Likewise.
24184         (emit_jump_insn): Likewise.
24185         (emit_call_insn): Strengthen return type and local "insn" from rtx
24186         to rtx_insn *.
24187         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
24188         a checked cast to rtx_insn * for now on "label".
24189         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
24190         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
24191         (emit_use): Likewise.
24192         (gen_use): Likewise, also for local "seq".
24193         (emit): Likewise for return type and local "insn".
24194         (rtx_insn): Likewise for return type and local "new_rtx".
24196         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
24197         from rtx to rtx_barrier *.
24199         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
24200         changed return type from rtx to rtx_insn *, we must update
24201         "emit_fn" type, and this in turn means updating...
24202         (frame_insn): ...this.  Strengthen return type from rtx to
24203         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
24205 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24207         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
24208         rtx to rtx_jump_table_data *.  Also for local.
24209         * rtl.h (emit_jump_table_data): Likewise.
24211 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24213         * basic-block.h (create_basic_block_structure): Strengthen third
24214         param "bb_note" from rtx to rtx_note *.
24215         * rtl.h (emit_note_before): Strengthen return type from rtx to
24216         rtx_note *.
24217         (emit_note_after): Likewise.
24218         (emit_note): Likewise.
24219         (emit_note_copy): Likewise.  Also, strengthen param similarly.
24220         * function.h (struct rtl_data): Strengthen field
24221         "x_stack_check_probe_note" from rtx to rtx_note *.
24223         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
24224         from rtx to rtx_note *.
24225         * cfgrtl.c (create_basic_block_structure): Strengthen third param
24226         "bb_note" from rtx to rtx_note *.
24227         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
24228         when calling emit_note_copy.
24229         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
24230         rtx_note *.
24231         (emit_note_after): Likewise.
24232         (emit_note_before): Likewise.
24233         (emit_note_copy): Likewise.  Also, strengthen param similarly.
24234         (emit_note): Likewise.
24235         * except.c (emit_note_eh_region_end): Likewise for return type.
24236         Strengthen local "next" from rtx to rtx_insn *.
24237         (convert_to_eh_region_ranges): Strengthen local "note"
24238         from rtx to rtx_note *.
24239         * final.c (change_scope): Likewise.
24240         (reemit_insn_block_notes): Likewise, for both locals named "note".
24241         Also, strengthen local "insn" from rtx to rtx_insn *.
24242         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
24243         rtx to rtx_note *.
24244         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
24245         strengthen local "seq" from rtx to rtx_insn *.
24246         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
24247         to rtx_note *.
24248         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
24249         vec<rtx_note *>.
24250         (get_bb_note_from_pool): Strengthen return type from rtx to
24251         rtx_note *.
24252         (sel_create_basic_block): Strengthen local "new_bb_note" from
24253         insn_t to rtx_note *.
24254         * var-tracking.c (emit_note_insn_var_location): Strengthen local
24255         "note" from rtx to rtx_note *.
24256         (emit_notes_in_bb): Likewise.
24258 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24260         * function.h (struct rtl_data): Strengthen field
24261         "x_parm_birth_insn" from rtx to rtx_insn *.
24262         * function.c (struct assign_parm_data_all): Strengthen fields
24263         "first_conversion_insn" and "last_conversion_insn" from rtx to
24264         rtx_insn *.
24266 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24268         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
24269         to rtx_insn *; also for local "var_end_seq".
24270         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
24271         (maybe_cleanup_end_of_block): Likewise for param "last" and local
24272         "insn".
24273         (expand_gimple_cond): Likewise for locals "last2" and "last".
24274         (mark_transaction_restart_calls): Likewise for local "insn".
24275         (expand_gimple_stmt): Likewise for return type and locals "last"
24276         and "insn".
24277         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
24278         (avoid_complex_debug_insns): Likewise for param "insn".
24279         (expand_debug_locations): Likewise for locals "insn", "last",
24280         "prev_insn" and "insn2".
24281         (expand_gimple_basic_block): Likewise for local "last".
24282         (construct_exit_block): Likewise for locals "head", "end",
24283         "orig_end".
24284         (pass_expand::execute): Likewise for locals "var_seq",
24285         "var_ret_seq", "next".
24287 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24289         * asan.h (asan_emit_stack_protection): Strengthen return type from
24290         rtx to rtx_insn *.
24291         * asan.c (asan_emit_stack_protection): Likewise.  Add local
24292         "insns" to hold the return value.
24294 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24296         * basic-block.h (bb_note): Strengthen return type from rtx to
24297         rtx_note *.
24298         * sched-int.h (bb_note): Likewise.
24299         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
24301 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24303         * rtl.h (make_insn_raw): Strengthen return type from rtx to
24304         rtx_insn *.
24306         * emit-rtl.c (make_insn_raw): Strengthen return type and local
24307         "insn" from rtx to rtx_insn *.
24308         (make_debug_insn_raw): Strengthen return type from rtx to
24309         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
24310         (make_jump_insn_raw):  Strengthen return type from rtx to
24311         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
24312         (make_call_insn_raw):  Strengthen return type from rtx to
24313         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
24314         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
24315         callback from rtx to rtx_insn *; likewise for local "insn" and
24316         "next", adding a checked cast to rtx_insn in the relevant cases of
24317         the switch statement.
24318         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
24319         callback from rtx to rtx_insn *.
24320         (emit_pattern_after_setloc): Likewise.
24321         (emit_pattern_after): Likewise.
24322         (emit_pattern_before_setloc): Likewise.
24323         (emit_pattern_before): Likewise.
24325 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24327         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
24328         rtx_call_insn *.
24329         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
24330         accepting an rtx_insn *.
24331         (last_call_insn): Strengthen return type from rtx to
24332         rtx_call_insn *.
24334 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24336         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
24337         "insns" from rtx to rtx_insn *.
24338         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
24339         locals "insn" and "prev".
24341 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24343         * rtl.h (tablejump_p): Strengthen third param from rtx * to
24344         rtx_jump_table_data **.
24346         * cfgbuild.c (make_edges): Introduce local "table", using it in
24347         place of "tmp" for jump table data.
24348         (find_bb_boundaries): Strengthen local "table" from rtx to
24349         rtx_jump_table_data *.
24350         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
24351         (outgoing_edges_match): Likewise for locals "table1" and "table2".
24352         (try_crossjump_to_edge): Likewise.
24353         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
24354         "table".
24355         (patch_jump_insn): Introduce local "table", using it in place of
24356         "tmp" for jump table data.
24357         (force_nonfallthru_and_redirect): Introduce local "table", so that
24358         call to tablejump_p can receive an rtx_jump_table_data **.  Update
24359         logic around the call to overwrite "note" appropriately if
24360         tablejump_p returns non-zero.
24361         (get_last_bb_insn): Introduce local "table", using it in place of
24362         "tmp" for jump table data.
24363         * dwarf2cfi.c (create_trace_edges): Likewise.
24365         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
24366         from rtx to rtx_jump_table_data *.
24367         (create_fix_barrier): Strengthen local "tmp" from rtx to
24368         rtx_jump_table_data *.
24369         (arm_reorg): Likewise for local "table".
24371         * config/s390/s390.c (s390_chunkify_start): Likewise.
24373         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
24375         * jump.c (delete_related_insns): Strengthen local "lab_next" from
24376         rtx to rtx_jump_table_data *.
24378         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
24379         rtx_jump_table_data **.  Add a checked cast when writing through
24380         the pointer: we know there that local "table" is non-NULL and that
24381         JUMP_TABLE_DATA_P (table) holds.
24382         (label_is_jump_target_p): Introduce local "table", using it in
24383         place of "tmp" for jump table data.
24385 2014-08-19  Marek Polacek  <polacek@redhat.com>
24387         PR c++/62153
24388         * doc/invoke.texi: Document -Wbool-compare.
24390 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24392         * rtl.h (entry_of_function): Strengthen return type from rtx to
24393         rtx_insn *.
24394         * cfgrtl.c (entry_of_function): Likewise.
24396 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24398         * emit-rtl.h (get_insns): Strengthen return type from rtx to
24399         rtx_insn *, adding a checked cast for now.
24400         (get_last_insn): Likewise.
24402 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24404         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
24405         rtx_code_label *.
24407         * emit-rtl.c (gen_label_rtx): Likewise.
24409 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24411         * rtl.h (previous_insn): Strengthen return type from rtx to
24412         rtx_insn *.
24413         (next_insn): Likewise.
24414         (prev_nonnote_insn): Likewise.
24415         (prev_nonnote_insn_bb): Likewise.
24416         (next_nonnote_insn): Likewise.
24417         (next_nonnote_insn_bb): Likewise.
24418         (prev_nondebug_insn): Likewise.
24419         (next_nondebug_insn): Likewise.
24420         (prev_nonnote_nondebug_insn): Likewise.
24421         (next_nonnote_nondebug_insn): Likewise.
24422         (prev_real_insn): Likewise.
24423         (next_real_insn): Likewise.
24424         (prev_active_insn): Likewise.
24425         (next_active_insn): Likewise.
24427         * emit-rtl.c (next_insn): Strengthen return type from rtx to
24428         rtx_insn *, adding a checked cast.
24429         (previous_insn): Likewise.
24430         (next_nonnote_insn): Likewise.
24431         (next_nonnote_insn_bb): Likewise.
24432         (prev_nonnote_insn): Likewise.
24433         (prev_nonnote_insn_bb): Likewise.
24434         (next_nondebug_insn): Likewise.
24435         (prev_nondebug_insn): Likewise.
24436         (next_nonnote_nondebug_insn): Likewise.
24437         (prev_nonnote_nondebug_insn): Likewise.
24438         (next_real_insn): Likewise.
24439         (prev_real_insn): Likewise.
24440         (next_active_insn): Likewise.
24441         (prev_active_insn): Likewise.
24443         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
24444         param "stepfunc" so that it returns an rtx_insn * rather than an
24445         rtx, to track the change to prev_nonnote_insn_bb, which is the
24446         only function this is called with.
24447         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
24449 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
24451         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
24452         assert.
24454 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24456         * coretypes.h (class rtx_debug_insn): Add forward declaration.
24457         (class rtx_nonjump_insn): Likewise.
24458         (class rtx_jump_insn): Likewise.
24459         (class rtx_call_insn): Likewise.
24460         (class rtx_jump_table_data): Likewise.
24461         (class rtx_barrier): Likewise.
24462         (class rtx_code_label): Likewise.
24463         (class rtx_note): Likewise.
24465         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
24466         adding the invariant DEBUG_INSN_P (X).
24467         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
24468         the invariant NONJUMP_INSN_P (X).
24469         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
24470         the invariant JUMP_P (X).
24471         (class rtx_call_insn): New, a subclass of rtx_insn, adding
24472         the invariant CALL_P (X).
24473         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
24474         invariant JUMP_TABLE_DATA_P (X).
24475         (class rtx_barrier): New, a subclass of rtx_insn, adding the
24476         invariant BARRIER_P (X).
24477         (class rtx_code_label): New, a subclass of rtx_insn, adding
24478         the invariant LABEL_P (X).
24479         (class rtx_note): New, a subclass of rtx_insn, adding
24480         the invariant NOTE_P(X).
24481         (is_a_helper <rtx_debug_insn *>::test): New.
24482         (is_a_helper <rtx_nonjump_insn *>::test): New.
24483         (is_a_helper <rtx_jump_insn *>::test): New.
24484         (is_a_helper <rtx_call_insn *>::test): New.
24485         (is_a_helper <rtx_jump_table_data *>::test): New functions,
24486         overloaded for both rtx and rtx_insn *.
24487         (is_a_helper <rtx_barrier *>::test): New.
24488         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
24489         for both rtx and rtx_insn *.
24490         (is_a_helper <rtx_note *>::test): New.
24492 2014-08-19  Marek Polacek  <polacek@redhat.com>
24494         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
24495         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24496         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
24497         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24499 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24501         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
24502         rtx_insn *.  To help with transition, for now, convert from an
24503         access macro into a pair of functions: BND_TO, returning an
24504         rtx_insn *, and...
24505         (SET_BND_TO): New function, for use where BND_TO is used as an
24506         lvalue.
24508         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
24509         SET_BND_TO.
24510         (BND_TO): New function, adding a checked cast.
24511         (SET_BND_TO): New function.
24513         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
24514         SET_BND_TO.
24515         (compute_av_set_on_boundaries): Likewise.
24517 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
24519         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
24520         destination if it is used in source.
24521         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
24522         (*popcount<mode>2_falsedep_1): Likewise.
24524 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
24526         PR other/62168
24527         * configure.ac: Set install_gold_as_default to no first.
24528         * configure: Regenerated.
24530 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24532         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
24533         "note_list" field will eventually be an rtx_insn *.  To help with
24534         transition, for now, convert from an access macro into a pair of
24535         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
24536         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
24537         used as an lvalue.
24539         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
24540         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
24542         * sel-sched-ir.c (init_bb): Likewise.
24543         (sel_restore_notes): Likewise.
24544         (move_bb_info): Likewise.
24545         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
24546         (SET_BB_NOTE_LIST): New function.
24548 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24550         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
24551         field will eventually be an rtx_insn *.  To help with transition,
24552         for now, convert from an access macro into a pair of functions:
24553         VINSN_INSN_RTX, returning an rtx_insn *, and...
24554         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
24555         is used as an lvalue.
24557         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
24558         SET_VINSN_INSN_RTX where it's used as an lvalue.
24559         (VINSN_INSN_RTX): New function.
24560         (SET_VINSN_INSN_RTX): New function.
24562 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24564         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
24565         eventually be rtx_insn *, but to help with transition, for now,
24566         convert from an access macro into a pair of functions: DEP_PRO
24567         returning an rtx_insn * and...
24568         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
24569         lvalue, returning an rtx&.
24570         (DEP_CON): Analogous changes to DEP_PRO above.
24571         (SET_DEP_CON): Likewise.
24573         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
24574         an lvalue to SET_DEP_CON.
24575         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
24576         (sd_copy_back_deps): Likewise for DEP_CON.
24577         (DEP_PRO): New function, adding a checked cast for now.
24578         (DEP_CON): Likewise.
24579         (SET_DEP_PRO): New function.
24580         (SET_DEP_CON): Likewise.
24582 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
24584         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
24585         (extra_options): Add i386/cygwin.opt.
24586         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
24587         (CPP_SPEC): Accept -pthread.
24588         (LINK_SPEC): Ditto.
24589         (GOMP_SELF_SPECS): Update comment.
24590         * config/i386/cygwin.opt: New file for -pthread flag.
24592 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24594         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
24595         * df.h (DF_REF_INSN): Convert from a macro to a function, so
24596         that we can return an rtx_insn *.
24598 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
24600         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
24601         when building executables, not DLLs.  Add --large-address-aware
24602         under the same conditions.
24603         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
24604         when building executables, not DLLs.  Add --large-address-aware
24605         under the same conditions when using -m32.
24607         * config/i386/cygwin-stdint.h: Throughout, make type
24608         definitions dependent on target architecture, not host.
24610 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24612         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
24613         the return type from rtx to rtx_insn *,  which will enable various
24614         conversions in followup patches.  For now this is is done by a
24615         checked cast.
24616         (NEXT_INSN): Likewise.
24617         (SET_PREV_INSN): Convert to an inline function.  This is intended
24618         for use as an lvalue, and so returns an rtx& to allow in-place
24619         modification.
24620         (SET_NEXT_INSN): Likewise.
24622 2014-07-08  Mark Wielaard  <mjw@redhat.com>
24624         PR debug/59051
24625         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
24627 2014-08-19  Marek Polacek  <polacek@redhat.com>
24629         PR c/61271
24630         * cgraphunit.c (handle_alias_pairs): Fix condition.
24632 2014-08-19  Richard Biener  <rguenther@suse.de>
24634         * gimple-fold.c (fold_gimple_assign): Properly build a
24635         null-pointer constant when devirtualizing addresses.
24637 2014-07-07  Mark Wielaard  <mjw@redhat.com>
24639         * dwarf2out.c (decl_quals): New function.
24640         (modified_type_die): Take one cv_quals argument instead of two,
24641         one for const and one for volatile.
24642         (add_type_attribute): Likewise.
24643         (generic_parameter_die): Call add_type_attribute with one modifier
24644         argument.
24645         (base_type_for_mode): Likewise.
24646         (add_bounds_info): Likewise.
24647         (add_subscript_info): Likewise.
24648         (gen_array_type_die): Likewise.
24649         (gen_descr_array_type_die): Likewise.
24650         (gen_entry_point_die): Likewise.
24651         (gen_enumeration_type_die): Likewise.
24652         (gen_formal_parameter_die): Likewise.
24653         (gen_subprogram_die): Likewise.
24654         (gen_variable_die): Likewise.
24655         (gen_const_die): Likewise.
24656         (gen_field_die): Likewise.
24657         (gen_pointer_type_die): Likewise.
24658         (gen_reference_type_die): Likewise.
24659         (gen_ptr_to_mbr_type_die): Likewise.
24660         (gen_inheritance_die): Likewise.
24661         (gen_subroutine_type_die): Likewise.
24662         (gen_typedef_die): Likewise.
24663         (force_type_die): Likewise.
24665 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24667         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
24668         if unset.
24669         * configure: Regenerate.
24671 2014-08-19  Richard Biener  <rguenther@suse.de>
24673         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
24674         DECL_EXTERNALs in BLOCKs as non-references.
24675         * tree-streamer-out.c (streamer_write_chain): Likewise.
24677 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24678             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24679             Anna Tikhonova  <anna.tikhonova@intel.com>
24680             Ilya Tocar  <ilya.tocar@intel.com>
24681             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24682             Ilya Verbin  <ilya.verbin@intel.com>
24683             Kirill Yukhin  <kirill.yukhin@intel.com>
24684             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24686         * config/i386/sse.md
24687         (define_mode_iterator VI48_AVX512F): Delete.
24688         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
24689         (define_mode_iterator VI2_AVX512VL): Ditto.
24690         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
24691         Delete.
24692         (define_insn
24693         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
24694         New.
24695         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
24696         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
24697         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
24698         with VI48_AVX512F_AVX512VL): New.
24699         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
24700         with VI2_AVX512VL): Ditto.
24702 2014-08-19  Marek Polacek  <polacek@redhat.com>
24704         * doc/invoke.texi: Document -Wc99-c11-compat.
24706 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24708         * rtl.h (PREV_INSN): Split macro in two: the existing one,
24709         for rvalues, and...
24710         (SET_PREV_INSN): New macro, for use as an lvalue.
24711         (NEXT_INSN, SET_NEXT_INSN): Likewise.
24713         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
24714         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
24715         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24716         (fixup_abnormal_edges): Likewise.
24717         (unlink_insn_chain): Likewise.
24718         (fixup_reorder_chain): Likewise.
24719         (cfg_layout_delete_block): Likewise.
24720         (cfg_layout_merge_blocks): Likewise.
24721         * combine.c (update_cfg_for_uncondjump): Likewise.
24722         * emit-rtl.c (link_insn_into_chain): Likewise.
24723         (remove_insn): Likewise.
24724         (delete_insns_since): Likewise.
24725         (reorder_insns_nobb): Likewise.
24726         (emit_insn_after_1): Likewise.
24727         * final.c (rest_of_clean_state): Likewise.
24728         (final_scan_insn): Likewise.
24729         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
24730         * haifa-sched.c (concat_note_lists): Likewise.
24731         (remove_notes): Likewise.
24732         (restore_other_notes): Likewise.
24733         (move_insn): Likewise.
24734         (unlink_bb_notes): Likewise.
24735         (restore_bb_notes): Likewise.
24736         * jump.c (delete_for_peephole): Likewise.
24737         * optabs.c (emit_libcall_block_1): Likewise.
24738         * reorg.c (emit_delay_sequence): Likewise.
24739         (fill_simple_delay_slots): Likewise.
24740         * sel-sched-ir.c (sel_move_insn): Likewise.
24741         (sel_remove_insn): Likewise.
24742         (get_bb_note_from_pool): Likewise.
24743         * sel-sched.c (move_nop_to_previous_block): Likewise.
24745         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
24746         * config/c6x/c6x.c (gen_one_bundle): Likewise.
24747         (c6x_gen_bundles): Likewise.
24748         (hwloop_optimize): Likewise.
24749         * config/frv/frv.c (frv_function_prologue): Likewise.
24750         (frv_register_nop): Likewise.
24751         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
24752         (ia64_reorg): Likewise.
24753         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
24754         (mep_make_bundle): Likewise.
24755         (mep_bundle_insns): Likewise.
24756         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
24757         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
24758         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
24760 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
24762         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
24763         return type from rtx to rtx_insn *.
24764         (BB_END): Likewise.
24765         (BB_HEADER): Likewise.
24766         (BB_FOOTER): Likewise.
24767         (SET_BB_HEAD): Convert to a function.
24768         (SET_BB_END): Likewise.
24769         (SET_BB_HEADER): Likewise.
24770         (SET_BB_FOOTER): Likewise.
24772         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
24773         Strengthen the return type from rtx to rtx_insn *.  For now, this
24774         is done by adding a checked cast, but this will eventually
24775         become a field lookup.
24776         (BB_END): Likewise.
24777         (BB_HEADER): Likewise.
24778         (BB_FOOTER): Likewise.
24779         (SET_BB_HEAD): New function, from macro of same name.  This is
24780         intended for use as an lvalue, and so returns an rtx& to allow
24781         in-place modification.
24782         (SET_BB_END): Likewise.
24783         (SET_BB_HEADER): Likewise.
24784         (SET_BB_FOOTER): Likewise.
24786 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
24788         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
24789         for rvalues, and...
24790         (SET_BB_HEAD): New macro, for use as a lvalue.
24791         (BB_END, SET_BB_END): Likewise.
24792         (BB_HEADER, SET_BB_HEADER): Likewise.
24793         (BB_FOOTER, SET_BB_FOOTER): Likewise.
24795         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
24796         of BB_* macros into SET_BB_* macros.
24797         (fix_crossing_unconditional_branches): Likewise.
24798         * caller-save.c (save_call_clobbered_regs): Likewise.
24799         (insert_one_insn): Likewise.
24800         * cfgbuild.c (find_bb_boundaries): Likewise.
24801         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
24802         (outgoing_edges_match): Likewise.
24803         (try_optimize_cfg): Likewise.
24804         * cfgexpand.c (expand_gimple_cond): Likewise.
24805         (expand_gimple_tailcall): Likewise.
24806         (expand_gimple_basic_block): Likewise.
24807         (construct_exit_block): Likewise.
24808         * cfgrtl.c (delete_insn): Likewise.
24809         (create_basic_block_structure): Likewise.
24810         (rtl_delete_block): Likewise.
24811         (rtl_split_block): Likewise.
24812         (emit_nop_for_unique_locus_between): Likewise.
24813         (rtl_merge_blocks): Likewise.
24814         (block_label): Likewise.
24815         (try_redirect_by_replacing_jump): Likewise.
24816         (emit_barrier_after_bb): Likewise.
24817         (fixup_abnormal_edges): Likewise.
24818         (record_effective_endpoints): Likewise.
24819         (relink_block_chain): Likewise.
24820         (fixup_reorder_chain): Likewise.
24821         (fixup_fallthru_exit_predecessor): Likewise.
24822         (cfg_layout_duplicate_bb): Likewise.
24823         (cfg_layout_split_block): Likewise.
24824         (cfg_layout_delete_block): Likewise.
24825         (cfg_layout_merge_blocks): Likewise.
24826         * combine.c (update_cfg_for_uncondjump): Likewise.
24827         * emit-rtl.c (add_insn_after): Likewise.
24828         (remove_insn): Likewise.
24829         (reorder_insns): Likewise.
24830         (emit_insn_after_1): Likewise.
24831         * haifa-sched.c (get_ebb_head_tail): Likewise.
24832         (restore_other_notes): Likewise.
24833         (move_insn): Likewise.
24834         (sched_extend_bb): Likewise.
24835         (fix_jump_move): Likewise.
24836         * ifcvt.c (noce_process_if_block): Likewise.
24837         (dead_or_predicable): Likewise.
24838         * ira.c (update_equiv_regs): Likewise.
24839         * reg-stack.c (change_stack): Likewise.
24840         * sel-sched-ir.c (sel_move_insn): Likewise.
24841         * sel-sched.c (move_nop_to_previous_block): Likewise.
24843         * config/c6x/c6x.c (hwloop_optimize): Likewise.
24844         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
24846 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
24848         * rtl.h (for_each_rtx_in_insn): New function.
24849         * rtlanal.c (for_each_rtx_in_insn): Likewise.
24851 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
24853         * coretypes.h (class rtx_insn): Add forward declaration.
24855         * rtl.h: Include is-a.h.
24856         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
24857         workaround to ensure gengtype knows inheritance is occurring,
24858         whilst continuing to use the pre-existing special-casing for
24859         rtx_def.
24860         (class rtx_insn): New subclass of rtx_def, adding the
24861         invariant that we're dealing with something we can sanely use
24862         INSN_UID, NEXT_INSN, PREV_INSN on.
24863         (is_a_helper <rtx_insn *>::test): New.
24864         (is_a_helper <const rtx_insn *>::test): New.
24866 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
24868         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
24870 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
24872         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
24873         comdats as extern.
24875 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
24877         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
24878         to BUILT_IN_UNREACHABLE.
24880 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
24882         PR target/62011
24883         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
24884         New tune flag.
24885         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
24886         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
24887         (ffs<mode>2): Do not expand with tzcnt for
24888         TARGET_AVOID_FALSE_DEP_FOR_BMI.
24889         (ffssi2_no_cmove): Ditto.
24890         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
24891         (ctz<mode>2): New expander.
24892         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
24893         (*ctz<mode>2_falsedep): New insn.
24894         (*ctz<mode>2): Rename from ctz<mode>2.
24895         (clz<mode>2_lzcnt): New expander.
24896         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
24897         (*clz<mode>2_lzcnt_falsedep): New insn.
24898         (*clz<mode>2): Rename from ctz<mode>2.
24899         (popcount<mode>2): New expander.
24900         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
24901         (*popcount<mode>2_falsedep): New insn.
24902         (*popcount<mode>2): Rename from ctz<mode>2.
24903         (*popcount<mode>2_cmp): Remove.
24904         (*popcountsi2_cmp_zext): Ditto.
24906 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
24908         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
24909         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
24910         * config/microblaze/microblaze.h
24911         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
24913 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
24915         PR other/62168
24916         * configure.ac: Set install_gold_as_default to no for
24917         --enable-gold=no.
24918         * configure: Regenerated.
24920 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
24922         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
24923         * config.in: Add undef of HAVE_isl.
24924         * configure: Regenerate.
24925         * configure.ac: Add definition of HAVE_isl.
24926         * graphite-blocking.c: Add checking of HAVE_isl.
24927         * graphite-dependences.c: Likewise.
24928         * graphite-interchange.c: Likewise.
24929         * graphite-isl-ast-to-gimple.c: Likewise.
24930         * graphite-optimize-isl.c: Likewise.
24931         * graphite-poly.c: Likewise.
24932         * graphite-scop-detection.c: Likewise.
24933         * graphite-sese-to-poly.c: Likewise.
24934         * graphite.c: Likewise.
24935         * toplev.c: Replace the checking of HAVE_cloog with the checking
24936         of HAVE_isl.
24938 2014-08-18  Richard Biener  <rguenther@suse.de>
24940         PR tree-optimization/62090
24941         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
24942         (fold_builtin_3): Do not fold snprintf.
24943         (fold_builtin_4): Likewise.
24944         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
24945         moved from builtins.c.
24946         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
24947         (gimple_fold_builtin): Do not fold sprintf here.
24949 2014-08-18  Richard Biener  <rguenther@suse.de>
24951         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
24952         code to ...
24953         (maybe_canonicalize_mem_ref_addr): ... this function.
24954         (fold_stmt_1): Apply it here before all simplification.
24956 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
24958         PR ipa/61800
24959         * cgraph.h (cgraph_node::create_indirect_edge): Add
24960         compute_indirect_info param.
24961         * cgraph.c (cgraph_node::create_indirect_edge): Compute
24962         indirect_info only when it is required.
24963         * cgraphclones.c (cgraph_clone_edge): Do not recompute
24964         indirect_info fore cloned indirect edge.
24966 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24967             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24968             Anna Tikhonova  <anna.tikhonova@intel.com>
24969             Ilya Tocar  <ilya.tocar@intel.com>
24970             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24971             Ilya Verbin  <ilya.verbin@intel.com>
24972             Kirill Yukhin  <kirill.yukhin@intel.com>
24973             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24975         * config/i386/sse.md
24976         (define_mode_iterator VI8_AVX2_AVX512BW): New.
24977         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
24979 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24980             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24981             Anna Tikhonova  <anna.tikhonova@intel.com>
24982             Ilya Tocar  <ilya.tocar@intel.com>
24983             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24984             Ilya Verbin  <ilya.verbin@intel.com>
24985             Kirill Yukhin  <kirill.yukhin@intel.com>
24986             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24988         * config/i386/sse.md
24989         (define_mode_iterator VF1_AVX512VL): New.
24990         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
24991         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
24992         New.
24994 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24995             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24996             Anna Tikhonova  <anna.tikhonova@intel.com>
24997             Ilya Tocar  <ilya.tocar@intel.com>
24998             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24999             Ilya Verbin  <ilya.verbin@intel.com>
25000             Kirill Yukhin  <kirill.yukhin@intel.com>
25001             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25003         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
25004         * config/i386/i386.md
25005         (define_code_iterator any_float): New.
25006         (define_code_attr floatsuffix): New.
25007         * config/i386/sse.md
25008         (define_mode_iterator VF1_128_256VL): New.
25009         (define_mode_iterator VF2_512_256VL): New.
25010         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
25011         TARGET check.
25012         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
25013         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
25014         New.
25015         (define_mode_attr qq2pssuff): New.
25016         (define_mode_attr sselongvecmode): New.
25017         (define_mode_attr sselongvecmodelower): New.
25018         (define_mode_attr sseintvecmode3): New.
25019         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
25020         New.
25021         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
25022         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
25023         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
25024         (define_insn "ufloatv2siv2df2<mask_name>"): New.
25026 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25027             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25028             Anna Tikhonova  <anna.tikhonova@intel.com>
25029             Ilya Tocar  <ilya.tocar@intel.com>
25030             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25031             Ilya Verbin  <ilya.verbin@intel.com>
25032             Kirill Yukhin  <kirill.yukhin@intel.com>
25033             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25035         * config/i386/sse.md
25036         (define_mode_iterator VF2_AVX512VL): New.
25037         (define_mode_attr sseintvecmode2): New.
25038         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
25039         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
25040         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
25041         (define_insn
25042         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
25043         Ditto.
25044         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25045         Ditto.
25046         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25047         Ditto.
25049 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25050             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25051             Anna Tikhonova  <anna.tikhonova@intel.com>
25052             Ilya Tocar  <ilya.tocar@intel.com>
25053             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25054             Ilya Verbin  <ilya.verbin@intel.com>
25055             Kirill Yukhin  <kirill.yukhin@intel.com>
25056             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25058         * config/i386/i386.md
25059         (define_insn "*movoi_internal_avx"): Add evex version.
25060         (define_insn "*movti_internal"): Ditto.
25062 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25063             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25064             Anna Tikhonova  <anna.tikhonova@intel.com>
25065             Ilya Tocar  <ilya.tocar@intel.com>
25066             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25067             Ilya Verbin  <ilya.verbin@intel.com>
25068             Kirill Yukhin  <kirill.yukhin@intel.com>
25069             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25071         * config/i386/i386.md
25072         (define_attr "isa"): Add avx512dq, noavx512dq.
25073         (define_attr "enabled"): Ditto.
25074         * config/i386/sse.md
25075         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
25077 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25078             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25079             Anna Tikhonova  <anna.tikhonova@intel.com>
25080             Ilya Tocar  <ilya.tocar@intel.com>
25081             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25082             Ilya Verbin  <ilya.verbin@intel.com>
25083             Kirill Yukhin  <kirill.yukhin@intel.com>
25084             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25086         * config/i386/i386.c
25087         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
25088         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
25089         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
25090         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
25091         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
25092         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
25093         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
25094         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
25095         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
25096         * config/i386/sse.md
25097         (define_mode_iterator VMOVE): Allow V4TI mode.
25098         (define_mode_iterator V_AVX512VL): New.
25099         (define_mode_iterator V): New handling for AVX512VL.
25100         (define_insn "avx512f_load<mode>_mask"): Delete.
25101         (define_insn "<avx512>_load<mode>_mask"): New.
25102         (define_insn "avx512f_store<mode>_mask"): Delete.
25103         (define_insn "<avx512>_store<mode>_mask"): New.
25106 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
25108         PR sanitizer/62089
25109         * asan.c (instrument_derefs): Fix bitfield check.
25111 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
25113         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
25114         * config/rs6000/htm.md (ttest): Remove clobber.
25115         * config/rs6000/predicates.md (any_mask_operand): New predicate.
25116         (and_operand): Reformat.
25117         (and_2rld_operand): New predicate.
25118         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
25119         parameter.
25120         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
25121         parameter.  Handle AND directly.
25122         (rs6000_split_logical_di): Remove last parameter.
25123         (rs6000_split_logical): Remove last parameter.  Remove obsolete
25124         comment.
25125         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
25126         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
25127         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
25128         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
25129         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
25130         and 5 anonymous splitters):  Delete.
25131         (and<mode>3): New expander.
25132         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
25133         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
25134         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
25135         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
25136         (floatdisf2_internal1): Remove clobbers.
25137         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
25138         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
25139         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
25140         (and<mode>3 for BOOL_128): Remove clobber.
25141         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
25142         rs6000_split_logical.
25143         (*bool<mode>3_internal for BOOL_128): Adjust call of
25144         rs6000_split_logical.
25145         (*boolc<mode>3_internal1 for BOOL_128,
25146         *boolc<mode>3_internal2 for BOOL_128,
25147         *boolcc<mode>3_internal1 for BOOL_128,
25148         *boolcc<mode>3_internal2 for BOOL_128,
25149         *eqv<mode>3_internal1 for BOOL_128,
25150         *eqv<mode>3_internal2 for BOOL_128,
25151         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
25152         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
25153         clobber.
25154         (*vec_reload_and_reg_<mptrsize>): Delete.
25156 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
25158         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
25159         and split, *boolccsi3_internal3 and split): Delete.
25160         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
25161         *boolccdi3_internal3 and split): Delete.
25162         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
25163         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
25165 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
25167         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
25168         and split, *boolcsi3_internal3 and split): Delete.
25169         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
25170         *boolcdi3_internal3 and split): Delete.
25171         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
25173 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
25175         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
25176         <'u'>: Also support printing the low-order 16 bits.
25177         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
25178         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
25179         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
25180         *booldi3_internal3 and split): Delete.
25181         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
25182         *bool<mode>3_dot2): New.
25183         (two anonymous define_splits for non_logical_cint_operand): Merge.
25185 2014-08-17  Marek Polacek  <polacek@redhat.com>
25186             Manuel López-Ibáñez  <manu@gcc.gnu.org>
25188         PR c/62059
25189         * diagnostic.c (adjust_line): Add gcc_checking_assert.
25190         (diagnostic_show_locus): Don't print caret diagnostic
25191         if a column is larger than the line_width.
25193 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
25195         * common.opt: Make the ISL AST generator to be the main code generator
25196         of Graphite.
25198 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
25200         * wide-int.h (generic_wide_int): Declare as class instead of struct.
25202 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
25204         PR target/61641
25205         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
25206         Declare.
25207         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
25208         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
25209         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
25210         Define.
25211         * config/pa/pa.md (begin_brtab): Delete insn.
25212         (end_brtab): Likewise.
25214 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25216         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
25218 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
25220         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
25221         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
25222         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
25223         (get_dynamic_type): Remove.
25224         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
25225         (clear_speculation): Bring to ipa-deivrt.h
25226         (get_class_context): Rename to ...
25227         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
25228         (contains_type_p): Update.
25229         (get_dynamic_type): Rename to ...
25230         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
25231         (possible_polymorphic_call_targets): UPdate.
25232         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
25233         * ipa-prop.c (ipa_analyze_call_uses): Update.
25235 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
25237         * doc/invoke.texi (SH options): Document missing processor variant
25238         options.  Remove references to Hitachi.  Undocument deprecated mspace
25239         option.
25241 2014-08-15  Jason Merrill  <jason@redhat.com>
25243         * tree.c (type_hash_canon): Uncomment assert.
25245 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25247         * input.h (in_system_header_at): Add comment.
25249 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25251         PR fortran/44054
25252         * diagnostic.c (build_message_string): Make it extern.
25253         * diagnostic.h (build_message_string): Make it extern.
25255 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
25257         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
25258         load/store from/to non-floating class pseudo.
25260 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25262         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
25264 2014-08-15  Richard Biener  <rguenther@suse.de>
25266         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
25267         (get_constraint_for_ssa_var): Remove dead code.
25268         (get_constraint_for_1): Adjust.
25269         (find_what_var_points_to): Likewise.
25270         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
25272 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
25274         PR target/61878
25275         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
25276         (_mm512_mask_cmpge_epu32_mask): Ditto.
25277         (_mm512_cmpge_epu32_mask): Ditto.
25278         (_mm512_mask_cmpge_epi64_mask): Ditto.
25279         (_mm512_cmpge_epi64_mask): Ditto.
25280         (_mm512_mask_cmpge_epu64_mask): Ditto.
25281         (_mm512_cmpge_epu64_mask): Ditto.
25282         (_mm512_mask_cmple_epi32_mask): Ditto.
25283         (_mm512_cmple_epi32_mask): Ditto.
25284         (_mm512_mask_cmple_epu32_mask): Ditto.
25285         (_mm512_cmple_epu32_mask): Ditto.
25286         (_mm512_mask_cmple_epi64_mask): Ditto.
25287         (_mm512_cmple_epi64_mask): Ditto.
25288         (_mm512_mask_cmple_epu64_mask): Ditto.
25289         (_mm512_cmple_epu64_mask): Ditto.
25290         (_mm512_mask_cmplt_epi32_mask): Ditto.
25291         (_mm512_cmplt_epi32_mask): Ditto.
25292         (_mm512_mask_cmplt_epu32_mask): Ditto.
25293         (_mm512_cmplt_epu32_mask): Ditto.
25294         (_mm512_mask_cmplt_epi64_mask): Ditto.
25295         (_mm512_cmplt_epi64_mask): Ditto.
25296         (_mm512_mask_cmplt_epu64_mask): Ditto.
25297         (_mm512_cmplt_epu64_mask): Ditto.
25298         (_mm512_mask_cmpneq_epi32_mask): Ditto.
25299         (_mm512_mask_cmpneq_epu32_mask): Ditto.
25300         (_mm512_cmpneq_epu32_mask): Ditto.
25301         (_mm512_mask_cmpneq_epi64_mask): Ditto.
25302         (_mm512_cmpneq_epi64_mask): Ditto.
25303         (_mm512_mask_cmpneq_epu64_mask): Ditto.
25304         (_mm512_cmpneq_epu64_mask): Ditto.
25305         (_mm512_castpd_ps): Ditto.
25306         (_mm512_castpd_si512): Ditto.
25307         (_mm512_castps_pd): Ditto.
25308         (_mm512_castps_si512): Ditto.
25309         (_mm512_castsi512_ps): Ditto.
25310         (_mm512_castsi512_pd): Ditto.
25311         (_mm512_castpd512_pd128): Ditto.
25312         (_mm512_castps512_ps128): Ditto.
25313         (_mm512_castsi512_si128): Ditto.
25314         (_mm512_castpd512_pd256): Ditto.
25315         (_mm512_castps512_ps256): Ditto.
25316         (_mm512_castsi512_si256): Ditto.
25317         (_mm512_castpd128_pd512): Ditto.
25318         (_mm512_castps128_ps512): Ditto.
25319         (_mm512_castsi128_si512): Ditto.
25320         (_mm512_castpd256_pd512): Ditto.
25321         (_mm512_castps256_ps512): Ditto.
25322         (_mm512_castsi256_si512): Ditto.
25323         (_mm512_cmpeq_epu32_mask): Ditto.
25324         (_mm512_mask_cmpeq_epu32_mask): Ditto.
25325         (_mm512_mask_cmpeq_epu64_mask): Ditto.
25326         (_mm512_cmpeq_epu64_mask): Ditto.
25327         (_mm512_cmpgt_epu32_mask): Ditto.
25328         (_mm512_mask_cmpgt_epu32_mask): Ditto.
25329         (_mm512_mask_cmpgt_epu64_mask): Ditto.
25330         (_mm512_cmpgt_epu64_mask): Ditto.
25331         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
25332         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
25333         * config/i386/i386.c (enum ix86_builtins): Add
25334         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
25335         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
25336         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
25337         (bdesc_args): Add __builtin_ia32_si512_256si,
25338         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
25339         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
25340         __builtin_ia32_pd512_pd.
25341         (ix86_expand_args_builtin): Handle new FTYPEs.
25342         * config/i386/sse.md (castmode): Add 512-bit modes.
25343         (AVX512MODE2P): New.
25344         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
25345         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
25347 2014-08-15  Richard Biener  <rguenther@suse.de>
25349         * fold-const.c (tree_swap_operands_p): Put all constants
25350         last, also strip sign-changing NOPs when considering further
25351         canonicalization.  Canonicalize also when optimizing for size.
25353 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25355         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
25356         one_match > zero_match case to just before simple_sequence.
25358 2014-08-15  Richard Biener  <rguenther@suse.de>
25360         * data-streamer.h (streamer_string_index, string_for_index):
25361         Remove.
25362         * data-streamer-out.c (streamer_string_index): Make static.
25363         * data-streamer-in.c (string_for_index): Likewise.
25364         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
25365         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
25367 2014-08-15  Richard Biener  <rguenther@suse.de>
25369         PR tree-optimization/62031
25370         * tree-data-ref.c (dr_analyze_indices): Do not set
25371         DR_UNCONSTRAINED_BASE.
25372         (dr_may_alias_p): All indirect accesses have to go the
25373         formerly DR_UNCONSTRAINED_BASE path.
25374         * tree-data-ref.h (struct indices): Remove
25375         unconstrained_base member.
25376         (DR_UNCONSTRAINED_BASE): Remove.
25378 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
25380         PR middle-end/62092
25381         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
25382         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
25383         in OMP_CLAUSE_MAP in some outer target region.
25385 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
25387         * tree-ssa-loop-ivopts.c (ivopts_data): New field
25388         name_expansion_cache.
25389         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
25390         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
25391         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
25392         (difference_cannot_overflow_p): New parameter.  Use affine
25393         expansion for equality check.
25394         (iv_elimination_compare_lt): Pass new argument.
25396 2014-08-14  DJ Delorie  <dj@redhat.com>
25398         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
25399         variables to the accumulator.
25401         * config/rl78/predicates.md (rl78_near_mem_operand): New.
25402         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
25403         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
25404         with far-far moves.
25406         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
25407         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
25408         (umulqihi3_virt): Likewise.
25409         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
25410         (umulqihi3_real): Likewise.
25412         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
25414 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
25416         PR tree-optimization/62091
25417         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
25418         function_entry_reached.
25419         (walk_aliased_vdefs): Clear it here.
25420         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
25422 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
25424         * ipa-utils.h (compare_virtual_tables): Declare.
25425         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
25427 2014-08-14  Marek Polacek  <polacek@redhat.com>
25429         DR 458
25430         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
25431         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
25433 2014-08-14  Tom de Vries  <tom@codesourcery.com>
25435         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
25437 2014-08-14  Tom de Vries  <tom@codesourcery.com>
25439         PR rtl-optimization/62004
25440         PR rtl-optimization/62030
25441         * ifcvt.c (rtx_interchangeable_p): New function.
25442         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
25443         * emit-rtl.h (mem_attrs_eq_p): Declare.
25445 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
25447         * graphite-scop-detection.c:
25448         Add inclusion of cp-tree.h.
25449         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
25450         in case they are pointers to object types
25452 2014-08-14  Richard Biener  <rguenther@suse.de>
25454         * BASE-VER: Change to 5.0.0
25456 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25457             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25458             Anna Tikhonova  <anna.tikhonova@intel.com>
25459             Ilya Tocar  <ilya.tocar@intel.com>
25460             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25461             Ilya Verbin  <ilya.verbin@intel.com>
25462             Kirill Yukhin  <kirill.yukhin@intel.com>
25463             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25465         * config/i386/sse.md (define_mode_attr avx512): New.
25466         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
25467         V4DI modes.
25468         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
25469         (define_mode_attr ssse3_avx2): Ditto.
25470         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
25471         (define_mode_attr avx2_avx512bw): New.
25472         (define_mode_attr ssedoublemodelower): New.
25473         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
25474         V32HI, V64QI modes.
25475         (define_mode_attr ssebytemode): Allow V8DI modes.
25476         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
25477         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
25478         (define_mode_attr ssePSmode2): New.
25479         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
25480         V16HI, V32HI modes.
25481         (define_mode_attr dbpsadbwmode): New.
25482         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
25483         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
25484         (vi8_sse4_1_avx2_avx512): New.
25485         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
25486         mode attribute.
25487         (define_mode_attr blendbits): Move before its immediate use.
25489 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25490             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25491             Anna Tikhonova  <anna.tikhonova@intel.com>
25492             Ilya Tocar  <ilya.tocar@intel.com>
25493             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25494             Ilya Verbin  <ilya.verbin@intel.com>
25495             Kirill Yukhin  <kirill.yukhin@intel.com>
25496             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25498         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
25499         * config/i386/subst.md
25500         (define_mode_iterator SUBST_V): Update.
25501         (define_mode_iterator SUBST_A): Ditto.
25502         (define_subst_attr "mask_operand7"): New.
25503         (define_subst_attr "mask_operand10"): New.
25504         (define_subst_attr "mask_operand_arg34") : New.
25505         (define_subst_attr "mask_expand_op3"): New.
25506         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
25507         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
25508         (define_subst_attr "mask_avx512vl_condition"): New.
25509         (define_subst_attr "round_mask_operand4"): Ditto.
25510         (define_subst_attr "round_mask_scalar_op3"): Delete.
25511         (define_subst_attr "round_mask_op4"): New.
25512         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
25513         V16SImode.
25514         (define_subst_attr "round_modev8sf_condition"): New.
25515         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
25516         <MODE>mode.
25517         (define_subst_attr "round_saeonly_mask_operand4"): New.
25518         (define_subst_attr "round_saeonly_mask_op4"): New.
25519         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
25520         V8DImode, V16SImode.
25521         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
25522         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
25523         (define_subst_attr "mask_expand4_args"): New.
25524         (define_subst "mask_expand4"): New.
25526 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25527             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25528             Anna Tikhonova  <anna.tikhonova@intel.com>
25529             Ilya Tocar  <ilya.tocar@intel.com>
25530             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25531             Ilya Verbin  <ilya.verbin@intel.com>
25532             Kirill Yukhin  <kirill.yukhin@intel.com>
25533             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25535         * config/i386/i386.md
25536         (define_attr "isa"): Add avx512bw,noavx512bw.
25537         (define_attr "enabled"): Ditto.
25538         (define_split): Add 32/64-bit mask logic.
25539         (define_insn "*k<logic>qi"): New.
25540         (define_insn "*k<logic>hi"): New.
25541         (define_insn "*anddi_1"): Add mask version.
25542         (define_insn "*andsi_1"): Ditto.
25543         (define_insn "*<code><mode>_1"): Ditto.
25544         (define_insn "*<code>hi_1"): Ditto.
25545         (define_insn "kxnor<mode>"): New.
25546         (define_insn "kunpcksi"): New.
25547         (define_insn "kunpckdi"): New.
25548         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
25549         (define_insn "*one_cmplhi2_1"): Ditto.
25551 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25552             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25553             Anna Tikhonova  <anna.tikhonova@intel.com>
25554             Ilya Tocar  <ilya.tocar@intel.com>
25555             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25556             Ilya Verbin  <ilya.verbin@intel.com>
25557             Kirill Yukhin  <kirill.yukhin@intel.com>
25558             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25560         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
25561         V32HImode.
25563 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25564             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25565             Anna Tikhonova  <anna.tikhonova@intel.com>
25566             Ilya Tocar  <ilya.tocar@intel.com>
25567             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25568             Ilya Verbin  <ilya.verbin@intel.com>
25569             Kirill Yukhin  <kirill.yukhin@intel.com>
25570             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25572         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
25573         registers.
25574         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
25575         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
25576         xmm/ymm16+ when availble.
25577         * config/i386/i386.h
25578         (HARD_REGNO_NREGS): Add mask regs.
25579         (VALID_AVX512F_REG_MODE): Ditto.
25580         (VALID_AVX512F_REG_MODE) : Define.
25581         (VALID_MASK_AVX512BW_MODE): Ditto.
25582         (reg_class) (MASK_REG_P(X)): Define.
25583         * config/i386/i386.md: Do not split long moves with mask register,
25584         use kmovb if avx512bw is availible.
25585         (movdi_internal): Handle mask registers.
25587 2014-08-14  Richard Biener  <rguenther@suse.de>
25589         PR tree-optimization/62081
25590         * tree-ssa-loop.c (pass_fix_loops): New pass.
25591         (pass_tree_loop::gate):  Do not fixup loops here.
25592         * tree-pass.h (make_pass_fix_loops): Declare.
25593         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
25595 2014-08-14  Richard Biener  <rguenther@suse.de>
25597         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
25598         (type_hash_canon): ... this and avoid 2nd lookup for the add.
25600 2014-08-14  Richard Biener  <rguenther@suse.de>
25602         PR tree-optimization/62090
25603         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
25604         (fold_builtin_2): Do not fold sprintf.
25605         (fold_builtin_3): Likewise.
25606         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
25607         moved from builtins.c.
25608         (gimple_fold_builtin): Fold sprintf.
25610 2014-08-14  Richard Biener  <rguenther@suse.de>
25612         PR rtl-optimization/62079
25613         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
25614         run cleanup_cfg.
25616 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
25618         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
25619         current_function_decl.
25621 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
25623         * cgraph.c (cgraph_node::function_symbol): Fix wrong
25624         cgraph_function_node to cgraph_node::function_symbol
25625         refactoring.
25627 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25629         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
25630         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
25632 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
25634         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
25635         warning.
25637 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
25639         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
25640         generator.
25642 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
25644         PR target/62025
25645         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
25646         any registers that are used in mem_insn.
25648 2014-08-12  Steve Ellcey  <sellcey@mips.com>
25650         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
25652 2014-08-12  Steve Ellcey  <sellcey@mips.com>
25654         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
25655         (MULTILIB_DIRNAMES): Ditto.
25656         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
25657         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
25658         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
25659         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
25660         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
25661         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
25663 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25665         PR target/61413
25666         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
25667         of __ARM_SIZEOF_WCHAR_T.
25669 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25671         PR target/62098
25672         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
25673         Remove unnecessary attributes.
25675 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
25677         * internal-fn.c (init_internal_fns): Fix off-by-one.
25679 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25680             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25681             Anna Tikhonova  <anna.tikhonova@intel.com>
25682             Ilya Tocar  <ilya.tocar@intel.com>
25683             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25684             Ilya Verbin  <ilya.verbin@intel.com>
25685             Kirill Yukhin  <kirill.yukhin@intel.com>
25686             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25688         * config/i386/i386.c (standard_sse_constant_opcode): Use
25689         vpxord/vpternlog if avx512 is availible.
25691 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25693         PR middle-end/62103
25694         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
25695         bitfields, that is when size doesn't match the size of type or the
25696         size of the constructor.
25698 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25700         * config/rs6000/constraints.md (wh constraint): New constraint,
25701         for FP registers if direct move is available.
25702         (wi constraint): New constraint, for VSX/FP registers that can
25703         handle 64-bit integers.
25704         (wj constraint): New constraint for VSX/FP registers that can
25705         handle 64-bit integers for direct moves.
25706         (wk constraint): New constraint for VSX/FP registers that can
25707         handle 64-bit doubles for direct moves.
25708         (wy constraint): Make documentation match implementation.
25710         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
25711         scalar_in_vmx_p field to simplify tests of whether SFmode or
25712         DFmode can go in the Altivec registers.
25713         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
25714         (rs6000_setup_reg_addr_masks): Likewise.
25715         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
25716         field, and wh/wi/wj/wk constraints.
25717         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
25718         the wh/wi/wj/wk constraints.
25719         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
25720         upper registers, prefer VSX registers unless the operation is a
25721         memory operation with REG+OFFSET addressing.
25723         * config/rs6000/vsx.md (VSr mode attribute): Add support for
25724         DImode.  Change SFmode to use ww constraint instead of d to allow
25725         SF registers in the upper registers.
25726         (VSr2): Likewise.
25727         (VSr3): Likewise.
25728         (VSr5): Fix thinko in comment.
25729         (VSa): New mode attribute that is an alternative to wa, that
25730         returns the VSX register class that a mode can go in, but may not
25731         be the preferred register class.
25732         (VS_64dm): New mode attribute for appropriate register classes for
25733         referencing 64-bit elements of vectors for direct moves and normal
25734         moves.
25735         (VS_64reg): Likewise.
25736         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
25737         register allocator to only registers the data type can handle.
25738         (vsx_le_perm_load_<mode>): Likewise.
25739         (vsx_le_perm_store_<mode>): Likewise.
25740         (vsx_xxpermdi2_le_<mode>): Likewise.
25741         (vsx_xxpermdi4_le_<mode>): Likewise.
25742         (vsx_lxvd2x2_le_<mode>): Likewise.
25743         (vsx_lxvd2x4_le_<mode>): Likewise.
25744         (vsx_stxvd2x2_le_<mode>): Likewise.
25745         (vsx_add<mode>3): Likewise.
25746         (vsx_sub<mode>3): Likewise.
25747         (vsx_mul<mode>3): Likewise.
25748         (vsx_div<mode>3): Likewise.
25749         (vsx_tdiv<mode>3_internal): Likewise.
25750         (vsx_fre<mode>2): Likewise.
25751         (vsx_neg<mode>2): Likewise.
25752         (vsx_abs<mode>2): Likewise.
25753         (vsx_nabs<mode>2): Likewise.
25754         (vsx_smax<mode>3): Likewise.
25755         (vsx_smin<mode>3): Likewise.
25756         (vsx_sqrt<mode>2): Likewise.
25757         (vsx_rsqrte<mode>2): Likewise.
25758         (vsx_tsqrt<mode>2_internal): Likewise.
25759         (vsx_fms<mode>4): Likewise.
25760         (vsx_nfma<mode>4): Likewise.
25761         (vsx_eq<mode>): Likewise.
25762         (vsx_gt<mode>): Likewise.
25763         (vsx_ge<mode>): Likewise.
25764         (vsx_eq<mode>_p): Likewise.
25765         (vsx_gt<mode>_p): Likewise.
25766         (vsx_ge<mode>_p): Likewise.
25767         (vsx_xxsel<mode>): Likewise.
25768         (vsx_xxsel<mode>_uns): Likewise.
25769         (vsx_copysign<mode>3): Likewise.
25770         (vsx_float<VSi><mode>2): Likewise.
25771         (vsx_floatuns<VSi><mode>2): Likewise.
25772         (vsx_fix_trunc<mode><VSi>2): Likewise.
25773         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
25774         (vsx_x<VSv>r<VSs>i): Likewise.
25775         (vsx_x<VSv>r<VSs>ic): Likewise.
25776         (vsx_btrunc<mode>2): Likewise.
25777         (vsx_b2trunc<mode>2): Likewise.
25778         (vsx_floor<mode>2): Likewise.
25779         (vsx_ceil<mode>2): Likewise.
25780         (vsx_<VS_spdp_insn>): Likewise.
25781         (vsx_xscvspdp): Likewise.
25782         (vsx_xvcvspuxds): Likewise.
25783         (vsx_float_fix_<mode>2): Likewise.
25784         (vsx_set_<mode>): Likewise.
25785         (vsx_extract_<mode>_internal1): Likewise.
25786         (vsx_extract_<mode>_internal2): Likewise.
25787         (vsx_extract_<mode>_load): Likewise.
25788         (vsx_extract_<mode>_store): Likewise.
25789         (vsx_splat_<mode>): Likewise.
25790         (vsx_xxspltw_<mode>): Likewise.
25791         (vsx_xxspltw_<mode>_direct): Likewise.
25792         (vsx_xxmrghw_<mode>): Likewise.
25793         (vsx_xxmrglw_<mode>): Likewise.
25794         (vsx_xxsldwi_<mode>): Likewise.
25795         (vsx_xscvdpspn): Tighten constraints to only use register classes
25796         the types use.
25797         (vsx_xscvspdpn): Likewise.
25798         (vsx_xscvdpspn_scalar): Likewise.
25800         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
25801         wj, and wk constraints.
25802         (GPR_REG_CLASS_P): New helper macro for register classes targeting
25803         general purpose registers.
25805         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
25806         direct moves.
25807         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
25808         DImode instead of wm.  Use wk constraint for direct move of DFmode
25809         instead of wm.
25810         (extendsidi2_lfiwax): Likewise.
25811         (lfiwax): Likewise.
25812         (lfiwzx): Likewise.
25813         (movdi_internal64): Likewise.
25815         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
25816         wk constraints. Make the wy constraint documentation match them
25817         implementation.
25819 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
25821         Replacement of isl_int by isl_val
25822         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
25823         (compute_bounds_for_param): use isl_val instead of isl_int
25824         (compute_bounds_for_loop): likewise
25825         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
25826         (build_linearized_memory_access): use isl_val instead of isl_int
25827         (pdr_stride_in_loop): likewise
25828         * graphite-optimize-isl.c:
25829         (getPrevectorMap): use isl_val instead of isl_int
25830         * graphite-poly.c:
25831         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
25832         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
25833         (extern the_isl_ctx): declare
25834         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
25835         (extract_affine_gmp): likewise
25836         (wrap): likewise
25837         (build_loop_iteration_domains): likewise
25838         (add_param_constraints): likewise
25840 2014-08-11  Richard Biener  <rguenther@suse.de>
25842         PR tree-optimization/62075
25843         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
25844         handle uses in patterns.
25846 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25847             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25848             Anna Tikhonova  <anna.tikhonova@intel.com>
25849             Ilya Tocar  <ilya.tocar@intel.com>
25850             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25851             Ilya Verbin  <ilya.verbin@intel.com>
25852             Kirill Yukhin  <kirill.yukhin@intel.com>
25853             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25855         * common/config/i386/i386-common.c
25856         (OPTION_MASK_ISA_AVX512VL_SET): Define.
25857         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
25858         (ix86_handle_option): Handle OPT_mavx512vl.
25859         * config/i386/cpuid.h (bit_AVX512VL): Define.
25860         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
25861         set -mavx512vl accordingly.
25862         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25863         OPTION_MASK_ISA_AVX512VL.
25864         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
25865         (ix86_option_override_internal): Define PTA_AVX512VL, handle
25866         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
25867         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
25868         * config/i386/i386.h (TARGET_AVX512VL): Define.
25869         (TARGET_AVX512VL_P(x)): Ditto.
25870         * config/i386/i386.opt: Add mavx512vl.
25872 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
25874         PR tree-optimization/62073
25875         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
25876         a basic block.
25878 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25879             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25880             Anna Tikhonova  <anna.tikhonova@intel.com>
25881             Ilya Tocar  <ilya.tocar@intel.com>
25882             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25883             Ilya Verbin  <ilya.verbin@intel.com>
25884             Kirill Yukhin  <kirill.yukhin@intel.com>
25885             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25887         * common/config/i386/i386-common.c
25888         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
25889         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
25890         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
25891         (ix86_handle_option): Handle OPT_mavx512bw.
25892         * config/i386/cpuid.h (bit_AVX512BW): Define.
25893         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
25894         set -mavx512bw accordingly.
25895         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25896         OPTION_MASK_ISA_AVX512BW.
25897         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
25898         (ix86_option_override_internal): Define PTA_AVX512BW, handle
25899         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
25900         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
25901         * config/i386/i386.h (TARGET_AVX512BW): Define.
25902         (TARGET_AVX512BW_P(x)): Ditto.
25903         * config/i386/i386.opt: Add mavx512bw.
25905 2014-08-11  Richard Biener  <rguenther@suse.de>
25907         PR tree-optimization/62070
25908         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
25909         Remove SSA checking.
25911 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
25913         * asan.c (asan_check_flags): New enum.
25914         (build_check_stmt_with_calls): Removed function.
25915         (build_check_stmt): Split inlining logic to
25916         asan_expand_check_ifn.
25917         (instrument_derefs): Rename parameter.
25918         (instrument_mem_region_access): Rename parameter.
25919         (instrument_strlen_call): Likewise.
25920         (asan_expand_check_ifn): New function.
25921         (asan_instrument): Remove old code.
25922         (pass_sanopt::execute): Change handling of
25923         asan-instrumentation-with-call-threshold.
25924         (asan_clear_shadow): Fix formatting.
25925         (asan_function_start): Likewise.
25926         (asan_emit_stack_protection): Likewise.
25927         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
25928         Update description.
25929         * internal-fn.c (expand_ASAN_CHECK): New function.
25930         * internal-fn.def (ASAN_CHECK): New internal function.
25931         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
25932         Update description.
25933         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
25934         * tree.c: Small comment fix.
25936 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
25938         * gimple.c (gimple_call_fnspec): Support internal functions.
25939         (gimple_call_return_flags): Use const.
25940         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
25941         * internal-fn.def: Add fnspec information.
25942         * internal-fn.h (internal_fn_fnspec): New function.
25943         (init_internal_fns): Declare new function.
25944         * internal-fn.c (internal_fn_fnspec_array): New global variable.
25945         (init_internal_fns): New function.
25946         * tree-core.h: Update macro call.
25947         * tree.c (build_common_builtin_nodes): Initialize internal fns.
25949 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
25951         * lto-streamer.h (struct output_block::symbol): Change from
25952         struct symtab_node to plain symtab_node.
25953         (referenced_from_this_partition_p): Change first parameter
25954         from struct symtab_node to plain symtab_node.
25956 2014-08-10  Marek Polacek  <polacek@redhat.com>
25958         PR c/51849
25959         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
25961 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
25963         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
25964         DECL correctly; do not give up on types in static storage.
25966 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
25968         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
25970 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
25972         * graphite-isl-ast-to-gimple.c:
25973         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
25975         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
25977 2014-08-08  Guozhi Wei  <carrot@google.com>
25979         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
25981 2014-08-08  Cary Coutant  <ccoutant@google.com>
25983         * dwarf2out.c (get_skeleton_type_unit): Remove.
25984         (output_skeleton_debug_sections): Remove skeleton type units.
25985         (output_comdat_type_unit): Likewise.
25986         (dwarf2out_finish): Likewise.
25988 2014-08-07  Yi Yang  <ahyangyi@google.com>
25990         * predict.c (expr_expected_value_1): Remove the redundant assignment.
25992 2014-08-08  Richard Biener  <rguenther@suse.de>
25994         * lto-streamer.h (struct lto_input_block): Make it a class
25995         with a constructor.
25996         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
25997         (struct lto_function_header, struct lto_simple_header,
25998         struct lto_simple_header_with_strings,
25999         struct lto_decl_header, struct lto_function_header): Make
26000         a simple inheritance hieararchy.  Remove unused fields.
26001         (struct lto_asm_header): Remove.
26002         * lto-streamer-out.c (produce_asm): Adjust.
26003         (lto_output_toplevel_asms): Likewise.
26004         (produce_asm_for_decls): Likewise.
26005         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
26006         * data-streamer-in.c (string_for_index): Likewise.
26007         * ipa-inline-analysis.c (inline_read_section): Likewise.
26008         * ipa-prop.c (ipa_prop_read_section): Likewise.
26009         (read_replacements_section): Likewise.
26010         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26011         * lto-section-in.c (lto_create_simple_input_block): Likewise.
26012         (lto_destroy_simple_input_block): Likewise.
26013         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
26014         (lto_input_toplevel_asms): Likewise.
26016 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26017             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26018             Anna Tikhonova  <anna.tikhonova@intel.com>
26019             Ilya Tocar  <ilya.tocar@intel.com>
26020             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26021             Ilya Verbin  <ilya.verbin@intel.com>
26022             Kirill Yukhin  <kirill.yukhin@intel.com>
26023             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26025         * common/config/i386/i386-common.c
26026         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
26027         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
26028         (ix86_handle_option): Handle OPT_mavx512dq.
26029         * config/i386/cpuid.h (bit_AVX512DQ): Define.
26030         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
26031         set -mavx512dq accordingly.
26032         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26033         OPTION_MASK_ISA_AVX512DQ.
26034         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
26035         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
26036         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
26037         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
26038         * config/i386/i386.h (TARGET_AVX512DQ): Define.
26039         (TARGET_AVX512DQ_P(x)): Ditto.
26040         * config/i386/i386.opt: Add mavx512dq.
26042 2014-08-08  Richard Biener  <rguenther@suse.de>
26044         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
26045         target_percent, target_percent_s): Export.
26046         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
26047         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
26048         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
26049         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
26050         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
26051         Move to gimple-fold.c.
26052         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
26053         strcat and strcpy.
26054         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
26055         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
26056         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
26057         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
26058         (rewrite_call_expr_array): Remove.
26059         (fold_builtin_sprintf_chk): Likewise.
26060         (fold_builtin_snprintf_chk): Likewise.
26061         (fold_builtin_varargs): Remove handling of sprintf_chk,
26062         vsprintf_chk, snprintf_chk and vsnprintf_chk.
26063         (gimple_fold_builtin_sprintf_chk): Remove.
26064         (gimple_fold_builtin_snprintf_chk): Likewise.
26065         (gimple_fold_builtin_varargs): Likewise.
26066         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
26067         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
26068         * gimple.c (gimple_seq_add_seq_without_update): New function.
26069         * gimple.h (gimple_seq_add_seq_without_update): Declare.
26070         * gimple-fold.c: Include output.h.
26071         (gsi_replace_with_seq_vops): New function, split out from ...
26072         (gimplify_and_update_call_from_tree): ... here.
26073         (replace_call_with_value): New function.
26074         (replace_call_with_call_and_fold): Likewise.
26075         (var_decl_component_p): Moved from builtins.c.
26076         (gimple_fold_builtin_memory_op): Moved from builtins.c
26077         fold_builtin_memory_op and rewritten to GIMPLE.
26078         (gimple_fold_builtin_memset): Likewise.
26079         (gimple_fold_builtin_strcpy): Likewise.
26080         (gimple_fold_builtin_strncpy): Likewise.
26081         (gimple_fold_builtin_strcat): Likewise.
26082         (gimple_fold_builtin_fputs): Likewise.
26083         (gimple_fold_builtin_memory_chk): Likewise.
26084         (gimple_fold_builtin_stxcpy_chk): Likewise.
26085         (gimple_fold_builtin_stxncpy_chk): Likewise.
26086         (gimple_fold_builtin_snprintf_chk): Likewise.
26087         (gimple_fold_builtin_sprintf_chk): Likewise.
26088         (gimple_fold_builtin_strlen): New function.
26089         (gimple_fold_builtin_with_strlen): New function split out from
26090         gimple_fold_builtin.
26091         (gimple_fold_builtin): Change signature and handle
26092         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
26093         here.  Call gimple_fold_builtin_with_strlen.
26094         (gimple_fold_call): Adjust.
26096 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
26098         * calls.c (precompute_arguments): Check
26099         promoted_for_signed_and_unsigned_p and set the promoted mode.
26100         (promoted_for_signed_and_unsigned_p): New function.
26101         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
26102         and set the promoted mode.
26103         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
26104         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
26105         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
26108 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
26110         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
26111         instead of SUBREG_PROMOTED_UNSIGNED_SET.
26112         (expand_call): Likewise.
26113         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
26114         to get promoted mode.
26115         * combine.c (record_promoted_value): Skip > 0 comparison with
26116         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
26117         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
26118         of SUBREG_PROMOTED_UNSIGNED_P.
26119         (convert_modes): Likewise.
26120         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
26121         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
26122         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
26123         SUBREG_PROMOTED_UNSIGNED_SET.
26124         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
26125         instead of SUBREG_PROMOTED_UNSIGNED_SET.
26126         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
26127         SUBREG_PROMOTED_SET.
26128         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
26129         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
26130         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
26131         of SUBREG_PROMOTED_UNSIGNED_P.
26132         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
26133         (SUBREG_PROMOTED_SET): New define.
26134         (SUBREG_PROMOTED_GET): Likewise.
26135         (SUBREG_PROMOTED_SIGN): Likewise.
26136         (SUBREG_PROMOTED_SIGNED_P): Likewise.
26137         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
26138         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
26139         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
26140         instead of SUBREG_PROMOTED_UNSIGNED_GET.
26141         (nonzero_bits1): Skip > 0 comparison with the results as
26142         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
26143         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
26144         of !SUBREG_PROMOTED_UNSIGNED_P.
26145         * simplify-rtx.c (simplify_unary_operation_1): Use new
26146         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
26147         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
26148         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
26149         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
26151 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
26153         * ipa-devirt.c: Include gimple-pretty-print.h
26154         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
26155         further tests.
26156         (decl_maybe_in_construction_p): Fix conditional on cdtor check
26157         (get_polymorphic_call_info): Fix return value
26158         (type_change_info): New sturcture based on ipa-prop
26159         variant.
26160         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
26161         based on ipa-prop variant.
26162         (extr_type_from_vtbl_ptr_store): New function
26163         based on ipa-prop variant.
26164         (record_known_type): New function.
26165         (check_stmt_for_type_change): New function.
26166         (get_dynamic_type): New function.
26167         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
26168         * tree-ssa-pre.c: ipa-utils.h
26169         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
26170         machinery; sanity check with ipa-prop devirtualization.
26171         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
26172         polymorphic flag.
26174 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
26176         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
26177         * alias.c, cfgexpand.c, cgraphbuild.c,
26178         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
26179         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
26180         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
26181         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
26182         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
26183         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26184         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
26185         dse.c, except.c, gengtype.c, gimple-expr.c,
26186         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
26187         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
26188         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
26189         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
26190         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
26191         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
26192         pointer-set.h.
26193         * pointer-set.c: Remove file.
26194         * pointer-set.h: Remove file.
26196 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26198         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
26199         * config/arm/types.md (f_sels, f_seld): Delete.
26201 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26203         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
26204         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
26205         (aarch64_movdi_<mode>high): Likewise.
26206         (aarch64_mov<mode>high_di): Likewise.
26207         (aarch64_movdi_<mode>low): Likewise.
26208         (aarch64_mov<mode>low_di): Likewise.
26209         (aarch64_movtilow_tilow): Likewise.
26210         Add comment explaining usage of fp,simd attributes and of
26211         TARGET_FLOAT and TARGET_SIMD.
26213 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
26214             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26216         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
26217         Use MOVN when one of the half-words is 0xffff.
26219 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
26221         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
26223 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26225         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
26226         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
26227         (rfs_str): String corresponding to RFS_* constants.
26228         (rank_for_schedule_stats_t): New typedef.
26229         (rank_for_schedule_stats): New static variable.
26230         (rfs_result): New static function.
26231         (rank_for_schedule): Track statistics for deciding heuristics.
26232         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
26233         static functions.
26234         (ready_sort): Use them for debug printouts.
26235         (schedule_block): Init statistics state.  Print statistics on
26236         rank_for_schedule decisions.
26238 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26240         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
26242 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
26244         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
26245         constraint.
26247 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
26249         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
26250         function to not conflict.
26251         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
26252         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
26253         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
26254         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
26255         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
26256         of pointer_map.
26258 2014-08-07  Marek Polacek  <polacek@redhat.com>
26260         * fold-const.c (fold_binary_loc): Add folding of
26261         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
26263 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
26265         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
26266         instead of type size.
26267         (ASM_FINISH_DECLARE_OBJECT): Likewise.
26269 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
26271         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
26272         (*thumb1_movqi_insn): Likewise.
26273         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
26275 2014-08-07  Tom de Vries  <tom@codesourcery.com>
26277         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
26278         (glibc_2_11_or_earlier): Remove effective-target keywords.
26280 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
26282         * config/arm/arm.c (bdesc_2arg): Fix typo.
26283         (arm_atomic_assign_expand_fenv): Remove The default implementation.
26285 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
26287         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
26289 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
26291         PR debug/61923
26292         * haifa-sched.c (advance_one_cycle): Fix dump.
26293         (schedule_block): Don't advance cycle if we are already at the
26294         beginning of the cycle.
26296 2014-08-06  Martin Jambor  <mjambor@suse.cz>
26298         PR ipa/61393
26299         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
26301 2014-08-06  Richard Biener  <rguenther@suse.de>
26303         PR lto/62034
26304         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
26305         SCCs here.
26306         (lto_input_tree): Pop SCCs here.
26308 2014-08-06  Richard Biener  <rguenther@suse.de>
26310         PR tree-optimization/61320
26311         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
26312         handle misaligned loads.
26314 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
26316         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
26317         (aarch64_expand_vec_perm_const): Check for dup before zip.
26319 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26321         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
26322         CONST_INT_P instead of GET_CODE and compare.
26323         (aarch64_select_cc_mode): Likewise.
26324         (aarch64_print_operand): Likewise.
26325         (aarch64_rtx_costs): Likewise.
26326         (aarch64_simd_valid_immediate): Likewise.
26327         (aarch64_simd_check_vect_par_cnst_half): Likewise.
26328         (aarch64_simd_emit_pair_result_insn): Likewise.
26330 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
26332         * gdbhooks.py (find_gcc_source_dir): New helper function.
26333         (class PassNames): New class, locating and parsing passes.def.
26334         (class BreakOnPass): New command "break-on-pass".
26336 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
26338         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
26339         getting olde.
26341 2014-08-05  Richard Biener  <rguenther@suse.de>
26343         PR rtl-optimization/61672
26344         * emit-rtl.h (mem_attrs_eq_p): Declare.
26345         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
26346         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
26347         * cfgcleanup.c (merge_memattrs): Likewise.
26348         Include emit-rtl.h.
26350 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26352         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
26353         rather than singleton vectors.
26354         (vqdmlsls_lane_s32): Likewise.
26356 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26358         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
26359         Use VSDQ_HSI mode iterator.
26360         (aarch64_sqrdmulh_laneq<mode>): Likewise.
26361         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
26362         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
26363         Use BUILTIN_VDQHS macro.
26364         (sqrdmulh_laneq): Likewise.
26365         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
26366         (vqdmlals_laneq_s32): Likewise.
26367         (vqdmlslh_laneq_s16): Likewise.
26368         (vqdmlsls_laneq_s32): Likewise.
26369         (vqdmulhh_laneq_s16): Likewise.
26370         (vqdmulhs_laneq_s32): Likewise.
26371         (vqrdmulhh_laneq_s16): Likewise.
26372         (vqrdmulhs_laneq_s32): Likewise.
26374 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26376         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
26377         (vmuld_laneq_f64): Likewise.
26378         (vmuls_laneq_f32): Likewise.
26379         (vmul_n_f64): Likewise.
26380         (vmuld_lane_f64): Reimplement in C.
26381         (vmuls_lane_f32): Likewise.
26383 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26385         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
26386         to reservation.
26387         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
26389 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26391         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
26392         (rbitsi2): Likewise.
26393         (*arm_rev): Set predicable and predicable_short_it attributes.
26395 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26397         * convert.c (convert_to_integer): Guard transformation to lrint by
26398         -fno-math-errno.
26400 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
26402         * config/aarch64/aarch64-builtins.c
26403         (aarch64_simd_builtin_type_mode): Delete.
26404         (v8qi_UP): Remap to V8QImode.
26405         (v4hi_UP): Remap to V4HImode.
26406         (v2si_UP): Remap to V2SImode.
26407         (v2sf_UP): Remap to V2SFmode.
26408         (v1df_UP): Remap to V1DFmode.
26409         (di_UP): Remap to DImode.
26410         (df_UP): Remap to DFmode.
26411         (v16qi_UP):V16QImode.
26412         (v8hi_UP): Remap to V8HImode.
26413         (v4si_UP): Remap to V4SImode.
26414         (v4sf_UP): Remap to V4SFmode.
26415         (v2di_UP): Remap to V2DImode.
26416         (v2df_UP): Remap to V2DFmode.
26417         (ti_UP): Remap to TImode.
26418         (ei_UP): Remap to EImode.
26419         (oi_UP): Remap to OImode.
26420         (ci_UP): Map to CImode.
26421         (xi_UP): Remap to XImode.
26422         (si_UP): Remap to SImode.
26423         (sf_UP): Remap to SFmode.
26424         (hi_UP): Remap to HImode.
26425         (qi_UP): Remap to QImode.
26426         (aarch64_simd_builtin_datum): Make mode a machine_mode.
26427         (VAR1): Build builtin name.
26428         (aarch64_init_simd_builtins): Remove dead code.
26430 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
26432         * graphite-isl-ast-to-gimple.c:
26433         (set_options): New function.
26434         (scop_to_isl_ast): Add calling of set_options.
26436 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
26438         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
26439         (analyze_iv_to_split_insn): Don't initialize them.
26440         (get_ivts_expr): Removed.
26441         (allocate_basic_variable, insert_base_initialization): Use
26442         SET_SRC instead of *get_ivts_expr.
26443         (split_iv): Use &SET_SRC instead of get_ivts_expr.
26445 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
26447         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
26448         (translate_isl_ast_for_loop): Add checking of the
26449         flag_loop_parallelize_all.
26450         (ast_build_before_for): New function.
26451         (scop_to_isl_ast): Add checking of the
26452         flag_loop_parallelize_all.
26453         * graphite-dependences.c: Move the defenition of the
26454         scop_get_dependences from graphite-optimize-isl.c to this file.
26455         (apply_schedule_on_deps): Add checking of the ux's emptiness.
26456         (carries_deps): Add checking of the x's value.
26457         * graphite-optimize-isl.c: Move the defenition of the
26458         scop_get_dependences to graphite-dependences.c.
26459         * graphite-poly.h: Add declarations of scop_get_dependences
26460         and carries_deps.
26462 2014-08-04  Rohit  <rohitarulraj@freescale.com>
26464         PR target/60102
26465         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
26466         names.
26467         (alt_reg_names): Likewise.
26468         (rs6000_dwarf_register_span): For SPE high registers, replace
26469         dwarf register numbers with GCC hard register numbers.
26470         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
26471         (rs6000_dbx_register_number): For SPE high registers, return dwarf
26472         register number for the corresponding GCC hard register number.
26473         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
26474         newly added GCC hard register numbers for SPE high registers.
26475         (DWARF_FRAME_REGISTERS):  Likewise.
26476         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
26477         (DWARF_FRAME_REGNUM): Likewise.
26478         (FIXED_REGISTERS): Likewise.
26479         (CALL_USED_REGISTERS): Likewise.
26480         (CALL_REALLY_USED_REGISTERS): Likewise.
26481         (REG_ALLOC_ORDER): Likewise.
26482         (enum reg_class): Likewise.
26483         (REG_CLASS_NAMES): Likewise.
26484         (REG_CLASS_CONTENTS): Likewise.
26485         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
26487 2014-08-04  Richard Biener  <rguenther@suse.de>
26489         * gimple-fold.h (gimple_fold_builtin): Remove.
26490         * gimple-fold.c (gimple_fold_builtin): Make static.
26491         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
26492         fold_stmt, not gimple_fold_builtin.
26494 2014-08-04  Martin Liska <mliska@suse.cz>
26496         * cgraph.h (csi_end_p): Removed.
26497         (csi_next): Likewise.
26498         (csi_node): Likewise.
26499         (csi_start): Likewise.
26500         (cgraph_node_in_set_p): Likewise.
26501         (cgraph_node_set_size): Likewise.
26502         (vsi_end_p): Likewise.
26503         (vsi_next): Likewise.
26504         (vsi_node): Likewise.
26505         (vsi_start): Likewise.
26506         (varpool_node_set_size): Likewise.
26507         (cgraph_node_set_nonempty_p): Likewise.
26508         (varpool_node_set_nonempty_p): Likewise.
26509         * cgraphunit.c (cgraph_process_new_functions): vec replaces
26510         cgraph_node_set.
26511         * ipa-inline-transform.c: Likewise.
26512         * ipa-utils.c (cgraph_node_set_new): Removed.
26513         (cgraph_node_set_add): Likewise.
26514         (cgraph_node_set_remove): Likewise.
26515         (cgraph_node_set_find): Likewise.
26516         (dump_cgraph_node_set): Likewise.
26517         (debug_cgraph_node_set): Likewise.
26518         (free_cgraph_node_set): Likewise.
26519         (varpool_node_set_new): Likewise.
26520         (varpool_node_set_add): Likewise.
26521         (varpool_node_set_remove): Likewise.
26522         (varpool_node_set_find): Likewise.
26523         (dump_varpool_node_set): Likewise.
26524         (free_varpool_node_set): Likewise.
26525         (debug_varpool_node_set): Likewise.
26526         * tree-emutls.c (struct tls_var_data):
26527         (emutls_index): Removed.
26528         (emutls_decl): Likewise.
26529         (gen_emutls_addr): Function implementation uses newly added
26530         hash_map<varpool_node *, tls_var_data>.
26531         (clear_access_vars): Likewise.
26532         (create_emultls_var): Likewise.
26533         (ipa_lower_emutls): Likewise.
26534         (reset_access): New function.
26536 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26538         * config/i386/i386.c (ix86_option_override_internal): Add
26539         PTA_RDRND and PTA_MOVBE for bdver4.
26541 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26542             James Greenhalgh  <james.greenhalgh@arm.com>
26544         * doc/md.texi (clrsb): Document.
26545         (clz): Change reference to x into operand 1.
26546         (ctz): Likewise.
26547         (popcount): Likewise.
26549 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26551         PR target/61713
26552         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
26553         move to subtarget in serial version if result is ignored.
26555 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26556             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26558         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
26559         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
26560         (sched_analyze_insn): Update use of try_group_insn to
26561         sched_macro_fuse_insns.
26562         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
26563         arguments that are not conditional jumps.
26565 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26567         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
26568         family information. Handle BTVER2 cpu with cpuid family value.
26570 2014-08-04  Tom de Vries  <tom@codesourcery.com>
26572         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
26573         (glibc_2_11_or_earlier): Document effective-target keywords.
26575 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
26577         * ipa-devirt.c (odr_type_warn_count): Add type.
26578         (possible_polymorphic_call_targets): Set it.
26579         (ipa_devirt): Use it.
26581 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
26583         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
26584         Document.
26585         * ipa-devirt.c: Include hash-map.h
26586         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
26587         (clear_speculation): Break out of ...
26588         (get_class_context): ... here; speed up handling obviously useless
26589         speculations.
26590         (odr_type_warn_count, decl_warn_count): New structures.
26591         (final_warning_record): New structure.
26592         (final_warning_records): New static variable.
26593         (possible_polymorphic_call_targets): Cleanup handling of
26594         speculative info; do not build speculation when user do not care;
26595         record info about warnings when asked for.
26596         (add_decl_warning): New function.
26597         (type_warning_cmp): New function.
26598         (decl_warning_cmp): New function.
26599         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
26600         (gate): Enable pass when warnings are requested.
26601         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
26602         options.
26604 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
26606         * hash-map.h (default_hashmap_traits::mark_key_deleted):
26607         Fix cast.
26608         (hash_map::remove): New method.
26609         (hash_map::traverse): New method.
26610         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
26611         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
26612         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
26613         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
26614         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
26615         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
26616         pointer_map.
26618 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
26620         * hash-set.h: new File.
26621         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
26622         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
26623         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
26624         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
26625         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
26626         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
26627         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
26628         varpool.c: Use hash_set instead of pointer_set.
26630 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
26632         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
26634 2014-08-01  Jiong Wang <jiong.wang@arm.com>
26636         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
26637         for frame access when strict_p is false.
26639 2014-08-01  Renlin Li <renlin.li@arm.com>
26640 2014-08-01  Jiong Wang <jiong.wang@arm.com>
26642         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
26643         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
26644         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
26645         Declaration.
26646         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
26647         predicate.
26648         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
26649         aarch64_mem_pair_offset.
26651 2014-08-01  Jiong Wang <jiong.wang@arm.com>
26653         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
26654         offset.
26655         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
26656         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
26658 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
26660         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
26662 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
26664         PR regression/61510
26665         * cgraphunit.c (analyze_functions): Use get_create rather than get
26666         for decls which are clones of abstract functions.
26668 2014-08-01  Martin Liska  <mliska@suse.cz>
26670         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
26671         * ipa-prop.h (count_formal_params): Global function created from static.
26672         * ipa-prop.c (count_formal_params): Likewise.
26673         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
26674         profiles for semantically equivalent functions.
26675         * passes.c (do_per_function): If we load body of a function
26676         during WPA, this condition should behave same.
26677         * varpool.c (ctor_for_folding): More tolerant assert for variable
26678         aliases created during WPA.
26680 2014-08-01  Martin Liska  <mliska@suse.cz>
26682         * doc/invoke.texi (Options That Control Optimization): Documentation
26683         for -foptimize-strlen introduced. Optimization levels default options
26684         fixed.
26686 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
26688         * opts.c (common_handle_option): Handle -fsanitize=alignment.
26689         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
26690         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
26691         type to bool.
26692         * stor-layout.h (min_align_of_type): New prototype.
26693         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
26694         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
26695         check.
26696         * ubsan.c: Include builtins.h.
26697         (ubsan_expand_bounds_ifn): Change return type to bool,
26698         always return true.
26699         (ubsan_expand_null_ifn): Change return type to bool, change
26700         argument to gimple_stmt_iterator *.  Handle both null and alignment
26701         sanitization, take type from ckind argument's type rather than
26702         first argument.
26703         (instrument_member_call): Removed.
26704         (instrument_mem_ref): Remove t argument, add mem and base arguments.
26705         Handle both null and alignment sanitization, don't say whole
26706         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
26707         call instead of 2 argument.
26708         (instrument_null): Adjust instrument_mem_ref caller.  Don't
26709         instrument calls here.
26710         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
26711         like SANITIZE_NULL.
26712         * stor-layout.c (min_align_of_type): New function.
26713         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
26714         Or it into SANITIZE_UNDEFINED.
26715         * doc/invoke.texi (-fsanitize=alignment): Document.
26717 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26719         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
26721 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26723         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
26724         inchash.
26725         (vn_reference_compute_hash): Dito.
26726         (vn_nary_op_compute_hash): Dito.
26727         (vn_phi_compute_hash): Dito.
26728         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
26730 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26732         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
26733         Rename to inchash:add_expr_commutative. Convert to inchash.
26734         (iterative_hash_hashable_expr): Rename to
26735         inchash:add_hashable_expr. Convert to inchash.
26736         (avail_expr_hash): Dito.
26738 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26740         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
26741         Convert to inchash.
26743 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26745         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
26747 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26749         * Makefile.in (OBJS): Add rtlhash.o
26750         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
26751         (loc_checksum): Dito.
26752         (loc_checksum_ordered): Dito.
26753         (hash_loc_operands): Dito.
26754         (hash_locs): Dito.
26755         (hash_loc_list): Dito.
26756         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
26757         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
26758         * rtlhash.c: New file.
26759         * rtlhash.h: New file.
26761 2014-07-31  Andi Kleen  <ak@linux.intel.com>
26763         * inchash.h (inchash): Change inchash class to namespace.
26764         (class hash): ... Rename from inchash.
26765         (add_object): Move from macro to class template.
26766         * lto-streamer-out.c (hash_tree): Change inchash
26767         to inchash::hash.
26768         * tree.c (build_type_attribute_qual_variant): Dito.
26769         (type_hash_list): Dito.
26770         (attribute_hash_list): Dito.
26771         (iterative_hstate_expr): Rename to inchash::add_expr
26772         (build_range_type_1): Change inchash to inchash::hash
26773         and use hash::add_expr.
26774         (build_array_type_1): Dito.
26775         (build_function_type): Dito
26776         (build_method_type_directly): Dito.
26777         (build_offset_type): Dito.
26778         (build_complex_type): Dito.
26779         (make_vector_type): Dito.
26780         * tree.h (iterative_hash_expr): Dito.
26782 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
26784         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
26786 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
26788         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
26789         correct alphabetical position.
26790         (vpaddd_f64): Rewrite using builtins.
26791         (vpaddd_s64): Move to correct alphabetical position.
26792         (vpaddd_u64): New.
26794 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
26796         PR target/61844
26797         * config/sh/sh.c (sh_legitimate_address_p,
26798         sh_legitimize_reload_address): Handle reg+reg address modes when
26799         ALLOW_INDEXED_ADDRESS is false.
26800         * config/sh/predicates.md (general_movsrc_operand,
26801         general_movdst_operand): Likewise.
26803 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
26805         * config/aarch64/aarch64-builtins.c
26806         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
26807         BYTES_BIG_ENDIAN.
26809 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
26811         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
26812         the generated mask based on BYTES_BIG_ENDIAN.
26813         (aarch64_simd_check_vect_par_cnst_half): New.
26814         * config/aarch64/aarch64-protos.h
26815         (aarch64_simd_check_vect_par_cnst_half): New.
26816         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
26817         the check out to aarch64_simd_check_vect_par_cnst_half.
26818         (vect_par_cnst_lo_half): Likewise.
26819         * config/aarch64/aarch64-simd.md
26820         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
26821         (move_hi_quad_<mode>): Always generate a low mask.
26823 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26825         * doc/invoke.texi (AVR Options): Add documentation about
26826         __AVR_DEVICE_NAME__ built-in macro.
26828 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
26830         PR target/61948
26831         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
26832         constraints are satisfied.
26833         (<shift>di3_neon): Likewise.
26835 2014-07-31  Richard Biener  <rguenther@suse.de>
26837         PR tree-optimization/61964
26838         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
26839         by structural equality.
26841 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
26843         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
26844         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
26845         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
26846         New enums.
26847         * gcc.c (sanitize_spec_function): Support new option.
26848         (SANITIZER_SPEC): Remove now redundant check.
26849         * opts.c (common_handle_option): Support new option.
26850         (finish_options): Check for incompatibilities.
26851         * toplev.c (process_options): Split userspace-specific checks.
26853 2014-07-31  Richard Biener  <rguenther@suse.de>
26855         * lto-streamer.h (struct output_block): Remove global.
26856         (struct data_in): Remove labels, num_named_labels and
26857         num_unnamed_labels.
26858         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
26859         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
26861 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
26863         PR c++/60517
26864         * common.opt (-Wreturn-local-addr): Moved from c.opt.
26865         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
26866         (isolate_path): New argument to avoid inserting a trap.
26867         (find_implicit_erroneous_behaviour): Handle returning the address
26868         of a local variable.
26869         (find_explicit_erroneous_behaviour): Likewise.
26871 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
26873         PR lto/61868
26874         * toplev.c (init_random_seed): Move piece of code never called to
26875         set_random_seed.
26876         (set_random_seed): see above.
26878 2014-07-31  Tom de Vries  <tom@codesourcery.com>
26880         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
26882 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
26884         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
26885         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
26887 2014-07-31  Richard Biener  <rguenther@suse.de>
26889         * data-streamer.h (streamer_write_data_stream): Declare here,
26890         renamed from ...
26891         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
26892         * lto-cgraph.c (lto_output_node): Adjust.
26893         (lto_output_varpool_node): Likewise.
26894         * data-streamer-out.c (streamer_string_index): Likewise.
26895         (streamer_write_data_stream, lto_append_block): Move from ...
26896         * lto-section-out.c (lto_output_data_stream,
26897         lto_append_block): ... here.
26899 2014-07-30  Mike Stump  <mikestump@comcast.net>
26901         * configure.ac: Also check for popen.
26902         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
26903         * configure: Regenerate.
26904         * config.in:  Regenerate.
26906 2014-07-30  Martin Jambor  <mjambor@suse.cz>
26908         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
26909         parameter to gimple.
26911 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26913         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
26914         address as second parameter to __tpf_eh_return routine.
26916 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
26918         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
26919         Thumb2.
26921 2014-07-30  Tom Tromey  <tromey@redhat.com>
26923         PR c/59855
26924         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
26925         * doc/extend.texi (Type Attributes): Document designated_init
26926         attribute.
26928 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
26930         * graphite-isl-ast-to-gimple.c:
26931         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
26932         (gcc_expression_from_isl_expression): Pass type to
26933         gcc_expression_from_isl_ast_expr_id.
26935 2014-07-30  Richard Biener  <rguenther@suse.de>
26937         * lto-streamer.h (lto_write_data): New function.
26938         * langhooks.c (lhd_append_data): Do not free block.
26939         * lto-section-out.c (lto_write_data): New function writing
26940         raw data to the current section.
26941         (lto_write_stream): Adjust for langhook semantic change.
26942         (lto_destroy_simple_output_block): Write header directly.
26943         * lto-opts.c (lto_write_options): Write options directly.
26944         * lto-streamer-out.c (produce_asm): Write heaeder directly.
26945         (lto_output_toplevel_asms): Likewise.
26946         (copy_function_or_variable): Copy data directly.
26947         (write_global_references): Output index table directly.
26948         (lto_output_decl_state_refs): Likewise.
26949         (write_symbol): Write data directly.
26950         (produce_symtab): Adjust.
26951         (produce_asm_for_decls): Output header and refs directly.
26953 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
26955         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
26956         to speculative_targets
26957         (get_class_context): Fix handling of contextes without outer type;
26958         avoid matching non-polymorphic types in LTO.
26959         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
26960         parameter to speculative_targetsp; handle speculation.
26961         (dump_possible_polymorphic_call_targets): Update dumping.
26963 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
26965         * common.opt (Wodr): Enable by default.
26967 2014-07-29  Olivier Hainque  <hainque@adacore.com>
26969         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
26971 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
26973         PR bootstrap/61914
26974         * gengtype.c (strtoken): New function.
26975         (create_user_defined_type): Replace strtok with strtoken.
26977 2014-07-29  Nathan Sidwell  <nathan@acm.org>
26979         * gcov-io.c (gcov_var): Make hidden.
26980         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
26981         (gcov_do_dump): Declare.
26982         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
26984 2014-07-29  Martin Jambor  <mjambor@suse.cz>
26986         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
26987         parameter to gimple.
26988         (sra_modify_assign): Likewise.
26990 2014-07-29  Richard Biener  <rguenther@suse.de>
26992         PR middle-end/52478
26993         * expr.c (expand_expr_real_2): Revert last change.
26995 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
26997         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
26998         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
26999         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
27000         call.
27001         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
27002         (contains_type_p): Forward declare.
27003         (polymorphic_call_target_hasher::hash): Hash speculative info.
27004         (polymorphic_call_target_hasher::equal): Compare speculative info.
27005         (get_class_context): Handle speuclation.
27006         (contains_type_p): Update.
27007         (get_polymorphic_call_info_for_decl): Update.
27008         (walk_ssa_copies): Break out from ...
27009         (get_polymorphic_call_info): ... here; set speculative context
27010         before giving up.
27011         * ipa-prop.c (ipa_write_indirect_edge_info,
27012         ipa_read_indirect_edge_info): Stream speculative context.
27013         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
27014         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
27015         SPECULATIVE_MAYBE_DERIVED_TYPE).
27016         (possible_polymorphic_call_targets overriders): Update.
27017         (dump_possible_polymorphic_call_targets overriders): Update.
27018         (dump_possible_polymorphic_call_target_p overriders): Update.
27020 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
27022         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
27023         ipa-devirt path; fix thinko there.
27025 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
27027         * config/i386/i386.c (ix86_return_in_memory): Replace one
27028         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
27030 2014-07-28  Marek Polacek  <polacek@redhat.com>
27032         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
27034 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
27036         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
27037         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
27038         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
27039         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27040         (USE_LD_AS_NEEDED): Likewise.
27041         (ASM_APP_ON): Likewise.
27042         (ASM_APP_OFF): Likewise.
27043         (TARGET_POSIX_IO): Likewise.
27044         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
27045         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27046         (USE_LD_AS_NEEDED): Likewise.
27047         (ASM_APP_ON): Likewise.
27048         (ASM_APP_OFF): Likewise.
27049         (TARGET_POSIX_IO): Likewise.
27051 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
27053         PR middle-end/61734
27054         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
27055         operators other than the equality operators.
27057 2014-07-28  Richard Biener  <rguenther@suse.de>
27059         PR middle-end/52478
27060         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
27061         sure to register SImode ones, not only >= word_mode ones.
27062         * expr.c (expand_expr_real_2): When expanding -ftrapv
27063         binops do not use OPTAB_LIB_WIDEN.
27065 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
27067         PR middle-end/61919
27068         * tree-outof-ssa.c (insert_partition_copy_on_edge)
27069         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
27070         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
27071         inserting them in the insn stream.
27073 2014-07-28  Marek Polacek  <polacek@redhat.com>
27075         PR middle-end/61913
27076         * common.opt (Wodr): Add Var.
27078 2014-07-28  Richard Biener  <rguenther@suse.de>
27080         PR tree-optimization/61921
27081         * tree-ssa-structalias.c (create_variable_info_for_1): Check
27082         if there is a varpool node before dereferencing it.
27084 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
27086         * graphite-sese-to-poly.c:
27087         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
27088         id of the pbb), which contains pointer to the pbb1.
27090         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
27092 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
27094         * graphite-isl-ast-to-gimple.c:
27095         (graphite_create_new_guard): New function.
27096         (translate_isl_ast_node_if): New function.
27097         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
27099         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
27101 2014-07-27  Anthony Green  <green@moxielogic.com>
27103         * config.gcc: Add moxie-*-moxiebox* configuration.
27104         * config/moxie/moxiebox.h: New file.
27106 2014-07-26  Andrew Pinski  <apinski@cavium.com>
27108         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
27109         from the read only register.
27111 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
27113         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
27114         as the allocation class if it isn't likely to be spilled.
27116 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
27118         * rtl.h (tls_referenced_p): Declare.
27119         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
27120         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
27121         (mips_cannot_force_const_mem): Use tls_referenced_p.
27122         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
27123         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
27124         instead of pa_tls_referenced_p.
27125         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
27126         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
27127         (pa_legitimate_constant_p): Likewise.
27128         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
27129         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
27130         (rs6000_cannot_force_const_mem, rs6000_emit_move)
27131         (rs6000_address_for_altivec): Use tls_referenced_p instead of
27132         rs6000_tls_referenced_p.
27133         (rs6000_tls_symbol_ref_1): Delete.
27135 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
27137         PR target/44551
27138         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27139         Optimize inverse of a VEC_CONCAT.
27141 2014-07-25  Xinliang David Li  <davidxl@google.com>
27143         * params.def: New parameter.
27144         * coverage.c (get_coverage_counts): Check new flag.
27145         (coverage_compute_profile_id): Check new flag.
27146         (coverage_begin_function): Check new flag.
27147         (coverage_end_function): Check new flag.
27148         * value-prof.c (coverage_node_map_initialized_p): New function.
27149         (init_node_map): Populate map with all functions.
27150         * doc/invoke.texi: Document new parameter.
27152 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
27153             Richard Biener <rguenther@suse.de>
27155         * lto-streamer-out.c (struct sccs): Turn to ...
27156         (class DFS): ... this one; refactor the DFS walk so it can
27157         be re-done on per-SCC basis.
27158         (DFS::DFS): New constructor.
27159         (DFS::~DFS): New destructor.
27160         (hash_tree): Add new MAP argument holding in-SCC hash values;
27161         remove POINTER_TYPE hashing hack.
27162         (scc_entry_compare): Rename to ...
27163         (DFS::scc_entry_compare): ... this one.
27164         (hash_scc): Rename to ...
27165         (DFS::hash_scc): ... this one; pass output_block instead
27166         of streamer_cache; work harder to get unique and stable SCC
27167         hashes.
27168         (DFS_write_tree): Rename to ...
27169         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
27170         (lto_output_tree): Update.
27172 2014-07-25  Andi Kleen  <ak@linux.intel.com>
27174         * lto-streamer-out.c (hash_tree): Convert to inchash.
27176 2014-07-25  Andi Kleen  <ak@linux.intel.com>
27178         * tree.c (build_type_attribute_qual_variant): Use inchash.
27179         (type_hash_list): Dito.
27180         (attribute_hash_list): Dito
27181         (iterative_hstate_expr): Dito.
27182         (iterative_hash_expr): Dito.
27183         (build_range_type_1): Dito.
27184         (build_array_type_1): Dito.
27185         (build_function_type): Dito.
27186         (build_method_type_directly): Dito.
27187         (build_offset_type): Dito.
27188         (build_complex_type): Dito.
27189         (make_vector_type): Dito.
27190         * tree.h (iterative_hash_expr): Add compat wrapper.
27191         (iterative_hstate_expr): Add.
27193 2014-07-25  Andi Kleen  <ak@linux.intel.com>
27195         * Makefile.in (OBJS): Add inchash.o.
27196         (PLUGIN_HEADERS): Add inchash.h.
27197         * ipa-devirt.c: Include inchash.h.
27198         * lto-streamer-out.c: Dito.
27199         * tree-ssa-dom.c: Dito.
27200         * tree-ssa-pre.c: Dito.
27201         * tree-ssa-sccvn.c: Dito.
27202         * tree-ssa-tail-merge.c: Dito.
27203         * asan.c: Dito.
27204         * tree.c (iterative_hash_hashval_t): Move to ...
27205         (iterative_hash_host_wide_int): Move to ...
27206         * inchash.c: Here. New file.
27207         * tree.h (iterative_hash_hashval_t): Move to ...
27208         (iterative_hash_host_wide_int): Move to ...
27209         * inchash.h: Here. New file.
27211 2014-07-25  Richard Biener  <rguenther@suse.de>
27213         PR middle-end/61762
27214         PR middle-end/61894
27215         * fold-const.c (native_encode_int): Add and handle offset
27216         parameter to do partial encodings of expr.
27217         (native_encode_fixed): Likewise.
27218         (native_encode_real): Likewise.
27219         (native_encode_complex): Likewise.
27220         (native_encode_vector): Likewise.
27221         (native_encode_string): Likewise.
27222         (native_encode_expr): Likewise.
27223         * fold-const.c (native_encode_expr): Add offset parameter
27224         defaulting to -1.
27225         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
27226         (fold_ctor_reference): Handle all reads from tcc_constant
27227         ctors.
27229 2014-07-25  Richard Biener  <rguenther@suse.de>
27231         * tree-inline.c (estimate_move_cost): Mark speed_p argument
27232         as possibly unused.
27234 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27236         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
27238 2014-07-24  Kyle McMartin  <kyle@redhat.com>
27240         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
27242 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27244         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
27245         Add prototype.
27246         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
27247         function.
27248         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
27249         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
27250         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
27252 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27254         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
27255         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
27256         aggregate types.  Instead, *all* aggregate types, except for single-
27257         element or homogeneous float/vector aggregates, are quadword-aligned
27258         if required by their type alignment.  Issue -Wpsabi note when a type
27259         is now treated differently than before.
27261 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27263         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
27264         does not fit fully into floating-point registers, and there is still
27265         space in the register parameter area, use GPRs to pass those parts
27266         of the argument.  Issue -Wpsabi note if any parameter is now treated
27267         differently than before.
27268         (rs6000_arg_partial_bytes): Update.
27270 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
27272         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
27274 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
27276         * rtl.h (target_rtl): Remove lang_dependent_initialized.
27277         * toplev.c (initialize_rtl): Don't use it.  Move previously
27278         "language-dependent" calls to...
27279         (backend_init): ...here.
27280         (lang_dependent_init_target): Don't set lang_dependent_initialized.
27281         Assert that RTL initialization hasn't happend yet.
27283 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
27285         PR rtl-optimization/61629
27286         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
27287         they have already been initialized.
27289 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
27291         PR middle-end/61268
27292         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
27293         DECL_INCOMING_RTL and entry_parm.
27294         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
27295         * calls.c (load_register_parameters): Likewise argument values.
27296         (emit_library_call_value_1, store_one_arg): Likewise argument
27297         save areas.
27298         * config/i386/i386.c (assign_386_stack_local): Likewise the local
27299         stack slot.
27300         * explow.c (validize_mem): Modify the argument in-place.
27302 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
27304         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
27305         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
27307 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
27309         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
27310         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
27312 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
27314         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
27315         (aarch64_save_callee_saves): New parameter "skip_wb".
27316         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
27318 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
27320         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
27321         "wb_candidate2".
27322         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
27324 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
27326         * graphite-isl-ast-to-gimple.c:
27327         (graphite_create_new_loop): Add calling of isl_id_free to properly
27328         decrement reference counts.
27330         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
27332 2014-07-24  Martin Liska  <mliska@suse.cz>
27333         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
27334         function used.
27335         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
27336         (rs6000_code_end): Likewise.
27338 2014-07-24  Martin Liska  <mliska@suse.cz>
27340         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
27341         symtab_node funtion used.
27342         (rs6000_xcoff_declare_object_name): Likewise.
27344 2014-07-24  Martin Liska  <mliska@suse.cz>
27346         * cgraphunit.c (compile): Correct function used.
27348 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
27350         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
27351         as non-indexable.
27353 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
27355         PR lto/61802
27356         * varasm.c (bss_initializer_p): Handle offlined ctors.
27357         (align_variable, get_variable_align): Likewise.
27358         (make_decl_one_only): Likewise.
27359         (default_binds_local_p_1): Likewise.
27360         (decl_binds_to_current_def_p): Likewise.
27361         (get_variable_section): Get constructor if it is offlined.
27362         (assemble_variable_contents): Sanity check that the caller
27363         streamed in the ctor in LTO.
27365 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
27367         * graphite-isl-ast-to-gimple.c:
27368         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
27369         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
27370         isl_ast_op_pdiv_r to the different case.
27372         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
27374 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27376         PR middle-end/61876
27377         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
27378         when flag_errno_math is on.
27380 2014-07-24  Martin Liska  <mliska@suse.cz>
27382         * cgraph.h (varpool_node):
27383         (availability get_availability (void)):
27384         created from cgraph_variable_initializer_availability
27385         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
27386         created from: cgraph_variable_initializer_availability
27387         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
27388         (void finalize_named_section_flags (void)):
27389         created from varpool_finalize_named_section_flags
27390         (bool assemble_decl (void)): created from varpool_assemble_decl
27391         (void analyze (void)): created from varpool_analyze_node
27392         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
27393         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
27394         (void remove_initializer (void)): created from varpool_remove_initializer
27395         (tree get_constructor (void)): created from varpool_get_constructor
27396         (bool externally_visible_p (void)): created from varpool_externally_visible_p
27397         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
27398         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
27399         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
27400         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
27401         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
27402         (static bool output_variables (void)): created from varpool_output_variables
27403         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
27404         created from varpool_extra_name_alias
27405         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
27406         (static void dump_varpool (FILE *f)): created from dump_varpool
27407         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
27408         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
27409         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
27410         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
27411         (void assemble_aliases (void)): created from assemble_aliases
27413 2014-07-24  Martin Liska  <mliska@suse.cz>
27415         * cgraph.h (symtab_node):
27416         (void register_symbol (void)): created from symtab_register_node
27417         (void remove (void)): created from symtab_remove_node
27418         (void dump (FILE *f)): created from dump_symtab_node
27419         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
27420         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
27421         (struct ipa_ref *add_reference (symtab_node *referred_node,
27422         enum ipa_ref_use use_type)): created from add_reference
27423         (struct ipa_ref *add_reference (symtab_node *referred_node,
27424         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
27425         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
27426         gimple stmt)): created from maybe_add_reference
27427         (bool semantically_equivalent_p (symtab_node *target)): created from
27428         symtab_semantically_equivalent_p
27429         (void remove_from_same_comdat_group (void)): created from
27430         remove_from_same_comdat_group
27431         (void add_to_same_comdat_group (symtab_node *old_node)): created from
27432         symtab_add_to_same_comdat_group
27433         (void dissolve_same_comdat_group_list (void)): created from
27434         symtab_dissolve_same_comdat_group_list
27435         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
27436         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
27437         created from symtab_alias_ultimate_target
27438         (inline symtab_node *next_defined_symbol (void)): created from
27439         symtab_next_defined_symbol
27440         (bool resolve_alias (symtab_node *target)): created from
27441         symtab_resolve_alias
27442         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
27443         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
27444         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
27445         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
27446         (void set_section (const char *section)): created from set_section_1
27447         (enum availability get_availability (void)): created from symtab_node_availability
27448         (void make_decl_local (void)): created from symtab_make_decl_local
27449         (bool real_symbol_p (void)): created from symtab_read_node
27450         (can_be_discarded_p (void)): created from symtab_can_be_discarded
27451         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
27452         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
27453         symtab_in_same_comdat_p;
27454         (bool address_taken_from_non_vtable_p (void)): created from
27455         address_taken_from_non_vtable_p
27456         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
27457         (static void dump_table (FILE *)): created from dump_symtab
27458         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
27459         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
27460         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
27461         symtab_used_from_object_file_p
27462         (void dump_base (FILE *)): created from dump_symtab_base
27463         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
27464         (void unregister (void)): created from symtab_unregister_node
27465         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
27466         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
27467         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
27468         symtab_nonoverwritable_alias_1
27469         * cgraph.h (cgraph_node):
27470         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
27471         created from cgraph_remove_node_and_inline_clones
27472         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
27473         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
27474         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
27475         (cgraph_node *function_symbol (enum availability *avail = NULL)):
27476         created from cgraph_function_node
27477         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
27478         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
27479         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
27480         created from cgraph_create_clone
27481         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
27482         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
27483         created from cgraph_create_virtual_clone
27484         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
27485         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
27486         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
27487         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
27488         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
27489         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
27490         created from cgraph_function_version_info
27491         (struct cgraph_function_version_info *insert_new_function_version (void)):
27492         created from insert_new_cgraph_node_version
27493         (struct cgraph_function_version_info *function_version (void)): created from
27494         get_cgraph_node_version
27495         (void analyze (void)): created from analyze_function
27496         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
27497         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
27498         tree real_alias) cgraph_add_thunk
27499         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
27500         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
27501         created from cgraph_function_or_thunk_node
27502         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
27503         created from expand_thunk
27504         (void reset (void)): created from cgraph_reset_node
27505         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
27506         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
27507         (void remove (void)): created from cgraph_remove_node
27508         (void dump (FILE *f)): created from dump_cgraph_node
27509         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
27510         (bool get_body (void)): created from cgraph_get_body
27511         (void release_body (void)): created from cgraph_release_function_body
27512         (void unnest (void)): created from cgraph_unnest_node
27513         (void make_local (void)): created from cgraph_make_node_local
27514         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
27515         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
27516         gcov_type count, int freq)): created from cgraph_create_edge
27517         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
27518         gcov_type count, int freq)): created from cgraph_create_indirect_edge
27519         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
27520         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
27521         created from cgraph_create_edge_including_clones
27522         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
27523         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
27524         (void remove_callers (void)): created from cgraph_node_remove_callers
27525         (void remove_callees (void)): created from cgraph_node_remove_callees
27526         (enum availability get_availability (void)): created from cgraph_function_body_availability
27527         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
27528         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
27529         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
27530         (void call_duplication_hooks (cgraph_node *node2)): created from
27531         cgraph_call_node_duplication_hooks
27532         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
27533         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
27534         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
27535         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
27536         (void call_function_insertion_hooks (void)):
27537         created from cgraph_call_function_insertion_hooks
27538         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
27539         (bool local_p (void)): created from cgraph_local_node
27540         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
27541         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
27542         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
27543         (inline bool only_called_directly_or_aliased_p (void)):
27544         created from cgraph_only_called_directly_or_aliased_p
27545         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
27546         created from cgraph_will_be_removed_from_program_if_no_direct_calls
27547         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
27548         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
27549         (bool can_remove_if_no_direct_calls_p (void)):
27550         created from cgraph_can_remove_if_no_direct_calls_p
27551         (inline bool has_gimple_body_p (void)):
27552         created from cgraph_function_with_gimple_body_p
27553         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
27554         (static void dump_cgraph (FILE *f)): created from dump_cgraph
27555         (static inline void debug_cgraph (void)): created from debug_cgraph
27556         (static void record_function_versions (tree decl1, tree decl2)):
27557         created from record_function_versions
27558         (static void delete_function_version (tree decl)):
27559         created from delete_function_version
27560         (static void add_new_function (tree fndecl, bool lowered)):
27561         created from cgraph_add_new_function
27562         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
27563         (static cgraph_node * create (tree decl)): created from cgraph_create_node
27564         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
27565         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
27566         (static cgraph_node *get_for_asmname (tree asmname)):
27567         created from cgraph_node_for_asm
27568         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
27569         created from cgraph_same_body_alias
27570         (static bool used_from_object_file_p_worker (cgraph_node *node,
27571         void *): new function
27572         (static bool non_local_p (cgraph_node *node, void *)):
27573         created from cgraph_non_local_node_p_1
27574         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
27575         created from verify_cgraph
27576         (static bool make_local (cgraph_node *node, void *)):
27577         created from cgraph_make_node_local
27578         (static cgraph_node *create_alias (tree alias, tree target)):
27579         created from cgraph_create_function_alias
27580         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
27581         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
27582         created from cgraph_create_edge_1
27583         * cgraph.h (varpool_node):
27584         (void remove (void)): created from varpool_remove_node
27585         (void dump (FILE *f)): created from dump_varpool_node
27587 2014-07-24  Richard Biener  <rguenther@suse.de>
27589         PR ipa/61823
27590         * tree-ssa-structalias.c (create_variable_info_for_1):
27591         Use varpool_get_constructor.
27592         (create_variable_info_for): Likewise.
27594 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
27596         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
27597         subtract outgoing area size when restoring stack_pointer_rtx.
27599 2014-07-24  Nick Clifton  <nickc@redhat.com>
27601         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
27602         that operations are taking place in parallel.
27603         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
27605 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
27607         * omp-low.c (extract_omp_for_data): Add missing break statement.
27609 2014-07-24  Richard Biener  <rguenther@suse.de>
27611         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
27612         * tree-inline.c (estimate_move_cost): Add speed_p parameter
27613         and adjust MOVE_RATIO query accordingly.
27614         (estimate_num_insns): Adjust callers.
27615         * ipa-prop.c (ipa_populate_param_decls): Likewise.
27616         * ipa-cp.c (gather_context_independent_values,
27617         estimate_local_effects): Likewise.
27618         * ipa-split.c (consider_split): Likewise.
27620 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
27622         * config/i386/driver-i386.c: Remove names of unused arguments and
27623         unnecessary unused attributes.
27624         * config/i386/host-mingw32.c: Likewise.
27625         * config/i386/i386.c: Likewise.
27626         * config/i386/winnt-stubs.c: Likewise.
27627         * config/i386/winnt.c: Likewise.
27629 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27631         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
27632         (aarch64_gen_loadwb_pair): New helper function.
27633         (aarch64_expand_epilogue): Simplify code using new helper functions.
27634         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
27636 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27638         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
27639         (aarch64_gen_storewb_pair): New helper function.
27640         (aarch64_expand_prologue): Simplify code using new helper functions.
27641         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
27643 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27645         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
27646         Rename to aarch64_save_callee_saves, remove restore code.
27647         (aarch64_restore_callee_saves): New function.
27649 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27651         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
27652         (aarch64_save_callee_saves): New function to handle reg save
27653         for both core and vectore regs.
27655 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27657         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
27658         (aarch64_gen_store_pair): New helper function.
27659         (aarch64_save_or_restore_callee_save_registers)
27660         (aarch64_save_or_restore_fprs): Use new helper functions.
27662 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27664         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
27665         (aarch64_save_or_restore_callee_save_registers)
27666         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
27668 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27670         * config/aarch64/aarch64.c
27671         (aarch64_save_or_restore_callee_save_registers)
27672         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
27674 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27676         * config/aarch64/aarch64.c
27677         (aarch64_save_or_restore_callee_save_registers)
27678         (aarch64_save_or_restore_fprs): Remove 'increment'.
27680 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27682         * config/aarch64/aarch64.c
27683         (aarch64_save_or_restore_callee_save_registers)
27684         (aarch64_save_or_restore_fprs): Use register offset in
27685         cfun->machine->frame.reg_offset.
27687 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27689         * config/aarch64/aarch64.c
27690         (aarch64_save_or_restore_callee_save_registers)
27691         (aarch64_save_or_restore_fprs): Remove base_rtx.
27693 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27695         * config/aarch64/aarch64.c
27696         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
27697         to 'start_offset'.  Remove local variable 'start_offset'.
27699 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27701         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
27702         type to HOST_WIDE_INT.
27704 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27706         * config/aarch64/aarch64.c (aarch64_expand_prologue)
27707         (aarch64_save_or_restore_fprs)
27708         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
27710 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27712         * config/arm/t-rtems-eabi: Add
27713         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
27714         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
27715         mbig-endian/mthumb/march=armv7-r, and
27716         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
27717         multilibs.
27719 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27720             Chris Johns <chrisj@rtems.org>
27721             Joel Sherrill <joel.sherrill@oarcorp.com>
27723         * config.gcc: Add nios2-*-rtems*.
27724         * config/nios2/rtems.h: New file.
27725         * gcc/config/nios2/t-rtems: New file.
27727 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
27729         PR target/61396
27730         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
27731         constant numbers, not general constants.
27732         (rs6000_expand_vector_init): Ditto.
27734 2014-07-23  Nathan Sidwell  <nathan@acm.org>
27736         * gcov-tool.c (gcov_list): Declare here.
27737         (set_gcov_list): Remove.
27738         (gcov_output_files): Set gcov_list directly.
27740 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
27742         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
27744 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
27746         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
27747         callee-saved registers are available for padding purpose
27748         and r3 is not mandatory, then prefer use those callee-saved
27749         instead of r3.
27751 2014-07-23  Richard Biener  <rguenther@suse.de>
27753         * params.def (PARAM_MAX_COMBINE_INSNS): New.
27754         * combine.c: Include statistics.h and params.h.
27755         (combine_instructions): Guard three and four insn combines
27756         with max-combine-insns value.  Record statistics for combines
27757         performed.
27758         * doc/invoke.texi (max-combine-insns): Document new param.
27760 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
27762         * graphite-isl-ast-to-gimple.c:
27763         (translate_isl_ast_node_block): New function.
27764         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
27766         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
27767         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
27769 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
27771         * graphite-isl-ast-to-gimple.c:
27772         (get_max_schedule_dimensions): New function.
27773         (extend_schedule): Likewise.
27774         (generate_isl_schedule): Add calling of extend_schedule and
27775         get_max_schedule_dimensions.
27777 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27779         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
27780         (case UNSPEC): Handle UNSPEC_RBIT.
27782 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27784         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
27785         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
27787 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27789         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
27791 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
27793         * graphite-isl-ast-to-gimple.c:
27794         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
27795         (ivs_params_clear):
27796         (build_iv_mapping): New function.
27797         (translate_isl_ast_node_user): Likewise.
27798         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
27800         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
27801         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
27802         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
27804 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
27806         PR target/55701
27807         * config/arm/arm.md (setmem): New pattern.
27808         * config/arm/arm-protos.h (struct tune_params): New fields.
27809         (arm_gen_setmem): New prototype.
27810         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
27811         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
27812         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
27813         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
27814         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
27815         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
27816         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
27817         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
27818         (arm_const_inline_cost): New function.
27819         (arm_block_set_max_insns): New function.
27820         (arm_block_set_non_vect_profit_p): New function.
27821         (arm_block_set_vect_profit_p): New function.
27822         (arm_block_set_unaligned_vect): New function.
27823         (arm_block_set_aligned_vect): New function.
27824         (arm_block_set_unaligned_non_vect): New function.
27825         (arm_block_set_aligned_non_vect): New function.
27826         (arm_block_set_vect, arm_gen_setmem): New functions.
27828 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
27830         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
27832 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
27834         PR target/61855
27835         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
27836         out of #ifdef __OPTIMIZE__.
27838 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
27840         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
27841         different trapping status if -fnon-call-exceptions is enabled.
27843 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
27845         * expr.c (store_field): Handle VOIDmode for calls that return values
27846         in multiple locations.
27848 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27850         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
27851         (altivec_vsldoi_<mode>): Likewise.
27853 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
27855         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
27856         to the number of characters in the line.
27858 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
27860         * graphite-isl-ast-to-gimple.c: Add using of
27861         build_nonstandard_integer_type instead of int128_integer_type_node.
27863 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
27865         * toplev.c (output_stack_usage): Adjust the location of the warning.
27867 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
27869         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
27870         (*membar_storeload): Disable for LEON3.
27872 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27874         PR rtl-optimization/61461
27875         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
27877 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
27879         PR target/61794
27880         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
27881         Fix instruction constraint.
27882         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
27884 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
27886         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
27888 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
27890         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
27891         GNU coding standards.
27892         (nds32_register_move_cost): Likewise.
27893         (nds32_memory_move_cost): Likewise.
27894         (nds32_address_cost): Likewise.
27896 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27898         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
27900 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
27902         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
27903         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
27904         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
27905         (HAVE_sync_compare_and_swapqi): Define.
27906         (HAVE_sync_compare_and_swaphi): Likewise.
27907         (HAVE_sync_compare_and_swapsi): Likewise.
27909 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
27911         * config/mips/p5600.md: Add missing cpu tests.
27913 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27915         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
27916         (vmla_f64): Likewise.
27917         (vfms_f64): Likewise.
27918         (vmls_f64): Likewise.
27920 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27922         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
27923         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
27925 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27927         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
27928         (vmlal_high_lane_s32): Likewise.
27929         (vmlal_high_lane_u16): Likewise.
27930         (vmlal_high_lane_u32): Likewise.
27931         (vmlsl_high_lane_s16): Likewise.
27932         (vmlsl_high_lane_s32): Likewise.
27933         (vmlsl_high_lane_u16): Likewise.
27934         (vmlsl_high_lane_u32): Likewise.
27936 2014-07-17  Terry Guo  <terry.guo@arm.com>
27938         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
27939         (alus_reg): Renamed to alus_sreg.
27940         * config/arm/arm-fixed.md: Change type of non-dsp instructions
27941         from alu_reg to alu_sreg.  Change type of dsp instructions from
27942         alu_reg to alu_dsp_reg.
27943         * config/arm/thumb1.md: Likewise.
27944         * config/arm/thumb2.md: Likewise.
27945         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
27946         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
27947         with alu_sreg and alus_sreg.
27948         * config/arm/arm1026ejs.md (alu_op): Likewise.
27949         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
27950         * config/arm/arm926ejs.md (9_alu_op): Likewise.
27951         * config/arm/fa526.md (526_alu_op): Likewise.
27952         * config/arm/fa606te.md (606te_alu_op): Likewise.
27953         * config/arm/fa626te.md (626te_alu_op): Likewise.
27954         * config/arm/fa726te.md (726te_alu_op): Likewise.
27955         * config/arm/fmp626.md (mp626_alu_op): Likewise.
27956         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
27957         alu_sreg, alu_dsp_reg and alus_sreg.
27958         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
27959         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
27960         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
27961         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
27962         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
27963         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
27964         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
27965         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
27966         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
27967         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
27968         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
27969         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
27970         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
27971         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
27972         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
27973         alus_reg to alus_sreg.
27975 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
27977         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
27978         infinity format.
27980 2014-07-17  Richard Biener  <rguenther@suse.de>
27982         PR rtl-optimization/61801
27983         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
27984         don't set reg_pending_barrier if it appears in a debug-insn.
27986 2014-07-16  DJ Delorie  <dj@redhat.com>
27988         * config/rx/rx.c (rx_option_override): Fix alignment values.
27989         (rx_align_for_label): Likewise.
27991 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
27993         PR target/61737.
27994         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
27995         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
27996         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
27997         functions.
27998         (cris_print_index, cris_print_operand, cris_constant_index_p)
27999         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
28000         (cris_address_cost): Ditto last CONSTANT_P.
28001         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
28002         callers changed.  Yield cris_offsettable_symbol for non-PIC
28003         constant symbolic expressions including labels.  Yield cris_unspec
28004         for all unspecs.
28005         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
28006         target to pic_offset_table_rtx for calls that will likely go
28007         through PLT, const0_rtx when they can't.  All callers changed.
28008         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
28009         symbolic expressions to be PICified.  Remove second, redundant,
28010         assert on can_create_pseudo_p returning non-zero.  Use
28011         replace_equiv_address_nv, not replace_equiv_address, for final
28012         operand update.
28013         * config/cris/cris.md ("movsi"): Move variable t to pattern
28014         toplevel. Adjust assert for new cris_symbol_type member.  Use
28015         CONSTANT_P instead of CONSTANT_ADDRESS_P.
28016         ("*movsi_internal") <case 9>: Make check for valid unspec operands
28017         for lapc stricter.
28018         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
28019         ("call", "call_value"): Use second incoming operand as a marker
28020         for pic-offset-table-register being used.
28021         ("*expanded_call_non_v32", "*expanded_call_v32")
28022         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
28023         second incoming operand to CALL, match cris_call_type_marker.
28024         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
28025         ("*expanded_call_side"): Ditto.  Fix typo in comment.
28026         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
28027         CONSTANT_P.
28028         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
28029         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
28030         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
28031         users changed.  Add members cris_offsettable_symbol and cris_unspec.
28032         (cris_symbol_type): Rename from cris_pic_symbol_type.
28033         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
28034         just CONSTANT_P.
28035         * config/cris/cris-protos.h (cris_symbol_type_of,
28036         cris_expand_pic_call_address): Adjust prototypes.
28037         (cris_legitimate_constant_p): New prototype.
28039         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
28040         an existing tmake_file.  Don't add t-slibgcc and t-linux.
28042 2014-07-17  Jason Merrill  <jason@redhat.com>
28044         PR c++/61623
28045         * symtab.c (symtab_remove_from_same_comdat_group): Also
28046         set_comdat_group to NULL_TREE.
28047         (verify_symtab): Fix diagnostic.
28049 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
28051         PR target/61662
28052         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
28054 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
28056         Support location tracking for built-in macro tokens
28057         * input.h (is_location_from_builtin_token): New function declaration.
28058         * input.c (is_location_from_builtin_token): New function definition.
28059         * toplev.c (general_init): Tell libcpp what the pre-defined
28060         spelling location for built-in tokens is.
28062 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
28064         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
28065         on the FUNCTION_DECL.
28067 2014-07-16  Richard Biener  <rguenther@suse.de>
28069         PR other/61782
28070         * doc/extend.texi (always_inline): Clarify.
28072 2014-07-15  Eric Christopher  <echristo@gmail.com>
28074         * doc/invoke.texi (Link Options): Document -z option.
28076 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
28078         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
28079         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
28081 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
28083         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
28085 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
28087         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
28088         varpool_assemble_decl.
28089         * varpool.c (varpool_assemble_decl): Assert that node->definition is
28090         true.
28092 2014-07-15  Michael Matz  <matz@suse.de>
28094         PR rtl-optimization/61772
28095         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
28097 2014-07-15  Richard Biener  <rguenther@suse.de>
28099         * opts.c (default_options_table): Disable bit-ccp at -Og.
28101 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
28103         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
28105 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
28107         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
28108         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
28109         call langhook for unknown declaration.
28110         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
28111         * tree.h (DECL_ARGUMENTS): Update.
28112         * print-tree.c (print_node): Update.
28113         * tree-core.h (tree_decl_non_common): Remove arguments.
28114         (tree_function_decl): Add arguments.
28116 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
28118         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
28120 2014-07-14  Richard Biener  <rguenther@suse.de>
28122         PR tree-optimization/61779
28123         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
28124         simplifying a condition.
28126 2014-07-14  Richard Biener  <rguenther@suse.de>
28128         * builtins.c (c_strlen): Make only_value == 2 really only
28129         affect warning generation.
28131 2014-07-14  Richard Biener  <rguenther@suse.de>
28133         PR tree-optimization/61757
28134         PR tree-optimization/61783
28135         PR tree-optimization/61787
28136         * tree-ssa-dom.c (record_equality): Revert canonicalization
28137         change and add comment.
28138         (propagate_rhs_into_lhs): Revert previous fix, removing
28139         loop depth restriction again.
28141 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28143         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
28144         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28145         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28146         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
28147         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28148         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28149         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28151 2014-07-14  Richard Biener  <rguenther@suse.de>
28153         * cgraph.h (decl_in_symtab_p): Make inline.
28155 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
28157         PR middle-end/61294
28158         * doc/invoke.texi (-Wmemset-transposed-args): Document.
28160         PR target/61656
28161         * config/i386/i386.c (classify_argument): Don't merge classes above
28162         number of words.
28164 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
28166         * cgraph.h (symtab_node): Add nonzero_address.
28167         (decl_in_symtab_p): Break out from ...
28168         (symtab_get_node): ... here.
28169         * fold-const.c: Include cgraph.h
28170         (tree_single_nonzero_warnv_p): Use symtab to determine
28171         if symbol is non-zero.
28172         * symtab.c (symtab_node::nonzero_address): New method.
28174 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
28176         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
28177         forgotten in previous commit.
28179 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
28181         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
28182         on builtin types.
28183         * ipa-devirt.c: Include stor-layout.h and intl.h
28184         (odr_subtypes_equivalent_p): New function.
28185         (warn_odr): New function.
28186         (warn_type_mismatch): New function.
28187         (odr_types_equivalent_p): New function.
28188         (add_type_duplicate): Use it.
28189         * common.opt (Wodr): New flag.
28190         * doc/invoke.texi (Wodr): Document new warning.
28192 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
28194         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
28195         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
28196         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
28197         (varpool_get_constructor): Push CTORS_IN timevar.
28198         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
28200 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
28202         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
28203         Remove VOID_FTYPE_PUSHORT.
28204         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
28205         Change code to USHORT_FTYPE_VOID.
28206         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
28207         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
28208         (ix86_atomic_assign_expand_fenv): Update for
28209         __builtin_ia32_fnstsw changes.
28210         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
28211         (fnstsw): Change operand 0 to nonimmediate operand.
28213 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
28215         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
28216         (varpool_get_constructor): New function.
28217         (varpool_ctor_useable_for_folding_p): Break out from ...
28218         (ctor_for_folding): ... here; use varpool_get_constructor.
28219         (varpool_assemble_decl): Likewise.
28220         * lto-streamer.h (struct output_block): Turn cgraph_node
28221         to symbol filed.
28222         (lto_input_variable_constructor): Declare.
28223         * ipa-visibility.c (function_and_variable_visibility): Use
28224         varpool_get_constructor.
28225         * cgraph.h (varpool_get_constructor): Declare.
28226         (varpool_ctor_useable_for_folding_p): New function.
28227         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
28228         parameter; return error_mark_node for non-trivial constructors.
28229         (lto_write_tree_1, DFS_write_tree): Update use of
28230         get_symbol_initial_value.
28231         (output_function): Update initialization of symbol.
28232         (output_constructor): New function.
28233         (copy_function): Rename to ..
28234         (copy_function_or_variable): ... this one; handle vars too.
28235         (lto_output): Output variable sections.
28236         * lto-streamer-in.c (input_constructor): New function.
28237         (lto_read_body): Rename from ...
28238         (lto_read_body_or_constructor): ... this one; handle vars too.
28239         (lto_input_variable_constructor): New function.
28240         * ipa-prop.c (ipa_prop_write_jump_functions,
28241         ipa_prop_write_all_agg_replacement): Update.
28242         * lto-cgraph.c (compute_ltrans_boundary): Use it.
28243         (output_cgraph_opt_summary): Set symbol to NULL.
28245 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
28247         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
28248         non-polymorphic types.
28249         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
28250         * ipa-devirt.c (types_same_for_odr): Do not explode when one
28251         of types is not polymorphic.
28253 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
28255         * lra-constraints.c (remove_inheritance_pseudos): Process
28256         destination pseudo too.
28258 2014-07-11  Rong Xu  <xur@google.com>
28260         * gcov-tool.c (gcov_output_files): Fix build error introduced in
28261         commit r212448.
28263 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28265         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
28266         * config/avr/avr-devices.c (AVR_MCU): Same.
28267         (avr_mcu_types): add text start value to end of device list.
28268         * config/avr/avr-mcus.def: Add text section start for all devices.
28269         (ata5782): Add new avr5 device.
28270         (ata5831): Same.
28271         * config/avr/avr-tables.opt: Regenerate.
28272         * config/avr/avr.h: Add declaration for text section start handler.
28273         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
28274         SPEC functions.
28275         (LINK_SPEC): Include text section start handler to linker spec.
28276         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
28277         pass -Ttext option to linker if the text section start for the device
28278         is not zero.
28279         * config/avr/t-multilib: Regenerate.
28280         * doc/avr-mmcu.texi: Regenerate.
28282 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
28284         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
28285         * config/rs6000/aix52.h (LINK_SPEC): Same.
28286         * config/rs6000/aix53.h (LINK_SPEC): Same.
28287         * config/rs6000/aix61.h (LINK_SPEC): Same.
28288         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
28290 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
28292         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
28293         (graphite_verify): New function.
28294         (ivs_params_clear): New function.
28295         (gcc_expression_from_isl_ast_expr_id): New function.
28296         (gcc_expression_from_isl_expr_int): New function.
28297         (binary_op_to_tree): New function.
28298         (ternary_op_to_tree): New function.
28299         (unary_op_to_tree): New function.
28300         (nary_op_to_tree): New function.
28301         (gcc_expression_from_isl_expr_op): New function.
28302         (gcc_expression_from_isl_expression): New function.
28303         (graphite_create_new_loop): New function.
28304         (translate_isl_ast_for_loop): New function.
28305         (get_upper_bound): New function.
28306         (graphite_create_new_loop_guard): New function.
28307         (translate_isl_ast_node_for): New function.
28308         (translate_isl_ast): New function.
28309         (add_parameters_to_ivs_params): New function.
28310         (scop_to_isl_ast): New parameter ip.
28311         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
28313 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
28315         * config/xtensa/predicates.md (call expander): Update for
28316         DECL_SECTION_NAME being string.
28318 2014-07-11  Richard Biener  <rguenther@suse.de>
28320         PR middle-end/61473
28321         * builtins.c (fold_builtin_memory_op): Inline memory moves that
28322         can be implemented with a single load followed by a single store.
28323         (c_strlen): Only warn when only_value is not 2.
28325 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
28327         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
28329 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
28331         PR target/61561
28332         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
28333         (*movhi_bytes): Likewise.
28334         (*arm_movqi_insn): Likewise.
28336 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
28338         PR target/56858
28339         * config/alpha/alpha.c: Include tree-pass.h, context.h
28340         and pass_manager.h.
28341         (pass_data_handle_trap_shadows): New pass.
28342         (pass_handle_trap_shadows::gate): New pass gate function.
28343         (make_pass_handle_trap_shadows): New function.
28344         (rest_of_handle_trap_shadows): Ditto.
28346         (alpha_align_insns_1): Rename from alpha_align_insns.
28347         (pass_data_align_insns): New pass.
28348         (pass_align_insns::gate): New pass gate function.
28349         (make_pass_aling_insns): New function.
28350         (rest_of_align_insns): Ditto.
28351         (alpha_align_insns): Ditto.
28353         (alpha_option_override): Declare handle_trap_shadows info
28354         and align_insns_info.  Register handle_trap_shadows and align_insns
28355         passes here.
28356         (alpha_reorg): Do not call alpha_trap_shadows and
28357         alpha_align_insn from here.
28359         (alpha_pad_function_end): Do not skip BARRIERs.
28361 2014-07-10  Rong Xu  <xur@google.com>
28363         Add gcov-tool: an offline gcda profile processing tool support.
28364         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
28365         (gcov_is_error): Ditto.
28366         (gcov_read_string): Ditto.
28367         (gcov_read_sync): Ditto.
28368         * gcov-io.h: Move counter defines to gcov-counter.def.
28369         * gcov-dump.c (tag_counters): Use gcov-counter.def.
28370         * coverage.c: Ditto.
28371         * gcov-tool.c: Offline gcda profile processing tool.
28372         (unlink_gcda_file): Remove one gcda file.
28373         (unlink_profile_dir): Remove gcda files from the profile path.
28374         (gcov_output_files): Output gcda files to an output dir.
28375         (profile_merge): Merge two profiles in directory.
28376         (print_merge_usage_message): Print merge usage.
28377         (merge_usage): Print merge usage and exit.
28378         (do_merge): Driver for profile merge sub-command.
28379         (profile_rewrite): Rewrite profile.
28380         (print_rewrite_usage_message): Print rewrite usage.
28381         (rewrite_usage): Print rewrite usage and exit.
28382         (do_rewrite): Driver for profile rewrite sub-command.
28383         (print_usage): Print gcov-info usage and exit.
28384         (print_version): Print gcov-info version.
28385         (process_args): Process arguments.
28386         (main): Main routine for gcov-tool.
28387         * Makefile.in: Build and install gcov-tool.
28388         * gcov-counter.def: New file split from gcov-io.h.
28389         * doc/gcc.texi: Include gcov-tool.texi.
28390         * doc/gcov-tool.texi: Document for gcov-tool.
28392 2014-07-10  Richard Biener  <rguenther@suse.de>
28394         PR tree-optimization/61757
28395         * tree-ssa-dom.c (loop_depth_of_name): Restore.
28396         (propagate_rhs_into_lhs): Revert part of last change.
28398 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
28400         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
28401         FUNCTION_DECLs.
28403 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
28405         PR middle-end/53590
28406         * function.c (allocate_struct_function): Revert r188667 change.
28408         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
28410 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
28412         * doc/install.texi: Remove links to defunct package providers for
28413         Solaris.
28415 2014-07-09  Tom de Vries  <tom@codesourcery.com>
28417         * final.c (get_call_fndecl): Declare.
28418         (self_recursive_call_p): New function.
28419         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
28421 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28423         * ipa-devirt.c (record_node): Walk through aliases.
28425 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28427         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
28429 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28431         Revert:
28432         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
28434 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28436         * ipa-visibility.c (function_and_variable_visibility): Remove
28437         temporary hack disabling local aliases on AIX.
28439 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28441         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
28442         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
28444 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28446         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
28447         * rs6000/rs6000.c: Inline output of .set instruction.
28448         (declare_alias_data): New struct.
28449         (rs6000_declare_alias): New function.
28450         (rs6000_xcoff_declare_function_name): Use it.
28451         (rs6000_xcoff_declare_object_name): New function.
28452         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
28453         (ASM_OUTPUT_DEF): Turn to empty definition.
28455 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
28457         PR bootstrap/61679
28458         * hash-table.h: use hash_table::value_type instead of
28459         Descriptor::value_type in the return types of several methods.
28461 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
28463         * tree-pass.h (pass_data): Remove has_execute member.
28464         * passes.c (execute_one_pass): Don't check pass->has_execute.
28465         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28466         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28467         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28468         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28469         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28470         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28471         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28472         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28473         gimple-low.c, gimple-ssa-isolate-paths.c,
28474         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28475         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
28476         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
28477         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
28478         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
28479         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28480         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
28481         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
28482         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
28483         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
28484         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
28485         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28486         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28487         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28488         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28489         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28490         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28491         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28492         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28493         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28494         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28495         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28496         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
28497         web.c: Remove initializer for pass_data::has_execute.
28499 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
28501         * graphite-htab.h: Use hash_map instead of hash_table.
28502         * graphite-clast-to-gimple.c: Adjust.
28503         * passes.c: Use hash_map instead of hash_table.
28504         * sese.c: Likewise.
28505         * sese.h: Remove now unused code.
28507 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
28509         PR target/61599
28510         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
28511         than zero.
28513 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
28515         PR rtl-optimization/61673
28516         * combine.c (simplify_comparison): Test just mode's sign bit
28517         in tmode rather than the sign bit and any bits above it.
28519 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
28521         * graphite-isl-ast-to-gimple.c (generate_isl_context):
28522         Add __isl_give to the declaration.
28523         (generate_isl_schedule): Likewise.
28524         (scop_to_isl_ast): Likewise.
28526 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28528         * config/arm/arm.c (cortexa5_extra_costs): New table.
28529         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
28531 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
28533         PR tree-optimization/61725
28534         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
28535         range, use range_includes_zerop_p instead of integer_zerop on
28536         vr0->min, only use log2 of max if min is not negative.
28538 2014-07-08  Richard Biener  <rguenther@suse.de>
28540         * tree-ssa-dom.h (loop_depth_of_name): Remove.
28541         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
28542         restriction on loop depth difference.
28543         (record_equality): Likewise.
28544         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
28545         (loop_depth_of_name): Remove.
28546         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
28547         restriction on loop depth difference.
28548         (init_copy_prop): Likewise.
28550 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
28552         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
28553         parameter.
28554         (walk_aliased_vdefs): Likewise.
28555         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
28556         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
28557         (detect_type_change_from_memory_writes): Check if entry was reached.
28559 2014-07-08  Richard Biener  <rguenther@suse.de>
28561         PR tree-optimization/61681
28562         * tree-ssa-structalias.c (find_what_var_points_to): Expand
28563         NONLOCAL inside ESCAPED.
28565 2014-07-08  Richard Biener  <rguenther@suse.de>
28567         PR tree-optimization/61680
28568         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28569         Handle properly all read-write dependences with group accesses.
28571 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
28573         PR tree-optimization/61576
28574         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
28575         block containing reduction statement is predecessor of phi basi block.
28577 2014-07-08  Marek Polacek  <polacek@redhat.com>
28579         PR c/60226
28580         * fold-const.c (round_up_loc): Change the parameter type.
28581         Remove assert.
28582         * fold-const.h (round_up_loc): Adjust declaration.
28583         * stor-layout.c (finalize_record_size): Check for too large types.
28585 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
28587         * symtab.c: Include calls.h.
28588         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
28590 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
28592         * config/rs6000/rs6000.c (output_vec_const_move): Handle
28593         little-endian code generation.
28594         * config/rs6000/spe.md (spe_evmergehi): Rename to...
28595         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
28596         (spe_evmergehilo): Rename to...
28597         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
28598         (spe_evmergelo): Rename to...
28599         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
28600         (spe_evmergelohi): Rename to...
28601         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
28602         (spe_evmergehi, spe_evmergehilo): New expanders.
28603         (spe_evmergelo, spe_evmergelohi): Likewise.
28604         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
28605         (*frob_tf_ti): Likewise.
28606         (*frob_<mode>_di_2): Likewise.
28607         (*frob_tf_di_8_2): Likewise.
28608         (*frob_di_<mode>): Likewise.
28609         (*frob_ti_tf): Likewise.
28610         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
28611         (*frob_ti_<mode>_8_2): Likewise.
28612         (*frob_ti_tf_2): Likewise.
28613         (mov_si<mode>_e500_subreg0): Rename to...
28614         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
28615         endianness only.
28616         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
28617         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
28618         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
28619         the big endianness only.
28620         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
28621         (*mov_si<mode>_e500_subreg0_2): Rename to...
28622         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
28623         big big endianness only.
28624         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
28625         (*mov_si<mode>_e500_subreg4): Rename to...
28626         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
28627         endianness only.
28628         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
28629         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
28630         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
28631         the big endianness only.
28632         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
28633         pattern.
28634         (*mov_si<mode>_e500_subreg4_2): Rename to...
28635         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
28636         endianness only.
28637         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
28638         (*mov_sitf_e500_subreg8): Rename to...
28639         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
28640         endianness only.
28641         (*mov_sitf_e500_subreg8_le): New instruction pattern.
28642         (*mov_sitf_e500_subreg8_2): Rename to...
28643         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
28644         endianness only.
28645         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
28646         (*mov_sitf_e500_subreg12): Rename to...
28647         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
28648         endianness only.
28649         (*mov_sitf_e500_subreg12_le): New instruction pattern.
28650         (*mov_sitf_e500_subreg12_2): Rename to...
28651         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
28652         endianness only.
28653         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
28655 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28657         * asan.c (instrument_strlen_call): Do not instrument first byte
28658         in strlen if already instrumented.
28660 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28662         * config/arm/arm.opt (mwords-little-endian): Delete.
28663         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
28664         of TARGET_LITTLE_WORDS.
28665         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
28666         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
28667         warning.
28668         * doc/invoke.texi: Remove references to -mwords-little-endian.
28670 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
28672         * expmed.c (struct init_expmed_rtl): Change all fields but
28673         pow2 and cint from struct rtx_def to rtx.
28674         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
28675         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
28676         at the end again.
28678 2014-07-06  Marek Polacek  <polacek@redhat.com>
28680         PR c/6940
28681         * doc/invoke.texi: Document -Wsizeof-array-argument.
28683 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
28685         * wide-int.h (wide_int_storage): Change declaration from struct
28686         to class.
28688 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
28690         * cgraph.c (cgraph_create_indirect_edge): Update call of
28691         get_polymorphic_call_info.
28692         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
28693         (possible_polymorphic_call_targets): Add parameter call.
28694         (decl_maybe_in_construction_p): New predicate.
28695         (get_polymorphic_call_info): Add parameter call;
28696         use decl_maybe_in_construction_p.
28697         * gimple-fold.c (fold_gimple_assign): Update use of
28698         possible_polymorphic_call_targets.
28699         (gimple_fold_call): Likewise.
28700         * ipa-prop.c: Inlcude calls.h
28701         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
28702         (param_type_may_change_p): New predicate.
28703         (detect_type_change_from_memory_writes): Break out from ...
28704         (detect_type_change): ... this one; use param_type_may_change_p.
28705         (detect_type_change_ssa): Use param_type_may_change_p.
28706         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
28708 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
28710         PR target/49423
28711         * config/arm/arm-protos.h (arm_legitimate_address_p,
28712         arm_is_constant_pool_ref): Add prototypes.
28713         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
28714         (arm_is_constant_pool_ref) New function.
28715         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
28716         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
28717         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
28718         operand. Remove pool_range and neg_pool_range attributes.
28719         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
28720         pool_range and neg_pool_range attributes.
28721         * config/arm/constraints.md (Uh): New constraint.
28722         (Uq): Don't allow constant pool references.
28724 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
28726         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
28727         (move_lo_quad_internal_be_<mode>): Likewise.
28728         (move_lo_quad_<mode>): Convert to define_expand.
28729         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
28730         (aarch64_simd_move_hi_quad_be_<mode>): New.
28731         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
28732         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
28733         (aarch64_combinez_be<mode>): New.
28734         (aarch64_combine<mode>): Convert to define_expand.
28735         (aarch64_combine_internal<mode>): New.
28736         (aarch64_simd_combine<mode>): Remove bogus RTL description.
28738 2014-07-04  Tom de Vries  <tom@codesourcery.com>
28740         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
28741         combination of earlyclobber and read/write modifiers.
28743 2014-07-04  Tom de Vries  <tom@codesourcery.com>
28745         * config/aarch64/aarch64-simd.md
28746         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
28748 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
28750         PR target/61714
28751         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
28753 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
28755         PR middle-end/61654
28756         * cgraphunit.c (expand_thunk): Call free_dominance_info.
28758         PR tree-optimization/61684
28759         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
28760         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
28762 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28763             Kito Cheng  <kito@0xlab.org>
28764             Monk Chiang  <sh.chiang04@gmail.com>
28766         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
28767         (nds32_symbol_load_store_p): Move to ...
28768         (nds32_fp_as_gp_check_available): Move to ...
28769         * config/nds32/nds32-fp-as-gp.c: ... here.
28770         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
28771         extern declaration.
28773 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28774             Kito Cheng  <kito@0xlab.org>
28775             Monk Chiang  <sh.chiang04@gmail.com>
28777         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
28778         (nds32_expand_store_multiple): Move to ...
28779         (nds32_expand_movmemqi): Move to ...
28780         * config/nds32/nds32-memory-manipulation.c: ... here.
28782 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28783             Kito Cheng  <kito@0xlab.org>
28784             Monk Chiang  <sh.chiang04@gmail.com>
28786         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
28787         (nds32_output_casesi_pc_relative): Move to ...
28788         (nds32_output_casesi): Move to ...
28789         (nds32_mem_format): Move to ...
28790         (nds32_output_16bit_store): Move to ...
28791         (nds32_output_16bit_load): Move to ...
28792         (nds32_output_32bit_store): Move to ...
28793         (nds32_output_32bit_load): Move to ...
28794         (nds32_output_32bit_load_s): Move to ...
28795         (nds32_output_stack_push): Move to ...
28796         (nds32_output_stack_pop): Move to ...
28797         * config/nds32/nds32-md-auxiliary.c: ... here.
28799 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28800             Ling-Hua Tseng  <uranus@tinlans.org>
28802         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
28803         the purpose of this file.
28805 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28806             Kito Cheng  <kito@0xlab.org>
28807             Monk Chiang  <sh.chiang04@gmail.com>
28809         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
28810         (nds32_address_cost): Move implementation to ...
28811         * config/nds32/nds32-cost.c: ... here.
28812         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
28813         (nds32_address_cost_impl): Declare.
28815 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28816             Kito Cheng  <kito@0xlab.org>
28817             Monk Chiang  <sh.chiang04@gmail.com>
28819         * config/nds32/nds32.c
28820         (nds32_consecutive_registers_load_store_p): Move to ...
28821         (nds32_valid_multiple_load_store): Move to ...
28822         (nds32_valid_stack_push_pop): Move to ...
28823         (nds32_can_use_bclr_p): Move to ...
28824         (nds32_can_use_bset_p): Move to ...
28825         (nds32_can_use_btgl_p): Move to ...
28826         (nds32_can_use_bitci_p): Move to ...
28827         * config/nds32/nds32-predicates.c: ... here.
28829 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28830             Kito Cheng  <kito@0xlab.org>
28831             Monk Chiang  <sh.chiang04@gmail.com>
28833         * config/nds32/nds32.c
28834         (nds32_expand_builtin_null_ftype_reg): Move to ...
28835         (nds32_expand_builtin_reg_ftype_imm): Move to ...
28836         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
28837         (nds32_init_builtins): Move implementation to ...
28838         (nds32_expand_builtin): Move implementation to ...
28839         * config/nds32/nds32-intrinsic.c: ... here.
28840         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
28841         (nds32_expand_builtin_impl): Declare.
28843 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28844             Kito Cheng  <kito@0xlab.org>
28845             Monk Chiang  <sh.chiang04@gmail.com>
28847         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
28848         (nds32_emit_section_tail_template): Move to ...
28849         (nds32_emit_isr_jmptbl_section): Move to ...
28850         (nds32_emit_isr_vector_section): Move to ...
28851         (nds32_emit_isr_reset_conten): Move to ...
28852         (nds32_check_isr_attrs_conflict): Move to ...
28853         (nds32_construct_isr_vectors_information): Move to ...
28854         (nds32_asm_file_start): Move implementation to ...
28855         (nds32_asm_file_end): Move implementation to ...
28856         * config/nds32/nds32-isr.c: ... here.
28857         * config/nds32/nds32-protos.h
28858         (nds32_check_isr_attrs_conflict): Declare.
28859         (nds32_construct_isr_vectors_information): Declare.
28860         (nds32_asm_file_start_for_isr): Declare.
28861         (nds32_asm_file_end_for_isr): Declare.
28863 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28864             Kito Cheng  <kito@0xlab.org>
28865             Monk Chiang  <sh.chiang04@gmail.com>
28867         * config.gcc (nds32*): Add new modules to extra_objs.
28868         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
28869         (nds32be-*-*): Likewise.
28870         * config/nds32/nds32-cost.c: New file.
28871         * config/nds32/nds32-fp-as-gp.c: New file.
28872         * config/nds32/nds32-intrinsic.c: New file.
28873         * config/nds32/nds32-isr.c: New file.
28874         * config/nds32/nds32-md-auxiliary.c: New file.
28875         * config/nds32/nds32-memory-manipulation.c: New file.
28876         * config/nds32/nds32-pipelines-auxiliary.c: New file.
28877         * config/nds32/nds32-predicates.c: New file.
28878         * config/nds32/t-nds32: New file.
28880 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
28882         PR tree-optimization/61682
28883         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
28884         using cases and when one of the operands is equal to 1.
28886 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
28888         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
28889         ashr<mode>3): Correct mode of operands[2].
28890         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
28891         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
28892         Correct mode of operands[2].  Fix split condition.
28894 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
28896         * arm.md (arch): Add armv6_or_vfpv3.
28897         (arch_enabled): Add test for the above.
28898         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
28899         on VFP9.
28900         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
28902 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
28904         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
28905         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
28906         HWI 1 and negate the unsigned value.
28907         * expmed.c (expand_sdiv_pow2): For modes wider than word always
28908         use AND instead of shift.
28909         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
28911 2014-07-03  Marek Polacek  <polacek@redhat.com>
28913         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
28914         (-fsanitize=float-divide-by-zero): Move to the table with
28915         -fsanitize=undefined suboptions.
28916         (-fsanitize=float-cast-overflow): Likewise.
28918 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28920         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
28921         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
28922         endianness.
28924 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28926         * loop-invariant.c (struct invariant): Add a new member: eqno;
28927         (find_identical_invariants): Update eqno;
28928         (create_new_invariant): Init eqno;
28929         (get_inv_cost): Compute comp_cost with eqno;
28931 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
28933         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
28934         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
28935         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
28936         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
28937         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
28939 2014-07-02  Christian Bruel  <christian.bruel@st.com>
28941         PR target/29349
28942         PR target/53513
28943         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
28944         (make_preds_opaque): Delete.
28945         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
28946         (commit_mode_sets): New function.
28947         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
28948         Process all modes at once.
28949         * basic-block.h (pre_edge_lcm_avs): Declare.
28950         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
28951         Call clear_aux_for_edges. Fix comments.
28952         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
28953         (pre_edge_rev_lcm): Idem.
28954         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
28955         parameter.
28956         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
28957         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
28958         Idem.
28959         * config/i386/i386.c (x96_emit_mode_set): Idem.
28960         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
28961         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
28962         (fpscr_toggle) Disallow from delay slot.
28963         * target.def (emit_mode_set): Add prev_mode parameter.
28964         * doc/tm.texi: Regenerate.
28966 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28968         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
28969         variable i.
28971 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
28973         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
28974         vtable_pointer_value_to_vtable): Constify.
28975         (contains_polymorphic_type_p): Declare.
28976         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
28977         vtable_pointer_value_to_vtable): Constify.
28978         (contains_polymorphic_type_p): New predicate.
28979         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
28980         polymorphic types.
28981         (ipa_set_ancestor_jf): Likewise.
28982         (detect_type_change): Return false in easy cases.
28983         (compute_complex_assign_jump_func): Require type to contain
28984         polymorphic type.
28985         (compute_known_type_jump_func): Likewise.
28987 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
28989         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
28990         Remove.
28991         (type_in_anonymous_namespace_p): Constify argument.
28992         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
28993         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
28994         (main_odr_variant): New function.
28995         (hash_type_name): Make static; update assert; do not ICE on
28996         non-records.
28997         (types_same_for_odr): Bring here from tree.c; simplify and remove
28998         old structural comparing code that doesn't work for templates.
28999         (odr_hasher::equal): Update assert.
29000         (add_type_duplicate): Return true when bases should be computed;
29001         replace incomplete loader by complete; do not output duplicated
29002         warnings; do not ICE on non-records; set odr_violated flag.
29003         (get_odr_type): Be ready to replace incomplete type by complete
29004         one; work on ODR variants instead of main variants; reorder item
29005         in array so bases have still smaller indexes.
29006         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
29007         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
29009 2014-07-01  Cary Coutant  <ccoutant@google.com>
29011         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
29012         lookup.
29013         (resolve_addr_in_expr): When replacing the rtx in a location list
29014         entry, get a new address table entry.
29015         (dwarf2out_finish): Call index_location_lists even if there are no
29016         addr_index_table entries yet.
29018 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
29020         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
29021         change for not being obvious.
29023 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
29025         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
29026         unused argument.
29028 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29030         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
29031         (vcagt_f64): Likewise.
29032         (vcale_f64): Likewise.
29033         (vcaled_f64): Likewise.
29034         (vcales_f32): Likewise.
29035         (vcalt_f64): Likewise.
29036         (vcaltd_f64): Likewise.
29037         (vcalts_f32): Likewise.
29039 2014-07-01  Marek Polacek  <polacek@redhat.com>
29041         * doc/invoke.texi: Document -Wint-conversion.
29043 2014-07-01  Marek Polacek  <polacek@redhat.com>
29045         PR c/58286
29046         * doc/invoke.texi: Document -Wincompatible-pointer-types.
29048 2014-07-01  Martin Liska  <mliska@suse.cz>
29050         IPA REF alias refactoring
29051         * cgraph.h (iterate_direct_aliases): New function.
29052         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
29053         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
29054         FOR_EACH_ALIAS added.
29055         (cgraph_for_node_and_aliases): Likewise.
29056         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
29057         * ipa-inline.c (reset_edge_caches): Likewise.
29058         (update_caller_keys): Likewise.
29059         * trans-mem.c (ipa_tm_execute): Likewise.
29060         *varpool.c (varpool_analyze_node): Likewise.
29061         (varpool_for_node_and_aliases): Likewise.
29062         * ipa-ref.h (first_alias): New function.
29063         (last_alias): Likewise.
29064         (has_aliases_p): Likewise.
29065         * ipa-ref.c (ipa_ref::remove_reference): Removal function
29066         is sensitive to IPA_REF_ALIASes.
29067         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
29068         are put at the beginning of the list.
29069         (symtab_node::iterate_direct_aliases): New function.
29071 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29073         Revert:
29074         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29075         type is complete.
29076         (write_ts_type_common_tree_pointers): Do not stream fields not set
29077         for incomplete types; do not stream duplicated fields for variants;
29078         sanity check that variant and type match.
29079         (write_ts_type_non_common_tree_pointers): Likewise.
29080         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29081         TYPE_SIZE whether type is complete.
29082         (lto_input_ts_type_common_tree_pointers): Do same changes as in
29083         write_ts_type_common_tree_pointers
29084         (lto_input_ts_type_non_common_tree_pointers): Likewise.
29086 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29088         * var-tracking.c (add_stores): Return instead of asserting if old
29089         and new values for conditional store are the same.
29091 2014-06-30  Richard Henderson  <rth@redhat.com>
29093         PR rtl-opt/61608
29094         PR target/39284
29095         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
29096         the cfg if there were any changes.
29097         * passes.def: Revert move of peephole2 after reorder_blocks;
29098         move duplicate_computed_gotos before peephole2.
29100 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
29102         * except.c (emit_note_eh_region_end): New helper function.
29103         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
29104         emit EH_REGION_END note.
29105         * jump.c (cleanup_barriers): Do not split a call and its
29106         corresponding CALL_ARG_LOCATION note.
29108 2014-06-30  Jeff Law  <law@redhat.com>
29110         PR tree-optimization/61607
29111         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
29112         deeper into the SSA_NAME_VALUE chain.
29114 2014-06-30  Marek Polacek  <polacek@redhat.com>
29116         * convert.c (convert_to_integer): Don't instrument conversions if the
29117         function has no_sanitize_undefined attribute.
29118         * ubsan.c: Don't run the ubsan pass if the function has
29119         no_sanitize_undefined attribute.
29121 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
29123         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
29124         -fsanitize=undefined suboptions.
29126 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
29128         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
29129         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
29130         against bigendian and adjust indices.
29132 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
29134         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
29136 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29138         PR target/61633
29139         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
29140         Add alternative; make early clobber.  Adjust both split patterns
29141         to use operand 0 as the working register.
29143 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
29145         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
29146         as ira_object_id_map might be NULL, or 1.
29148 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29150         * loop-invariant.c (get_inv_cost): Handle register class.
29151         (gain_for_invariant): Check the register pressure of the inv
29152         and its overlapped register class, other than all.
29154 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
29156         * doc/invoke.texi (Optimize Options): Fix descriptions of
29157         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
29159 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
29161         * doc/extend.texi (Function Attributes): Update 'naked' attribute
29162         documentation.
29164 2014-06-29  Tobias Grosser <tobias@grosser.es>
29166         PR bootstrap/61650
29167         * graphite-isl-ast-to-gimple.c: Add missing guards.
29169 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
29171         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
29172         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
29173         * flag-types.h: Add new enum fgraphite_generator.
29174         * graphite-isl-ast-to-gimple.c: New.
29175         * graphite-isl-ast-to-gimple.h: New.
29176         * graphite.c (graphite_transform_loops): Add choice of Graphite
29177         code generator, which depends on flag_graphite_code_gen.
29179 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
29181         * graphite-dependences.c (subtract_commutative_associative_deps):
29182         Add NULL checking of the following variables: must_raw_no_source,
29183         may_raw_no_source, must_war_no_source, may_war_no_source,
29184         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
29185         must_war, may_war, must_waw, may_waw.
29187 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
29189         * graphite-clast-to-gimple.c: gloog is renamed to
29190         graphite_regenerate_ast_cloog.  gloog_error is renamed to
29191         graphite_regenerate_error.
29192         * graphite-clast-to-gimple.h: The definition of the struct
29193         bb_pbb_def is moved to graphite-htab.h.
29194         Add inclusion of the hash-table.h.
29195         * graphite-htab.h: The declaration of the function gloog is moved
29196         to graphite-clast-to-gimple.h and renamed to
29197         graphite_regenerate_ast_cloog.
29198         * graphite.c (graphite_transform_loops): gloog is renamed
29199         to graphite_regenerate_ast_cloog.
29201 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29203         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29204         type is complete.
29205         (write_ts_type_common_tree_pointers): Do not stream fields not set
29206         for incomplete types; do not stream duplicated fields for variants;
29207         sanity check that variant and type match.
29208         (write_ts_type_non_common_tree_pointers): Likewise.
29209         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29210         TYPE_SIZE whether type is complete.
29211         (lto_input_ts_type_common_tree_pointers): Do same changes as in
29212         write_ts_type_common_tree_pointers
29213         (lto_input_ts_type_non_common_tree_pointers): Likewise.
29215 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29217         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
29219 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29221         * tree-inline.c (remap_type_1): Do not duplicate fields
29222         that are shared in between type and its main variant.
29224 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29226         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
29227         of the type.
29228         (ipa_set_ancestor_jf) Likewise.
29229         (check_stmt_for_type_change): Check that we work on main variant.
29230         (detect_type_change): Look into main variant.
29231         (compute_known_type_jump_func): Check that main variant has BINFO.
29233 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29235         * ipa-devirt.c (set_type_binfo): New function.
29236         (add_type_duplicate): Use it.
29237         (get_odr_type): Sanity check that binfos points to main variants.
29238         (get_class_context): Be sure the context's outer_type is main variant.
29239         (contains_type_p): Walk main variant.
29240         (get_polymorphic_call_info_for_decl): Set outer_type to be
29241         main variant.
29242         (get_polymorphic_call_info): Likewise.
29243         (possible_polymorphic_call_targets): Sanity check that we operate
29244         on main variant.
29246 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
29248         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
29250 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29252         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
29253         accidental change due to wide-int branch merge.
29255 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29257         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
29258         compressed debug support.
29259         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
29260         * configure: Regenerate.
29261         * config.in: Regenerate.
29262         * common.opt (compressed_debug_sections): New enum.
29263         (gz, gz=): New options.
29264         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
29265         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
29266         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
29267         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
29268         LINK_COMPRESS_DEBUG_SPEC.
29269         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
29270         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
29271         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
29272         (Debugging Options): Document -gz[=type].
29274 2014-06-27  Martin Jambor  <mjambor@suse.cz>
29276         PR ipa/61160
29277         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
29278         args_to_skip, use those from node instead.  Copy args_to_skip and
29279         combined_args_to_skip from node to the new thunk.
29280         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
29281         (cgraph_create_virtual_clone): Moved computation of
29282         combined_args_to_skip...
29283         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
29285 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
29287         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
29288         redundant diagnostic machinary.
29290 2014-06-27  Richard Biener  <rguenther@suse.de>
29292         * tree-ssa-math-opts.c (bswap_replace): Fix
29293         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
29295 2014-06-27  Martin Liska  <mliska@suse.cz>
29297         * gimple.h (gimple_location_safe): New function introduced.
29298         * cgraphunit.c (walk_polymorphic_call_targets): Usage
29299         of gimple_location_safe replaces gimple_location.
29300         (gimple_fold_call): Likewise.
29301         * ipa-devirt.c (ipa_devirt): Likewise.
29302         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29303         * ipa.c (walk_polymorphic_call_targets): Likewise.
29304         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29306 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
29308         PR tree-optimization/57233
29309         PR tree-optimization/61299
29310         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
29311         functions.
29312         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
29313         would be lowered to scalar shifts, check if corresponding
29314         shifts and vector BIT_IOR_EXPR are supported and don't lower
29315         or lower just to narrower vector type in that case.
29316         * expmed.c (expand_shift_1): Fix up handling of vector
29317         shifts and rotates.
29319 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
29321         PR target/61586
29322         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
29324 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
29326         * doc/invoke.texi (-fsemantic-interposition): Document.
29327         * common.opt (fsemantic-interposition): New flag.
29328         * varasm.c (decl_replaceable_p): Use it.
29330 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29332         PR target/61542
29333         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
29334         extraction other than index 3.
29336 2014-06-26  Teresa Johnson  <tejohnson@google.com>
29338         * doc/invoke.texi: Fix typo.
29339         * dumpfile.c: Add support for documented -fdump-* options
29340         optimized/missed/note/optall.
29342 2014-06-26  Martin Jambor  <mjambor@suse.cz>
29344         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
29345         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
29346         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
29347         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
29348         * opts.c (default_options_optimization): Set
29349         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
29350         * doc/invoke.texi (allow-load-data-races)
29351         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
29352         (allow-store-data-races): Document the new default.
29354 2014-06-26  Martin Jambor  <mjambor@suse.cz>
29356         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
29357         renamed to ipa_impossible_devirt_target.  Fix typo.
29358         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
29359         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
29360         ipa_impossible_devirt_target.
29362 2014-06-26  Richard Biener  <rguenther@suse.de>
29364         PR tree-optimization/61607
29365         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
29366         explaining why we restrict copies on loop depth.
29367         * tree-ssa-dom.c (cprop_operand): Remove restriction on
29368         on loop depth.
29369         (record_equivalences_from_phis): Instead add it here.
29371 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
29373         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
29374         (LTO_WRAPPER_OBJS): New variable.
29375         (lto-wrapper$(exeext)): Use it.
29376         * collect2.c: Include "collect-utils.h".
29377         (verbose, debug): Remove variables.
29378         (at_file_supplied): No longer static.
29379         (tool_name): New variable.
29380         (do_wait, fork_execute, maybe_unlink): Don't declare.
29381         (tool_cleanup): No longer static.
29382         (notice): Remove function.
29383         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
29384         fork_execute calls.
29385         (collect_wait, do_wait, collect_execute): Remove functions.
29386         (maybe_unlink): No longer static.
29387         * collect2.h (verbose, debug): Don't declare.
29388         (at_file_supplied): Declare.
29389         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
29390         changed.
29391         (collect_execute): Replace with implementation from collect2, plus a
29392         new arg use_atfile.  All callers changed.
29393         (collect_wait): Replace with implementation from collect2.
29394         (maybe_unlink_file): Remove function.
29395         (fork_execute): Replace with implementation from collect2, plus a
29396         new arg use_atfile.  All callers changed.
29397         (do_wait): Add call to utils_cleanup to the error path.
29398         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
29399         (tool_cleanup): Adjust declarations.
29400         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
29401         * tlink.c: Include "collect-utils.h".
29402         (tlink_execute): New arg use_atfile.  All callers changed.
29403         (tlink_init, tlink_execute): Remove declarations.
29405         * collect-utils.c (save_temps): New variable.
29406         (do_wait): Use it instead of debug.  Use fatal_error.
29407         * collect-utils.h (save_temps): Declare.
29408         * collect2.c (verbose): Rename from vflag.  All uses changed.
29409         (tool_cleanup): New function, copied from collect_atexit.
29410         (collect_atexit, handler): Just call it.
29411         * collect2.h (verbose): Declaration renamed from vflag.
29412         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
29413         debug.
29415         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
29416         (lto-wrapper$(exeext)): Link with collect-utils.o.
29417         * collect-utils.c: New file.
29418         * collect-utils.h: New file.
29419         * lto-wrapper.c: Include "collect-utils.h".
29420         (args_name): Delete variable.
29421         (tool_name): New variable.
29422         (tool_cleanup): New function.
29423         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
29424         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
29425         (fork_execute): Remove functions.
29427 2014-06-26  Nick Clifton  <nickc@redhat.com>
29429         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
29431         * doc/extend.texi (Function Attributes): Fix typo in description
29432         of RX vector attribute.
29434 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
29436         * config.gcc (supported_defaults): Error when passing either
29437         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
29439 2014-06-26  Richard Biener  <rguenther@suse.de>
29441         * tree-ssa-dom.c (cprop_operand): Remove restriction on
29442         propagating volatile pointers.
29444 2014-06-26  Richard Biener  <rguenther@suse.de>
29446         PR tree-optimization/61607
29447         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
29448         loop if we redirected its latch edge.
29449         (thread_block_1): Do not cancel loops prematurely.
29451 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
29453         * toplev.c (backend_init_target): Move init_emit_regs and
29454         init_regs to...
29455         (backend_init) ... here; skip ira_init_once and backend_init_target.
29456         (target_reinit) ... and here; clear
29457         this_target_rtl->lang_dependent_initialized.
29458         (lang_dependent_init_target): Clear
29459         this_target_rtl->lang_dependent_initialized;
29460         break out rtl initialization to ...
29461         (initialize_rtl): ... here; call also backend_init_target
29462         and ira_init_once.
29463         * toplev.h (initialize_rtl): New function.
29464         * function.c: Include toplev.h
29465         (init_function_start): Call initialize_rtl.
29466         * rtl.h (target_rtl): Add target_specific_initialized,
29467         lang_dependent_initialized.
29469 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
29470             Jakub Jelinek  <jakub@redhat.com>
29472         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
29474 2014-06-25  Tom de Vries  <tom@codesourcery.com>
29476         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
29478 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29480         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
29481         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
29482         Issue a strict overflow warning if appropriate.
29484 2014-06-25  Martin Liska  <mliska@suse.cz>
29486         IPA REF refactoring
29487         * Makefile.in: Removed header file (ipa-ref-inline.h).
29488         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
29489         called.
29490         (cgraph_speculative_call_info): Likewise.
29491         (cgraph_for_node_thunks_and_aliases): Likewise.
29492         (cgraph_for_node_and_aliases): Likewise.
29493         (verify_cgraph_node): Likewise.
29494         * cgraph.h: Batch of IPA REF functions become member functions of
29495         symtab_node: add_reference, maybe_add_reference, clone_references,
29496         clone_referring, clone_reference, find_reference,
29497         remove_stmt_references, remove_all_references,
29498         remove_all_referring, dump_references, dump_referring,
29499         has_alias_p, iterate_reference, iterate_referring.
29500         * cgraphbuild.c (record_reference): New IPA REF function used.
29501         (record_type_list): Likewise.
29502         (record_eh_tables): Likewise.
29503         (mark_address): Likewise.
29504         (mark_load): Likewise.
29505         (mark_store): Likewise.
29506         (pass_build_cgraph_edges): Likewise.
29507         (rebuild_cgraph_edge): Likewise.
29508         (cgraph_rebuild_references): Likewise.
29509         (pass_remove_cgraph_callee_edges): Likewise.
29510         * cgraphclones.c (cgraph_clone_node): Likewise.
29511         (cgraph_create_virtual_clone): Likewise.
29512         (cgraph_materialize_clone): Likewise.
29513         (cgraph_materialize_all_clones): Likewise.
29514         * cgraphunit.c (cgraph_reset_node): Likewise.
29515         (cgraph_reset_node): Likewise.
29516         (analyze_function): Likewise.
29517         (assemble_thunks_and_aliases): Likewise.
29518         (expand_function): Likewise.
29519         * ipa-comdats.c (propagate_comdat_group): Likewise.
29520         (enqueue_references): Likewise.
29521         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
29522         (create_specialized_node): Likewise.
29523         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
29524         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
29525         * ipa-inline.c (reset_edge_caches): Likewise.
29526         (update_caller_keys): Likewise.
29527         (execute): Likewise.
29528         * ipa-prop.c (remove_described_reference): Likewise.
29529         (propagate_controlled_uses): Likewise.
29530         (ipa_edge_duplication_hook): Likewise.
29531         (ipa_modify_call_arguments): Likewise.
29532         * ipa-pure-const.c (propagate_pure_const): Likewise.
29533         * ipa-ref-inline.h: Header file removed, functions moved
29534         to symtab_node class.
29535         * ipa-ref.c (remove_reference): New class member function.
29536         (cannot_lead_to_return): New class member function.
29537         (referring_ref_list): Likewise.
29538         (referred_ref_list): Likewise.
29539         Rest of functions moved to symtab_node class.
29540         * ipa-ref.h: New member functions remove_reference,
29541         cannot_lead_to_return, referring_ref_list, referred_ref_list added
29542         to ipa_ref class.
29543         ipa_ref_list class has new member functions: first_reference,
29544         first_referring, clear, nreferences.
29545         * ipa-reference.c (analyze_function): New IPA REF function used.
29546         (write_node_summary_p): Likewise.
29547         (ipa_reference_write_optimization_summary): Likewise.
29548         * ipa-split.c (split_function): Likewise.
29549         * ipa-utils.c (ipa_reverse_postorder): Likewise.
29550         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
29551         (function_and_variable_visibility): Likewise.
29552         * ipa.c (has_addr_references_p): Likewise.
29553         (process_references): Argument type changed.
29554         (symtab_remove_unreachable_nodes): New IPA REF function used.
29555         (process_references): Likewise.
29556         (set_writeonly_bit): Likewise.
29557         * lto-cgraph.c: Implementation of new symtab_node member functions
29558         that uses new IPA REF functions.
29559         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
29560         function used.
29561         * lto-streamer-out.c (output_symbol_p): Likewise.
29562         * lto-streamer.h (referenced_from_this_partition_p): Argument type
29563         changed.
29564         * symtab.c: Implementation of new IPA REF API.
29565         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
29566         (ipa_tm_create_version): Likewise.
29567         (ipa_tm_execute): Likewise.
29568         * tree-emutls.c (gen_emutls_addr): Likewise.
29569         * tree-inline.c (copy_bb): Likewise.
29570         (delete_unreachable_blocks_update_callgraph): Likewise.
29571         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
29572         (varpool_for_node_and_aliases): Likewise.
29574 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
29576         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
29578 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
29580         PR bootstrap/61598
29581         * fold-const.c (fold_checksum_tree): Use a hash_table of const
29582         tree_node * instead of tree_node *.
29583         (fold): Adjust.
29584         (print_fold_checksum): Likewise.
29585         (fold_check_failed): Likewise.
29586         (debug_fold_checksum): Likewise.
29587         (fold_build1_stat_loc): Likewise.
29588         (fold_build2_stat_loc): Likewise.
29589         (fold_build3_stat_loc): Likewise.
29590         (fold_build_call_array_loc): Likewise.
29592 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
29594         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
29595         implementation with call to...
29596         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
29597         function.
29598         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
29599         Declare.
29601 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
29603         PR tree-optimization/57742
29604         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
29605         after replacing the statement.
29607 2014-06-25  Nick Clifton  <nickc@redhat.com>
29609         * config/v850/v850.c (GHS_default_section_names): Change to const
29610         char * type.
29611         (GHS_current_section_names): Likewise.
29612         (v850_insert_attributes): Do not build strings, just assign the
29613         names directly.  Change the type of 'chosen_section' to const
29614         char*.
29615         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
29616         directly to the array entry.
29617         * config/v850/v850.h (GHS_default_section_names): Change to const
29618         char * type.
29619         (GHS_current_section_names): Likewise.
29621 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
29623         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
29624         (LANG_HOOKS_DECLS): Add it.
29625         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
29626         has correct type.
29627         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
29628         * langhooks.h (struct lang_hooks_for_decls): Add
29629         omp_clause_linear_ctor hook.
29630         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
29631         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
29632         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
29633         combined simd loop use omp_clause_linear_ctor hook.
29635 2014-06-24  Cong Hou  <congh@google.com>
29637         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
29638         pattern recognition.
29639         (type_conversion_p): PROMOTION is true if it's a type promotion
29640         conversion, and false otherwise.  Return true if the given expression
29641         is a type conversion one.
29642         * tree-vectorizer.h: Adjust the number of patterns.
29643         * tree.def: Add SAD_EXPR.
29644         * optabs.def: Add sad_optab.
29645         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
29646         * expr.c (expand_expr_real_2): Likewise.
29647         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
29648         * gimple.c (get_gimple_rhs_num_ops): Likewise.
29649         * optabs.c (optab_for_tree_code): Likewise.
29650         * tree-cfg.c (estimate_operator_cost): Likewise.
29651         * tree-ssa-operands.c (get_expr_operands): Likewise.
29652         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
29653         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
29654         * doc/generic.texi: Add document for SAD_EXPR.
29655         * doc/md.texi: Add document for ssad and usad.
29657 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
29659         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
29660         qualification in cast.
29662 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
29664         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
29665         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
29666         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
29667         (tree_function_decl): ... here.
29668         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
29669         streaming of vindex to ...
29670         (write_ts_function_decl_tree_pointers): ... here.
29671         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
29672         Do not stream DECL_VINDEX.
29673         (lto_input_ts_function_decl_tree_pointers): Stream it here.
29675 2014-06-24  Catherine Moore  <clm@codesourcery.com>
29676             Sandra Loosemore  <sandra@codesourcery.com>
29678         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
29679         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
29680         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
29682 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
29684         * doc/invoke.texi (Warning Options): Remove duplicated
29685         -Wmaybe-uninitialized.
29687 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
29689         PR tree-optimization/57742
29690         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
29691         (handle_builtin_malloc, handle_builtin_memset): New functions.
29692         (strlen_optimize_stmt): Call them.
29693         * passes.def: Move strlen after loop+dom but before vrp.
29695 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
29697         PR target/61570
29698         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
29699         model family 6 CPU with has_longmode never use a CPU without
29700         64-bit support.
29702 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29704         PR target/61570
29705         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
29706         the last change.
29708 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
29710         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
29711         * dominance.c (iterate_fix_dominators): Use hash_map instead of
29712         pointer_map.
29713         * hash-map.h: New file.
29714         * ipa-comdats.c: Use hash_map instead of pointer_map.
29715         * ipa.c: Likewise.
29716         * lto-section-out.c: Adjust.
29717         * lto-streamer.h: Replace pointer_map with hash_map.
29718         * symtab.c (verify_symtab): Likewise.
29719         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
29720         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
29721         * tree-streamer.h: Likewise.
29722         * tree-streamer.c: Adjust.
29723         * pointer-set.h: Remove pointer_map.
29725 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
29727         * hash-table.h: Add a template arg to choose between storing values
29728         and storing pointers to values, and then provide partial
29729         specializations for both.
29730         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
29731         should store, not the type values should point to.
29732         * tree-into-ssa.c (var_info_hasher): Likewise.
29733         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
29734         * tree-complex.c: Adjust.
29735         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
29736         table instead of int_tree_map *.
29737         * tree-parloops.c: Adjust.
29738         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
29739         type is being stored.
29740         * tree-vectorizer.c: Adjust.
29742 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
29744         * hash-table.h: Remove a layer of indirection from hash_table so that
29745         it contains the hash table's data instead of a pointer to the data.
29746         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
29747         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
29748         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
29749         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
29750         fold-const.c, gcse.c, ggc-common.c,
29751         gimple-ssa-strength-reduction.c, gimplify.c,
29752         graphite-clast-to-gimple.c, graphite-dependences.c,
29753         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
29754         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29755         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
29756         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
29757         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
29758         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
29759         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
29760         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
29761         tree-ssa-live.c, tree-ssa-loop-im.c,
29762         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
29763         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
29764         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29765         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
29766         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
29767         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
29768         vtable-verify.c, vtable-verify.h: Adjust.
29770 2014-06-24  Richard Biener  <rguenther@suse.de>
29772         PR tree-optimization/61572
29773         * tree-ssa-sink.c (statement_sink_location): Do not sink
29774         loads from hard registers.
29776 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
29778         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
29779         not mentioned in clauses use private clause if the iterator is
29780         declared in #pragma omp for simd, and when adding lastprivate
29781         instead, add it to the outer #pragma omp for too.  Diagnose
29782         if the variable is private in outer context.  For simd collapse > 1
29783         loops, replace all iterators with temporaries.
29784         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
29785         same even in collapse > 1 loops.
29787         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
29788         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
29789         non-NULL.
29790         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
29791         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
29792         non-NULL.
29793         (gimplify_adjust_omp_clauses): Likewise.
29794         * omp-low.c (lower_rec_simd_input_clauses,
29795         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
29796         safelen the same as safelen(1).
29797         * tree-nested.c (convert_nonlocal_omp_clauses,
29798         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
29799         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
29800         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
29801         Fixup handling of GIMPLE_OMP_TARGET.
29802         (convert_tramp_reference_stmt, convert_gimple_call): Handle
29803         GIMPLE_OMP_TARGET.
29805 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
29807         PR tree-optimization/61554
29808         * tree-ssa-propagate.c: Include "bitmap.h".
29809         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
29810         properly update constructor/destructor.
29811         (substitute_and_fold_dom_walker::before_dom_children):
29812         Remove call to gimple_purge_dead_eh_edges, add bb->index to
29813         need_eh_cleaup instead.
29814         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
29815         need_eh_cleanup.
29817 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
29819         * varpool.c (dump_varpool_node): Dump used_by_single_function.
29820         * tree-pass.h (make_pass_ipa_single_use): New pass.
29821         * cgraph.h (used_by_single_function): New flag.
29822         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
29823         Stream it.
29824         * passes.def (pass_ipa_single_use): Scedule.
29825         * ipa.c (BOTTOM): New macro.
29826         (meet): New function
29827         (propagate_single_user): New function.
29828         (ipa_single_use): New function.
29829         (pass_data_ipa_single_use): New pass.
29830         (pass_ipa_single_use): New pass.
29831         (pass_ipa_single_use::gate): New gate.
29832         (make_pass_ipa_single_use): New function.
29834 2014-06-23  Kai Tietz  <ktietz@redhat.com>
29836         PR target/39284
29837         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
29838         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
29840 2014-06-23  Richard Biener  <rguenther@suse.de>
29842         * tree-ssa-loop.c (gate_loop): New function.
29843         (pass_tree_loop::gate): Call it.
29844         (pass_data_tree_no_loop, pass_tree_no_loop,
29845         make_pass_tree_no_loop): New.
29846         * tree-vectorizer.c: Include tree-scalar-evolution.c
29847         (pass_slp_vectorize::execute): Initialize loops and SCEV if
29848         required.
29849         (pass_slp_vectorize::clone): New method.
29850         * timevar.def (TV_TREE_NOLOOP): New.
29851         * tree-pass.h (make_pass_tree_no_loop): Declare.
29852         * passes.def (pass_tree_no_loop): New pass group with
29853         SLP vectorizer.
29855 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
29857         PR target/61570
29858         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
29859         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
29861 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
29863         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
29864         "yes" where needed.
29866 2014-06-23  Alan Modra  <amodra@gmail.com>
29868         PR bootstrap/61583
29869         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
29870         to zero on debug statements.
29872 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
29874         PR target/60825
29875         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
29876         Ignore third operand if present by marking qualifier_internal.
29878         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
29880         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
29881         vector extension.
29882         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
29883         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
29884         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
29885         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
29886         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
29887         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
29888         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
29889         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
29890         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
29891         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
29892         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
29893         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
29894         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
29895         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
29896         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
29897         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
29898         logic in GCC vector extensions
29900         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
29901         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
29902         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
29903         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
29904         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
29905         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
29906         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
29907         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
29908         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
29909         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
29911         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
29913         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
29914         extensions.
29916         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
29917         (vget_low_s64): Use __GET_LOW macro.
29918         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
29919         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
29920         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
29921         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
29922         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
29924         (vcombine_s64): Use GCC vector extensions; remove cast.
29925         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
29926         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
29927         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
29928         Fix type signature; remove cast.
29930 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
29932         PR target/60825
29933         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
29934         V1DFmode.
29935         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
29936         add V1DFmode
29937         (BUILTIN_VD1): New.
29938         (BUILTIN_VD_RE): Remove.
29939         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
29940         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
29941         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
29942         variant but not df.
29943         (vreinterpretv1df*, vreinterpret*v1df): New.
29944         (vreinterpretdf*, vreinterpret*df): Remove.
29945         * config/aarch64/aarch64-simd.md (aarch64_create,
29946         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
29947         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
29948         (VD1): New.
29949         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
29950         (vcreate_f64): Remove cast, use v1df builtin.
29951         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
29952         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
29953         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
29954         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
29955         vmov_n_f64, vst1_f64): Use gcc vector extensions.
29956         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
29957         add range check using __builtin_aarch64_im_lane_boundsi.
29958         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
29959         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
29960         type signature, use gcc vector extensions.
29961         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
29962         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
29963         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
29964         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
29965         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
29966         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
29967         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
29968         vreinterpret_u64_f64): Use v1df builtin not df.
29970 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
29972         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
29973         vector registers.
29975 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
29977         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
29978         priority directly.
29980 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29982         * loop-invariant.c (pre_check_invariant_p): New function.
29983         (find_invariant_insn): Call pre_check_invariant_p.
29985 2014-06-22  Richard Henderson  <rth@redhat.com>
29987         PR target/61565
29988         * compare-elim.c (struct comparison): Add eh_note.
29989         (find_comparison_dom_walker::before_dom_children): Don't eliminate
29990         a redundant comparison in a different EH region.  Purge EH edges if
29991         necessary.
29993 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
29995         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
29996         (var_shift): Use it.
29997         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
29998         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
29999         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
30000         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
30001         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
30002         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
30003         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
30004         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
30005         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
30006         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
30007         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
30008         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
30009         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
30010         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
30011         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
30012         *rotldi3_internal15be): Use the new attribute.  Merge register and
30013         integer alternatives.
30015 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
30017         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
30018         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
30019         split, *ashrdi3_internal3 and split): Delete, merge into...
30020         (ashr<mode>3): New expander.
30021         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
30022         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
30024 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
30026         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
30027         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
30028         *rotldi3_internal3 and split): Delete, merge into...
30029         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
30030         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
30031         Use "rotlw" extended mnemonic.
30033 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
30035         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
30036         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
30037         and split, *ashldi3_internal3 and split): Delete, merge into...
30038         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
30039         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
30041 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
30043         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
30044         (lshrsi3, two anonymous define_insns and define_splits,
30045         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
30046         *lshrdi3_internal3 and split): Delete, merge into...
30047         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
30048         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
30050 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
30052         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
30053         Remove "O" alternative.
30055 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
30057         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
30058         (mips_move_from_gpr_cost): Likewise.
30059         (mips_register_move_cost): Update accordingly.
30060         (mips_secondary_reload_class): Remove name of in_p.
30062 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
30064         PR target/61503
30065         * config/i386/i386.md (x86_64_shrd, x86_shrd,
30066         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
30068 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30070         * config/nios2/nios2.c: Include "builtins.h".
30072 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
30074         * cgraph.h (tls_model_names): New variable.
30075         * print-tree.c (print_node): Simplify.
30076         * varpool.c (tls_model_names): New variable.
30077         (dump_varpool_node): Output tls model.
30079 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
30081         * ipa-visibility.c (function_and_variable_visibility): Disable
30082         temporarily local aliases for some targets.
30084 2014-06-20  Marek Polacek  <polacek@redhat.com>
30086         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
30087         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
30088         into SANITIZE_UNDEFINED.
30089         * doc/invoke.texi: Describe -fsanitize=bounds.
30090         * gimplify.c (gimplify_call_expr): Add gimplification of internal
30091         functions created in the FEs.
30092         * internal-fn.c: Move "internal-fn.h" after "tree.h".
30093         (expand_UBSAN_BOUNDS): New function.
30094         * internal-fn.def (UBSAN_BOUNDS): New internal function.
30095         * internal-fn.h: Don't define internal functions here.
30096         * opts.c (common_handle_option): Add -fsanitize=bounds.
30097         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
30098         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
30099         * tree-core.h: Define internal functions here.
30100         (struct tree_base): Add ifn field.
30101         * tree-pretty-print.c: Include "internal-fn.h".
30102         (dump_generic_node): Handle functions without CALL_EXPR_FN.
30103         * tree.c (get_callee_fndecl): Likewise.
30104         (build_call_expr_internal_loc): New function.
30105         * tree.def (CALL_EXPR): Update description.
30106         * tree.h (CALL_EXPR_IFN): Define.
30107         (build_call_expr_internal_loc): Declare.
30108         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
30109         types.
30110         (ubsan_type_descriptor): Change bool parameter to enum
30111         ubsan_print_style.  Adjust the code.  Add handling of
30112         UBSAN_PRINT_ARRAY.
30113         (ubsan_expand_bounds_ifn): New function.
30114         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
30115         (ubsan_build_overflow_builtin): Likewise.
30116         (instrument_bool_enum_load): Likewise.
30117         (ubsan_instrument_float_cast): Likewise.
30118         * ubsan.h (enum ubsan_print_style): New enum.
30119         (ubsan_expand_bounds_ifn): Declare.
30120         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
30122 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30124         * config/rs6000/rs6000.md: Append `DONE' to preparation
30125         statements of `bswap' pattern splitters.
30127 2014-06-20  Tom de Vries  <tom@codesourcery.com>
30129         * target.def (call_fusage_contains_non_callee_clobbers): Update
30130         definition.
30131         * doc/tm.texi: Regenerate.
30133 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
30134             Max Ostapenko  <m.ostapenko@partner.samsung.com>
30136         PR sanitizer/61547
30137         * asan.c (instrument_strlen_call): Fixed instrumentation of
30138         trailing byte.
30140 2014-06-20  Martin Jambor  <mjambor@suse.cz>
30142         PR ipa/61540
30143         * ipa-prop.c (impossible_devirt_target): New function.
30144         (try_make_edge_direct_virtual_call): Use it, also instead of
30145         asserting.
30147 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
30148             Max Ostapenko  <m.ostapenko@partner.samsung.com>
30150         PR sanitizer/61530
30151         * asan.c (build_check_stmt): Add condition.
30153 2014-06-20  Martin Jambor  <mjambor@suse.cz>
30155         PR ipa/61211
30156         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
30157         expanded clones.
30159 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30161         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
30162         Update comments.
30163         (VCONQ): Make comment more helpful.
30164         (VCON): Delete.
30165         * config/aarch64/aarch64-simd.md
30166         (aarch64_sqdmulh_lane<mode>):
30167         Use VCOND for operands 2.  Update lane checking and flipping logic.
30168         (aarch64_sqrdmulh_lane<mode>): Likewise.
30169         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
30170         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
30171         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
30172         attribute of operand 3 to VCOND.
30173         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
30174         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30175         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
30176         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
30177         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30178         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
30179         define_insn.
30180         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
30181         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
30182         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
30183         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
30184         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
30185         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
30186         operand to VCOND.  Update lane flipping and bounds checking logic.
30187         (aarch64_sqdmlal2_lane<mode>): Likewise.
30188         (aarch64_sqdmlsl_lane<mode>): Likewise.
30189         (aarch64_sqdmull_lane<mode>): Likewise.
30190         (aarch64_sqdmull2_lane<mode>): Likewise.
30191         (aarch64_sqdmlal_laneq<mode>):
30192         Replace VCON usage with VCONQ.
30193         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
30194         (aarch64_sqdmlal2_laneq<mode>): Emit
30195         aarch64_sqdmlal2_laneq<mode>_internal insn.
30196         Replace VCON with VCONQ.
30197         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
30198         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
30199         (aarch64_sqdmull_laneq<mode>): Emit
30200         aarch64_sqdmull_laneq<mode>_internal insn.
30201         Replace VCON with VCONQ.
30202         (aarch64_sqdmull2_laneq<mode>): Emit
30203         aarch64_sqdmull2_laneq<mode>_internal insn.
30204         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
30205         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
30206         of 3rd argument to int16x4_t.
30207         (vqdmlalh_lane_s16): Likewise.
30208         (vqdmlslh_lane_s16): Likewise.
30209         (vqdmull_high_lane_s16): Likewise.
30210         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
30211         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
30212         (vqdmlsl_lane_s16): Likewise.
30213         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
30214         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
30215         (vqdmlals_lane_s32): Likewise.
30216         (vqdmlsls_lane_s32): Likewise.
30217         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
30218         (vqdmulls_lane_s32): Likewise.
30219         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
30220         (vqdmlsl_lane_s32): Likewise.
30221         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
30222         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
30223         (vqrdmulhh_lane_s16): Likewise.
30224         (vqdmlsl_high_lane_s16): Likewise.
30225         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
30226         (vqdmlsl_high_lane_s32): Likewise.
30227         (vqrdmulhs_lane_s32): Likewise.
30229 2014-06-20  Tom de Vries  <tom@codesourcery.com>
30231         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
30232         get_call_reg_set_usage.
30234 2014-06-20  Tom de Vries  <tom@codesourcery.com>
30236         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
30237         it contains all call_used_regs.
30239 2014-06-20  Tom de Vries  <tom@codesourcery.com>
30241         * final.c (collect_fn_hard_reg_usage): Add and use variable
30242         function_used_regs.
30244 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
30246         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
30247         (set_init_priority, get_init_priority, set_fini_priority,
30248         get_fini_priority): New methods.
30249         * tree.c (init_priority_for_decl): Remove.
30250         (init_ttree): Do not initialize init priority.
30251         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
30252         (decl_priority_info): Remove.
30253         (decl_init_priority_insert): Rewrite.
30254         (decl_fini_priority_insert): Rewrite.
30255         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
30256         tree_priority_map_marked_p): Remove.
30257         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
30258         * lto-streamer-out.c (hash_tree): Do not hash priorities.
30259         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
30260         not output priorities.
30261         (pack_ts_function_decl_value_fields): Likewise.
30262         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
30263         not input priorities.
30264         (unpack_ts_function_decl_value_fields): Likewise.
30265         * symtab.c (symbol_priority_map): Declare.
30266         (init_priority_hash): Declare.
30267         (symtab_unregister_node): Unregister from priority hash, too.
30268         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
30269         New methods.
30270         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
30271         (symbol_priority_info): New function.
30272         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
30273         New methods.
30274         * tree-core.h (tree_priority_map): Remove.
30276 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
30278         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
30279         0xff to uint64_t before shifting it up.
30281 2014-06-20  Julian Brown  <julian@codesourcery.com>
30282             Chung-Lin Tang  <cltang@codesourcery.com>
30284         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
30285         TARGET_THUMB1_ONLY. Add comments.
30287 2014-06-19  Tom de Vries  <tom@codesourcery.com>
30289         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
30290         return type to void.
30291         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
30293 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30295         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
30296         as "move", from depends_on.
30298 2014-06-19  Terry Guo  <terry.guo@arm.com>
30300         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
30301         stage.
30303 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
30305         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
30306         Remove cr5.
30307         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
30309 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
30311         PR target/61550
30312         * config/sh/sh.c (prepare_move_operands): Don't process TLS
30313         addresses here if reload in progress or completed.
30315 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
30317         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
30318         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
30319         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
30320         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
30321         (mips_register_priority): New function that implements the target
30322         hook TARGET_REGISTER_PRIORITY.
30323         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
30324         (mips_lra_p): Likewise for TARGET_LRA_P.
30325         (TARGET_REGISTER_PRIORITY): Define macro.
30326         (TARGET_SPILL_CLASS): Likewise.
30327         (TARGET_LRA_P): Likewise.
30328         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
30329         classes.
30330         (REG_CLASS_NAMES): Likewise.
30331         (REG_CLASS_CONTENTS): Likewise.
30332         (BASE_REG_CLASS): Use M16_SP_REGS.
30333         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
30334         New set attribute to enable alternatives depending on the register
30335         allocator used.
30336         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
30337         (*lea64): Disable pattern for MIPS16.
30338         * config/mips/mips.opt (mlra): New option.
30340 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
30342         * lra-constraints.c (base_to_reg): New function.
30343         (process_address): Use new function.
30345 2014-06-18  Tom de Vries  <tom@codesourcery.com>
30347         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
30348         * config/aarch64/aarch64.c
30349         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
30350         (aarch64_emit_call_insn): New function.
30351         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
30352         of emit_call_insn.
30353         * config/aarch64/aarch64.md (define_expand "call_internal")
30354         (define_expand "call_value_internal", define_expand "sibcall_internal")
30355         (define_expand "sibcall_value_internal"): New.
30356         (define_expand "call", define_expand "call_value")
30357         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
30358         expand variant and aarch64_emit_call_insn.
30360 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
30361             Tom de Vries  <tom@codesourcery.com>
30363         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
30364         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
30365         Redefine to true.
30366         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
30367         clobbers to CALL_INSN_FUNCTION_USAGE.
30368         (define_expand "sibcall_internal")
30369         (define_expand "sibcall_value_internal"): New.
30370         (define_expand "call", define_expand "call_value"): Add argument to
30371         arm_emit_call_insn.
30372         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
30373         (define_expand "sibcall_value"): Use sibcall_value_internal and
30374         arm_emit_call_insn.
30376 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30378         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
30380 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30382         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
30383         __udivmoddi4.
30385 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30387         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
30388         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
30389         annotations. Fix DWARF information.
30391 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30393         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
30394         __udivmoddi4, and fixups for negative operands.
30396 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30398         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
30400 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30402         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
30403         to __udivmoddi4.
30405 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30407         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
30408         manipulation.
30410 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30412         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
30413         describing register usage on function entry and exit.
30415 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30417         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
30418         (__aeabi_ldivmod): Fix whitespace.
30420 2014-06-18  Andreas Schwab  <schwab@suse.de>
30422         * doc/md.texi (Standard Names): Use @itemx for grouped items.
30423         Remove blank line after @item.
30425 2014-06-18  Richard Henderson  <rth@redhat.com>
30427         PR target/61545
30428         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
30430 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
30432         * config/arm/arm.c (neon_vector_mem_operand): Allow register
30433         POST_MODIFY for neon loads and stores.
30434         (arm_print_operand): Output post-index register for neon loads and
30435         stores.
30437 2014-06-18  Richard Biener  <rguenther@suse.de>
30439         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
30441 2014-06-18  Richard Biener  <rguenther@suse.de>
30443         * tree-pass.h (make_pass_dce_loop): Remove.
30444         * passes.def: Replace pass_dce_loop with pass_dce.
30445         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
30446         changed free niter estimates and reset the scev cache.
30447         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
30448         make_pass_dce_loop): Remove.
30449         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
30450         (fini_copy_prop): Return whether something changed.  Always
30451         let substitute_and_fold perform DCE and free niter estimates
30452         and reset the scev cache if so.
30453         (execute_copy_prop): If sth changed schedule cleanup-cfg.
30454         (pass_data_copy_prop): Do not unconditionally schedule
30455         cleanup-cfg or update-ssa.
30457 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
30459         PR tree-optimization/61518
30460         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
30461         reduction var is used in reduction stmt or phi-function only.
30463 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30465         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
30467 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30469         PR tree-optimization/61517
30470         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
30471         whose rhs's first tree is the source expression instead of the
30472         expression itself.
30473         (find_bswap_or_nop): Likewise.
30474         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
30475         gimple stmt whose rhs's first tree is the source. In the memory source
30476         case, move the stmt to be replaced close to one of the original load to
30477         avoid the problem of a store between the load and the stmt's original
30478         location.
30479         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
30480         signature.
30482 2014-06-18  Andreas Schwab  <schwab@suse.de>
30484         PR rtl-optimization/54555
30485         * postreload.c (move2add_use_add2_insn): Substitute
30486         STRICT_LOW_PART only if it is cheaper.
30488 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
30490         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
30491         Do not use unspec as call operand.  Use memory_operand instead of
30492         memory_nox32_operand and add "m" operand constraint.  Disable
30493         pattern for TARGET_X32.
30494         (*sibcall_pop_memory): Ditto.
30495         (*sibcall_value_memory): Ditto.
30496         (*sibcall_value_pop_memory): Ditto.
30497         (sibcall peepholes): Merge SImode and DImode patterns using
30498         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
30499         Disable pattern for TARGET_X32.  Check if eliminated register is
30500         really dead after call insn.  Generate call RTX without unspec operand.
30501         (sibcall_value peepholes): Ditto.
30502         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
30503         instead of memory_nox32_operand.  Check if eliminated register is
30504         really dead after call insn. Generate call RTX without unspec operand.
30505         (sibcall_value_pop peepholes): Ditto.
30506         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
30508 2014-06-18  Terry Guo  <terry.guo@arm.com>
30510         PR target/61544
30511         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
30512         reach the head.
30514 2014-06-18  Olivier Hainque  <hainque@adacore.com>
30516         * tree-core.h (tree_block): Add an "end_locus" field, allowing
30517         memorization of the end of block source location.
30518         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
30519         * gimplify.c (gimplify_bind_expr): Propagate the block start and
30520         end source location info we have on the block entry/exit code we
30521         generate.
30523 2014-06-18  Richard Biener  <rguenther@suse.de>
30525         * common.opt (fssa-phiopt): New option.
30526         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
30527         but not with -Og.
30528         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
30529         * doc/invoke.texi (-fssa-phiopt): Document.
30531 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30533         * genattrtab.c (n_bypassed): New variable.
30534         (process_bypasses): Initialise n_bypassed.
30535         Count number of bypassed reservations.
30536         (make_automaton_attrs): Allocate space for bypassed reservations
30537         rather than number of bypasses.
30539 2014-06-18  Richard Biener  <rguenther@suse.de>
30541         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
30542         we propagated anything.
30543         (substitute_and_fold_dom_walker::before_dom_children): Something
30544         changed if we propagated into PHI arguments.
30545         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
30546         we removed a stmt.
30548 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
30550         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
30551         vector case.
30552         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
30553         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
30554         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
30555         Introduces alternative way of loads group permutaions.
30556         (vect_transform_grouped_load): Try alternative way of permutations.
30558 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
30560         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
30561         changed in ORT_TARGET region, don't jump to do_outer.
30562         (struct gimplify_adjust_omp_clauses_data): New type.
30563         (gimplify_adjust_omp_clauses_1): Adjust for data being
30564         a struct gimplify_adjust_omp_clauses_data pointer instead
30565         of tree *.  Pass pre_p as a new argument to
30566         lang_hooks.decls.omp_finish_clause hook.
30567         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
30568         splay_tree_foreach to pass both list_p and pre_p.
30569         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
30570         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
30571         gimplify_adjust_omp_clauses callers.
30572         * langhooks.c (lhd_omp_finish_clause): New function.
30573         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
30574         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
30575         * langhooks.h (struct lang_hooks_for_decls): Add a new
30576         gimple_seq * argument to omp_finish_clause hook.
30577         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
30578         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
30579         (scan_omp_parallel, lower_omp_for): When adding
30580         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
30581         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
30582         * tree-nested.c (convert_nonlocal_omp_clauses,
30583         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
30584         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
30586 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
30588         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
30589         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
30591 2014-06-17  Xinliang David Li  <davidxl@google.com>
30593         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
30594         * passes.c (pass_init_dump_file): Do not set initialize
30595         flag to false unconditionally.
30597 2014-06-17  Richard Biener  <rguenther@suse.de>
30599         * genopinit.c (main): Use vec<>::qsort method.
30600         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
30601         Likewise.
30602         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
30604 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
30606         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
30607         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
30608         (mips_move_to_gpr_cost): Remove ST_REGS case.
30609         (mips_move_from_gpr_cost): Likewise.
30610         (mips_register_move_cost): Likewise.
30611         (mips_secondary_reload_class): Likewise.
30613 2014-06-17  Richard Biener  <rguenther@suse.de>
30615         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
30616         (pass_all_optimizations): Move 3rd copy-prop pass from after
30617         fre to before ifcombine/phiopt.
30619 2014-06-17  Richard Biener  <rguenther@suse.de>
30621         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
30622         and allow all blocks to be forwarders.
30624 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
30626         PR target/61483
30627         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
30628         variable 'size'; calculate 'size' right in the front; use
30629         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
30630         pcum->aapcs_stack_words.
30632 2014-06-17  Nick Clifton  <nickc@redhat.com>
30634         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
30635         (umulhi3, mulsidi3, umulsidi3): Likewise.
30637 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
30639         PR middle-end/61508
30640         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
30641         check for section name.
30643 2014-06-17  Richard Biener  <rguenther@suse.de>
30645         * tree-ssa-propagate.c: Include domwalk.h.
30646         (substitute_and_fold): Outline main worker into a domwalker ...
30647         (substitute_and_fold_dom_walker::before_dom_children): ... here.
30648         Schedule stmts we can fully propagate for removal.  Remove
30649         poor-mans DCE.
30650         (substitute_and_fold): Apply a dominator walk to perform
30651         substitution.  Process stmts scheduled for removal here.
30653 2014-06-17  Richard Biener  <rguenther@suse.de>
30655         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
30656         of PHI node moving.
30658 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
30660         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
30661         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
30662         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
30663         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
30664         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
30665         TARGET_HARD_FLOAT.
30666         (get_fpscr) : Likewise.
30668 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
30670         PR rtl-optimization/61325
30671         * lra-constraints.c (valid_address_p): Add forward declaration.
30672         (simplify_operand_subreg): Check address validity before and after
30673         alter_reg of memory subreg.
30675 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
30677         * config/i386/i386.c (decide_alg): Correctly handle
30678         maximum size of stringop algorithm.
30680 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
30682         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
30684 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
30686         PR rtl-optimization/61522
30687         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
30689 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
30691         Revert:
30692         * symtab.c (symtab_node::reset_section): New method.
30693         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
30694         for localization.
30695         * cgraph.h (reset_section): Declare.
30696         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
30697         do not consider comdat locals.
30698         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
30699         for new symbol.
30700         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
30701         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
30702         reset sections of symbols dragged out of the comdats.
30703         (function_and_variable_visibility): Reset sections of
30704         localized symbols.
30706 2014-06-16  Richard Biener  <rguenther@suse.de>
30708         PR tree-optimization/61482
30709         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
30710         [-INF(OVF), +INF(OVF)] range.
30712 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30714         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
30715         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
30716         handling 32-bit multiplication.
30718 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
30720         PR middle-end/61430
30721         * lra-lives.c (process_bb_lives): Skip creating copy during
30722         insn scan when src/dest has constrained to same regno.
30724 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
30726         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
30727         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
30729 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
30731         * asan.c (check_func): New function.
30732         (maybe_create_ssa_name): Likewise.
30733         (build_check_stmt_with_calls): Likewise.
30734         (use_calls_p): Likewise.
30735         (report_error_func): Change interface.
30736         (build_check_stmt): Allow non-integer lengths; add support
30737         for new parameter.
30738         (asan_instrument): Likewise.
30739         (instrument_mem_region_access): Moved code to build_check_stmt.
30740         (instrument_derefs): Likewise.
30741         (instrument_strlen_call): Likewise.
30742         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
30743         * doc/invoke.texi: Describe new parameter.
30744         * params.def: Define new parameter.
30745         * params.h: Likewise.
30746         * sanitizer.def: Describe new builtins.
30748 2014-06-16  Richard Biener  <rguenther@suse.de>
30750         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30751         Make all defs available at the end.
30752         (eliminate): If we remove a PHI node schedule cfg-cleanup.
30754 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
30756         PR plugins/45078
30757         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
30759 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
30761         PR bootstrap/61516
30762         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
30763         initialization.  Replace remaining use of uid.
30765 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
30767         * c-family/c-common.c (handle_tls_model_attribute): Use
30768         set_decl_tls_model.
30769         * c-family/c-common.c (handle_tls_model_attribute): Use
30770         set_decl_tls_model.
30771         * cgraph.h (struct varpool_node): Add tls_model.
30772         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
30773         * tree.h (DECL_TLS_MODEL): Update.
30774         (DECL_THREAD_LOCAL_P): Check that variable is static.
30775         (decl_tls_model): Declare.
30776         (set_decl_tls_model): Declare.
30777         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
30778         set symbol prorperties.
30779         (get_emutls_init_templ_addr): Cleanup.
30780         (new_emutls_decl): Update.
30781         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
30782         (lto_input_varpool_node): Likewise.
30783         * lto-streamer-out.c (hash_tree): Likewise.
30784         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
30785         not stream DECL_TLS_MODEL.
30786         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
30787         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
30789 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30791         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
30793 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30795         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
30796         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
30797         lists.
30798         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
30799         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
30800         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
30801         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
30802         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
30803         (df_get_artificial_defs, df_get_artificial_uses)
30804         (df_single_def, df_single_use): Update accordingly.
30805         (df_refs_chain_dump): Take the first element in a linked list as
30806         parameter, rather than a pointer to an array of pointers.
30807         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
30808         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
30809         (df_chain_create_bb_process_use): Likewise.
30810         (df_md_bb_local_compute_process_def): Likewise.
30811         * fwprop.c (process_defs, process_uses): Likewise.
30812         (register_active_defs, update_uses): Likewise.
30813         (forward_propagate_asm): Update for new df_ref linking.
30814         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
30815         (df_null_ref_rec, df_null_mw_rec): Likewise.
30816         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
30817         explicitly.
30818         (df_scan_free_bb_info): Remove check for null artificial_defs.
30819         (df_install_ref_incremental): Adjust for new df_ref linking.
30820         Use a single-element insertion rather than a full sort.
30821         (df_ref_chain_delete_du_chain): Take the first element
30822         in a linked list as parameter, rather than a pointer to an array of
30823         pointers.
30824         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
30825         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
30826         (df_insn_info_delete): Remove check for null defs and call to
30827         df_scan_free_mws_vec.
30828         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
30829         null rather than df_null_*_rec.
30830         (df_insn_rescan_debug_internal): Likewise, and update null
30831         checks in the same way.  Remove check for null defs.
30832         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
30833         Move a single element rather doing a full sort.
30834         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
30835         linking.
30836         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
30837         Initialize df_ref and df_mw_hardreg lists to null rather than
30838         df_null_*_rec.
30839         (df_ref_compare): Take df_refs as parameter, transferring the
30840         old interface to...
30841         (df_ref_ptr_compare): ...this new function.
30842         (df_sort_and_compress_refs): Update accordingly.
30843         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
30844         old interface to...
30845         (df_mw_ptr_compare): ...this new function.
30846         (df_sort_and_compress_mws): Update accordingly.
30847         (df_install_refs, df_install_mws): Return a linked list rather than
30848         an array of pointers.
30849         (df_refs_add_to_chains): Assert that old lists are empty rather
30850         than freeing them.
30851         (df_insn_refs_verify): Don't handle null defs speciailly.
30852         * web.c (union_match_dups): Update for new df_ref linking.
30854 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30856         * df.h (df_ref_create, df_ref_remove): Delete.
30857         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
30858         (df_ref_remove): Likewise.
30860 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30862         * df.h (df_single_def, df_single_use): New functions.
30863         * ira.c (find_moveable_pseudos): Use them.
30865 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30867         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
30868         * df-problems.c (df_note_bb_compute): Use it.
30869         * regstat.c (regstat_bb_compute_ri): Likewise.
30871 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30873         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
30874         * cse.c (cse_extended_basic_block): Use them.
30875         * dce.c (mark_artificial_use): Likewise.
30876         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
30877         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
30878         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
30879         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
30880         (df_simulate_initialize_backwards): Likewise.
30881         (df_simulate_finalize_backwards): Likewise.
30882         (df_simulate_initialize_forwards): Likewise.
30883         (df_md_simulate_artificial_defs_at_top): Likewise.
30884         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
30885         * regrename.c (init_rename_info): Likewise.
30886         * regstat.c (regstat_bb_compute_ri): Likewise.
30887         (regstat_bb_compute_calls_crossed): Likewise.
30889 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
30891         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
30892         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
30893         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
30894         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
30895         * combine.c (create_log_links): Likewise.
30896         * compare-elim.c (find_flags_uses_in_insn): Likewise.
30897         (try_eliminate_compare): Likewise.
30898         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
30899         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
30900         (remove_reg_equal_equiv_notes_for_defs): Likewise.
30901         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
30902         (word_dce_process_block, dce_process_block): Likewise.
30903         * ddg.c (def_has_ccmode_p): Likewise.
30904         * df-core.c (df_bb_regno_first_def_find): Likewise.
30905         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
30906         * df-problems.c (df_rd_simulate_one_insn): Likewise.
30907         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
30908         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
30909         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
30910         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
30911         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
30912         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
30913         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
30914         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
30915         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
30916         * fwprop.c (local_ref_killed_between_p): Likewise.
30917         (all_uses_available_at, free_load_extend): Likewise.
30918         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
30919         * hw-doloop.c (scan_loop): Likewise.
30920         * ifcvt.c (dead_or_predicable): Likewise.
30921         * init-regs.c (initialize_uninitialized_regs): Likewise.
30922         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
30923         (process_bb_node_lives): Likewise.
30924         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
30925         (find_moveable_pseudos): Likewise.
30926         * loop-invariant.c (check_dependencies, record_uses): Likewise.
30927         * recog.c (peep2_find_free_register): Likewise.
30928         * ree.c (get_defs): Likewise.
30929         * regstat.c (regstat_bb_compute_ri): Likewise.
30930         (regstat_bb_compute_calls_crossed): Likewise.
30931         * sched-deps.c (find_inc, find_mem): Likewise.
30932         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
30933         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
30934         * shrink-wrap.c (requires_stack_frame_p): Likewise.
30935         (prepare_shrink_wrap): Likewise.
30936         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
30937         * web.c (union_defs, pass_web::execute): Likewise.
30938         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
30939         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
30941 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
30943         * lra-assign.c (assign_by_spills): Add code to assign vector regs
30944         to inheritance pseudos.
30945         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
30947 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
30949         PR target/61415
30950         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
30951         (BU_MISC_2): Rename to ...
30952         (BU_LDBL128_2): ... this.
30953         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
30954         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
30955         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
30956         RS6000_BTM_LDBL128.
30957         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
30958         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
30959         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
30960         (unpacktf_1): Likewise.
30961         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
30962         (__builtin_longdouble_dw1): Likewise.
30963         * doc/sourcebuild.texi (longdouble128): Document.
30965 2014-06-13  Jeff Law  <law@redhat.com>
30967         PR rtl-optimization/61094
30968         PR rtl-optimization/61446
30969         * ree.c (combine_reaching_defs): Get the mode for the copy from
30970         the extension insn rather than the defining insn.
30972 2014-06-13  Dehao Chen  <dehao@google.com>
30974         * dwarf2out.c (add_linkage_name): Emit more linkage name.
30976 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
30978         * doc/install.texi (--enable-linker-plugin-configure-flags)
30979         (--enable-linker-plugin-flags): Document new flags.
30981 2014-06-13  Martin Jambor  <mjambor@suse.cz>
30983         PR ipa/61186
30984         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
30985         cache_token if returning early.
30987 2014-06-13  Nick Clifton  <nickc@redhat.com>
30989         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
30990         requested alignment is active.
30991         (LABEL_ALIGN): Likewise.
30992         (LOOP_ALIGN): Likewise.
30994 2014-06-13  Richard Biener  <rguenther@suse.de>
30996         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30997         Rewrite to propagate the VN result into all uses where
30998         possible and to remove stmts becoming dead because of that.
30999         (eliminate): Generalize stmt removal handling, remove in
31000         reverse dominator order to support proper debug stmt
31001         generation.  Update stmts before removing stmts.
31002         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
31004 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31006         PR tree-optimization/61375
31007         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
31008         symbolic number cannot be represented in an uint64_t.
31009         (find_bswap_or_nop_1): Likewise.
31011 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
31013         * symtab.c (symtab_node::reset_section): New method.
31014         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31015         for localization.
31016         * cgraph.h (reset_section): Declare.
31017         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31018         do not consider comdat locals.
31019         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31020         for new symbol.
31021         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31022         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31023         reset sections of symbols dragged out of the comdats.
31024         (function_and_variable_visibility): Reset sections of
31025         localized symbols.
31027 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
31029         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
31030         to use symtab and decl_binds_to_current_def_p
31031         * tree-vectorizer.c (increase_alignment): Increase alignment
31032         of alias target, too.
31034 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
31036         PR middle-end/61486
31037         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
31038         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
31039         if outer combined construct is distribute.
31040         (gimplify_omp_for): For OMP_DISTRIBUTE set
31041         gimplify_omp_ctxp->distribute.
31042         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
31043         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
31044         mapping into decl map.
31046 2014-06-12  Jason Merrill  <jason@redhat.com>
31048         * common.opt (fabi-version): Change default to 0.
31050 2014-06-12  Jason Merrill  <jason@redhat.com>
31052         * toplev.c (process_options): Reject -fabi-version=1.
31054 2014-06-12  Jeff Law  <law@redhat.com>
31056         PR tree-optimization/61009
31057         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
31058         value when we stop processing a block due to problematic PHIs.
31060 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
31062         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
31063         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
31064         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
31065         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
31066         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
31067         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
31068         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
31069         are not in the spec.
31071 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
31073         PR target/59843
31074         * config/aarch64/aarch64-modes.def: Add V1DFmode.
31075         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
31076         Support V1DFmode.
31078 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
31080         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
31082 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
31084         PR target/61443
31085         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
31086         loading from address spaces.
31088 2014-06-12  Martin Liska  <mliska@suse.cz>
31090         PR ipa/61462
31091         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
31092         statement is reachable.
31094 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
31096         * symtab.c (section_hash): New hash.
31097         (symtab_unregister_node): Clear section before freeing.
31098         (hash_section_hash_entry): New haser.
31099         (eq_sections): New function.
31100         (symtab_node::set_section_for_node): New method.
31101         (set_section_1): Update.
31102         (symtab_node::set_section): Take string instead of tree as parameter.
31103         (symtab_resolve_alias): Update.
31104         * cgraph.h (section_hash_entry_d): New structure.
31105         (section_hash_entry): New typedef.
31106         (cgraph_node): Change comdat_group_ to x_comdat_group,
31107         change section_ to x_section and turn into section_hash_entry;
31108         update accestors; put set_section_for_node offline.
31109         * tree.c (decl_section_name): Turn into string.
31110         (set_decl_section_name): Change parameter to be string.
31111         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
31112         * sdbout.c (sdbout_one_type): Update.
31113         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
31114         * varasm.c (IN_NAMED_SECTION, get_named_section,
31115         resolve_unique_section, hot_function_section, get_named_text_section,
31116         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
31117         make_decl_rtl, default_unique_section): Update.
31118         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
31119         (c6x_elf_unique_section): Update.
31120         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
31121         * config/pa/pa.c (pa_function_section): Update.
31122         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
31123         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
31124         * config/arc/arc.c (arc_in_small_data_p): Update.
31125         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
31126         * config/mcore/mcore.c (mcore_unique_section): Update.
31127         * config/mips/mips.c (mips16_build_function_stub): Update.
31128         (mips16_build_call_stub): Update.
31129         (mips_function_rodata_section): Update.
31130         (mips_in_small_data_p): Update.
31131         * config/score/score.c (score_in_small_data_p): Update.
31132         * config/rx/rx.c (rx_in_small_data): Update.
31133         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
31134         (rs6000_xcoff_asm_named_section): Update.
31135         (rs6000_xcoff_unique_section): Update.
31136         * config/frv/frv.c (frv_string_begins_with): Update.
31137         (frv_in_small_data_p): Update.
31138         * config/v850/v850.c (v850_encode_data_area): Update.
31139         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
31140         (bfin_handle_l1_data_attribute): Update.
31141         (bfin_handle_l2_attribute): Update.
31142         * config/mep/mep.c (mep_unique_section): Update.
31143         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
31144         Update.
31145         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
31146         (h8300_handle_tiny_data_attribute): Update.
31147         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
31148         (m32r_in_small_data_p): Update.
31149         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
31150         * config/i386/i386.c (ix86_in_large_data_p): Update.
31151         * config/i386/winnt.c (i386_pe_unique_section): Update.
31152         * config/darwin.c (darwin_function_section): Update.
31153         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
31154         * tree-emutls.c (get_emutls_init_templ_addr): Update.
31155         (new_emutls_decl): Update.
31156         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
31157         input_varpool_node): Update.
31158         (ead_string_cst): Turn to ...
31159         (read_string): ... this one.
31160         * dwarf2out.c (secname_for_decl): Update.
31161         * asan.c (asan_protect_global): Update.
31163 2014-06-11  DJ Delorie  <dj@redhat.com>
31165         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
31166         cache lines.
31167         * config/rx/rx.c (rx_option_override): Likewise.
31168         (rx_align_for_label): Likewise.
31170         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
31172 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
31174         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
31175         prototype.
31177 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31179         * common.md: New file.
31180         * doc/md.texi: Update description of generic, machine-independent
31181         constraints.
31182         * config/s390/constraints.md (e): Delete.
31183         * Makefile.in (md_file): Include common.md.
31184         * config/m32c/t-m32c (md_file): Likewise.
31185         * genpreds.c (general_mem): New array.
31186         (generic_constraint_letters): Remove constraints now defined by
31187         common.md.
31188         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31189         Allow the first character to be '<' or '>' as well.
31190         * genoutput.c (general_mem): New array.
31191         (indep_constraints): Remove constraints now defined by common.md.
31192         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31193         Remove special handling of 'm'.
31194         * ira-costs.c (record_reg_classes): Remove special handling of
31195         constraints now defined by common.md.
31196         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31197         * ira-lives.c (single_reg_class): Likewise.
31198         (ira_implicitly_set_insn_hard_regs): Likewise.
31199         * lra-constraints.c (reg_class_from_constraints): Likewise.
31200         (process_alt_operands, process_address, curr_insn_transform): Likewise.
31201         * postreload.c (reload_cse_simplify_operands): Likewise.
31202         * reload.c (push_secondary_reload, scratch_reload_class)
31203         (find_reloads, alternative_allows_const_pool_ref): Likewise.
31204         * reload1.c (maybe_fix_stack_asms): Likewise.
31205         * targhooks.c (default_secondary_reload): Likewise.
31206         * stmt.c (parse_output_constraint): Likewise.
31207         * recog.c (preprocess_constraints): Likewise.
31208         (constrain_operands, peep2_find_free_register): Likewise.
31209         (asm_operand_ok): Likewise, but add a comment saying why 'o'
31210         must be handled specially.
31212 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31214         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
31215         * genpreds.c (have_const_dbl_constraints): Delete.
31216         (add_constraint): Don't set it.
31217         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
31218         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
31219         constraints using the lookup_constraint logic.
31220         * ira-lives.c (single_reg_class): Likewise.
31221         * ira.c (ira_setup_alts): Likewise.
31222         * lra-constraints.c (process_alt_operands): Likewise.
31223         * recog.c (asm_operand_ok, constrain_operands): Likewise.
31224         * reload.c (find_reloads): Likewise.
31226 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31228         * genpreds.c (const_int_start, const_int_end): New variables.
31229         (choose_enum_order): Output CONST_INT constraints before memory
31230         constraints.
31231         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
31232         Add CT_CONST_INT.
31233         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
31234         * ira.c (ira_setup_alts): Likewise.
31235         * lra-constraints.c (process_alt_operands): Likewise.
31236         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31237         * reload.c (find_reloads): Likewise.
31239 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31241         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
31242         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
31243         * recog.c (preprocess_constraints): Update accordingly.
31245 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31247         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
31248         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
31249         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
31250         * genpreds.c (print_type_tree): New function.
31251         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
31252         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
31253         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
31254         Write out enum constraint_type and get_constraint_type.
31255         * lra-constraints.c (satisfies_memory_constraint_p): Take a
31256         constraint_num rather than a constraint string.
31257         (satisfies_address_constraint_p): Likewise.
31258         (reg_class_from_constraints): Avoid old constraint macros.
31259         (process_alt_operands, process_address_1): Likewise.
31260         (curr_insn_transform): Likewise.
31261         * ira-costs.c (record_reg_classes): Likewise.
31262         (record_operand_costs): Likewise.
31263         * ira-lives.c (single_reg_class): Likewise.
31264         (ira_implicitly_set_insn_hard_regs): Likewise.
31265         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31266         * postreload.c (reload_cse_simplify_operands): Likewise.
31267         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31268         (constrain_operands, peep2_find_free_register): Likewise.
31269         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
31270         (find_reloads, alternative_allows_const_pool_ref): Likewise.
31271         * reload1.c (maybe_fix_stack_asms): Likewise.
31272         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
31273         * targhooks.c (default_secondary_reload): Likewise.
31274         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
31275         to EXTRA_CONSTRAINT_STR.
31276         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
31278 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31280         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
31281         (write_constraint_satisfied_p_array): ...this new function.
31282         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
31283         an array.
31284         (write_insn_preds_c): Update accordingly.
31286 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31288         * genpreds.c (write_lookup_constraint): Rename to...
31289         (write_lookup_constraint_1): ...this.
31290         (write_lookup_constraint_array): New function.
31291         (write_tm_preds_h): Define lookup_constraint as an inline function
31292         that uses write_lookup_constraint_array where possible.
31293         (write_insn_preds_c): Update for the changes above.
31295 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
31297         * doc/md.texi (regclass_for_constraint): Rename to...
31298         (reg_class_for_constraint): ...this.
31299         * genpreds.c (num_constraints, enum_order, register_start)
31300         (register_end, satisfied_start, memory_start, memory_end)
31301         (address_start, address_end): New variables.
31302         (add_constraint): Count the number of constraints.
31303         (choose_enum_order): New function.
31304         (write_enum_constraint_num): Iterate over enum_order.
31305         (write_regclass_for_constraint): Rename to...
31306         (write_reg_class_for_constraint_1): ...this and update output
31307         accordingly.
31308         (write_constraint_satisfied_p): Rename to...
31309         (write_constraint_satisfied_p_1): ...this and update output
31310         accordingly.  Do nothing if all extra constraints are register
31311         constraints.
31312         (write_insn_extra_memory_constraint): Delete.
31313         (write_insn_extra_address_constraint): Delete.
31314         (write_range_function): New function.
31315         (write_tm_preds_h): Define constraint_satisfied_p and
31316         reg_class_for_constraint as inline functions that do a range check
31317         before calling the out-of-line function.  Use write_range_function
31318         to implement insn_extra_{register,memory,address}_constraint,
31319         the first of which is new.
31320         (write_insn_preds_c): Update after above changes to write_* functions.
31321         (main): Call choose_enum_order.
31323 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31325         PR tree-optimization/61306
31326         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
31327         expression instead of its size.
31328         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
31329         false to prevent optimization when the result is unpredictable due to
31330         arithmetic right shift of signed type with highest byte is set.
31331         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
31332         (init_symbolic_number): Likewise.
31333         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
31334         when the result is unpredictable due to sign extension.
31336 2014-06-11  Terry Guo  <terry.guo@arm.com>
31338         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
31339         (*thumb1_addsi3): Ditto.
31340         (*thumb_subdi3): Ditto.
31341         (thumb1_subsi3_insn): Ditto.
31342         (*thumb_mulsi3): Ditto.
31343         (*thumb_mulsi3_v6): Ditto.
31344         (*thumb1_andsi3_insn): Ditto.
31345         (thumb1_bicsi3): Ditto.
31346         (*thumb1_iorsi3_insn): Ditto.
31347         (*thumb1_xorsi3_insn): Ditto.
31348         (*thumb1_ashlsi3): Ditto.
31349         (*thumb1_ashrsi3): Ditto.
31350         (*thumb1_lshrsi3): Ditto.
31351         (*thumb1_rotrsi3): Ditto.
31352         (*thumb1_negdi2): Ditto.
31353         (*thumb1_negsi2): Ditto.
31354         (*thumb1_abssi2): Ditto.
31355         (*thumb1_neg_abssi2): Ditto.
31356         (*thumb1_one_cmplsi2): Ditto.
31357         (*thumb1_zero_extendhisi2): Ditto.
31358         (*thumb1_zero_extendqisi2): Ditto.
31359         (*thumb1_zero_extendqisi2_v6): Ditto.
31360         (thumb1_extendhisi2): Ditto.
31361         (thumb1_extendqisi2): Ditto.
31362         (*thumb1_movdi_insn): Ditto.
31363         (*thumb1_movsi_insn): Ditto.
31364         (*thumb1_movhi_insn): Ditto.
31365         (thumb_movhi_clobber): Ditto.
31366         (*thumb1_movqi_insn): Ditto.
31367         (*thumb1_movhf): Ditto.
31368         (*thumb1_movsf_insn): Ditto.
31369         (*thumb_movdf_insn): Ditto.
31370         (movmem12b): Ditto.
31371         (movmem8b): Ditto.
31372         (cbranchqi4): Ditto.
31373         (cbranchsi4_insn): Ditto.
31374         (cbranchsi4_scratch): Ditto.
31375         (*negated_cbranchsi4): Ditto.
31376         (*tbit_cbranch): Ditto.
31377         (*tlobits_cbranch): Ditto.
31378         (*tstsi3_cbranch): Ditto.
31379         (*cbranchne_decr1): Ditto.
31380         (*addsi3_cbranch): Ditto.
31381         (*addsi3_cbranch_scratch): Ditto.
31382         (*thumb_cmpdi_zero): Ditto.
31383         (cstoresi_eq0_thumb1): Ditto.
31384         (cstoresi_ne0_thumb1): Ditto.
31385         (*cstoresi_eq0_thumb1_insn): Ditto.
31386         (*cstoresi_ne0_thumb1_insn): Ditto.
31387         (cstoresi_nltu_thumb1): Ditto.
31388         (cstoresi_ltu_thumb1): Ditto.
31389         (thumb1_addsi3_addgeu): Ditto.
31390         (*thumb_jump): Ditto.
31391         (*call_reg_thumb1_v5): Ditto.
31392         (*call_reg_thumb1): Ditto.
31393         (*call_value_reg_thumb1_v5): Ditto.
31394         (*call_value_reg_thumb1): Ditto.
31395         (*call_insn): Ditto.
31396         (*call_value_insn): Ditto.
31397         (thumb1_casesi_internal_pic): Ditto.
31398         (thumb1_casesi_dispatch): Ditto.
31399         (*thumb1_indirect_jump): Ditto.
31400         (prologue_thumb1_interwork): Ditto.
31401         (*epilogue_insns): Ditto.
31402         (consttable_1): Ditto.
31403         (consttable_2): Ditto.
31404         (tablejump): Ditto.
31405         (*thumb1_tablejump): Ditto.
31406         (thumb_eh_return): Ditto.
31407         (define_peephole2): Two of them are thumb1 only and got moved into
31408         new file thumb1.md.
31409         (define_split): Six of them are thumb1 only and got moved into new
31410         file thumb1.md.
31411         * config/arm/thumb1.md: New file comprised of above thumb1 only
31412         patterns.
31414 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31416         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
31417         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
31418         dependencies.
31419         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
31420         (aarch64_crc_builtin_datum): New struct.
31421         (aarch64_crc_builtin_data): New.
31422         (aarch64_init_crc32_builtins): New function.
31423         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
31424         (aarch64_crc32_expand_builtin): New.
31425         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
31426         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
31427         __ARM_FEATURE_CRC32 when appropriate.
31428         (TARGET_CRC32): Define.
31429         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
31430         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
31431         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
31432         (aarch64_<crc_variant>): New pattern.
31433         * config/aarch64/arm_acle.h: New file.
31434         * config/aarch64/iterators.md (CRC): New int iterator.
31435         (crc_variant, crc_mode): New int attributes.
31436         * doc/aarch64-acle-intrinsics.texi: New file.
31437         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
31438         Include aarch64-acle-intrinsics.texi.
31440 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
31442         * tree-vect-data-refs.c (vect_grouped_store_supported): New
31443         check for stores group of length 3.
31444         (vect_permute_store_chain): New permutations for stores group of
31445         length 3.
31446         * tree-vect-stmts.c (vect_model_store_cost): Change cost
31447         of vec_perm_shuffle for the new permutations.
31449 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
31451         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
31452         table rewriting temporarily on targets not supporting ONE_ONLY.
31454 2014-06-11  Richard Biener  <rguenther@suse.de>
31456         PR middle-end/61437
31457         Revert
31458         2014-06-04  Richard Biener  <rguenther@suse.de>
31460         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
31461         TREE_PUBLIC and DECL_EXTERNAL decls.
31463 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
31465         * varasm.c (set_implicit_section): New function.
31466         (resolve_unique_section): Use it to set implicit section
31467         for aliases, too.
31468         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
31469         (default_function_section): Likewise.
31470         (decl_binds_to_current_def_p): Constify argument.
31471         * varasm.h (decl_binds_to_current_def_p): Update prototype.
31472         * asan.c (asan_protect_global): Use
31473         symtab_get_node (decl)->implicit_section.
31474         * symtab.c (dump_symtab_base): Dump implicit sections.
31475         (verify_symtab_base): Verify sanity of sectoins and comdats.
31476         (symtab_resolve_alias): Alias share the section of its target.
31477         (set_section_1): New function.
31478         (symtab_node::set_section): Move here, recurse to aliases.
31479         (verify_symtab): Check for duplicated symtab lists.
31480         * tree-core.h (implicit_section_name_p): Remove.
31481         * tree-vect-data-refs.c: Include varasm.h.
31482         (vect_can_force_dr_alignment_p): Fix conditional on when
31483         decl bints to current definition; use
31484         symtab_get_node (decl)->implicit_section.
31485         * cgraph.c (cgraph_make_node_local_1): Fix section set.
31486         * cgraph.h (struct symtab_node): Add implicit_section.
31487         (set_section): Rename to ...
31488         (set_section_for_node): ... this one.
31489         (set_section): Declare.
31490         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
31491         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
31492         input_overwrite_node, input_varpool_node): Stream implicit_section.
31493         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
31494         removal; it will fail in LTO.
31496 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31498         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
31499         Change second alternative type to f_mcr.
31500         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
31501         and 12th alternatives' types to f_mcr and f_mrc.
31502         (*movdi_aarch64): Same for 12th and 13th alternatives.
31503         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
31504         (aarch64_movtilow_tilow): Change type to fmov.
31506 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
31508         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
31509         (aarch64_save_or_restore_callee_save_registers): Fix layout.
31511 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31513         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
31514         New expander.
31515         (aarch64_sqrdmulh_lane<mode>): Likewise.
31516         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
31517         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
31518         (aarch64_sqdmulh_laneq<mode>): New expander.
31519         (aarch64_sqrdmulh_laneq<mode>): Likewise.
31520         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
31521         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
31522         (aarch64_sqdmulh_lane<mode>): New expander.
31523         (aarch64_sqrdmulh_lane<mode>): Likewise.
31524         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
31525         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
31526         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
31527         (aarch64_sqdmlal_laneq<mode>): Likewise.
31528         (aarch64_sqdmlsl_lane<mode>): Likewise.
31529         (aarch64_sqdmlsl_laneq<mode>): Likewise.
31530         (aarch64_sqdmlal2_lane<mode>): Likewise.
31531         (aarch64_sqdmlal2_laneq<mode>): Likewise.
31532         (aarch64_sqdmlsl2_lane<mode>): Likewise.
31533         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
31534         (aarch64_sqdmull_lane<mode>): Likewise.
31535         (aarch64_sqdmull_laneq<mode>): Likewise.
31536         (aarch64_sqdmull2_lane<mode>): Likewise.
31537         (aarch64_sqdmull2_laneq<mode>): Likewise.
31539 2014-06-10  Richard Biener  <rguenther@suse.de>
31541         PR tree-optimization/61438
31542         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
31543         (eliminate_dom_walker::before_dom_children): Only try to inhibit
31544         insertion of IVs if running PRE.
31545         (eliminate): Adjust.
31546         (pass_pre::execute): Likewise.
31547         (pass_fre::execute): Likewise.
31549 2014-06-10  Richard Biener  <rguenther@suse.de>
31551         PR middle-end/61456
31552         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
31553         Do not use the main variant for the type comparison.
31554         (ncr_compar): Likewise.
31555         (nonoverlapping_component_refs_p): Likewise.
31557 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31559         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
31560         REG_CFA_RESTORE mode.
31562 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
31564         * config/i386/i386.c (expand_vec_perm_pblendv): New.
31565         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
31566         expand_vec_perm_pblendv.
31568 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31570         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
31571         available.
31572         Simplify description of __crc32d and __crc32cd intrinsics.
31573         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
31574         availability.
31576 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
31578         PR lto/61334
31579         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
31580         * config.in: Regenerate.
31581         * configure: Likewise.
31583 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
31585         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
31586         and public vars.
31587         (intersect_static_var_sets): Remove.
31588         (propagate): Do not prune local statics.
31590 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
31592         PR fortran/60928
31593         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
31594         Set lastprivate_firstprivate even if omp_private_outer_ref
31595         langhook returns true.
31596         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
31597         langhook, call unshare_expr on new_var and call
31598         build_outer_var_ref to get the last argument.
31600 2014-06-10  Marek Polacek  <polacek@redhat.com>
31602         PR c/60988
31603         * doc/extend.texi: Add cindex for transparent_union.
31605 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31607         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
31608         init_symbolic_number ().
31610 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
31612         PR middle-end/61141
31613         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
31614         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
31615         (verify_rtl_sharing): Likewise.
31617 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
31619         PR c++/54442
31620         * tree.c (build_qualified_type): Use a canonical type for
31621         TYPE_CANONICAL.
31623 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31625         * config/arm/arm-modes.def: Remove XFmode.
31627 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
31629         PR target/61062
31630         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
31631         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
31632         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
31633         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
31634         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
31635         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
31636         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
31637         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
31638         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
31640 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
31642         * tree-core.h (tree_decl_with_vis): Remove section_name.
31644 2014-06-09  Kito Cheng  <kito@0xlab.org>
31646         * ira.c (ira): Don't call init_caller_save if LRA enabled
31647         since LRA use its own infrastructure to handle that.
31649 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
31651         * symtab.c (dump_symtab_base): Update dumping.
31652         (symtab_make_decl_local): Clear only DECL_COMDAT.
31653         * tree-vect-data-refs.c (Check that variable is static before
31654         tampering with sections.
31655         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
31656         (cgraph_create_virtual_clone): Likewise.
31657         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
31658         (decl_section_name, set_decl_section_name): New accessors.
31659         (find_decls_types_r): Do not walk section name
31660         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
31661         (decl_comdat_group, decl_comdat_group_id): Constify.
31662         (decl_section_name, set_decl_section_name): Update.
31663         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
31664         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
31665         (cgraph_make_node_local_1): Clear section and comdat group.
31666         * cgraph.h (set_comdat_group): Sanity check.
31667         (get_section, set_section): New.
31668         * ipa-comdats.c (ipa_comdats): Use get_section.
31669         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
31670         * lto-streamer-out.c: Do not follow section names.
31671         * c-family/c-common.c (handle_section_attribute): Update.
31672         * lto-cgraph.c (lto_output_node): Output section.
31673         (lto_output_varpool_node): Likewise.
31674         (read_comdat_group): Rename to ...
31675         (read_identifier): ... this one.
31676         (read_string_cst): New function.
31677         (input_node, input_varpool_node): Input section names.
31678         * tree-emutls.c (get_emutls_init_templ_addr): Update.
31679         (new_emutls_decl): Update.
31680         (secname_for_decl): Check section names only of static vars.
31681         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
31682         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
31683         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
31684         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
31685         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
31686         * config/mcore/mcore.c (mcore_unique_section): Likewise.
31687         * config/mips/mips.c (mips16_build_function_stub): Likewise.
31688         * config/v850/v850.c (v850_insert_attributes): Likewise.
31689         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
31690         Likewise.
31691         (h8300_handle_tiny_data_attribute): Likewise.
31692         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
31693         (bfin_handle_l2_attribute): Likewise.
31695 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
31697         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
31698         remove static initializer.
31700 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
31702         * varasm.c (use_blocks_for_decl_p): Check symbol table
31703         instead of alias attribute.
31704         (place_block_symbol): Recurse on aliases.
31706 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
31708         * ipa-visibility.c: Include varasm.h
31709         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
31711 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
31713         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
31714         outputting aliases.
31716 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
31718         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
31719         from test_insn into GGC space escape via SET_SRC.
31721 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
31723         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
31724         call statement, if any.
31725         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
31726         statements, if any.  Tidy up.
31728 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31730         PR target/61431
31731         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
31732         iterators, VSX_D that handles 64-bit types, and VSX_LE that
31733         handles swapping the two 64-bit double words on little endian
31734         systems.  Include V1TImode and optionally TImode in VSX_LE so that
31735         these types are properly swapped.  Change all of the insns and
31736         splits that do the 64-bit swaps to use VSX_LE.
31737         (vsx_le_perm_load_<mode>): Likewise.
31738         (vsx_le_perm_store_<mode>): Likewise.
31739         (splitters for little endian memory operations): Likewise.
31740         (vsx_xxpermdi2_le_<mode>): Likewise.
31741         (vsx_lxvd2x2_le_<mode>): Likewise.
31742         (vsx_stxvd2x2_le_<mode>): Likewise.
31744 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
31746         PR target/61423
31747         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
31748         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
31749         and corresponding splitters.  Zero extend general register
31750         or memory input operand to XMM temporary.  Enable for
31751         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
31752         (floatunssi<mode>2): Update expander predicate.
31754 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
31756         PR rtl-optimization/61325
31757         * lra-constraints.c (process_address_1): Check scale equal to one
31758         to prevent transformation: base + scale * index => base + new_reg.
31760 2014-06-06  Richard Biener  <rguenther@suse.de>
31762         PR tree-optimization/59299
31763         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
31764         a def operand.
31765         (nearest_common_dominator_of_uses): Likewise.
31766         (statement_sink_location): Adjust.  Support sinking loads.
31768 2014-06-06  Martin Jambor  <mjambor@suse.cz>
31770         * ipa-prop.c (get_place_in_agg_contents_list): New function.
31771         (build_agg_jump_func_from_list): Likewise.
31772         (determine_known_aggregate_parts): Renamed to
31773         determine_locally_known_aggregate_parts.  Moved some functionality
31774         to the two functions above, removed bound checks.
31776 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
31778         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
31779         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
31780         (aarch64_progress_pointer): Likewise.
31781         (aarch64_copy_one_part_and_move_pointers): Likewise.
31782         (aarch64_expand_movmen): Likewise.
31783         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
31784         * config/aarch64/aarch64.md (movmem<mode>): New.
31786 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
31788         * targhooks.c (default_add_stmt_cost): Call target specific
31789         hook instead of default one.
31791 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31793         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
31794         endianness instead of host endianness.
31795         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
31796         comments.
31798 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
31800         PR debug/53927
31801         * function.c (instantiate_decls): Process the saved static chain.
31802         (expand_function_start): If not optimizing, save the static chain
31803         onto the stack.
31804         * tree-nested.c (convert_all_function_calls): Always create the static
31805         chain for nested functions if not optimizing.
31807 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
31809         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
31811 2014-06-06  Richard Biener  <rguenther@suse.de>
31813         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
31814         (construct_init_block): Likewise.
31815         (construct_exit_block): Likewise.
31816         (pass_expand::execute): Likewise.
31817         * graphite.c (graphite_transforms): Replace check for current_loops
31818         with a check for > 1 loops.
31819         (pass_graphite_transforms::execute): Adjust.
31820         * ipa-split.c (split_function): Remove check for current_loops.
31821         * omp-low.c (expand_parallel_call): Likewise.
31822         (expand_omp_for_init_counts): Likewise.
31823         (extract_omp_for_update_vars): Likewise.
31824         (expand_omp_for_generic): Likewise.
31825         (expand_omp_sections): Likewise.
31826         (expand_omp_target): Likewise.
31827         * tracer.c (tail_duplicate): Likewise.
31828         (pass_tracer::execute): Likewise.
31829         * trans-mem.c (expand_transaction): Likewise.
31830         * tree-complex.c (expand_complex_div_wide): Likewise.
31831         * tree-eh.c (lower_resx): Likewise.
31832         (cleanup_empty_eh_merge_phis): Likewise.
31833         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
31834         current_loops with a check for > 1 loops.
31835         (pass_predcom::execute): Adjust.
31836         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
31837         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
31838         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
31839         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
31840         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
31841         * tree-switch-conversion.c (process_switch): Likewise.
31842         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
31843         * tree-vrp.c (vrp_visit_phi_node): Likewise.
31844         (execute_vrp): Likewise.
31845         * ubsan.c (ubsan_expand_null_ifn): Likewise.
31847 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
31849         * rtl.h (insn_location): Declare.
31850         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
31851         with UNKNOWN_LOCATION.
31852         * emit-rtl.c (insn_location): New function.
31853         * final.c (notice_source_line): Check that the instruction has a
31854         location before retrieving it and use insn_location.
31855         * modulo-sched.c (loop_single_full_bb_p): Likewise.
31856         * print-rtl.c (print_rtx): Likewise.
31858 2014-06-06  Richard Biener  <rguenther@suse.de>
31860         * passes.def: Move 2nd VRP pass before phi-only-cprop.
31862 2014-06-06  Christian Bruel  <christian.bruel@st.com>
31864         PR tree-optimization/43934
31865         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
31866         cost.
31868 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
31870         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
31871         return NO_REGS for extra address and memory constraints.  Handle
31872         operands that match (or are equivalent to something that matches)
31873         extra constant constraints.  Ignore other non-register operands.
31875 2014-06-06  Alan Modra  <amodra@gmail.com>
31877         PR target/61300
31878         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
31879         * doc/tm.texi: Regenerate.
31880         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
31881         Use throughout in place of REG_PARM_STACK_SPACE.
31882         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
31883         "incoming" param.  Pass to rs6000_function_parms_need_stack.
31884         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
31885         prototype_p when incoming.  Use function decl when incoming
31886         to handle K&R style functions.
31887         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
31888         (INCOMING_REG_PARM_STACK_SPACE): Define.
31890 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31892         PR target/52472
31893         * cfgexpand.c (expand_debug_expr): Use address space of nested
31894         TREE_TYPE for ADDR_EXPR and MEM_REF.
31896 2014-06-05  Jeff Law  <law@redhat.com>
31898         PR tree-optimization/61289
31899         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
31900         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
31901         looking for those which match LHS.  All callers changed.
31902         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
31903         parameters and code which manipulated them.  All callers changed.
31904         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
31905         and DST_MAP parameters.  Simplify invalidation code by just calling
31906         invalidate_equivalences.  All callers changed.
31907         (thread_across_edge): Simplify now that we don't need to maintain
31908         the map of equivalences to invalidate.
31910 2014-06-05  Kai Tietz  <ktietz@redhat.com>
31911             Richard Henderson  <rth@redhat.com>
31913         PR target/46219
31914         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
31915         checking for !TARGET_X32.
31916         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
31917         (sibcall_intern): New define_insn, plus required peepholes.
31918         (sibcall_pop_intern): Likewise.
31919         (sibcall_value_intern): Likewise.
31920         (sibcall_value_pop_intern): Likewise.
31922 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
31924         * tree-inline.c (tree_function_versioning): Check DF info existence
31925         before accessing it.
31927 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31929         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
31930         frame_size.
31931         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
31932         aarch64_frame hard_fp_offset and frame_size.
31933         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
31934         frame_size; remove original_frame_size.
31935         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
31936         (aarch64_initial_elimination_offset): Remove frame_size and
31937         offset.  Use aarch64_frame frame_size.
31939 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31940             Jiong Wang  <jiong.wang@arm.com>
31941             Renlin  <renlin.li@arm.com>
31943         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
31944         initialization of R30 offset.  Update offset.  Iterate core
31945         regisers upto X30.  Remove X29, X30 specific code.
31947 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31948             Jiong Wang  <jiong.wang@arm.com>
31950         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
31951         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
31952         (aarch64_register_saved_on_entry): Adjust test.
31954 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31956         * config/aarch64/aarch64.h (machine_function): Move
31957         saved_varargs_size from here...
31958         (aarch64_frame): ... to here.
31960         * config/aarch64/aarch64.c (aarch64_expand_prologue)
31961         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
31962         (aarch64_initial_elimination_offset)
31963         (aarch64_setup_incoming_varargs): Adjust location of
31964         saved_varargs_size.
31966 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31968         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
31969         layout comment.
31971 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
31972             Prachi Godbole  <Prachi.Godbole@imgtec.com>
31974         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
31975         mips32r5 entry to use PROCESSOR_P5600.
31976         * config/mips/mips-tables.opt: Regenerate.
31977         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
31978         * config/mips/mips.c (mips_fmadd_bypass): New function.
31979         (mips_rtx_cost_data): Add costs for p5600.
31980         (mips_issue_rate): Add support for p5600.
31981         (mips_multipass_dfa_lookahead): Likewise.
31982         * config/mips/mips.h (TUNE_P5600): New define.
31983         (TUNE_MACC_CHAINS): Add TUNE_P5600.
31984         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
31985         * config/mips/mips.md: Include p5600.md.
31986         (processor): Add p5600.
31987         * config/mips/p5600.md: New file.
31989 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
31991         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
31992         * config/i386/predicates.md (palignr_operand): New.
31993         Indicates if permutation is suitable for palignr instruction.
31995 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
31997         PR tree-optimization/61319
31998         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
31999         stmt belongs to loop.
32001 2014-06-05  Richard Biener  <rguenther@suse.de>
32003         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
32004         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
32005         (lookup_tmp_var): Adjust.
32006         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
32008 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32010         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
32012 2014-06-05  Marek Polacek  <polacek@redhat.com>
32014         PR c/49706
32015         * doc/invoke.texi: Document -Wlogical-not-parentheses.
32017 2014-06-04  Tom de Vries  <tom@codesourcery.com>
32019         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
32020         CONST_INT.
32022 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
32024         PR tree-optimization/61385
32025         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
32027 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
32029         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
32030         changed to use fatal_error.
32031         (main): Ensure lto_wrapper_cleanup is run atexit.
32033 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32035         * lra-constraints.c (valid_address_p): Move earlier in file.
32036         (address_eliminator): New structure.
32037         (satisfies_memory_constraint_p): New function.
32038         (satisfies_address_constraint_p): Likewise.
32039         (process_alt_operands, process_address, curr_insn_transform): Use them.
32041 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32043         * lra-int.h (lra_static_insn_data): Make operand_alternative a
32044         const pointer.
32045         (target_lra_int, default_target_lra_int, this_target_lra_int)
32046         (op_alt_data): Delete.
32047         * lra.h (lra_init): Delete.
32048         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
32049         (init_insn_code_data_once): Remove op_alt_data handling.
32050         (finish_insn_code_data_once): Likewise.
32051         (init_op_alt_data): Delete.
32052         (get_static_insn_data): Initialize operand_alternative to null.
32053         (free_insn_recog_data): Cast operand_alternative before freeing it.
32054         (setup_operand_alternative): Take the operand_alternative as
32055         parameter and assume it isn't already cached in the static
32056         insn data.
32057         (lra_set_insn_recog_data): Update accordingly.
32058         (lra_init): Delete.
32059         * ira.c (ira_init): Don't call lra_init.
32060         * target-globals.h (this_target_lra_int): Declare.
32061         (target_globals): Remove lra_int.
32062         (restore_target_globals): Update accordingly.
32063         * target-globals.c: Don't include lra-int.h.
32064         (default_target_globals, save_target_globals): Remove lra_int.
32066 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32068         * recog.h (operand_alternative): Convert reg_class, reject,
32069         matched and matches into bitfields.
32070         (preprocess_constraints): New overload.
32071         (preprocess_insn_constraints): New function.
32072         (preprocess_constraints): Take the insn as parameter.
32073         (recog_op_alt): Change into a pointer.
32074         (target_recog): Add x_op_alt.
32075         * recog.c (asm_op_alt): New variable.
32076         (recog_op_alt): Change into a pointer.
32077         (preprocess_constraints): New overload, replacing the old function
32078         definition with one that doesn't use global state.
32079         (preprocess_insn_constraints): New function.
32080         (preprocess_constraints): Use them.  Take the insn as parameter.
32081         Use asm_op_alt for asms.
32082         (recog_init): Free existing x_op_alt entries.
32083         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
32084         pointer const.
32085         (make_early_clobber_and_input_conflicts): Likewise.
32086         (process_bb_node_lives): Pass the insn to process_constraints.
32087         * reg-stack.c (check_asm_stack_operands): Likewise.
32088         (subst_asm_stack_regs): Likewise.
32089         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32090         * regrename.c (build_def_use): Likewise.
32091         * sched-deps.c (sched_analyze_insn): Likewise.
32092         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
32093         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
32094         (note_invalid_constants): Likewise.
32095         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32096         (ix86_legitimate_combined_insn): Make operand_alternative pointer
32097         const.
32099 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32101         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
32102         * ira-lives.c (check_and_make_def_conflict): Check for disabled
32103         alternatives.
32104         (make_early_clobber_and_input_conflicts): Likewise.
32105         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32107 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32109         * recog.h (alternative_class): New function.
32110         (which_op_alt): Return a const recog_op_alt.
32111         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
32112         (subst_asm_stack_regs): Likewise.
32113         * config/arm/arm.c (note_invalid_constants): Likewise.
32114         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
32115         the operand_alternative; use alternative class instead.
32116         * sel-sched.c (get_reg_class): Likewise.
32117         * regrename.c (build_def_use): Likewise.
32118         (hide_operands, restore_operands, record_out_operands): Update type
32119         accordingly.
32121 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
32123         * recog.h (recog_op_alt): Convert to a flat array.
32124         (which_op_alt): New function.
32125         * recog.c (recog_op_alt): Convert to a flat array.
32126         (preprocess_constraints): Update accordingly, grouping all
32127         operands of the same alternative together, rather than the
32128         other way around.
32129         * ira-lives.c (check_and_make_def_conflict): Likewise.
32130         (make_early_clobber_and_input_conflicts): Likewise.
32131         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32132         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
32133         (subst_asm_stack_regs): Likewise.
32134         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32135         * regrename.c (hide_operands, record_out_operands): Likewise.
32136         (build_def_use): Likewise.
32137         * sel-sched.c (get_reg_class): Likewise.
32138         * config/arm/arm.c (note_invalid_constants): Likewise.
32140 2014-06-04  Jason Merrill  <jason@redhat.com>
32142         PR c++/51253
32143         PR c++/61382
32144         * gimplify.c (gimplify_arg): Non-static.
32145         * gimplify.h: Declare it.
32147 2014-06-04  Richard Biener  <rguenther@suse.de>
32149         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
32150         TREE_PUBLIC and DECL_EXTERNAL decls.
32152 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
32154         * regcprop.c (copyprop_hardreg_forward_1): Account for
32155         HARD_REGNO_CALL_PART_CLOBBERED.
32157 2014-06-04  Richard Biener  <rguenther@suse.de>
32159         * configure.ac: Check whether the underlying type of int64_t
32160         is long or long long.
32161         * configure: Regenerate.
32162         * config.in: Likewise.
32163         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
32164         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
32166 2014-06-04  Richard Biener  <rguenther@suse.de>
32168         PR tree-optimization/60098
32169         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
32170         we hit a kill.
32171         (dse_optimize_stmt): Simplify, now that we found a kill
32172         earlier.
32174 2014-06-04  Richard Biener  <rguenther@suse.de>
32176         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
32177         of accesses with non-invariant address.
32179 2014-06-04  Martin Liska  <mliska@suse.cz>
32181         * cgraph.h (cgraph_make_wrapper): New function introduced.
32182         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
32183         * ipa-inline.h (inline_analyze_function): The function is global.
32184         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
32186 2014-06-04  Martin Liska  <mliska@suse.cz>
32188         * tree.h (private_lookup_attribute_starting): New function.
32189         (lookup_attribute_starting): Likewise.
32190         * tree.c (private_lookup_attribute_starting): Likewise.
32192 2014-06-04  Martin Liska  <mliska@suse.cz>
32194         * cgraph.h (expand_thunk): New argument added.
32195         (address_taken_from_non_vtable_p): New global function.
32196         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
32197         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
32198         * cgraphunit.c (analyze_function): Likewise.
32199         (assemble_thunks_and_aliases): Argument added to call.
32200         (expand_thunk): New argument forces to produce GIMPLE thunk.
32202 2014-06-04  Martin Liska  <mliska@suse.cz>
32204         * coverage.h (coverage_compute_cfg_checksum): Argument added.
32205         * coverage.c (coverage_compute_cfg_checksum): Likewise.
32206         * profile.c (branch_prob): Likewise.
32208 2014-06-04  Martin Jambor  <mjambor@suse.cz>
32210         PR ipa/61340
32211         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
32212         handler for switch on an ipa_ref_use enum.
32213         * ipa-reference.c (analyze_function): Likewise.
32215 2014-06-04  Kai Tietz  <ktietz@redhat.com>
32217         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
32218         from old call-instruction.
32220 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
32222         * config/aarch64/aarch64.c (aarch64_classify_address)
32223         (aarch64_legitimize_reload_address): Support full addressing modes
32224         for vector modes.
32225         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
32226         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
32228 2014-06-03  Andrew Pinski  <apinski@cavium.com>
32230         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
32231         for OP0.
32233 2014-06-03  Andrew Pinski  <apinski@cavium.com>
32235         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
32236         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
32238 2014-06-03  Kai Tietz  <ktietz@redhat.com>
32240         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
32241         for 64-bit ms-abi.
32243 2014-06-03  Dehao Chen  <dehao@google.com>
32245         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
32246         the same loop.
32248 2014-06-03  Marek Polacek  <polacek@redhat.com>
32250         PR c/60439
32251         * doc/invoke.texi: Document -Wswitch-bool.
32252         * function.c (stack_protect_epilogue): Cast controlling expression of
32253         the switch to int.
32254         * gengtype.c (walk_type): Generate switch expression with its
32255         controlling expression cast to int.
32257 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
32259         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
32260         and attiny841.
32261         * config/avr/avr-tables.opt: Regenerate.
32262         * config/avr/t-multilib: Regenerate.
32263         * doc/avr-mmcu.texi: Regenerate.
32265 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
32266             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
32268         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
32269         (ata6617c, ata664251): Add new avr35 devices.
32270         (ata6612c): Add new avr4 device.
32271         (ata6613c, ata6614q): Add new avr5 devices.
32272         * config/avr/avr-tables.opt: Regenerate.
32273         * config/avr/t-multilib: Regenerate.
32274         * doc/avr-mmcu.texi: Regenerate.
32276 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
32278         * gcc/config/aarch64/aarch64-builtins.c
32279         (aarch64_types_binop_ssu_qualifiers): New static data.
32280         (TYPES_BINOP_SSU): Define.
32281         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
32282         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
32283         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
32284         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
32285         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
32286         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
32287         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
32288         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
32289         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
32290         suffix to builtin function name, remove cast.
32291         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
32292         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
32293         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
32295 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
32297         * gcc/config/aarch64/aarch64-builtins.c
32298         (aarch64_types_binop_uus_qualifiers,
32299         aarch64_types_shift_to_unsigned_qualifiers,
32300         aarch64_types_unsigned_shiftacc_qualifiers): Define.
32301         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
32302         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
32303         sqshlu_n, uqshl_n): Update qualifiers.
32304         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
32305         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
32306         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
32307         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
32308         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
32309         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
32310         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
32311         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
32312         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
32313         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
32314         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
32315         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
32316         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
32317         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
32318         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
32319         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
32320         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
32321         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
32322         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
32323         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
32324         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
32325         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
32326         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
32327         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
32328         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
32329         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
32330         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
32332 2014-06-03  Teresa Johnson  <tejohnson@google.com>
32334         * tree-sra.c (modify_function): Record caller nodes after rebuild.
32336 2014-06-02  Jason Merrill  <jason@redhat.com>
32338         PR c++/61020
32339         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
32341 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
32343         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
32344         location == 0.
32346 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
32348         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
32349         New pattern.
32350         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
32351         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
32352         * config/aarch64/iterators.md (REVERSE): New iterator.
32353         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
32354         (rev_op): New int_attribute.
32355         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
32356         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
32357         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
32358         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
32359         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
32360         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
32361         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
32362         Replace temporary __asm__ with __builtin_shuffle.
32364 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
32366         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
32367         mips64r5.
32368         * config/mips/mips-tables.opt: Regenerate.
32369         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
32370         to use mips_isa_rev rather than ISA_MIPS32R2.
32371         * config/mips/mips.h (ISA_MIPS32R3): New define.
32372         (ISA_MIPS32R5): New define.
32373         (ISA_MIPS64R3): New define.
32374         (ISA_MIPS64R5): New define.
32375         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
32376         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
32377         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
32378         and mips64r5.
32379         (MIPS_ISA_SYNCI_SPEC): Likewise.
32380         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
32381         (LINK_SPEC): Added mips32r3 and mips32r5.
32382         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
32383         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
32384         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
32385         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
32386         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
32387         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
32388         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
32390 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
32392         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
32393         options.
32394         * config/mips/mips.opt (mxpa): New option.
32395         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
32396         assembler.
32398 2014-06-03  Martin Jambor  <mjambor@suse.cz>
32400         PR ipa/61160
32401         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
32402         thunks.
32404 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32406         PR tree-optimization/61328
32407         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
32408         initialization from find_bswap_or_nop_1.
32409         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
32410         in source_expr2 before using the size value the function sets. Also
32411         make use of init_symbolic_number () in both the old place and
32412         find_bswap_or_nop_load () to avoid reading uninitialized memory when
32413         doing recursion in the GIMPLE_BINARY_RHS case.
32415 2014-06-03  Richard Biener  <rguenther@suse.de>
32417         PR tree-optimization/61383
32418         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
32419         stmts can't trap.
32421 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
32423         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
32424         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
32425         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
32426         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
32427         in this file.
32428         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
32429         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
32430         * system.h: ...here and make it unconditional.
32431         * target.def (conditional_register_usage): Mention
32432         define_register_constraint instead of old-style constraint macros.
32433         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
32434         * doc/tm.texi: Regenerate.
32435         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
32436         protected by !USE_MD_CONSTRAINTS.
32437         * config/frv/frv.md: Remove quote from old version of documentation.
32438         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
32439         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
32440         CONST_DOUBLE_OK_FOR_LETTER.
32441         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
32443 2014-06-02  Andrew Pinski  <apinski@cavium.com>
32445         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
32446         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
32447         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
32448         file whose name depends on -mabi= and -mbig-endian.
32449         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
32450         Handle LP64 better and handle ilp32 too.
32451         (MULTILIB_OPTIONS): Delete.
32452         (MULTILIB_DIRNAMES): Delete.
32454 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
32456         * expr.h: Remove prototypes of functions defined in builtins.c.
32457         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
32458         Remove prototypes of functions defined in builtins.c.
32459         * builtins.h: Update prototype list to include all exported functions.
32460         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
32461         no_c99_libc_has_function): Move to targhooks.c
32462         (build_string_literal, build_call_expr_loc_array,
32463         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
32464         to tree.c.
32465         (expand_builtin_object_size, fold_builtin_object_size): Make static.
32466         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
32467         no_c99_libc_has_function): Relocate from builtins.c.
32468         * tree.c: Include builtins.h.
32469         (build_call_expr_loc_array, build_call_expr_loc_vec,
32470         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
32471         from builtins.c.
32472         * fold-const.h (fold_fma): Move prototype to builtins.h.
32473         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
32474         * asan.c: Include builtins.h.
32475         * cfgexpand.c: Likewise.
32476         * convert.c: Likewise.
32477         * emit-rtl.c: Likewise.
32478         * except.c: Likewise.
32479         * expr.c: Likewise.
32480         * fold-const.c: Likewise.
32481         * gimple-fold.c: Likewise.
32482         * gimple-ssa-strength-reduction.c: Likewise.
32483         * gimplify.c: Likewise.
32484         * ipa-inline.c: Likewise.
32485         * ipa-prop.c: Likewise.
32486         * lto-streamer-out.c: Likewise.
32487         * stmt.c: Likewise.
32488         * tree-inline.c: Likewise.
32489         * tree-object-size.c: Likewise.
32490         * tree-sra.c: Likewise.
32491         * tree-ssa-ccp.c: Likewise.
32492         * tree-ssa-forwprop.c: Likewise.
32493         * tree-ssa-loop-ivcanon.c: Likewise.
32494         * tree-ssa-loop-ivopts.c: Likewise.
32495         * tree-ssa-math-opts.c: Likewise.
32496         * tree-ssa-reassoc.c: Likewise.
32497         * tree-ssa-threadedge.c: Likewise.
32498         * tree-streamer-in.c: Likewise.
32499         * tree-vect-data-refs.c: Likewise.
32500         * tree-vect-patterns.c: Likewise.
32501         * tree-vect-stmts.c: Likewise.
32502         * config/aarch64/aarch64.c: Likewise.
32503         * config/alpha/alpha.c: Likewise.
32504         * config/arc/arc.c: Likewise.
32505         * config/arm/arm.c: Likewise.
32506         * config/avr/avr.c: Likewise.
32507         * config/bfin/bfin.c: Likewise.
32508         * config/c6x/c6x.c: Likewise.
32509         * config/cr16/cr16.c: Likewise.
32510         * config/cris/cris.c: Likewise.
32511         * config/epiphany/epiphany.c: Likewise.
32512         * config/fr30/fr30.c: Likewise.
32513         * config/frv/frv.c: Likewise.
32514         * config/h8300/h8300.c: Likewise.
32515         * config/i386/i386.c: Likewise.
32516         * config/i386/winnt.c: Likewise.
32517         * config/ia64/ia64.c: Likewise.
32518         * config/iq2000/iq2000.c: Likewise.
32519         * config/lm32/lm32.c: Likewise.
32520         * config/m32c/m32c.c: Likewise.
32521         * config/m32r/m32r.c: Likewise.
32522         * config/m68k/m68k.c: Likewise.
32523         * config/mcore/mcore.c: Likewise.
32524         * config/mep/mep.c: Likewise.
32525         * config/microblaze/microblaze.c: Likewise.
32526         * config/mips/mips.c: Likewise.
32527         * config/mmix/mmix.c: Likewise.
32528         * config/mn10300/mn10300.c: Likewise.
32529         * config/moxie/moxie.c: Likewise.
32530         * config/msp430/msp430.c: Likewise.
32531         * config/nds32/nds32.c: Likewise.
32532         * config/pa/pa.c: Likewise.
32533         * config/pdp11/pdp11.c: Likewise.
32534         * config/picochip/picochip.c: Likewise.
32535         * config/rl78/rl78.c: Likewise.
32536         * config/rs6000/rs6000.c: Likewise.
32537         * config/rx/rx.c: Likewise.
32538         * config/s390/s390.c: Likewise.
32539         * config/score/score.c: Likewise.
32540         * config/sh/sh.c: Likewise.
32541         * config/sparc/sparc.c: Likewise.
32542         * config/spu/spu.c: Likewise.
32543         * config/stormy16/stormy16.c: Likewise.
32544         * config/tilegx/tilegx.c: Likewise.
32545         * config/tilepro/tilepro.c: Likewise.
32546         * config/v850/v850.c: Likewise.
32547         * config/vax/vax.c: Likewise.
32548         * config/xtensa/xtensa.c: Likewise.
32550 2014-06-02  Jeff Law  <law@redhat.com>
32552         PR rtl-optimization/61094
32553         * ree.c (combine_reaching_defs): Do not reextend an insn if it
32554         was marked as do_no_reextend.  If a copy is needed to eliminate
32555         an extension, then mark it as do_not_reextend.
32557 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32559         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
32561 2014-06-02  Richard Henderson  <rth@redhat.com>
32563         PR target/61336
32564         * config/alpha/alpha.c (print_operand_address): Allow symbolic
32565         addresses inside asms.  Use output_operand_lossage instead of
32566         gcc_unreachable.
32568 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
32570         PR target/61239
32571         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
32572         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
32574 2014-06-02  Tom de Vries  <tom@codesourcery.com>
32576         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
32577         case that x has VOIDmode.
32579 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
32581         * varasm.c (copy_constant): Delete function.
32582         (build_constant_desc): Don't call it.
32584 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32586         PR target/61154
32587         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
32588         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
32589         with immediate_operand.
32591 2014-06-02  Andreas Schwab  <schwab@suse.de>
32593         * config/ia64/ia64.c
32594         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
32595         pending_data_specs first.
32597 2014-06-02  Richard Biener  <rguenther@suse.de>
32599         PR tree-optimization/61378
32600         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
32601         valueized_anything.
32603 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
32605         * config/i386/constraints.md (Bw): Rename from 'w'.
32606         (Bz): Rename from 'z'.
32607         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
32609 2014-06-01  Kai Tietz  <ktietz@redhat.com>
32611         PR target/61377
32612         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
32613         * config/i386/i386.md (sibcall_insn_operand): Use Bs
32614         instead of m constraint.
32616 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
32618         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
32619         a separate alternative where the scratch operand 2 is marked as
32620         early clobber.
32622 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
32624         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
32625         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
32626         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
32627         and __builtins_arm_get_fpscr.
32628         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
32629         __builtins_arm_get_fpscr.
32630         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
32631         __builtins_arm_ldfpscr.
32632         (arm_atomic_assign_expand_fenv): New function.
32633         * config/arm/vfp.md (set_fpscr): New pattern.
32634         (get_fpscr) : Likewise.
32635         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
32636         VUNSPEC_SET_FPSCR.
32637         * doc/extend.texi (AARCH64 Built-in Functions) : Document
32638         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
32640 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
32642         * asan.c (report_error_func): Add SLOW_P argument, use
32643         BUILT_IN_ASAN_*_N if set.
32644         (build_check_stmt): Likewise.
32645         (instrument_derefs): If T has insufficient alignment,
32646         force same handling as for odd sizes.
32648         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
32649         BUILT_IN_ASAN_REPORT_STORE_N): New.
32650         * asan.c (struct asan_mem_ref): Change access_size type to
32651         HOST_WIDE_INT.
32652         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
32653         update_mem_ref_hash_table): Likewise.
32654         (asan_mem_ref_hasher::hash): Hash in a HWI.
32655         (report_error_func): Change size_in_bytes argument to HWI.
32656         Use *_N builtins if size_in_bytes is larger than 16 or not power of
32657         two.
32658         (build_shadow_mem_access): New function.
32659         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
32660         Handle size_in_bytes not power of two or larger than 16.
32661         (instrument_derefs): Don't give up if size_in_bytes is not
32662         power of two or is larger than 16.
32664 2014-05-30  Kai Tietz  <ktietz@redhat.com>
32666         PR target/60104
32667         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
32668         for sibling-tail-calls.
32669         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
32670         to its use.
32671         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
32672         (sibcall_insn_operand): Add check for sibcall_memory_operand.
32674 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32676         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
32677         * config/avr/avr-tables.opt: Regenerate.
32678         * config/avr/t-multilib: Regenerate.
32679         * doc/avr-mmcu.texi: Regenerate.
32681 2014-05-30  Ian Lance Taylor  <iant@google.com>
32683         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
32684         target("sse").
32686 2014-05-30  Tom de Vries  <tom@codesourcery.com>
32688         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
32689         Redefine as true.
32691 2014-05-30  Tom de Vries  <tom@codesourcery.com>
32693         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
32694         * lra.c (initialize_lra_reg_info_element): Add init of
32695         actual_call_used_reg_set field.
32696         (lra): Call lra_create_live_ranges before lra_inheritance for
32697         -fuse-caller-save.
32698         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
32699         -fuse-caller-save.
32700         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
32701         instead of call_used_reg_set for -fuse-caller-save.
32702         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
32704 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32706         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
32707         to mov_imm.
32708         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
32710 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
32712         * ira.c (ira_get_dup_out_num): Check for output operands at
32713         the start of the loop.  Handle cases where an included alternative
32714         follows an excluded one.
32716 2014-05-29  Mike Stump  <mikestump@comcast.net>
32718         PR debug/61352
32719         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
32720         post ld passes when lto is used.
32722 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
32724         PR rtl-optimization/61325
32725         * lra-constraints.c (process_address): Rename to process_address_1.
32726         (process_address): New function.
32728 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
32730         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
32731         TYPES_BINOPV): New static data.
32732         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
32733         New builtin.
32734         * config/aarch64/aarch64-simd.md (aarch64_ext,
32735         aarch64_im_lane_boundsi): New patterns.
32736         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
32737         patterns for EXT.
32738         (aarch64_evpc_ext): New function.
32740         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
32742         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
32743         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
32744         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
32745         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
32746         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
32748 2014-05-29  Tom de Vries  <tom@codesourcery.com>
32750         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
32752 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
32753             Richard Sandiford  <rdsandiford@googlemail.com>
32755         * arm/iterators.md (shiftable_ops): New code iterator.
32756         (t2_binop0, arith_shift_insn): New code attributes.
32757         * arm/predicates.md (shift_nomul_operator): New predicate.
32758         * arm/arm.md (insn_enabled): Delete.
32759         (enabled): Remove insn_enabled test.
32760         (*arith_shiftsi): Delete.  Replace with ...
32761         (*<arith_shift_insn>_multsi): ... new pattern.
32762         (*<arith_shift_insn>_shiftsi): ... new pattern.
32763         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
32765 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
32766             Tom de Vries  <tom@codesourcery.com>
32768         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
32769         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
32770         clobber.
32771         (mips_split_call): Use POST_CALL_TMP_REG.
32772         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
32774 2014-05-29  Tom de Vries  <tom@codesourcery.com>
32776         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
32777         with #ifdef STACK_REGS.
32779 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
32781         * varasm.c (get_variable_section): Walk aliases.
32782         (place_block_symbol): Walk aliases.
32784 2014-05-28  Tom de Vries  <tom@codesourcery.com>
32786         Revert:
32787         2014-05-28  Tom de Vries  <tom@codesourcery.com>
32789         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
32790         * lra.c (initialize_lra_reg_info_element): Add init of
32791         actual_call_used_reg_set field.
32792         (lra): Call lra_create_live_ranges before lra_inheritance for
32793         -fuse-caller-save.
32794         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
32795         -fuse-caller-save.
32796         * lra-constraints.c (need_for_call_save_p): Use
32797         actual_call_used_reg_set instead of call_used_reg_set for
32798         -fuse-caller-save.
32799         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
32801 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
32803         * doc/md.texi: Document that the % constraint character must
32804         be at the beginning of the string.
32805         * genoutput.c (validate_insn_alternatives): Check that '=',
32806         '+' and '%' only appear at the beginning of a constraint.
32807         * ira.c (commutative_constraint_p): Delete.
32808         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
32809         at the start of the string.
32810         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
32811         duplicate '='s.
32812         * config/arm/neon.md (bicdi3_neon): Likewise.
32813         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
32814         (slt_si, sltu_si): Likewise.
32815         * config/vax/vax.md (sbcdi3): Likewise.
32816         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
32817         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
32818         (mul64): Move '%' to beginning of constraint.
32819         * config/arm/arm.md (*xordi3_insn): Likewise.
32820         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
32821         (xorsi3): Likewise.
32823 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
32825         * doc/md.texi: Document the restrictions on the "enabled" attribute.
32827 2014-05-28  Jason Merrill  <jason@redhat.com>
32829         PR c++/47202
32830         * cgraph.h (symtab_node::get_comdat_group_id): New.
32831         * cgraphunit.c (analyze_functions): Call it.
32832         * symtab.c (dump_symtab_node): Likewise.
32833         * tree.c (decl_comdat_group_id): New.
32834         * tree.h: Declare it.
32835         * lto-streamer-out.c (write_symbol): Use it.
32836         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
32838 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
32840         PR bootstrap/PR61146
32841         * wide-int.cc: Do not include longlong.h when compiling with clang.
32843 2014-05-28  Richard Biener  <rguenther@suse.de>
32845         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
32846         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
32847         (vrp_visit_assignment_or_call): Print less vertical space.
32848         (vrp_visit_stmt): Likewise.
32849         (vrp_visit_phi_node): Likewise.  For a PHI argument with
32850         VR_VARYING range consider recording it as copy.
32852 2014-05-28  Richard Biener  <rguenther@suse.de>
32854         Revert
32855         2014-05-28  Richard Biener  <rguenther@suse.de>
32857         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
32859 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32861         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
32862         sufficiently aligned and an offset is used at the same time.
32863         (expand_expr_real_1): Likewise.
32865 2014-05-28  Richard Biener  <rguenther@suse.de>
32867         PR middle-end/61045
32868         * fold-const.c (fold_comparison): When folding
32869         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
32870         the sign of the remaining constant operand stays the same.
32872 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
32874         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
32875         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
32876         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
32877         to the assembler.
32878         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
32879         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
32880         (m32bit-doubles) Likewise.
32881         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
32882         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
32883         option for RL78.
32885 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32887         * configure.ac ($gcc_cv_ld_clearcap): New test.
32888         * configure: Regenerate.
32889         * config.in: Regenerate.
32890         * config/sol2.opt (mclear-hwcap): New option.
32891         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
32892         * config/sol2-clearcap.map: Moved here from
32893         testsuite/gcc.target/i386/clearcap.map.
32894         * config/sol2-clearcapv2.map: Move here from
32895         gcc.target/i386/clearcapv2.map.
32896         * config/t-sol2 (install): Depend on install-clearcap-map.
32897         (install-clearcap-map): New target.
32898         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
32899         -mclear-hwcap.
32901 2014-05-28  Richard Biener  <rguenther@suse.de>
32903         * hwint.h (*_HALF_WIDE_INT*): Move to ...
32904         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
32905         ... here and remove the rest.
32906         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
32908 2014-05-28  Richard Biener  <rguenther@suse.de>
32910         PR tree-optimization/61335
32911         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
32912         new range fails, drop to varying.
32914 2014-05-28  Olivier Hainque  <hainque@adacore.com>
32916         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
32917         (CPP_SPEC): Add entry for -mcpu=8548.
32918         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
32919         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
32921 2014-05-28  Tom de Vries  <tom@codesourcery.com>
32923         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
32924         * lra.c (initialize_lra_reg_info_element): Add init of
32925         actual_call_used_reg_set field.
32926         (lra): Call lra_create_live_ranges before lra_inheritance for
32927         -fuse-caller-save.
32928         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
32929         -fuse-caller-save.
32930         * lra-constraints.c (need_for_call_save_p): Use
32931         actual_call_used_reg_set instead of call_used_reg_set for
32932         -fuse-caller-save.
32933         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
32935 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
32936             Tom de Vries  <tom@codesourcery.com>
32938         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
32939         to gccoptlist.
32940         (@item -fuse-caller-save): New item.
32942 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
32943             Tom de Vries  <tom@codesourcery.com>
32945         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
32946         OPT_fuse_caller_save.
32948 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
32949             Tom de Vries  <tom@codesourcery.com>
32951         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
32952         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
32953         get_call_reg_set_usage.
32954         * resource.c (mark_set_resources, mark_target_live_regs): Use
32955         get_call_reg_set_usage.
32956         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
32957         field.
32958         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
32959         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
32960         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
32961         * ira-build.c (ira_create_allocno): Init
32962         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
32963         (create_cap_allocno, propagate_allocno_info)
32964         (propagate_some_info_from_allocno)
32965         (copy_info_to_removed_store_destinations): Handle
32966         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
32967         * ira-costs.c (ira_tune_allocno_costs): Use
32968         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
32970 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
32971             Tom de Vries  <tom@codesourcery.com>
32973         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
32974         and function_used_regs_valid fields.
32975         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
32976         find_all_hard_reg_sets.
32977         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
32978         (get_call_reg_set_usage): New function.
32979         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
32980         * regs.h (get_call_reg_set_usage): Declare.
32982 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
32984         PR libgcc/61152
32985         * config/dbx.h (License): Add Runtime Library Exception.
32986         * config/newlib-stdint.h (License): Same.
32987         * config/rtems.h (License): Same
32988         * config/initfini-array.h (License): Same
32989         * config/v850/v850.h (License): Same.
32990         * config/v850/v850-opts.h (License): Same
32991         * config/v850/rtems.h (License): Same.
32993 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
32995         PR target/61044
32996         * doc/extend.texi (Local Labels): Note that label differences are
32997         not supported for AVR.
32999 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
33000             Olivier Hainque  <hainque@adacore.com>
33002         * rtl.h (set_for_reg_notes): Declare.
33003         * emit-rtl.c (set_for_reg_notes): New function.
33004         (set_unique_reg_note): Use it.
33005         * optabs.c (add_equal_note): Likewise
33007 2014-05-27  Andrew Pinski  <apinski@cavium.com>
33009         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
33010         Use <w> for the register in assembly template.
33011         (stack_protect_test): Use the mode of operands[0] for the result.
33012         (stack_protect_test_<mode>): Use <w> for the register
33013         in assembly template.
33015 2014-05-27  DJ Delorie  <dj@redhat.com>
33017         * config/rx/rx.c (add_vector_labels): New.
33018         (rx_output_function_prologue): Call it.
33019         (rx_handle_func_attribute): Don't require empty arguments.
33020         (rx_handle_vector_attribute): New.
33021         (rx_attribute_table): Add "vector" attribute.
33022         * doc/extend.texi (interrupt, vector): Document new/changed
33023         RX-specific attributes.
33025         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
33027 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
33029         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
33030         predicate to detect a negative quotient.
33032 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
33034         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
33035         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
33036         Add X - Y CMP 0 to X CMP Y transformation.
33037         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
33039 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
33041         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
33042         before printing.
33044 2014-05-27  Steve Ellcey  <sellcey@mips.com>
33046         * config/mips/mips.c: Add include of cgraph.h.
33048 2014-05-27  Richard Biener  <rguenther@suse.de>
33050         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
33052 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
33054         PR libgcc/61152
33055         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
33056         * config/arm/arm-cores.def (License): Same.
33057         * config/arm/arm-opts.h (License): Same.
33058         * config/arm/aout.h (License): Same.
33059         * config/arm/bpabi.h (License): Same.
33060         * config/arm/elf.h (License): Same.
33061         * config/arm/linux-elf.h (License): Same.
33062         * config/arm/linux-gas.h (License): Same.
33063         * config/arm/netbsd-elf.h (License): Same.
33064         * config/arm/uclinux-eabi.h (License): Same.
33065         * config/arm/uclinux-elf.h (License): Same.
33066         * config/arm/vxworks.h (License): Same.
33068 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33070         * config/arm/neon.md (neon_bswap<mode>): New pattern.
33071         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
33072         (arm_init_neon_builtins): Handle NEON_BSWAP.
33073         Define required type nodes.
33074         (arm_expand_neon_builtin): Handle NEON_BSWAP.
33075         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
33076         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
33077         * config/arm/iterators.md (VDQHSD): New mode iterator.
33079 2014-05-27  Richard Biener  <rguenther@suse.de>
33081         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
33082         Try using literal operands when comparing value-ranges failed.
33084 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
33086         * ira.c (commutative_operand): Adjust for change to recog_data.
33087         [Missing from previous commit.]
33089 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
33091         * system.h (TEST_BIT): New macro.
33092         * recog.h (alternative_mask): New type.
33093         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
33094         (recog_data_d): Replace alternative_enabled_p array with
33095         enabled_alternatives.
33096         (target_recog): New structure.
33097         (default_target_recog, this_target_recog): Declare.
33098         (get_enabled_alternatives, recog_init): Likewise.
33099         * recog.c (default_target_recog, this_target_recog): New variables.
33100         (get_enabled_alternatives): New function.
33101         (extract_insn): Use it.
33102         (recog_init): New function.
33103         (preprocess_constraints, constrain_operands): Adjust for change to
33104         recog_data.
33105         * postreload.c (reload_cse_simplify_operands): Likewise.
33106         * reload.c (find_reloads): Likewise.
33107         * ira-costs.c (record_reg_classes): Likewise.
33108         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
33109         all alternatives after a disabled one would be skipped.
33110         (ira_implicitly_set_insn_hard_regs): Likewise.
33111         * ira.c (ira_setup_alts): Adjust for change to recog_data.
33112         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
33113         with enabled_alternatives.
33114         * lra.c (free_insn_recog_data): Update accordingly.
33115         (lra_update_insn_recog_data): Likewise.
33116         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
33117         * lra-constraints.c (process_alt_operands): Likewise.  Handle
33118         only_alternative as part of the enabled mask.
33119         * target-globals.h (this_target_recog): Declare.
33120         (target_globals): Add a recog field.
33121         (restore_target_globals): Restore this_target_recog.
33122         * target-globals.c: Include recog.h.
33123         (default_target_globals): Initialize recog field.
33124         (save_target_globals): Likewise.
33125         * reginfo.c (reinit_regs): Call recog_init.
33126         * toplev.c (backend_init_target): Likewise.
33128 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
33130         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
33131         rather than any named insn's code.
33133 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
33135         PR libgcc/61152
33136         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
33137         * config/arm/arm-cores.def (License): Same.
33139 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
33141         * tree.h (decl_comdat_group): Declare.
33142         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
33143         * tree.c (decl_comdat_group): Here.
33145 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
33147         PR rtl-optimization/61222
33148         * combine.c (simplify_shift_const_1): When moving a PLUS outside
33149         the shift, truncate the PLUS operand to the result mode.
33151 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
33153         PR target/61271
33154         * config/i386/i386.c (ix86_rtx_costs)
33155         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
33156         Fix condition.
33158 2014-05-26  Martin Jambor  <mjambor@suse.cz>
33160         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
33161         subreg uses.
33163 2014-05-26  Richard Biener  <rguenther@suse.de>
33165         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
33166         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
33167         Provide specializations.
33168         (wi::int_traits <HOST_WIDE_INT>,
33169         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
33171 2014-05-26  Alan Modra  <amodra@gmail.com>
33173         PR target/61098
33174         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
33175         params and return a bool.  Remove dead code.  Update comment.
33176         Assert we have a const_int source.  Remove bogus code from
33177         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
33178         handling of constants > 2G and reg_equal note, from..
33179         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
33180         return value.  Update comment.  If we can, use a new pseudo
33181         for intermediate calculations.
33182         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
33183         prototype.
33184         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
33185         call to rs6000_emit_set_const in splitter.
33186         (movdi_internal64+2, +3): Likewise.
33188 2014-05-26  Richard Biener  <rguenther@suse.de>
33190         * system.h: Define __STDC_FORMAT_MACROS before
33191         including inttypes.h.
33192         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
33193         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
33194         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
33195         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
33196         HOST_WIDEST_INT_C): Remove.
33197         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
33198         if C99 inttypes.h is not available.
33199         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
33200         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
33201         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
33202         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
33203         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
33204         (struct output_info): Likewise.
33205         (print_statistics): Adjust.
33206         (dump_bitmap_statistics): Likewise.
33207         * bt-load.c (migrate_btr_defs): Print with PRId64.
33208         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
33209         (MAX_SAFE_MULTIPLIER): Adjust.
33210         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
33211         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
33212         dump_cgraph_node): Likewise.
33213         * final.c (dump_basic_block_info): Likewise.
33214         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
33215         * gcov.c (format_gcov): Likewise.
33216         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
33217         for calculation.
33218         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
33219         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
33220         (inline_small_functions, dump_overall_stats, dump_inline_stats):
33221         Use PRId64 for dumping.
33222         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
33223         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
33224         (add_allocno_hard_regs): Adjust.
33225         * loop-doloop.c (doloop_modify): Print using PRId64.
33226         * loop-iv.c (inverse): Compute in uint64_t.
33227         (determine_max_iter, iv_number_of_iterations): Likewise.
33228         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
33229         Print using PRId64.
33230         * lto-streamer-out.c (write_symbol): Use uint64_t.
33231         * mcf.c (CAP_INFINITY): Use int64_t maximum.
33232         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
33233         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
33234         * modulo-sched.c (const_iteration_count): Use int64_t.
33235         (sms_schedule): Dump using PRId64.
33236         * predict.c (dump_prediction): Likewise.
33237         * pretty-print.h (pp_widest_integer): Remove.
33238         * profile.c (get_working_sets, is_edge_inconsistent,
33239         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
33240         * tree-pretty-print.c (pp_double_int): Remove case handling
33241         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
33242         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
33243         and adjust users.
33244         (pass_optimize_bswap::execute): Remove restriction on hosts.
33245         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
33246         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
33247         * tree.c (widest_int_cst_value): Remove.
33248         * tree.h (widest_int_cst_value): Likewise.
33249         * value-prof.c (dump_histogram_value): Print using PRId64.
33250         * gengtype.c (main): Also inject int64_t.
33251         * ggc-page.c (struct max_alignment): Use int64_t.
33252         * alloc-pool.c (struct allocation_object_def): Likewise.
33253         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
33254         for computation.
33255         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
33256         * doc/tm.texi: Regenerated.
33257         * gengtype-lex.l (IWORD): Handle [u]int64_t.
33258         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
33259         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
33260         mmix_output_register_setting): Use [u]int64_t in prototypes.
33261         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
33262         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
33263         mmix_output_octa, mmix_output_shifted_value): Adjust.
33264         (mmix_intval): Adjust.  Remove unreachable case.
33265         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
33267 2014-05-26  Richard Biener  <rguenther@suse.de>
33269         * configure.ac: Drop __int64 type check.  Insist that we
33270         found uint64_t and int64_t.
33271         * hwint.h (HOST_BITS_PER___INT64): Remove.
33272         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
33273         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
33274         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
33275         (HOST_WIDEST_FAST_INT): Remove __int64 case.
33276         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
33277         for dst_q_src_df_rms_cdt.
33278         * configure: Regenerate.
33279         * config.in: Likewise.
33281 2014-05-26  Michael Tautschnig  <mt@debian.org>
33283         PR target/61249
33284         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
33285         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
33287 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
33289         PR rtl-optimization/61278
33290         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
33292 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
33294         PR rtl-optimization/61220
33295         Part of PR rtl-optimization/61225
33296         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
33297         insn; skip split_edge for a block with only one successor.
33299 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33301         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
33302         for variables.
33304 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33306         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
33307         (update_vtable_references): New function.
33308         (function_and_variable_visibility): Rewrite also vtable initializers.
33309         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
33311 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33313         * ggc.h (ggc_grow): New function.
33314         * ggc-none.c (ggc_grow): New function.
33315         * ggc-page.c (ggc_grow): Likewise.
33317 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33319         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
33320         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
33321         comdat_can_be_unshared_p, cgraph_externally_visible_p,
33322         varpool_externally_visible_p, can_replace_by_local_alias,
33323         update_visibility_by_resolution_info, function_and_variable_visibility,
33324         pass_data_ipa_function_and_variable_visibility,
33325         make_pass_ipa_function_and_variable_visibility,
33326         whole_program_function_and_variable_visibility,
33327         pass_data_ipa_whole_program_visibility,
33328         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
33329         * cgraph.h (cgraph_local_node_p): Declare.
33330         * ipa-visibility.c: New file.
33331         * Makefile.in (OBJS): Add ipa-visiblity.o
33333 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33335         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
33336         that var decl is available.
33338 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33340         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
33341         symtab_node pointer.
33342         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
33343         (find_decls_types_r): Do not walk COMDAT_GROUP.
33344         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
33345         * varasm.c (make_decl_one_only): Use set_comdat_group;
33346         create node if needed.
33347         * ipa-inline-transform.c (save_inline_function_body): Update
33348         way we decl->symtab mapping.
33349         * symtab.c (symtab_hash, hash_node, eq_node
33350         symtab_insert_node_to_hashtable): Remove.
33351         (symtab_register_node): Update.
33352         (symtab_unregister_node): Update.
33353         (symtab_get_node): Reimplement as inline function.
33354         (symtab_add_to_same_comdat_group): Update.
33355         (symtab_dissolve_same_comdat_group_list): Update.
33356         (dump_symtab_base): Update.
33357         (verify_symtab_base): Update.
33358         (symtab_make_decl_local): Update.
33359         (fixup_same_cpp_alias_visibility): Update.
33360         (symtab_nonoverwritable_alias): Update.
33361         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
33362         * ipa.c (update_visibility_by_resolution_info): UPdate.
33363         * bb-reorder.c: Include cgraph.h
33364         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
33365         with comdat groups.
33366         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
33367         * cgraph.c (cgraph_get_create_node): Update.
33368         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
33369         and comdat_group_.
33370         (symtab_get_node): Make inline.
33371         (symtab_insert_node_to_hashtable): Remove.
33372         (symtab_can_be_discarded): Update.
33373         (decl_comdat_group): New function.
33374         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
33375         Update.
33376         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
33377         comdat group name.
33378         (read_comdat_group): New function.
33379         (input_node, input_varpool_node): Use it.
33380         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
33381         comdat groups.
33382         * mips.c (mips_start_unique_function): Likewise.
33383         (ix86_code_end): Likewise.
33384         (rs6000_code_end): Likweise.
33385         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
33387 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33389         * gengtype-state.c (fatal_reading_state): Bring offline.
33390         * optabs.c (widening_optab_handler): Bring offline.
33391         * optabs.h (widening_optab_handler): Likewise.
33392         * final.c (get_attr_length_1): Likewise.
33394 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
33396         * sched-int.h (sd_iterator_cond): Manually tail recurse.
33398 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33400         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
33401         (ppc440-compare): Include shift with dot.
33402         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
33403         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
33404         without dot.
33405         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
33406         without dot.
33407         (e6500_sfx2): Include it.
33408         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
33409         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
33410         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
33411         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
33412         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
33413         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
33414         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
33415         *lshiftrt_internal1le, *lshiftrt_internal1be,
33416         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
33417         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
33418         *rotldi3_internal10le, *rotldi3_internal10be,
33419         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
33420         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
33421         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
33422         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
33423         define_insns): Use type "shift" in the appropriate alternatives.
33425 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33427         * config/rs6000/rs6000.md (type): Add "logical".  Delete
33428         "fast_compare".
33429         (dot): Adjust comment.
33430         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
33431         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
33432         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
33433         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
33434         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
33435         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
33436         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
33437         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33439         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33440         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33441         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33442         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33443         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33444         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33445         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33446         * config/rs6000/8540.md (ppc8540_su): Adjust.
33447         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33448         cell-cmp-microcoded): Adjust.
33449         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33450         * config/rs6000/e500mc.md (e500mc_su): Adjust.
33451         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33452         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33453         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33454         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33455         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33456         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33457         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33458         Adjust.
33459         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33460         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
33461         Adjust.  Adjust comment.
33462         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33463         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33465 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33467         * config/rs6000/rs6000.md (type): Add "add".
33468         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
33469         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
33470         define_insns): Use it.
33471         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33473         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33474         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33475         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33476         * config/rs6000/601.md (ppc601-integer): Adjust.
33477         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33478         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33479         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33480         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33481         * config/rs6000/8540.md (ppc8540_su): Adjust.
33482         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33483         cell-cmp-microcoded): Adjust.
33484         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33485         * config/rs6000/e500mc.md (e500mc_su): Adjust.
33486         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33487         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33488         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33489         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33490         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33491         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33492         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33493         Adjust.
33494         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33495         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
33496         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33497         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33499 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33501         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
33502         "delayed_compare", "var_delayed_compare".
33503         (var_shift): New attribute.
33504         (cell_micro): Adjust.
33505         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
33506         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
33507         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
33508         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33509         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33510         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33511         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33512         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
33513         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
33514         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
33515         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
33516         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
33517         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
33518         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
33519         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
33520         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
33521         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
33522         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
33523         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
33524         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
33525         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
33526         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
33527         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
33528         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33529         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
33531         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33532         * config/rs6000/440.md (ppc440-integer): Adjust.
33533         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33534         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
33535         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33536         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33537         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33538         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33539         * config/rs6000/8540.md (ppc8540_su): Adjust.
33540         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33541         cell-cmp-microcoded): Adjust.
33542         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
33543         * config/rs6000/e500mc.md (e500mc_su): Adjust.
33544         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
33545         e500mc64_delayed): Adjust.
33546         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
33547         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
33548         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33549         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
33550         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
33551         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
33552         power6-delayed-compare, power6-var-delayed-compare): Adjust.
33553         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
33554         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
33555         Adjust comment.
33556         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33557         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
33559 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33561         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
33562         (bits): New mode_attr.
33563         (idiv_ldiv): Delete mode_attr.
33564         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
33565         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33566         rs6000_adjust_priority, is_nonpipeline_insn,
33567         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
33569         * config/rs6000/40x.md (ppc403-idiv): Adjust.
33570         * config/rs6000/440.md (ppc440-idiv): Adjust.
33571         * config/rs6000/476.md (ppc476-idiv): Adjust.
33572         * config/rs6000/601.md (ppc601-idiv): Adjust.
33573         * config/rs6000/603.md (ppc603-idiv): Adjust.
33574         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
33575         ppc620-ldiv): Adjust.
33576         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
33577         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
33578         * config/rs6000/8540.md (ppc8540_divide): Adjust.
33579         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
33580         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
33581         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
33582         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
33583         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
33584         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
33585         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
33586         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
33587         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
33588         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
33589         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
33590         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
33591         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
33592         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
33593         * config/rs6000/titan.md (titan_fxu_div): Adjust.
33595 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33597         * config/rs6000/rs6000.md (type): Delete "insert_word",
33598         "insert_dword".  Add "insert".
33599         (size): Update comment.
33600         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33601         insn_must_be_first_in_group): Adjust.
33602         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
33603         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
33604         *insvsi_internal6, insvdi_internal): Adjust.
33606         * config/rs6000/40x.md (ppc403-integer): Adjust.
33607         * config/rs6000/440.md (ppc440-integer): Adjust.
33608         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
33609         * config/rs6000/601.md (ppc601-integer): Adjust.
33610         * config/rs6000/603.md (ppc603-integer): Adjust.
33611         * config/rs6000/6xx.md (ppc604-integer): Adjust.
33612         * config/rs6000/7450.md (ppc7450-integer): Adjust.
33613         * config/rs6000/7xx.md (ppc750-integer): Adjust.
33614         * config/rs6000/8540.md (ppc8540_su): Adjust.
33615         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
33616         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
33617         * config/rs6000/e500mc.md (e500mc_su): Adjust.
33618         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
33619         * config/rs6000/e5500.md (e5500_sfx): Adjust.
33620         * config/rs6000/e6500.md (e6500_sfx): Adjust.
33621         * config/rs6000/mpc.md (mpccore-integer): Adjust.
33622         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
33623         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
33624         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
33625         * config/rs6000/power7.md (power7-integer): Adjust.
33626         * config/rs6000/power8.md (power8-1cyc): Adjust.
33627         * config/rs6000/rs64.md (rs64a-integer): Adjust.
33628         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
33630 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33632         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
33633         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
33634         (size): New attribute.
33635         (dot): New attribute.
33636         (cell_micro): Adjust.
33637         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
33638         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
33639         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
33640         umuldi3_highpart): Adjust.
33641         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33642         rs6000_adjust_priority, is_nonpipeline_insn,
33643         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
33645         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
33646         ppc405-imul3): Adjust.
33647         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
33648         * config/rs6000/476.md (ppc476-imul): Adjust.
33649         * config/rs6000/601.md (ppc601-imul): Adjust.
33650         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
33651         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
33652         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
33653         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
33654         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
33655         Adjust.
33656         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
33657         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
33658         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
33659         cell-imul): Adjust.
33660         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
33661         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
33662         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
33663         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
33664         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
33665         * config/rs6000/mpc.md (mpccore-imul): Adjust.
33666         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
33667         power4-lmul, power4-imul, power4-imul3): Adjust.
33668         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
33669         power5-lmul, power5-imul, power5-imul3): Adjust.
33670         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
33671         power6-lmul, power6-imul, power6-imul3): Adjust.
33672         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
33673         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
33675         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
33676         rs64a-lmul): Adjust.
33677         * config/rs6000/titan.md (titan_imul): Adjust.
33679 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33681         * config/rs6000/rs6000.md (type): Add new value "halfmul".
33682         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
33683         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
33684         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
33685         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
33686         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
33687         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
33688         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
33689         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
33690         * config/rs6000/titan.md: Delete nonsensical comment.
33691         (titan_imul): Add type imul3.
33692         (titan_mulhw): Remove type imul3; add type halfmul.
33694 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
33696         * config/rs6000/rs6000.md (type): Reorder, reformat.
33698 2014-05-23  Martin Jambor  <mjambor@suse.cz>
33700         PR tree-optimization/53787
33701         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
33702         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
33703         analysis_done, update all uses.
33704         * ipa-prop.c: Include domwalk.h
33705         (param_analysis_info): Removed.
33706         (param_aa_status): New type.
33707         (ipa_bb_info): Likewise.
33708         (func_body_info): Likewise.
33709         (ipa_get_bb_info): New function.
33710         (aa_overwalked): Likewise.
33711         (find_dominating_aa_status): Likewise.
33712         (parm_bb_aa_status_for_bb): Likewise.
33713         (parm_preserved_before_stmt_p): Changed to use new param AA info.
33714         (load_from_unmodified_param): Accept func_body_info as a parameter
33715         instead of parms_ainfo.
33716         (parm_ref_data_preserved_p): Changed to use new param AA info.
33717         (parm_ref_data_pass_through_p): Likewise.
33718         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
33719         (compute_complex_assign_jump_func): Changed to use new param AA info.
33720         (compute_complex_ancestor_jump_func): Likewise.
33721         (ipa_compute_jump_functions_for_edge): Likewise.
33722         (ipa_compute_jump_functions): Removed.
33723         (ipa_compute_jump_functions_for_bb): New function.
33724         (ipa_analyze_indirect_call_uses): Likewise, moved variable
33725         declarations down.
33726         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
33727         and info, moved variable declarations down.
33728         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
33729         node and info.
33730         (ipa_analyze_stmt_uses): Likewise.
33731         (ipa_analyze_params_uses): Removed.
33732         (ipa_analyze_params_uses_in_bb): New function.
33733         (ipa_analyze_controlled_uses): Likewise.
33734         (free_ipa_bb_info): Likewise.
33735         (analysis_dom_walker): New class.
33736         (ipa_analyze_node): Handle node-specific forbidden analysis,
33737         initialize and free func_body_info, use dominator walker.
33738         (ipcp_modif_dom_walker): New class.
33739         (ipcp_transform_function): Create and free func_body_info, use
33740         ipcp_modif_dom_walker, moved a lot of functionality there.
33742 2014-05-23  Marek Polacek  <polacek@redhat.com>
33743             Jakub Jelinek  <jakub@redhat.com>
33745         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
33746         * gcc.c (sanitize_spec_function): Likewise.
33747         * convert.c (convert_to_integer): Include "ubsan.h".  Add
33748         floating-point to integer instrumentation.
33749         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
33750         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
33751         SANITIZE_NONDEFAULT.
33752         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
33753         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
33754         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
33755         * ubsan.c: Include "realmpfr.h" and "dfp.h".
33756         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
33757         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
33758         float/double/long double.
33759         (ubsan_instrument_float_cast): New function.
33760         * ubsan.h (ubsan_instrument_float_cast): Declare.
33762 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
33764         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
33765         predicate.
33766         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
33767         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
33768         Adjust for tailcalling through registers.
33769         * config/aarch64/aarch64.h (enum reg_class): New caller save
33770         register class.
33771         (REG_CLASS_NAMES): Likewise.
33772         (REG_CLASS_CONTENTS): Likewise.
33773         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
33774         Allow tailcalling without decls.
33776 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
33778         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
33779         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
33781         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
33782         gsi, and variables v_* to v*.
33784 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
33786         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
33788 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
33790         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
33791         * omp-low.c: Update accordingly.
33793         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
33794         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
33795         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
33796         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
33797         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
33798         GF_OMP_TARGET_KIND_UPDATE.
33800         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
33801         Explicitly enumerate the expected region types.
33803 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33805         PR other/56955
33806         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
33807         documentation; the old documentation didn't clearly state the
33808         constraints on the contents of the pointed-to storage.
33810 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33812         Fix bootstrap error on ia64
33813         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
33814         Return default value.
33816 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33818         PR tree-optimization/54733
33819         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
33820         (CMPNOP): Define.
33821         (find_bswap_or_nop_load): New.
33822         (find_bswap_1): Renamed to ...
33823         (find_bswap_or_nop_1): This. Also add support for memory source.
33824         (find_bswap): Renamed to ...
33825         (find_bswap_or_nop): This. Also add support for memory source and
33826         detection of bitwise operations equivalent to load in target
33827         endianness.
33828         (execute_optimize_bswap): Likewise. Also move its leading comment back
33829         in place and split statement transformation into ...
33830         (bswap_replace): This.
33832 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
33834         PR rtl-optimization/61215
33835         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
33836         simplify_gen_subreg until final substitution.
33838 2014-05-23  Alan Modra  <amodra@gmail.com>
33840         PR target/61231
33841         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
33842         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
33843         Use "Y" constraint rather than "m".
33845 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
33847         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
33848         define.
33849         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
33850         New function declaration.
33851         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
33852         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
33853         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
33854         (aarch64_init_builtins) : Initialize builtins
33855         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
33856         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
33857         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
33858         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
33859         and __builtins_aarch64_set_fpsr.
33860         (aarch64_atomic_assign_expand_fenv): New function.
33861         * config/aarch64/aarch64.md (set_fpcr): New pattern.
33862         (get_fpcr) : Likewise.
33863         (set_fpsr) : Likewise.
33864         (get_fpsr) : Likewise.
33865         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
33866         and UNSPECV_SET_FPSR.
33867         * doc/extend.texi (AARCH64 Built-in Functions) : Document
33868         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
33869         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
33871 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
33873         PR rtl-optimization/60969
33874         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
33875         constraints.  Set up mem cost for NO_REGS case.
33877 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
33879         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
33881 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
33883         * config/darwin.c: Include "lto-section-names.h".
33884         (LTO_SEGMENT_NAME): Don't define.
33885         * config/i386/winnt.c: Include "lto-section-names.h".
33886         * lto-streamer.c: Include "lto-section-names.h".
33887         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
33888         * lto-wrapper.c: Include "lto-section-names.h".
33889         (LTO_SECTION_NAME_PREFIX): Don't define.
33890         * lto-section-names.h: New file.
33891         * cgraphunit.c: Include "lto-section-names.h".
33893 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
33895         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
33897 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
33899         PR target/61208
33900         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
33902 2014-05-22  Nick Clifton  <nickc@redhat.com>
33904         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
33906 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
33908         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
33909         -> (T)A transformation to integer types.
33911 2014-05-22  Teresa Johnson  <tejohnson@google.com>
33913         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
33914         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
33915         (gcov_rewrite): Use gcov_nonruntime_assert.
33916         (gcov_open): Ditto.
33917         (gcov_write_words): Ditto.
33918         (gcov_write_length): Ditto.
33919         (gcov_read_words): Use gcov_nonruntime_assert, and remove
33920         gcc_assert from IN_LIBGCOV code.
33921         (gcov_read_summary): Use gcov_error to flag profile corruption.
33922         (gcov_sync): Use gcov_nonruntime_assert.
33923         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
33924         (gcov_histo_index): Use gcov_nonruntime_assert.
33925         (static void gcov_histogram_merge): Ditto.
33926         (compute_working_sets): Ditto.
33927         * gcov-io.h (gcov_nonruntime_assert): Define.
33928         (gcov_error): Define for !IN_LIBGCOV
33930 2014-05-22  Richard Biener  <rguenther@suse.de>
33932         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
33933         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
33934         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
33935         and deallocation site.
33936         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33937         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
33938         passing through the incoming points-to set.
33939         (handle_lhs_call): Use flags argument instead of recomputing it.
33940         (find_func_aliases_for_call): Call handle_lhs_call with proper
33941         call return flags.
33943 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
33945         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
33946         all padding bits in REAL_VALUE_TYPE are cleared.
33948 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33950         Cleanup and improve multipass_dfa_lookahead_guard
33951         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
33952         (core2i7_first_cycle_multipass_begin,)
33953         (core2i7_first_cycle_multipass_issue,)
33954         (core2i7_first_cycle_multipass_backtrack): Update signature.
33955         * config/ia64/ia64.c
33956         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
33957         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
33958         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
33959         hook definition.
33960         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
33961         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
33962         values.
33963         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
33964         return values.
33965         * doc/tm.texi: Regenerate.
33966         * doc/tm.texi.in
33967         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
33968         * haifa-sched.c (ready_try): Make signed to allow negative values.
33969         (rebug_ready_list_1): Update.
33970         (choose_ready): Simplify.
33971         (sched_extend_ready_list): Update.
33973 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33975         Remove IA64 speculation tweaking flags
33976         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
33977         speculation tuning flags.
33978         (msched-prefer-non-data-spec-insns,)
33979         (msched-prefer-non-control-spec-insns): Obsolete options.
33980         * haifa-sched.c (choose_ready): Remove handling of
33981         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
33982         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
33983         and PREFER_NON_DATA_SPEC.
33984         * sel-sched.c (process_spec_exprs): Remove handling of
33985         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
33987 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33989         Improve scheduling debug output
33990         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
33991         (advance_one_cycle): Update.
33992         (schedule_insn, queue_to_ready): Add debug printouts.
33993         (debug_ready_list_1): New static function.
33994         (debug_ready_list): Update.
33995         (max_issue): Add debug printouts.
33996         (dump_insn_stream): New static function.
33997         (schedule_block): Use it.  Also better indent printouts.
33999 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34001         Fix sched_insn debug counter
34002         * haifa-sched.c (schedule_insn): Update.
34003         (struct haifa_saved_data): Add nonscheduled_insns_begin.
34004         (save_backtrack_point, restore_backtrack_point): Update.
34005         (first_nonscheduled_insn): New static function.
34006         (queue_to_ready, choose_ready): Use it.
34007         (schedule_block): Init nonscheduled_insns_begin.
34008         (sched_emit_insn): Update.
34011 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
34013         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
34014         to GENERAL_REGS.
34015         (aarch64_secondary_reload) : LikeWise.
34016         (aarch64_class_max_nregs) : Remove CORE_REGS.
34017         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
34018         (REG_CLASS_NAMES) : Likewise.
34019         (REG_CLASS_CONTENTS) : LikeWise.
34020         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
34022 2014-05-21  Guozhi Wei  <carrot@google.com>
34024         PR target/61202
34025         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
34026         constraint.
34027         (vqdmulhq_n_s16): Likewise.
34029 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
34031         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
34033 2014-05-21  Marek Polacek  <polacek@redhat.com>
34035         PR sanitizer/61272
34036         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
34038 2014-05-21  Martin Jambor  <mjambor@suse.cz>
34040         * doc/invoke.texi (Optimize Options): Document parameters
34041         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
34042         ipa-cp-array-index-hint-bonus.
34044 2014-05-21  Mark Wielaard  <mjw@redhat.com>
34046         PR debug/16063
34047         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
34048         version >= 3 or not strict DWARF.
34049         * langhooks.h (struct lang_hooks_for_types): Add
34050         enum_underlying_base_type.
34051         * langhooks.c (lhd_enum_underlying_base_type): New function.
34052         * gcc/langhooks.h (struct lang_hooks_for_types): Add
34053         enum_underlying_base_type.
34054         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
34055         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
34056         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
34058 2014-05-21  Richard Biener  <rguenther@suse.de>
34060         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
34062 2014-05-21  John Marino  <gnugcc@marino.st>
34064         * config.gcc (*-*-dragonfly*): New target.
34065         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
34066         * configure: Regenerate.
34067         * config/dragonfly-stdint.h: New.
34068         * config/dragonfly.h: New.
34069         * config/dragonfly.opt: New.
34070         * config/i386/dragonfly.h: New.
34071         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
34073 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
34075         * tree.def (VOID_CST): New.
34076         * tree-core.h (TI_VOID): New.
34077         * tree.h (void_node): New.
34078         * tree.c (tree_node_structure_for_code, tree_code_size)
34079         (iterative_hash_expr): Handle VOID_CST.
34080         (build_common_tree_nodes): Initialize void_node.
34082 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
34084         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
34085         functions.
34086         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
34088         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
34089         more places.
34091         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
34092         flag_reorder_blocks_and_partition.
34093         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
34095 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
34097         PR target/54236
34098         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
34099         constraints.
34100         (*addc_r_t): Add new insn_and_split.
34102 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
34104         PR middle-end/61252
34105         * omp-low.c (handle_simd_reference): New function.
34106         (lower_rec_input_clauses): Use it.  Defer adding reference
34107         initialization even for reduction without placeholder if in simd,
34108         handle it properly later on.
34110 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
34112         PR tree-optimization/60899
34113         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
34114         assume all static symbols will have definition wile parsing and
34115         check the do have definition later in compilation; check that
34116         variable referring symbol will be output before concluding that
34117         reference is safe; be conservative for referring local statics;
34118         be more precise about when comdat is output in other partition.
34120 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
34122         PR bootstrap/60984
34123         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
34124         parameter.
34125         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
34126         (ipa_inline): Loop inline_to_all_callers until no more aliases
34127         are removed.
34129 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
34131         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
34132         set writeonly flag only for vars actually written to.
34134 2014-05-20  Dehao Chen  <dehao@google.com>
34136         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
34137         and callee count to get clone count.
34138         * tree-inline.c (expand_call_inline): Use callee count instead of bb
34139         count in copy_body.
34141 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
34143         PR rtl-optimization/61243
34144         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
34146 2014-05-20  Xinliang David Li  <davidxl@google.com>
34148         * cgraphunit.c (walk_polymorphic_call_targets): Add
34149         dbgcnt and fopt-info support.
34150         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
34151         * ipa-devirt.c (ipa_devirt): Ditto.
34152         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
34153         * ipa.c (walk_polymorphic_call_targets): Ditto.
34154         * gimple-fold.c (fold_gimple_assign): Ditto.
34155         (gimple_fold_call): Ditto.
34156         * dbgcnt.def: New counter.
34158 2014-05-20  DJ Delorie  <dj@redhat.com>
34160         * config/msp430/msp430.md (split): Don't allow subregs when
34161         splitting SImode adds.
34162         (andneghi): Fix subtraction logic.
34163         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
34165 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
34167         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
34168         symbols.
34169         * except.c (switch_to_exception_section, resolve_unique_section,
34170         get_named_text_section, default_function_rodata_section,
34171         align_variable, get_block_for_decl, default_section_type_flags):
34172         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
34173         * symtab.c (symtab_add_to_same_comdat_group,
34174         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
34175         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
34176         Likewise.
34177         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
34178         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
34179         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34180         (c6x_function_in_section_p): Likewise.
34181         * config/darwin.c (machopic_select_section): Likewise.
34182         * config/arm/arm.c (arm_function_in_section_p): Likewise.
34183         * config/mips/mips.c (mips_function_rodata_section): Likewise.
34184         * config/mep/mep.c (mep_select_section): LIkewise.
34185         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34187 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
34189         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
34190         EH region of calls to pure functions that can throw an exception.
34191         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
34192         (copy_reference_ops_from_call): Also copy the EH region of the call if
34193         it can throw an exception.
34195 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34197         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
34198         nested VEC_SELECTs that are inverses of each other.
34200 2014-05-20  Richard Biener  <rguenther@suse.de>
34202         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
34203         (extract_and_process_scc_for_name): not here.
34204         (cond_dom_walker::before_dom_children): Only process
34205         stmts that end the BB in interesting ways.
34206         (run_scc_vn): Mark param uses as visited.
34208 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34210         * config/arm/arm.md (arith_shiftsi): Do not predicate for
34211         arm_restrict_it.
34213 2014-05-20  Nick Clifton  <nickc@redhat.com>
34215         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
34216         (msp430_gimplify_va_arg_expr): New function.
34217         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
34219         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
34220         operand 0 in order to prevent confusion about the number of
34221         registers involved.
34223 2014-05-20  Richard Biener  <rguenther@suse.de>
34225         PR tree-optimization/61221
34226         * tree-ssa-pre.c (el_to_update): Remove.
34227         (eliminate_dom_walker::before_dom_children): Handle released
34228         VDEFs by value-numbering them to the associated VUSE.  Update
34229         stmt immediately for substituted call address.
34230         (eliminate): Remove delayed stmt updating code.
34231         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
34232         possibly late re-numbered vuses.
34233         (vn_reference_lookup_2): Adjust.
34234         (vn_reference_lookup_pieces): Likewise.
34235         (vn_reference_lookup): Likewise.
34237 2014-05-20  Richard Biener  <rguenther@suse.de>
34239         * config.gcc: Remove need_64bit_hwint.
34240         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
34241         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
34242         it to be true.
34243         * config.in: Regenerate.
34244         * configure: Likewise.
34246 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
34248         * doc/extend.texi: Create Label Attributes section,
34249         move all label attributes into it and reference it.
34251 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
34253         * arm.c (thumb1_reorg): When scanning backwards skip anything
34254         that's not a proper insn.
34256 2014-05-19  Richard Biener  <rguenther@suse.de>
34258         PR tree-optimization/61221
34259         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34260         Do nothing for unreachable blocks.
34261         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
34262         Improve unreachability detection.
34264 2014-05-19  Richard Biener  <rguenther@suse.de>
34266         PR tree-optimization/61209
34267         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
34269 2014-05-19  Nick Clifton  <nickc@redhat.com>
34271         * except.c (init_eh): Fix computation of builtin setjmp buffer
34272         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
34274 2014-05-19  Richard Biener  <rguenther@suse.de>
34276         PR tree-optimization/61184
34277         * tree-vrp.c (is_negative_overflow_infinity): Use
34278         TREE_OVERFLOW_P and do that check first.
34279         (is_positive_overflow_infinity): Likewise.
34280         (is_overflow_infinity): Likewise.
34281         (vrp_operand_equal_p): Properly treat operands with
34282         differing overflow as not equal.
34284 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
34286         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
34287         shift simplification where it was intended.
34289 2014-05-19  Christian Bruel  <christian.bruel@st.com>
34291         PR target/61195
34292         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
34294 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
34296         PR target/61084
34297         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
34298         than wide_int.
34300 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
34302         * reg-notes.def (CROSSING_JUMP): Likewise.
34303         * rtl.h (rtx_def): Update comment for jump flag.
34304         (CROSSING_JUMP_P): Define.
34305         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
34306         of a REG_CROSSING_JUMP note.
34307         * cfghooks.c (tidy_fallthru_edges): Likewise.
34308         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
34309         * emit-rtl.c (try_split): Likewise.
34310         * haifa-sched.c (sched_create_recovery_edges): Likewise.
34311         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
34312         * jump.c (redirect_jump_2): Likewise.
34313         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
34314         (relax_delay_slots): Likewise.
34315         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
34316         (bbit_di): Likewise.
34317         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
34318         * config/sh/sh.md (jump_compact): Likewise.
34319         * bb-reorder.c (rotate_loop): Likewise.
34320         (pass_duplicate_computed_gotos::execute): Likewise.
34321         (add_reg_crossing_jump_notes): Rename to...
34322         (update_crossing_jump_flags): ...this.
34323         (pass_partition_blocks::execute): Update accordingly.
34325 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
34327         * tree.h: Remove extraneous template <>.
34329 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
34331         * ipa.c (symtab_remove_unreachable_nodes): Remove
34332         symbol from comdat group if its body was eliminated.
34333         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
34334         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
34335         (symtab_unregister_node): ... this one.
34336         (verify_symtab_base): More strict checking of comdats.
34337         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
34339 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
34341         * tree-pass.h (make_pass_ipa_comdats): New pass.
34342         * timevar.def (TV_IPA_COMDATS): New timevar.
34343         * passes.def (pass_ipa_comdats): Add.
34344         * Makefile.in (OBJS): Add ipa-comdats.o
34345         * ipa-comdats.c: New file.
34347 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
34349         * ipa.c (update_visibility_by_resolution_info): New function.
34350         (function_and_variable_visibility): Use it.
34352 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
34354         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
34355         New functions.
34356         (FOR_EACH_DEFINED_SYMBOL): New macro.
34357         (varpool_first_static_initializer, varpool_next_static_initializer,
34358         varpool_first_defined_variable, varpool_next_defined_variable):
34359         Fix comments.
34360         (symtab_in_same_comdat_p): Correctly deal with inline functions.
34362 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
34364         * ggc-page.c (ggc_handle_finalizers): Add comment.
34366 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
34368         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
34369         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
34370         (ggc_internal_cleared_alloc): Likewise.
34371         * ggc-page.c (finalizer): New class.
34372         (vec_finalizer): Likewise.
34373         (globals::finalizers): New member.
34374         (globals::vec_finalizers): Likewise.
34375         (ggc_internal_alloc): Record the finalizer if any for the block being
34376         allocated.
34377         (ggc_handle_finalizers): New function.
34378         (ggc_collect): Call ggc_handle_finalizers.
34379         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
34380         finalizer.
34381         (ggc_internal_cleared_alloc): Likewise.
34382         (finalize): New function.
34383         (need_finalization_p): Likewise.
34384         (ggc_alloc): Install the type's destructor as the finalizer if it
34385         might do something.
34386         (ggc_cleared_alloc): Likewise.
34387         (ggc_vec_alloc): Likewise.
34388         (ggc_cleared_vec_alloc): Likewise.
34390 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
34392         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
34394 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
34396         * alias.c (record_alias_subset): Adjust.
34397         * bitmap.c (bitmap_element_allocate): Likewise.
34398         (bitmap_gc_alloc_stat): Likewise.
34399         * cfg.c (init_flow): Likewise.
34400         (alloc_block): Likewise.
34401         (unchecked_make_edge): Likewise.
34402         * cfgloop.c (alloc_loop): Likewise.
34403         (flow_loops_find): Likewise.
34404         (rescan_loop_exit): Likewise.
34405         * cfgrtl.c (init_rtl_bb_info): Likewise.
34406         * cgraph.c (insert_new_cgraph_node_version): Likewise.
34407         (cgraph_allocate_node): Likewise.
34408         (cgraph_create_edge_1): Likewise.
34409         (cgraph_allocate_init_indirect_info): Likewise.
34410         * cgraphclones.c (cgraph_clone_edge): Likewise.
34411         * cgraphunit.c (add_asm_node): Likewise.
34412         (init_lowered_empty_function): Likewise.
34413         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
34414         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
34415         (alpha_use_linkage): Likewise.
34416         * config/arc/arc.c (arc_init_machine_status): Likewise.
34417         * config/arm/arm.c (arm_init_machine_status): Likewise.
34418         * config/avr/avr.c (avr_init_machine_status): Likewise.
34419         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
34420         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
34421         * config/cris/cris.c (cris_init_machine_status): Likewise.
34422         * config/darwin.c (machopic_indirection_name): Likewise.
34423         (darwin_build_constant_cfstring): Likewise.
34424         (darwin_enter_string_into_cfstring_table): Likewise.
34425         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
34426         * config/frv/frv.c (frv_init_machine_status): Likewise.
34427         * config/i386/i386.c (get_dllimport_decl): Likewise.
34428         (ix86_init_machine_status): Likewise.
34429         (assign_386_stack_local): Likewise.
34430         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
34431         (i386_pe_maybe_record_exported_symbol): Likewise.
34432         (i386_pe_record_stub): Likewise.
34433         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
34434         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
34435         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
34436         (m32c_note_pragma_address): Likewise.
34437         * config/mep/mep.c (mep_init_machine_status): Likewise.
34438         (mep_note_pragma_flag): Likewise.
34439         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
34440         (mips16_local_alias): Likewise.
34441         (mips_init_machine_status): Likewise.
34442         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
34443         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
34444         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
34445         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
34446         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
34447         * config/pa/pa.c (pa_init_machine_status): Likewise.
34448         (pa_get_deferred_plabel): Likewise.
34449         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
34450         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
34451         (rs6000_init_machine_status): Likewise.
34452         (output_toc): Likewise.
34453         * config/s390/s390.c (s390_init_machine_status): Likewise.
34454         * config/score/score.c (score_output_external): Likewise.
34455         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
34456         * config/spu/spu.c (spu_init_machine_status): Likewise.
34457         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
34458         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
34459         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
34460         * coverage.c (coverage_end_function): Likewise.
34461         * dbxout.c (dbxout_init): Likewise.
34462         * doc/gty.texi: Don't mention variable_size attribute.
34463         * dwarf2cfi.c (new_cfi): Adjust.
34464         (new_cfi_row): Likewise.
34465         (copy_cfi_row): Likewise.
34466         (create_cie_data): Likewise.
34467         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
34468         (new_loc_descr): Likewise.
34469         (find_AT_string_in_table): Likewise.
34470         (add_addr_table_entry): Likewise.
34471         (new_die): Likewise.
34472         (add_var_loc_to_decl): Likewise.
34473         (clone_die): Likewise.
34474         (clone_as_declaration): Likewise.
34475         (break_out_comdat_types): Likewise.
34476         (new_loc_list): Likewise.
34477         (add_loc_descr_to_each): Likewise.
34478         (add_location_or_const_value_attribute): Likewise.
34479         (add_linkage_name): Likewise.
34480         (lookup_filename): Likewise.
34481         (dwarf2out_var_location): Likewise.
34482         (new_line_info_table): Likewise.
34483         (dwarf2out_init): Likewise.
34484         (mem_loc_descriptor): Likewise.
34485         (loc_descriptor): Likewise.
34486         (add_const_value_attribute): Likewise.
34487         (tree_add_const_value_attribute): Likewise.
34488         (comp_dir_string): Likewise.
34489         (dwarf2out_vms_debug_main_pointer): Likewise.
34490         (string_cst_pool_decl): Likewise.
34491         * emit-rtl.c (set_mem_attrs): Likewise.
34492         (get_reg_attrs): Likewise.
34493         (start_sequence): Likewise.
34494         (init_emit): Likewise.
34495         (init_emit_regs): Likewise.
34496         * except.c (init_eh_for_function): Likewise.
34497         (gen_eh_region): Likewise.
34498         (gen_eh_region_catch): Likewise.
34499         (gen_eh_landing_pad): Likewise.
34500         (add_call_site): Likewise.
34501         * function.c (add_frame_space): Likewise.
34502         (insert_temp_slot_address): Likewise.
34503         (assign_stack_temp_for_type): Likewise.
34504         (get_hard_reg_initial_val): Likewise.
34505         (allocate_struct_function): Likewise.
34506         (prepare_function_start): Likewise.
34507         (types_used_by_var_decl_insert): Likewise.
34508         * gengtype.c (variable_size_p): Remove function.
34509         (enum alloc_quantity): Remove enum.
34510         (write_typed_alloc_def): Remove function.
34511         (write_typed_struct_alloc_def): Likewise.
34512         (write_typed_typedef_alloc_def): Likewise.
34513         (write_typed_alloc_defns): Likewise.
34514         (main): Adjust.
34515         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
34516         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
34517         * ggc.h (ggc_alloc): new function.
34518         (ggc_cleared_alloc): Likewise.
34519         (ggc_vec_alloc): Template on type of vector element, and remove
34520         element size argument.
34521         (ggc_cleared_vec_alloc): Likewise.
34522         * gimple.c (gimple_build_omp_for): Adjust.
34523         (gimple_copy): Likewise.
34524         * ipa-cp.c (get_replacement_map): Likewise.
34525         (find_aggregate_values_for_callers_subset): Likewise.
34526         (known_aggs_to_agg_replacement_list): Likewise.
34527         * ipa-devirt.c (get_odr_type): Likewise.
34528         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
34529         (read_agg_replacement_chain): Likewise.
34530         * loop-iv.c (get_simple_loop_desc): Likewise.
34531         * lto-cgraph.c (input_node_opt_summary): Likewise.
34532         * lto-section-in.c (lto_new_in_decl_state): Likewise.
34533         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
34534         (input_eh_region): Likewise.
34535         (input_eh_lp): Likewise.
34536         (input_cfg): Likewise.
34537         * optabs.c (set_optab_libfunc): Likewise.
34538         (init_tree_optimization_optabs): Likewise.
34539         (set_conv_libfunc): Likewise.
34540         * passes.c (do_per_function_toporder): Likewise.
34541         * rtl.h: Don't use variable_size gty attribute.
34542         * sese.c (if_region_set_false_region): Adjust.
34543         * stringpool.c (gt_pch_save_stringpool): Likewise.
34544         * target-globals.c (save_target_globals): Likewise.
34545         * toplev.c (general_init): Likewise.
34546         * trans-mem.c (record_tm_replacement): Likewise.
34547         (split_bb_make_tm_edge): Likewise.
34548         * tree-cfg.c (move_sese_region_to_fn): Likewise.
34549         * tree-data-ref.h (lambda_vector_new): Likewise.
34550         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
34551         * tree-iterator.c (tsi_link_before): Likewise.
34552         (tsi_link_after): Likewise.
34553         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
34554         * tree-ssa-loop-niter.c (record_estimate): Likewise.
34555         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
34556         * tree-ssa-operands.h: Don't use variable_size gty attribute.
34557         * tree-ssa.c (init_tree_ssa): Adjust.
34558         * tree-ssanames.c (set_range_info): Likewise.
34559         (get_ptr_info): Likewise.
34560         (duplicate_ssa_name_ptr_info): Likewise.
34561         (duplicate_ssa_name_range_info): Likewise.
34562         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
34563         (unpack_ts_fixed_cst_value_fields): Likewise.
34564         * tree.c (build_fixed): Likewise.
34565         (build_real): Likewise.
34566         (build_string): Likewise.
34567         (decl_priority_info): Likewise.
34568         (decl_debug_expr_insert): Likewise.
34569         (decl_value_expr_insert): Likewise.
34570         (decl_debug_args_insert): Likewise.
34571         (type_hash_add): Likewise.
34572         (build_omp_clause): Likewise.
34573         * ubsan.c (decl_for_type_insert): Likewise.
34574         * varasm.c (get_unnamed_section): Likewise.
34575         (get_noswitch_section): Likewise.
34576         (get_section): Likewise.
34577         (get_block_for_section): Likewise.
34578         (create_block_symbol): Likewise.
34579         (build_constant_desc): Likewise.
34580         (create_constant_pool): Likewise.
34581         (force_const_mem): Likewise.
34582         (record_tm_clone_pair): Likewise.
34583         * varpool.c (varpool_create_empty_node): Likewise.
34585 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
34587         * dwarf2out.c (tree_add_const_value_attribute): Call
34588         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
34589         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
34590         instead of ggc_internal_<x>alloc_stat.
34591         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
34592         (ggc_realloc): Likewise.
34593         * ggc-none.c (ggc_internal_alloc): Likewise.
34594         (ggc_internal_cleared_alloc): Likewise.
34595         * ggc-page.c: Likewise.
34596         * ggc.h (ggc_internal_alloc_stat): Likewise.
34597         (ggc_internal_alloc): Remove macro.
34598         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
34599         (ggc_internal_cleared_alloc): Remove macro.
34600         (GGC_RESIZEVEC): Adjust.
34601         (ggc_resizevar): Remove macro.
34602         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
34603         (ggc_internal_cleared_vec_alloc_stat): Likewise.
34604         (ggc_internal_vec_cleared_alloc): Remove macro.
34605         (ggc_alloc_atomic_stat): Drop _stat suffix.
34606         (ggc_alloc_atomic): Remove macro.
34607         (ggc_alloc_cleared_atomic): Remove macro.
34608         (ggc_alloc_string_stat): Drop _stat suffix.
34609         (ggc_alloc_string): Remove macro.
34610         (ggc_alloc_rtx_def_stat): Adjust.
34611         (ggc_alloc_tree_node_stat): Likewise.
34612         (ggc_alloc_cleared_tree_node_stat): Likewise.
34613         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
34614         (ggc_alloc_cleared_simd_clone_stat): Likewise.
34615         * gimple.c (gimple_build_omp_for): Likewise.
34616         (gimple_copy): Likewise.
34617         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
34618         * toplev.c (realloc_for_line_map): Adjust.
34619         * tree-data-ref.h (lambda_vector_new): Likewise.
34620         * tree-phinodes.c (allocate_phi_node): Likewise.
34621         * tree.c (grow_tree_vec_stat): Likewise.
34622         * vec.h (va_gc::reserve): Adjust.
34624 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
34626         * config/microblaze/microblaze.c (break_handler): New Declaration.
34627         (microblaze_break_function_p,microblaze_is_break_handler): New.
34628         (compute_frame_size): Use microblaze_break_function_p.
34629         Add the test of break_handler.
34630         (microblaze_function_prologue) : Add the test of variable
34631         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
34632         (microblaze_function_epilogue) : Add the test of break_handler.
34633         (microblaze_globalize_label) : Add the test of break_handler.
34634         Check the name by BREAK_HANDLER_NAME.
34636         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
34638         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
34639         microblaze_is_break_handler test.
34640         (call_internal1,call_value_intern): Use microblaze_break_function_p.
34641         Use SYMBOL_REF_DECL.
34643         * config/microblaze/microblaze-protos.h
34644         (microblaze_break_function_p,microblaze_is_break_handler):
34645         New Declaration.
34647         * doc/extend.texi (MicroBlaze break_handler Functions): Document
34648         new MicroBlaze break_handler functions.
34650 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
34652         * doc/extend.texi (Size of an asm): Move node text according
34653         to its @menu entry position.
34655 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
34657         PR tree-optimization/61140
34658         PR tree-optimization/61150
34659         PR tree-optimization/61197
34660         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
34662 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
34664         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
34666 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
34668         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
34669         __SIZEOF_INT128__ is defined.
34671 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
34673         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
34674         (rs6000_delegitimize_address): Use it.
34676 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
34678         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
34679         inplace argument.  Store the new address in the original MEM when true.
34680         * emit-rtl.c (change_address_1): Likewise.
34681         (adjust_address_1, adjust_automodify_address_1, offset_address):
34682         Update accordingly.
34683         * rtl.h (plus_constant): Add an inplace argument.
34684         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
34685         when true.  Avoid generating (plus X (const_int 0)).
34686         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
34687         in-place.  Pass true to plus_constant.
34688         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
34690 2014-05-16  Dehao Chen  <dehao@google.com>
34692         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
34694 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
34696         PR target/54089
34697         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
34698         patterns.
34699         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
34701 2014-05-16  Dehao Chen  <dehao@google.com>
34703         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
34704         optimize_function_for_size_p.
34705         * regs.h (REG_FREQ_FROM_BB): Likewise.
34707 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
34709         PR target/51244
34710         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
34711         negt_reg_operand cases.
34712         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
34713         predicate.
34714         * config/sh/predicates.md (cbranch_treg_value): Simplify.
34716 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
34718         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
34719         target variants.
34721 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
34723         Revert:
34724         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
34726         * tree-cfg.c (dump_function_to_file): Dump the return type of
34727         functions, in a line to itself before the function body, mimicking
34728         the layout of a C function.
34730 2014-05-16  Dehao Chen  <dehao@google.com>
34732         * cfghooks.c (make_forwarder_block): Use direct computation to
34733         get fall-through edge's count and frequency.
34735 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
34737         * config/arc/arc.c (arc_init): Fix typo in error message.
34738         * config/i386/i386.c (ix86_expand_builtin): Likewise.
34739         (split_stack_prologue_scratch_regno): Likewise.
34740         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
34741         word from error message.
34743 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34745         * ira-costs.c: Fix typo in comment.
34747 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
34749         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
34751 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
34753         * varpool.c (dump_varpool_node): Dump write-only flag.
34754         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
34755         write-only flag.
34756         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
34757         write-only variables.
34758         * ipa.c (process_references): New function.
34759         (set_readonly_bit): New function.
34760         (set_writeonly_bit): New function.
34761         (clear_addressable_bit): New function.
34762         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
34763         fix handling of aliases.
34764         * cgraph.h (struct varpool_node): Add writeonly flag.
34766 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
34768         PR rtl-optimization/60969
34769         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
34770         Calculate costs for this case.
34772 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
34774         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
34775         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
34777 2014-05-16  Richard Biener  <rguenther@suse.de>
34779         PR tree-optimization/61194
34780         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
34781         bool patterns ending in a COND_EXPR.
34783 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34785         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
34787 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34789         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
34790         where we were unable to cost an RTX.
34792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34794         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
34795         HIGH, LO_SUM.
34797 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34798             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34800         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
34802 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34803             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34805         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
34806         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
34808 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34809             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34811         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
34812         operators.
34814 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34815             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34817         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
34818         DIV/MOD.
34820 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34821             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34823         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
34824         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
34826 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34827             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34829         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
34830         rotates and shifts.
34832 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34833             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34835         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
34836         ZERO_EXTEND and SIGN_EXTEND better.
34838 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34839             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34841         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
34842         logical operations.
34844 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34845             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34847         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
34848         costs when costing loads and stores to memory.
34850 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34851             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
34853         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
34854         for SET RTX.
34856 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34858         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
34860 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34861             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34863         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
34864         to...
34865         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
34866         well formed.
34867         (aarch64_rtx_mult_cost): New.
34868         (aarch64_rtx_costs): Use it, refactor as appropriate.
34870 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34871             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34873         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
34874         emit instructions, return number of instructions which would
34875         be emitted.
34876         (aarch64_add_constant): Update call to aarch64_build_constant.
34877         (aarch64_output_mi_thunk): Likewise.
34878         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
34879         a CONST_DOUBLE.
34881 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34883         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
34884         (TARGET_RTX_COSTS): Call it.
34886 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34888         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
34889         (cortexa57_vector_cost): Likewise.
34890         (cortexa57_tunings): Use them.
34892 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
34894         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
34895         (cpu_addrcost_table): Use it.
34896         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
34897         (aarch64_address_cost): Rewrite using aarch64_classify_address,
34898         move it.
34900 2014-05-16  Richard Biener  <rguenther@suse.de>
34902         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
34903         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
34904         (visit_phi): Ignore edges marked as not executable.
34905         (class cond_dom_walker): New.
34906         (cond_dom_walker::before_dom_children): Value-number
34907         control statements and mark successor edges as not
34908         executable if possible.
34909         (run_scc_vn): First walk all control statements in
34910         dominator order, marking edges as not executable.
34911         * tree-inline.c (copy_edges_for_bb): Be not confused
34912         about random edge flags.
34914 2014-05-16  Richard Biener  <rguenther@suse.de>
34916         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
34918 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
34920         PR target/61193
34921         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
34922         (__TM_simple_begin): Use it.
34923         (__TM_begin): Likewise.
34925 2014-05-15  Martin Jambor  <mjambor@suse.cz>
34927         PR ipa/61085
34928         * ipa-prop.c (update_indirect_edges_after_inlining): Check
34929         type_preserved flag when the indirect edge is polymorphic.
34931 2014-05-15  Martin Jambor  <mjambor@suse.cz>
34933         PR tree-optimization/61090
34934         * tree-sra.c (sra_modify_expr): Pass the current gsi to
34935         build_ref_for_model.
34937 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34939         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
34940         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
34942 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
34944         PR tree-optimization/61158
34945         * fold-const.c (fold_binary_loc): If X is zero-extended and
34946         shiftc >= prec, make sure zerobits is all ones instead of
34947         invoking undefined behavior.
34949 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
34951         * regcprop.h: New file.
34952         * regcprop.c (skip_debug_insn_p): New decl.
34953         (replace_oldest_value_reg): Check skip_debug_insn_p.
34954         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
34955         * shrink-wrap.c: Include regcprop.h.
34956         (prepare_shrink_wrap): Call
34957         copyprop_hardreg_forward_bb_without_debug_insn.
34959 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
34961         * shrink-wrap.h: Update comment.
34962         * shrink-wrap.c: Update comment.
34963         (next_block_for_reg): Rename to live_edge_for_reg.
34964         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
34965         (move_insn_for_shrink_wrap): Split live_edge.
34966         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
34968 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
34970         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
34971         Delete.
34972         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
34973         * config/sparc/sparc.md (fptype_ut699): New attribute.
34974         (in_branch_delay): Return false if -mfix-ut699 is specified and
34975         fptype_ut699 is set to single.
34976         (truncdfsf2): Add fptype_ut699 attribute.
34977         (fix_truncdfsi2): Likewise.
34978         (floatsisf2): Change fptype attribute.
34979         (fix_truncsfsi2): Likewise.
34980         (negtf2_notv9): Delete.
34981         (negtf2_v9): Likewise.
34982         (negtf2_hq): New instruction.
34983         (negtf2): New instruction and splitter.
34984         (negdf2_notv9): Rewrite.
34985         (abstf2_notv9): Delete.
34986         (abstf2_hq_v9): Likewise.
34987         (abstf2_v9): Likewise.
34988         (abstf2_hq): New instruction.
34989         (abstf2): New instruction and splitter.
34990         (absdf2_notv9): Rewrite.
34992 2014-05-14  Cary Coutant  <ccoutant@google.com>
34994         PR debug/61013
34995         * opts.c (common_handle_option): Don't special-case "-g".
34996         (set_debug_level): Default to at least level 2 with "-g".
34998 2014-05-14  DJ Delorie  <dj@redhat.com>
35000         * config/msp430/msp430.c (msp430_builtin): Add
35001         MSP430_BUILTIN_DELAY_CYCLES.
35002         (msp430_init_builtins): Register void __delay_cycles(long long).
35003         (msp430_builtin_decl): Add it.
35004         (cg_magic_constant): New.
35005         (msp430_expand_delay_cycles): New.
35006         (msp430_expand_builtin): Call it.
35007         (msp430_print_operand_raw): Change integer printing from "int" to
35008         HOST_WIDE_INT.
35009         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
35010         (delay_cycles_start): New.
35011         (delay_cycles_end): New.
35012         (delay_cycles_32): New.
35013         (delay_cycles_32x): New.
35014         (delay_cycles_16): New.
35015         (delay_cycles_16x): New.
35016         (delay_cycles_2): New.
35017         (delay_cycles_1): New.
35018         * doc/extend.texi: Document __delay_cycles().
35020 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
35022         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
35023         length attribute computation.
35025 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
35027         PR debug/61188
35028         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
35030 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
35032         PR target/61084
35033         * config/sparc/sparc.md: Fix types of low and high in DI constant
35034         splitter.  Use gen_int_mode in some other splitters.
35036 2014-05-14  Martin Jambor  <mjambor@suse.cz>
35038         PR ipa/60897
35039         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
35041 2014-05-14  James Norris  <jnorris@codesourcery.com>
35043         * omp-low.c (expand_parallel_call): Remove shadow variable.
35044         (expand_omp_taskreg): Likewise.
35046 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
35048         * common/config/i386/i386-common.c
35049         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
35050         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
35051         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
35052         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
35053         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
35054         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
35055         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
35056         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
35057         xsavecintrin.h, xsavesintrin.h.
35058         (x86_64-*-*): Ditto.
35059         * config/i386/clflushoptintrin.h: New.
35060         * config/i386/xsavecintrin.h: Ditto.
35061         * config/i386/xsavesintrin.h: Ditto.
35062         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
35063         (bit_XSAVES): Ditto.
35064         (bit_XSAVES): Ditto.
35065         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
35066         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
35067         -mno-clflushopt.
35068         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35069         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
35070         OPTION_MASK_ISA_XSAVES.
35071         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
35072         -mxsavec, -mxsaves.
35073         (PTA_CLFLUSHOPT) Define.
35074         (PTA_XSAVEC): Ditto.
35075         (PTA_XSAVES): Ditto.
35076         (ix86_option_override_internal): Handle new options.
35077         (ix86_valid_target_attribute_inner_p): Ditto.
35078         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
35079         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
35080         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
35081         (bdesc_special_args): Add __builtin_ia32_xsaves,
35082         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
35083         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
35084         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
35085         (ix86_expand_builtin): Handle new builtins.
35086         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
35087         (TARGET_CLFLUSHOPT_P): Ditto.
35088         (TARGET_XSAVEC): Ditto.
35089         (TARGET_XSAVEC_P): Ditto.
35090         (TARGET_XSAVES): Ditto.
35091         (TARGET_XSAVES_P): Ditto.
35092         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
35093         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
35094         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
35095         (ANY_XRSTOR): New.
35096         (ANY_XRSTOR64): Ditto.
35097         (xrstor): Ditto.
35098         (xrstor): Change into <xrstor>.
35099         (xrstor_rex64): Change into <xrstor>_rex64.
35100         (xrstor64): Change into <xrstor>64
35101         (clflushopt): New.
35102         * config/i386/i386.opt (mclflushopt): New.
35103         (mxsavec): Ditto.
35104         (mxsaves): Ditto.
35105         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
35106         xsavecintrin.h.
35107         * doc/invoke.texi: Document new options.
35109 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
35111         PR rtl-optimization/60866
35112         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
35113         Default it to -1.  Pass it down to init_simplejump_data.
35114         (init_simplejump_data): New parameter old_seqno.  Pass it down
35115         to get_seqno_for_a_jump.
35116         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
35117         initializing new jump seqno as a last resort.  Add comment.
35118         (sel_redirect_edge_and_branch): Save old seqno of the conditional
35119         jump and pass it down to sel_init_new_insn.
35120         (sel_redirect_edge_and_branch_force): Likewise.
35122 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
35124         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
35125         shifted values to avoid build warning.
35127 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
35129         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
35130         * cfgrtl.c (rtl_merge_blocks): Fix comment.
35131         (cfg_layout_merge_blocks): Likewise.
35132         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
35134 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
35136         PR rtl-optimization/60901
35137         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
35138         bb predecessor belongs to the same scheduling region.  Adjust comment.
35140 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
35142         * doc/sourcebuild.texi: (dfp_hw): Document.
35143         (p8vector_hw): Likewise.
35144         (powerpc_eabi_ok): Likewise.
35145         (powerpc_elfv2): Likewise.
35146         (powerpc_htm_ok): Likewise.
35147         (ppc_recip_hw): Likewise.
35148         (vsx_hw): Likewise.
35150 2014-05-13  Cary Coutant  <ccoutant@google.com>
35152         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
35154 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
35156         * gengtype-parse.c (require3): Eliminate in favor of...
35157         (require4): New.
35158         (require_template_declaration): Update to support optional single *
35159         on a type.
35161         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
35162         (create_user_defined_type): Handle a single level of explicit
35163         pointerness within template arguments.
35164         (struct write_types_data): Add field "kind".
35165         (filter_type_name): Handle "*" character.
35166         (write_user_func_for_structure_ptr): Require a write_types_data
35167         rather than just a prefix string, so that we can look up the kind
35168         of the wtd and use it as an index into wrote_user_func_for_ptr,
35169         ensuring that such functions are written at most once.  Support
35170         subclasses by invoking the marking function of the ultimate base class.
35171         (write_user_func_for_structure_body): Require a write_types_data
35172         rather than just a prefix string, so that we can pass this to
35173         write_user_func_for_structure_ptr.
35174         (write_func_for_structure): Likewise.
35175         (ggc_wtd): Add initializer of new "kind" field.
35176         (pch_wtd): Likewise.
35178         * gengtype.h (enum write_types_kinds): New.
35179         (struct type): Add field wrote_user_func_for_ptr to the "s"
35180         union member.
35182 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
35184         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
35185         instead of const_binop.
35186         (fold_binary_loc): Likewise.
35188 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
35190         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
35191         calculation to match get_ref_base_and_extent.
35193 2014-05-13  Catherine Moore  <clm@codesourcery.com>
35194             Sandra Loosemore  <sandra@codesourcery.com>
35196         * configure.ac: Fix assembly for explicit JALR relocation check.
35197         * configure: Regenerate.
35199 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35201         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
35202         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
35203         Remove associated type declarations and initialisations.
35204         (arm_expand_neon_builtin): Likewise.
35205         (neon_emit_pair_result_insn): Delete.
35206         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
35207         * config/arm/neon.md (neon_vtrn<mode>): Delete.
35208         (neon_vzip<mode>): Likewise.
35209         (neon_vuzp<mode>): Likewise.
35211 2014-05-13  Richard Biener  <rguenther@suse.de>
35213         PR ipa/60973
35214         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
35215         it needs revisiting whether the call still may be tail-called.
35217 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35219         * rtl.def (SYMBOL_REF): Remove middle "0" field.
35220         * rtl.h (block_symbol): Reduce number of fields to 2.
35221         (rtx_def): Add u2.symbol_ref_flags.
35222         (SYMBOL_REF_FLAGS): Use it.
35223         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
35224         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
35225         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
35226         Lower index of SYMBOL_REF_DATA.
35227         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
35228         Print SYMBOL_REF_FLAGS at the same time.
35229         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
35231 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35233         * rtl.def (VAR_LOCATION): Remove "i" field.
35234         * rtl.h (rtx_def): Add u2.var_location_status.
35235         (PAT_VAR_LOCATION_STATUS): Use it.
35236         (gen_rtx_VAR_LOCATION): Declare.
35237         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
35238         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
35239         * var-tracking.c (emit_note_insn_var_location): Remove casts.
35241 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35243         * rtl.def (scratch): Fix outdated comment and remove "0" field.
35244         * gengtype.c (adjust_field_rtx_def): Update accordingly.
35246 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35248         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
35249         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
35250         * rtl.h (rtx_def): Add insn_uid to u2 field.
35251         (RTX_FLAG_CHECK8): Delete in favor of...
35252         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
35253         (INSN_DELETED_P): Update accordingly.
35254         (INSN_UID): Use u2.insn_uid.
35255         (INSN_CHAIN_CODE_P): Define.
35256         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
35257         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
35258         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
35259         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
35260         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
35261         indices accordingly.
35262         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
35263         Update indices for insn-chain rtxes.
35264         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
35265         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
35266         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
35267         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
35268         * combine.c (try_combine): Likewise.
35269         * ira.c (setup_prohibited_mode_move_regs): Likewise.
35271 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35273         * rtl.def (REG): Remove middle field.
35274         * rtl.h (rtx_def): Add orignal_regno to u2.
35275         (ORIGINAL_REGNO): Use it instead of field 1.
35276         (REG_ATTRS): Lower field index accordingly.
35277         * gengtype.c (adjust_field_rtx_def): Remove handling of
35278         ORIGINAL_REGNO.  Move REG_ATTRS index down.
35279         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
35280         code that prints the REGNO.
35282 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35284         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
35285         GENERATOR_FILE.
35287 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
35289         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
35291 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
35293         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
35294         (alloc_iv): Lower base expressions containing ADDR_EXPR.
35296 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
35298         * config/aarch64/aarch64-protos.h
35299         (aarch64_hard_regno_caller_save_mode): New prototype.
35300         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
35301         New function.
35302         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
35304 2014-05-13  Christian Bruel  <christian.bruel@st.com>
35306         * target.def (mode_switching): New hook vector.
35307         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
35308         (mode_exit, modepriority_to_mode): Likewise.
35309         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
35310         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35311         * target.h: Include tm.h and hard-reg-set.h.
35312         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
35313         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
35314         * doc/tm.texi Regenerate.
35315         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35316         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35317         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
35318         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
35319         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35320         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35321         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
35322         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
35323         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
35324         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
35325         (ix86_emit_mode_set): Hookify.
35326         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
35327         Delete.
35328         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35329         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
35330         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
35331         (epiphany_mode_priority_to_mode): Remove declaration.
35332         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
35333         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
35334         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
35335         Likewise.
35336         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
35337         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
35338         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
35340 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
35342         PR target/61060
35343         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
35344         is const0_rtx, return immediately.  Don't test count == 0 when
35345         it is always true.
35347 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35349         * Makefile.in: add shrink-wrap.o.
35350         * config/i386/i386.c: include "shrink-wrap.h"
35351         * function.c: Likewise.
35352         (requires_stack_frame_p, next_block_for_reg,
35353         move_insn_for_shrink_wrap, prepare_shrink_wrap,
35354         dup_block_and_redirect): Move to shrink-wrap.c
35355         (thread_prologue_and_epilogue_insns): Extract three code segments
35356         as functions in shrink-wrap.c
35357         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
35358         shrink-wrap.h
35359         * shrink-wrap.c: New file.
35360         * shrink-wrap.h: New file.
35362 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
35364         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
35365         reference to Solaris.
35367 2014-05-12  Mike Stump  <mikestump@comcast.net>
35369         PR other/31778
35370         * genattrtab.c (filename): Add.
35371         (convert_set_attr_alternative): Improve error message.
35372         (check_defs): Restore read_md_filename for error messages.
35373         (gen_insn): Save filename.
35375 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
35377         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
35378         -fno-local-ivars and -fivar-visibility.
35379         * c-family/c.opt: Make -Wshadow also implicitly enable
35380         -Wshadow-ivar.
35382 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
35384         * doc/tm.texi: Remove reference to deleted macro.
35385         * doc/tm.texi.in: Likewise.
35387 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
35389         PR target/60991
35390         * config/avr/avr.c (avr_out_store_psi): Use correct constant
35391         to restore Y.
35393 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
35395         PR libgcc/61152
35396         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
35397         * config/arm/aout.h (License): Same.
35398         * config/arm/bpabi.h (License): Same.
35399         * config/arm/elf.h (License): Same.
35400         * config/arm/linux-elf.h (License): Same.
35401         * config/arm/linux-gas.h (License): Same.
35402         * config/arm/netbsd-elf.h (License): Same.
35403         * config/arm/uclinux-eabi.h (License): Same.
35404         * config/arm/uclinux-elf.h (License): Same.
35405         * config/arm/vxworks.h (License): Same.
35407 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
35409         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
35410         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
35411         number of operands to 3.
35412         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
35413         * tree-nested.c (convert_nonlocal_omp_clauses,
35414         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
35415         * gimplify.c (gimplify_scan_omp_clauses): Handle
35416         OMP_CLAUSE_LINEAR_STMT.
35417         * omp-low.c (lower_rec_input_clauses): Fix typo.
35418         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
35419         cast between Fortran boolean_type_node and C _Bool if
35420         needed.
35422 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
35424         PR tree-optimization/61136
35425         * wide-int.h (multiple_of_p): Define a version that doesn't return
35426         the quotient.
35427         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
35428         integer_zerop/const_binop pair.
35429         (multiple_of_p): Likewise, converting both operands to widest_int
35430         precision.
35432 2014-05-09  Teresa Johnson  <tejohnson@google.com>
35434         * cgraphunit.c (analyze_functions): Use correct dump file.
35436 2014-05-09  Florian Weimer  <fweimer@redhat.com>
35438         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
35439         expand_used_vars.
35440         (stack_protect_return_slot_p): New function.
35441         (expand_used_vars): Call stack_protect_decl_p and
35442         stack_protect_return_slot_p for -fstack-protector-strong.
35444 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
35445         Andrew Haley <aph@redhat.com>
35446         Richard Sandiford <rdsandiford@googlemail.com>
35448         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
35449         pages.
35451 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
35453         PR middle-end/61111
35454         * fold-const.c (fold_binary_loc): Changed width of mask.
35456 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
35458         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
35459         unsigned int initializers for regno_in, regno_out.
35461 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
35463         PR target/61055
35464         * config/avr/avr.md (cc): Add new attribute set_vzn.
35465         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
35466         Set cc insn attribute to set_vzn instead of set_zn for alternatives
35467         with INC, DEC or NEG.
35468         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
35469         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
35470         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
35472 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35474         Revert:
35475         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35477         * wide-int.cc (UTItype): Define.
35478         (UDWtype): Define for appropriate W_TYPE_SIZE.
35480 2014-05-09  Richard Biener  <rguenther@suse.de>
35482         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
35483         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
35484         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
35485         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
35486         ssa_propagate): Adjust.
35488 2014-05-08  Jeff Law  <law@redhat.com>
35490         PR tree-optimization/61009
35491         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
35492         tri-state rather than a boolean.  When a block is too big to
35493         thread through, inform caller via negative return value.
35494         (thread_across_edge): If a block was too big for normal threading,
35495         then it's too big for a joiner too, so remove temporary equivalences
35496         and return immediately.
35498 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35499             Matthias Klose  <doko@ubuntu.com>
35501         PR driver/61106
35502         * optc-gen.awk: Fix option handling for -Wunused-parameter.
35504 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
35506         PR target/59952
35507         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
35509 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
35511         PR target/61092
35512         * config/alpha/alpha.c: Include gimple-iterator.h.
35513         (alpha_gimple_fold_builtin): New function.  Move
35514         ALPHA_BUILTIN_UMULH folding from ...
35515         (alpha_fold_builtin): ... here.
35516         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
35518 2014-05-08  Wei Mi  <wmi@google.com>
35520         PR target/58066
35521         * config/i386/i386.c (ix86_compute_frame_layout): Update
35522         preferred_stack_boundary for call, expanded from tls descriptor.
35523         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
35524         to depend on SP register.
35525         (*tls_local_dynamic_base_32_gnu): Ditto.
35526         (*tls_local_dynamic_32_once): Ditto.
35527         (tls_global_dynamic_64_<mode>): Set
35528         ix86_tls_descriptor_calls_expanded_in_cfun.
35529         (tls_local_dynamic_base_64_<mode>): Ditto.
35530         (tls_global_dynamic_32): Set
35531         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
35532         to depend on SP register.
35533         (tls_local_dynamic_base_32): Ditto.
35535 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35537         * config/arm/arm_neon.h: Update comment.
35538         * config/arm/neon-docgen.ml: Delete.
35539         * config/arm/neon-gen.ml: Delete.
35540         * doc/arm-neon-intrinsics.texi: Update comment.
35542 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35544         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
35545         and v4sf versions.
35546         (vand, vorr, veor, vorn, vbic): Remove.
35547         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
35548         iterator.
35549         (neon_vsub_unspec): Likewise.
35550         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
35552 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35554         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
35555         (vadd_s16): Likewise.
35556         (vadd_s32): Likewise.
35557         (vadd_f32): Likewise.
35558         (vadd_u8): Likewise.
35559         (vadd_u16): Likewise.
35560         (vadd_u32): Likewise.
35561         (vadd_s64): Likewise.
35562         (vadd_u64): Likewise.
35563         (vaddq_s8): Likewise.
35564         (vaddq_s16): Likewise.
35565         (vaddq_s32): Likewise.
35566         (vaddq_s64): Likewise.
35567         (vaddq_f32): Likewise.
35568         (vaddq_u8): Likewise.
35569         (vaddq_u16): Likewise.
35570         (vaddq_u32): Likewise.
35571         (vaddq_u64): Likewise.
35572         (vmul_s8): Likewise.
35573         (vmul_s16): Likewise.
35574         (vmul_s32): Likewise.
35575         (vmul_f32): Likewise.
35576         (vmul_u8): Likewise.
35577         (vmul_u16): Likewise.
35578         (vmul_u32): Likewise.
35579         (vmul_p8): Likewise.
35580         (vmulq_s8): Likewise.
35581         (vmulq_s16): Likewise.
35582         (vmulq_s32): Likewise.
35583         (vmulq_f32): Likewise.
35584         (vmulq_u8): Likewise.
35585         (vmulq_u16): Likewise.
35586         (vmulq_u32): Likewise.
35587         (vsub_s8): Likewise.
35588         (vsub_s16): Likewise.
35589         (vsub_s32): Likewise.
35590         (vsub_f32): Likewise.
35591         (vsub_u8): Likewise.
35592         (vsub_u16): Likewise.
35593         (vsub_u32): Likewise.
35594         (vsub_s64): Likewise.
35595         (vsub_u64): Likewise.
35596         (vsubq_s8): Likewise.
35597         (vsubq_s16): Likewise.
35598         (vsubq_s32): Likewise.
35599         (vsubq_s64): Likewise.
35600         (vsubq_f32): Likewise.
35601         (vsubq_u8): Likewise.
35602         (vsubq_u16): Likewise.
35603         (vsubq_u32): Likewise.
35604         (vsubq_u64): Likewise.
35605         (vand_s8): Likewise.
35606         (vand_s16): Likewise.
35607         (vand_s32): Likewise.
35608         (vand_u8): Likewise.
35609         (vand_u16): Likewise.
35610         (vand_u32): Likewise.
35611         (vand_s64): Likewise.
35612         (vand_u64): Likewise.
35613         (vandq_s8): Likewise.
35614         (vandq_s16): Likewise.
35615         (vandq_s32): Likewise.
35616         (vandq_s64): Likewise.
35617         (vandq_u8): Likewise.
35618         (vandq_u16): Likewise.
35619         (vandq_u32): Likewise.
35620         (vandq_u64): Likewise.
35621         (vorr_s8): Likewise.
35622         (vorr_s16): Likewise.
35623         (vorr_s32): Likewise.
35624         (vorr_u8): Likewise.
35625         (vorr_u16): Likewise.
35626         (vorr_u32): Likewise.
35627         (vorr_s64): Likewise.
35628         (vorr_u64): Likewise.
35629         (vorrq_s8): Likewise.
35630         (vorrq_s16): Likewise.
35631         (vorrq_s32): Likewise.
35632         (vorrq_s64): Likewise.
35633         (vorrq_u8): Likewise.
35634         (vorrq_u16): Likewise.
35635         (vorrq_u32): Likewise.
35636         (vorrq_u64): Likewise.
35637         (veor_s8): Likewise.
35638         (veor_s16): Likewise.
35639         (veor_s32): Likewise.
35640         (veor_u8): Likewise.
35641         (veor_u16): Likewise.
35642         (veor_u32): Likewise.
35643         (veor_s64): Likewise.
35644         (veor_u64): Likewise.
35645         (veorq_s8): Likewise.
35646         (veorq_s16): Likewise.
35647         (veorq_s32): Likewise.
35648         (veorq_s64): Likewise.
35649         (veorq_u8): Likewise.
35650         (veorq_u16): Likewise.
35651         (veorq_u32): Likewise.
35652         (veorq_u64): Likewise.
35653         (vbic_s8): Likewise.
35654         (vbic_s16): Likewise.
35655         (vbic_s32): Likewise.
35656         (vbic_u8): Likewise.
35657         (vbic_u16): Likewise.
35658         (vbic_u32): Likewise.
35659         (vbic_s64): Likewise.
35660         (vbic_u64): Likewise.
35661         (vbicq_s8): Likewise.
35662         (vbicq_s16): Likewise.
35663         (vbicq_s32): Likewise.
35664         (vbicq_s64): Likewise.
35665         (vbicq_u8): Likewise.
35666         (vbicq_u16): Likewise.
35667         (vbicq_u32): Likewise.
35668         (vbicq_u64): Likewise.
35669         (vorn_s8): Likewise.
35670         (vorn_s16): Likewise.
35671         (vorn_s32): Likewise.
35672         (vorn_u8): Likewise.
35673         (vorn_u16): Likewise.
35674         (vorn_u32): Likewise.
35675         (vorn_s64): Likewise.
35676         (vorn_u64): Likewise.
35677         (vornq_s8): Likewise.
35678         (vornq_s16): Likewise.
35679         (vornq_s32): Likewise.
35680         (vornq_s64): Likewise.
35681         (vornq_u8): Likewise.
35682         (vornq_u16): Likewise.
35683         (vornq_u32): Likewise.
35684         (vornq_u64): Likewise.
35686 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35688         * wide-int.cc (UTItype): Define.
35689         (UDWtype): Define for appropriate W_TYPE_SIZE.
35691 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
35693         PR tree-optimization/59100
35694         * tree-ssa-phiopt.c: Include tree-inline.h.
35695         (neutral_element_p, absorbing_element_p): New functions.
35696         (value_replacement): Handle conditional binary operations with a
35697         neutral or absorbing element.
35699 2014-05-08  Richard Biener  <rguenther@suse.de>
35701         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
35702         folding the expression.
35703         (valueize_expr): Remove.
35704         (visit_reference_op_load): Do not valueize the result of
35705         vn_get_expr_for.
35706         (simplify_binary_expression): Likewise.
35707         (simplify_unary_expression): Likewise.
35709 2014-05-08  Richard Biener  <rguenther@suse.de>
35711         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
35712         looking at TYPE_ARG_TYPES.
35714 2014-05-08  Richard Biener  <rguenther@suse.de>
35716         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
35717         pointer propagation special-case.
35719 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
35721         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
35722         core part of address expressions.
35724 2014-05-08  Alan Modra  <amodra@gmail.com>
35726         PR target/60737
35727         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
35728         loads and stores when -mno-strict-align at any alignment.
35729         (expand_block_clear): Similarly.  Also correct calculation of
35730         instruction count.
35732 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35734         PR middle-end/39246
35735         * tree-complex.c (expand_complex_move): Keep line info when expanding
35736         complex move.
35737         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
35738         of complex expression. Use new argument to display correct location
35739         for values coming from phi statement.
35740         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
35741         (warn_uninitialized_phi): Pass location of phi argument to
35742         warn_uninit.
35743         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
35744         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
35746 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
35748         * config/rs6000/predicates.md (indexed_address_mem): New.
35749         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
35750         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
35751         fpstore_ux, fpstore_u.
35752         (sign_extend, indexed, update): New.
35753         (cell_micro): Adjust.
35754         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
35755         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
35756         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
35757         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
35758         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
35759         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
35760         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
35761         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
35762         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
35763         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
35764         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
35765         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
35766         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
35767         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
35768         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
35770         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
35771         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
35772         *vsx_extract_<mode>_store): Adjust.
35773         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
35774         is_cracked_insn, insn_must_be_first_in_group,
35775         insn_must_be_last_in_group): Adjust.
35777         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
35778         Adjust.
35779         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
35780         ppc440-fpstore): Adjust.
35781         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
35782         ppc476-fpstore): Adjust.
35783         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
35784         ppc601-fpstore): Adjust.
35785         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
35786         Adjust.
35787         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
35788         Adjust.
35789         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
35790         ppc7450-fpstore): Adjust.
35791         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
35792         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
35793         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
35794         Adjust.
35795         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
35796         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
35797         cell-fpstore, cell-fpstore-update): Adjust.
35798         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
35799         ppce300c3_store, ppce300c3_fpstore): Adjust.
35800         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
35801         e500mc_fpstore): Adjust.
35802         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
35803         e500mc64_store, e500mc64_fpstore): Adjust.
35804         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
35805         e5500_fpstore): Adjust.
35806         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
35807         e6500_fpstore): Adjust.
35808         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
35809         Adjust.
35810         * config/rs6000/power4.md (power4-load, power4-load-ext,
35811         power4-load-ext-update, power4-load-ext-update-indexed,
35812         power4-load-update-indexed, power4-load-update, power4-fpload,
35813         power4-fpload-update, power4-store, power4-store-update,
35814         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
35815         Adjust.
35816         * config/rs6000/power5.md (power5-load, power5-load-ext,
35817         power5-load-ext-update, power5-load-ext-update-indexed,
35818         power5-load-update-indexed, power5-load-update, power5-fpload,
35819         power5-fpload-update, power5-store, power5-store-update,
35820         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
35821         Adjust.
35822         * config/rs6000/power6.md (power6-load, power6-load-ext,
35823         power6-load-update, power6-load-update-indexed,
35824         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
35825         power6-fpload-update, power6-store, power6-store-update,
35826         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
35827         Adjust.
35828         * config/rs6000/power7.md (power7-load, power7-load-ext,
35829         power7-load-update, power7-load-update-indexed,
35830         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
35831         power7-fpload-update, power7-store, power7-store-update,
35832         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
35833         Adjust.
35834         * config/rs6000/power8.md (power8-load, power8-load-update,
35835         power8-load-ext, power8-load-ext-update, power8-fpload,
35836         power8-fpload-update, power8-store, power8-store-update-indexed,
35837         power8-fpstore, power8-fpstore-update): Adjust.
35838         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
35839         Adjust.
35840         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
35841         titan_lsu_store, titan_lsu_fpstore): Adjust.
35842         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
35844 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
35846         PR target/60884
35847         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
35848         unrolled byte insns.  Emit address increments after move insns.
35850 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
35852         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
35853         const_gimple, rather than a gimple.
35854         (gimple_call_builtin_p): Likewise, for the three variants.
35856         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
35857         (gimple_call_builtin_p): Likewise, for the three variants.
35859 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35861         PR tree-optimization/61095
35862         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
35864 2014-05-07  Richard Biener  <rguenther@suse.de>
35866         PR tree-optimization/61034
35867         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
35868         (maybe_skip_until): Use translate to take into account
35869         lattices when trying to do disambiguations.
35870         (get_continuation_for_phi_1): Likewise.
35871         (get_continuation_for_phi): Adjust for added translate arguments.
35872         (walk_non_aliased_vuses): Likewise.
35873         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
35874         (walk_non_aliased_vuses): Likewise.
35875         (call_may_clobber_ref_p_1): Declare.
35876         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
35877         calls.  Stop early if we are only supposed to disambiguate.
35878         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
35880 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
35882         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
35883         Emit an error when the function has arguments.
35885 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
35887         * cfgloop.h (unswitch_loops): Remove.
35888         * doc/passes.texi: Remove references to loop-unswitch.c
35889         * timevar.def (TV_LOOP_UNSWITCH): Remove.
35891 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
35893         * tree-vect-data-refs.c (vect_grouped_load_supported): New
35894         check for loads group of length 3.
35895         (vect_permute_load_chain): New permutations for loads group of
35896         length 3.
35897         * tree-vect-stmts.c (vect_model_load_cost): Change cost
35898         of vec_perm_shuffle for the new permutations.
35900 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
35902         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
35903         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
35904         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
35905         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
35906         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
35907         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
35908         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
35909         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
35911 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
35913         * loop-unswitch.c: Delete.
35915 2014-05-07  Richard Biener  <rguenther@suse.de>
35917         * config.gcc: Always set need_64bit_hwint to yes.
35919 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
35921         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
35922         of using optimize_size.
35924 2014-05-06  Mike Stump  <mikestump@comcast.net>
35926         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
35928 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
35930         * config/i386/sse.md (*mov<mode>_internal)
35931         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
35932         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
35933         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
35934         (*<code><mode>3, *andnot<mode>3<mask_name>)
35935         (<mask_codefor><code><mode>3<mask_name>): Only consider
35936         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
35938 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
35940         Revert:
35941         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
35943         * lra-constraints.c (valid_address_p): Move earlier in file.
35944         Add a constraint argument to the address_info version.
35945         (satisfies_memory_constraint_p): New function.
35946         (satisfies_address_constraint_p): Likewise.
35947         (process_alt_operands, curr_insn_transform): Use them.
35948         (process_address): Pass the constraint to valid_address_p when
35949         checking address operands.
35951 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
35953         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
35954         to their respective blocks.  Fix inadvertent use of "node".
35956 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
35958         * emit-rtl.c (init_derived_machine_modes): New functionm, split
35959         out from...
35960         (init_emit_once): ...here.
35961         * rtl.h (init_derived_machine_modes): Declare.
35962         * toplev.c (do_compile): Call it even if no_backend.
35964 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
35965             Mike Stump  <mikestump@comcast.net>
35966             Richard Sandiford  <rdsandiford@googlemail.com>
35967             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35969         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
35970         (rtx_equal_for_memref_p): Update comment.
35971         (adjust_offset_for_component_ref): Use wide-int interfaces.
35972         * builtins.c (get_object_alignment_2): Likewise.
35973         (c_readstr): Likewise.
35974         (target_char_cast): Add comment.
35975         (determine_block_size): Use wide-int interfaces.
35976         (expand_builtin_signbit): Likewise.
35977         (fold_builtin_int_roundingfn): Likewise.
35978         (fold_builtin_bitop): Likewise.
35979         (fold_builtin_bswap): Likewise.
35980         (fold_builtin_logarithm): Use signop.
35981         (fold_builtin_pow): Likewise.
35982         (fold_builtin_memory_op): Use wide-int interfaces.
35983         (fold_builtin_object_size): Likewise.
35984         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
35985         nb_iterations_estimate.
35986         (record_niter_bound): Use wide-int interfaces.
35987         (get_estimated_loop_iterations_int): Likewise.
35988         (get_estimated_loop_iterations): Likewise.
35989         (get_max_loop_iterations): Likewise.
35990         * cfgloop.h: Include wide-int.h.
35991         (struct nb_iter_bound): Change bound to widest_int.
35992         (struct loop): Change nb_iterations_upper_bound and
35993         nb_iterations_estimate to widest_int.
35994         (record_niter_bound): Switch to use widest_int.
35995         (get_estimated_loop_iterations): Likewise.
35996         (get_max_loop_iterations): Likewise.
35997         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
35998         update for wide-int.
35999         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
36000         * combine.c (try_combine): Likewise.
36001         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
36002         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
36003         interfaces.
36004         (aarch64_float_const_representable_p): Likewise.
36005         * config/arc/arc.c: Include wide-int.h.
36006         (arc_can_use_doloop_p): Use wide-int interfaces.
36007         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
36008         (vfp3_const_double_index): Likewise.
36009         * config/avr/avr.c (avr_out_round): Likewise.
36010         (avr_fold_builtin): Likewise.
36011         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
36012         (bfin_can_use_doloop_p): Likewise.
36013         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
36014         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
36015         * config/i386/i386.c: Include wide-int.h.
36016         (ix86_data_alignment): Use wide-int interfaces.
36017         (ix86_local_alignment): Likewise.
36018         (ix86_emit_swsqrtsf): Update real_from_integer.
36019         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
36020         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
36021         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
36022         (zero_constant): Likewise.
36023         (input_operand): Likewise.
36024         (splat_input_operand): Likewise.
36025         (non_logical_cint_operand): Change const_double to const_wide_int.
36026         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
36027         (easy_altivec_constant): Remove comment.
36028         (paired_expand_vector_init): Use CONSTANT_P.
36029         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
36030         (rs6000_emit_move): Update checks.
36031         (rs6000_aggregate_candidate): Use wide-int interfaces.
36032         (rs6000_expand_ternop_builtin): Likewise.
36033         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
36034         (rs6000_assemble_integer): Likewise.
36035         (rs6000_hash_constant): Likewise.
36036         (output_toc): Likewise.
36037         (rs6000_rtx_costs): Likewise.
36038         (rs6000_emit_swrsqrt); Update call to real_from_integer.
36039         * config/rs6000/rs6000-c.c: Include wide-int.h.
36040         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
36041         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
36042         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
36043         Handle CONST_WIDE_INT.
36044         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
36045         Use tree_fits_uhwi_p.
36046         * config/sparc/sparc.c: Include wide-int.h.
36047         (sparc_fold_builtin): Use wide-int interfaces.
36048         * config/vax/vax.c: Include wide-int.h.
36049         (vax_float_literal): Use real_from_integer.
36050         * coretypes.h (struct hwivec_def): New.
36051         (hwivec): New.
36052         (const_hwivec): New.
36053         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
36054         (equiv_constant): Handle CONST_WIDE_INT.
36055         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
36056         (cselib_hash_rtx): Handle CONST_WIDE_INT.
36057         * dbxout.c (stabstr_U): Use wide-int interfaces.
36058         (dbxout_type): Update to use cst_fits_shwi_p.
36059         * defaults.h (LOG2_BITS_PER_UNIT): Define.
36060         (TARGET_SUPPORTS_WIDE_INT): Add default.
36061         * dfp.c: Include wide-int.h.
36062         (decimal_real_to_integer2): Use wide-int interfaces and rename to
36063         decimal_real_to_integer.
36064         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
36065         decimal_real_to_integer.
36066         * doc/generic.texi (Constant expressions): Update for wide_int.
36067         * doc/rtl.texi (const_double): Likewise.
36068         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
36069         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
36070         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
36071         (REAL_VALUE_FROM_INT): Remove.
36072         (TARGET_SUPPORTS_WIDE_INT): New.
36073         * doc/tm.texi: Regenerate.
36074         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
36075         * double-int.h: Include wide-int.h.
36076         (struct wi::int_traits): New.
36077         * dwarf2out.c (get_full_len): New.
36078         (dw_val_equal_p): Add case dw_val_class_wide_int.
36079         (size_of_loc_descr): Likewise.
36080         (output_loc_operands): Likewise.
36081         (insert_double): Remove.
36082         (insert_wide_int): New.
36083         (add_AT_wide): New.
36084         (print_die): Add case dw_val_class_wide_int.
36085         (attr_checksum): Likewise.
36086         (attr_checksum_ordered): Likewise.
36087         (same_dw_val_p): Likewise.
36088         (size_of_die): Likewise.
36089         (value_format): Likewise.
36090         (output_die): Likewise.
36091         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
36092         Use wide-int.
36093         (clz_loc_descriptor): Use wide-int interfaces.
36094         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
36095         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
36096         (round_up_to_align): Use wide-int interfaces.
36097         (field_byte_offset): Likewise.
36098         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
36099         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
36100         CONST_DOUBLE handling.  Use wide-int interfaces.
36101         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
36102         (gen_enumeration_type_die): Use add_AT_wide.
36103         (hash_loc_operands): Add case dw_val_class_wide_int.
36104         (compare_loc_operands): Likewise.
36105         * dwarf2out.h: Include wide-int.h.
36106         (wide_int_ptr): New.
36107         (enum dw_val_class): Add dw_val_class_wide_int.
36108         (struct dw_val_struct): Add val_wide.
36109         * emit-rtl.c (const_wide_int_htab): New.
36110         (const_wide_int_htab_hash): New.
36111         (const_wide_int_htab_eq): New.
36112         (lookup_const_wide_int): New.
36113         (const_double_htab_hash): Use wide-int interfaces.
36114         (const_double_htab_eq): Likewise.
36115         (rtx_to_double_int): Conditionally compile for wide-int.
36116         (immed_double_int_const): Rename to immed_wide_int_const and
36117         update for wide-int.
36118         (immed_double_const): Conditionally compile for wide-int.
36119         (init_emit_once): Use wide-int interfaces.
36120         * explow.c (plus_constant): Likewise.
36121         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
36122         (lshift_value): Use wide-int interfaces.
36123         (expand_mult): Likewise.
36124         (choose_multiplier): Likewise.
36125         (expand_smod_pow2): Likewise.
36126         (make_tree): Likewise.
36127         * expr.c (convert_modes): Consolidate handling of constants.
36128         Use wide-int interfaces.
36129         (emit_group_load_1): Add note.
36130         (store_expr): Update comment.
36131         (get_inner_reference): Use wide-int interfaces.
36132         (expand_constructor): Update comment.
36133         (expand_expr_real_2): Use wide-int interfaces.
36134         (expand_expr_real_1): Likewise.
36135         (reduce_to_bit_field_precision): Likewise.
36136         (const_vector_from_tree): Likewise.
36137         * final.c: Include wide-int-print.h.
36138         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
36139         * fixed-value.c: Include wide-int.h.
36140         (fixed_from_string): Use wide-int interfaces.
36141         (fixed_to_decimal): Likewise.
36142         (fixed_convert_from_real): Likewise.
36143         (real_convert_from_fixed): Likewise.
36144         * fold-const.h (mem_ref_offset): Return an offset_int.
36145         (div_if_zero_remainder): Remove code parameter.
36146         * fold-const.c (div_if_zero_remainder): Remove code parameter.
36147         Use wide-int interfaces.
36148         (may_negate_without_overflow_p): Use wide-int interfaces.
36149         (negate_expr_p): Likewise.
36150         (fold_negate_expr): Likewise.
36151         (int_const_binop_1): Likewise.
36152         (const_binop): Likewise.
36153         (fold_convert_const_int_from_int): Likewise.
36154         (fold_convert_const_int_from_real): Likewise.
36155         (fold_convert_const_int_from_fixed): Likewise.
36156         (fold_convert_const_fixed_from_int): Likewise.
36157         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
36158         (sign_bit_p): Use wide-int interfaces.
36159         (make_range_step): Likewise.
36160         (build_range_check): Likewise.  Pass an integer of the correct type
36161         instead of using integer_one_node.
36162         (range_predecessor): Pass an integer of the correct type instead
36163         of using integer_one_node.
36164         (range_successor): Likewise.
36165         (merge_ranges): Likewise.
36166         (unextend): Use wide-int interfaces.
36167         (extract_muldiv_1): Likewise.
36168         (fold_div_compare): Likewise.
36169         (fold_single_bit_test): Likewise.
36170         (fold_sign_changed_comparison): Likewise.
36171         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
36172         (fold_plusminus_mult_expr): Use wide-int interfaces.
36173         (native_encode_int): Likewise.
36174         (native_interpret_int): Likewise.
36175         (fold_unary_loc): Likewise.
36176         (pointer_may_wrap_p): Likewise.
36177         (size_low_cst): Likewise.
36178         (mask_with_tz): Likewise.
36179         (fold_binary_loc): Likewise.
36180         (fold_ternary_loc): Likewise.
36181         (multiple_of_p): Likewise.
36182         (tree_call_nonnegative_warnv_p): Update calls to
36183         tree_int_cst_min_precision and real_from_integer.
36184         (fold_negate_const): Use wide-int interfaces.
36185         (fold_abs_const): Likewise.
36186         (fold_relational_const): Use tree_int_cst_lt.
36187         (round_up_loc): Use wide-int interfaces.
36188         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
36189         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
36190         * gengtype.c: Remove include of double-int.h.
36191         (do_typedef): Use wide-int interfaces.
36192         (open_base_files): Add wide-int.h.
36193         (main): Add offset_int and widest_int typedefs.
36194         * gengtype-lex.l: Handle "^".
36195         (CXX_KEYWORD): Add "static".
36196         * gengtype-parse.c (require3): New.
36197         (require_template_declaration): Handle constant template arguments
36198         and nested templates.
36199         * gengtype-state.c: Don't include "double-int.h".
36200         * genpreds.c (write_one_predicate_function): Update comment.
36201         (write_tm_constrs_h): Add check for hval and lval use in
36202         CONST_WIDE_INT.
36203         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
36204         (add_to_sequence): Likewise.
36205         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
36206         and const_double_operand.
36207         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
36208         interfaces.
36209         * gimple-fold.c (get_base_constructor): Likewise.
36210         (fold_array_ctor_reference): Likewise.
36211         (fold_nonarray_ctor_reference): Likewise.
36212         (fold_const_aggregate_ref_1): Likewise.
36213         (gimple_val_nonnegative_real_p): Likewise.
36214         (gimple_fold_indirect_ref): Likewise.
36215         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
36216         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
36217         (struct slsr_cand_d): Change index to be widest_int.
36218         (struct incr_info_d): Change incr to be widest_int.
36219         (alloc_cand_and_find_basis): Use wide-int interfaces.
36220         (slsr_process_phi): Likewise.
36221         (backtrace_base_for_ref): Likewise.  Return a widest_int.
36222         (restructure_reference): Take a widest_int instead of a double_int.
36223         (slsr_process_ref): Use wide-int interfaces.
36224         (create_mul_ssa_cand): Likewise.
36225         (create_mul_imm_cand): Likewise.
36226         (create_add_ssa_cand): Likewise.
36227         (create_add_imm_cand): Take a widest_int instead of a double_int.
36228         (slsr_process_add): Use wide-int interfaces.
36229         (slsr_process_cast): Likewise.
36230         (slsr_process_copy): Likewise.
36231         (dump_candidate): Likewise.
36232         (dump_incr_vec): Likewise.
36233         (replace_ref): Likewise.
36234         (cand_increment): Likewise.  Return a widest_int.
36235         (cand_abs_increment): Likewise.
36236         (replace_mult_candidate): Take a widest_int instead of a double_int.
36237         (replace_unconditional_candidate): Use wide-int interfaces.
36238         (incr_vec_index): Take a widest_int instead of a double_int.
36239         (create_add_on_incoming_edge): Likewise.
36240         (create_phi_basis): Use wide-int interfaces.
36241         (replace_conditional_candidate): Likewise.
36242         (record_increment): Take a widest_int instead of a double_int.
36243         (record_phi_increments): Use wide-int interfaces.
36244         (phi_incr_cost): Take a widest_int instead of a double_int.
36245         (lowest_cost_path): Likewise.
36246         (total_savings): Likewise.
36247         (analyze_increments): Use wide-int interfaces.
36248         (ncd_with_phi): Take a widest_int instead of a double_int.
36249         (ncd_of_cand_and_phis): Likewise.
36250         (nearest_common_dominator_for_cands): Likewise.
36251         (insert_initializers): Use wide-int interfaces.
36252         (all_phi_incrs_profitable): Likewise.
36253         (replace_one_candidate): Likewise.
36254         (replace_profitable_candidates): Likewise.
36255         * godump.c: Include wide-int-print.h.
36256         (go_output_typedef): Use wide-int interfaces.
36257         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
36258         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
36259         (build_loop_iteration_domains): Likewise.
36260         * hooks.h: Include wide-int.h rather than double-int.h.
36261         (hook_bool_dint_dint_uint_bool_true): Delete.
36262         (hook_bool_wint_wint_uint_bool_true): Declare.
36263         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
36264         (hook_bool_wint_wint_uint_bool_true): New.
36265         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
36266         interfaces.
36267         (ubsan_expand_si_overflow_mul_check): Likewise.
36268         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
36269         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
36270         (get_ancestor_addr_info): Likewise.
36271         (ipa_modify_call_arguments): Likewise.
36272         * loop-doloop.c (doloop_modify): Likewise.
36273         (doloop_optimize): Likewise.
36274         * loop-iv.c (iv_number_of_iterations): Likewise.
36275         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
36276         (unroll_loop_constant_iterations): Likewise.
36277         (decide_unroll_runtime_iterations): Likewise.
36278         (unroll_loop_runtime_iterations): Likewise.
36279         (decide_peel_simple): Likewise.
36280         (decide_unroll_stupid): Likewise.
36281         * lto-streamer-in.c (streamer_read_wi): Add.
36282         (input_cfg): Use wide-int interfaces.
36283         (lto_input_tree_1): Likewise.
36284         * lto-streamer-out.c (streamer_write_wi): Add.
36285         (hash_tree): Use wide-int interfaces.
36286         (output_cfg): Likewise.
36287         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
36288         (GTFILES): Add wide-int.h and signop.h.
36289         (TAGS): Look for .cc files too.
36290         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
36291         * optabs.c (expand_subword_shift): Likewise.
36292         (expand_doubleword_shift): Likewise.
36293         (expand_absneg_bit): Likewise.
36294         (expand_copysign_absneg): Likewise.
36295         (expand_copysign_bit): Likewise.
36296         * postreload.c (reload_cse_simplify_set): Likewise.
36297         * predict.c (predict_iv_comparison): Likewise.
36298         * pretty-print.h: Include wide-int-print.h.
36299         (pp_wide_int) New.
36300         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
36301         * print-tree.c: Include wide-int-print.h.
36302         (print_node_brief): Use wide-int interfaces.
36303         (print_node): Likewise.
36304         * read-rtl.c (validate_const_wide_int): New.
36305         (read_rtx_code): Add CONST_WIDE_INT case.
36306         * real.c: Include wide-int.h.
36307         (real_to_integer2): Delete.
36308         (real_to_integer): New function, returning a wide_int.
36309         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36310         (ten_to_ptwo): Update call to real_from_integer.
36311         (real_digit): Likewise.
36312         * real.h: Include signop.h, wide-int.h and insn-modes.h.
36313         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
36314         (REAL_VALUE_TO_INT): Delete.
36315         (real_to_integer): Declare a wide-int form.
36316         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36317         * recog.c (const_int_operand): Improve comment.
36318         (const_scalar_int_operand): New.
36319         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
36320         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
36321         (split_double): Likewise.
36322         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
36323         (rtx_size): Likewise.
36324         (rtx_alloc_stat_v): New.
36325         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
36326         (cwi_output_hex): New.
36327         (iterative_hash_rtx): Handle CONST_WIDE_INT.
36328         (cwi_check_failed_bounds): New.
36329         * rtl.def (CONST_WIDE_INT): New.
36330         * rtl.h: Include <utility> and wide-int.h.
36331         (struct hwivec_def): New.
36332         (CWI_GET_NUM_ELEM): New.
36333         (CWI_PUT_NUM_ELEM): New.
36334         (struct rtx_def): Add num_elem and hwiv.
36335         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
36336         (CASE_CONST_UNIQUE): Likewise.
36337         (CASE_CONST_ANY): Likewise.
36338         (CONST_SCALAR_INT_P): Likewise.
36339         (CONST_WIDE_INT_P): New.
36340         (CWI_ELT): New.
36341         (HWIVEC_CHECK): New.
36342         (cwi_check_failed_bounds): New.
36343         (CWI_ELT): New.
36344         (HWIVEC_CHECK): New.
36345         (CONST_WIDE_INT_VEC) New.
36346         (CONST_WIDE_INT_NUNITS) New.
36347         (CONST_WIDE_INT_ELT) New.
36348         (rtx_mode_t): New type.
36349         (wi::int_traits <rtx_mode_t>): New.
36350         (wi::shwi): New.
36351         (wi::min_value): New.
36352         (wi::max_value): New.
36353         (rtx_alloc_v) New.
36354         (const_wide_int_alloc): New.
36355         (immed_wide_int_const): New.
36356         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
36357         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
36358         * signop.h: New file.
36359         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
36360         (simplify_const_unary_operation): Use wide-int interfaces.
36361         (simplify_binary_operation_1): Likewise.
36362         (simplify_const_binary_operation): Likewise.
36363         (simplify_const_relational_operation): Likewise.
36364         (simplify_immed_subreg): Likewise.
36365         * stmt.c (expand_case): Likewise.
36366         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
36367         signop rather than a bool.
36368         * stor-layout.c (layout_type): Use wide-int interfaces.
36369         (initialize_sizetypes): Update calls to
36370         set_min_and_max_values_for_integral_type.
36371         (set_min_and_max_values_for_integral_type): Take a signop rather
36372         than a bool.  Use wide-int interfaces.
36373         (fixup_signed_type): Update accordingly.  Remove
36374         HOST_BITS_PER_DOUBLE_INT limit.
36375         (fixup_unsigned_type): Likewise.
36376         * system.h (STATIC_CONSTANT_P): New.
36377         (STATIC_ASSERT): New.
36378         * target.def (can_use_doloop_p): Take widest_ints rather than
36379         double_ints.
36380         * target.h: Include wide-int.h rather than double-int.h.
36381         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
36382         than double_ints.
36383         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
36384         rather than INT_CST_LT_UNSIGNED.
36385         (can_use_doloop_if_innermost): Take widest_ints rather than
36386         double_ints.
36387         * tree-affine.c: Include wide-int-print.h.
36388         (double_int_ext_for_comb): Delete.
36389         (wide_int_ext_for_comb): New.
36390         (aff_combination_zero): Use wide-int interfaces.
36391         (aff_combination_const): Take a widest_int instead of a double_int.
36392         (aff_combination_elt): Use wide-int interfaces.
36393         (aff_combination_scale): Take a widest_int instead of a double_int.
36394         (aff_combination_add_elt): Likewise.
36395         (aff_combination_add_cst): Likewise.
36396         (aff_combination_add): Use wide-int interfaces.
36397         (aff_combination_convert): Likewise.
36398         (tree_to_aff_combination): Likewise.
36399         (add_elt_to_tree): Take a widest_int instead of a double_int.
36400         (aff_combination_to_tree): Use wide-int interfaces.
36401         (aff_combination_remove_elt): Likewise.
36402         (aff_combination_add_product): Take a widest_int instead of
36403         a double_int.
36404         (aff_combination_mult): Use wide-int interfaces.
36405         (aff_combination_expand): Likewise.
36406         (double_int_constant_multiple_p): Delete.
36407         (wide_int_constant_multiple_p): New.
36408         (aff_combination_constant_multiple_p): Take a widest_int pointer
36409         instead of a double_int pointer.
36410         (print_aff): Use wide-int interfaces.
36411         (get_inner_reference_aff): Take a widest_int pointer
36412         instead of a double_int pointer.
36413         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
36414         * tree-affine.h: Include wide-int.h.
36415         (struct aff_comb_elt): Change type of coef to widest_int.
36416         (struct affine_tree_combination): Change type of offset to widest_int.
36417         (double_int_ext_for_comb): Delete.
36418         (wide_int_ext_for_comb): New.
36419         (aff_combination_const): Use widest_int instead of double_int.
36420         (aff_combination_scale): Likewise.
36421         (aff_combination_add_elt): Likewise.
36422         (aff_combination_constant_multiple_p): Likewise.
36423         (get_inner_reference_aff): Likewise.
36424         (aff_comb_cannot_overlap_p): Likewise.
36425         (aff_combination_zero_p): Use wide-int interfaces.
36426         * tree.c: Include tree.h.
36427         (init_ttree): Use make_int_cst.
36428         (tree_code_size): Removed code for INTEGER_CST case.
36429         (tree_size): Add INTEGER_CST case.
36430         (make_node_stat): Update comment.
36431         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
36432         (build_int_cst_type): Use wide-int interfaces.
36433         (double_int_to_tree): Likewise.
36434         (double_int_fits_to_tree_p): Delete.
36435         (force_fit_type_double): Delete.
36436         (force_fit_type): New.
36437         (int_cst_hash_hash): Use wide-int interfaces.
36438         (int_cst_hash_eq): Likewise.
36439         (build_int_cst_wide): Delete.
36440         (wide_int_to_tree): New.
36441         (cache_integer_cst): Use wide-int interfaces.
36442         (build_low_bits_mask): Likewise.
36443         (cst_and_fits_in_hwi): Likewise.
36444         (real_value_from_int_cst): Likewise.
36445         (make_int_cst_stat): New.
36446         (integer_zerop): Use wide_int interfaces.
36447         (integer_onep): Likewise.
36448         (integer_all_onesp): Likewise.
36449         (integer_pow2p): Likewise.
36450         (integer_nonzerop): Likewise.
36451         (tree_log2): Likewise.
36452         (tree_floor_log2): Likewise.
36453         (tree_ctz): Likewise.
36454         (int_size_in_bytes): Likewise.
36455         (mem_ref_offset): Return an offset_int rather than a double_int.
36456         (build_type_attribute_qual_variant): Use wide_int interfaces.
36457         (type_hash_eq): Likewise
36458         (tree_int_cst_equal): Likewise.
36459         (tree_int_cst_lt): Delete.
36460         (tree_int_cst_compare): Likewise.
36461         (tree_fits_shwi_p): Use wide_int interfaces.
36462         (tree_fits_uhwi_p): Likewise.
36463         (tree_int_cst_sign_bit): Likewise.
36464         (tree_int_cst_sgn): Likewise.
36465         (tree_int_cst_min_precision): Take a signop rather than a bool.
36466         (simple_cst_equal): Use wide_int interfaces.
36467         (compare_tree_int): Likewise.
36468         (iterative_hash_expr): Likewise.
36469         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
36470         INT_CST_LT.
36471         (get_type_static_bounds): Use wide_int interfaces.
36472         (tree_int_cst_elt_check_failed): New.
36473         (build_common_tree_nodes): Reordered to set prec before filling in
36474         value.
36475         (int_cst_value): Check cst_and_fits_in_hwi.
36476         (widest_int_cst_value): Use wide_int interfaces.
36477         (upper_bound_in_type): Likewise.
36478         (lower_bound_in_type): Likewise.
36479         (num_ending_zeros): Likewise.
36480         (drop_tree_overflow): Likewise.
36481         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
36482         (gen_conditions_for_pow_cst_base): Likewise.
36483         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
36484         (group_case_labels_stmt): Use wide-int interfaces.
36485         (verify_gimple_assign_binary): Likewise.
36486         (print_loop): Likewise.
36487         * tree-chrec.c (tree_fold_binomial): Likewise.
36488         * tree-core.h (struct tree_base): Add int_length.
36489         (struct tree_int_cst): Change rep of value.
36490         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
36491         (dr_may_alias_p): Likewise.
36492         (max_stmt_executions_tree): Likewise.
36493         * tree.def (INTEGER_CST): Update comment.
36494         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
36495         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
36496         * tree-dump.c: Include wide-int.h and wide-int-print.h.
36497         (dequeue_and_dump): Use wide-int interfaces.
36498         * tree.h: Include wide-int.h.
36499         (NULL_TREE): Moved to earlier loc in file.
36500         (TREE_INT_CST_ELT_CHECK): New.
36501         (tree_int_cst_elt_check_failed): New.
36502         (TYPE_SIGN): New.
36503         (TREE_INT_CST): Delete.
36504         (TREE_INT_CST_LOW): Use wide-int interfaces.
36505         (TREE_INT_CST_HIGH): Delete.
36506         (TREE_INT_CST_NUNITS): New.
36507         (TREE_INT_CST_EXT_NUNITS): Likewise.
36508         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
36509         (TREE_INT_CST_ELT): Likewise.
36510         (INT_CST_LT): Delete.
36511         (tree_int_cst_elt_check): New (two forms).
36512         (type_code_size): Update comment.
36513         (make_int_cst_stat, make_int_cst): New.
36514         (tree_to_double_int): Delete.
36515         (double_int_fits_to_tree_p): Delete.
36516         (force_fit_type_double): Delete.
36517         (build_int_cstu): Replace with out-of-line function.
36518         (build_int_cst_wide): Delete.
36519         (tree_int_cst_lt): Define inline.
36520         (tree_int_cst_le): New.
36521         (tree_int_cst_compare): Define inline.
36522         (tree_int_cst_min_precision): Take a signop rather than a bool.
36523         (wi::int_traits <const_tree>): New.
36524         (wi::int_traits <tree>): New.
36525         (wi::extended_tree): New.
36526         (wi::int_traits <wi::extended_tree>): New.
36527         (wi::to_widest): New.
36528         (wi::to_offset): New.
36529         (wi::fits_to_tree_p): New.
36530         (wi::min_value): New.
36531         (wi::max_value): New.
36532         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
36533         (copy_tree_body_r): Likewise.
36534         * tree-object-size.c (compute_object_offset): Likewise.
36535         (addr_object_size): Likewise.
36536         * tree-predcom.c: Include wide-int-print.h.
36537         (struct dref_d): Change type of offset to widest_int.
36538         (dump_dref): Call wide-int printer.
36539         (aff_combination_dr_offset): Use wide-int interfaces.
36540         (determine_offset): Take a widest_int pointer rather than a
36541         double_int pointer.
36542         (split_data_refs_to_components): Use wide-int interfaces.
36543         (suitable_component_p): Likewise.
36544         (order_drefs): Likewise.
36545         (add_ref_to_chain): Likewise.
36546         (valid_initializer_p): Likewise.
36547         (determine_roots_comp): Likewise.
36548         * tree-pretty-print.c: Include wide-int-print.h.
36549         (dump_generic_node): Use wide-int interfaces.
36550         * tree-sra.c (sra_ipa_modify_expr): Likewise.
36551         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
36552         (move_fixed_address_to_symbol): Likewise.
36553         (move_hint_to_base): Likewise.
36554         (move_pointer_to_base): Likewise.
36555         (move_variant_to_index): Likewise.
36556         (most_expensive_mult_to_index): Likewise.
36557         (addr_to_parts): Likewise.
36558         (copy_ref_info): Likewise.
36559         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
36560         (indirect_refs_may_alias_p): Likewise.
36561         (stmt_kills_ref_p_1): Likewise.
36562         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
36563         * tree-ssa-ccp.c: Update comment at top of file.  Include
36564         wide-int-print.h.
36565         (struct prop_value_d): Change type of mask to widest_int.
36566         (extend_mask): New function.
36567         (dump_lattice_value): Use wide-int interfaces.
36568         (get_default_value): Likewise.
36569         (set_constant_value): Likewise.
36570         (set_value_varying): Likewise.
36571         (valid_lattice_transition): Likewise.
36572         (set_lattice_value): Likewise.
36573         (value_to_double_int): Delete.
36574         (value_to_wide_int): New.
36575         (get_value_from_alignment): Use wide-int interfaces.
36576         (get_value_for_expr): Likewise.
36577         (do_dbg_cnt): Likewise.
36578         (ccp_finalize): Likewise.
36579         (ccp_lattice_meet): Likewise.
36580         (bit_value_unop_1): Use widest_ints rather than double_ints.
36581         (bit_value_binop_1): Likewise.
36582         (bit_value_unop): Use wide-int interfaces.
36583         (bit_value_binop): Likewise.
36584         (bit_value_assume_aligned): Likewise.
36585         (evaluate_stmt): Likewise.
36586         (ccp_fold_stmt): Likewise.
36587         (visit_cond_stmt): Likewise.
36588         (ccp_visit_stmt): Likewise.
36589         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
36590         (constant_pointer_difference): Likewise.
36591         (associate_pointerplus): Likewise.
36592         (combine_conversions): Likewise.
36593         * tree-ssa-loop.h: Include wide-int.h.
36594         (struct tree_niter_desc): Change type of max to widest_int.
36595         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
36596         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
36597         (remove_redundant_iv_tests): Likewise.
36598         (canonicalize_loop_induction_variables): Likewise.
36599         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
36600         (constant_multiple_of): Take a widest_int pointer instead of
36601         a double_int pointer.
36602         (get_computation_aff): Use wide-int interfaces.
36603         (ptr_difference_cost): Likewise.
36604         (difference_cost): Likewise.
36605         (get_loop_invariant_expr_id): Likewise.
36606         (get_computation_cost_at): Likewise.
36607         (iv_elimination_compare_lt): Likewise.
36608         (may_eliminate_iv): Likewise.
36609         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
36610         instead of double_int.
36611         (max_loop_iterations): Likewise.
36612         (max_stmt_executions): Likewise.
36613         (estimated_stmt_executions): Likewise.
36614         * tree-ssa-loop-niter.c: Include wide-int-print.h.
36615         (split_to_var_and_offset): Use wide-int interfaces.
36616         (determine_value_range): Likewise.
36617         (bound_difference_of_offsetted_base): Likewise.
36618         (bounds_add): Take a widest_int instead of a double_int.
36619         (number_of_iterations_ne_max): Use wide-int interfaces.
36620         (number_of_iterations_ne): Likewise.
36621         (number_of_iterations_lt_to_ne): Likewise.
36622         (assert_loop_rolls_lt): Likewise.
36623         (number_of_iterations_lt): Likewise.
36624         (number_of_iterations_le): Likewise.
36625         (number_of_iterations_cond): Likewise.
36626         (number_of_iterations_exit): Likewise.
36627         (finite_loop_p): Likewise.
36628         (derive_constant_upper_bound_assign): Likewise.
36629         (derive_constant_upper_bound): Return a widest_int.
36630         (derive_constant_upper_bound_ops): Likewise.
36631         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
36632         (record_estimate): Take a widest_int rather than a double_int.
36633         (record_nonwrapping_iv): Use wide-int interfaces.
36634         (double_int_cmp): Delete.
36635         (wide_int_cmp): New.
36636         (bound_index): Take a widest_int rather than a double_int.
36637         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
36638         (maybe_lower_iteration_bound): Likewise.
36639         (estimate_numbers_of_iterations_loop): Likewise.
36640         (estimated_loop_iterations): Take a widest_int pointer than than
36641         a double_int pointer.
36642         (estimated_loop_iterations_int): Use wide-int interfaces.
36643         (max_loop_iterations): Take a widest_int pointer than than
36644         a double_int pointer.
36645         (max_loop_iterations_int): Use wide-int interfaces.
36646         (max_stmt_executions): Take a widest_int pointer than than
36647         a double_int pointer.
36648         (estimated_stmt_executions): Likewise.
36649         (n_of_executions_at_most): Use wide-int interfaces.
36650         (scev_probably_wraps_p): Likewise.
36651         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
36652         to real_to_integer.
36653         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
36654         interfaces.
36655         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
36656         double_ints.  Adjust for trailing_wide_ints <3> representation.
36657         (set_nonzero_bits): Likewise.
36658         (get_range_info): Return wide_ints rather than double_ints.
36659         Adjust for trailing_wide_ints <3> representation.
36660         (get_nonzero_bits): Likewise.
36661         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
36662         representation.
36663         * tree-ssanames.h (struct range_info_def): Replace min, max and
36664         nonzero_bits with a trailing_wide_ints <3>.
36665         (set_range_info): Use wide_int_refs rather than double_ints.
36666         (set_nonzero_bits): Likewise.
36667         (get_range_info): Return wide_ints rather than double_ints.
36668         (get_nonzero_bits): Likewise.
36669         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
36670         * tree-ssa-pre.c (phi_translate_1): Likewise.
36671         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
36672         (acceptable_pow_call): Likewise.
36673         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
36674         interfaces.
36675         (vn_reference_fold_indirect): Likewise.
36676         (vn_reference_maybe_forwprop_address): Likewise.
36677         (valueize_refs_1): Likewise.
36678         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
36679         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
36680         tree_int_cst_lt and tree_int_cst_le.
36681         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
36682         interfaces.
36683         (streamer_alloc_tree): Likewise.
36684         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
36685         (streamer_write_tree_header): Likewise.
36686         (streamer_write_integer_cst): Likewise.
36687         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
36688         (build_constructors): Likewise.
36689         (array_value_type): Likewise.
36690         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
36691         (vect_check_gather): Likewise.
36692         * tree-vect-generic.c (build_replicated_const): Likewise.
36693         (expand_vector_divmod): Likewise.
36694         * tree-vect-loop.c (vect_transform_loop): Likewise.
36695         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
36696         (vect_do_peeling_for_alignment): Likewise.
36697         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
36698         * tree-vrp.c: Include wide-int.h.
36699         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
36700         (extract_range_from_assert): Use wide-int interfaces.
36701         (vrp_int_const_binop): Likewise.
36702         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
36703         double_int pointers.
36704         (ranges_from_anti_range): Use wide-int interfaces.
36705         (quad_int_cmp): Delete.
36706         (quad_int_pair_sort): Likewise.
36707         (extract_range_from_binary_expr_1): Use wide-int interfaces.
36708         (extract_range_from_unary_expr_1): Likewise.
36709         (adjust_range_with_scev): Likewise.
36710         (masked_increment): Take and return wide_ints rather than double_ints.
36711         (register_edge_assert_for_2): Use wide-int interfaces.
36712         (check_array_ref): Likewise.
36713         (search_for_addr_array): Likewise.
36714         (maybe_set_nonzero_bits): Likewise.
36715         (union_ranges): Pass an integer of the correct type instead of
36716         using integer_one_node.
36717         (intersect_ranges): Likewise.
36718         (simplify_truth_ops_using_ranges): Likewise.
36719         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
36720         (range_fits_type_p): Likewise.
36721         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
36722         a bool.
36723         (simplify_conversion_using_ranges): Use wide-int interfaces.
36724         (simplify_float_conversion_using_ranges): Likewise.
36725         (vrp_finalize): Likewise.
36726         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
36727         (gimple_stringops_transform): Likewise.
36728         * varasm.c (decode_addr_const): Likewise.
36729         (const_hash_1): Likewise.
36730         (const_rtx_hash_1): Likewise
36731         (output_constant): Likewise.
36732         (array_size_for_constructor): Likewise.
36733         (output_constructor_regular_field): Likewise.
36734         (output_constructor_bitfield): Likewise.
36735         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
36736         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
36737         GENERATOR_FILEs.
36738         * gencheck.c: Define BITS_PER_UNIT.
36739         * wide-int.cc: New.
36740         * wide-int.h: New.
36741         * wide-int-print.cc: New.
36742         * wide-int-print.h: New.
36744 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36746         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
36748 2014-05-06  Richard Biener  <rguenther@suse.de>
36750         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
36751         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
36752         (TODO_verify_all): Adjust.
36753         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
36754         TODO_verify_stmts and TODO_verify_rtl_sharing.
36755         * bb-reorder.c: Likewise.
36756         * cfgexpand.c: Likewise.
36757         * cprop.c: Likewise.
36758         * cse.c: Likewise.
36759         * function.c: Likewise.
36760         * fwprop.c: Likewise.
36761         * gcse.c: Likewise.
36762         * gimple-ssa-isolate-paths.c: Likewise.
36763         * gimple-ssa-strength-reduction.c: Likewise.
36764         * ipa-split.c: Likewise.
36765         * loop-init.c: Likewise.
36766         * loop-unroll.c: Likewise.
36767         * lower-subreg.c: Likewise.
36768         * modulo-sched.c: Likewise.
36769         * postreload-gcse.c: Likewise.
36770         * predict.c: Likewise.
36771         * recog.c: Likewise.
36772         * sched-rgn.c: Likewise.
36773         * store-motion.c: Likewise.
36774         * tracer.c: Likewise.
36775         * trans-mem.c: Likewise.
36776         * tree-call-cdce.c: Likewise.
36777         * tree-cfg.c: Likewise.
36778         * tree-cfgcleanup.c: Likewise.
36779         * tree-complex.c: Likewise.
36780         * tree-eh.c: Likewise.
36781         * tree-emutls.c: Likewise.
36782         * tree-if-conv.c: Likewise.
36783         * tree-into-ssa.c: Likewise.
36784         * tree-loop-distribution.c: Likewise.
36785         * tree-object-size.c: Likewise.
36786         * tree-parloops.c: Likewise.
36787         * tree-pass.h: Likewise.
36788         * tree-sra.c: Likewise.
36789         * tree-ssa-ccp.c: Likewise.
36790         * tree-ssa-copy.c: Likewise.
36791         * tree-ssa-copyrename.c: Likewise.
36792         * tree-ssa-dce.c: Likewise.
36793         * tree-ssa-dom.c: Likewise.
36794         * tree-ssa-dse.c: Likewise.
36795         * tree-ssa-forwprop.c: Likewise.
36796         * tree-ssa-ifcombine.c: Likewise.
36797         * tree-ssa-loop-ch.c: Likewise.
36798         * tree-ssa-loop-ivcanon.c: Likewise.
36799         * tree-ssa-loop.c: Likewise.
36800         * tree-ssa-math-opts.c: Likewise.
36801         * tree-ssa-phiopt.c: Likewise.
36802         * tree-ssa-phiprop.c: Likewise.
36803         * tree-ssa-pre.c: Likewise.
36804         * tree-ssa-reassoc.c: Likewise.
36805         * tree-ssa-sink.c: Likewise.
36806         * tree-ssa-strlen.c: Likewise.
36807         * tree-ssa-tail-merge.c: Likewise.
36808         * tree-ssa-uncprop.c: Likewise.
36809         * tree-switch-conversion.c: Likewise.
36810         * tree-tailcall.c: Likewise.
36811         * tree-vect-generic.c: Likewise.
36812         * tree-vectorizer.c: Likewise.
36813         * tree-vrp.c: Likewise.
36814         * tsan.c: Likewise.
36815         * var-tracking.c: Likewise.
36816         * bt-load.c: Likewise.
36817         * cfgcleanup.c: Likewise.
36818         * combine-stack-adj.c: Likewise.
36819         * combine.c: Likewise.
36820         * compare-elim.c: Likewise.
36821         * config/epiphany/resolve-sw-modes.c: Likewise.
36822         * config/i386/i386.c: Likewise.
36823         * config/mips/mips.c: Likewise.
36824         * config/s390/s390.c: Likewise.
36825         * config/sh/sh_treg_combine.cc: Likewise.
36826         * config/sparc/sparc.c: Likewise.
36827         * dce.c: Likewise.
36828         * dse.c: Likewise.
36829         * final.c: Likewise.
36830         * ifcvt.c: Likewise.
36831         * mode-switching.c: Likewise.
36832         * passes.c: Likewise.
36833         * postreload.c: Likewise.
36834         * ree.c: Likewise.
36835         * reg-stack.c: Likewise.
36836         * regcprop.c: Likewise.
36837         * regrename.c: Likewise.
36838         * web.c: Likewise.
36840 2014-05-06  Richard Biener  <rguenther@suse.de>
36842         PR middle-end/61070
36843         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
36844         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
36846 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
36848         PR ipa/60965
36849         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
36851 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
36852             Tom de Vries  <tom@codesourcery.com>
36854         * target.def (call_fusage_contains_non_callee_clobbers): New
36855         DEFHOOKPOD.
36856         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
36857         Hooks to @menu.
36858         (@node Miscellaneous Register Hooks): New node.
36859         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
36860         * doc/tm.texi: Regenerate.
36862 2014-05-05  Marek Polacek  <polacek@redhat.com>
36864         PR driver/61065
36865         * opts.c (common_handle_option): Call error_at instead of warning_at.
36867 2014-05-05  Richard Biener  <rguenther@suse.de>
36869         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
36870         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
36871         under the TODO_verify_il umbrella.
36873 2014-05-05  Richard Biener  <rguenther@suse.de>
36875         * passes.c (execute_function_todo): Move TODO_verify_flow under
36876         the TODO_verify_ul umbrella.
36878 2014-05-05  Richard Biener  <rguenther@suse.de>
36880         PR middle-end/61010
36881         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
36882         X & CST away from a CST that is the mask of a mode.
36884 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36886         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
36887         int argument to enum machine_mode.
36888         (picochip_class_max_nregs): Ditto.
36889         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
36890         (picochip_class_max_nregs): Ditto.
36892 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36894         * target.def: Add new target hook.
36895         * doc/tm.texi: Regenerate.
36896         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
36897         * targhooks.c (default_keep_leaf_when_profiled): New function.
36899         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
36900         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
36902 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
36904         PR tree-optimization/60363
36905         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
36906         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
36907         (update_destination_phis): New parameter.
36908         (create_edge_and_update_destination_phis): Ditto.
36909         (ssa_fix_duplicate_block_edges): Pass new arguments.
36910         (thread_single_edge): Ditto.
36912 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
36914         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
36915         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
36916         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
36917         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
36918         Use RS6000_BTM_HARD_FLOAT.
36919         (BU_MISC_2): Likewise.
36920         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
36921         RS6000_BTM_HARD_FLOAT.
36922         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
36923         is explicitly used.
36924         (rs6000_invalid_builtin): Add hard floating builtin support.
36925         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
36926         hard float builtins.
36927         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
36929 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
36931         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
36932         Add missing function* argument.
36934 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
36936         * lra-constraints.c (valid_address_p): Move earlier in file.
36937         Add a constraint argument to the address_info version.
36938         (satisfies_memory_constraint_p): New function.
36939         (satisfies_address_constraint_p): Likewise.
36940         (process_alt_operands, curr_insn_transform): Use them.
36941         (process_address): Pass the constraint to valid_address_p when
36942         checking address operands.
36944 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
36946         * config/mips/mips.c (mips_isa_rev): New variable.
36947         (mips_set_architecture): Set it.
36948         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
36949         from mips_isa_rev.
36950         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
36951         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
36952         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
36953         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
36954         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
36955         conditions in terms of mips_isa_rev.
36956         (mips_isa_rev): Declare.
36958 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
36960         * config/sh/sh-mem.cc: Use tabs instead of spaces.
36961         (prob_unlikely, prob_likely): Make variables const.
36963 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
36965         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
36967 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
36969         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
36971 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
36973         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
36974         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
36975         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
36976         functions.
36977         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
36978         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
36979         sh_pass_in_reg_p.
36980         Replace usage of ROUND_REG with sh_round_reg.
36981         Use CEIL instead of ROUND_ADVANCE.
36983 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
36985         PR target/61026
36986         * config/sh/sh.c: Include stdlib headers before everything else.
36988 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
36990         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
36991         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
36992         (gimplify_adjust_omp_clauses): Simd region is never
36993         directly nested in combined parallel.  Instead, for linear
36994         with copyin/copyout, if in combined for simd loop, make decl
36995         firstprivate/lastprivate on OMP_FOR.
36996         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
36997         expand_omp_for_static_chunk): When setting endvar, also set
36998         fd->loop.v to the same value.
37000 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
37002         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
37004 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
37006         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
37007         expression.
37009 2014-05-02  Marek Polacek  <polacek@redhat.com>
37011         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
37013 2014-05-02  Kito Cheng  <kito@0xlab.org>
37015         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
37016         to a C expression marco.
37017         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
37018         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
37019         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
37020         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
37021         HONOR_REG_ALLOC_ORDER.
37022         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
37024 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37026         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
37028 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37030         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
37032 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
37034         * tree-if-conv.c (is_cond_scalar_reduction): New function.
37035         (convert_scalar_cond_reduction): Likewise.
37036         (predicate_scalar_phi): Add recognition and transformation
37037         of simple conditioanl reduction to be vectorizable.
37039 2014-05-01  Marek Polacek  <polacek@redhat.com>
37041         PR c/43245
37042         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
37044 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
37046         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
37047         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
37048         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
37049         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
37050         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
37051         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
37052         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
37053         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
37055 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
37057         * config/arc/arc.opt (mlra): Move comment above option name
37058         to avoid mis-parsing as language options.
37060 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37062         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
37063         * config/sol2.h: ... here.
37064         * config/sol2-10.h: Remove.
37066         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
37067         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
37068         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
37069         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
37070         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
37071         * config/sol2.h: ... here.
37072         (SECTION_NAME_FORMAT): Don't redefine.
37073         (STARTFILE_ARCH32_SPEC): Rename to ...
37074         (STARTFILE_ARCH_SPEC): ... this.
37075         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
37076         * config/sparc/sol2.h: ... here.
37077         (SECTION_NAME_FORMAT): Don't undef.
37078         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
37079         (SUBTARGET_EXTRA_SPECS): Remove.
37080         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
37082         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
37083         (MD_STARTFILE_PREFIX): Remove.
37084         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
37085         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
37086         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
37087         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
37088         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
37089         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
37090         * config/i386/sol2.h: ... here.
37091         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
37092         * config/i386/sol2-bi.h: Remove.
37093         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
37094         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
37096         * config/i386/t-sol2-64: Rename to ...
37097         * config/i386/t-sol2: ... this.
37098         * config/sparc/t-sol2-64: Rename to ...
37099         * config/sparc/t-sol2: ... this.
37101         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
37102         sol2_tm_file_head, sol2_tm_file_tail.
37103         Include ${cpu_type}/sol2.h before sol2.h.
37104         Remove sol2-10.h.
37105         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
37106         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
37107         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
37108         Reflect i386/t-sol2-64 renaming.
37109         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
37110         Reflect sparc/t-sol2-64 renaming.
37112 2014-04-30  Richard Biener  <rguenther@suse.de>
37114         * passes.c (execute_function_todo): Move TODO_verify_stmts
37115         and TODO_verify_ssa under the TODO_verify_il umbrella.
37116         * tree-ssa.h (verify_ssa): Adjust prototype.
37117         * tree-ssa.c (verify_ssa): Add parameter to tell whether
37118         we should verify SSA operands.
37119         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
37120         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
37121         whether we should verify whether not throwing stmts have EH info.
37122         * graphite-scop-detection.c (create_sese_edges): Adjust.
37123         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
37124         * tree-eh.c (lower_try_finally_switch): Do not add the
37125         default case label twice.
37127 2014-04-30  Marek Polacek  <polacek@redhat.com>
37129         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
37130         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
37131         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
37132         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
37134 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
37136         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
37137         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
37138         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
37139         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
37140         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
37141         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
37142         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
37143         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
37145 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
37147         * tree-cfg.c (dump_function_to_file): Dump the return type of
37148         functions, in a line to itself before the function body, mimicking
37149         the layout of a C function.
37151 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
37153         PR tree-optimization/60971
37154         * tree-tailcall.c (process_assignment): Reject conversions which
37155         reduce precision.
37157 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
37159         * calls.c (initialize_argument_information): Always treat
37160         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
37161         (expand_call): Likewise.
37162         (emit_library_call_calue_1): Likewise.
37163         * expr.c (PUSH_ARGS_REVERSED): Do not define.
37164         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
37165         code accordingly.
37167 2014-04-29  Nick Clifton  <nickc@redhat.com>
37169         * config/msp430/msp430.md (umulsidi): Fix typo.
37170         (mulhisi3): Enable even inside interrupt handlers.
37171         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
37172         bigger return address pushed in large mode.
37174 2014-04-29  Nick Clifton  <nickc@redhat.com>
37176         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
37177         (arc_init_reg_tables): Use a machine_mode enum to iterate over
37178         available modes.
37179         * config/m32r/m32r.c (init_reg_tables): Likewise.
37180         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
37181         enum to hold the modes.
37183 2014-04-29  Richard Biener  <rguenther@suse.de>
37185         * dominance.c (free_dominance_info): Add overload with
37186         function parameter.
37187         (dom_info_state): Likewise.
37188         (dom_info_available_p): Likewise.
37189         * basic-block.h (free_dominance_info, dom_info_state,
37190         dom_info_available_p): Declare overloads.
37191         * passes.c (execute_function_todo): Verify that verifiers
37192         don't change dominator info state.  Drop dominator info
37193         for IPA pass invocations.
37194         * cgraph.c (release_function_body): Restore asserts that
37195         dominator information is released.
37197 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
37199         * doc/invoke.texi: Fix typo.
37200         * tree-vrp.c: Fix typos.
37201         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
37203 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
37205         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
37207 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
37209         * config/aarch64/aarch64-builtins.c
37210         (aarch64_types_storestruct_lane_qualifiers): New.
37211         (TYPES_STORESTRUCT_LANE): Likewise.
37212         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
37213         (st3_lane): Likewise.
37214         (st4_lane): Likewise.
37215         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
37216         (vec_store_lanesci_lane<mode>): Likewise.
37217         (vec_store_lanesxi_lane<mode>): Likewise.
37218         (aarch64_st2_lane<VQ:mode>): Likewise.
37219         (aarch64_st3_lane<VQ:mode>): Likewise.
37220         (aarch64_st4_lane<VQ:mode>): Likewise.
37221         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
37222         * config/aarch64/arm_neon.h
37223         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
37224         use new macro arguments.
37225         (__ST3_LANE_FUNC): Likewise.
37226         (__ST4_LANE_FUNC): Likewise.
37227         * config/aarch64/iterators.md (V_TWO_ELEM): New.
37228         (V_THREE_ELEM): Likewise.
37229         (V_FOUR_ELEM): Likewise.
37231 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
37233         * doc/gimple.texi: Replace the description of the now-defunct
37234         union gimple_statement_d with a diagram showing the
37235         gimple_statement_base class hierarchy and its relationships to
37236         the GSS_ and GIMPLE_ enums.
37238 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
37240         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
37241         * config/aarch64/aarch64.c
37242         (aarch64_cannot_change_mode_class): Weaken conditions.
37243         (aarch64_modes_tieable_p): New.
37244         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
37246 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
37248         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
37249         (loadsync_<mode>): Change mode.
37250         (load_quadpti, store_quadpti): New.
37251         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
37252         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
37254 2014-04-28  Martin Jambor  <mjambor@suse.cz>
37256         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
37257         same alias type as the original statement.
37258         (subreplacement_assignment_data): New type.
37259         (handle_unscalarized_data_in_subtree): New type of parameter,
37260         generate new memory accesses with same alias type as the original
37261         statement.
37262         (load_assign_lhs_subreplacements): Likewise.
37263         (sra_modify_constructor_assign): Generate new memory accesses with
37264         same alias type as the original statement.
37266 2014-04-28  Richard Biener  <rguenther@suse.de>
37268         * tree-pass.h (TODO_verify_il): Define.
37269         (TODO_verify_all): Complete properly.
37270         * passes.c (execute_function_todo): Move existing loop-closed
37271         SSA verification under TODO_verify_il.
37272         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
37273         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
37274         Fix tree sharing issue.
37276 2014-04-28  Richard Biener  <rguenther@suse.de>
37278         PR middle-end/60092
37279         * builtins.def (DEF_C11_BUILTIN): Add.
37280         (BUILT_IN_ALIGNED_ALLOC): Likewise.
37281         * coretypes.h (enum function_class): Add function_c11_misc.
37282         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37283         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
37284         (call_may_clobber_ref_p_1): Likewise.
37285         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
37286         (mark_all_reaching_defs_necessary_1): Likewise.
37287         (propagate_necessity): Likewise.
37288         (eliminate_unnecessary_stmts): Likewise.
37289         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
37291 2014-04-28  Richard Biener  <rguenther@suse.de>
37293         * tree-vrp.c (vrp_var_may_overflow): Remove.
37294         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
37295         with overflow immediately bump to one before that value and
37296         let iteration figure out overflow status.
37298 2014-04-28  Richard Biener  <rguenther@suse.de>
37300         * configure.ac: Do valgrind header checks unconditionally.
37301         Add --enable-valgrind-annotations.
37302         * system.h: Guard valgrind header inclusion with
37303         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
37304         * alloc-pool.c (pool_alloc, pool_free): Use
37305         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
37306         to guard possibly dead code.
37307         * config.in: Regenerated.
37308         * configure: Likewise.
37310 2014-04-28  Jeff Law  <law@redhat.com>
37312         PR tree-optimization/60902
37313         * tree-ssa-threadedge.c
37314         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
37315         over real defs when invalidating outputs from statements that do not
37316         produce useful outputs for threading.
37318 2014-04-28  Richard Biener  <rguenther@suse.de>
37320         PR tree-optimization/60979
37321         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
37322         SCOPs that end in a block with a successor with abnormal
37323         predecessors.
37325 2014-04-28  Richard Biener  <rguenther@suse.de>
37327         * tree-pass.h (execute_pass_list): Adjust prototype.
37328         * passes.c (pass_manager::execute_early_local_passes): Adjust.
37329         (do_per_function): Change callback signature, push all actual
37330         work to the callbals.
37331         (do_per_function_toporder): Likewise.
37332         (execute_function_dump): Adjust.
37333         (execute_function_todo): Likewise.
37334         (clear_last_verified): Likewise.
37335         (verify_curr_properties): Likewise.
37336         (update_properties_after_pass): Likewise.
37337         (execute_pass_list_1): Split out from ...
37338         (execute_pass_list): ... here.  Adjust.
37339         (execute_ipa_pass_list): Likewise.
37340         * cgraphunit.c (cgraph_add_new_function): Adjust.
37341         (analyze_function): Likewise.
37342         (expand_function): Likewise.
37343         * cgraph.c (release_function_body): Free dominance info
37344         here instead of asserting it was magically freed elsewhere.
37346 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
37348         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
37349         * configure: Regenerate.
37350         * config/sparc/sparc.opt (muser-mode): New option.
37351         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
37352         for LEON3.
37353         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
37354         * doc/invoke.texi (SPARC options): Document -muser-mode.
37356 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
37358         * cselib.c (find_slot_memmode): Delete.
37359         (cselib_hasher): Change compare_type to a struct.
37360         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
37361         constants.
37362         (preserve_constants_and_equivs): Adjust for new compare_type.
37363         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
37364         (wrap_constant): Delete.
37365         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
37367 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
37369         * doc/install.texi (Building with profile feedback): Remove
37370         outdated sentence.
37372 2014-04-26  Tom de Vries  <tom@codesourcery.com>
37374         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
37375         array accesses.
37377 2014-04-25  Cary Coutant  <ccoutant@google.com>
37379         PR debug/60929
37380         * dwarf2out.c (should_move_die_to_comdat): A type definition
37381         can contain a subprogram definition, but don't move it to a
37382         comdat unit.
37383         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
37384         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
37385         from original DIE.
37386         (clone_tree_hash): Rename to...
37387         (clone_tree_partial): ...this; change callers.  Copy
37388         DW_TAG_subprogram DIEs as declarations.
37389         (copy_decls_walk): Don't copy children of a declaration into a
37390         type unit.
37392 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
37394         PR target/60969
37395         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
37396         alternative 12.
37398 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
37400         * config/arm/predicates.md (call_insn_operand): Add long_call check.
37401         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
37402         reg for long_call.
37403         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
37404         restriction.
37406 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37408         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
37410 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37412         PR tree-optimization/60930
37413         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
37414         creating a multiply candidate by folding two constant
37415         multiplicands when the result overflows.
37417 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
37419         PR tree-optimization/60960
37420         * tree-vect-generic.c (expand_vector_operation): Only call
37421         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
37423 2014-04-25  Tom de Vries  <tom@codesourcery.com>
37425         * expr.c (clobber_reg_mode): New function.
37426         * expr.h (clobber_reg): New function.
37428 2014-04-25  Tom de Vries  <tom@codesourcery.com>
37430         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
37431         clobbers.
37433 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
37434             Tom de Vries  <tom@codesourcery.com>
37436         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
37437         handle.
37438         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
37439         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
37440         new argument to find_all_hard_reg_sets call.
37442 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37444         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
37445         Use HOST_WIDE_INT_C for mask literal.
37446         (aarch_rev16_shleft_mask_imm_p): Likewise.
37448 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
37450         PR target/60941
37451         * config/sparc/sparc.md (ashlsi3_extend): Delete.
37453 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
37455         PR preprocessor/56540
37456         * config/i386/i386-c.c (ix86_target_macros): Define
37457         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
37459 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37461         * configure.ac (tga_func): Remove.
37462         (LIB_TLS_SPEC): Remove.
37463         * configure: Regenerate.
37464         * config.in: Regenerate.
37465         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
37467 2014-04-25  Richard Biener  <rguenther@suse.de>
37469         PR ipa/60912
37470         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
37471         call stmt use/clobber sets during stmt walk instead of
37472         walking the possibly incomplete set of caller edges.
37474 2014-04-25  Richard Biener  <rguenther@suse.de>
37476         PR ipa/60911
37477         * passes.c (apply_ipa_transforms): Inline into only caller ...
37478         (execute_one_pass): ... here.  Properly bring in function
37479         bodies for nodes we want to apply IPA transforms to.
37481 2014-04-24  Cong Hou  <congh@google.com>
37483         PR tree-optimization/60896
37484         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
37485         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
37486         (vect_mark_pattern_stmts): Set the def type of all statements in
37487         PATTERN_DEF_SEQ as vect_internal_def.
37489 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
37491         * doc/extend.texi (PowerPC Built-in Functions): Document new
37492         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
37493         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
37495         * config/rs6000/predicates.md (const_0_to_3_operand): New
37496         predicate to match 0..3 integer constants.
37498         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
37499         to support adding miscellaneous builtin functions.
37500         (BU_DFP_MISC_2): Likewise.
37501         (BU_P7_MISC_1): Likewise.
37502         (BU_P7_MISC_2): Likewise.
37503         (BU_P8V_MISC_3): Likewise.
37504         (BU_MISC_1): Likewise.
37505         (BU_MISC_2): Likewise.
37506         (DIVWE): Add extended divide builtin functions.
37507         (DIVWEO): Likewise.
37508         (DIVWEU): Likewise.
37509         (DIVWEUO): Likewise.
37510         (DIVDE): Likewise.
37511         (DIVDEO): Likewise.
37512         (DIVDEU): Likewise.
37513         (DIVDEUO): Likewise.
37514         (DXEX): Add decimal floating-point builtin functions.
37515         (DXEXQ): Likewise.
37516         (DDEDPD): Likewise.
37517         (DDEDPDQ): Likewise.
37518         (DENBCD): Likewise.
37519         (DENBCDQ): Likewise.
37520         (DIEX): Likewise.
37521         (DIEXQ): Likewise.
37522         (DSCLI): Likewise.
37523         (DSCLIQ): Likewise.
37524         (DSCRI): Likewise.
37525         (DSCRIQ): Likewise.
37526         (CDTBCD): Add new BCD builtin functions.
37527         (CBCDTD): Likewise.
37528         (ADDG6S): Likewise.
37529         (BCDADD): Likewise.
37530         (BCDADD_LT): Likewise.
37531         (BCDADD_EQ): Likewise.
37532         (BCDADD_GT): Likewise.
37533         (BCDADD_OV): Likewise.
37534         (BCDSUB): Likewise.
37535         (BCDSUB_LT): Likewise.
37536         (BCDSUB_EQ): Likewise.
37537         (BCDSUB_GT): Likewise.
37538         (BCDSUB_OV): Likewise.
37539         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
37540         (UNPACK_TD): Likewise.
37541         (PACK_TF): Likewise.
37542         (UNPACK_TF): Likewise.
37543         (UNPACK_TF_0): Likewise.
37544         (UNPACK_TF_1): Likewise.
37545         (PACK_V1TI): Likewise.
37546         (UNPACK_V1TI): Likewise.
37548         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
37549         support for decimal floating point builtin functions.
37550         (rs6000_expand_ternop_builtin): Add checks for the new builtin
37551         functions that take constant arguments.
37552         (rs6000_invalid_builtin): Add decimal floating point builtin support.
37553         (rs6000_init_builtins): Setup long double, _Decimal64, and
37554         _Decimal128 types for new builtin functions.
37555         (builtin_function_type): Set the unsigned flags appropriately for
37556         the new builtin functions.
37557         (rs6000_opt_masks): Add support for decimal floating point builtin
37558         functions.
37560         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
37561         floating point builtin functions.
37562         (RS6000_BTM_COMMON): Likewise.
37563         (RS6000_BTI_long_double): Likewise.
37564         (RS6000_BTI_dfloat64): Likewise.
37565         (RS6000_BTI_dfloat128): Likewise.
37566         (long_double_type_internal_node): Likewise.
37567         (dfloat64_type_internal_node): Likewise.
37568         (dfloat128_type_internal_node): Likewise.
37570         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
37571         2.07 bcd arithmetic instructions.
37572         (UNSPEC_BCDSUB): Likewise.
37573         (UNSPEC_BCD_OVERFLOW): Likewise.
37574         (UNSPEC_BCD_ADD_SUB): Likewise.
37575         (bcd_add_sub): Likewise.
37576         (BCD_TEST): Likewise.
37577         (bcd<bcd_add_sub>): Likewise.
37578         (bcd<bcd_add_sub>_test): Likewise.
37579         (bcd<bcd_add_sub>_test2): Likewise.
37580         (bcd<bcd_add_sub>_<code>): Likewise.
37581         (peephole2 for combined bcd ops): Likewise.
37583         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
37584         decimal floating point builtin functions.
37585         (UNSPEC_DENBCD): Likewise.
37586         (UNSPEC_DXEX): Likewise.
37587         (UNSPEC_DIEX): Likewise.
37588         (UNSPEC_DSCLI): Likewise.
37589         (UNSPEC_DSCRI): Likewise.
37590         (D64_D128): Likewise.
37591         (dfp_suffix): Likewise.
37592         (dfp_ddedpd_<mode>): Likewise.
37593         (dfp_denbcd_<mode>): Likewise.
37594         (dfp_dxex_<mode>): Likewise.
37595         (dfp_diex_<mode>): Likewise.
37596         (dfp_dscli_<mode>): Likewise.
37597         (dfp_dscri_<mode>): Likewise.
37599         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
37600         builtin functions.
37601         (UNSPEC_CDTBCD): Likewise.
37602         (UNSPEC_CBCDTD): Likewise.
37603         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
37604         (UNSPEC_DIVEO): Likewise.
37605         (UNSPEC_DIVEU): Likewise.
37606         (UNSPEC_DIVEUO): Likewise.
37607         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
37608         pack/unpack 128-bit types.
37609         (UNSPEC_PACK_128BIT): Likewise.
37610         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
37611         (udiv<mode>3): Use idiv_ldiv mode attribute.
37612         (div<mode>3): Likewise.
37613         (addg6s): Add new BCD builtin functions.
37614         (cdtbcd): Likewise.
37615         (cbcdtd): Likewise.
37616         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
37617         (div_extend): Likewise.
37618         (div<div_extend>_<mode>"): Likewise.
37619         (FP128_64): Add support for new builtin functions to pack/unpack
37620         128-bit types.
37621         (unpack<mode>): Likewise.
37622         (unpacktf_0): Likewise.
37623         (unpacktf_1): Likewise.
37624         (unpack<mode>_dm): Likewise.
37625         (unpack<mode>_nodm): Likewise.
37626         (pack<mode>): Likewise.
37627         (unpackv1ti): Likewise.
37628         (packv1ti): Likewise.
37630 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
37632         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
37633         is disabled.
37635 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
37637         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
37638         * gimplify.c (omp_is_private): Change last argument's type to int.
37639         Only diagnose lastprivate if the simd argument is 1, only diagnose
37640         linear if the simd argument is 2.
37641         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
37642         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
37643         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
37644         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
37645         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
37646         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
37647         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
37648         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
37649         * tree-nested.c (convert_nonlocal_omp_clauses,
37650         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
37652 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
37654         PR target/60822
37655         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
37656         operand 1.
37658 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
37660         * flag-types.h (enum ivar_visibility): Add.
37662 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
37664         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
37665         function * argument.
37667 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
37669         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
37671 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
37672             Tom de Vries  <tom@codesourcery.com>
37674         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
37675         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
37676         reg-note.
37677         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
37678         * emit-rtl.c (try_split): Same.
37680 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
37681             Tom de Vries  <tom@codesourcery.com>
37683         * common.opt (fuse-caller-save): New option.
37685 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
37687         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
37688         elements for big-endian.
37690 2014-04-24  Richard Biener  <rguenther@suse.de>
37692         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
37693         during TER and instead use the sepops interface for expanding
37694         non-GIMPLE_SINGLE_RHS.
37696 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37698         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
37699         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
37701 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37703         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
37704         assembler 64-bit option.
37705         * configure: Regenerate.
37707 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37709         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
37710         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
37711         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
37712         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
37713         (TARGET_CRYPTO): Take TARGET_SIMD into account.
37715 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37717         * config/aarch64/aarch64-builtins.c
37718         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
37719         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
37720         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
37721         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
37722         builtins.
37723         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
37724         (Vrevsuff): New mode attribute.
37726 2014-04-24  Terry Guo  <terry.guo@arm.com>
37728         * config/arm/arm.h (machine_function): Define variable
37729         after_arm_reorg here.
37730         * config/arm/arm.c (after_arm_reorg): Remove the definition.
37731         (arm_split_constant): Update the way to access variable
37732         after_arm_reorg.
37733         (arm_reorg): Ditto.
37734         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
37736 2014-04-23  Tom de Vries  <tom@codesourcery.com>
37738         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
37740 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
37742         * is-a.h: Update comments to reflect the following changes to the
37743         "pointerness" of the API, making the template parameter match the
37744         return type, allowing use of is-a.h with typedefs of pointers.
37745         (is_a_helper::cast): Return a T rather then a pointer to a T, so
37746         that the return type matches the parameter to the is_a_helper.
37747         (as_a): Likewise.
37748         (dyn_cast): Likewise.
37750         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
37751         pointer from the is-a.h API.
37753         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
37754         (is_a_helper <cgraph_node *>::test): ...this, matching change to
37755         is-a.h API.
37756         (is_a_helper <varpool_node>::test): Likewise, convert to...
37757         (is_a_helper <varpool_node *>::test): ...this.
37759         (varpool_first_variable): Update for removal of implicit pointer
37760         from the is-a.h API.
37761         (varpool_next_variable): Likewise.
37762         (varpool_first_static_initializer): Likewise.
37763         (varpool_next_static_initializer): Likewise.
37764         (varpool_first_defined_variable): Likewise.
37765         (varpool_next_defined_variable): Likewise.
37766         (cgraph_first_defined_function): Likewise.
37767         (cgraph_next_defined_function): Likewise.
37768         (cgraph_first_function): Likewise.
37769         (cgraph_next_function): Likewise.
37770         (cgraph_first_function_with_gimple_body): Likewise.
37771         (cgraph_next_function_with_gimple_body): Likewise.
37772         (cgraph_alias_target): Likewise.
37773         (varpool_alias_target): Likewise.
37774         (cgraph_function_or_thunk_node): Likewise.
37775         (varpool_variable_node): Likewise.
37776         (symtab_real_symbol_p): Likewise.
37777         * cgraphunit.c (referred_to_p): Likewise.
37778         (analyze_functions): Likewise.
37779         (handle_alias_pairs): Likewise.
37780         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
37781         * gimple-ssa.h (gimple_vuse_op): Likewise.
37782         (gimple_vdef_op): Likewise.
37783         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
37784         * gimple.c (gimple_build_asm_1): Likewise.
37785         (gimple_build_try): Likewise.
37786         (gimple_build_resx): Likewise.
37787         (gimple_build_eh_dispatch): Likewise.
37788         (gimple_build_omp_for): Likewise.
37789         (gimple_omp_for_set_clauses): Likewise.
37791         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
37792         (is_a_helper <gimple_statement_asm *>::test): ...this.
37793         (is_a_helper <gimple_statement_bind>::test): Convert to...
37794         (is_a_helper <gimple_statement_bind *>::test): ...this.
37795         (is_a_helper <gimple_statement_call>::test): Convert to...
37796         (is_a_helper <gimple_statement_call *>::test): ...this.
37797         (is_a_helper <gimple_statement_catch>::test): Convert to...
37798         (is_a_helper <gimple_statement_catch *>::test): ...this.
37799         (is_a_helper <gimple_statement_resx>::test): Convert to...
37800         (is_a_helper <gimple_statement_resx *>::test): ...this.
37801         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
37802         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
37803         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
37804         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
37805         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
37806         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
37807         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
37808         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
37809         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
37810         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
37811         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
37812         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
37813         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
37814         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
37815         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
37816         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
37817         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
37818         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
37819         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
37820         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
37821         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
37822         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
37823         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
37824         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
37825         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
37826         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
37827         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
37828         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
37829         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
37830         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
37831         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
37832         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
37833         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
37834         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
37835         (is_a_helper <gimple_statement_phi>::test): Convert to...
37836         (is_a_helper <gimple_statement_phi *>::test): ...this.
37837         (is_a_helper <gimple_statement_transaction>::test): Convert to...
37838         (is_a_helper <gimple_statement_transaction *>::test): ...this.
37839         (is_a_helper <gimple_statement_try>::test): Convert to...
37840         (is_a_helper <gimple_statement_try *>::test): ...this.
37841         (is_a_helper <gimple_statement_wce>::test): Convert to...
37842         (is_a_helper <gimple_statement_wce *>::test): ...this.
37843         (is_a_helper <const gimple_statement_asm>::test): Convert to...
37844         (is_a_helper <const gimple_statement_asm *>::test): ...this.
37845         (is_a_helper <const gimple_statement_bind>::test): Convert to...
37846         (is_a_helper <const gimple_statement_bind *>::test): ...this.
37847         (is_a_helper <const gimple_statement_call>::test): Convert to...
37848         (is_a_helper <const gimple_statement_call *>::test): ...this.
37849         (is_a_helper <const gimple_statement_catch>::test): Convert to...
37850         (is_a_helper <const gimple_statement_catch *>::test): ...this.
37851         (is_a_helper <const gimple_statement_resx>::test): Convert to...
37852         (is_a_helper <const gimple_statement_resx *>::test): ...this.
37853         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
37854         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
37855         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
37856         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
37857         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
37858         Convert to...
37859         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
37860         ...this.
37861         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
37862         Convert to...
37863         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
37864         ...this.
37865         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
37866         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
37867         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
37868         to...
37869         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
37870         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
37871         to...
37872         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
37873         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
37874         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
37875         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
37876         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
37877         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
37878         to...
37879         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
37880         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
37881         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
37882         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
37883         to...
37884         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
37885         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
37886         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
37887         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
37888         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
37889         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
37890         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
37891         (is_a_helper <const gimple_statement_phi>::test): Convert to...
37892         (is_a_helper <const gimple_statement_phi *>::test): ...this.
37893         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
37894         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
37895         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
37896         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
37897         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
37898         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
37899         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
37900         to...
37901         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
37902         ...this.
37903         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
37904         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
37906         (gimple_use_ops): Update for removal of implicit pointer from the
37907         is-a.h API.
37908         (gimple_set_use_ops): Likewise.
37909         (gimple_vuse): Likewise.
37910         (gimple_vdef): Likewise.
37911         (gimple_vuse_ptr): Likewise.
37912         (gimple_vdef_ptr): Likewise.
37913         (gimple_set_vuse): Likewise.
37914         (gimple_set_vdef): Likewise.
37915         (gimple_omp_return_set_lhs): Likewise.
37916         (gimple_omp_return_lhs): Likewise.
37917         (gimple_omp_return_lhs_ptr): Likewise.
37918         (gimple_call_fntype): Likewise.
37919         (gimple_call_set_fntype): Likewise.
37920         (gimple_call_set_internal_fn): Likewise.
37921         (gimple_call_use_set): Likewise.
37922         (gimple_call_clobber_set): Likewise.
37923         (gimple_bind_vars): Likewise.
37924         (gimple_bind_set_vars): Likewise.
37925         (gimple_bind_body_ptr): Likewise.
37926         (gimple_bind_set_body): Likewise.
37927         (gimple_bind_add_stmt): Likewise.
37928         (gimple_bind_block): Likewise.
37929         (gimple_bind_set_block): Likewise.
37930         (gimple_asm_ninputs): Likewise.
37931         (gimple_asm_noutputs): Likewise.
37932         (gimple_asm_nclobbers): Likewise.
37933         (gimple_asm_nlabels): Likewise.
37934         (gimple_asm_input_op): Likewise.
37935         (gimple_asm_input_op_ptr): Likewise.
37936         (gimple_asm_output_op): Likewise.
37937         (gimple_asm_output_op_ptr): Likewise.
37938         (gimple_asm_set_output_op): Likewise.
37939         (gimple_asm_clobber_op): Likewise.
37940         (gimple_asm_set_clobber_op): Likewise.
37941         (gimple_asm_label_op): Likewise.
37942         (gimple_asm_set_label_op): Likewise.
37943         (gimple_asm_string): Likewise.
37944         (gimple_catch_types): Likewise.
37945         (gimple_catch_types_ptr): Likewise.
37946         (gimple_catch_handler_ptr): Likewise.
37947         (gimple_catch_set_types): Likewise.
37948         (gimple_catch_set_handler): Likewise.
37949         (gimple_eh_filter_types): Likewise.
37950         (gimple_eh_filter_types_ptr): Likewise.
37951         (gimple_eh_filter_failure_ptr): Likewise.
37952         (gimple_eh_filter_set_types): Likewise.
37953         (gimple_eh_filter_set_failure): Likewise.
37954         (gimple_eh_must_not_throw_fndecl): Likewise.
37955         (gimple_eh_must_not_throw_set_fndecl): Likewise.
37956         (gimple_eh_else_n_body_ptr): Likewise.
37957         (gimple_eh_else_e_body_ptr): Likewise.
37958         (gimple_eh_else_set_n_body): Likewise.
37959         (gimple_eh_else_set_e_body): Likewise.
37960         (gimple_try_eval_ptr): Likewise.
37961         (gimple_try_cleanup_ptr): Likewise.
37962         (gimple_try_set_eval): Likewise.
37963         (gimple_try_set_cleanup): Likewise.
37964         (gimple_wce_cleanup_ptr): Likewise.
37965         (gimple_wce_set_cleanup): Likewise.
37966         (gimple_phi_capacity): Likewise.
37967         (gimple_phi_num_args): Likewise.
37968         (gimple_phi_result): Likewise.
37969         (gimple_phi_result_ptr): Likewise.
37970         (gimple_phi_set_result): Likewise.
37971         (gimple_phi_arg): Likewise.
37972         (gimple_phi_set_arg): Likewise.
37973         (gimple_resx_region): Likewise.
37974         (gimple_resx_set_region): Likewise.
37975         (gimple_eh_dispatch_region): Likewise.
37976         (gimple_eh_dispatch_set_region): Likewise.
37977         (gimple_omp_critical_name): Likewise.
37978         (gimple_omp_critical_name_ptr): Likewise.
37979         (gimple_omp_critical_set_name): Likewise.
37980         (gimple_omp_for_clauses): Likewise.
37981         (gimple_omp_for_clauses_ptr): Likewise.
37982         (gimple_omp_for_set_clauses): Likewise.
37983         (gimple_omp_for_collapse): Likewise.
37984         (gimple_omp_for_index): Likewise.
37985         (gimple_omp_for_index_ptr): Likewise.
37986         (gimple_omp_for_set_index): Likewise.
37987         (gimple_omp_for_initial): Likewise.
37988         (gimple_omp_for_initial_ptr): Likewise.
37989         (gimple_omp_for_set_initial): Likewise.
37990         (gimple_omp_for_final): Likewise.
37991         (gimple_omp_for_final_ptr): Likewise.
37992         (gimple_omp_for_set_final): Likewise.
37993         (gimple_omp_for_incr): Likewise.
37994         (gimple_omp_for_incr_ptr): Likewise.
37995         (gimple_omp_for_set_incr): Likewise.
37996         (gimple_omp_for_pre_body_ptr): Likewise.
37997         (gimple_omp_for_set_pre_body): Likewise.
37998         (gimple_omp_parallel_clauses): Likewise.
37999         (gimple_omp_parallel_clauses_ptr): Likewise.
38000         (gimple_omp_parallel_set_clauses): Likewise.
38001         (gimple_omp_parallel_child_fn): Likewise.
38002         (gimple_omp_parallel_child_fn_ptr): Likewise.
38003         (gimple_omp_parallel_set_child_fn): Likewise.
38004         (gimple_omp_parallel_data_arg): Likewise.
38005         (gimple_omp_parallel_data_arg_ptr): Likewise.
38006         (gimple_omp_parallel_set_data_arg): Likewise.
38007         (gimple_omp_task_clauses): Likewise.
38008         (gimple_omp_task_clauses_ptr): Likewise.
38009         (gimple_omp_task_set_clauses): Likewise.
38010         (gimple_omp_task_child_fn): Likewise.
38011         (gimple_omp_task_child_fn_ptr): Likewise.
38012         (gimple_omp_task_set_child_fn): Likewise.
38013         (gimple_omp_task_data_arg): Likewise.
38014         (gimple_omp_task_data_arg_ptr): Likewise.
38015         (gimple_omp_task_set_data_arg): Likewise.
38016         (gimple_omp_taskreg_clauses): Likewise.
38017         (gimple_omp_taskreg_clauses_ptr): Likewise.
38018         (gimple_omp_taskreg_set_clauses): Likewise.
38019         (gimple_omp_taskreg_child_fn): Likewise.
38020         (gimple_omp_taskreg_child_fn_ptr): Likewise.
38021         (gimple_omp_taskreg_set_child_fn): Likewise.
38022         (gimple_omp_taskreg_data_arg): Likewise.
38023         (gimple_omp_taskreg_data_arg_ptr): Likewise.
38024         (gimple_omp_taskreg_set_data_arg): Likewise.
38025         (gimple_omp_task_copy_fn): Likewise.
38026         (gimple_omp_task_copy_fn_ptr): Likewise.
38027         (gimple_omp_task_set_copy_fn): Likewise.
38028         (gimple_omp_task_arg_size): Likewise.
38029         (gimple_omp_task_arg_size_ptr): Likewise.
38030         (gimple_omp_task_set_arg_size): Likewise.
38031         (gimple_omp_task_arg_align): Likewise.
38032         (gimple_omp_task_arg_align_ptr): Likewise.
38033         (gimple_omp_task_set_arg_align): Likewise.
38034         (gimple_omp_single_clauses): Likewise.
38035         (gimple_omp_single_clauses_ptr): Likewise.
38036         (gimple_omp_single_set_clauses): Likewise.
38037         (gimple_omp_target_clauses): Likewise.
38038         (gimple_omp_target_clauses_ptr): Likewise.
38039         (gimple_omp_target_set_clauses): Likewise.
38040         (gimple_omp_target_child_fn): Likewise.
38041         (gimple_omp_target_child_fn_ptr): Likewise.
38042         (gimple_omp_target_set_child_fn): Likewise.
38043         (gimple_omp_target_data_arg): Likewise.
38044         (gimple_omp_target_data_arg_ptr): Likewise.
38045         (gimple_omp_target_set_data_arg): Likewise.
38046         (gimple_omp_teams_clauses): Likewise.
38047         (gimple_omp_teams_clauses_ptr): Likewise.
38048         (gimple_omp_teams_set_clauses): Likewise.
38049         (gimple_omp_sections_clauses): Likewise.
38050         (gimple_omp_sections_clauses_ptr): Likewise.
38051         (gimple_omp_sections_set_clauses): Likewise.
38052         (gimple_omp_sections_control): Likewise.
38053         (gimple_omp_sections_control_ptr): Likewise.
38054         (gimple_omp_sections_set_control): Likewise.
38055         (gimple_omp_for_set_cond): Likewise.
38056         (gimple_omp_for_cond): Likewise.
38057         (gimple_omp_atomic_store_set_val): Likewise.
38058         (gimple_omp_atomic_store_val): Likewise.
38059         (gimple_omp_atomic_store_val_ptr): Likewise.
38060         (gimple_omp_atomic_load_set_lhs): Likewise.
38061         (gimple_omp_atomic_load_lhs): Likewise.
38062         (gimple_omp_atomic_load_lhs_ptr): Likewise.
38063         (gimple_omp_atomic_load_set_rhs): Likewise.
38064         (gimple_omp_atomic_load_rhs): Likewise.
38065         (gimple_omp_atomic_load_rhs_ptr): Likewise.
38066         (gimple_omp_continue_control_def): Likewise.
38067         (gimple_omp_continue_control_def_ptr): Likewise.
38068         (gimple_omp_continue_set_control_def): Likewise.
38069         (gimple_omp_continue_control_use): Likewise.
38070         (gimple_omp_continue_control_use_ptr): Likewise.
38071         (gimple_omp_continue_set_control_use): Likewise.
38072         (gimple_transaction_body_ptr): Likewise.
38073         (gimple_transaction_label): Likewise.
38074         (gimple_transaction_label_ptr): Likewise.
38075         (gimple_transaction_set_body): Likewise.
38076         (gimple_transaction_set_label): Likewise.
38078         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
38079         * ipa-inline-analysis.c (inline_write_summary): Likewise.
38080         * ipa-ref.c (ipa_record_reference): Likewise.
38081         * ipa-reference.c (analyze_function): Likewise.
38082         (ipa_reference_write_optimization_summary): Likewise.
38083         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
38084         (address_taken_from_non_vtable_p): Likewise.
38085         (comdat_can_be_unshared_p_1): Likewise.
38086         * lto-cgraph.c (lto_output_ref): Likewise.
38087         (add_references): Likewise.
38088         (compute_ltrans_boundary): Likewise.
38089         (output_symtab): Likewise.
38090         (input_ref): Likewise.
38091         (input_cgraph_1): Likewise.
38092         (output_cgraph_opt_summary): Likewise.
38093         * lto-streamer-out.c (lto_output): Likewise.
38094         (output_symbol_p): Likewise.
38095         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
38096         (lsei_start_function_in_partition): Likewise.
38097         (lsei_next_variable_in_partition): Likewise.
38098         (lsei_start_variable_in_partition): Likewise.
38099         * symtab.c (insert_to_assembler_name_hash): Likewise.
38100         (unlink_from_assembler_name_hash): Likewise.
38101         (symtab_unregister_node): Likewise.
38102         (symtab_remove_node): Likewise.
38103         (dump_symtab_node): Likewise.
38104         (verify_symtab_base): Likewise.
38105         (verify_symtab_node): Likewise.
38106         (symtab_make_decl_local): Likewise.
38107         (symtab_alias_ultimate_target): Likewise.
38108         (symtab_resolve_alias): Likewise.
38109         (symtab_get_symbol_partitioning_class): Likewise.
38110         * tree-phinodes.c (allocate_phi_node): Likewise.
38111         (reserve_phi_args_for_new_edge): Likewise.
38112         (remove_phi_args): Likewise.
38113         * varpool.c (varpool_node_for_asm): Likewise.
38114         (varpool_remove_unreferenced_decls): Likewise.
38116 2014-04-23  Jeff Law  <law@redhat.com>
38118         PR tree-optimization/60902
38119         * tree-ssa-threadedge.c
38120         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
38121         invalidate outputs from statements that do not produce useful
38122         outputs for threading.
38124 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
38126         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
38127         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
38128         machine descriptions for Stack Smashing Protector.
38130 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
38132         * aarch64.md (<optab>_rol<mode>3): New pattern.
38133         (<optab>_rolsi3_uxtw): Likewise.
38134         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
38136 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
38138         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
38139         (arm_cortex_a12_tune): Likewise.
38141 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38143         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
38145 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38147         * config/arm/arm.md (arm_rev16si2): New pattern.
38148         (arm_rev16si2_alt): Likewise.
38149         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
38151 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38153         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
38154         (rev16<mode>2_alt): Likewise.
38155         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
38156         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
38157         (aarch_rev16_shleft_mask_imm_p): Likewise.
38158         (aarch_rev16_p_1): Likewise.
38159         (aarch_rev16_p): Likewise.
38160         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
38161         (aarch_rev16_shright_mask_imm_p): Likewise.
38162         (aarch_rev16_shleft_mask_imm_p): Likewise.
38164 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38166         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
38167         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
38168         rev cost.
38169         (cortex_a53_extra_costs): Likewise.
38170         (cortex_a57_extra_costs): Likewise.
38171         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
38172         (cortexa7_extra_costs): Likewise.
38173         (cortexa8_extra_costs): Likewise.
38174         (cortexa12_extra_costs): Likewise.
38175         (cortexa15_extra_costs): Likewise.
38176         (v7m_extra_costs): Likewise.
38177         (arm_new_rtx_costs): Handle BSWAP.
38179 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38181         * config/arm/arm.c (cortexa8_extra_costs): New table.
38182         (arm_cortex_a8_tune): New tuning struct.
38183         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
38185 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38187         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
38189 2014-04-23  Richard Biener  <rguenther@suse.de>
38191         * Makefile.in (OBJS): Remove loop-unswitch.o.
38192         * tree-pass.h (make_pass_rtl_unswitch): Remove.
38193         * passes.def (pass_rtl_unswitch): Likewise.
38194         * loop-init.c (gate_rtl_unswitch): Likewise.
38195         (rtl_unswitch): Likewise.
38196         (pass_data_rtl_unswitch): Likewise.
38197         (pass_rtl_unswitch): Likewise.
38198         (make_pass_rtl_unswitch): Likewise.
38199         * rtl.h (reversed_condition): Likewise.
38200         (compare_and_jump_seq): Likewise.
38201         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
38202         and make static.
38203         * loop-unroll.c (compare_and_jump_seq): Likewise.
38205 2014-04-23  Richard Biener  <rguenther@suse.de>
38207         PR tree-optimization/60903
38208         * tree-ssa-loop-im.c (analyze_memory_references): Remove
38209         commented code block.
38210         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
38211         loop flags to newly created BBs and edges.
38213 2014-04-23  Nick Clifton  <nickc@redhat.com>
38215         * config/msp430/msp430.c (msp430_handle_option): Move function
38216         to msp430-common.c
38217         (msp430_option_override): Simplify mcu and mcpu option handling.
38218         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
38219         support for -mhwmult command line option.
38220         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
38221         -mhwmult command line option.
38222         (msp430_hwmult_enabled): Delete.
38223         (msp43o_output_labelref): Add support for -mhwmult command line option.
38224         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
38225         (umulsidi3): Likewise.
38226         * config/msp430/msp430.opt (mmcu): Add Report attribute.
38227         (mcpu, mlarge, msmall): Likewise.
38228         (mhwmult): New option.
38229         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
38230         prototype.
38231         (msp430_is_f5_mcu): Remove prototype.
38232         (msp430_use_f5_series_hwmult): Add prototype.
38233         * config/msp430/msp430-opts.h: New file.
38234         * common/config/msp430: New directory.
38235         * common/config/msp430/msp430-common.c: New file.
38236         * config.gcc (msp430): Remove target_has_targetm_common.
38237         * doc/invoke.texi: Document -mhwmult command line option.
38239 2014-04-23  Nick Clifton  <nickc@redhat.com>
38241         * config/i386/cygwin.h (ENDFILE_SPEC): Include
38242         default-manifest.o if it can be found in the search path.
38243         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38245 2014-04-23  Terry Guo  <terry.guo@arm.com>
38247         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
38249 2014-04-23  Richard Biener  <rguenther@suse.de>
38251         PR middle-end/60895
38252         * tree-inline.c (declare_return_variable): Use mark_addressable.
38254 2014-04-23  Richard Biener  <rguenther@suse.de>
38256         PR middle-end/60891
38257         * loop-init.c (loop_optimizer_init): Make sure to apply
38258         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
38260 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
38262         PR sanitizer/60275
38263         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
38264         New options.
38265         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
38266         if flag_sanitize_undefined_trap_on_error.
38267         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
38268         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
38269         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
38270         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
38271         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
38272         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
38273         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
38274         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
38275         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
38276         * ubsan.c (ubsan_instrument_unreachable): Return
38277         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
38278         (ubsan_expand_null_ifn): Emit __builtin_trap ()
38279         if flag_sanitize_undefined_trap_on_error and
38280         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
38281         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
38282         instrument_bool_enum_load): Emit __builtin_trap () if
38283         flag_sanitize_undefined_trap_on_error and
38284         __builtin_handle_*_abort () if !flag_sanitize_recover.
38285         * doc/invoke.texi (-fsanitize-recover,
38286         -fsanitize-undefined-trap-on-error): Document.
38288 2014-04-22  Christian Bruel  <christian.bruel@st.com>
38290         * config/sh/sh.md (mov<mode>): Replace movQIHI.
38291         Force immediates to SImode.
38293 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
38295         * config/nios2/nios2.md (UNSPEC_ROUND): New.
38296         (lroundsfsi2): New.
38297         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
38298         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
38299         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
38300         (nios2_fpu_insn): Add entry for round.
38301         (N2FPU_NO_ERRNO_P): Define.
38302         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
38303         flag_errno_math.
38304         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
38306 2014-04-22  Richard Henderson  <rth@redhat.com>
38308         * config/aarch64/aarch64 (addti3, subti3): New expanders.
38309         (add<GPI>3_compare0): Remove leading * from name.
38310         (add<GPI>3_carryin): Likewise.
38311         (sub<GPI>3_compare0): Likewise.
38312         (sub<GPI>3_carryin): Likewise.
38313         (<su_optab>mulditi3): New expander.
38314         (multi3): New expander.
38315         (madd<GPI>): Remove leading * from name.
38317 2014-04-22  Martin Jambor  <mjambor@suse.cz>
38319         * cgraphclones.c (cgraph_function_versioning): Copy
38320         ipa_transforms_to_apply instead of asserting it is empty.
38322 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
38324         PR target/60868
38325         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
38326         on count_exp to get mode.
38328 2014-04-22  Andrew Pinski  <apinski@cavium.com>
38330         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
38331         Handle TLS for ILP32.
38332         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
38333         (tlsie_small_<mode>): this and handle PTR.
38334         (tlsie_small_sidi): New pattern.
38335         (tlsle_small): Change to an expand to handle ILP32.
38336         (tlsle_small_<mode>): New pattern.
38337         (tlsdesc_small): Rename to ...
38338         (tlsdesc_small_<mode>): this and handle PTR.
38340 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38342         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
38344 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
38346         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38347         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
38348         (aarch64_types_signed_poly_qualifiers): Likewise.
38349         (aarch64_types_unsigned_signed_qualifiers): Likewise.
38350         (aarch64_types_poly_signed_qualifiers): Likewise.
38351         (TYPES_REINTERP_SS): Type macro added.
38352         (TYPES_REINTERP_SU): Likewise.
38353         (TYPES_REINTERP_SP): Likewise.
38354         (TYPES_REINTERP_US): Likewise.
38355         (TYPES_REINTERP_PS): Likewise.
38356         (aarch64_fold_builtin): New expression folding added.
38357         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
38358         Declarations removed.
38359         (REINTERP_SS): Declarations added.
38360         (REINTERP_US): Likewise.
38361         (REINTERP_PS): Likewise.
38362         (REINTERP_SU): Likewise.
38363         (REINTERP_SP): Likewise.
38364         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
38365         (vreinterpretq_p8_f64): Likewise.
38366         (vreinterpret_p16_f64): Likewise.
38367         (vreinterpretq_p16_f64): Likewise.
38368         (vreinterpret_f32_f64): Likewise.
38369         (vreinterpretq_f32_f64): Likewise.
38370         (vreinterpret_f64_f32): Likewise.
38371         (vreinterpret_f64_p8): Likewise.
38372         (vreinterpret_f64_p16): Likewise.
38373         (vreinterpret_f64_s8): Likewise.
38374         (vreinterpret_f64_s16): Likewise.
38375         (vreinterpret_f64_s32): Likewise.
38376         (vreinterpret_f64_s64): Likewise.
38377         (vreinterpret_f64_u8): Likewise.
38378         (vreinterpret_f64_u16): Likewise.
38379         (vreinterpret_f64_u32): Likewise.
38380         (vreinterpret_f64_u64): Likewise.
38381         (vreinterpretq_f64_f32): Likewise.
38382         (vreinterpretq_f64_p8): Likewise.
38383         (vreinterpretq_f64_p16): Likewise.
38384         (vreinterpretq_f64_s8): Likewise.
38385         (vreinterpretq_f64_s16): Likewise.
38386         (vreinterpretq_f64_s32): Likewise.
38387         (vreinterpretq_f64_s64): Likewise.
38388         (vreinterpretq_f64_u8): Likewise.
38389         (vreinterpretq_f64_u16): Likewise.
38390         (vreinterpretq_f64_u32): Likewise.
38391         (vreinterpretq_f64_u64): Likewise.
38392         (vreinterpret_s64_f64): Likewise.
38393         (vreinterpretq_s64_f64): Likewise.
38394         (vreinterpret_u64_f64): Likewise.
38395         (vreinterpretq_u64_f64): Likewise.
38396         (vreinterpret_s8_f64): Likewise.
38397         (vreinterpretq_s8_f64): Likewise.
38398         (vreinterpret_s16_f64): Likewise.
38399         (vreinterpretq_s16_f64): Likewise.
38400         (vreinterpret_s32_f64): Likewise.
38401         (vreinterpretq_s32_f64): Likewise.
38402         (vreinterpret_u8_f64): Likewise.
38403         (vreinterpretq_u8_f64): Likewise.
38404         (vreinterpret_u16_f64): Likewise.
38405         (vreinterpretq_u16_f64): Likewise.
38406         (vreinterpret_u32_f64): Likewise.
38407         (vreinterpretq_u32_f64): Likewise.
38409 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
38411         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38412         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
38413         (vreinterpret_p8_s8): Likewise.
38414         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
38415         (vreinterpret_p8_s16): Likewise.
38416         (vreinterpret_p8_s32): Likewise.
38417         (vreinterpret_p8_s64): Likewise.
38418         (vreinterpret_p8_f32): Likewise.
38419         (vreinterpret_p8_u8): Likewise.
38420         (vreinterpret_p8_u16): Likewise.
38421         (vreinterpret_p8_u32): Likewise.
38422         (vreinterpret_p8_u64): Likewise.
38423         (vreinterpret_p8_p16): Likewise.
38424         (vreinterpretq_p8_s8): Likewise.
38425         (vreinterpretq_p8_s16): Likewise.
38426         (vreinterpretq_p8_s32): Likewise.
38427         (vreinterpretq_p8_s64): Likewise.
38428         (vreinterpretq_p8_f32): Likewise.
38429         (vreinterpretq_p8_u8): Likewise.
38430         (vreinterpretq_p8_u16): Likewise.
38431         (vreinterpretq_p8_u32): Likewise.
38432         (vreinterpretq_p8_u64): Likewise.
38433         (vreinterpretq_p8_p16): Likewise.
38434         (vreinterpret_p16_s8): Likewise.
38435         (vreinterpret_p16_s16): Likewise.
38436         (vreinterpret_p16_s32): Likewise.
38437         (vreinterpret_p16_s64): Likewise.
38438         (vreinterpret_p16_f32): Likewise.
38439         (vreinterpret_p16_u8): Likewise.
38440         (vreinterpret_p16_u16): Likewise.
38441         (vreinterpret_p16_u32): Likewise.
38442         (vreinterpret_p16_u64): Likewise.
38443         (vreinterpret_p16_p8): Likewise.
38444         (vreinterpretq_p16_s8): Likewise.
38445         (vreinterpretq_p16_s16): Likewise.
38446         (vreinterpretq_p16_s32): Likewise.
38447         (vreinterpretq_p16_s64): Likewise.
38448         (vreinterpretq_p16_f32): Likewise.
38449         (vreinterpretq_p16_u8): Likewise.
38450         (vreinterpretq_p16_u16): Likewise.
38451         (vreinterpretq_p16_u32): Likewise.
38452         (vreinterpretq_p16_u64): Likewise.
38453         (vreinterpretq_p16_p8): Likewise.
38454         (vreinterpret_f32_s8): Likewise.
38455         (vreinterpret_f32_s16): Likewise.
38456         (vreinterpret_f32_s32): Likewise.
38457         (vreinterpret_f32_s64): Likewise.
38458         (vreinterpret_f32_u8): Likewise.
38459         (vreinterpret_f32_u16): Likewise.
38460         (vreinterpret_f32_u32): Likewise.
38461         (vreinterpret_f32_u64): Likewise.
38462         (vreinterpret_f32_p8): Likewise.
38463         (vreinterpret_f32_p16): Likewise.
38464         (vreinterpretq_f32_s8): Likewise.
38465         (vreinterpretq_f32_s16): Likewise.
38466         (vreinterpretq_f32_s32): Likewise.
38467         (vreinterpretq_f32_s64): Likewise.
38468         (vreinterpretq_f32_u8): Likewise.
38469         (vreinterpretq_f32_u16): Likewise.
38470         (vreinterpretq_f32_u32): Likewise.
38471         (vreinterpretq_f32_u64): Likewise.
38472         (vreinterpretq_f32_p8): Likewise.
38473         (vreinterpretq_f32_p16): Likewise.
38474         (vreinterpret_s64_s8): Likewise.
38475         (vreinterpret_s64_s16): Likewise.
38476         (vreinterpret_s64_s32): Likewise.
38477         (vreinterpret_s64_f32): Likewise.
38478         (vreinterpret_s64_u8): Likewise.
38479         (vreinterpret_s64_u16): Likewise.
38480         (vreinterpret_s64_u32): Likewise.
38481         (vreinterpret_s64_u64): Likewise.
38482         (vreinterpret_s64_p8): Likewise.
38483         (vreinterpret_s64_p16): Likewise.
38484         (vreinterpretq_s64_s8): Likewise.
38485         (vreinterpretq_s64_s16): Likewise.
38486         (vreinterpretq_s64_s32): Likewise.
38487         (vreinterpretq_s64_f32): Likewise.
38488         (vreinterpretq_s64_u8): Likewise.
38489         (vreinterpretq_s64_u16): Likewise.
38490         (vreinterpretq_s64_u32): Likewise.
38491         (vreinterpretq_s64_u64): Likewise.
38492         (vreinterpretq_s64_p8): Likewise.
38493         (vreinterpretq_s64_p16): Likewise.
38494         (vreinterpret_u64_s8): Likewise.
38495         (vreinterpret_u64_s16): Likewise.
38496         (vreinterpret_u64_s32): Likewise.
38497         (vreinterpret_u64_s64): Likewise.
38498         (vreinterpret_u64_f32): Likewise.
38499         (vreinterpret_u64_u8): Likewise.
38500         (vreinterpret_u64_u16): Likewise.
38501         (vreinterpret_u64_u32): Likewise.
38502         (vreinterpret_u64_p8): Likewise.
38503         (vreinterpret_u64_p16): Likewise.
38504         (vreinterpretq_u64_s8): Likewise.
38505         (vreinterpretq_u64_s16): Likewise.
38506         (vreinterpretq_u64_s32): Likewise.
38507         (vreinterpretq_u64_s64): Likewise.
38508         (vreinterpretq_u64_f32): Likewise.
38509         (vreinterpretq_u64_u8): Likewise.
38510         (vreinterpretq_u64_u16): Likewise.
38511         (vreinterpretq_u64_u32): Likewise.
38512         (vreinterpretq_u64_p8): Likewise.
38513         (vreinterpretq_u64_p16): Likewise.
38514         (vreinterpret_s8_s16): Likewise.
38515         (vreinterpret_s8_s32): Likewise.
38516         (vreinterpret_s8_s64): Likewise.
38517         (vreinterpret_s8_f32): Likewise.
38518         (vreinterpret_s8_u8): Likewise.
38519         (vreinterpret_s8_u16): Likewise.
38520         (vreinterpret_s8_u32): Likewise.
38521         (vreinterpret_s8_u64): Likewise.
38522         (vreinterpret_s8_p8): Likewise.
38523         (vreinterpret_s8_p16): Likewise.
38524         (vreinterpretq_s8_s16): Likewise.
38525         (vreinterpretq_s8_s32): Likewise.
38526         (vreinterpretq_s8_s64): Likewise.
38527         (vreinterpretq_s8_f32): Likewise.
38528         (vreinterpretq_s8_u8): Likewise.
38529         (vreinterpretq_s8_u16): Likewise.
38530         (vreinterpretq_s8_u32): Likewise.
38531         (vreinterpretq_s8_u64): Likewise.
38532         (vreinterpretq_s8_p8): Likewise.
38533         (vreinterpretq_s8_p16): Likewise.
38534         (vreinterpret_s16_s8): Likewise.
38535         (vreinterpret_s16_s32): Likewise.
38536         (vreinterpret_s16_s64): Likewise.
38537         (vreinterpret_s16_f32): Likewise.
38538         (vreinterpret_s16_u8): Likewise.
38539         (vreinterpret_s16_u16): Likewise.
38540         (vreinterpret_s16_u32): Likewise.
38541         (vreinterpret_s16_u64): Likewise.
38542         (vreinterpret_s16_p8): Likewise.
38543         (vreinterpret_s16_p16): Likewise.
38544         (vreinterpretq_s16_s8): Likewise.
38545         (vreinterpretq_s16_s32): Likewise.
38546         (vreinterpretq_s16_s64): Likewise.
38547         (vreinterpretq_s16_f32): Likewise.
38548         (vreinterpretq_s16_u8): Likewise.
38549         (vreinterpretq_s16_u16): Likewise.
38550         (vreinterpretq_s16_u32): Likewise.
38551         (vreinterpretq_s16_u64): Likewise.
38552         (vreinterpretq_s16_p8): Likewise.
38553         (vreinterpretq_s16_p16): Likewise.
38554         (vreinterpret_s32_s8): Likewise.
38555         (vreinterpret_s32_s16): Likewise.
38556         (vreinterpret_s32_s64): Likewise.
38557         (vreinterpret_s32_f32): Likewise.
38558         (vreinterpret_s32_u8): Likewise.
38559         (vreinterpret_s32_u16): Likewise.
38560         (vreinterpret_s32_u32): Likewise.
38561         (vreinterpret_s32_u64): Likewise.
38562         (vreinterpret_s32_p8): Likewise.
38563         (vreinterpret_s32_p16): Likewise.
38564         (vreinterpretq_s32_s8): Likewise.
38565         (vreinterpretq_s32_s16): Likewise.
38566         (vreinterpretq_s32_s64): Likewise.
38567         (vreinterpretq_s32_f32): Likewise.
38568         (vreinterpretq_s32_u8): Likewise.
38569         (vreinterpretq_s32_u16): Likewise.
38570         (vreinterpretq_s32_u32): Likewise.
38571         (vreinterpretq_s32_u64): Likewise.
38572         (vreinterpretq_s32_p8): Likewise.
38573         (vreinterpretq_s32_p16): Likewise.
38574         (vreinterpret_u8_s8): Likewise.
38575         (vreinterpret_u8_s16): Likewise.
38576         (vreinterpret_u8_s32): Likewise.
38577         (vreinterpret_u8_s64): Likewise.
38578         (vreinterpret_u8_f32): Likewise.
38579         (vreinterpret_u8_u16): Likewise.
38580         (vreinterpret_u8_u32): Likewise.
38581         (vreinterpret_u8_u64): Likewise.
38582         (vreinterpret_u8_p8): Likewise.
38583         (vreinterpret_u8_p16): Likewise.
38584         (vreinterpretq_u8_s8): Likewise.
38585         (vreinterpretq_u8_s16): Likewise.
38586         (vreinterpretq_u8_s32): Likewise.
38587         (vreinterpretq_u8_s64): Likewise.
38588         (vreinterpretq_u8_f32): Likewise.
38589         (vreinterpretq_u8_u16): Likewise.
38590         (vreinterpretq_u8_u32): Likewise.
38591         (vreinterpretq_u8_u64): Likewise.
38592         (vreinterpretq_u8_p8): Likewise.
38593         (vreinterpretq_u8_p16): Likewise.
38594         (vreinterpret_u16_s8): Likewise.
38595         (vreinterpret_u16_s16): Likewise.
38596         (vreinterpret_u16_s32): Likewise.
38597         (vreinterpret_u16_s64): Likewise.
38598         (vreinterpret_u16_f32): Likewise.
38599         (vreinterpret_u16_u8): Likewise.
38600         (vreinterpret_u16_u32): Likewise.
38601         (vreinterpret_u16_u64): Likewise.
38602         (vreinterpret_u16_p8): Likewise.
38603         (vreinterpret_u16_p16): Likewise.
38604         (vreinterpretq_u16_s8): Likewise.
38605         (vreinterpretq_u16_s16): Likewise.
38606         (vreinterpretq_u16_s32): Likewise.
38607         (vreinterpretq_u16_s64): Likewise.
38608         (vreinterpretq_u16_f32): Likewise.
38609         (vreinterpretq_u16_u8): Likewise.
38610         (vreinterpretq_u16_u32): Likewise.
38611         (vreinterpretq_u16_u64): Likewise.
38612         (vreinterpretq_u16_p8): Likewise.
38613         (vreinterpretq_u16_p16): Likewise.
38614         (vreinterpret_u32_s8): Likewise.
38615         (vreinterpret_u32_s16): Likewise.
38616         (vreinterpret_u32_s32): Likewise.
38617         (vreinterpret_u32_s64): Likewise.
38618         (vreinterpret_u32_f32): Likewise.
38619         (vreinterpret_u32_u8): Likewise.
38620         (vreinterpret_u32_u16): Likewise.
38621         (vreinterpret_u32_u64): Likewise.
38622         (vreinterpret_u32_p8): Likewise.
38623         (vreinterpret_u32_p16): Likewise.
38624         (vreinterpretq_u32_s8): Likewise.
38625         (vreinterpretq_u32_s16): Likewise.
38626         (vreinterpretq_u32_s32): Likewise.
38627         (vreinterpretq_u32_s64): Likewise.
38628         (vreinterpretq_u32_f32): Likewise.
38629         (vreinterpretq_u32_u8): Likewise.
38630         (vreinterpretq_u32_u16): Likewise.
38631         (vreinterpretq_u32_u64): Likewise.
38632         (vreinterpretq_u32_p8): Likewise.
38633         (vreinterpretq_u32_p16): Likewise.
38635 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
38637         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
38638         Pattern extended.
38639         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
38640         (sqabs): Likewise.
38641         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
38642         (vqnegd_s64): Likewise.
38643         (vqabs_s64): Likewise.
38644         (vqabsd_s64): Likewise.
38646 2014-04-22  Richard Henderson  <rth@redhat.com>
38648         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
38649         computation to the top of the loop.
38651 2014-04-22  Renlin  <renlin.li@arm.com>
38652             Jiong Wang  <jiong.wang@arm.com>
38654         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
38655         * config/aarch64/aarch64.c (aarch64_layout_frame)
38656         (aarch64_initial_elimination_offset): Likewise.
38658 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38660         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
38661         Fix indentation.
38663 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
38665         * machmode.h (bitwise_mode_for_mode): Declare.
38666         * stor-layout.h (bitwise_type_for_mode): Likewise.
38667         * stor-layout.c (bitwise_mode_for_mode): New function.
38668         (bitwise_type_for_mode): Likewise.
38669         * builtins.c (fold_builtin_memory_op): Use it instead of
38670         int_mode_for_mode and build_nonstandard_integer_type.
38672 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38674         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
38675         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
38676         (*-*-solaris2*): Simplify.
38677         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
38678         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
38679         *-*-solaris2.9* handling.
38681         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
38682         as bug.
38683         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
38684         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
38685         handling, simplify.
38686         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
38687         * configure: Regenerate.
38689         * config/i386/sol2-9.h: Remove.
38691         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
38692         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
38693         Remove Solaris 9 references.
38695 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
38697         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
38698         (floatuns<GPI:mode><GPF:mode>2): Remove.
38699         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
38700         and floatuns conversions.
38701         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
38702         and floatuns conversions.
38703         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
38704         (w1,w2): New mode attributes for inequal width conversions.
38706 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
38708         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
38709         the output asm format.
38711 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
38713         * config/aarch64/aarch64-simd.md
38714         (aarch64_cm<optab>di): Always split.
38715         (*aarch64_cm<optab>di): New.
38716         (aarch64_cmtstdi): Always split.
38717         (*aarch64_cmtstdi): New.
38719 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
38721         PR tree-optimization/60823
38722         * omp-low.c (ipa_simd_modify_function_body): Go through
38723         all SSA_NAMEs and for those refering to vector arguments
38724         which are going to be replaced adjust SSA_NAME_VAR and,
38725         if it is a default definition, change it into a non-default
38726         definition assigned at the beginning of function from new_decl.
38727         (ipa_simd_modify_stmt_ops): Rewritten.
38728         * tree-dfa.c (set_ssa_default_def): When removing default def,
38729         check for NULL loc instead of NULL *loc.
38731 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38733         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
38734         restrictions on core registers for DImode values in Thumb2.
38736 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
38738         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
38739         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
38741 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
38743         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
38744         (*iordi_notzesidi_di): Likewise.
38745         (*iordi_notsesidi_di): Likewise.
38747 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
38749         * config/arm/arm-protos.h (tune_params): New struct members.
38750         * config/arm/arm.c: Initialise tune_params per processor.
38751         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
38752         for speed, based on new tune_params.
38754 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
38756         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
38757         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
38758         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
38759         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
38760         * config/aarch64/arm_neon.h (vrnd_f64): Added.
38761         (vrnda_f64): Likewise.
38762         (vrndi_f64): Likewise.
38763         (vrndm_f64): Likewise.
38764         (vrndn_f64): Likewise.
38765         (vrndp_f64): Likewise.
38766         (vrndx_f64): Likewise.
38768 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
38770         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
38771         GET_MODE_SIZE argument is enum machine_mode.
38773 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
38775         PR target/60910
38776         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
38777         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
38779 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
38781         PR middle-end/60281
38782         * asan.c (asan_emit_stack_protection): Force the base to align to
38783         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
38784         appropriate bits if STRICT_ALIGNMENT.
38785         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
38786         when asan is on.
38787         (expand_used_vars): Leave a space in the stack frame for alignment
38788         if STRICT_ALIGNMENT.
38790 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
38792         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
38793         than a gimple.
38794         (gimple_store_p): Likewise.
38795         (gimple_assign_load_p): Likewise.
38796         (gimple_assign_cast_p): Likewise.
38797         (gimple_clobber_p): Likewise.
38799         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
38800         rather than a gimple.
38801         (gimple_assign_cast_p): Likewise.
38803 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
38805         PR target/60735
38806         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
38807         If mode is DDmode and TARGET_E500_DOUBLE allow move.
38809         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
38810         more debug information for E500 if -mdebug=reg.
38812 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
38814         PR target/60909
38815         * config/i386/i386.c (ix86_expand_builtin)
38816         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
38817         register for target RTX.
38818         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
38820 2014-04-18  Cong Hou  <congh@google.com>
38822         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
38823         the widen-mult pattern by handling two operands with different sizes,
38824         and operands whose size is smaller than half of the result type.
38826 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
38828         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
38829         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
38830         (do_estimate_edge_time): Compute it.
38831         * ipa-inline.c (want_inline_small_function_p): Bypass
38832         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
38834 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
38836         * ipa-inline.c (spec_rem): New static variable.
38837         (dump_overall_stats): New function.
38838         (dump_inline_stats): New function.
38840 2014-04-18  Richard Henderson  <rth@redhat.com>
38842         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
38843         to GET_MODE_SIZE, not a reg_class_t.
38845 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38847         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
38848         (vsx_xxmrglw_<mode>): Likewise.
38850 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
38852         PR target/60876
38853         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
38854         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
38855         (rs6000_init_hard_regno_mode_ok): Likewise.
38857 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
38859         * ipa-inline.c (inline_small_functions): Account only non-cold
38860         functions.
38861         * doc/invoke.texi (inline-unit-growth): Update documentation.
38863 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
38865         * config/rs6000/rs6000.md (addti3, subti3): New.
38867 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
38869         PR target/60863
38870         * config/i386/i386.c (ix86_expand_clear): Remove outdated
38871         comment.  Check optimize_insn_for_size_p instead of
38872         optimize_insn_for_speed_p.
38874 2014-04-17  Martin Jambor  <mjambor@suse.cz>
38876         * gimple-iterator.c (gsi_start_edge): New function.
38877         * gimple-iterator.h (gsi_start_edge): Declare.
38878         * tree-sra.c (single_non_eh_succ): New function.
38879         (disqualify_ops_if_throwing_stmt): Renamed to
38880         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
38881         having one non-EH successor BB.
38882         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
38883         generate loads into replacements.
38884         (sra_modify_assign): Likewise and and also use the simple path for
38885         such statements.
38886         (sra_modify_function_body): Commit statements on edges.
38888 2014-04-17  Richard Biener  <rguenther@suse.de>
38890         PR middle-end/60849
38891         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
38892         comparison results and add clarifying comment.
38894 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
38896         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
38897         (blank_mode): Initialize it.
38898         (emit_mode_size_inline, emit_mode_nunits_inline,
38899         emit_mode_inner_inline): New functions.
38900         (emit_insn_modes_h): Call them and surround their output with
38901         #if GCC_VERSION >= 4001 ... #endif.
38902         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
38903         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
38904         mode_* arrays if the argument is __builtin_constant_p.
38905         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
38906         is enum machine_mode.
38908 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
38910         * passes.c (opt_pass::execute): Adjust.
38911         (pass_manager::execute_pass_mode_switching): Likewise.
38912         (early_local_passes::execute): Likewise.
38913         (execute_one_pass): Pass cfun to the pass's execute method.
38914         * tree-pass.h (opt_pass::execute): Add function * argument.
38915         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
38916         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
38917         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
38918         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
38919         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
38920         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
38921         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
38922         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
38923         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
38924         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
38925         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
38926         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
38927         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
38928         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
38929         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
38930         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
38931         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
38932         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
38933         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
38934         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
38935         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
38936         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
38937         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
38938         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
38939         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
38940         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
38941         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
38942         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
38943         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
38944         Adjust.
38946 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
38948         * passes.c (opt_pass::gate): Take function * argument.
38949         (gate_all_early_local_passes): Merge into
38950         (early_local_passes::gate): this.
38951         (gate_all_early_optimizations): Merge into
38952         (all_early_optimizations::gate): this.
38953         (gate_all_optimizations): Mege into
38954         (all_optimizations::gate): this.
38955         (gate_all_optimizations_g): Merge into
38956         (all_optimizations_g::gate): this.
38957         (gate_rest_of_compilation): Mege into
38958         (rest_of_compilation::gate): this.
38959         (gate_postreload): Merge into
38960         (postreload::gate): this.
38961         (dump_one_pass): Pass cfun to the pass's gate method.
38962         (execute_ipa_summary_passes): Likewise.
38963         (execute_one_pass): Likewise.
38964         (ipa_write_summaries_2): Likewise.
38965         (ipa_write_optimization_summaries_1): Likewise.
38966         (ipa_read_summaries_1): Likewise.
38967         (ipa_read_optimization_summaries_1): Likewise.
38968         (execute_ipa_stmt_fixups): Likewise.
38969         * tree-pass.h (opt_pass::gate): Add function * argument.
38970         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
38971         combine-stack-adj.c, combine.c, compare-elim.c,
38972         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
38973         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
38974         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
38975         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
38976         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
38977         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
38978         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
38979         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
38980         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
38981         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
38982         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
38983         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
38984         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
38985         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
38986         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
38987         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
38988         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
38989         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
38990         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
38991         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
38992         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
38993         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
38994         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
38995         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
38996         var-tracking.c, vtable-verify.c, web.c: Adjust.
38998 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39000         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
39001         * configure: Regenerate.
39003 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39005         * passes.c (dump_one_pass): don't check pass->has_gate.
39006         (execute_ipa_summary_passes): Likewise.
39007         (execute_one_pass): Likewise.
39008         (ipa_write_summaries_2): Likewise.
39009         (ipa_write_optimization_summaries_1): Likewise.
39010         (ipa_read_optimization_summaries_1): Likewise.
39011         (execute_ipa_stmt_fixups): Likewise.
39012         * tree-pass.h (pass_data::has_gate): Remove.
39013         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39014         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39015         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39016         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39017         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39018         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
39019         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
39020         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
39021         gimple-low.c, gimple-ssa-isolate-paths.c,
39022         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
39023         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
39024         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39025         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
39026         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
39027         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
39028         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
39029         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
39030         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
39031         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39032         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39033         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39034         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39035         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39036         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39037         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39038         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39039         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39040         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39041         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39042         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39043         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39044         Adjust.
39046 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39048         * pass_manager.h (pass_manager::register_dump_files_1): Remove
39049         declaration.
39050         * passes.c (pass_manager::register_dump_files_1): Merge into
39051         (pass_manager::register_dump_files): this, and remove its handling of
39052         properties since the pass always has the properties anyway.
39053         (pass_manager::pass_manager): Adjust.
39055 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39057         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
39058         * passes.c (pass_manager::register_dump_files_1): Remove dead code
39059         dealing with properties.
39060         (pass_manager::register_dump_files): Adjust.
39062 2014-03-20  Mark Wielaard  <mjw@redhat.com>
39064         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
39065         then represent the bound as normal constant value.
39067 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
39069         PR target/60847
39070         Forward port from 4.8 branch
39071         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
39073         * config/i386/bmiintrin.h (_blsi_u32): New.
39074         (_blsi_u64): Ditto.
39075         (_blsr_u32): Ditto.
39076         (_blsr_u64): Ditto.
39077         (_blsmsk_u32): Ditto.
39078         (_blsmsk_u64): Ditto.
39079         (_tzcnt_u32): Ditto.
39080         (_tzcnt_u64): Ditto.
39082 2014-04-17  Kito Cheng  <kito@0xlab.org>
39084         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
39086 2014-04-17  Richard Biener  <rguenther@suse.de>
39088         PR middle-end/60849
39089         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
39090         boolean results for comparisons.
39092 2014-04-17  Richard Biener  <rguenther@suse.de>
39094         PR tree-optimization/60836
39095         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
39096         initial PHI args to be gimple values.
39098 2014-04-17  Richard Biener  <rguenther@suse.de>
39100         PR tree-optimization/60841
39101         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
39102         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
39103         of stmts to SLP build.
39104         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
39105         (vect_analyze_slp): Likewise.
39106         (vect_analyze_slp_instance): Likewise.
39107         (vect_build_slp_tree): Limit overall SLP tree growth.
39108         * tree-vectorizer.h (vect_analyze_data_refs,
39109         vect_analyze_slp): Adjust prototypes.
39111 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
39113         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
39114         Silvermont.
39116 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
39118         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
39119         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
39120         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
39121         for TARGET_SLOW_PSHUFB
39123 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
39125         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
39126         * config/i386/i386.c (intel_cost): Ditto.
39128 2014-04-17  Joey Ye  <joey.ye@arm.com>
39130         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
39132 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
39134         * opts.c (common_handle_option): Disable -fipa-reference coorectly
39135         with -fuse-profile.
39137 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
39139         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
39140         (type_all_derivations_known_p): New predicate.
39141         (type_all_ctors_visible_p): New predicate.
39142         (type_possibly_instantiated_p): New predicate.
39143         (get_odr_type): Compute all_derivations_known.
39144         (dump_odr_type): Dump the flag.
39145         (maybe_record_type): Cleanup.
39146         (record_target_from_binfo): Add bases_to_consider array;
39147         record bases for types w/o instances and skip CXX destructor.
39148         (possible_polymorphic_call_targets_1): Add bases_to_consider
39149         and consider_construction parameters; check if type may have instance.
39150         (get_polymorphic_call_info): Set maybe_in_construction to true
39151         when we know nothing.
39152         (record_targets_from_bases): Skip CXX destructors; they are
39153         never called for types in construction.
39154         (possible_polymorphic_call_targets): Do not record target when
39155         type may not have instance.
39157 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
39159         PR ipa/60854
39160         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
39161         external aliases alive, too.
39163 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
39165         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
39166         definition.
39168 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
39170         * final.c (compute_alignments): Do not apply loop alignment to a block
39171         falling through to the exit.
39173 2014-04-16  Catherine Moore  <clm@codesourcery.com>
39175         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
39176         Adjust constraints for microMIPS store patterns.
39178 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
39180         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
39182 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
39184         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
39185         (append_use): Run at -O0.
39186         (append_vdef): Likewise.
39187         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
39188         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
39190 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
39192         PR tree-optimization/60844
39193         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
39194         (propagate_op_to_single_use, remove_visited_stmt_chain,
39195         linearize_expr, repropagate_negates, reassociate_bb): Use it
39196         instead of gsi_remove.
39198 2014-04-16  Martin Jambor  <mjambor@suse.cz>
39200         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
39201         ipa_transforms_to_apply.
39202         (cgraph_function_versioning): Assert that old_node has empty
39203         ipa_transforms_to_apply.
39204         * trans-mem.c (ipa_tm_create_version): Likewise.
39205         * tree-inline.c (tree_function_versioning): Do not duplicate
39206         ipa_transforms_to_apply.
39208 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39210         PR target/60817
39211         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
39212         x86_64-*-* cases.
39213         Pass necessary as flags on 64-bit Solaris/x86.
39214         Use lowercase relocs for x86_64-*-*.
39215         * configure: Regenerate.
39217 2014-04-15  Jan Hubicka  <jh@suse.cz>
39219         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
39220         (maybe_record_node, likely_target_p): Use it.
39222 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39224         PR target/60839
39225         Revert following patch
39227         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
39229         PR target/60735
39230         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
39231         software floating point or no floating point registers, do not
39232         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
39233         in GPRs that occurs after we tested for GPRs that would never be
39234         true.
39236         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
39237         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
39238         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
39239         specifically allow DDmode, since that does not use the SPE SIMD
39240         instructions.
39242 2014-03-21  Mark Wielaard  <mjw@redhat.com>
39244         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
39245         as unsigned or int depending on type and value used.
39247 2014-04-15  Richard Biener  <rguenther@suse.de>
39249         PR rtl-optimization/56965
39250         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
39251         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
39252         ... here.
39253         * alias.c (true_dependence_1): Do not call
39254         nonoverlapping_component_refs_p.
39255         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
39256         nonoverlapping_component_refs_p.
39257         (indirect_refs_may_alias_p): Likewise.
39259 2014-04-15  Teresa Johnson  <tejohnson@google.com>
39261         * cfg.c (dump_bb_info): Fix flags check.
39262         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
39264 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39266         PR rtl-optimization/60663
39267         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
39268         avoid 0 cost.
39270 2014-04-15  Richard Biener  <rguenther@suse.de>
39272         * lto-streamer.h (LTO_major_version): Bump to 4.
39274 2014-04-15  Richard Biener  <rguenther@suse.de>
39276         * common.opt (lto_partition_model): New enum.
39277         (flto-partition=): Merge separate options with a single with argument,
39278         add -flto-partition=one support.
39279         * flag-types.h (enum lto_partition_model): Declare.
39280         * opts.c (finish_options): Remove duplicate -flto-partition=
39281         option check.
39282         * lto-wrapper.c (run_gcc): Adjust.
39284 2014-04-15  Richard Biener  <rguenther@suse.de>
39286         * alias.c (ncr_compar): New function.
39287         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
39289 2014-04-15  Richard Biener  <rguenther@suse.de>
39291         * alias.c (record_component_aliases): Do not walk BINFOs.
39293 2014-04-15  Richard Biener  <rguenther@suse.de>
39295         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39296         Add struct function argument and adjust.
39297         (find_func_aliases_for_call): Likewise.
39298         (find_func_aliases): Likewise.
39299         (find_func_clobbers): Likewise.
39300         (intra_create_variable_infos): Likewise.
39301         (compute_points_to_sets): Likewise.
39302         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
39304 2014-04-15  Richard Biener  <rguenther@suse.de>
39306         * tree.c (iterative_hash_expr): Use enum tree_code_class
39307         to store TREE_CODE_CLASS.
39308         (tree_block): Likewise.
39309         (tree_set_block): Likewise.
39310         * tree.h (fold_build_pointer_plus_loc): Use
39311         convert_to_ptrofftype_loc.
39313 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
39315         PR plugins/59335
39316         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
39317         added in 4.9.
39319 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
39321         * cfgloop.h (struct loop): Move force_vectorize down.
39322         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
39323         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
39324         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
39325         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
39326         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
39327         * tree-core.h (enum annot_expr_kind): Add new kind values.
39328         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
39329         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
39330         kinds.
39331         * tree.def (ANNOTATE_EXPR): Tweak comment.
39333 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
39335         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
39336         cxa_pure_virtual).
39338 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
39340         * tree.h (TYPE_IDENTIFIER): Declare.
39341         * tree.c (subrange_type_for_debug_p): Use it.
39342         * godump.c (go_format_type): Likewise.
39343         * dwarf2out.c (is_cxx_auto, modified_type_die,
39344         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
39345         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
39347 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
39349         PR lto/60820
39350         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
39352 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
39354         * config/i386/i386.c (examine_argument): Return bool.  Return true if
39355         parameter should be passed in memory.
39356         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
39357         (construct_container): Update calls to examine_argument.
39358         (function_arg_advance_64): Ditto.
39359         (return_in_memory_32): Merge with ix86_return_in_memory.
39360         (return_in_memory_64): Ditto.
39361         (return_in_memory_ms_64): Ditto.
39363 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
39365         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
39366         * coverage.c (coverage_compute_profile_id): Handle externally visible
39367         symbols.
39369 2014-04-14  Martin Jambor  <mjambor@suse.cz>
39371         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
39372         DECL_DISREGARD_INLINE_LIMITS functions.
39374 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
39376         PR target/60827
39377         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
39379 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
39381         PR target/60827
39382         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
39383         optimize_insn_for_speed_p instead of
39384         optimize_function_for_speed_p.
39386 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
39388         * doc/invoke.texi (free): Document AArch64.
39390 2014-04-14  Richard Biener  <rguenther@suse.de>
39392         PR tree-optimization/60042
39393         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
39394         (insert_into_preds_of_block): Do not prevent PHI insertion
39395         for REFERENCE exprs here ...
39396         (eliminate_dom_walker::before_dom_children): ... but prevent
39397         their use here under similar conditions when applied to the
39398         IL after PRE optimizations.
39400 2014-04-14  Richard Biener  <rguenther@suse.de>
39402         * passes.def: Move early points-to after early SRA.
39404 2014-04-14  Richard Biener  <rguenther@suse.de>
39406         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
39407         check for which sign-changes we allow when forwarding
39408         a converted value into a switch.
39410 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
39412         * stor-layout.c (place_field): Finalize non-constant offset for the
39413         field, if any.
39415 2014-04-14  Richard Biener  <rguenther@suse.de>
39417         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
39418         as argument.
39419         (expand_switch_using_bit_tests_p): Likewise.
39420         (process_switch): Compute and pass on speed_p based on the
39421         switch stmt.
39422         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
39423         optimize_bb_for_speed_p.
39425 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
39427         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
39428         * function.h (struct function): Rename has_force_vect_loops into
39429         has_force_vectorize_loops.
39430         * lto-streamer-in.c (input_cfg): Adjust for renaming.
39431         (input_struct_function_base): Likewise.
39432         * lto-streamer-out.c (output_cfg): Likewise.
39433         (output_struct_function_base): Likewise.
39434         * omp-low.c (expand_omp_simd): Likewise.
39435         * tree-cfg.c (move_sese_region_to_fn): Likewise.
39436         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
39437         (version_loop_for_if_conversion): Likewise.
39438         (tree_if_conversion): Likewise.
39439         (main_tree_if_conversion): Likewise.
39440         (gate_tree_if_conversion): Likewise.
39441         * tree-inline.c (copy_loops): Likewise.
39442         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
39443         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
39444         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
39445         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
39446         * tree-vectorizer.c (vectorize_loops): Likewise.
39447         * tree-vectorizer.h (unlimited_cost_model): Likewise.
39449 2014-04-14  Richard Biener  <rguenther@suse.de>
39451         PR lto/60720
39452         * lto-streamer-out.c (wrap_refs): New function.
39453         (lto_output): Wrap symbol references in global initializes in
39454         type-preserving MEM_REFs.
39456 2014-04-14  Christian Bruel  <christian.bruel@st.com>
39458         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
39460 2014-04-14  Christian Bruel  <christian.bruel@st.com>
39462         * config/sh/sh.md (setmemqi): New expand pattern.
39463         * config/sh/sh.h (CLEAR_RATIO): Define.
39464         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
39465         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
39467 2014-04-14  Richard Biener  <rguenther@suse.de>
39469         PR middle-end/55022
39470         * fold-const.c (negate_expr_p): Don't negate directional rounding
39471         division.
39472         (fold_negate_expr): Likewise.
39474 2014-04-14  Richard Biener  <rguenther@suse.de>
39476         PR tree-optimization/59817
39477         PR tree-optimization/60453
39478         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
39479         recursion to catch all CHRECs in the scalar evolution and restrict
39480         the predicate for the remains appropriately.
39482 2014-04-12  Catherine Moore  <clm@codesourcery.com>
39484         * config/mips/constraints.md: Add new register constraint "kb".
39485         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
39486         (*movhi_internal): Likewise.
39487         (*movqi_internal): Likewise.
39488         * config/mips/mips.h (M16_STORE_REGS): New register class.
39489         (REG_CLASS_NAMES): Add M16_STORE_REGS.
39490         (REG_CLASS_CONTENTS): Likewise.
39491         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
39493 2014-04-11  Tobias Burnus  <burnus@net-b.de>
39495         PR c/60194
39496         * doc/invoke.texi (-Wformat-signedness): Document it.
39497         (Wformat=2): Mention that this enables -Wformat-signedness.
39499 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
39501         * common/config/epiphany/epiphany-common.c
39502         (epiphany_option_optimization_table): Enable section anchors by
39503         default at -O1 or higher.
39504         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
39505         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
39506         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
39507         carries no extra cost.
39508         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
39509         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
39510         * config/epiphany/predicates.md (memclob_operand): New predicate.
39511         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
39512         Use memclob_operand predicate and X constraint for operand 3.
39514 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
39516         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
39517         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
39518         its operands.
39520 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
39522         PR rtl-optimization/60651
39523         * mode-switching.c (optimize_mode_switching): Make sure to emit
39524         sets of a lower numbered entity before sets of a higher numbered
39525         entity to a mode of the same or lower priority.
39526         When creating a seginfo for a basic block that starts with a code
39527         label, move the insertion point past the code label.
39528         (new_seginfo): Document and enforce requirement that
39529         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
39530         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
39531         * doc/tm.texi: Regenerate.
39533 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
39535         PR target/60811
39536         * config/arc/arc.c (arc_save_restore): Fix assert typo.
39538 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
39540         * BASE-VER: Set to 4.10.0.
39542 2014-04-11  Tobias Burnus  <burnus@net-b.de>
39544         PR other/59055
39545         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
39546         * doc/gcc.texi (Service): Update description in the @menu
39547         * doc/invoke.texi (Option Summary): Remove misplaced and
39548         duplicated @menu.
39550 2014-04-11  Steve Ellcey  <sellcey@mips.com>
39551             Jakub Jelinek  <jakub@redhat.com>
39553         PR middle-end/60556
39554         * expr.c (convert_move): Use emit_store_flag_force instead of
39555         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
39556         argument to it.
39558 2014-04-11  Richard Biener  <rguenther@suse.de>
39560         PR middle-end/60797
39561         * varasm.c (assemble_alias): Avoid endless error reporting
39562         recursion by setting TREE_ASM_WRITTEN.
39564 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39566         * config/s390/s390.md: Add a splitter for NOT rtx.
39568 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
39570         PR rtl-optimization/60663
39571         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
39573 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
39574             Jakub Jelinek  <jakub@redhat.com>
39576         PR lto/60567
39577         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
39578         flag from decl_node to node.
39580 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39582         PR debug/60655
39583         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
39584         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
39585         ameliorating the cases where it can be.
39587 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
39589         Revert
39590         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
39592         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
39593         (loadsync_<mode>): Change mode.
39594         (load_quadpti, store_quadpti): New.
39595         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
39596         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
39597         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
39599 2014-04-09  Cong Hou  <congh@google.com>
39601         PR testsuite/60773
39602         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
39603         documentation.
39605 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39607         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
39608         instead of vnor to exploit possible fusion opportunity in the
39609         future.
39610         (altivec_expand_vec_perm_const_le): Likewise.
39612 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
39614         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
39615         (loadsync_<mode>): Change mode.
39616         (load_quadpti, store_quadpti): New.
39617         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
39618         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
39620 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
39622         PR target/60763
39623         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
39624         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
39625         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
39627 2014-04-08  Richard Biener  <rguenther@suse.de>
39629         PR middle-end/60706
39630         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
39631         a 64bit widest int print double-int similar to on HWI64 hosts.
39633 2014-04-08  Richard Biener  <rguenther@suse.de>
39635         PR tree-optimization/60785
39636         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
39637         default defs properly.
39639 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
39641         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
39642         (Weffc++): Likewise.
39644 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
39646         * ipa-devirt.c (maybe_record_node): When node is not recorded,
39647         set completep to false rather than true.
39649 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
39651         PR target/60504
39652         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
39653         ARM_TARGET2_DWARF_FORMAT.
39655 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
39657         PR target/60609
39658         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
39659         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
39660         ADDR_DIFF_VEC.
39662 2014-04-07  Richard Biener  <rguenther@suse.de>
39664         PR tree-optimization/60766
39665         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
39666         (may_eliminate_iv): Convert cand_value_at result to desired type.
39668 2014-04-07  Jason Merrill  <jason@redhat.com>
39670         PR c++/60731
39671         * common.opt (-fno-gnu-unique): Add.
39672         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
39674 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39676         * haifa-sched.c: Fix outdated function reference and minor
39677         grammar errors in introductory comment.
39679 2014-04-07  Richard Biener  <rguenther@suse.de>
39681         PR middle-end/60750
39682         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
39683         for noreturn calls.
39684         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
39686 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
39688         PR debug/55794
39689         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
39690         size accounting for thunks.
39691         (pa_asm_output_mi_thunk): Use final_start_function() and
39692         final_end_function() to output function start and end directives.
39694 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
39696         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
39697         device specific ISA/ feature information. Remove short_sp and
39698         errata_skip ds.  Add avr_device_specific_features enum to have device
39699         specific info.
39700         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
39701         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
39702         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
39703         updated device specific info.
39704         * config/avr/avr-mcus.def: Merge device specific details to
39705         dev_attribute field.
39706         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
39707         errata_skip.
39708         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
39709         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
39710         assembler if RMW isa supported by current device.
39711         * config/avr/genmultilib.awk: Update as device info structure changed.
39712         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
39714 2014-04-04  Cong Hou  <congh@google.com>
39716         PR tree-optimization/60656
39717         * tree-vect-stmts.c (supportable_widening_operation):
39718         Fix a bug that elements in a vector with vect_used_by_reduction
39719         property are incorrectly reordered when the operation on it is not
39720         consistant with the one in reduction operation.
39722 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
39724         PR rtl-optimization/60155
39725         * gcse.c (record_set_data): New function.
39726         (single_set_gcse): New function.
39727         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
39728         (hoist_code): Likewise.
39729         (get_pressure_class_and_nregs): Likewise.
39731 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
39733         * explow.c (probe_stack_range): Emit a final optimization blockage.
39735 2014-04-04  Anthony Green  <green@moxielogic.com>
39737         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
39738         typos.
39740 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
39742         PR ipa/59626
39743         * lto-cgraph.c (input_overwrite_node): Check that partitioning
39744         flags are set only during streaming.
39745         * ipa.c (process_references, walk_polymorphic_call_targets,
39746         symtab_remove_unreachable_nodes): Drop bodies of always inline
39747         after early inlining.
39748         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
39750 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
39751         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39753         PR debug/60655
39754         * dwarf2out.c (const_ok_for_output_1): Reject expressions
39755         containing a NOT.
39757 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39759         PR bootstrap/60743
39760         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
39761         duration.
39762         (cortex_a53_fdivd): Likewise.
39764 2014-04-04  Martin Jambor  <mjambor@suse.cz>
39766         PR ipa/60640
39767         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
39768         Adjust all callers.
39769         * cgraph.c (clone_of_p): Also return true if thunks match.
39770         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
39771         cgraph_function_or_thunk_node and an obsolete comment.
39772         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
39773         file.
39774         (build_function_decl_skip_args): Likewise.
39775         (set_new_clone_decl_and_node_flags): New function.
39776         (duplicate_thunk_for_node): Likewise.
39777         (redirect_edge_duplicating_thunks): Likewise.
39778         (cgraph_clone_node): New parameter args_to_skip, pass it to
39779         redirect_edge_duplicating_thunks which is called instead of
39780         cgraph_redirect_edge_callee.
39781         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
39782         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
39784 2014-04-04  Jeff Law  <law@redhat.com>
39786         PR target/60657
39787         * config/arm/predicates.md (const_int_I_operand): New predicate.
39788         (const_int_M_operand): Similarly.
39789         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
39790         const_int_operand.
39791         (insv_t2, extv_reg, extzv_t2): Likewise.
39792         (load_multiple_with_writeback): Similarly for const_int_I_operand.
39793         (pop_multiple_with_writeback_and_return): Likewise.
39794         (vfp_pop_multiple_with_writeback): Likewise
39796 2014-04-04  Richard Biener  <rguenther@suse.de>
39798         PR ipa/60746
39799         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
39800         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
39801         non-GIMPLE_LABELs.
39802         * gimplify.h (gimple_add_tmp_var_fn): Declare.
39803         * gimplify.c (gimple_add_tmp_var_fn): New function.
39804         * gimple-expr.h (create_tmp_reg_fn): Declare.
39805         * gimple-expr.c (create_tmp_reg_fn): New function.
39806         * gimple-low.c (record_vars_into): Don't change cfun.
39807         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
39808         code generation without cfun.
39810 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
39812         PR bootstrap/60719
39813         * Makefile.in (install-driver): Fix shell scripting.
39815 2014-04-03  Cong Hou  <congh@google.com>
39817         PR tree-optimization/60505
39818         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
39819         threshold of number of iterations below which no vectorization
39820         will be done.
39821         * tree-vect-loop.c (new_loop_vec_info):
39822         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
39823         * tree-vect-loop.c (vect_analyze_loop_operations):
39824         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
39825         * tree-vect-loop.c (vect_transform_loop):
39826         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
39827         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
39828         of iterations of the loop and see if we should build the epilogue.
39830 2014-04-03  Richard Biener  <rguenther@suse.de>
39832         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
39833         (streamer_tree_cache_create): Adjust.
39834         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
39835         to allow optional nodes array.
39836         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
39837         (streamer_tree_cache_append): Likewise.
39838         (streamer_tree_cache_create): Create nodes array optionally
39839         as specified by parameter.
39840         * lto-streamer-out.c (create_output_block): Avoid maintaining
39841         the node array in the writer cache.
39842         (DFS_write_tree): Remove assertion.
39843         (produce_asm_for_decls): Free the out decl state hash table early.
39844         * lto-streamer-in.c (lto_data_in_create): Adjust for
39845         streamer_tree_cache_create prototype change.
39847 2014-04-03  Richard Biener  <rguenther@suse.de>
39849         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
39850         set TREE_CHAIN to NULL_TREE.
39852 2014-04-03  Richard Biener  <rguenther@suse.de>
39854         PR tree-optimization/60740
39855         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
39856         over all GIMPLE_COND operands.
39858 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
39860         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
39861         (Weffc++): Remove Scott's numbering, merge lists and reference
39862         Wnon-virtual-dtor.
39864 2014-04-03  Nick Clifton  <nickc@redhat.com>
39866         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
39867         properly.
39869 2014-04-03  Martin Jambor  <mjambor@suse.cz>
39871         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
39872         mention gcc_unreachable before failing.
39873         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
39874         removed symbols.
39876 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
39878         PR ipa/60659
39879         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
39880         inconsistent code and instead mark the context inconsistent.
39881         (possible_polymorphic_call_targets): For inconsistent contexts
39882         return empty complete list.
39884 2014-04-02  Anthony Green  <green@moxielogic.com>
39886         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
39887         (extendqisi2, extendhisi2): Define.
39888         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
39889         (WCHAR_TYPE): Change to unsigned int.
39891 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39893         PR tree-optimization/60733
39894         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
39895         insertion point for PHI candidates to be the end of the feeding
39896         block for the PHI argument.
39898 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
39900         PR rtl-optimization/60650
39901         * lra-constraints.c (process_alt_operands): Decrease reject for
39902         earlyclobber matching.
39904 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39906         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
39908 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39910         * config/spu/spu.c (pad_bb): Do not crash when the last
39911         insn is CODE_FOR_blockage.
39913 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39915         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
39916         lies outside the target mode.
39918 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
39920         PR target/60735
39921         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
39922         software floating point or no floating point registers, do not
39923         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
39924         in GPRs that occurs after we tested for GPRs that would never be
39925         true.
39927         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
39928         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
39929         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
39930         specifically allow DDmode, since that does not use the SPE SIMD
39931         instructions.
39933 2014-04-02  Richard Biener  <rguenther@suse.de>
39935         PR middle-end/60729
39936         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
39937         MODE_INTs.  Properly use negv_optab.
39938         (expand_abs): Likewise.
39940 2014-04-02  Richard Biener  <rguenther@suse.de>
39942         PR bootstrap/60719
39943         * Makefile.in (install-driver): Guard extra installs with special
39944         names properly.
39946 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
39948         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
39949         Document vec_vgbbd.
39951 2014-04-01  Richard Henderson  <rth@redhat.com>
39953         PR target/60704
39954         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
39955         alternative enabled before register allocation.
39957 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
39959         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
39960         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
39961         typo.
39962         (nios2_large_got_address): Remove unneeded 'sym' parameter.
39963         (nios2_got_address): Update nios2_large_got_address call site.
39964         (nios2_delegitimize_address): New function.
39965         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
39966         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
39967         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
39969 2014-04-01  Martin Husemann  <martin@duskware.de>
39971         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
39972         for -mabi=32.
39974 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
39976         PR rtl-optimization/60604
39977         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
39978         check from register_operand.
39979         (register_operand): Redefine in terms of general_operand.
39980         (nonmemory_operand): Use register_operand for the non-constant cases.
39982 2014-04-01  Richard Biener  <rguenther@suse.de>
39984         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
39986 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39988         * doc/invoke.texi (mapp-regs): Clarify.
39990 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
39992         * config/i386/avx512fintrin.h (__v32hi): Define type.
39993         (__v64qi): Likewise.
39994         (_mm512_set1_epi8): Define.
39995         (_mm512_set1_epi16): Define.
39996         (_mm512_set4_epi32): Define.
39997         (_mm512_set4_epi64): Define.
39998         (_mm512_set4_pd): Define.
39999         (_mm512_set4_ps): Define.
40000         (_mm512_setr4_epi64): Define.
40001         (_mm512_setr4_epi32): Define.
40002         (_mm512_setr4_pd): Define.
40003         (_mm512_setr4_ps): Define.
40004         (_mm512_setzero_epi32): Define.
40006 2014-03-31  Martin Jambor  <mjambor@suse.cz>
40008         PR middle-end/60647
40009         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
40010         callsite_arguments_match_p.  Updated all callers.  Also check types of
40011         corresponding formal parameters and actual arguments.
40012         (not_all_callers_have_enough_arguments_p) Renamed to
40013         some_callers_have_mismatched_arguments_p.
40015 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
40017         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
40019 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
40021         PR target/60034
40022         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
40023         section anchor.
40025 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
40027         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
40028         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
40029         Split out
40030         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
40031         Use FMAMODE_NOVF512 mode iterator.
40032         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
40033         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
40034         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
40035         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
40036         Split out
40037         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
40038         Use VF_128_256 mode iterator.
40039         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
40040         Ditto.
40042 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
40044         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
40045         static chain if needed.
40047 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
40049         PR target/60697
40050         * lra-constraints.c (index_part_to_reg): New.
40051         (process_address): Use it.
40053 2014-03-27  Jeff Law  <law@redhat.com>
40054             Jakub Jelinek  <jakub@redhat.com>
40056         PR target/60648
40057         * expr.c (do_tablejump): Use simplify_gen_binary rather than
40058         gen_rtx_{PLUS,MULT} to build up the address expression.
40060         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
40061         creating non-canonical RTL.
40063 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
40065         PR ipa/60243
40066         * ipa-inline.c (want_inline_small_function_p): Short circuit large
40067         functions; reorganize to make cheap checks first.
40068         (inline_small_functions): Do not estimate growth when dumping;
40069         it is expensive.
40070         * ipa-inline.h (inline_summary): Add min_size.
40071         (growth_likely_positive): New function.
40072         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
40073         (set_cond_stmt_execution_predicate): Cleanup.
40074         (estimate_edge_size_and_time): Compute min_size.
40075         (estimate_calls_size_and_time): Likewise.
40076         (estimate_node_size_and_time): Likewise.
40077         (inline_update_overall_summary): Update min_size.
40078         (do_estimate_edge_time): Likewise.
40079         (do_estimate_edge_size): Update.
40080         (do_estimate_edge_hints): Update.
40081         (growth_likely_positive): New function.
40083 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
40085         PR target/60693
40086         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
40087         also if addr has VOIDmode.
40089 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40091         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
40092         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
40093         Declare extern.
40094         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
40095         instructions as well as AdvancedSIMD loads.
40097 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40099         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
40100         Use crypto_aese type.
40101         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
40102         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
40103         crypto_aese, crypto_aesmc.  Move to types.md.
40104         * config/arm/types.md (crypto_aes): Split into crypto_aese,
40105         crypto_aesmc.
40106         * config/arm/iterators.md (crypto_type): Likewise.
40108 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
40110         * cgraph.c: Include expr.h and tree-dfa.h.
40111         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
40112         remove LHS.
40114 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
40116         PR target/60675
40117         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
40118         regs from checking multi-reg pseudos.
40120 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40122         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
40124 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40126         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
40127         if it would clobber the stack pointer, even temporarily.
40129 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
40131         * mode-switching.c: Make small adjustments to the top comment.
40133 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
40135         * config/rs6000/constraints.md (wD constraint): New constraint to
40136         match the constant integer to get the top DImode/DFmode out of a
40137         vector in a VSX register.
40139         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
40140         match the constant integer to get the top DImode/DFmode out of a
40141         vector in a VSX register.
40143         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
40144         for ISA 2.07.
40146         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
40147         vbpermq builtins.
40149         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
40150         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
40152         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
40153         Optimize vec_extract of 64-bit values, where the value being
40154         extracted is in the top word, where we can use scalar
40155         instructions.  Add direct move and store support.  Combine the big
40156         endian/little endian vector select load support into a single insn.
40157         (vsx_extract_<mode>_internal1): Likewise.
40158         (vsx_extract_<mode>_internal2): Likewise.
40159         (vsx_extract_<mode>_load): Likewise.
40160         (vsx_extract_<mode>_store): Likewise.
40161         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
40162         combined into vsx_extract_<mode>_load.
40163         (vsx_extract_<mode>_one_le): Likewise.
40165         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
40166         define the top 64-bit vector element.
40168         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
40169         constraint.
40171         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40172         Document vec_vbpermq builtin.
40174         PR target/60672
40175         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
40176         enable use of xxsldwi and xxpermdi builtin functions.
40177         (vec_xxpermdi): Likewise.
40179         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40180         Document use of vec_xxsldwi and vec_xxpermdi builtins.
40182 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
40184         PR rtl-optimization/60650
40185         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
40186         first_p.  Use it.
40187         (find_spills_for): New.
40188         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
40189         Spill all pseudos on the second iteration.
40191 2014-03-27  Marek Polacek  <polacek@redhat.com>
40193         PR c/50347
40194         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
40195         types.
40197 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40199         * config/s390/s390.c (s390_can_use_return_insn): Check for
40200         call-saved FPRs on 31 bit.
40202 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
40204         PR middle-end/60682
40205         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
40206         if they need regimplification, just drop them instead of
40207         calling gimple_regimplify_operands on them.
40209 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40211         PR target/60580
40212         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
40213         (aarch64_frame_pointer_required): Adjust logic.
40214         (aarch64_can_eliminate): Adjust logic.
40215         (aarch64_override_options_after_change): Adjust logic.
40217 2014-03-27  Dehao Chen  <dehao@google.com>
40219         * ipa-inline.c (early_inliner): Update node's inline info.
40221 2014-03-26  Dehao Chen  <dehao@google.com>
40223         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
40224         compiler inserted conditional jumps for NAN float check.
40226 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
40228         * ubsan.h (ubsan_create_data): Change second argument's type
40229         to const location_t *.
40230         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
40231         _("<unknown>").
40232         (ubsan_create_data): Change second argument to const location_t *PLOC.
40233         Create Loc field whenever PLOC is non-NULL.
40234         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
40235         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
40236         callers.
40238         PR other/59545
40239         * real.c (real_to_integer2): Change type of low to UHWI.
40241 2014-03-26  Tobias Burnus  <burnus@net-b.de>
40243         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
40244         (CILK_SELF_SPECS): New define.
40245         (driver_self_specs): Use it.
40247 2014-03-26  Richard Biener  <rguenther@suse.de>
40249         * tree-pretty-print.c (percent_K_format): Implement special
40250         case for LTO and its stripped down BLOCK tree.
40252 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
40254         PR sanitizer/60636
40255         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
40257         * tree-vrp.c (simplify_internal_call_using_ranges): If only
40258         one range is range_int_cst_p, but not both, at least optimize
40259         addition/subtraction of 0 and multiplication by 0 or 1.
40260         * gimple-fold.c (gimple_fold_call): Fold
40261         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
40262         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
40263         INTEGER_CSTs, try to fold at least x * 0 and y - y.
40265 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
40267         PR rtl-optimization/60452
40268         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
40269         <case REG>: Return 1 for invalid offsets from the frame pointer.
40271 2014-03-26  Marek Polacek  <polacek@redhat.com>
40273         PR c/37428
40274         * doc/extend.texi (C Extensions): Mention variable-length arrays in
40275         a structure/union.
40277 2014-03-26  Marek Polacek  <polacek@redhat.com>
40279         PR c/39525
40280         * doc/extend.texi (Designated Inits): Describe what happens to omitted
40281         field members.
40283 2014-03-26  Marek Polacek  <polacek@redhat.com>
40285         PR other/59545
40286         * ira-color.c (update_conflict_hard_regno_costs): Perform the
40287         multiplication in unsigned type.
40289 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
40291         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
40293 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
40295         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
40297 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
40299         PR ipa/60315
40300         * cif-code.def (UNREACHABLE) New code.
40301         * ipa-inline.c (inline_small_functions): Skip edges to
40302         __builtlin_unreachable.
40303         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
40304         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
40305         predicate to __bulitin_unreachable.
40306         (set_cond_stmt_execution_predicate): Fix issue when
40307         invert_tree_comparison returns ERROR_MARK.
40308         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
40309         propagate to inline clones.
40310         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
40311         to unreachable.
40312         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
40313         * cgraphclones.c (cgraph_clone_node): If call destination is already
40314         ureachable, do not redirect it back.
40315         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
40316         unreachable.
40318 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
40320         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
40321         Do not modify inline clones.
40323 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
40325         * config/i386/i386.md (general_sext_operand): New mode attr.
40326         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
40327         don't generate (sign_extend (const_int)).
40328         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
40329         operands[2].  Use We constraint instead of <i> and
40330         <general_sext_operand> predicate instead of <general_operand>.
40331         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
40332         * config/i386/constraints.md (We): New constraint.
40333         * config/i386/predicates.md (x86_64_sext_operand,
40334         sext_operand): New predicates.
40336 2014-03-25  Martin Jambor  <mjambor@suse.cz>
40338         PR ipa/60600
40339         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
40340         inconsistent devirtualizations to __builtin_unreachable.
40342 2014-03-25  Marek Polacek  <polacek@redhat.com>
40344         PR c/35449
40345         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
40347 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
40349         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
40350         order of elements for big-endian.
40352 2014-03-25  Richard Biener  <rguenther@suse.de>
40354         PR middle-end/60635
40355         * gimplify-me.c (gimple_regimplify_operands): Update the
40356         re-gimplifed stmt.
40358 2014-03-25  Martin Jambor  <mjambor@suse.cz>
40360         PR ipa/59176
40361         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
40362         (lto_output_varpool_node): Likewise.
40363         (input_overwrite_node): Likewise.
40364         (input_varpool_node): Likewise.
40366 2014-03-25  Richard Biener  <rguenther@suse.de>
40368         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
40369         (run_gcc): Likewise.
40371 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
40373         * combine.c (simplify_compare_const): Add MODE argument.
40374         Handle mode_width 0 as very large mode_width.
40375         (try_combine, simplify_comparison): Adjust callers.
40377         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
40378         type to avoid signed integer overflow.
40379         * explow.c (plus_constant): Likewise.
40381 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40383         * doc/generic.texi: Correct typos.
40385 2014-03-24  Tobias Burnus  <burnus@net-b.de>
40387         * doc/invoke.texi (-flto): Expand section about
40388         using static libraries with LTO.
40390 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40392         PR rtl-optimization/60501
40393         * optabs.def (addptr3_optab): New optab.
40394         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
40395         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
40396         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
40398         * lra.c (emit_add3_insn): Use the addptr pattern if available.
40400         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
40402 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
40404         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
40405         _mm512_set1_pd.
40407         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
40408         (_mm256_undefined_ps): Define.
40409         (_mm256_undefined_pd): Define.
40410         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
40411         (_mm_undefined_pd): Define.
40412         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
40413         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
40414         (_mm512_undefined_ps): Define.
40415         (_mm512_undefined_pd): Define.
40416         Use _mm*_undefined_*.
40417         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
40419 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
40421         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
40422         (lshr_simd): DI mode added.
40423         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
40424         (aarch64_ushr_simddi): Likewise.
40425         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
40426         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
40427         (vshrd_n_u64): Likewise.
40429 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40431         * Makefile.in (s-macro_list): Depend on cc1.
40433 2014-03-23  Teresa Johnson  <tejohnson@google.com>
40435         * ipa-utils.c (ipa_print_order): Use specified dump file.
40437 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
40439         PR rtl-optimization/60601
40440         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
40442         * gcc.c (eval_spec_function): Initialize save_growing_value.
40444 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
40446         PR sanitizer/60613
40447         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
40448         code == MINUS_EXPR, never swap op0 with op1.
40450         * toplev.c (init_local_tick): Avoid signed integer multiplication
40451         overflow.
40452         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
40453         shift by first operand's bitsize.
40455 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
40457         PR target/60610
40458         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
40459         redefine to 1 or 0.
40460         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
40461         TARGET_ISA_64BIT_P(x).
40463 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40465         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
40466         pattern for vector nor instead of subtract from splat(-1).
40467         (altivec_expand_vec_perm_const_le): Likewise.
40469 2014-03-21  Richard Henderson  <rth@twiddle.net>
40471         PR target/60598
40472         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
40473         related insns after epilogue_completed.
40475 2014-03-21  Martin Jambor  <mjambor@suse.cz>
40477         PR ipa/59176
40478         * cgraph.h (symtab_node): New flag body_removed.
40479         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
40480         when removing bodies.
40481         * symtab.c (dump_symtab_base): Dump body_removed flag.
40482         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
40483         had their bodies removed.
40485 2014-03-21  Martin Jambor  <mjambor@suse.cz>
40487         PR ipa/60419
40488         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
40489         in the border.
40491 2014-03-21  Richard Biener  <rguenther@suse.de>
40493         PR tree-optimization/60577
40494         * tree-core.h (struct tree_base): Document nothrow_flag use
40495         in DECL_NONALIASED.
40496         * tree.h (DECL_NONALIASED): New.
40497         (may_be_aliased): Adjust.
40498         * coverage.c (build_var): Set DECL_NONALIASED.
40500 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
40502         * expr.c (expand_expr_real_1): Remove outdated comment.
40504 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
40506         PR middle-end/60597
40507         * ira.c (adjust_cleared_regs): Call copy_rtx on
40508         *reg_equiv[REGNO (loc)].src_p before passing it to
40509         simplify_replace_fn_rtx.
40511         PR target/60568
40512         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
40513         into CONST, put pic register as first operand of PLUS.  Use
40514         gen_const_mem for both 32-bit and 64-bit PIC got loads.
40516 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40518         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
40520 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
40522         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
40523         around for store forwarding issue in the FPU on the UT699.
40524         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
40525         loads and operations if -mfix-ut699 is specified.
40526         (divtf3_hq): Tweak attribute.
40527         (sqrttf2_hq): Likewise.
40529 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
40531         * calls.c (store_one_arg): Remove incorrect const qualification on the
40532         type of the temporary.
40533         * cfgexpand.c (expand_return): Likewise.
40534         * expr.c (expand_constructor): Likewise.
40535         (expand_expr_real_1): Likewise.
40537 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
40539         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
40540         of parts.
40542 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
40544         PR target/60039
40545         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
40547 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
40549         * config/arm/aarch-common-protos.h
40550         (alu_cost_table): Fix spelling of "extend".
40551         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
40553 2014-03-19  Richard Biener  <rguenther@suse.de>
40555         PR middle-end/60553
40556         * tree-core.h (tree_type_common): Re-order pointer members
40557         to reduce recursion depth during GC walks.
40559 2014-03-19  Marek Polacek  <polacek@redhat.com>
40561         PR sanitizer/60569
40562         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
40563         before accessing it.
40565 2014-03-19  Richard Biener  <rguenther@suse.de>
40567         PR lto/59543
40568         * lto-streamer-in.c (input_function): In WPA stage do not drop
40569         debug stmts.
40571 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
40573         PR tree-optimization/60559
40574         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
40575         with build_zero_cst assignment.
40577 2014-03-18  Kai Tietz  <ktietz@redhat.com>
40579         PR rtl-optimization/56356
40580         * sdbout.c (sdbout_parms): Verify that parms'
40581         incoming argument is valid.
40582         (sdbout_reg_parms): Likewise.
40584 2014-03-18  Richard Henderson  <rth@redhat.com>
40586         PR target/60562
40587         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
40588         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
40589         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
40591 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
40593         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
40594         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
40595         Italicize plugin event names in description.  Explain that
40596         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
40597         Remind that no GCC functions should be called after PLUGIN_FINISH.
40598         Explain what pragmas with expansion are.
40600 2014-03-18  Martin Liska  <mliska@suse.cz>
40602         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
40603         gimple call statement is update.
40604         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
40605         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
40607 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
40609         PR sanitizer/60557
40610         * ubsan.c (ubsan_instrument_unreachable): Call
40611         initialize_sanitizer_builtins.
40612         (ubsan_pass): Likewise.
40614         PR sanitizer/60535
40615         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
40616         varpool_finalize_decl instead of rest_of_decl_compilation.
40618 2014-03-18  Richard Biener  <rguenther@suse.de>
40620         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
40621         by using bitmap_and_compl instead of bitmap_and_compl_into.
40622         (df_rd_transfer_function): Likewise.
40624 2014-03-18  Richard Biener  <rguenther@suse.de>
40626         * doc/lto.texi (fresolution): Fix typo.
40628 2014-03-18  Richard Biener  <rguenther@suse.de>
40630         * doc/invoke.texi (flto): Update for changes in 4.9.
40632 2014-03-18  Richard Biener  <rguenther@suse.de>
40634         * doc/loop.texi: Remove section on the removed lambda framework.
40635         Update loop docs with recent changes in preserving loop structure.
40637 2014-03-18  Richard Biener  <rguenther@suse.de>
40639         * doc/lto.texi (-fresolution): Document.
40641 2014-03-18  Richard Biener  <rguenther@suse.de>
40643         * doc/contrib.texi: Adjust my name.
40645 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
40647         PR ipa/58721
40648         * internal-fn.c: Include diagnostic-core.h.
40649         (expand_BUILTIN_EXPECT): New function.
40650         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
40651         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
40652         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
40653         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
40654         IFN_BUILTIN_EXPECT.
40655         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
40656         Revert 3 argument __builtin_expect code.
40657         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
40658         * gimple-fold.c (gimple_fold_call): Likewise.
40659         * tree.h (fold_builtin_expect): New prototype.
40660         * builtins.c (build_builtin_expect_predicate): Add predictor
40661         argument, if non-NULL, create 3 argument __builtin_expect.
40662         (fold_builtin_expect): No longer static.  Add ARG2 argument,
40663         pass it through to build_builtin_expect_predicate.
40664         (fold_builtin_2): Adjust caller.
40665         (fold_builtin_3): Handle BUILT_IN_EXPECT.
40666         * internal-fn.def (BUILTIN_EXPECT): New.
40668 2014-03-18  Tobias Burnus  <burnus@net-b.de>
40670         PR ipa/58721
40671         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
40672         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
40673         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
40675 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
40677         PR ipa/58721
40678         * predict.c (combine_predictions_for_bb): Fix up formatting.
40679         (expr_expected_value_1, expr_expected_value): Add predictor argument,
40680         fill what it points to if non-NULL.
40681         (tree_predict_by_opcode): Adjust caller, use the predictor.
40682         * predict.def (PRED_COMPARE_AND_SWAP): Add.
40684 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
40686         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
40687         proper constant for the store mode.
40689 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
40691         * symtab.c (change_decl_assembler_name): Fix transparent alias
40692         chain construction.
40694 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
40696         * config/aarch64/aarch64.c: Correct the comments about the
40697         aarch64 stack layout.
40699 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
40701         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
40702         check for GF_OMP_FOR_KIND_FOR.
40704 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
40706         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
40707         ymm and zmm register names.
40709 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
40711         PR target/60516
40712         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
40713         note creation for the 2010-08-31 changes.
40715 2014-03-17  Marek Polacek  <polacek@redhat.com>
40717         PR middle-end/60534
40718         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
40719         as -fno-tree-loop-vectorize.
40720         (expand_omp_simd): Likewise.
40722 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
40724         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
40725         (eligible_for_call_delay): New prototype.
40726         * config/sparc/sparc.c (tls_call_delay): Rename into...
40727         (eligible_for_call_delay): ...this.  Return false if the instruction
40728         cannot be put in the delay slot of a branch.
40729         (eligible_for_restore_insn): Simplify.
40730         (eligible_for_return_delay): Return false if the instruction cannot be
40731         put in the delay slot of a branch and simplify.
40732         (eligible_for_sibcall_delay): Return false if the instruction cannot be
40733         put in the delay slot of a branch.
40734         * config/sparc/sparc.md (fix_ut699): New attribute.
40735         (tls_call_delay): Delete.
40736         (in_call_delay): Reimplement.
40737         (eligible_for_sibcall_delay): Rename into...
40738         (in_sibcall_delay): ...this.
40739         (eligible_for_return_delay): Rename into...
40740         (in_return_delay): ...this.
40741         (in_branch_delay): Reimplement.
40742         (in_uncond_branch_delay): Delete.
40743         (in_annul_branch_delay): Delete.
40745 2014-03-14  Richard Henderson  <rth@redhat.com>
40747         PR target/60525
40748         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
40749         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
40750         (*floathi<X87MODEF>2_i387_with_temp): Remove.
40751         (floathi splitters): Remove.
40752         (float<SWI48x>xf2): New pattern.
40753         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
40754         code that tried to handle DImode for 32-bit, but which was excluded
40755         by the pattern's condition.  Drop allocation of stack temporary.
40756         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
40757         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
40758         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
40759         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
40760         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
40761         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
40762         (*float<SWI48><MODEF>2_sse_interunit): Remove.
40763         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
40764         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
40765         (*float<SWI48x><X87MODEF>2_i387): Remove.
40766         (all float _with_temp splitters): Remove.
40767         (*float<SWI48x><MODEF>2_i387): New pattern.
40768         (*float<SWI48><MODEF>2_sse): New pattern.
40769         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
40770         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
40772 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
40773             Marek Polacek  <polacek@redhat.com>
40775         PR middle-end/60484
40776         * common.opt (dump_base_name_prefixed): New Variable.
40777         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
40778         if x_dump_base_name_prefixed is already set, set it at the end.
40780 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
40782         PR rtl-optimization/60508
40783         * lra-constraints.c (get_reload_reg): Add new parameter
40784         in_subreg_p.
40785         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
40786         Pass the new parameter values.
40788 2014-03-14  Richard Biener  <rguenther@suse.de>
40790         * common.opt: Revert unintented changes from r205065.
40791         * opts.c: Likewise.
40793 2014-03-14  Richard Biener  <rguenther@suse.de>
40795         PR middle-end/60518
40796         * cfghooks.c (split_block): Properly adjust all loops the
40797         block was a latch of.
40799 2014-03-14  Martin Jambor  <mjambor@suse.cz>
40801         PR lto/60461
40802         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
40803         and simplify it.
40805 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
40807         PR target/59396
40808         * config/avr/avr.c (avr_set_current_function): Pass function name
40809         through default_strip_name_encoding before sanity checking instead
40810         of skipping the first char of the assembler name.
40812 2014-03-13  Richard Henderson  <rth@redhat.com>
40814         PR debug/60438
40815         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
40816         (ix86_force_to_memory, ix86_free_from_memory): Remove.
40817         * config/i386/i386-protos.h: Likewise.
40818         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
40819         in the expander instead of a splitter.
40820         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
40821         any possibility of requiring a memory.
40822         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
40823         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
40824         (fp branch splitters): Update for ix86_split_fp_branch.
40825         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
40826         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
40827         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
40828         (*fop_<MODEF>_2_i387): Remove f/r alternative.
40829         (*fop_<MODEF>_3_i387): Likewise.
40830         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
40831         (splitters for the fop_* register patterns): Remove.
40832         (fscalexf4_i387): Rename from *fscalexf4_i387.
40833         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
40835 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
40837         PR tree-optimization/59779
40838         * tree-dfa.c (get_ref_base_and_extent): Use double_int
40839         type for bitsize and maxsize instead of HOST_WIDE_INT.
40841 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
40843         PR rtl-optimization/57320
40844         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
40845         the CFG after thread_prologue_and_epilogue_insns.
40847 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
40849         PR rtl-optimization/57189
40850         * lra-constraints.c (process_alt_operands): Disfavor spilling
40851         vector pseudos.
40853 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
40855         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
40857 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
40859         PR tree-optimization/59025
40860         PR middle-end/60418
40861         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
40862         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
40864 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
40866         PR target/60486
40867         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
40868         calls of avr_out_plus_1.
40870 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
40872         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
40873         BB's single pred and update the father loop's latch info later.
40875 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
40877         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
40878         (VEC_M): Likewise.
40879         (VEC_N): Likewise.
40880         (VEC_R): Likewise.
40881         (VEC_base): Likewise.
40882         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
40883         registers, we need to swap double words in little endian mode.
40885         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
40886         to be a container mode for 128-bit integer operations added in ISA
40887         2.07.  Unlike TImode and PTImode, the preferred register set is
40888         the Altivec/VMX registers for the 128-bit operations.
40890         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
40891         declarations.
40892         (rs6000_split_128bit_ok_p): Likewise.
40894         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
40895         macros for creating ISA 2.07 normal and overloaded builtin
40896         functions with 3 arguments.
40897         (BU_P8V_OVERLOAD_3): Likewise.
40898         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
40899         for use as overloaded functions.
40900         (VPERM_1TI_UNS): Likewise.
40901         (VSEL_1TI): Likewise.
40902         (VSEL_1TI_UNS): Likewise.
40903         (ST_INTERNAL_1ti): Likewise.
40904         (LD_INTERNAL_1ti): Likewise.
40905         (XXSEL_1TI): Likewise.
40906         (XXSEL_1TI_UNS): Likewise.
40907         (VPERM_1TI): Likewise.
40908         (VPERM_1TI_UNS): Likewise.
40909         (XXPERMDI_1TI): Likewise.
40910         (SET_1TI): Likewise.
40911         (LXVD2X_V1TI): Likewise.
40912         (STXVD2X_V1TI): Likewise.
40913         (VEC_INIT_V1TI): Likewise.
40914         (VEC_SET_V1TI): Likewise.
40915         (VEC_EXT_V1TI): Likewise.
40916         (EQV_V1TI): Likewise.
40917         (NAND_V1TI): Likewise.
40918         (ORC_V1TI): Likewise.
40919         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
40920         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
40921         overloaded builtin.
40922         (VADDUQM): Likewise.
40923         (VSUBCUQ): Likewise.
40924         (VADDEUQM): Likewise.
40925         (VADDECUQ): Likewise.
40926         (VSUBEUQM): Likewise.
40927         (VSUBECUQ): Likewise.
40929         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
40930         __int128_t and __uint128_t types.
40931         (__uint128_type): Likewise.
40932         (altivec_categorize_keyword): Add support for vector __int128_t,
40933         vector __uint128_t, vector __int128, and vector unsigned __int128
40934         as a container type for TImode operations that need to be done in
40935         VSX/Altivec registers.
40936         (rs6000_macro_to_expand): Likewise.
40937         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
40938         to support 128-bit integer instructions vaddcuq, vadduqm,
40939         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
40940         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
40942         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
40943         for V1TImode, and set up preferences to use VSX/Altivec registers.
40944         Setup VSX reload handlers.
40945         (rs6000_debug_reg_global): Likewise.
40946         (rs6000_init_hard_regno_mode_ok): Likewise.
40947         (rs6000_preferred_simd_mode): Likewise.
40948         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
40949         (easy_altivec_constant): Likewise.
40950         (output_vec_const_move): Likewise.
40951         (rs6000_expand_vector_set): Convert V1TImode set and extract to
40952         simple move.
40953         (rs6000_expand_vector_extract): Likewise.
40954         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
40955         addressing.
40956         (rs6000_const_vec): Add support for V1TImode.
40957         (rs6000_emit_le_vsx_load): Swap double words when loading or
40958         storing TImode/V1TImode.
40959         (rs6000_emit_le_vsx_store): Likewise.
40960         (rs6000_emit_le_vsx_move): Likewise.
40961         (rs6000_emit_move): Add support for V1TImode.
40962         (altivec_expand_ld_builtin): Likewise.
40963         (altivec_expand_st_builtin): Likewise.
40964         (altivec_expand_vec_init_builtin): Likewise.
40965         (altivec_expand_builtin): Likewise.
40966         (rs6000_init_builtins): Add support for V1TImode type.  Add
40967         support for ISA 2.07 128-bit integer builtins.  Define type names
40968         for the VSX/Altivec vector types.
40969         (altivec_init_builtins): Add support for overloaded vector
40970         functions with V1TImode type.
40971         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
40972         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
40973         external function.
40974         (rs6000_split_128bit_ok_p): Likewise.
40975         (rs6000_handle_altivec_attribute): Create V1TImode from vector
40976         __int128_t and vector __uint128_t.
40978         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
40979         and mode attributes.
40980         (VSX_M): Likewise.
40981         (VSX_M2): Likewise.
40982         (VSm): Likewise.
40983         (VSs): Likewise.
40984         (VSr): Likewise.
40985         (VSv): Likewise.
40986         (VS_scalar): Likewise.
40987         (VS_double): Likewise.
40988         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
40990         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
40991         we support the ISA 2.07 128-bit integer arithmetic instructions.
40992         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
40993         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
40994         and TImode types for use with the builtin functions.
40995         (V1TI_type_node): Likewise.
40996         (unsigned_V1TI_type_node): Likewise.
40997         (intTI_type_internal_node): Likewise.
40998         (uintTI_type_internal_node): Likewise.
41000         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
41001         128-bit builtin functions.
41002         (UNSPEC_VADDEUQM): Likewise.
41003         (UNSPEC_VADDECUQ): Likewise.
41004         (UNSPEC_VSUBCUQ): Likewise.
41005         (UNSPEC_VSUBEUQM): Likewise.
41006         (UNSPEC_VSUBECUQ): Likewise.
41007         (VM): Add V1TImode to vector mode iterators.
41008         (VM2): Likewise.
41009         (VI_unit): Likewise.
41010         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
41011         (altivec_vaddcuq): Likewise.
41012         (altivec_vsubuqm): Likewise.
41013         (altivec_vsubcuq): Likewise.
41014         (altivec_vaddeuqm): Likewise.
41015         (altivec_vaddecuq): Likewise.
41016         (altivec_vsubeuqm): Likewise.
41017         (altivec_vsubecuq): Likewise.
41019         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
41020         mode iterators.
41021         (BOOL_128): Likewise.
41022         (BOOL_REGS_OUTPUT): Likewise.
41023         (BOOL_REGS_OP1): Likewise.
41024         (BOOL_REGS_OP2): Likewise.
41025         (BOOL_REGS_UNARY): Likewise.
41026         (BOOL_REGS_AND_CR0): Likewise.
41028         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
41029         128-bit integer builtin support.
41030         (vec_vadduqm): Likewise.
41031         (vec_vaddecuq): Likewise.
41032         (vec_vaddeuqm): Likewise.
41033         (vec_vsubecuq): Likewise.
41034         (vec_vsubeuqm): Likewise.
41035         (vec_vsubcuq): Likewise.
41036         (vec_vsubuqm): Likewise.
41038         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41039         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
41040         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
41041         128-bit integer add/subtract to ISA 2.07.
41043 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
41045         * config/arc/arc.c (arc_predicate_delay_insns):
41046         Fix third argument passed to conditionalize_nonjump.
41048 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
41050         * config/aarch64/aarch64-builtins.c
41051         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
41052         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
41053         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
41054         instead of __builtin_lfloor.
41055         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
41057 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
41059         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
41060         (tree_ssa_ifcombine_bb_1): New function.
41061         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
41062         is an empty forwarder block to then_bb or vice versa and then_bb
41063         and else_bb are effectively swapped.
41065 2014-03-12  Christian Bruel  <christian.bruel@st.com>
41067         PR target/60264
41068         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
41069         REG_CFA_DEF_CFA note.
41070         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
41071         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
41073 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41075         PR tree-optimization/60454
41076         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
41078 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41080         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
41081         Do not define target_cpu_default2 to generic.
41082         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
41083         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
41084         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
41086 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
41087             Marc Glisse  <marc.glisse@inria.fr>
41089         PR tree-optimization/60502
41090         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
41091         instead of build_low_bits_mask.
41093 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
41095         PR middle-end/60482
41096         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
41097         if there are multiple uses, but op doesn't live on E edge.
41098         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
41099         clobber stmts before __builtin_unreachable.
41101 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
41103         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
41104         hard_frame_pointer_rtx.
41105         * cse.c (cse_insn): Remove volatile check.
41106         * cselib.c (cselib_process_insn): Likewise.
41107         * dse.c (scan_insn): Likewise.
41109 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41111         * config/arc/arc.c (conditionalize_nonjump): New function,
41112         broken out of ...
41113         (arc_ifcvt): ... this.
41114         (arc_predicate_delay_insns): Use it.
41116 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41118         * config/arc/predicates.md (extend_operand): During/after reload,
41119         allow const_int_operand.
41120         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
41121         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
41122         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
41123         to "i".
41124         (umulsi3_highpart_i): Likewise.
41126 2014-03-11  Richard Biener  <rguenther@suse.de>
41128         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
41129         Add asserts to guard possible wrong-code bugs.
41131 2014-03-11  Richard Biener  <rguenther@suse.de>
41133         PR tree-optimization/60429
41134         PR tree-optimization/60485
41135         * tree-ssa-structalias.c (set_union_with_increment): Properly
41136         take into account all fields that overlap the shifted vars.
41137         (do_sd_constraint): Likewise.
41138         (do_ds_constraint): Likewise.
41139         (get_constraint_for_ptr_offset): Likewise.
41141 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
41143         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
41144         (nios2_compute_frame_layout):
41145         Add calculation of cfun->machine->fp_save_offset.
41146         (nios2_expand_prologue): Correct setting of frame pointer register
41147         in prologue.
41148         (nios2_expand_epilogue): Update recovery of stack pointer from
41149         frame pointer accordingly.
41150         (nios2_initial_elimination_offset): Update calculation of offset
41151         for eliminating to HARD_FRAME_POINTER_REGNUM.
41153 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
41155         PR ipa/60457
41156         * ipa.c (symtab_remove_unreachable_nodes): Don't call
41157         cgraph_get_create_node on VAR_DECLs.
41159 2014-03-10  Richard Biener  <rguenther@suse.de>
41161         PR middle-end/60474
41162         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
41164 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
41166         * config/vms/vms.opt (vms_float_format): New variable.
41168 2014-03-08  Tobias Burnus  <burnus@net-b.de>
41170         * doc/invoke.texi (-fcilkplus): Update implementation status.
41172 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
41173             Richard Biener  <rguenther@suse.de>
41175         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
41176         consistently accross all TUs.
41177         (run_gcc): Enable -fshort-double automatically at link at link-time
41178         and disallow override.
41180 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
41182         PR target/58271
41183         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
41184         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
41185         if they can't be used.
41187 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41189         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
41190         for Solaris 11/x86 ld.
41191         * configure: Regenerate.
41193 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41195         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
41196         (LIB_TLS_SPEC): Save as ld_tls_libs.
41197         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
41198         (HAVE_AS_IX86_TLSLDM): New test.
41199         * configure, config.in: Regenerate.
41200         * config/i386/i386.c (legitimize_tls_address): Fall back to
41201         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
41202         cannot support TLS_MODEL_LOCAL_DYNAMIC.
41203         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
41204         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
41206 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
41208         * common.opt (fira-loop-pressure): Mark as optimization.
41210 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
41212         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
41213         an OpenMP mappable type.
41215 2014-03-06  Matthias Klose  <doko@ubuntu.com>
41217         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
41218         MULTILIB_OSDIRNAMES is not defined.
41220 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
41221             Meador Inge  <meadori@codesourcery.com>
41223         PR target/58595
41224         * config/arm/arm.c (arm_tls_symbol_p): Remove.
41225         (arm_legitimize_address): Call legitimize_tls_address for any
41226         arm_tls_referenced_p expression, handle constant addend.  Call it
41227         before testing for !TARGET_ARM.
41228         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
41230 2014-03-06  Richard Biener  <rguenther@suse.de>
41232         PR middle-end/60445
41233         PR lto/60424
41234         PR lto/60427
41235         Revert
41236         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
41238         * tree-streamer.c (record_common_node): Assert we don't record
41239         nodes with type double.
41240         (preload_common_node): Skip type double, complex double and double
41241         pointer since it is now frontend dependent due to fshort-double option.
41243 2014-03-06  Richard Biener  <rguenther@suse.de>
41245         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
41246         or -fno-lto is specified and the linker has full plugin support.
41247         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
41248         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
41249         * lto-wrapper.c (merge_and_complain): Merge compile-time
41250         optimization levels.
41251         (run_gcc): And pass it through to the link options.
41253 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
41255         PR debug/60381
41256         Revert:
41257         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
41258         PR debug/59992
41259         * cselib.c (remove_useless_values): Skip to avoid quadratic
41260         behavior if the condition moved from...
41261         (cselib_process_insn): ... here holds.
41263 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
41265         PR plugins/59335
41266         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
41267         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
41269         PR plugins/59335
41270         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
41271         (TM_H): Add x86-tune.def.
41273 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41275         * config/aarch64/aarch64.c (generic_tunings):
41276         Use cortexa57_extra_costs.
41278 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
41280         PR lto/60404
41281         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
41282         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
41283         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
41284         cost for in_lto_p.
41286 2014-03-04  Heiher  <r@hev.cc>
41288         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
41289         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
41291 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
41293         * config/i386/predicates.md (const2356_operand): Change to ...
41294         (const2367_operand): ... this.
41295         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
41296         const2367_operand.
41297         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41298         (*avx512pf_scatterpf<mode>sf): Ditto.
41299         (avx512pf_scatterpf<mode>df): Ditto.
41300         (*avx512pf_scatterpf<mode>df_mask): Ditto.
41301         (*avx512pf_scatterpf<mode>df): Ditto.
41302         * config/i386/i386.c (ix86_expand_builtin): Update
41303         incorrect hint operand error message.
41305 2014-03-04  Richard Biener  <rguenther@suse.de>
41307         * lto-section-in.c (lto_get_section_data): Fix const cast.
41309 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
41311         * tree-streamer.c (record_common_node): Assert we don't record
41312         nodes with type double.
41313         (preload_common_node): Skip type double, complex double and double
41314         pointer since it is now frontend dependent due to fshort-double option.
41316 2014-03-04  Richard Biener  <rguenther@suse.de>
41318         PR lto/60405
41319         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
41320         (lto_input_toplevel_asms): Likewise.
41321         * lto-section-in.c (lto_get_section_data): Instead do it here
41322         for every section.
41324 2014-03-04  Richard Biener  <rguenther@suse.de>
41326         PR tree-optimization/60382
41327         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
41328         dead PHIs a reduction.
41330 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
41332         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
41333         hint value.
41334         (_mm_prefetch): Move out of GCC target("sse") pragma.
41335         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
41336         GCC target("prfchw") pragma.
41337         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
41338         for locality <= 2.
41339         * config/i386/i386.c (ix86_option_override_internal): Enable
41340         -mprfchw with -mprefetchwt1.
41342 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
41344         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
41345         Mark as varying.
41347 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
41349         * opts.h (CL_PCH_IGNORE): Define.
41350         * targhooks.c (option_affects_pch_p):
41351         Return false for options that have CL_PCH_IGNORE set.
41352         * opt-functions.awk: Process PchIgnore.
41353         * doc/options.texi: Document PchIgnore.
41355         * config/arc/arc.opt (misize): Add PchIgnore property.
41357 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41359         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
41360         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
41361         constraint on constants to permit them being loaded into
41362         GENERAL_REGS or BASE_REGS.
41364 2014-03-03  Nick Clifton  <nickc@redhat.com>
41366         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
41367         anti-cacnonical alternatives.
41368         (negandhi3_real): New pattern.
41369         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
41371 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
41373         * config/avr/avr-mcus.def: Remove atxmega16x1.
41374         * config/avr/avr-tables.opt: Regenerate.
41375         * config/avr/t-multilib: Regenerate.
41376         * doc/avr-mmcu.texi: Regenerate.
41378 2014-03-03  Tobias Grosser  <tobias@grosser.es>
41379             Mircea Namolaru  <mircea.namolaru@inria.fr>
41381         PR tree-optimization/58028
41382         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
41383         scalar dimensions.
41385 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41387         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
41388         not handled by recognizers.
41390 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
41392         PR middle-end/60175
41393         * function.c (expand_function_end): Don't emit
41394         clobber_return_register sequence if clobber_after is a BARRIER.
41395         * cfgexpand.c (construct_exit_block): Append instructions before
41396         return_label to prev_bb.
41398 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41400         * config/rs6000/constraints.md: Document reserved use of "wc".
41402 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
41404         PR ipa/60150
41405         * ipa.c (function_and_variable_visibility): When dissolving comdat
41406         group, also set all symbols to local.
41408 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
41410         PR ipa/60306
41412         Revert:
41413         2013-12-14  Jan Hubicka  <jh@suse.cz>
41414         PR middle-end/58477
41415         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
41417 2014-03-02  Jon Beniston  <jon@beniston.com>
41419         PR bootstrap/48230
41420         PR bootstrap/50927
41421         PR bootstrap/52466
41422         PR target/46898
41423         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
41424         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
41425         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
41426         (simple_return, *simple_return): New patterns
41427         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
41428         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
41430 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
41432         * dwarf2out.c (gen_subprogram_die): Tidy.
41434 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
41436         PR target/60071
41437         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
41438         (*mov_t_msb_neg_negc): ... this new insn.
41440 2014-02-28  Jason Merrill  <jason@redhat.com>
41442         PR c++/58678
41443         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
41444         function.
41446 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
41448         PR c++/60314
41449         * dwarf2out.c (decltype_auto_die): New static.
41450         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
41451         (gen_type_die_with_usage): Handle 'decltype(auto)'.
41452         (is_cxx_auto): Likewise.
41454 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
41456         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
41457         we are not using general regs only.
41459 2014-02-28  Richard Biener  <rguenther@suse.de>
41461         PR target/60280
41462         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
41463         previous fix and only allow to remove trivial pre-headers
41464         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
41465         (remove_forwarder_block): Properly update the latch of a loop.
41467 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
41469         PR debug/59992
41470         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
41471         (cselib_preserved_hash_table): New.
41472         (preserve_constants_and_equivs): Move preserved vals to it.
41473         (cselib_find_slot): Look it up first.
41474         (cselib_init): Initialize it.
41475         (cselib_finish): Release it.
41476         (dump_cselib_table): Dump it.
41478 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
41480         PR debug/59992
41481         * cselib.c (remove_useless_values): Skip to avoid quadratic
41482         behavior if the condition moved from...
41483         (cselib_process_insn): ... here holds.
41485 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
41487         PR debug/57232
41488         * var-tracking.c (vt_initialize): Apply the same condition to
41489         preserve the CFA base value.
41491 2014-02-28  Joey Ye  <joey.ye@arm.com>
41493         PR target/PR60169
41494         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
41495         if reload in progress or completed.
41497 2014-02-28  Tobias Burnus  <burnus@net-b.de>
41499         PR middle-end/60147
41500         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
41501         NAMELIST_DECL.
41503 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
41505         * doc/tm.texi.in (Condition Code Status): Update documention for
41506         relative locations of cc0-setter and cc0-user.
41508 2014-02-27  Jeff Law  <law@redhat.com>
41510         PR rtl-optimization/52714
41511         * combine.c (try_combine): When splitting an unrecognized PARALLEL
41512         into two independent simple sets, if I3 is a jump, ensure the
41513         pattern we place into I3 is a (set (pc) ...).
41515 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
41516             Jeff Law  <law@redhat.com>
41518         PR rtl-optimization/49847
41519         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
41520         are in different blocks.
41521         * doc/tm.texi (Condition Code Status): Update documention for
41522         relative locations of cc0-setter and cc0-user.
41524 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
41526         PR target/59222
41527         * lra.c (lra_emit_add): Check SUBREG too.
41529 2014-02-27  Andreas Schwab  <schwab@suse.de>
41531         * config/m68k/m68k.c (m68k_option_override): Disable
41532         -flive-range-shrinkage for classic m68k.
41533         (m68k_override_options_after_change): Likewise.
41535 2014-02-27  Marek Polacek  <polacek@redhat.com>
41537         PR middle-end/59223
41538         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
41539         -Wmaybe-uninitialized.
41541 2014-02-27  Alan Modra  <amodra@gmail.com>
41543         PR target/57936
41544         * reload1.c (emit_input_reload_insns): When reload_override_in,
41545         set old to rl->in_reg when rl->in_reg is a subreg.
41547 2014-02-26  Richard Biener  <rguenther@suse.de>
41549         PR bootstrap/60343
41550         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
41552 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
41554         * common/config/i386/predicates.md (const1256_operand): Remove.
41555         (const2356_operand): New.
41556         (const_1_to_2_operand): Remove.
41557         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
41558         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
41559         (*avx512pf_gatherpf<mode>sf): Ditto.
41560         (avx512pf_gatherpf<mode>df): Ditto.
41561         (*avx512pf_gatherpf<mode>df_mask): Ditto.
41562         (*avx512pf_gatherpf<mode>df): Ditto.
41563         (avx512pf_scatterpf<mode>sf): Ditto.
41564         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41565         (*avx512pf_scatterpf<mode>sf): Ditto.
41566         (avx512pf_scatterpf<mode>df): Ditto.
41567         (*avx512pf_scatterpf<mode>df_mask): Ditto.
41568         (*avx512pf_scatterpf<mode>df): Ditto.
41569         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
41571 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
41573         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
41574         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
41575         (_mm512_mask_testn_epi64_mask): Move to ...
41576         * config/i386/avx512cdintrin.h: Here.
41577         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
41578         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
41579         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
41580         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
41581         TARGET_AVX512F from TARGET_AVX512CD.
41583 2014-02-26  Richard Biener  <rguenther@suse.de>
41585         PR ipa/60327
41586         * ipa.c (walk_polymorphic_call_targets): Properly guard
41587         call to inline_update_overall_summary.
41589 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
41591         PR target/60280
41592         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
41593         and latches only if requested.  Fix latch if it is removed.
41594         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
41595         LOOPS_HAVE_PREHEADERS.
41597 2014-02-25  Andrew Pinski  <apinski@cavium.com>
41599         * builtins.c (expand_builtin_thread_pointer): Create a new target
41600         when the target is NULL.
41602 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
41604         PR rtl-optimization/60317
41605         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
41606         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
41607         * lra-assigns.c: Include params.h.
41608         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
41609         other reload pseudos considerations.
41611 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41613         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
41614         to use canonical form for nor<mode>3.
41616 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41618         PR target/55426
41619         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
41620         conversions.
41622 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
41624         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
41625         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
41626         (ix86_handle_option): Handle OPT_mprefetchwt1.
41627         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
41628         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
41629         PREFETCHWT1 CPUID.
41630         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
41631         OPTION_MASK_ISA_PREFETCHWT1.
41632         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
41633         (PTA_PREFETCHWT1): New.
41634         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
41635         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
41636         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
41637         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
41638         (*prefetch_avx512pf_<mode>_: Change into ...
41639         (*prefetch_prefetchwt1_<mode>: This.
41640         * config/i386/i386.opt (mprefetchwt1): New.
41641         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
41642         (_mm_prefetch): Handle intent to write.
41643         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
41645 2014-02-25  Richard Biener  <rguenther@suse.de>
41647         PR middle-end/60291
41648         * emit-rtl.c (mem_attrs_htab): Remove.
41649         (mem_attrs_htab_hash): Likewise.
41650         (mem_attrs_htab_eq): Likewise.
41651         (set_mem_attrs): Always allocate new mem-attrs when something changed.
41652         (init_emit_once): Do not allocate mem_attrs_htab.
41654 2014-02-25  Richard Biener  <rguenther@suse.de>
41656         PR lto/60319
41657         * lto-opts.c (lto_write_options): Output non-explicit conservative
41658         -fwrapv, -fno-trapv and -fno-strict-overflow.
41659         * lto-wrapper.c (merge_and_complain): Handle merging those options.
41660         (run_gcc): And pass them through.
41662 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
41664         * sel-sched.c (calculate_new_fences): New parameter ptime.
41665         Calculate it as a maximum over all fence cycles.
41666         (sel_sched_region_2): Adjust the call to calculate_new_fences.
41667         Print the final schedule timing when sched_verbose.
41669 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
41671         PR rtl-optimization/60292
41672         * sel-sched.c (fill_vec_av_set): Do not reset target availability
41673         bit fot the fence instruction.
41675 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
41677         * calls.h: Fix typo in comment.
41679 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
41681         * config/pa/pa.c (pa_output_move_double): Don't valididate when
41682         adjusting offsetable addresses.
41684 2014-02-24  Guozhi Wei  <carrot@google.com>
41686         * sparseset.h (sparseset_pop): Fix the wrong index.
41688 2014-02-24  Walter Lee  <walt@tilera.com>
41690         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
41691         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
41692         triplet.
41693         * common/config/tilegx/tilegx-common.c
41694         (TARGET_DEFAULT_TARGET_FLAGS): Define.
41695         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
41696         (LINK_SPEC): Ditto.
41697         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
41698         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
41699         (tilegx_gimplify_va_arg_expr): Handle big endian.
41700         (tilegx_expand_unaligned_load): Ditto.
41701         (tilegx_expand_unaligned_store): Ditto.
41702         (TARGET_RETURN_IN_MSB): New.
41703         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
41704         (TARGET_ENDIAN_DEFAULT): New.
41705         (TARGET_BIG_ENDIAN): Handle big endian.
41706         (BYTES_BIG_ENDIAN): Ditto.
41707         (WORDS_BIG_ENDIAN): Ditto.
41708         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
41709         (ENDIAN_SPEC): New.
41710         (EXTRA_SPECS): New.
41711         * config/tilegx/tilegx.md (extv): Handle big endian.
41712         (extzv): Ditto.
41713         (insn_st<n>): Ditto.
41714         (insn_st<n>_add<bitsuffix>): Ditto.
41715         (insn_stnt<n>): Ditto.
41716         (insn_stnt<n>_add<bitsuffix>):Ditto.
41717         (vec_interleave_highv8qi): Handle big endian.
41718         (vec_interleave_highv8qi_be): New.
41719         (vec_interleave_highv8qi_le): New.
41720         (insn_v1int_h): Handle big endian.
41721         (vec_interleave_lowv8qi): Handle big endian.
41722         (vec_interleave_lowv8qi_be): New.
41723         (vec_interleave_lowv8qi_le): New.
41724         (insn_v1int_l): Handle big endian.
41725         (vec_interleave_highv4hi): Handle big endian.
41726         (vec_interleave_highv4hi_be): New.
41727         (vec_interleave_highv4hi_le): New.
41728         (insn_v2int_h): Handle big endian.
41729         (vec_interleave_lowv4hi): Handle big endian.
41730         (vec_interleave_lowv4hi_be): New.
41731         (vec_interleave_lowv4hi_le): New.
41732         (insn_v2int_l): Handle big endian.
41733         (vec_interleave_highv2si): Handle big endian.
41734         (vec_interleave_highv2si_be): New.
41735         (vec_interleave_highv2si_le): New.
41736         (insn_v4int_h): Handle big endian.
41737         (vec_interleave_lowv2si): Handle big endian.
41738         (vec_interleave_lowv2si_be): New.
41739         (vec_interleave_lowv2si_le): New.
41740         (insn_v4int_l): Handle big endian.
41741         * config/tilegx/tilegx.opt (mbig-endian): New option.
41742         (mlittle-endian): New option.
41743         * doc/install.texi: Document tilegxbe-linux.
41744         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
41746 2014-02-24  Martin Jambor  <mjambor@suse.cz>
41748         PR ipa/60266
41749         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
41750         there are no parameter descriptors.
41752 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
41754         PR rtl-optimization/60268
41755         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
41756         initialization to ...
41757         (sched_rgn_init): ... here.
41758         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
41760 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
41762         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
41763         names.
41765 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
41767         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
41768         definition.
41770 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
41772         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
41773         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
41775 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
41777         * config/microblaze/predicates.md: Add cmp_op predicate.
41778         * config/microblaze/microblaze.md: Add branch_compare instruction
41779         which uses cmp_op predicate and emits cmp insn before branch.
41780         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
41781         to microblaze_expand_conditional_branch and consolidate logic.
41782         (microblaze_expand_conditional_branch): emit branch_compare
41783         insn instead of handling cmp op separate from branch insn.
41785 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41787         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
41788         to permit subregs.
41790 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41792         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
41793         define_insn with define_expand and new define_insn
41794         *altivec_lve<VI_char>x_internal.
41795         (altivec_stve<VI_char>x): Replace define_insn with define_expand
41796         and new define_insn *altivec_stve<VI_char>x_internal.
41797         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
41798         prototype.
41799         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
41800         lve*x built-ins.
41801         (altivec_expand_stvex_be): New function.
41803 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
41805         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
41806         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
41807         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
41808         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
41810 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
41812         PR target/60298
41813         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
41814         instead of emit_move_insn.
41816 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41818         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
41819         vspltw with vsldoi.
41820         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
41821         gen_altivec_vsumsws.
41823 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41825         * config/rs6000/altivec.md (altivec_lvxl): Rename as
41826         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
41827         (altivec_lvxl_<mode>): New define_expand incorporating
41828         -maltivec=be semantics where needed.
41829         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
41830         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
41831         semantics where needed.
41832         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
41833         (altivec_stvx_<mode>): New define_expand incorporating
41834         -maltivec=be semantics where needed.
41835         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
41836         VM2 iterator instead of V4SI.
41837         (altivec_stvxl_<mode>): New define_expand incorporating
41838         -maltivec=be semantics where needed.
41839         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
41840         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
41841         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
41842         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
41843         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
41844         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
41845         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
41846         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
41847         ALTIVEC_BUILTIN_STVXL.
41848         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
41849         (altivec_expand_stvx_be): Likewise.
41850         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
41851         (altivec_expand_lvx_be): Likewise.
41852         (altivec_expand_stvx_be): Likewise.
41853         (altivec_expand_builtin): Add cases for
41854         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
41855         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
41856         (altivec_init_builtins): Add definitions for
41857         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
41858         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
41860 2014-02-21  Catherine Moore  <clm@codesourcery.com>
41862         * doc/invoke.texi (mvirt, mno-virt): Document.
41863         * config/mips/mips.opt (mvirt): New option.
41864         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
41866 2014-02-21  Richard Biener  <rguenther@suse.de>
41868         PR tree-optimization/60276
41869         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
41870         (STMT_VINFO_MIN_NEG_DIST): New macro.
41871         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
41872         STMT_VINFO_MIN_NEG_DIST.
41873         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
41874         made for negative dependence distances still hold.
41876 2014-02-21  Richard Biener  <rguenther@suse.de>
41878         PR middle-end/60291
41879         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
41880         DECL_INITIAL for globals not in the current function context.
41882 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
41884         PR tree-optimization/56490
41885         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
41886         * tree-ssa-uninit.c: Include params.h.
41887         (compute_control_dep_chain): Add num_calls argument, return false
41888         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
41889         num_calls to recursive call.
41890         (find_predicates): Change dep_chain into normal array,
41891         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
41892         variable and adjust compute_control_dep_chain caller.
41893         (find_def_preds): Likewise.
41895 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
41897         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
41898         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
41900 2014-02-21  Nick Clifton  <nickc@redhat.com>
41902         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
41903         (pushhi1): Likewise.
41904         (popqi1): Add mode to pre_dec.
41905         (pophi1): Likewise.
41907 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
41909         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
41910         mode for mask of V8SFmode permutation.
41912 2014-02-20  Richard Henderson  <rth@redhat.com>
41914         PR c++/60272
41915         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
41916         a new pseudo for OLDVAL.
41918 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
41920         PR target/57896
41921         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
41922         gen_reg_rtx if d->testing_p.
41923         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
41924         if d->testing_p and we will certainly return true.
41925         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
41926         if d->testing_p.
41928 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
41930         * emit-rtl.c (gen_reg_rtx): Assert that
41931         crtl->emit.regno_pointer_align_length is non-zero.
41933 2014-02-20  Richard Henderson  <rth@redhat.com>
41935         PR c++/60272
41936         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
41937         on failure the store back into EXPECT.
41939 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
41940             Sandra Loosemore  <sandra@codesourcery.com>
41942         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
41943         * config/nios2/nios2.c (nios2_function_profiler): Add
41944         -fPIC (flag_pic == 2) support.
41945         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
41946         (nios2_large_offset_p): New function.
41947         (nios2_unspec_reloc_p): Move up position, update to use
41948         nios2_large_offset_p.
41949         (nios2_unspec_address): Remove function.
41950         (nios2_unspec_offset): New function.
41951         (nios2_large_got_address): New function.
41952         (nios2_got_address): Add large offset support.
41953         (nios2_legitimize_tls_address): Update usage of removed and new
41954         functions.
41955         (nios2_symbol_binds_local_p): New function.
41956         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
41957         (nios2_legitimize_address): Update to use nios2_large_offset_p.
41958         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
41959         (nios2_print_operand): Merge H/L processing, add hiadj/lo
41960         processing for (const (unspec ...)).
41961         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
41963 2014-02-20  Richard Biener  <rguenther@suse.de>
41965         * tree-cfg.c (replace_uses_by): Mark altered BBs before
41966         doing the substitution.
41967         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
41969 2014-02-20  Martin Jambor  <mjambor@suse.cz>
41971         PR ipa/55260
41972         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
41973         info when checking whether lattices are bottom.
41975 2014-02-20  Richard Biener  <rguenther@suse.de>
41977         PR middle-end/60221
41978         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
41979         regions at -O0.
41981 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
41983         PR ipa/58555
41984         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
41985         parameter specifying the scaling.
41986         (inline_call): Update.
41987         (want_inline_recursively): Guard division by zero.
41988         (recursive_inlining): Update.
41989         * ipa-inline.h (clone_inlined_nodes): Update.
41991 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
41993         PR target/60204
41994         * config/i386/i386.c (classify_argument): Pass structures of size
41995         64 bytes or less in register.
41997 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
41998             Kirill Yukhin  <kirill.yukhin@intel.com>
42000         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
42001         (_mm_rcp28_round_ss): Ditto.
42002         (_mm_rsqrt28_round_sd): Ditto.
42003         (_mm_rsqrt28_round_ss): Ditto.
42004         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
42005         (_mm_rcp14_round_ss): Ditto.
42006         (_mm_rsqrt14_round_sd): Ditto.
42007         (_mm_rsqrt14_round_ss): Ditto.
42008         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
42009         the first input operand, get rid of match_dup.
42010         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
42011         attribute to sse.
42012         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
42013         Ditto.
42014         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
42015         operand as the first input operand, set type attribute.
42016         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
42017         Set type attribute.
42018         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
42019         operand as the first input operand, set type attribute.
42021 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42023         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
42024         bit of zero.
42026 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
42028         PR target/60207
42029         * config/i386/i386.c (construct_container): Remove TFmode check
42030         for X86_64_INTEGER_CLASS.
42032 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
42034         PR target/59794
42035         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
42036         only when -Wpsabi is enabled.
42038 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
42040         PR target/59799
42041         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
42042         passing arrays in registers are the same as for structs, so remove the
42043         special case for them.
42045 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
42047         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
42048         destination type, extract only the valid bits if the source type is not
42049         integral and has a different mode.
42051 2014-02-19  Richard Biener  <rguenther@suse.de>
42053         PR ipa/60243
42054         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
42055         for all calls.
42057 2014-02-19  Richard Biener  <rguenther@suse.de>
42059         PR ipa/60243
42060         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
42061         (ipa_modify_call_arguments): Emit an argument load explicitely and
42062         preserve virtual SSA form there and for the replacement call.
42063         Do not update SSA form nor free dominance info.
42065 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
42067         * ipa.c (function_and_variable_visibility): Also clear WEAK
42068         flag when disolving COMDAT_GROUP.
42070 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
42072         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
42073         * ipa-prop.c (ipa_set_jf_known_type): Return early when
42074         not devirtualizing.
42075         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
42076         do more sanity checks.
42077         (detect_type_change): Return true when giving up early.
42078         (compute_complex_assign_jump_func): Fix type parameter of
42079         ipa_set_ancestor_jf.
42080         (compute_complex_ancestor_jump_func): Likewise.
42081         (update_jump_functions_after_inlining): Fix updating of
42082         ancestor function.
42083         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
42085 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
42087         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
42088         inline clones when edge disappears.
42090 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
42092         PR target/60203
42093         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
42094         Split 64-bit moves into 2 patterns.  Do not allow the use of
42095         direct move for TDmode in little endian, since the decimal value
42096         has little endian bytes within a word, but the 64-bit pieces are
42097         ordered in a big endian fashion, and normal subreg's of TDmode are
42098         not allowed.
42099         (mov<mode>_64bit_dm): Likewise.
42100         (movtd_64bit_nodm): Likewise.
42102 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
42104         PR tree-optimization/60174
42105         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
42106         statement of an SSA_NAME that occurs in an abnormal PHI node.
42108 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
42110         PR sanitizer/60142
42111         * final.c (SEEN_BB): Remove.
42112         (SEEN_NOTE, SEEN_EMITTED): Renumber.
42113         (final_scan_insn): Don't force_source_line on second
42114         NOTE_INSN_BASIC_BLOCK.
42116 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
42118         PR target/60205
42119         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
42120         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
42121         (type_natural_mode): Warn ABI change when %zmm register is not
42122         available for AVX512F vector value passing.
42124 2014-02-18  Kai Tietz  <ktietz@redhat.com>
42126         PR target/60193
42127         * config/i386/i386.c (ix86_expand_prologue): Use value in
42128         rax register as displacement when restoring %r10 or %rax.
42129         Fix wrong offset when restoring both registers.
42131 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
42133         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
42134         assertion with conditional return.
42136 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
42137             Uros Bizjak  <ubizjak@gmail.com>
42139         PR driver/60233
42140         * config/i386/driver-i386.c (host_detect_local_cpu): If
42141         YMM state is not saved by the OS, also clear has_f16c.  Move
42142         CPUID 0x80000001 handling before YMM state saving checking.
42144 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
42146         PR rtl-optimization/58960
42147         * haifa-sched.c (alloc_global_sched_pressure_data): New,
42148         factored out from ...
42149         (sched_init): ... here.
42150         (free_global_sched_pressure_data): New, factored out from ...
42151         (sched_finish): ... here.
42152         * sched-int.h (free_global_sched_pressure_data): Declare.
42153         * sched-rgn.c (nr_regions_initial): New static global.
42154         (haifa_find_rgns): Initialize it.
42155         (schedule_region): Disable sched-pressure for the newly
42156         generated regions.
42158 2014-02-17  Richard Biener  <rguenther@suse.de>
42160         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
42161         release SSA defs of pattern stmts.
42163 2014-02-17  Richard Biener  <rguenther@suse.de>
42165         * tree-inline.c (expand_call_inline): Release the virtual
42166         operand defined by the call we are about to inline.
42168 2014-02-17  Richard Biener  <rguenther@suse.de>
42170         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
42172 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
42173             Ilya Tocar  <ilya.tocar@intel.com>
42175         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
42176         arguments order in builtin.
42177         (_mm512_permutexvar_epi64): Ditto.
42178         (_mm512_mask_permutexvar_epi64): Ditto
42179         (_mm512_maskz_permutexvar_epi32): Ditto
42180         (_mm512_permutexvar_epi32): Ditto
42181         (_mm512_mask_permutexvar_epi32): Ditto
42183 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42185         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
42186         (p8_vmrgow): Likewise.
42188 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42190         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
42191         endian targets.
42193 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
42195         PR target/60203
42196         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
42197         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
42198         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
42199         using direct move instructions on ISA 2.07.  Also adjust
42200         instruction length for 64-bit.
42201         (mov<mode>_64bit, TFmode/TDmode): Likewise.
42202         (mov<mode>_32bit, TFmode/TDmode): Likewise.
42204 2014-02-15  Alan Modra  <amodra@gmail.com>
42206         PR target/58675
42207         PR target/57935
42208         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
42209         find_replacement on parts of insn rtl that might be reloaded.
42211 2014-02-15  Richard Biener  <rguenther@suse.de>
42213         PR tree-optimization/60183
42214         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
42215         (tree_ssa_phiprop): Calculate and free post-dominators.
42217 2014-02-14  Jeff Law  <law@redhat.com>
42219         PR rtl-optimization/60131
42220         * ree.c (get_extended_src_reg): New function.
42221         (combine_reaching_defs): Use it rather than assuming location of REG.
42222         (find_and_remove_re): Verify first operand of extension is
42223         a REG before adding the insns to the copy list.
42225 2014-02-14  Roland McGrath  <mcgrathr@google.com>
42227         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
42228         * configure: Regenerated.
42229         * config.in: Regenerated.
42230         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
42231         instead of ASM_SHORT.
42233 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
42234             Richard Earnshaw  <rearnsha@arm.com>
42236         PR rtl-optimization/59535
42237         * lra-constraints.c (process_alt_operands): Encourage alternative
42238         when unassigned pseudo class is superset of the alternative class.
42239         (inherit_reload_reg): Don't inherit when optimizing for code size.
42240         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
42241         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
42242         modes not less than 4 for Thumb1.
42244 2014-02-14  Kyle McMartin  <kyle@redhat.com>
42246         PR pch/60010
42247         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
42249 2014-02-14  Richard Biener  <rguenther@suse.de>
42251         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
42252         (get_frame_arg): Drop the assert with langhook types_compatible_p.
42253         Do not strip INDIRECT_REFs.
42255 2014-02-14  Richard Biener  <rguenther@suse.de>
42257         PR lto/60179
42258         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
42259         DECL_FUNCTION_SPECIFIC_TARGET.
42260         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
42261         * tree-streamer-out.c (pack_ts_target_option): Remove.
42262         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
42263         (write_ts_function_decl_tree_pointers): Do not stream
42264         DECL_FUNCTION_SPECIFIC_TARGET.
42265         * tree-streamer-in.c (unpack_ts_target_option): Remove.
42266         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
42267         (lto_input_ts_function_decl_tree_pointers): Do not stream
42268         DECL_FUNCTION_SPECIFIC_TARGET.
42270 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
42272         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
42273         (get_initial_def_for_induction, vectorizable_induction): Ignore
42274         debug stmts when looking for exit_phi.
42275         (vectorizable_live_operation): Fix up condition.
42277 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42279         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
42280         nreverse() because it changes the content of original tree list.
42282 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42284         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
42285         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
42287 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42289         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
42290         GNU coding standards.
42292 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
42294         PR debug/60152
42295         * dwarf2out.c (gen_subprogram_die): Don't call
42296         add_calling_convention_attribute if subr_die is old_die.
42298 2014-02-13  Sharad Singhai  <singhai@google.com>
42300         * doc/optinfo.texi: Fix order of nodes.
42302 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
42304         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
42305         operands[2], not operands[3].
42307 2014-02-13  Richard Biener  <rguenther@suse.de>
42309         PR bootstrap/59878
42310         * doc/install.texi (ISL): Update recommended version to 0.12.2,
42311         mention the possibility of an in-tree build.
42312         (CLooG): Update recommended version to 0.18.1, mention the
42313         possibility of an in-tree build and clarify that the ISL
42314         bundled with CLooG does not work.
42316 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
42318         PR target/43546
42319         * expr.c (compress_float_constant): If x is a hard register,
42320         extend into a pseudo and then move to x.
42322 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
42324         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
42325         caused by bad second argument to warning_at() with -mhotpatch and
42326         nested functions (e.g. with gfortran).
42328 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
42330         * opts.c (option_name): Remove "enabled by default" rider.
42332 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
42334         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
42336 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
42337             Uros Bizjak  <ubizjak@gmail.com>
42339         PR target/60151
42340         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
42341         * configure: Regenerated.
42343 2014-02-12  Richard Biener  <rguenther@suse.de>
42345         * vec.c (vec_prefix::calculate_allocation): Move as
42346         inline variant to vec.h.
42347         (vec_prefix::calculate_allocation_1): New out-of-line version.
42348         * vec.h (vec_prefix::calculate_allocation_1): Declare.
42349         (vec_prefix::m_has_auto_buf): Rename to ...
42350         (vec_prefix::m_using_auto_storage): ... this.
42351         (vec_prefix::calculate_allocation): Inline the easy cases
42352         and dispatch to calculate_allocation_1 which doesn't need the
42353         prefix address.
42354         (va_heap::reserve): Use gcc_checking_assert.
42355         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
42356         m_using_auto_storage.
42357         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
42358         member and adjust.
42359         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
42360         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
42361         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
42363 2014-02-12  Richard Biener  <rguenther@suse.de>
42365         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
42366         when we found a dependence.
42368 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
42370         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
42371         common code...
42372         (maybe_fold_stmt): ... into this new function.
42373         * omp-low.c (lower_omp): Update comment.
42375         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
42376         last use.
42378         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
42379         dereference.
42381 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
42383         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
42384         identifiers in comments.
42385         (cortexa53_extra_costs): Likewise.
42386         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
42387         (cortexa7_extra_costs): Likewise.
42388         (cortexa12_extra_costs): Likewise.
42389         (cortexa15_extra_costs): Likewise.
42390         (v7m_extra_costs): Likewise.
42392 2014-02-12  Richard Biener  <rguenther@suse.de>
42394         PR middle-end/60092
42395         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
42396         of posix_memalign being successful.
42397         (lower_stmt): Restrict lowering of posix_memalign to when
42398         -ftree-bit-ccp is enabled.
42400 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
42402         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
42403         arg_loc.
42404         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
42406 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
42408         PR rtl-optimization/60116
42409         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
42410         other_insn once the combination has been validated.
42412 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
42414         PR lto/59468
42415         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
42416         and wrapper.
42417         * ipa-devirt.c: Include demangle.h
42418         (odr_violation_reported): New static variable.
42419         (add_type_duplicate): Update odr_violations.
42420         (maybe_record_node): Add completep parameter; update it.
42421         (record_target_from_binfo): Add COMPLETEP parameter;
42422         update it as needed.
42423         (possible_polymorphic_call_targets_1): Likewise.
42424         (struct polymorphic_call_target_d): Add nonconstruction_targets;
42425         rename FINAL to COMPLETE.
42426         (record_targets_from_bases): Sanity check we found the binfo;
42427         fix COMPLETEP updating.
42428         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
42429         parameter, fix computing of COMPLETEP.
42430         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
42431         at LTO time do demangling.
42432         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
42433         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
42434         parameter.
42435         (gimple_get_virt_method_for_binfo): Likewise.
42436         * gimple-fold.h (gimple_get_virt_method_for_binfo,
42437         gimple_get_virt_method_for_vtable): Update prototypes.
42439 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
42441         PR target/49008
42442         * genautomata.c (add_presence_absence): Fix typo with
42443         {final_}presence_list.
42445 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
42447         PR target/60137
42448         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
42449         for VSX/Altivec vectors that land in GPR registers.
42451 2014-02-11  Richard Henderson  <rth@redhat.com>
42452             Jakub Jelinek  <jakub@redhat.com>
42454         PR debug/59776
42455         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
42456         around drhs if type conversion to lacc->type is not useless.
42458 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42460         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
42461         tuning struct.
42462         (cortex-a57.cortex-a53): Likewise.
42463         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
42465 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42467         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
42468         arm_restrict_it.
42470 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
42472         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
42473         add_options_for_arm_vfp3.
42475 2014-02-11  Jeff Law  <law@redhat.com>
42477         PR middle-end/54041
42478         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
42479         object with an undesirable mode.
42481 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42483         PR libgomp/60107
42484         * config/i386/sol2-9.h: New file.
42485         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
42486         *-*-solaris2.9*): Use it.
42488 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
42490         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
42491         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
42493 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
42495         * config/microblaze/microblaze.c: Extend mcpu version format
42497 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
42499         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
42501 2014-02-10  Richard Henderson  <rth@redhat.com>
42503         PR target/59927
42504         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
42505         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
42506         ms-abi vs -mno-accumulate-outgoing-args.
42507         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
42508         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
42509         respect to ms-abi.
42511 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42513         PR middle-end/60080
42514         * cfgexpand.c (expand_asm_operands): Attach source location to
42515         ASM_INPUT rtx objects.
42516         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
42518 2014-02-10  Nick Clifton  <nickc@redhat.com>
42520         * config/mn10300/mn10300.c (popcount): New function.
42521         (mn10300_expand_prologue): Include saved registers in stack usage
42522         count.
42524 2014-02-10  Jeff Law  <law@redhat.com>
42526         PR middle-end/52306
42527         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
42528         when changing the SET_DEST of a prior insn to avoid an input reload.
42530 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
42532         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
42533         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
42534         -mcall-openbsd, or -mcall-linux.
42535         (CC1_ENDIAN_BIG_SPEC): Remove.
42536         (CC1_ENDIAN_LITTLE_SPEC): Remove.
42537         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
42538         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
42539         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
42540         and %cc1_endian_default.
42541         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
42543 2014-02-10  Richard Biener  <rguenther@suse.de>
42545         PR tree-optimization/60115
42546         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
42547         MEM_REF handling.  Properly verify that the accesses are not
42548         out of the objects bound.
42550 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42552         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
42553         coretex to cortex.
42555 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
42557         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
42558         proper constants and fix formatting.
42559         (possible_polymorphic_call_targets): Fix formatting.
42561 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
42562             Ilya Tocar  <ilya.tocar@intel.com>
42564         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
42565         (_mm512_loadu_epi32): Renamed into...
42566         (_mm512_loadu_si512): This.
42567         (_mm512_storeu_epi32): Renamed into...
42568         (_mm512_storeu_si512): This.
42569         (_mm512_maskz_ceil_ps): Removed.
42570         (_mm512_maskz_ceil_pd): Ditto.
42571         (_mm512_maskz_floor_ps): Ditto.
42572         (_mm512_maskz_floor_pd): Ditto.
42573         (_mm512_floor_round_ps): Ditto.
42574         (_mm512_floor_round_pd): Ditto.
42575         (_mm512_ceil_round_ps): Ditto.
42576         (_mm512_ceil_round_pd): Ditto.
42577         (_mm512_mask_floor_round_ps): Ditto.
42578         (_mm512_mask_floor_round_pd): Ditto.
42579         (_mm512_mask_ceil_round_ps): Ditto.
42580         (_mm512_mask_ceil_round_pd): Ditto.
42581         (_mm512_maskz_floor_round_ps): Ditto.
42582         (_mm512_maskz_floor_round_pd): Ditto.
42583         (_mm512_maskz_ceil_round_ps): Ditto.
42584         (_mm512_maskz_ceil_round_pd): Ditto.
42585         (_mm512_expand_pd): Ditto.
42586         (_mm512_expand_ps): Ditto.
42587         * config/i386/i386.c (ix86_builtins): Remove
42588         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
42589         (bdesc_args): Ditto.
42590         * config/i386/predicates.md (const1256_operand): New.
42591         (const_1_to_2_operand): Ditto.
42592         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
42593         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
42594         (*avx512pf_gatherpf<mode>sf): Ditto.
42595         (avx512pf_gatherpf<mode>df): Ditto.
42596         (*avx512pf_gatherpf<mode>df_mask): Ditto.
42597         (*avx512pf_gatherpf<mode>df): Ditto.
42598         (avx512pf_scatterpf<mode>sf): Ditto.
42599         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
42600         (*avx512pf_scatterpf<mode>sf): Ditto.
42601         (avx512pf_scatterpf<mode>df): Ditto.
42602         (*avx512pf_scatterpf<mode>df_mask): Ditto.
42603         (*avx512pf_scatterpf<mode>df): Ditto.
42604         (avx512f_expand<mode>): Removed.
42605         (<shift_insn><mode>3<mask_name>): Change predicate type.
42607 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
42609         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
42610         not at the end of datarefs vector use ordered_remove to avoid
42611         reordering datarefs vector.
42613         PR c/59984
42614         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
42615         mark local addressable non-static vars as GOVD_PRIVATE
42616         instead of GOVD_LOCAL.
42617         * omp-low.c (lower_omp_for): Move gimple_bind_vars
42618         and BLOCK_VARS of gimple_bind_block to new_stmt rather
42619         than copying them.
42621         PR middle-end/60092
42622         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
42623         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
42624         assume_aligned or alloc_align attributes.
42625         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
42626         arguments.  Handle also assume_aligned and alloc_align attributes.
42627         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
42628         calls to functions with assume_aligned or alloc_align attributes.
42629         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
42631 2014-02-08  Terry Guo  <terry.guo@arm.com>
42633         * doc/invoke.texi: Document ARM -march=armv7e-m.
42635 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
42637         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
42638         flag on __cilkrts_rethrow builtin.
42640         PR ipa/60026
42641         * ipa-cp.c (determine_versionability): Fail at -O0
42642         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
42643         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
42645         Revert:
42646         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
42648         PR ipa/60026
42649         * tree-inline.c (copy_forbidden): Fail for
42650         __attribute__((optimize (0))) functions.
42652 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
42654         * varpool.c: Include pointer-set.h.
42655         (varpool_remove_unreferenced_decls): Variables in other partitions
42656         will not be output; be however careful to not lose information
42657         about partitioning.
42659 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
42661         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
42662         lookup in the vtable constructor.
42664 2014-02-07  Jeff Law  <law@redhat.com>
42666         PR target/40977
42667         * config/m68k/m68k.md (ashldi_extsi): Turn into a
42668         define_insn_and_split.
42670         * ipa-inline.c (inline_small_functions): Fix typos.
42672 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
42674         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
42675         (s390_can_use_return_insn): Declare.
42676         * config/s390/s390.h (EPILOGUE_USES): Define.
42677         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
42678         instructions.
42679         (s390_chunkify_start): Handle return JUMP_LABELs.
42680         (s390_early_mach): Emit a main_pool instruction on the entry edge.
42681         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
42682         (s390_can_use_return_insn): New functions.
42683         (s390_fix_long_loop_prediction): Handle conditional returns.
42684         (TARGET_SET_UP_BY_PROLOGUE): Define.
42685         * config/s390/s390.md (ANY_RETURN): New code iterator.
42686         (*creturn, *csimple_return, return, simple_return): New patterns.
42688 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
42690         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
42691         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
42692         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
42693         REG_CFA_RESTORE list when deciding not to restore a register.
42695 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
42697         * config/s390/s390.c: Include tree-pass.h and context.h.
42698         (s390_early_mach): New function, split out from...
42699         (s390_emit_prologue): ...here.
42700         (pass_data_s390_early_mach): New pass structure.
42701         (pass_s390_early_mach): New class.
42702         (s390_option_override): Create and register early_mach pass.
42703         Move to end of file.
42705 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
42707         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
42708         to match for the exit block.
42710 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42712         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
42713         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
42714         Reject misaligned operands.
42716 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42718         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
42720 2014-02-07  Richard Biener  <rguenther@suse.de>
42722         PR middle-end/60092
42723         * gimple-low.c (lower_builtin_posix_memalign): New function.
42724         (lower_stmt): Call it to lower posix_memalign in a way
42725         to make alignment info accessible.
42727 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
42729         PR c++/60082
42730         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
42731         __builtin_setjmp_receiver.
42733 2014-02-07  Richard Biener  <rguenther@suse.de>
42735         PR middle-end/60092
42736         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
42737         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
42738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42739         Handle BUILT_IN_POSIX_MEMALIGN.
42740         (find_func_clobbers): Likewise.
42741         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
42742         (call_may_clobber_ref_p_1): Likewise.
42744 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
42746         PR ipa/59918
42747         * ipa-devirt.c (record_target_from_binfo): Remove overactive
42748         sanity check.
42750 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
42752         PR ipa/59469
42753         * lto-cgraph.c (lto_output_node): Use
42754         symtab_get_symbol_partitioning_class.
42755         (lto_output_varpool_node): likewise.
42756         (symtab_get_symbol_partitioning_class): Move here from
42757         lto/lto-partition.c
42758         * cgraph.h (symbol_partitioning_class): Likewise.
42759         (symtab_get_symbol_partitioning_class): Declare.
42761 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
42763         * ggc.h (ggc_internal_cleared_alloc): New macro.
42764         * vec.h (vec_safe_copy): Handle memory stats.
42765         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
42766         * target-globals.c (save_target_globals): Likewise.
42768 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
42770         PR target/60077
42771         * expr.c (emit_move_resolve_push): Export; be bit more selective
42772         on when to clear alias set.
42773         * expr.h (emit_move_resolve_push): Declare.
42774         * function.h (struct function): Add tail_call_marked.
42775         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
42776         * config/i386/i386-protos.h (ix86_expand_push): Remove.
42777         * config/i386/i386.md (TImode move expander): De not call
42778         ix86_expand_push.
42779         (FP push expanders): Preserve memory attributes.
42780         * config/i386/sse.md (push<mode>1): Remove.
42781         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
42782         (ix86_expand_push): Remove.
42783         * config/i386/mmx.md (push<mode>1): Remove.
42785 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
42787         PR rtl-optimization/60030
42788         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
42789         lopart with paradoxical subreg before shifting it up by hprec.
42791 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42793         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
42794         Remove extra newline at end of file.
42795         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
42796         (arm_issue_rate): Handle cortexa57.
42797         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
42798         (cortex-a57.cortex-a53): Likewise.
42800 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
42802         PR target/59575
42803         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
42804         don't record in REG_FRAME_RELATED_EXPR registers not set in that
42805         bitmask.
42806         (arm_expand_prologue): Adjust all callers.
42807         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
42808         info, registers also at the lowest numbered registers side.  Use
42809         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
42810         XEXP.
42812         PR debug/59992
42813         * var-tracking.c (adjust_mems): Before adding a SET to
42814         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
42816 2014-02-06  Alan Modra  <amodra@gmail.com>
42818         PR target/60032
42819         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
42820         change SDmode to DDmode when lra_in_progress.
42822 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
42824         PR middle-end/59150
42825         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
42826         free_data_ref on the dr first, and before goto again also set dr
42827         to the next dr.  For simd_lane_access, free old datarefs[i] before
42828         overwriting it.  For get_vectype_for_scalar_type failure, don't
42829         free_data_ref if simd_lane_access.
42831         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
42833         PR target/60062
42834         * tree.h (opts_for_fn): New inline function.
42835         (opt_for_fn): Define.
42836         * config/i386/i386.c (ix86_function_regparm): Use
42837         opt_for_fn (decl, optimize) instead of optimize.
42839 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42841         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
42842         for SYMBOL_REF in large memory model.
42844 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42846         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
42847         and crypto support.
42848         (cortex-a57): Likewise.
42849         (cortex-a57.cortex-a53): Likewise.
42851 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
42852             Kugan Vivekanandarajah  <kuganv@linaro.org>
42854         * config/arm/arm.c (arm_vector_alignment_reachable): Check
42855         unaligned_access.
42856         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
42858 2014-02-06  Richard Biener  <rguenther@suse.de>
42860         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
42861         set_loop_copy and initialize_original_copy_tables.
42863 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
42865         * config/aarch64/aarch64-simd.md
42866         (aarch64_ashr_simddi): Change QI to SI.
42868 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
42869             Jakub Jelinek  <jakub@redhat.com>
42871         PR middle-end/60013
42872         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
42873         of the dataflow.
42875 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42877         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
42878         CODE_FOR_altivec_vpku[hw]um to
42879         CODE_FOR_altivec_vpku[hw]um_direct.
42880         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
42881         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
42882         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
42883         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
42885 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42887         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
42888         generation for -maltivec=be.
42889         (altivec_vsumsws): Simplify redundant test.
42891 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42893         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
42894         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
42895         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
42896         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
42897         gen_altivec_vpkuwum.
42898         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
42899         BYTES_BIG_ENDIAN.
42900         (altivec_vpks<VI_char>ss): Likewise.
42901         (altivec_vpks<VI_char>us): Likewise.
42902         (altivec_vpku<VI_char>us): Likewise.
42903         (altivec_vpku<VI_char>um): Likewise.
42904         (altivec_vpku<VI_char>um_direct): New (copy of
42905         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
42906         internal use).
42907         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
42908         target is little endian and -maltivec=be is not specified.
42909         (*altivec_vupkhs<VU_char>_direct): New (copy of
42910         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
42911         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
42912         target is little endian and -maltivec=be is not specified.
42913         (*altivec_vupkls<VU_char>_direct): New (copy of
42914         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
42915         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
42916         little endian and -maltivec=be is not specified.
42917         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
42918         little endian and -maltivec=be is not specified.
42920 2014-02-05  Richard Henderson  <rth@redhat.com>
42922         PR debug/52727
42923         * combine-stack-adj.c: Revert r206943.
42924         * sched-int.h (struct deps_desc): Add last_args_size.
42925         * sched-deps.c (init_deps): Initialize it.
42926         (sched_analyze_insn): Add OUTPUT dependencies between insns that
42927         contain REG_ARGS_SIZE notes.
42929 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
42931         * lto-cgraph.c (asm_nodes_output): Make global.
42932         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
42933         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
42934         (driver_handle_option): Handle OPT_fwpa.
42936 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
42938         PR ipa/59947
42939         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
42940         a comment typo and formatting issue.  If odr_hash hasn't been
42941         created, return vNULL and set *completep to false.
42943         PR middle-end/57499
42944         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
42945         bb with no successors.
42947 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
42949         PR target/59718
42950         * doc/invoke.texi (-march): Clarify documentation for ARM.
42951         (-mtune): Likewise.
42952         (-mcpu): Likewise.
42954 2014-02-05  Richard Biener  <rguenther@suse.de>
42956         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
42957         when not vectorizing because of too many alias checks.
42958         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
42959         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
42961 2014-02-05  Nick Clifton  <nickc@redhat.com>
42963         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
42964         accept extended registers in any mode when compiling for the MN10300.
42966 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
42968         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
42969         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
42970         sanitization attributes.
42971         (can_inline_edge_p): Likewise.
42972         (sanitize_attrs_match_for_inline_p): New function.
42974 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
42976         * ipa-prop.c (detect_type_change): Shor circuit testing of
42977         type changes on THIS pointer.
42979 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
42981         PR target/59777
42982         * config/pa/pa.c (legitimize_tls_address): Return original address
42983         if not passed a SYMBOL_REF rtx.
42984         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
42985         addresses.
42986         (pa_emit_move_sequence): Simplify TLS source operands.
42987         (pa_legitimate_constant_p): Reject all TLS constants.
42988         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
42989         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
42991 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
42993         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
42994         groups when we know they are controlled by LTO.
42995         * varasm.c (default_binds_local_p_1): If object is in other partition,
42996         it will be resolved locally.
42998 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43000         * config/host-linux.c (linux_gt_pch_use_address): Don't
43001         use SSIZE_MAX because it is not always defined.
43003 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
43005         PR bootstrap/59913
43006         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
43007         threshold for pseudo splitting.
43008         (update_ebb_live_info): Process call argument hard registers and
43009         hard registers from insn definition too.
43010         (max_small_class_regs_num): New constant.
43011         (inherit_in_ebb): Update live hard regs through EBBs.  Update
43012         reloads_num only for small register classes.  Don't split for
43013         outputs of jumps.
43015 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
43017         PR ipa/60058
43018         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
43019         is non-null.
43021 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
43023         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
43024         visibility is safe.
43026 2014-02-04  Marek Polacek  <polacek@redhat.com>
43028         * gdbinit.in (pel): Define.
43030 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43032         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
43033         behavior.
43035 2014-02-04  Richard Biener  <rguenther@suse.de>
43037         PR lto/59723
43038         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
43039         in function context local.
43040         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
43041         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
43042         similar to LTO_imported_decl_ref.
43044 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
43046         PR tree-optimization/60002
43047         * cgraphclones.c (build_function_decl_skip_args): Clear
43048         DECL_LANG_SPECIFIC.
43050         PR tree-optimization/60023
43051         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
43052         false to gsi_replace.
43053         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
43054         has been in some EH region and vec_stmt could throw, add
43055         vec_stmt into the same EH region.
43056         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
43057         has no lhs, ignore it.
43058         * internal-fn.c (expand_MASK_LOAD): Likewise.
43060         PR ipa/60026
43061         * tree-inline.c (copy_forbidden): Fail for
43062         __attribute__((optimize (0))) functions.
43064         PR other/58712
43065         * omp-low.c (simd_clone_struct_copy): If from->inbranch
43066         is set, copy one less argument.
43067         (expand_simd_clones): Don't subtract clone_info->inbranch
43068         from simd_clone_struct_alloc argument.
43070         PR rtl-optimization/57915
43071         * recog.c (simplify_while_replacing): If all unary/binary/relational
43072         operation arguments are constant, attempt to simplify those.
43074         PR middle-end/59261
43075         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
43076         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
43078 2014-02-04  Richard Biener  <rguenther@suse.de>
43080         PR tree-optimization/60012
43081         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
43082         TBAA disambiguation to all DDRs.
43084 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43086         PR target/59788
43087         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
43088         (LINK_SPEC): Use it for -shared, -shared-libgcc.
43090 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
43092         PR ipa/59882
43093         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
43095 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
43097         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
43098         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
43100 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
43102         PR ipa/59831
43103         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
43104         to figure out targets of polymorphic calls with known decl.
43105         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43106         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
43107         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
43108         (get_polymorphic_call_info): ... here.
43109         (get_polymorphic_call_info_from_invariant): New function.
43111 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
43113         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
43114         lookup via vtable pointer; check for type consistency
43115         and turn inconsitent facts into UNREACHABLE.
43116         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43117         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
43118         type inconsistent querries; return UNREACHABLE instead.
43120 2014-02-03  Richard Henderson  <rth@twiddle.net>
43122         PR tree-opt/59924
43123         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
43124         already processed this node.
43125         (normalize_one_pred_1): Pass along mark_set.
43126         (normalize_one_pred): Create and destroy a pointer_set_t.
43127         (normalize_one_pred_chain): Likewise.
43129 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
43131         PR gcov-profile/58602
43132         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
43134 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
43136         PR ipa/59831
43137         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
43138         -fno-devirtualize; try to devirtualize by the knowledge of
43139         virtual table pointer given by aggregate propagation.
43140         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43141         (ipa_print_node_jump_functions): Dump also offset that
43142         is relevant for polymorphic calls.
43143         (determine_known_aggregate_parts): Add arg_type parameter; use it
43144         instead of determining the type from pointer type.
43145         (ipa_compute_jump_functions_for_edge): Update call of
43146         determine_known_aggregate_parts.
43147         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
43148         (gimple_get_virt_method_for_binfo): ... here; simplify using
43149         vtable_pointer_value_to_vtable.
43150         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
43151         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
43152         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
43153         (vtable_pointer_value_to_vtable): Break out from ...; handle also
43154         POINTER_PLUS_EXPR.
43155         (vtable_pointer_value_to_binfo): ... here.
43156         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
43158 2014-02-03  Teresa Johnson  <tejohnson@google.com>
43160         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
43161         redef of outer loop index variable.
43163 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
43165         PR c++/53017
43166         PR c++/59211
43167         * doc/extend.texi (Function Attributes): Typo.
43169 2014-02-03  Cong Hou  <congh@google.com>
43171         PR tree-optimization/60000
43172         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
43173         if the vectorized statement is a store.  A store statement can only
43174         appear at the end of pattern statements.
43176 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
43178         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
43179         (ix86_option_override_internal): Default long double to 64-bit for
43180         32-bit Bionic and to 128-bit for 64-bit Bionic.
43182         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
43183         TARGET_LONG_DOUBLE_128 is true.
43184         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
43186         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
43187         (mlong-double-64): Negate -mlong-double-128.
43188         (mlong-double-128): New option.
43190         * config/i386/i386-c.c (ix86_target_macros): Define
43191         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
43193         * doc/invoke.texi: Document -mlong-double-128.
43195 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
43197         PR rtl-optimization/60024
43198         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
43200 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
43202         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
43204 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
43206         PR rtl-optimization/57662
43207         * sel-sched.c (code_motion_path_driver): Do not mark already not
43208         existing blocks in the visiting bitmap.
43210 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
43212         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
43213         on the insn being emitted.
43215 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
43216             Will Deacon  <will.deacon@arm.com>
43218         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
43220 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43222         * config/arm/arm-tables.opt: Regenerate.
43224 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43226         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
43227         for vector types other than V16QImode.
43228         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
43229         define_expand, and call altivec_expand_vec_perm_le when producing
43230         code with little endian element order.
43231         (*altivec_vperm_<mode>_internal): New insn having previous
43232         behavior of altivec_vperm_<mode>.
43233         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
43234         altivec_expand_vec_perm_le when producing code with little endian
43235         element order.
43236         (*altivec_vperm_<mode>_uns_internal): New insn having previous
43237         behavior of altivec_vperm_<mode>_uns.
43239 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43241         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
43242         (altivec_vsumsws): Add handling for -maltivec=be with a little
43243         endian target.
43244         (altivec_vsumsws_direct): New.
43245         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
43246         gen_altivec_vsumsws.
43248 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
43250         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
43251         vtable_pointer_value_to_binfo): New functions.
43252         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
43253         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
43255 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
43257         * config/nios2/nios2.md (load_got_register): Initialize GOT
43258         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
43259         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
43261 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
43263         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
43264         preserverd by passthrough, do not propagate the type.
43266 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
43268         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
43269         (mips_atomic_assign_expand_fenv): New function.
43270         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43272 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
43274         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
43275         (__builtin_mips_set_fcsr): Likewise.
43276         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
43277         MIPS_USI_FTYPE_VOID.
43278         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
43279         (mips16_expand_set_fcsr): Likewise.
43280         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
43281         (mips16_set_fcsr_stub): Likewise.
43282         (mips16_get_fcsr_one_only_stub): New class.
43283         (mips16_set_fcsr_one_only_stub): Likewise.
43284         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
43285         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
43286         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
43287         (hard_float): New availability predicate.
43288         (mips_builtins): Add get_fcsr and set_fcsr.
43289         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
43290         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
43291         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
43292         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
43293         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
43294         patterns.
43296 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
43298         * config/mips/mips.c (mips_one_only_stub): New class.
43299         (mips_need_mips16_rdhwr_p): Replace with...
43300         (mips16_rdhwr_stub): ...this new variable.
43301         (mips16_stub_call_address): New function.
43302         (mips16_rdhwr_one_only_stub): New class.
43303         (mips_expand_thread_pointer): Use mips16_stub_call_address.
43304         (mips_output_mips16_rdhwr): Delete.
43305         (mips_finish_stub): New function.
43306         (mips_code_end): Use it to handle rdhwr stubs.
43308 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
43310         PR target/60017
43311         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
43312         when calculating size of integer atomic types.
43314 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
43316         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
43318 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
43320         PR tree-optimization/60003
43321         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
43322         * profile.c (branch_prob): Use gimple_call_builtin_p
43323         to check for BUILT_IN_SETJMP_RECEIVER.
43324         * tree-inline.c (copy_bb): Call notice_special_calls.
43326 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
43328         PR bootstrap/59985
43329         * lra-constraints.c (process_alt_operands): Update reload_sum only
43330         on the first pass.
43332 2014-01-31  Richard Henderson  <rth@redhat.com>
43334         PR middle-end/60004
43335         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
43336         until after else_eh is processed.
43338 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
43340         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
43341         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
43342         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
43343         in smmintrin.h, remove them.
43344         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
43345         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
43346         * config/i386/i386.md (ROUND_SAE): Fix value.
43347         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
43348         (const48_operand): New.
43349         * config/i386/subst.md (round), (round_expand): Use
43350         const_4_or_8_to_11_operand.
43351         (round_saeonly), (round_saeonly_expand): Use const48_operand.
43353 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
43355         * config/i386/constraints.md (Yk): Swap meaning with k.
43356         * config/i386/i386.md (movhi_internal): Change Yk to k.
43357         (movqi_internal): Ditto.
43358         (*k<logic><mode>): Ditto.
43359         (*andhi_1): Ditto.
43360         (*andqi_1): Ditto.
43361         (kandn<mode>): Ditto.
43362         (*<code>hi_1): Ditto.
43363         (*<code>qi_1): Ditto.
43364         (kxnor<mode>): Ditto.
43365         (kortestzhi): Ditto.
43366         (kortestchi): Ditto.
43367         (kunpckhi): Ditto.
43368         (*one_cmplhi2_1): Ditto.
43369         (*one_cmplqi2_1): Ditto.
43370         * config/i386/sse.md (): Change k to Yk.
43371         (avx512f_load<mode>_mask): Ditto.
43372         (avx512f_blendm<mode>): Ditto.
43373         (avx512f_store<mode>_mask): Ditto.
43374         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
43375         (avx512f_storedqu<mode>_mask): Ditto.
43376         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
43377         Ditto.
43378         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
43379         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
43380         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
43381         (avx512f_maskcmp<mode>3): Ditto.
43382         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
43383         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
43384         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
43385         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
43386         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
43387         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
43388         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
43389         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
43390         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
43391         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
43392         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
43393         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
43394         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
43395         (vec_extract_lo_<mode>_maskm): Ditto.
43396         (vec_extract_hi_<mode>_maskm): Ditto.
43397         (avx512f_vternlog<mode>_mask): Ditto.
43398         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
43399         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
43400         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
43401         (avx512f_<code>v8div16qi2_mask): Ditto.
43402         (avx512f_<code>v8div16qi2_mask_store): Ditto.
43403         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
43404         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
43405         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
43406         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
43407         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43408         (*avx512pf_gatherpf<mode>df_mask): Ditto.
43409         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43410         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43411         (avx512cd_maskb_vec_dupv8di): Ditto.
43412         (avx512cd_maskw_vec_dupv16si): Ditto.
43413         (avx512f_vpermi2var<mode>3_maskz): Ditto.
43414         (avx512f_vpermi2var<mode>3_mask): Ditto.
43415         (avx512f_vpermi2var<mode>3_mask): Ditto.
43416         (avx512f_vpermt2var<mode>3_maskz): Ditto.
43417         (*avx512f_gathersi<mode>): Ditto.
43418         (*avx512f_gathersi<mode>_2): Ditto.
43419         (*avx512f_gatherdi<mode>): Ditto.
43420         (*avx512f_gatherdi<mode>_2): Ditto.
43421         (*avx512f_scattersi<mode>): Ditto.
43422         (*avx512f_scatterdi<mode>): Ditto.
43423         (avx512f_compress<mode>_mask): Ditto.
43424         (avx512f_compressstore<mode>_mask): Ditto.
43425         (avx512f_expand<mode>_mask): Ditto.
43426         * config/i386/subst.md (mask): Change k to Yk.
43427         (mask_scalar_merge): Ditto.
43428         (sd): Ditto.
43430 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
43432         * doc/extend.texi (Vector Extensions): Document ?: in C++.
43434 2014-01-31  Richard Biener  <rguenther@suse.de>
43436         PR middle-end/59990
43437         * builtins.c (fold_builtin_memory_op): Make sure to not
43438         use a floating-point mode or a boolean or enumeral type for
43439         the copy operation.
43441 2014-01-30  DJ Delorie  <dj@redhat.com>
43443         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
43444         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
43445         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
43446         whenever main() has an epilogue.
43448 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43450         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
43451         unused variable "field".
43452         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
43453         (vsx_mergeh_<mode>): Likewise.
43454         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
43455         (altivec_vmrghh): Likewise.
43456         (altivec_vmrghw): Likewise.
43457         (altivec_vmrglb): Likewise.
43458         (altivec_vmrglh): Likewise.
43459         (altivec_vmrglw): Likewise.
43460         (altivec_vspltb): Add missing uses.
43461         (altivec_vsplth): Likewise.
43462         (altivec_vspltw): Likewise.
43463         (altivec_vspltsf): Likewise.
43465 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
43467         PR target/59923
43468         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
43469         frame related instructions.
43471 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
43473         PR rtl-optimization/59959
43474         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
43475         any reload of register whose subreg is invalid.
43477 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
43479         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
43480         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
43481         Add missing return type - void.
43483 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43485         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
43486         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
43487         remove element index adjustment for endian (now handled in vsx.md
43488         and altivec.md).
43489         (altivec_expand_vec_perm_const): Use
43490         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
43491         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
43492         (vsx_xxspltw_<mode>): Adjust element index for little endian.
43493         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
43494         define_expand and a new define_insn *altivec_vspltb_internal;
43495         adjust for -maltivec=be on a little endian target.
43496         (altivec_vspltb_direct): New.
43497         (altivec_vsplth): Divide into a define_expand and a new
43498         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
43499         little endian target.
43500         (altivec_vsplth_direct): New.
43501         (altivec_vspltw): Divide into a define_expand and a new
43502         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
43503         little endian target.
43504         (altivec_vspltw_direct): New.
43505         (altivec_vspltsf): Divide into a define_expand and a new
43506         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
43507         a little endian target.
43509 2014-01-30  Richard Biener  <rguenther@suse.de>
43511         PR tree-optimization/59993
43512         * tree-ssa-forwprop.c (associate_pointerplus): Check we
43513         can propagate form the earlier stmt and avoid the transform
43514         when the intermediate result is needed.
43516 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
43518         * README.Portability: Fix typo.
43520 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
43522         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
43523         comparison_operator with ordered_comparison_operator.
43525 2014-01-30  Nick Clifton  <nickc@redhat.com>
43527         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
43528         Rename to mn10300_store_multiple_regs.
43529         * config/mn10300/mn10300.c: Likewise.
43530         * config/mn10300/mn10300.md (store_movm): Fix typo: call
43531         store_multiple_regs.
43532         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
43533         Call mn10300_store_multiple_regs.
43535 2014-01-30  Nick Clifton  <nickc@redhat.com>
43536             DJ Delorie  <dj@redhat.com>
43538         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
43539         %fp 2 to keep registers after it properly word-aligned.
43540         (rl78_alloc_physical_registers_umul): Handle the case where both
43541         input operands are the same.
43543 2014-01-30  Richard Biener  <rguenther@suse.de>
43545         PR tree-optimization/59903
43546         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
43547         check properly.
43549 2014-01-30  Jason Merrill  <jason@redhat.com>
43551         PR c++/59633
43552         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
43554         PR c++/59645
43555         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
43557 2014-01-30  Richard Biener  <rguenther@suse.de>
43559         PR tree-optimization/59951
43560         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
43562 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
43564         PR target/59784
43565         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
43566         SFmode to DFmode case.
43568 2014-01-29  DJ Delorie  <dj@redhat.com>
43570         * config/msp430/msp430.opt (-minrt): New.
43571         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
43572         if -minrt given.
43573         (ENDFILE_SPEC): Likewise.
43575 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
43577         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
43578         (estimate_function_body_sizes): Use it.
43580 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
43582         PR c++/58561
43583         * dwarf2out.c (is_cxx_auto): New.
43584         (is_base_type): Use it.
43585         (gen_type_die_with_usage): Likewise.
43587 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43589         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
43590         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
43591         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
43592         -maltivec=be with LE targets.
43593         (vsx_mergeh_<mode>): Likewise.
43594         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
43595         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
43596         (altivec_vmrghb): Replace with define_expand and new
43597         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
43598         (altivec_vmrghb_direct): New define_insn.
43599         (altivec_vmrghh): Replace with define_expand and new
43600         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
43601         (altivec_vmrghh_direct): New define_insn.
43602         (altivec_vmrghw): Replace with define_expand and new
43603         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
43604         (altivec_vmrghw_direct): New define_insn.
43605         (*altivec_vmrghsf): Adjust for endianness.
43606         (altivec_vmrglb): Replace with define_expand and new
43607         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
43608         (altivec_vmrglb_direct): New define_insn.
43609         (altivec_vmrglh): Replace with define_expand and new
43610         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
43611         (altivec_vmrglh_direct): New define_insn.
43612         (altivec_vmrglw): Replace with define_expand and new
43613         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
43614         (altivec_vmrglw_direct): New define_insn.
43615         (*altivec_vmrglsf): Adjust for endianness.
43616         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
43617         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
43618         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
43619         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
43620         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
43621         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
43622         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
43623         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
43625 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
43627         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
43628         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
43629         whitespace.
43631 2014-01-29  Richard Biener  <rguenther@suse.de>
43633         PR tree-optimization/58742
43634         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
43635         associate_pointerplus_align.
43636         (associate_pointerplus_diff): New function.
43637         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
43638         and associate_pointerplus_diff.
43640 2014-01-29  Richard Biener  <rguenther@suse.de>
43642         * lto-streamer.h (LTO_major_version): Bump to 3.
43643         (LTO_minor_version): Reset to 0.
43645 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
43647         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
43648         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
43649         (arm_file_start): Generate correct asm header for armv7ve.
43650         * config/arm/bpabi.h: Add multilib support for armv7ve.
43651         * config/arm/driver-arm.c: Change the architectures of cortex-a7
43652         and cortex-a15 to armv7ve.
43653         * config/arm/t-aprofile: Add multilib support for armv7ve.
43654         * doc/invoke.texi: Document -march=armv7ve.
43656 2014-01-29  Richard Biener  <rguenther@suse.de>
43658         PR tree-optimization/58742
43659         * tree-ssa-forwprop.c (associate_plusminus): Return true
43660         if we changed sth, defer EH cleanup to ...
43661         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
43662         (simplify_mult): New function.
43664 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
43666         PR middle-end/59917
43667         PR tree-optimization/59920
43668         * tree.c (build_common_builtin_nodes): Remove
43669         __builtin_setjmp_dispatcher initialization.
43670         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
43671         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
43672         instead of gsi_after_labels + manually skipping debug stmts.
43673         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
43674         ignore bbs with IFN_ABNORMAL_DISPATCHER.
43675         * tree-inline.c (copy_edges_for_bb): Remove
43676         can_make_abnormal_goto argument, instead add abnormal_goto_dest
43677         argument.  Ignore computed_goto_p stmts.  Don't call
43678         make_abnormal_goto_edges.  If a call might need abnormal edges
43679         for non-local gotos, see if it already has an edge to
43680         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
43681         with true argument, don't do anything then, otherwise add
43682         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
43683         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
43684         caller.
43685         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
43686         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
43687         (lower_stmt): Don't set data->calls_builtin_setjmp.
43688         (lower_builtin_setjmp): Adjust comment.
43689         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
43690         * tree-cfg.c (found_computed_goto): Remove.
43691         (factor_computed_gotos): Remove.
43692         (make_goto_expr_edges): Return bool, true for computed gotos.
43693         Don't call make_abnormal_goto_edges.
43694         (build_gimple_cfg): Don't set found_computed_goto, don't call
43695         factor_computed_gotos.
43696         (computed_goto_p): No longer static.
43697         (make_blocks): Don't set found_computed_goto.
43698         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
43699         (make_edges): If make_goto_expr_edges returns true, push bb
43700         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
43701         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
43702         vector.  Record mapping between bbs and OpenMP regions if there
43703         are any, adjust make_gimple_omp_edges caller.  Call
43704         handle_abnormal_edges.
43705         (make_abnormal_goto_edges): Remove.
43706         * tree-cfg.h (make_abnormal_goto_edges): Remove.
43707         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
43708         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
43709         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
43710         * internal-fn.def (ABNORMAL_DISPATCHER): New.
43711         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
43712         filling *region also set *region_idx to (*region)->entry->index.
43714         PR other/58712
43715         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
43716         For REGs set ORIGINAL_REGNO.
43718 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
43720         * doc/md.texi: Mention that a target shouldn't implement
43721         vec_widen_(s|u)mul_even/odd pair if it is less efficient
43722         than hi/lo pair.
43724 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
43726         PR tree-optimization/59594
43727         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
43728         a copy of the datarefs vector rather than the vector itself.
43730 2014-01-28  Jason Merrill  <jason@redhat.com>
43732         PR c++/53756
43733         * dwarf2out.c (auto_die): New static.
43734         (gen_type_die_with_usage): Handle C++1y 'auto'.
43735         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
43736         on definition.
43738 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
43740         PR target/59672
43741         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
43742         (SPEC_X32): Likewise.
43743         (SPEC_64): Likewise.
43744         * config/i386/i386.c (ix86_option_override_internal): Turn off
43745         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
43746         for TARGET_16BIT.
43747         (x86_file_start): Output .code16gcc for TARGET_16BIT.
43748         * config/i386/i386.h (TARGET_16BIT): New macro.
43749         (TARGET_16BIT_P): Likewise.
43750         * config/i386/i386.opt: Add m16.
43751         * doc/invoke.texi: Document -m16.
43753 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
43755         PR preprocessor/59935
43756         * input.c (location_get_source_line): Bail out on when line number
43757         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
43759 2014-01-28  Richard Biener  <rguenther@suse.de>
43761         PR tree-optimization/58742
43762         * tree-ssa-forwprop.c (associate_plusminus): Handle
43763         pointer subtraction of the form (T)(P + A) - (T)P.
43765 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43767         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
43768         at const_int_cost.
43770 2014-01-28  Richard Biener  <rguenther@suse.de>
43772         Revert
43773         2014-01-28  Richard Biener  <rguenther@suse.de>
43775         PR rtl-optimization/45364
43776         PR rtl-optimization/59890
43777         * var-tracking.c (local_get_addr_clear_given_value): Handle
43778         already cleared slot.
43779         (val_reset): Handle not allocated local_get_addr_cache.
43780         (vt_find_locations): Use post-order on the inverted CFG.
43782 2014-01-28  Richard Biener  <rguenther@suse.de>
43784         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
43786 2014-01-28  Richard Biener  <rguenther@suse.de>
43788         PR rtl-optimization/45364
43789         PR rtl-optimization/59890
43790         * var-tracking.c (local_get_addr_clear_given_value): Handle
43791         already cleared slot.
43792         (val_reset): Handle not allocated local_get_addr_cache.
43793         (vt_find_locations): Use post-order on the inverted CFG.
43795 2014-01-28  Alan Modra  <amodra@gmail.com>
43797         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
43798         * configure.ac <recursive call for build != host>: Define
43799         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
43800         and LD_FOR_BUILD too.
43801         * configure: Regenerate.
43803 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
43805         * config/i386/i386.c (get_builtin_code_for_version): Separate
43806         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
43807         Broadwell from Haswell.
43809 2014-01-27  Steve Ellcey  <sellcey@mips.com>
43811         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43812         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
43813         * config/mips/mips.c (mips_option_override): Change setting
43814         of TARGET_DSP.
43815         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
43816         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
43817         Change from Mask to Var.
43819 2014-01-27  Jeff Law  <law@redhat.com>
43821         * ipa-inline.c (inline_small_functions): Fix typo.
43823 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
43825         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
43826         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
43827         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
43828         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
43829         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
43830         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
43831         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
43832         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
43833         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
43834         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
43835         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
43836         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
43837         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
43838         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
43839         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
43840         (_mm512_storeu_epi64): Ditto.
43841         (_mm512_cmpge_epi32_mask): Ditto.
43842         (_mm512_cmpge_epu32_mask): Ditto.
43843         (_mm512_cmpge_epi64_mask): Ditto.
43844         (_mm512_cmpge_epu64_mask): Ditto.
43845         (_mm512_cmple_epi32_mask): Ditto.
43846         (_mm512_cmple_epu32_mask): Ditto.
43847         (_mm512_cmple_epi64_mask): Ditto.
43848         (_mm512_cmple_epu64_mask): Ditto.
43849         (_mm512_cmplt_epi32_mask): Ditto.
43850         (_mm512_cmplt_epu32_mask): Ditto.
43851         (_mm512_cmplt_epi64_mask): Ditto.
43852         (_mm512_cmplt_epu64_mask): Ditto.
43853         (_mm512_cmpneq_epi32_mask): Ditto.
43854         (_mm512_cmpneq_epu32_mask): Ditto.
43855         (_mm512_cmpneq_epi64_mask): Ditto.
43856         (_mm512_cmpneq_epu64_mask): Ditto.
43857         (_mm512_expand_pd): Ditto.
43858         (_mm512_expand_ps): Ditto.
43859         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
43860         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
43861         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
43862         * config/i386/i386.c (ix86_builtins): Add
43863         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
43864         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
43865         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
43866         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
43867         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
43868         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
43869         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
43870         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
43871         IX86_BUILTIN_PMOVUSQW512_MEM.
43872         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
43873         __builtin_ia32_pmovsqd512mem_mask,
43874         __builtin_ia32_pmovqd512mem_mask,
43875         __builtin_ia32_pmovusqw512mem_mask,
43876         __builtin_ia32_pmovsqw512mem_mask,
43877         __builtin_ia32_pmovqw512mem_mask,
43878         __builtin_ia32_pmovusdw512mem_mask,
43879         __builtin_ia32_pmovsdw512mem_mask,
43880         __builtin_ia32_pmovdw512mem_mask,
43881         __builtin_ia32_pmovqb512mem_mask,
43882         __builtin_ia32_pmovusqb512mem_mask,
43883         __builtin_ia32_pmovsqb512mem_mask,
43884         __builtin_ia32_pmovusdb512mem_mask,
43885         __builtin_ia32_pmovsdb512mem_mask,
43886         __builtin_ia32_pmovdb512mem_mask.
43887         (bdesc_args): Add __builtin_ia32_expanddf512,
43888         __builtin_ia32_expandsf512.
43889         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
43890         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
43891         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
43892         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
43893         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
43894         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
43895         (avx512f_<code>v8div16qi2_mask_store): This.
43896         (avx512f_expand<mode>): New.
43898 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
43900         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
43901         New.
43902         (_mm512_mask_prefetch_i64gather_pd): Ditto.
43903         (_mm512_prefetch_i32scatter_pd): Ditto.
43904         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
43905         (_mm512_prefetch_i64scatter_pd): Ditto.
43906         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
43907         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
43908         (_mm512_mask_prefetch_i64gather_ps): Ditto.
43909         (_mm512_prefetch_i32scatter_ps): Ditto.
43910         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
43911         (_mm512_prefetch_i64scatter_ps): Ditto.
43912         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
43913         * config/i386/i386-builtin-types.def: Define
43914         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
43915         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
43916         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
43917         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
43918         IX86_BUILTIN_SCATTERPFQPD.
43919         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
43920         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
43921         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
43922         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
43923         __builtin_ia32_scatterpfqps.
43924         (ix86_expand_builtin): Expand new built-ins.
43925         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
43926         fix memory access data type.
43927         (*avx512pf_gatherpf<mode>_mask): Ditto.
43928         (*avx512pf_gatherpf<mode>): Ditto.
43929         (avx512pf_scatterpf<mode>): Ditto.
43930         (*avx512pf_scatterpf<mode>_mask): Ditto.
43931         (*avx512pf_scatterpf<mode>): Ditto.
43932         (GATHER_SCATTER_SF_MEM_MODE): New.
43933         (avx512pf_gatherpf<mode>df): Ditto.
43934         (*avx512pf_gatherpf<mode>df_mask): Ditto.
43935         (*avx512pf_scatterpf<mode>df): Ditto.
43937 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
43939         PR bootstrap/59934
43940         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
43941         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
43942         reached.
43944 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
43946         * common/config/arm/arm-common.c
43947         (arm_rewrite_mcpu): Handle multiple names.
43948         * config/arm/arm.h
43949         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
43951 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
43953         * gimple-builder.h (create_gimple_tmp): Delete.
43955 2014-01-27  Christian Bruel  <christian.bruel@st.com>
43957         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
43958         words comparisons.
43960 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
43962         * config/pa/pa.md (call): Generate indirect long calls to non-local
43963         functions when outputing 32-bit code.
43964         (call_value): Likewise except for special call to buggy powf function.
43966         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
43967         portable runtime and PIC indirect calls.
43968         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
43969         and PIC call sequences.  Use ldo instead of blr to set return register
43970         in PIC call sequence.
43972 2014-01-25  Walter Lee  <walt@tilera.com>
43974         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
43975         avoid clobbering a live register.
43977 2014-01-25  Walter Lee  <walt@tilera.com>
43979         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
43980         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
43981         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
43982         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
43984 2014-01-25  Walter Lee  <walt@tilera.com>
43986         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
43987         arguments on even registers.
43988         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
43989         STACK_BOUNDARY.
43990         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
43991         (BIGGEST_ALIGNMENT): Ditto.
43992         (BIGGEST_FIELD_ALIGNMENT): Ditto.
43994 2014-01-25  Walter Lee  <walt@tilera.com>
43996         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
43997         insns before bundling.
43998         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
44000 2014-01-25  Walter Lee  <walt@tilera.com>
44002         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
44003         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
44004         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
44006 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
44008         * config/mips/constraints.md (kl): Delete.
44009         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
44010         define expands, using...
44011         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
44012         instructions for MIPS16.
44013         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
44014         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
44016 2014-01-25  Walter Lee  <walt@tilera.com>
44018         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
44019         (clzdi2): Ditto.
44020         (ffsdi2): Ditto.
44022 2014-01-25  Walter Lee  <walt@tilera.com>
44024         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
44025         (TARGET_EXPAND_TO_RTL_HOOK): Define.
44027 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
44029         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
44030         Handle XOR.
44032 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
44034         * print-rtl.c (in_call_function_usage): New var.
44035         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
44036         EXPR_LIST mode as mode and not as reg note name.
44038         PR middle-end/59561
44039         * cfgloopmanip.c (copy_loop_info): If
44040         loop->warned_aggressive_loop_optimizations, make sure
44041         the flag is set in target loop too.
44043 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
44045         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
44046         flag_cilkplus.
44047         * builtins.def: Likewise.
44048         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
44049         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
44050         * ira.c (ira_setup_eliminable_regset): Likewise.
44051         * omp-low.c (gate_expand_omp): Likewise.
44052         (execute_lower_omp): Likewise.
44053         (diagnose_sb_0): Likewise.
44054         (gate_diagnose_omp_blocks): Likewise.
44055         (simd_clone_clauses_extract): Likewise.
44056         (gate): Likewise.
44058 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44060         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
44061         correction for little endian...
44062         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
44063         here.
44065 2014-01-24  Jeff Law  <law@redhat.com>
44067         PR tree-optimization/59919
44068         * tree-vrp.c (find_assert_locations_1): Do not register asserts
44069         for non-returning calls.
44071 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
44073         * common/config/aarch64/aarch64-common.c
44074         (aarch64_rewrite_mcpu): Handle multiple names.
44075         * config/aarch64/aarch64.h
44076         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44078 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
44080         * input.c (add_file_to_cache_tab): Handle the case where fopen
44081         returns NULL.
44083 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
44085         PR target/59929
44086         * config/i386/i386.md (pushsf splitter): Get stack adjustment
44087         from push operand if code of push isn't PRE_DEC.
44089 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
44091         PR target/59909
44092         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
44093         -mquad-memory-atomic.  Update -mquad-memory documentation to say
44094         it is only used for non-atomic loads/stores.
44096         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
44097         -mquad-memory or -mquad-memory-atomic switches.
44099         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
44100         -mquad-memory-atomic to ISA 2.07 support.
44102         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
44103         to separate support of normal quad word memory operations (ldq, stq)
44104         from the atomic quad word memory operations.
44106         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
44107         support to separate non-atomic quad word operations from atomic
44108         quad word operations.  Disable non-atomic quad word operations in
44109         little endian mode so that we don't have to swap words after the
44110         load and before the store.
44111         (quad_load_store_p): Add comment about atomic quad word support.
44112         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
44113         options printed with -mdebug=reg.
44115         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
44116         -mquad-memory-atomic as the test for whether we have quad word
44117         atomic instructions.
44118         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
44119         or -mp8-vector are used, allow byte/half-word atomic operations.
44121         * config/rs6000/sync.md (load_lockedti): Insure that the address
44122         is a proper indexed or indirect address for the lqarx instruction.
44123         On little endian systems, swap the hi/lo registers after the lqarx
44124         instruction.
44125         (load_lockedpti): Use indexed_or_indirect_operand predicate to
44126         insure the address is valid for the lqarx instruction.
44127         (store_conditionalti): Insure that the address is a proper indexed
44128         or indirect address for the stqcrx. instruction.  On little endian
44129         systems, swap the hi/lo registers before doing the stqcrx.
44130         instruction.
44131         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
44132         insure the address is valid for the stqcrx. instruction.
44134         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
44135         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
44136         type of quad memory support is available.
44138 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
44140         PR regression/59915
44141         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
44142         there is a danger of looping.
44144 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
44146         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
44147         force flag_ira_loop_pressure if set via command line.
44149 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
44151         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
44152         (ashr_simd): New builtin handling DI mode.
44153         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
44154         (aarch64_sshr_simddi): New match pattern.
44155         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
44156         (vshrd_n_s64): Likewise.
44157         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
44159 2014-01-23  Nick Clifton  <nickc@redhat.com>
44161         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
44162         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
44163         favour of mcu specific scripts.
44164         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
44165         430x multilibs.
44167 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
44168             Alex Velenko  <Alex.Velenko@arm.com>
44170         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
44171         (vaddv_s16): Likewise.
44172         (vaddv_s32): Likewise.
44173         (vaddv_u8): Likewise.
44174         (vaddv_u16): Likewise.
44175         (vaddv_u32): Likewise.
44176         (vaddvq_s8): Likewise.
44177         (vaddvq_s16): Likewise.
44178         (vaddvq_s32): Likewise.
44179         (vaddvq_s64): Likewise.
44180         (vaddvq_u8): Likewise.
44181         (vaddvq_u16): Likewise.
44182         (vaddvq_u32): Likewise.
44183         (vaddvq_u64): Likewise.
44184         (vaddv_f32): Likewise.
44185         (vaddvq_f32): Likewise.
44186         (vaddvq_f64): Likewise.
44187         (vmaxv_f32): Likewise.
44188         (vmaxv_s8): Likewise.
44189         (vmaxv_s16): Likewise.
44190         (vmaxv_s32): Likewise.
44191         (vmaxv_u8): Likewise.
44192         (vmaxv_u16): Likewise.
44193         (vmaxv_u32): Likewise.
44194         (vmaxvq_f32): Likewise.
44195         (vmaxvq_f64): Likewise.
44196         (vmaxvq_s8): Likewise.
44197         (vmaxvq_s16): Likewise.
44198         (vmaxvq_s32): Likewise.
44199         (vmaxvq_u8): Likewise.
44200         (vmaxvq_u16): Likewise.
44201         (vmaxvq_u32): Likewise.
44202         (vmaxnmv_f32): Likewise.
44203         (vmaxnmvq_f32): Likewise.
44204         (vmaxnmvq_f64): Likewise.
44205         (vminv_f32): Likewise.
44206         (vminv_s8): Likewise.
44207         (vminv_s16): Likewise.
44208         (vminv_s32): Likewise.
44209         (vminv_u8): Likewise.
44210         (vminv_u16): Likewise.
44211         (vminv_u32): Likewise.
44212         (vminvq_f32): Likewise.
44213         (vminvq_f64): Likewise.
44214         (vminvq_s8): Likewise.
44215         (vminvq_s16): Likewise.
44216         (vminvq_s32): Likewise.
44217         (vminvq_u8): Likewise.
44218         (vminvq_u16): Likewise.
44219         (vminvq_u32): Likewise.
44220         (vminnmv_f32): Likewise.
44221         (vminnmvq_f32): Likewise.
44222         (vminnmvq_f64): Likewise.
44224 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
44226         * config/aarch64/aarch64-simd.md
44227         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
44228         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
44229         (*aarch64_mul3_elt<mode>): Likewise.
44230         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
44231         (*aarch64_mul3_elt_to_64v2df): Likewise.
44232         (*aarch64_mla_elt<mode>): Likewise.
44233         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
44234         (*aarch64_mls_elt<mode>): Likewise.
44235         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
44236         (*aarch64_fma4_elt<mode>): Likewise.
44237         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
44238         (*aarch64_fma4_elt_to_64v2df): Likewise.
44239         (*aarch64_fnma4_elt<mode>): Likewise.
44240         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
44241         (*aarch64_fnma4_elt_to_64v2df): Likewise.
44242         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
44243         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
44244         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44245         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44246         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
44247         (aarch64_sqdmull_lane<mode>_internal): Likewise.
44248         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
44250 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
44252         * config/aarch64/aarch64-simd.md
44253         (aarch64_be_checked_get_lane<mode>): New define_expand.
44254         * config/aarch64/aarch64-simd-builtins.def
44255         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
44256         New builtin definition.
44257         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
44258         Use new safe be builtin.
44260 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
44262         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
44263         New define_insn.
44264         (aarch64_be_st1<mode>): Likewise.
44265         (aarch_ld1<VALL:mode>): Define_expand modified.
44266         (aarch_st1<VALL:mode>): Likewise.
44267         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
44268         (UNSPEC_ST1): Likewise.
44270 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
44272         * config/microblaze/microblaze.md: Add trap insn and attribute
44274 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
44276         PR preprocessor/58580
44277         * input.h (location_get_source_line): Take an additional line_size
44278         parameter.
44279         (void diagnostics_file_cache_fini): Declare new function.
44280         * input.c (struct fcache): New type.
44281         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
44282         New static constants.
44283         (diagnostic_file_cache_init, total_lines_num)
44284         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
44285         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
44286         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
44287         (get_next_line, read_next_line, goto_next_line, read_line_num):
44288         New static function definitions.
44289         (diagnostic_file_cache_fini): New function.
44290         (location_get_source_line): Take an additional output line_len
44291         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
44292         read_line_num.
44293         * diagnostic.c (diagnostic_finish): Call
44294         diagnostic_file_cache_fini.
44295         (adjust_line): Take an additional input parameter for the length
44296         of the line, rather than calculating it with strlen.
44297         (diagnostic_show_locus): Adjust the use of
44298         location_get_source_line and adjust_line with respect to their new
44299         signature.  While displaying a line now, do not stop at the first
44300         null byte.  Rather, display the zero byte as a space and keep
44301         going until we reach the size of the line.
44302         * Makefile.in: Add vec.o to OBJS-libcommon
44304 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
44305             Ilya Tocar  <ilya.tocar@intel.com>
44307         * config/i386/avx512fintrin.h (_mm512_kmov): New.
44308         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
44309         (__builtin_ia32_kmov16): Ditto.
44310         * config/i386/i386.md (UNSPEC_KMOV): New.
44311         (kmovw): Ditto.
44313 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
44315         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
44316         (_mm512_storeu_si512): Ditto.
44318 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
44320         PR target/52125
44321         * rtl.h (get_referenced_operands): Declare.
44322         * recog.c (get_referenced_operands): New function.
44323         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
44324         operands have been referenced when recording LO_SUM references.
44326 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
44328         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
44330 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
44332         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
44333         Enable for generic and recent AMD targets.
44335 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
44337         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
44338         ARG_SIZE note when adjustment was eliminated.
44340 2014-01-22  Jeff Law  <law@redhat.com>
44342         PR tree-optimization/59597
44343         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
44344         in file.  Accept new argument REGISTERING and use it to modify
44345         dump output appropriately.
44346         (register_jump_thread): Corresponding changes.
44347         (mark_threaded_blocks): Reinstate code to cancel unprofitable
44348         thread paths involving joiner blocks.  Add code to dump cancelled
44349         jump threading paths.
44351 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
44353         PR rtl-optimization/59477
44354         * lra-constraints.c (inherit_in_ebb): Process call for living hard
44355         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
44357 2014-01-22  Tom Tromey  <tromey@redhat.com>
44359         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
44360         PARAMS.
44361         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
44363 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
44365         PR rtl-optimization/59896
44366         * lra-constraints.c (process_alt_operands): Check unused note for
44367         matched operands of insn with no output reloads.
44369 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
44371         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
44372         (mips_move_from_gpr_cost): Likewise.
44374 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
44376         PR rtl-optimization/59858
44377         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
44378         ira_class_hard_regs_num.
44379         (process_alt_operands): Increase reject for dying matched operand.
44381 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
44383         PR target/59003
44384         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
44385         smaller than size, perform several stores or loads and stores
44386         at dst + count - size to store or copy all of size bytes, rather
44387         than just last modesize bytes.
44389 2014-01-20  DJ Delorie  <dj@redhat.com>
44391         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
44392         that CLOBBERs are REGs before propogating their values.
44394 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
44396         PR middle-end/59789
44397         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
44398         (cgraph_inline_failed_type): New function.
44399         * cgraph.h (DEFCIFCODE): Add type.
44400         (cgraph_inline_failed_type_t): New enum.
44401         (cgraph_inline_failed_type): New prototype.
44402         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
44403         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
44404         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
44405         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
44406         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
44407         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
44408         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
44409         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
44410         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
44411         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
44412         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
44413         OPTIMIZATION_MISMATCH.
44414         * tree-inline.c (expand_call_inline): Emit errors during
44415         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
44417 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
44419         PR target/59685
44420         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
44421         mode attribute in insn output.
44423 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
44425         * output.h (output_constant): Delete.
44426         * varasm.c (output_constant): Make private.
44428 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
44430         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
44432 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
44434         PR middle-end/59860
44435         * tree.h (fold_builtin_strcat): New prototype.
44436         * builtins.c (fold_builtin_strcat): No longer static.  Add len
44437         argument, if non-NULL, don't call c_strlen.  Optimize
44438         directly into __builtin_memcpy instead of __builtin_strcpy.
44439         (fold_builtin_2): Adjust fold_builtin_strcat caller.
44440         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
44442 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
44444         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44445         for SImode_address_operand operands, having only a REG argument.
44447 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44449         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
44450         loader name using mbig-endian.
44451         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
44453 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
44455         * doc/invoke.texi (-march): Clarify documentation for AArch64.
44456         (-mtune): Likewise.
44457         (-mcpu): Likewise.
44459 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
44461         * config/aarch64/aarch64-protos.h
44462         (aarch64_cannot_change_mode_class_ptr): Declare.
44463         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
44464         aarch64_cannot_change_mode_class_ptr): New.
44465         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
44466         backend hook aarch64_cannot_change_mode_class.
44468 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
44470         * common/config/aarch64/aarch64-common.c
44471         (aarch64_handle_option): Don't handle any option order logic here.
44472         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
44473         selected_cpu, warn on architecture version mismatch.
44474         (aarch64_override_options): Fix parsing order for option strings.
44476 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
44477             Iain Sandoe  <iain@codesourcery.com>
44479         PR bootstrap/59496
44480         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
44481         warning.  Amend comment to reflect current functionality.
44483 2014-01-20  Richard Biener  <rguenther@suse.de>
44485         PR middle-end/59860
44486         * builtins.c (fold_builtin_strcat): Remove case better handled
44487         by tree-ssa-strlen.c.
44489 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
44491         * config/aarch64/aarch64.opt
44492         (mcpu, march, mtune): Make case-insensitive.
44494 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
44496         PR target/59880
44497         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44498         if operands[1] is a REG or ZERO_EXTEND of a REG.
44500 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
44502         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
44504 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
44506         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
44507         long non-pic millicode calls.
44509 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
44511         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
44513 2014-01-19  Kito Cheng  <kito@0xlab.org>
44515         * builtins.c (expand_movstr): Check movstr expand done or fail.
44517 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
44518             H.J. Lu  <hongjiu.lu@intel.com>
44520         PR target/59379
44521         * config/i386/i386.md (*lea<mode>): Zero-extend return register
44522         to DImode for zero-extended addresses.
44524 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
44526         PR rtl-optimization/57763
44527         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
44528         on the new indirect jump_insn and increment LABEL_NUSES (label).
44530 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
44532         PR bootstrap/59580
44533         PR bootstrap/59583
44534         * config.gcc (x86_archs): New variable.
44535         (x86_64_archs): Likewise.
44536         (x86_cpus): Likewise.
44537         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
44538         --with-arch/--with-cpu= options.
44539         Support --with-arch=/--with-cpu={nehalem,westmere,
44540         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
44542 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
44544         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
44545         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
44547 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
44549         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
44551 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
44553         PR target/58944
44554         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
44555         clear cpp_get_options (parse_in)->warn_unused_macros for
44556         ix86_target_macros_internal with cpp_define.
44558 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
44560         * jump.c (delete_related_insns): Keep (use (insn))s.
44561         * reorg.c (redundant_insn): Check for barriers too.
44563 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
44565         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
44567 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
44569         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
44570         call to $$dyncall when TARGET_LONG_CALLS is true.
44572 2014-01-17  Jeff Law  <law@redhat.com>
44574         * ree.c (combine_set_extension): Temporarily disable test for
44575         changing number of hard registers.
44577 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
44579         PR middle-end/58125
44580         * ipa-inline-analysis.c (inline_free_summary):
44581         Do not free summary of aliases.
44583 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
44585         PR middle-end/59706
44586         * gimplify.c (gimplify_expr): Use create_tmp_var
44587         instead of create_tmp_var_raw.  If cond doesn't have
44588         integral type, don't add the IFN_ANNOTATE builtin at all.
44590 2014-01-17  Martin Jambor  <mjambor@suse.cz>
44592         PR ipa/59736
44593         * ipa-cp.c (prev_edge_clone): New variable.
44594         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
44595         Also resize prev_edge_clone vector.
44596         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
44597         (ipcp_edge_removal_hook): New function.
44598         (ipcp_driver): Register ipcp_edge_removal_hook.
44600 2014-01-17  Andrew Pinski  <apinski@cavium.com>
44601             Steve Ellcey  <sellcey@mips.com>
44603         PR target/59462
44604         * config/mips/mips.c (mips_print_operand): Check operand mode instead
44605         of operator mode.
44607 2014-01-17  Jeff Law  <law@redhat.com>
44609         PR middle-end/57904
44610         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
44611         so that pass_ccp runs first.
44613 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
44615         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
44616         (ix86_adjust_cost): Use !TARGET_XXX.
44617         (do_reorder_for_imul): Likewise.
44618         (swap_top_of_ready_list): Likewise.
44619         (ix86_sched_reorder): Likewise.
44621 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
44623         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44624         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
44625         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
44626         (intel_memset): New.  Duplicate slm_memset.
44627         (intel_cost): New.  Duplicate slm_cost.
44628         (m_INTEL): New macro.
44629         (processor_target_table): Add "intel".
44630         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
44631         with PROCESSOR_INTEL for "intel".
44632         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
44633         PROCESSOR_SILVERMONT.
44634         (ix86_issue_rate): Likewise.
44635         (ix86_adjust_cost): Likewise.
44636         (ia32_multipass_dfa_lookahead): Likewise.
44637         (swap_top_of_ready_list): Likewise.
44638         (ix86_sched_reorder): Likewise.
44639         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
44640         instead of TARGET_OPT_AGU.
44641         * config/i386/i386.h (TARGET_INTEL): New.
44642         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
44643         (processor_type): Add PROCESSOR_INTEL.
44644         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
44645         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
44647 2014-01-17  Marek Polacek  <polacek@redhat.com>
44649         PR c/58346
44650         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
44651         size is zero.
44653 2014-01-17  Richard Biener  <rguenther@suse.de>
44655         PR tree-optimization/46590
44656         * opts.c (default_options_table): Add entries for
44657         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
44658         all enabled at -O1 but not for -Og.
44659         * common.opt (fbranch-count-reg): Remove Init(1).
44660         (fmove-loop-invariants): Likewise.
44661         (ftree-pta): Likewise.
44663 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
44665         * config/i386/i386.c (ix86_data_alignment): For compatibility with
44666         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
44667         decls to at least the GCC 4.8 used alignments.
44669         PR fortran/59440
44670         * tree-nested.c (convert_nonlocal_reference_stmt,
44671         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
44672         of GIMPLE_BIND stmts, adjust associated decls.
44674 2014-01-17  Richard Biener  <rguenther@suse.de>
44676         PR tree-optimization/46590
44677         * vec.h (vec<>::bseach): New member function implementing
44678         binary search according to C89 bsearch.
44679         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
44680         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
44681         bitmap pointer again.  Make accesses_in_loop a flat array.
44682         (mem_ref_obstack): New global.
44683         (outermost_indep_loop): Adjust for mem_ref->stored changes.
44684         (mark_ref_stored): Likewise.
44685         (ref_indep_loop_p_2): Likewise.
44686         (set_ref_stored_in_loop): New helper function.
44687         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
44688         (memref_free): Adjust.
44689         (record_mem_ref_loc): Simplify.
44690         (gather_mem_refs_stmt): Adjust.
44691         (sort_locs_in_loop_postorder_cmp): New function.
44692         (analyze_memory_references): Sort accesses_in_loop after
44693         loop postorder number.
44694         (find_ref_loc_in_loop_cmp): New function.
44695         (for_all_locs_in_loop): Find relevant cluster of locs in
44696         accesses_in_loop and iterate without recursion.
44697         (execute_sm): Avoid uninit warning.
44698         (struct ref_always_accessed): Simplify.
44699         (ref_always_accessed::operator ()): Likewise.
44700         (ref_always_accessed_p): Likewise.
44701         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
44702         loop postorder numbers here.
44703         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
44704         numbers.
44706 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
44708         PR c++/57945
44709         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
44710         on decls for which assemble_alias has been called.
44712 2014-01-17  Nick Clifton  <nickc@redhat.com>
44714         * config/msp430/msp430.opt: (mcpu): New option.
44715         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
44716         (msp430_option_override): Parse target_cpu.  If the MCU name
44717         matches a generic string, clear target_mcu.
44718         (msp430_attr): Allow numeric interrupt values up to 63.
44719         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
44720         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
44721         option.
44722         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
44723         Add mcpu matches.
44724         * config/msp430/msp430.md (popm): Use %J rather than %I.
44725         (addsi3): Use msp430_nonimmediate_operand for operand 2.
44726         (addhi_cy_i): Use immediate_operand for operand 2.
44727         * doc/invoke.texi: Document -mcpu option.
44729 2014-01-17  Richard Biener  <rguenther@suse.de>
44731         PR rtl-optimization/38518
44732         * df.h (df_analyze_loop): Declare.
44733         * df-core.c: Include cfgloop.h.
44734         (df_analyze_1): Split out main part of df_analyze.
44735         (df_analyze): Adjust.
44736         (loop_inverted_post_order_compute): New function.
44737         (loop_post_order_compute): Likewise.
44738         (df_analyze_loop): New function avoiding whole-function
44739         postorder computes.
44740         * loop-invariant.c (find_defs): Use df_analyze_loop.
44741         (find_invariants): Adjust.
44742         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
44744 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
44746         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
44747         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
44749 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
44751         * ipa-ref.c (ipa_remove_stmt_references): Fix references
44752         traversal when removing references.
44754 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
44756         PR ipa/59775
44757         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
44759 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
44761         PR middle-end/56791
44762         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
44763         pushing a reload for an autoinc when we had previously reloaded an
44764         inner part of the address.
44766 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
44768         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
44769         field.
44770         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
44771         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
44772         when not giving up or versioning for alias only because of
44773         loop->safelen.
44774         (vect_analyze_data_ref_dependences): Set to true.
44775         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
44776         is a GIMPLE_PHI.
44777         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
44778         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
44779         to the condition.
44781         PR middle-end/58344
44782         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
44784         PR target/59839
44785         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
44786         operand 0 predicate for gathers, use a new pseudo as subtarget.
44788 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
44790         PR middle-end/59609
44791         * lra-constraints.c (process_alt_operands): Add printing debug info.
44792         Check absence of input/output reloads for matched operands too.
44794 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
44796         PR rtl-optimization/59835
44797         * ira.c (ira_init_register_move_cost): Increase cost for
44798         impossible modes.
44800 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
44802         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
44804 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
44806         PR target/59780
44807         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
44808         non-register objects.  Use gen_(high/low)part more consistently.
44809         Fix assertions.
44811 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
44813         PR target/59844
44814         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
44815         endian support, remove tests for WORDS_BIG_ENDIAN.
44816         (p8_mfvsrd_3_<mode>): Likewise.
44817         (reload_gpr_from_vsx<mode>): Likewise.
44818         (reload_gpr_from_vsxsf): Likewise.
44819         (p8_mfvsrd_4_disf): Likewise.
44821 2014-01-16  Richard Biener  <rguenther@suse.de>
44823         PR rtl-optimization/46590
44824         * lcm.c (compute_antinout_edge): Use postorder iteration.
44825         (compute_laterin): Use inverted postorder iteration.
44827 2014-01-16  Nick Clifton  <nickc@redhat.com>
44829         PR middle-end/28865
44830         * varasm.c (output_constant): Return the number of bytes actually
44831         emitted.
44832         (output_constructor_array_range): Update the field size with the
44833         number of bytes emitted by output_constant.
44834         (output_constructor_regular_field): Likewise.  Also do not
44835         complain if the total number of bytes emitted is now greater
44836         than the expected fieldpos.
44837         * output.h (output_constant): Update prototype and descriptive comment.
44839 2014-01-16  Marek Polacek  <polacek@redhat.com>
44841         PR middle-end/59827
44842         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
44843         it is error_mark_node.
44845 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
44847         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
44848         VALID_AVX256_REG_OR_OI_MODE.
44850 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
44852         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
44853         current procedure should be profiled.
44855 2014-01-15  Andrew Pinski  <apinski@cavium.com>
44857         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
44858         of moving from/to the STACK_REG register class.
44860 2014-01-15  Richard Henderson  <rth@redhat.com>
44862         PR debug/54694
44863         * reginfo.c (global_regs_decl): Globalize.
44864         * rtl.h (global_regs_decl): Declare.
44865         * ira.c (do_reload): Diagnose frame_pointer_needed and it
44866         reserved via global_regs.
44868 2014-01-15  Teresa Johnson  <tejohnson@google.com>
44870         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
44872 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
44874         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
44875         and vmulosh rather than call gen_vec_widen_smult_*.
44876         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
44877         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
44878         (vec_widen_smult_even_v16qi): Likewise.
44879         (vec_widen_umult_even_v8hi): Likewise.
44880         (vec_widen_smult_even_v8hi): Likewise.
44881         (vec_widen_umult_odd_v16qi): Likewise.
44882         (vec_widen_smult_odd_v16qi): Likewise.
44883         (vec_widen_umult_odd_v8hi): Likewise.
44884         (vec_widen_smult_odd_v8hi): Likewise.
44885         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
44886         vmuloub rather than call gen_vec_widen_umult_*.
44887         (vec_widen_umult_lo_v16qi): Likewise.
44888         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
44889         vmulosb rather than call gen_vec_widen_smult_*.
44890         (vec_widen_smult_lo_v16qi): Likewise.
44891         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
44892         rather than call gen_vec_widen_umult_*.
44893         (vec_widen_umult_lo_v8hi): Likewise.
44894         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
44895         rather than call gen_vec_widen_smult_*.
44896         (vec_widen_smult_lo_v8hi): Likewise.
44898 2014-01-15  Jeff Law  <law@redhat.com>
44900         PR tree-optimization/59747
44901         * ree.c (find_and_remove_re): Properly handle case where a second
44902         eliminated extension requires widening a copy created for elimination
44903         of a prior extension.
44904         (combine_set_extension): Ensure that the number of hard regs needed
44905         for a destination register does not change when we widen it.
44907 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
44909         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
44910         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
44911         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
44912         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
44913         (avr-*-rtems*): Likewise.
44914         (bfin*-rtems*): Likewise.
44915         (moxie-*-rtems*): Likewise.
44916         (h8300-*-rtems*): Likewise.
44917         (i[34567]86-*-rtems*): Likewise.
44918         (lm32-*-rtems*): Likewise.
44919         (m32r-*-rtems*): Likewise.
44920         (m68k-*-rtems*): Likewise.
44921         (microblaze*-*-rtems*): Likewise.
44922         (mips*-*-rtems*): Likewise.
44923         (powerpc-*-rtems*): Likewise.
44924         (sh-*-rtems*): Likewise.
44925         (sparc-*-rtems*): Likewise.
44926         (sparc64-*-rtems*): Likewise.
44927         (v850-*-rtems*): Likewise.
44928         (m32c-*-rtems*): Likewise.
44930 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
44932         PR rtl-optimization/59511
44933         * ira.c (ira_init_register_move_cost): Use memory costs for some
44934         cases of register move cost calculations.
44935         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
44936         instead of BB frequency.
44937         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
44938         * lra-assigns.c (find_hard_regno_for): Ditto.
44940 2014-01-15  Richard Biener  <rguenther@suse.de>
44942         PR tree-optimization/59822
44943         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
44944         (vectorizable_load): Use it to hoist defs of uses of invariant
44945         loads out of the loop.
44947 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
44948             Kugan Vivekanandarajah  <kuganv@linaro.org>
44950         PR target/59695
44951         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
44952         truncation.
44954 2014-01-15  Richard Biener  <rguenther@suse.de>
44956         PR rtl-optimization/59802
44957         * lcm.c (compute_available): Use inverted postorder to seed
44958         the initial worklist.
44960 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44962         PR target/59803
44963         * config/s390/s390.c (s390_preferred_reload_class): Don't return
44964         ADDR_REGS for invalid symrefs in non-PIC code.
44966 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
44968         PR other/58712
44969         * builtins.c (determine_block_size): Initialize *probable_max_size
44970         even if len_rtx is CONST_INT.
44972 2014-01-14  Andrew Pinski  <apinski@cavium.com>
44974         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
44975         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
44976         (cortexa53_tunings): Likewise.
44977         (aarch64_sched_issue_rate): New function.
44978         (TARGET_SCHED_ISSUE_RATE): Define.
44980 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
44982         * ira-costs.c (find_costs_and_classes): Add missed
44983         ira_init_register_move_cost_if_necessary.
44985 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
44987         PR target/59787
44988         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
44990 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
44992         PR target/59794
44993         * config/i386/i386.c (type_natural_mode): Add a bool parameter
44994         to indicate if type is used for function return value.  Warn ABI
44995         change if the vector mode isn't available for function return value.
44996         (ix86_function_arg_advance): Pass false to type_natural_mode.
44997         (ix86_function_arg): Likewise.
44998         (ix86_gimplify_va_arg): Likewise.
44999         (function_arg_32): Don't warn ABI change.
45000         (ix86_function_value): Pass true to type_natural_mode.
45001         (ix86_return_in_memory): Likewise.
45002         (ix86_struct_value_rtx): Removed.
45003         (TARGET_STRUCT_VALUE_RTX): Likewise.
45005 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
45007         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
45008         converting a conditional jump into a conditional return.
45010 2014-01-14  Richard Biener  <rguenther@suse.de>
45012         PR tree-optimization/58921
45013         PR tree-optimization/59006
45014         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
45015         hoisting invariant stmts.
45016         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
45017         invariant loads on the preheader edge if possible.
45019 2014-01-14  Joey Ye  <joey.ye@arm.com>
45021         * doc/plugin.texi (Building GCC plugins): Update to C++.
45023 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
45025         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
45026         (_mm_rcp28_round_ss): Ditto.
45027         (_mm_rsqrt28_round_sd): Ditto.
45028         (_mm_rsqrt28_round_ss): Ditto.
45029         (_mm_rcp28_sd): Ditto.
45030         (_mm_rcp28_ss): Ditto.
45031         (_mm_rsqrt28_sd): Ditto.
45032         (_mm_rsqrt28_ss): Ditto.
45033         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
45034         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
45035         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
45036         (IX86_BUILTIN_RCP28SD): Ditto.
45037         (IX86_BUILTIN_RCP28SS): Ditto.
45038         (IX86_BUILTIN_RSQRT28SD): Ditto.
45039         (IX86_BUILTIN_RSQRT28SS): Ditto.
45040         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
45041         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
45042         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
45043         (ix86_expand_special_args_builtin): Expand new FTYPE.
45044         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
45045         (srcp14<mode>): Make insn unary.
45046         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
45047         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
45048         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
45049         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
45050         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
45051         Fix rounding: make it SAE only.
45052         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45053         Ditto.
45054         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45055         Ditto.
45056         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
45057         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
45058         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
45059         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
45060         (round_saeonly_mask_scalar_operand4): Ditto.
45061         (round_saeonly_mask_scalar_op3): Ditto.
45062         (round_saeonly_mask_scalar_op4): Ditto.
45064 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45066         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
45067         Implement -maltivec=be for vec_insert and vec_extract.
45069 2014-01-10  DJ Delorie  <dj@redhat.com>
45071         * config/msp430/msp430.md (call_internal): Don't allow memory
45072         references with SP as the base register.
45073         (call_value_internal): Likewise.
45074         * config/msp430/constraints.md (Yc): New.  For memory references
45075         that don't use SP as a base register.
45077         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
45078         "an integer without a # prefix"
45079         * config/msp430/msp430.md (epilogue_helper): Use it.
45081 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
45083         PR target/59617
45084         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
45085         AVX512F gather builtins.
45086         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
45087         on gather decls with INTEGER_TYPE masktype.
45088         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
45089         directly into the builtin rather than hoisting it before loop.
45091         PR tree-optimization/59387
45092         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
45093         (scev_const_prop): If folded_casts and type has undefined overflow,
45094         use force_gimple_operand instead of force_gimple_operand_gsi and
45095         for each added stmt if it is assign with
45096         arith_code_with_undefined_signed_overflow, call
45097         rewrite_to_defined_overflow.
45098         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
45099         gimple-fold.h instead.
45100         (arith_code_with_undefined_signed_overflow,
45101         rewrite_to_defined_overflow): Moved to ...
45102         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
45103         rewrite_to_defined_overflow): ... here.  No longer static.
45104         Include gimplify-me.h.
45105         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
45106         rewrite_to_defined_overflow): New prototypes.
45108 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45110         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
45112 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
45114         * builtins.c (get_object_alignment_2): Minor tweak.
45115         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
45117 2014-01-13  Christian Bruel  <christian.bruel@st.com>
45119         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
45120         optimized non constant lengths.
45122 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
45124         PR libgomp/59194
45125         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
45126         load as __atomic_load_N if possible.
45128 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
45130         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
45131         target parameter.
45132         (rs6000_expand_builtin): Adjust call.
45134 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
45136         PR target/58115
45137         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
45138         * config/rs6000/rs6000.c: Include target-globals.h.
45139         (rs6000_set_current_function): Instead of doing target_reinit
45140         unconditionally, use save_target_globals_default_opts and
45141         restore_target_globals.
45143         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
45144         FPSCR.
45145         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
45146         (rs6000_expand_builtin): Handle mffs and mtfsf.
45147         (rs6000_init_builtins): Define mffs and mtfsf.
45148         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
45149         (rs6000_mffs): New pattern.
45150         (rs6000_mtfsf): New pattern.
45152 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
45154         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
45155         Start narrowing with START.  Apply candidate-use pair
45156         and check overall cost in narrowing.
45157         (iv_ca_prune): Pass new argument.
45159 2014-01-10  Jeff Law  <law@redhat.com>
45161         PR middle-end/59743
45162         * ree.c (combine_reaching_defs): Ensure the defining statement
45163         occurs before the extension when optimizing extensions with
45164         different source and destination hard registers.
45166 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
45168         PR ipa/58585
45169         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
45170         vtables into the type inheritance graph.
45172 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
45174         PR rtl-optimization/59754
45175         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
45176         modes in the REGNO != REGNO case.
45178 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45180         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
45182 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
45184         PR tree-optimization/59745
45185         * tree-predcom.c (tree_predictive_commoning_loop): Call
45186         free_affine_expand_cache if giving up because components is NULL.
45188         * target-globals.c (save_target_globals): Allocate < 4KB structs using
45189         GC in payload of target_globals struct instead of allocating them on
45190         the heap and the larger structs separately using GC.
45191         * target-globals.h (struct target_globals): Make regs, hard_regs,
45192         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
45193         of GTY((skip)) and change type to void *.
45194         (reset_target_globals): Cast loads from those fields to corresponding
45195         types.
45197 2014-01-10  Steve Ellcey  <sellcey@mips.com>
45199         PR plugins/59335
45200         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
45201         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
45202         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
45204 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
45206         PR target/59744
45207         * aarch64-modes.def (CC_Zmode): New flags mode.
45208         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
45209         represents an equality.
45210         (aarch64_get_condition_code): Handle CC_Zmode.
45211         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
45213 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45215         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
45216         extraction in good case.
45218 2014-01-10  Richard Biener  <rguenther@suse.de>
45220         PR tree-optimization/59374
45221         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
45222         checking after SLP discovery.  Mark stmts not participating
45223         in any SLP instance properly.
45225 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45227         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
45228         when handling a SET rtx.
45230 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45232         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
45233         (cortex-a57): Likewise.
45234         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
45236 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45238         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
45239         non-iwmmxt builtins.
45241 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
45243         PR ipa/58252
45244         PR ipa/59226
45245         * ipa-devirt.c record_target_from_binfo): Take as argument
45246         stack of binfos and lookup matching one for virtual inheritance.
45247         (possible_polymorphic_call_targets_1): Update.
45249 2014-01-10  Huacai Chen  <chenhc@lemote.com>
45251         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
45252         kernel strings for Loongson-2E/2F/3A.
45254 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
45256         PR middle-end/59670
45257         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
45258         is_gimple_call before calling gimple_call_internal_p.
45260 2014-01-09  Steve Ellcey  <sellcey@mips.com>
45262         * Makefile.in (TREE_FLOW_H): Remove.
45263         (TREE_SSA_H): Add file names from tree-flow.h.
45264         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
45265         * tree.h: Remove tree-flow.h reference.
45266         * hash-table.h: Remove tree-flow.h reference.
45267         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
45268         reference with tree-ssa-loop.h.
45270 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45272         * doc/invoke.texi: Add -maltivec={be,le} options, and document
45273         default element-order behavior for -maltivec.
45274         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
45275         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
45276         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
45277         when targeting big endian, at least for now.
45278         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
45280 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
45282         PR middle-end/47735
45283         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
45284         var satisfies use_register_for_decl, just take into account type
45285         alignment, rather than decl alignment.
45287         PR tree-optimization/59622
45288         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
45289         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
45290         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
45291         Don't devirtualize for inplace at all.  For targets.length () == 1,
45292         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
45294 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
45296         * config/i386/i386.md (cpu): Remove the unused btver1.
45298 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
45300         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
45302 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
45304         PR target/58115
45305         * tree-core.h (struct target_globals): New forward declaration.
45306         (struct tree_target_option): Add globals field.
45307         * tree.h (TREE_TARGET_GLOBALS): Define.
45308         (prepare_target_option_nodes_for_pch): New prototype.
45309         * target-globals.h (struct target_globals): Define even if
45310         !SWITCHABLE_TARGET.
45311         * tree.c (prepare_target_option_node_for_pch,
45312         prepare_target_option_nodes_for_pch): New functions.
45313         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
45314         * config/i386/i386.c: Include target-globals.h.
45315         (ix86_set_current_function): Instead of doing target_reinit
45316         unconditionally, use save_target_globals_default_opts and
45317         restore_target_globals.
45319 2014-01-09  Richard Biener  <rguenther@suse.de>
45321         PR tree-optimization/59715
45322         * tree-cfg.h (split_critical_edges): Declare.
45323         * tree-cfg.c (split_critical_edges): Export.
45324         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
45326 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
45328         * cfgexpand.c (expand_stack_vars): Optionally disable
45329         asan stack protection.
45330         (expand_used_vars): Likewise.
45331         (partition_stack_vars): Likewise.
45332         * asan.c (asan_emit_stack_protection): Optionally disable
45333         after return stack usage.
45334         (instrument_derefs): Optionally disable memory access instrumentation.
45335         (instrument_builtin_call): Likewise.
45336         (instrument_strlen_call): Likewise.
45337         (asan_protect_global): Optionally disable global variables protection.
45338         * doc/invoke.texi: Added doc for new options.
45339         * params.def: Added new options.
45340         * params.h: Likewise.
45342 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
45344         PR rtl-optimization/59724
45345         * ifcvt.c (cond_exec_process_if_block): Don't call
45346         flow_find_head_matching_sequence with 0 longest_match.
45347         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
45348         non-active insns if !stop_after.
45349         (try_head_merge_bb): Revert 2014-01-07 changes.
45351 2014-01-08  Jeff Law  <law@redhat.com>
45353         * ree.c (get_sub_rtx): New function, extracted from...
45354         (merge_def_and_ext): Here.
45355         (combine_reaching_defs): Use get_sub_rtx.
45357 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
45359         * cgraph.h (varpool_variable_node): Do not choke on null node.
45361 2014-01-08  Catherine Moore  <clm@codesourcery.com>
45363         * config/mips/mips.md (simple_return): Attempt to use JRC
45364         for microMIPS.
45365         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
45367 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
45369         PR rtl-optimization/59137
45370         * reorg.c (steal_delay_list_from_target): Call update_block for
45371         elided insns.
45372         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
45374 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45376         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
45377         two duplicate entries.
45379 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
45381         Revert:
45382         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
45384         * config/mips/mips.c (mips_truncated_op_cost): New function.
45385         (mips_rtx_costs): Adjust test for BADDU.
45386         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
45388         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
45390         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
45391         (*baddu_si): ...this new pattern.
45393 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
45395         PR ipa/59722
45396         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
45398 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
45400         PR middle-end/57748
45401         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
45402         inner_reference_p.
45403         (expand_expr, expand_normal): Adjust.
45404         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
45405         inner_reference_p. Use inner_reference_p to expand inner references.
45406         (store_expr): Adjust.
45407         * cfgexpand.c (expand_call_stmt): Adjust.
45409 2014-01-08  Rong Xu  <xur@google.com>
45411         * gcov-io.c (gcov_var): Move from gcov-io.h.
45412         (gcov_position): Ditto.
45413         (gcov_is_error): Ditto.
45414         (gcov_rewrite): Ditto.
45415         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
45416         only part to libgcc/libgcov.h.
45418 2014-01-08  Marek Polacek  <polacek@redhat.com>
45420         PR middle-end/59669
45421         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
45423 2014-01-08  Marek Polacek  <polacek@redhat.com>
45425         PR sanitizer/59667
45426         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
45428 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
45430         PR rtl-optimization/59649
45431         * stor-layout.c (get_mode_bounds): For BImode return
45432         0 and STORE_FLAG_VALUE.
45434 2014-01-08  Richard Biener  <rguenther@suse.de>
45436         PR middle-end/59630
45437         * gimple.h (is_gimple_builtin_call): Remove.
45438         (gimple_builtin_call_types_compatible_p): New.
45439         (gimple_call_builtin_p): New overload.
45440         * gimple.c (is_gimple_builtin_call): Remove.
45441         (validate_call): Rename to ...
45442         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
45443         check return types.
45444         (validate_type): New static function.
45445         (gimple_call_builtin_p): New overload and adjust.
45446         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
45447         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
45448         (gimple_fold_stmt_to_constant_1): Likewise.
45449         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
45451 2014-01-08  Richard Biener  <rguenther@suse.de>
45453         PR middle-end/59471
45454         * gimplify.c (gimplify_expr): Gimplify register-register type
45455         VIEW_CONVERT_EXPRs to separate stmts.
45457 2014-01-07  Jeff Law  <law@redhat.com>
45459         PR middle-end/53623
45460         * ree.c (combine_set_extension): Handle case where source
45461         and destination registers in an extension insn are different.
45462         (combine_reaching_defs): Allow source and destination registers
45463         in extension to be different under limited circumstances.
45464         (add_removable_extension): Remove restriction that the
45465         source and destination registers in the extension are the same.
45466         (find_and_remove_re): Emit a copy from the extension's
45467         destination to its source after the defining insn if
45468         the source and destination registers are different.
45470         PR middle-end/59285
45471         * ifcvt.c (merge_if_block): If we are merging a block with more than
45472         one successor with a block with no successors, remove any BARRIER
45473         after the second block.
45475 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
45477         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
45479 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
45481         PR target/59652
45482         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
45483         for 14-bit register offsets when INT14_OK_STRICT is false.
45485 2014-01-07  Roland Stigge  <stigge@antcom.de>
45486             Michael Meissner  <meissner@linux.vnet.ibm.com>
45488         PR 57386/target
45489         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
45490         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
45492 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
45494         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
45495         -mcpu.
45497 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
45499         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
45500         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
45501         rtx is const0_rtx or not.
45503 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
45505         PR target/58115
45506         * target-globals.c (save_target_globals): Remove this_fn_optab
45507         handling.
45508         * toplev.c: Include optabs.h.
45509         (target_reinit): Temporarily restore the global options if another
45510         set of options are in force.
45512 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
45514         PR rtl-optimization/58668
45515         * cfgcleanup.c (flow_find_cross_jump): Don't count
45516         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
45517         to determine what is counted.
45518         (flow_find_head_matching_sequence): Use active_insn_p to determine
45519         what is counted.
45520         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
45521         counting change.
45522         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
45523         determine what is counted.
45525         PR tree-optimization/59643
45526         * tree-predcom.c (split_data_refs_to_components): If one dr is
45527         read and one write, determine_offset fails and the write isn't
45528         in the bad component, just put the read into the bad component.
45530 2014-01-07  Mike Stump  <mikestump@comcast.net>
45531             Jakub Jelinek  <jakub@redhat.com>
45533         PR pch/59436
45534         * tree-core.h (struct tree_optimization_option): Change optabs
45535         type from unsigned char * to void *.
45536         * optabs.c (init_tree_optimization_optabs): Adjust
45537         TREE_OPTIMIZATION_OPTABS initialization.
45539 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
45541         PR target/59644
45542         * config/i386/i386.h (struct machine_function): Add
45543         no_drap_save_restore field.
45544         * config/i386/i386.c (ix86_save_reg): Use
45545         !cfun->machine->no_drap_save_restore instead of
45546         crtl->stack_realign_needed.
45547         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
45548         this function clears frame_pointer_needed.  Set
45549         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
45550         and DRAP reg is needed.
45552 2014-01-06  Marek Polacek  <polacek@redhat.com>
45554         PR c/57773
45555         * doc/implement-c.texi: Mention that other integer types are
45556         permitted as bit-field types in strictly conforming mode.
45558 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
45560         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
45561         is newly allocated.
45563 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
45565         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
45567 2014-01-06  Martin Jambor  <mjambor@suse.cz>
45569         PR ipa/59008
45570         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
45571         to int.
45572         * ipa-prop.c (ipa_print_node_params): Fix indentation.
45574 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
45576         PR debug/59350
45577         PR debug/59510
45578         * var-tracking.c (add_stores): Preserve the value of the source even if
45579         we don't record the store.
45581 2014-01-06  Terry Guo  <terry.guo@arm.com>
45583         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
45585 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
45587         PR bootstrap/59541
45588         * config/darwin.c (darwin_function_section): Adjust return values to
45589         correspond to optimisation changes made in r206070.
45591 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
45593         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
45594         from prefetch_block tune setting.
45595         (nocona_cost): Correct size of prefetch block to 64.
45597 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
45599         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
45600         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
45601         used to save the static chain register in the computation of the offset
45602         from which the FP registers need to be restored.
45604 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
45606         PR tree-optimization/59519
45607         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
45608         ICE if get_current_def (current_new_name) is already non-NULL, as long
45609         as it is a phi result of some other phi in *new_exit_bb that has
45610         the same argument.
45612         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
45613         or vmovdqu* for misaligned_operand.
45614         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
45615         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
45616         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
45617         aligned_mem for AVX512F masked aligned load and store builtins and for
45618         non-temporal moves.
45620 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
45622         PR tree-optimization/59651
45623         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
45624         Address range for negative step should be added by TYPE_SIZE_UNIT.
45626 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
45628         * config/m68k/m68k.c (handle_move_double): Handle pushes with
45629         overlapping registers also for registers other than the stack pointer.
45631 2014-01-03  Marek Polacek  <polacek@redhat.com>
45633         PR other/59661
45634         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
45635         __builtin_FILE.
45637 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
45639         PR target/59625
45640         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
45641         asm goto as jump.
45643         * config/i386/i386.md (MODE_SIZE): New mode attribute.
45644         (push splitter): Use <P:MODE_SIZE> instead of
45645         GET_MODE_SIZE (<P:MODE>mode).
45646         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
45647         (mov -1, reg peephole2): Likewise.
45648         * config/i386/sse.md (*mov<mode>_internal,
45649         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
45650         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
45651         *<code><mode>3, *andnot<mode>3<mask_name>,
45652         <mask_codefor><code><mode>3<mask_name>): Likewise.
45653         * config/i386/subst.md (mask_mode512bit_condition,
45654         sd_mask_mode512bit_condition): Likewise.
45656 2014-01-02  Xinliang David Li  <davidxl@google.com>
45658         PR tree-optimization/59303
45659         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
45660         (dump_predicates): Better output format.
45661         (pred_equal_p): New function.
45662         (is_neq_relop_p): Ditto.
45663         (is_neq_zero_form_p): Ditto.
45664         (pred_expr_equal_p): Ditto.
45665         (pred_neg_p): Ditto.
45666         (simplify_pred): Ditto.
45667         (simplify_preds_2): Ditto.
45668         (simplify_preds_3): Ditto.
45669         (simplify_preds_4): Ditto.
45670         (simplify_preds): Ditto.
45671         (push_pred): Ditto.
45672         (push_to_worklist): Ditto.
45673         (get_pred_info_from_cmp): Ditto.
45674         (is_degenerated_phi): Ditto.
45675         (normalize_one_pred_1): Ditto.
45676         (normalize_one_pred): Ditto.
45677         (normalize_one_pred_chain): Ditto.
45678         (normalize_preds): Ditto.
45679         (normalize_cond_1): Remove function.
45680         (normalize_cond): Ditto.
45681         (is_gcond_subset_of): Ditto.
45682         (is_subset_of_any): Ditto.
45683         (is_or_set_subset_of): Ditto.
45684         (is_and_set_subset_of): Ditto.
45685         (is_norm_cond_subset_of): Ditto.
45686         (pred_chain_length_cmp): Ditto.
45687         (convert_control_dep_chain_into_preds): Type change.
45688         (find_predicates): Ditto.
45689         (find_def_preds): Ditto.
45690         (destroy_predicates_vecs): Ditto.
45691         (find_matching_predicates_in_rest_chains): Ditto.
45692         (use_pred_not_overlap_with_undef_path_pred): Ditto.
45693         (is_pred_expr_subset): Ditto.
45694         (is_pred_chain_subset_of): Ditto.
45695         (is_included_in): Ditto.
45696         (is_superset_of): Ditto.
45698 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
45700         Update copyright years.
45702 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
45704         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
45705         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
45706         config/arc/arc.md, config/arc/arc.opt,
45707         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
45708         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
45709         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
45710         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
45711         config/linux-protos.h, config/linux.c, config/winnt-c.c,
45712         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
45713         vtable-verify.c, vtable-verify.h: Use the standard form for the
45714         copyright notice.
45716 2014-01-02  Tobias Burnus  <burnus@net-b.de>
45718         * gcc.c (process_command): Update copyright notice dates.
45719         * gcov-dump.c: Ditto.
45720         * gcov.c: Ditto.
45721         * doc/cpp.texi: Bump @copying's copyright year.
45722         * doc/cppinternals.texi: Ditto.
45723         * doc/gcc.texi: Ditto.
45724         * doc/gccint.texi: Ditto.
45725         * doc/gcov.texi: Ditto.
45726         * doc/install.texi: Ditto.
45727         * doc/invoke.texi: Ditto.
45729 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
45731         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
45733 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
45735         * config/i386/sse.md (*mov<mode>_internal): Guard
45736         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
45738         PR rtl-optimization/59647
45739         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
45740         new_rtx into UNSIGNED_FLOAT rtxes.
45742 Copyright (C) 2014 Free Software Foundation, Inc.
45744 Copying and distribution of this file, with or without modification,
45745 are permitted in any medium without royalty provided the copyright
45746 notice and this notice are preserved.