1 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3 * omp-low.c (simd_clone_clauses_extract): Replaced the string
4 "cilk simd elemental" with "cilk simd function."
5 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6 Removed a carriage-return from a warning string.
8 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
10 * passes.c (execute_function_dump): Set graph_dump_initialized
12 (pass_init_dump_file): Similarly.
13 (execute_one_pass): Pass new argument to do_per_function.
14 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
16 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
18 * doc/tree-ssa.texi (SSA Operands): Remove reference to
20 Synchronize SSA_OP* definitions with source.
21 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
22 Add not to SSA_OP* macro definitions.
24 2013-12-18 Jakub Jelinek <jakub@redhat.com>
28 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
30 prefix existing define_insn names with *.
32 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
34 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
36 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
37 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
40 cortex-a57, cortex-a57.cortex-a53.
42 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
45 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
46 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
47 (dwarf2out_frame_debug_expr): Tidy.
49 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
50 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
51 Sergey Lega <sergey.s.lega@intel.com>
52 Anna Tikhonova <anna.tikhonova@intel.com>
53 Ilya Tocar <ilya.tocar@intel.com>
54 Andrey Turetskiy <andrey.turetskiy@intel.com>
55 Ilya Verbin <ilya.verbin@intel.com>
56 Kirill Yukhin <kirill.yukhin@intel.com>
57 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
59 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
60 (*fma_fmsub_<mode>): Ditto.
61 (*fma_fnmadd_<mode>): Ditto.
62 (*fma_fnmsub_<mode>): Ditto.
63 (*fma_fmaddsub_<mode>): Ditto.
64 (*fma_fmsubadd_<mode>): Ditto.
65 (avx512f_vternlog<mode>): Ditto.
66 (avx512f_fixupimm<mode>): Ditto.
67 (avx512f_sfixupimm<mode>): Ditto.
68 (avx512f_vpermi2var<mode>3): Ditto.
69 (avx512f_vpermt2var<mode>3): Ditto.
70 (avx512f_fmaddsub_<mode>_maskz): New.
71 (avx512f_vternlog<mode>_maskz): Ditto.
72 (avx512f_fixupimm<mode>_maskz): Ditto.
73 (avx512f_sfixupimm<mode>_maskz): Ditto.
74 (avx512f_vpermi2var<mode>3_maskz): Ditto.
75 (avx512f_vpermt2var<mode>3_maskz): Ditto.
76 (avx512f_expand<mode>_maskz): Ditto.
77 * config/i386/subst.md (sd_maskz_name): Ditto.
80 (sd_mask_codefor): Ditto.
81 (sd_mask_mode512bit_condition): Ditto.
84 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
85 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
86 Sergey Lega <sergey.s.lega@intel.com>
87 Anna Tikhonova <anna.tikhonova@intel.com>
88 Ilya Tocar <ilya.tocar@intel.com>
89 Andrey Turetskiy <andrey.turetskiy@intel.com>
90 Ilya Verbin <ilya.verbin@intel.com>
91 Kirill Yukhin <kirill.yukhin@intel.com>
92 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
94 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
95 (avx512f_ucmp<mode>3): Ditto.
96 (avx512f_eq<mode>3): Ditto.
97 (avx512f_gt<mode>3): Ditto.
98 (avx512f_testm<mode>3): Ditto.
99 (avx512f_testnm<mode>3): Ditto.
100 * config/i386/subst.md (SUBST_S): New.
101 (mask_scalar_merge_name): Ditto.
102 (mask_scalar_merge_operand3): Ditto.
103 (mask_scalar_merge_operand4): Ditto.
104 (mask_scalar_merge): Ditto.
106 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
109 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
111 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
113 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
116 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
118 2013-12-17 Teresa Johnson <tejohnson@google.com>
120 PR gcov-profile/59527
121 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
122 branch, which can't be eliminated.
124 2013-12-18 Martin Liska <marxin.liska@gmail.com>
125 Jan Hubicka <jh@suse.cz>
127 * cgraphunit.c (node_cmp): New function.
128 (expand_all_functions): Function ordering added.
129 * common.opt: New profile based function reordering flag introduced.
130 * lto-partition.c: Support for time profile added.
132 * predict.c (handle_missing_profiles): Time profile handled in
135 2013-12-17 Jakub Jelinek <jakub@redhat.com>
137 PR tree-optimization/59523
138 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
141 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
143 * ipa-inline.c (gate_ipa_inline): Remove.
144 (const pass_data pass_data_ipa_inline): Unset has_gate.
145 (class pass_ipa_inline): Remove gate() method.
147 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
149 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
150 in contains_type_p query.
152 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
154 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
157 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
160 * omp-low.c: Remove leftover comment.
162 * omp-low.c (check_combined_parallel): Reflect reality in comment.
164 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
166 * doc/passes.texi (Pass manager): Refer to passes.def.
168 * doc/gccint.texi (Top): Fix inclusion order.
170 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
172 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
173 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
174 * config/arm/arm.md (generic_vfp): Remove cortexa12.
176 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
178 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
179 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
180 * config/arm/arm-tables.opt: Regenerate.
181 * config/arm/arm-tune.md: Regenerate.
183 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
185 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
187 * config/arm/arm-cores.def (cortex-a57): New.
188 * doc/invoke.texi: Document -mcpu=cortex-a57.
189 * config/arm/arm-tables.opt: Regenerate.
190 * config/arm/arm-tune.md: Regenerate.
191 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
193 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
195 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
196 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
197 * config/arm/arm-tables.opt: Regenerate.
198 * config/arm/arm-tune.md: Regenerate.
200 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
202 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
204 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
205 * config/arm/genopt.sh: Improve layout.
206 * config/arm/arm-tune.md: Regenerate.
207 * config/arm/arm-tables.opt: Regenerate.
208 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
209 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
210 (arm_option_override): When a CPU is chosen, that should also
211 form the tune target.
212 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
214 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
216 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
217 (arm_rewrite_mcpu): Likewise.
218 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
219 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
220 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
221 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
222 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
223 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
225 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
227 * expmed.c (lowpart_bit_field_p): Fix comment.
228 (store_bit_field_using_insv): Fix formatting.
229 (store_bit_field): Likewise.
230 (store_fixed_bit_field): More declaration and remove return.
231 (store_fixed_bit_field_1): Fix formatting.
232 (extract_fixed_bit_field): Move declaration.
233 (extract_fixed_bit_field_1): Simplify.
235 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
237 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
239 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
241 2013-12-17 Jakub Jelinek <jakub@redhat.com>
243 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
244 instead of x as last gen_lowpart argument.
246 2013-12-16 Jakub Jelinek <jakub@redhat.com>
248 * predict.h (PROB_LIKELY): Fix the value.
249 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
250 for overflow checking for modes without 2xwider supported mode,
251 if the mode has 2xnarrower mode.
253 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
254 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
255 try to improve generated code if one of the arguments is constant
256 or get_range_info says that one of the argument is always
257 negative or always non-negative.
258 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
259 (simplify_stmt_using_ranges): Call it.
261 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
263 PR rtl-optimization/59466
264 * emit-rtl.c (change_address_1): Don't validate address for LRA.
265 * recog.c (general_operand): Accept any memory for LRA.
266 * lra.c (lra_set_insn_recog_data): Add an assert.
268 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
270 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
272 2013-12-14 Jan Hubicka <jh@suse.cz>
273 Markus Trippelsdorf <octoploid@yandex.com>
276 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
277 call is already devirtualized.
279 2013-12-16 Jakub Jelinek <jakub@redhat.com>
281 * Makefile.in (version.o): Restore dependencies on
282 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
284 2013-12-14 Jan Hubicka <jh@suse.cz>
287 * ipa-devirt.c (get_class_context): Do not ICE when type is found
290 2013-12-16 Jakub Jelinek <jakub@redhat.com>
293 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
294 reductions without placeholder if is_simd, but when not using
295 GOMP_SIMD* internal calls, also perform the reduction operation
296 on the outer var rather than simple assignment.
298 2013-12-16 Jakub Jelinek <jakub@redhat.com>
302 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
303 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
305 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
306 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
307 calls to supply the gimple operand containing the base tree
308 as an extra argument.
309 * tree-ssa-ter.c: Include gimple-walk.h.
310 (find_ssaname, find_ssaname_in_store): New helper functions.
311 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
312 same_root_var if USE is used somewhere in the stores of the stmt.
313 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
314 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
315 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
316 check_ipa_store): Likewise.
317 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
318 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
319 (verify_non_ssa_vars, visit_bb): Adjust their callers.
320 * cfgexpand.c (add_scope_conflicts_1): Use
321 walk_stmt_load_store_addr_fn type for visit variable.
322 (visit_op, visit_conflict): Remove name of the stmt
323 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
324 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
325 argument and ATTRIBUTE_UNUSED.
326 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
327 unnamed tree argument.
328 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
329 ATTRIBUTE_UNUSED from stmt parameter.
331 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
333 * opts-common.c (integral_argument): Add support for
334 hexadecimal command option integer arguments. Update comments.
336 2013-12-14 Jan Hubicka <jh@suse.cz>
339 * ipa-prop.c (ipa_analyze_call_uses): Skip already
342 2013-12-14 Jan Hubicka <jh@suse.cz>
344 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
346 2013-12-14 Jan Hubicka <jh@suse.cz>
349 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
351 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
354 * config/i386/i386.c (ix86_function_specific_restore): Don't
357 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
359 * var-tracking.c (add_stores): Fix oversight in latest commit.
361 2013-12-14 Marek Polacek <polacek@redhat.com>
364 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
365 expand_binop with correct optab depending on code.
367 2013-12-14 Tom de Vries <tom@codesourcery.com>
369 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
371 2013-12-13 DJ Delorie <dj@redhat.com>
373 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
375 * config/msp430/msp430.md (movqi): replace general_operand with
376 msp_general_operand and nonimmediate_operand with
377 msp_nonimmediate_operand to allow volatile operands.
382 (addhi3_cy): Likewise.
383 (addchi4_cy): Likewise.
384 (xor<mode>3): Likewise.
385 (ome_cmpl<mode>2): Likewise.
386 (extendqihi2): Likewise.
387 (zero_extendqihi2): Likewise.
388 (zero_extendhipsi2): Likewise.
389 (truncpsihi2): Likewise.
392 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
394 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
396 * lra-int.h (lra_init_equiv): New prototype.
397 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
398 (loc_equivalence_callback): Use the 3rd arg.
399 (lra_constraints): Update equivalences. Pass curr_insn to
400 simplify_replace_fn_rtx.
401 * lra.c (lra): Call lra_init_equiv.
403 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
405 * genmodes.c (emit_max_int): Fixed missing parens.
407 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
409 PR tree-optimization/59149
410 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
411 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
414 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
416 * config/arc/arc.h (BITS_PER_UNIT): Removed.
417 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
418 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
419 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
420 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
421 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
422 * config/spu/spu.h (BITS_PER_UNIT): Removed.
423 * defaults.h (BITS_PER_UNIT): Removed.
424 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
425 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
426 (MAX_BITSIZE_MODE_ANY_INT): Updated.
427 * doc/tm.texi (BITS_PER_UNIT): Removed.
428 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
429 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
430 (create_modes): Added code to set bits_per_unit and
431 max_bitsize_mode_any_int.
432 (emit_max_int): Changed code generation.
433 * mkconfig.sh: Added insn-modes.h.
435 2013-12-13 Jeff Law <law@redhat.com>
437 PR tree-optimization/45685
438 * tree-ssa-phiopt.c (neg_replacement): New function.
439 (tree_ssa_phiopt_worker): Call it.
441 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
443 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
445 2013-12-13 Bin Cheng <bin.cheng@arm.com>
447 PR tree-optimization/58296
448 PR tree-optimization/41488
449 * tree-scalar-evolution.c: Include necessary header files.
450 (simplify_peeled_chrec): New function.
451 (analyze_evolution_in_loop): New static variable.
452 Call simplify_peeled_chrec.
453 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
454 (add_old_iv_candidates): Don't add candidate for peeled IV.
455 * tree-affine.h (aff_combination_zero_p): New function.
457 2013-12-13 Nick Clifton <nickc@redhat.com>
459 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
460 true if the current function has the wakeup attribute.
461 (msp430_start_function): Note if the function has the wakeup
463 (msp430_attribute_table): Add wakeup attribute.
464 (msp430_expand_epilogue): Add support for wakeup functions.
465 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
466 the DINT instruction.
467 * doc/extend.texi: Document the wakeup attribute.
469 2013-12-13 Kai Tietz <kitetz@redhat.com>
472 * config/i386/i386.c (ix86_option_override_internal): Set for
473 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
476 2013-12-12 Jeff Law <law@redhat.com>
478 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
479 for zero-extended MULT simple LEA pattern.
481 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
484 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
487 2013-12-12 Jakub Jelinek <jakub@redhat.com>
490 * gimplify.c (omp_check_private): Add copyprivate argument, if it
491 is true, don't check omp_privatize_by_reference.
492 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
493 decl is private in outer context. Adjust omp_check_private caller.
495 2013-12-11 Jeff Law <law@redhat.com>
497 PR rtl-optimization/59446
498 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
499 test for crossing a loop header.
501 2013-12-11 Sriraman Tallam <tmsriram@google.com>
504 * config/i386/i386.c (get_builtin): New function.
505 (ix86_builtin_vectorized_function): Replace all instances of
506 ix86_builtins[...] with get_builtin(...).
507 (ix86_builtin_reciprocal): Ditto.
509 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
511 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
512 (lang_hooks_for_cilkplus): Remove.
513 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
514 (lhd_install_body_with_frame_cleanup): Likewise.
515 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
516 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
517 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
518 (LANG_HOOKS_CILKPLUS): Likewise.
519 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
520 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
521 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
522 (gimplify_call_expr): Likewise.
524 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
526 * expr.c (expand_assignment): Remove dependency on
527 flag_strict_volatile_bitfields. Always set the memory
529 (expand_expr_real_1): Likewise.
531 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
534 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
535 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
536 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
538 (store_fixed_bit_field_1): New function.
539 (store_split_bit_field): Limit the unit size to the memory mode size,
540 to prevent recursion.
542 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
543 Sandra Loosemore <sandra@codesourcery.com>
549 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
550 and bitregion_end parameters. Test for compliance with C++
552 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
553 Add fallback logic for cases where -fstrict-volatile-bitfields
554 is supposed to apply, but cannot.
555 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
556 extract_fixed_bit_field_1 to do the extraction.
557 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
558 Call extract_fixed_bit_field_1 to do the real work.
559 (extract_fixed_bit_field_1): New function.
561 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
567 * expmed.c (strict_volatile_bitfield_p): New function.
568 (store_bit_field_1): Don't special-case strict volatile
570 (store_bit_field): Handle strict volatile bitfields here instead.
571 (store_fixed_bit_field): Don't special-case strict volatile
573 (extract_bit_field_1): Don't special-case strict volatile
575 (extract_bit_field): Handle strict volatile bitfields here instead.
576 (extract_fixed_bit_field): Don't special-case strict volatile
577 bitfields here. Simplify surrounding code to resemble that in
578 store_fixed_bit_field.
579 * doc/invoke.texi (Code Gen Options): Update
580 -fstrict-volatile-bitfields description.
582 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
584 * configure.ac: Add check for aarch64 assembler -mabi support.
585 * configure: Regenerate.
586 * config.in: Regenerate.
587 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
588 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
589 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
590 if assembler does not support -mabi and option ilp32 is selected.
591 * doc/install.texi: Added note that building gcc 4.9 and after
592 with pre 2.24 binutils will not support -mabi=ilp32.
594 2013-12-11 Marek Polacek <polacek@redhat.com>
597 * expr.c (expand_expr_real_1): Remove assert dealing with
598 internal calls and turn that into a condition instead.
600 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
602 * config/arm/arm.opt (mlra): Enable LRA by default.
604 2013-12-11 Jakub Jelinek <jakub@redhat.com>
606 PR tree-optimization/59417
607 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
608 in a different bb rhan var, only duplicate points-to info and
609 not alignment info and don't duplicate range info.
610 * tree-ssa-loop-niter.c (determine_value_range): Instead of
611 assertion failure handle inconsistencies in range info by only
612 using var's range info and not PHI result range infos.
614 PR tree-optimization/59386
615 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
616 unshare_expr (id->retval) before passing it to gimple_build_assign.
618 2013-12-11 Bin Cheng <bin.cheng@arm.com>
621 2013-12-10 Bin Cheng <bin.cheng@arm.com>
622 PR tree-optimization/41488
623 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
624 for PEELED_CHREC kind IV.
625 * tree-scalar-evolution.c: Include necessary header files.
626 (peeled_chrec_map, simplify_peeled_chrec): New.
627 (analyze_evolution_in_loop): New static variable.
628 Call simplify_peeled_chrec.
629 (scev_initialize): Initialize peeled_chrec_map.
630 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
632 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
635 * config/i386/i386.md (*movsf_internal): Set mode to SI for
638 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
640 PR rtl-optimization/58295
641 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
642 WORD_REGISTER_OPERATIONS targets.
644 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
646 * genrecog.c (validate_pattern): Treat all messages except missing
648 * config/epiphany/epiphany.md: Remove constraints from
650 * config/h8300/h8300.md: Remove constraints from define_splits.
651 * config/msp430/msp430.md: Likewise.
652 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
653 nonimmediate_operand rather than general_operand for operand 0.
654 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
655 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
656 Use match_operator rather than match_test to invoke general_operand.
657 * config/v850/v850.md (*movqi_internal, *movhi_internal)
658 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
660 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
662 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
663 register_operand rather than pointer_operand. Add modes to the
665 (insn_ldna_add<bitsuffix>): Likewise.
666 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
667 (insn_ldnt_add<bitsuffix>): Likewise.
668 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
669 (insn_ld_add_L2<bitsuffix>): Likewise.
670 (insn_ldna_add_L2<bitsuffix>): Likewise.
671 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
672 (insn_ldnt_add_L2<bitsuffix>): Likewise.
673 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
674 (insn_ld_add_miss<bitsuffix>): Likewise.
675 (insn_ldna_add_miss<bitsuffix>): Likewise.
676 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
677 (insn_ldnt_add_miss<bitsuffix>): Likewise.
678 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
679 (insn_st_add<bitsuffix>): Likewise.
680 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
681 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
682 (insn_stnt_add<bitsuffix>): Likewise.
683 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
684 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
685 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
686 reg_or_0_operand for operand 0.
687 (insn_v2<pack_insn>): Likewise.
688 (vec_pack_hipart_v4hi): Likewise.
689 (insn_v2packh): Likewise.
690 (vec_pack_ssat_v2si): Likewise.
691 (insn_v4packsc): Likewise.
693 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
695 * basic-block.h (gcov_working_set_t): Put back typedef.
696 * gcov-io.h (gcov_bucket_type): Likewise.
697 (gcov_working_set_info, gcov_working_set_t): Likewise.
699 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
701 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
703 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
704 rename to cgraph_inline_failed_t.
705 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
707 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
709 * conditions.h (CC_STATUS): Remove typedef.
710 * bitmap.h (bitmap_obstack): Remove typedef.
711 (bitmap_element_def, bitmap_element): Remove typedef and rename to
713 (bitmap_head_def, bitmap_head): Remove typedef and rename to
715 (bitmap_iterator): Remove typedef.
716 * target.h (cumulative_args_t, print_switch_type,
717 secondary_reload_info): Remove typedef.
718 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
719 dw_cfi_oprnd_struct alias.
720 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
721 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
722 (cfa_loc, dw_cfa_location): Remove typedef and rename to
724 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
726 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
727 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
729 * params.h (param_info, compiler_param): Remove typedef.
730 * opts.h (cl_deferred_param): Remove typedef.
731 * sreal.h (sreal): Remove typedef.
732 * ddg.h (dep_type, dep_data_type): Remove typedef.
733 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
735 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
736 lto_symtab_encoder_iterator, res_pair): Remove typedef.
737 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
738 and rename to aff_tree.
739 * sched-int.h (region): Remove typedef.
740 * diagnostic.h (diagnostic_info,
741 diagnostic_classification_change_t): Remove typedef.
742 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
744 * sbitmap.h (sbitmap_iterator): Remove typedef.
745 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
746 Remove typedef and rename to imm_use_iterator.
747 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
749 * ggc-internal.h (ggc_statistics): Remove typedef.
750 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
751 rename to cselib_val.
752 * tree-core.h (alias_pair): Remove typedef.
753 (constructor_elt_d, constructor_elt): Remove typedef and rename to
755 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
757 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
758 * tree-data-ref.h (conflict_function): Remove typedef.
759 * tree-inline.h (copy_body_data): Remove typedef.
760 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
761 edge_growth_cache_entry): Remove typedef.
762 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
763 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
764 Remove typedef and rename to gimple_stmt_iterator.
765 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
766 rename to ce_if_block.
767 (edge_iterator): Remove typedef.
768 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
769 and rename to ipa_agg_jf_item.
770 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
771 ipa_parm_adjustment_t): Remove typedef.
772 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
774 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
776 * gcov-io.h (gcov_bucket_type): Remove typedef.
777 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
778 to gcov_working_set_t.
779 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
780 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
781 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
782 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
783 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
784 replace_label_data): Remove typedef.
785 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
786 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
787 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
788 sel_region_bb_info_def, succ_iterator): Remove typedef.
789 (deps_where_def, deps_where_t): Remove typedef and rename to
791 * coretypes.h: Adapt forward declarations.
792 * tree-scalar-evolution.h: Likewise.
793 * tree-ssa-address.h: Likewise.
794 * tree-ssa-operands.h: Likewise.
795 * function.h: Likewise.
796 * config/frv/frv-protos.h: Likewise.
797 * targhooks.h: Likewise.
798 * basic_block.h: Likewise.
799 * rtl.def: Adapt documentation.
800 * doc/tm.texi: Likewise.
801 * ipa-cp.c: Adapt uses.
802 * bitmap.c: Likewise.
803 * dwarf2out.c: Likewise.
804 * target.def: Likewise.
805 * ipa-inline-analysis.c: Likewise.
806 * dwarf2cfi.c: Likewise.
807 * tree-ssa-loop-ivopts.c: Likewise.
808 * lto-cgraph.c: Likewise.
809 * config/frv/frv.c: Likewise.
811 * ipa-prop.c: Likewise.
813 2013-12-10 Kai Tietz <ktietz@redhat.com>
816 * config/i386/i386.c (ix86_expand_prologue): Address saved
817 registers stack-relative, not via frame-pointer.
819 2013-12-10 Richard Biener <rguenther@suse.de>
822 * tree-ssa-structalias.c (solution_set_expand): Expand into
823 a different possibly cached bitmap and return the result.
824 (set_union_with_increment): Pass in a shared expanded bitmap
826 (do_sd_constraint): Likewise.
827 (do_ds_constraint): Likewise.
828 (do_complex_constraint): Likewise.
829 (solve_graph): Manage the shared expanded bitmap.
831 2013-12-10 Jakub Jelinek <jakub@redhat.com>
833 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
834 (LOOP_VINFO_SCALAR_LOOP): Define.
835 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
836 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
837 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
839 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
841 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
843 (release_bb_predicate): New function.
844 (free_bb_predicate): Use it.
845 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
846 just to immediately allocate it again.
847 (add_to_predicate_list): Add loop argument. If basic blocks that
848 dominate loop->latch don't insert any predicate.
849 (add_to_dst_predicate_list): Adjust caller.
850 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
851 handle it like flag_tree_loop_if_convert_stores.
852 (insert_gimplified_predicates): Likewise.
853 (ifcvt_can_use_mask_load_store): New function.
854 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
855 argument, check if some conditional loads or stores can't be
856 converted into MASK_LOAD or MASK_STORE.
857 (if_convertible_stmt_p): Add any_mask_load_store argument,
858 pass it down to if_convertible_gimple_assign_stmt_p.
859 (predicate_bbs): Don't return bool, only check if the last stmt
860 of a basic block is GIMPLE_COND and handle that. Adjust
861 add_to_predicate_list caller.
862 (if_convertible_loop_p_1): Only call predicate_bbs if
863 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
864 afterwards, check gimple_code of stmts here. Replace is_predicated
865 check with dominance check. Add any_mask_load_store argument,
866 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
867 call if_convertible_phi_p only after all if_convertible_stmt_p
869 (if_convertible_loop_p): Add any_mask_load_store argument,
870 pass it down to if_convertible_loop_p_1.
871 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
872 (combine_blocks): Add any_mask_load_store argument, pass
873 it down to insert_gimplified_predicates and call predicate_mem_writes
874 if it is set. Call predicate_bbs.
875 (version_loop_for_if_conversion): New function.
876 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
877 calls. Return todo flags instead of bool, call
878 version_loop_for_if_conversion if if-conversion should be just
879 for the vectorized loops and nothing else.
880 (main_tree_if_conversion): Adjust caller. Don't call
881 tree_if_conversion for dont_vectorize loops if if-conversion
882 isn't explicitly enabled.
883 * tree-vect-data-refs.c (vect_check_gather): Handle
884 MASK_LOAD/MASK_STORE.
885 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
886 * gimple.h (gimple_expr_type): Handle MASK_STORE.
887 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
888 expand_MASK_STORE): New functions.
889 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
890 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
891 (vectorize_loops): Don't try to vectorize loops with
892 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
893 loops, fold LOOP_VECTORIZED internal call depending on if loop
894 has been vectorized or not.
895 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
897 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
898 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
899 still to loop's entry or exit edge.
900 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
901 down to slpeel_tree_duplicate_loop_to_edge_cfg.
902 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
904 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
905 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
906 right place in the CFG afterwards.
907 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
909 * cfgloop.h (struct loop): Add dont_vectorize field.
910 * tree-loop-distribution.c (copy_loop_before): Adjust
911 slpeel_tree_duplicate_loop_to_edge_cfg caller.
912 * optabs.def (maskload_optab, maskstore_optab): New optabs.
913 * passes.def: Add a note that pass_vectorize must immediately follow
915 * tree-predcom.c (split_data_refs_to_components): Give up if
917 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
919 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
921 (vectorizable_mask_load_store): New function.
922 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
923 (vect_transform_stmt): Handle MASK_STORE.
924 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
925 DR_STMT where lhs is NULL.
926 * optabs.h (can_vec_perm_p): Fix up comment typo.
927 (can_vec_mask_load_store_p): New prototype.
928 * optabs.c (can_vec_mask_load_store_p): New function.
930 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
932 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
933 the extraction of a bit-field of null size.
935 2013-12-10 Marek Polacek <polacek@redhat.com>
938 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
939 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
940 instead of gimple_code.
942 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
944 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
945 Add android definitions.
946 (s390x-*-linux*): Use linux-protos.h.
948 2013-12-10 Bin Cheng <bin.cheng@arm.com>
950 PR tree-optimization/41488
951 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
952 for PEELED_CHREC kind IV.
953 * tree-scalar-evolution.c: Include necessary header files.
954 (peeled_chrec_map, simplify_peeled_chrec): New.
955 (analyze_evolution_in_loop): New static variable.
956 Call simplify_peeled_chrec.
957 (scev_initialize): Initialize peeled_chrec_map.
958 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
960 2013-12-09 Andrew Pinski <apinski@cavium.com>
962 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
963 that options are conflicting ones.
965 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
967 * optabs.c (gen_int_libfunc): Do not compare modes directly.
969 2013-12-09 David Malcolm <dmalcolm@redhat.com>
971 * basic-block.h (FOR_ALL_BB): Eliminate macro.
973 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
974 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
976 * cfganal.c (inverted_post_order_compute): Likewise.
977 * cfgcleanup.c (try_optimize_cfg): Likewise.
978 * cfgexpand.c (add_scope_conflicts): Likewise.
979 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
980 * cfgrtl.c (relink_block_chain): Likewise.
981 * dce.c (mark_artificial_uses): Likewise.
982 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
983 * df-problems.c (df_lr_verify_solution_start,
984 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
985 df_live_verify_solution_start, df_live_verify_solution_end,
986 df_live_set_all_dirty, df_live_verify_transfer_functions,
987 df_md_local_comput): Likewise.
988 * df-scan.c (df_scan_free_internal, df_scan_alloc)
989 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
990 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
991 free_dominance_info): Likewise.
992 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
993 * graph.c (draw_cfg_edges): Likewise.
994 * graphite-scop-detection.c (print_graphite_scop_statistics,
995 dot_all_scops_1): Likewise.
996 * graphite.c (print_global_statistics,
997 print_graphite_scop_statistics): Likewise.
998 * ira.c (do_reload): Likewise.
999 * loop-init.c (loop_optimizer_finalize): Likewise.
1000 * lto-streamer-in.c (input_function): Likewise.
1001 * lto-streamer-out.c (output_function): Likewise.
1002 * mcf.c (adjust_cfg_counts): Likewise.
1003 * predict.c (estimate_loops): Likewise.
1004 * sched-rgn.c (haifa_find_rgns): Likewise.
1005 * tree-cfg.c (split_critical_edges): Likewise.
1006 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1007 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1008 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1009 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1010 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1011 * vtable-verify.c (vtable_verify_main): Likewise.
1012 * web.c (web_main): Likewise.
1014 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1016 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1018 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1019 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1020 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1021 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1022 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1023 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1024 * config/sh/sh.c (sh_md_init_global): Likewise.
1025 * config/sh/sh_optimize_sett_clrt.cc
1026 (sh_optimize_sett_clrt::execute): Likewise.
1027 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1029 * dominance.c (calc_dfs_tree): Likewise.
1030 * final.c (final): Likewise.
1031 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1032 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1033 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1034 * lcm.c (compute_antinout_edge): Likewise.
1035 * mode-switching.c (optimize_mode_switching): Likewise.
1036 * postreload.c (reload_combine): Likewise.
1037 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1038 * tree-ssa-live.c (live_worklist): Likewise.
1040 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1042 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1044 * asan.c (transform_statements, execute_sanopt): Eliminate
1045 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1047 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1048 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1049 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1050 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1051 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1052 duplicate_computed_gotos): Likewise.
1053 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1054 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1055 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1056 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1057 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1058 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1060 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1061 verify_loop_structure): Likewise.
1062 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1063 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1064 verify_hot_cold_block_grouping, purge_all_dead_edges,
1065 fixup_abnormal_edges, record_effective_endpoints,
1066 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1067 break_superblocks): Likewise.
1068 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1069 cgraph_rebuild_references): Likewise.
1070 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1071 * combine.c (delete_noop_moves, create_log_links,
1072 combine_instructions): Likewise.
1073 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1074 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1076 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1077 c6x_reorg): Likewise.
1078 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1079 * config/frv/frv.c (frv_optimize_membar): Likewise.
1080 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1081 * config/ia64/ia64.c (ia64_reorg): Likewise.
1082 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1083 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1084 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1085 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1086 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1087 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1088 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1089 reorder_var_tracking_notes): Likewise.
1090 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1091 reorder_var_tracking_notes): Likewise.
1092 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1093 * cprop.c (compute_hash_table_work, compute_cprop_data,
1094 local_cprop_pass, find_implicit_sets): Likewise.
1095 * cse.c (cse_condition_code_reg): Likewise.
1096 * dce.c (prescan_insns_for_dce): Likewise.
1097 * df-core.c (df_compact_blocks): Likewise.
1098 * df-problems.c (df_word_lr_alloc): Likewise.
1099 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1100 df_update_entry_exit_and_calls): Likewise.
1101 * dominance.c (calculate_dominance_info, verify_dominators,
1102 debug_dominance_info): Likewise.
1103 * dse.c (dse_step5_nospill): Likewise.
1104 * except.c (finish_eh_generation): Likewise.
1105 * final.c (compute_alignments): Likewise.
1106 * function.c (thread_prologue_and_epilogue_insns,
1107 rest_of_match_asm_constraints): Likewise.
1108 * gcse.c (compute_hash_table_work, prune_expressions,
1109 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1110 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1111 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1112 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1113 find_explicit_erroneous_behaviour): Likewise.
1114 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1115 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1116 * haifa-sched.c (haifa_sched_init): Likewise.
1117 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1119 * ifcvt.c (if_convert): Likewise.
1120 * init-regs.c (initialize_uninitialized_regs): Likewise.
1121 * ipa-prop.c (ipcp_transform_function): Likewise.
1122 * ipa-pure-const.c (analyze_function): Likewise.
1123 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1124 * ira-build.c (form_loop_tree): Likewise.
1125 * ira-costs.c (find_costs_and_classes): Likewise.
1126 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1127 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1128 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1129 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1130 * jump.c (mark_all_labels): Likewise.
1131 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1132 compute_nearerout, compute_rev_insert_delete): Likewise.
1133 * loop-init.c (fix_loop_structure): Likewise.
1134 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1135 * lower-subreg.c (decompose_multiword_subregs,
1136 decompose_multiword_subregs): Likewise.
1137 * lra-assigns.c (assign_by_spills): Likewise.
1138 * lra-coalesce.c (lra_coalesce): Likewise.
1139 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1141 * lra-eliminations.c (lra_init_elimination): Likewise.
1142 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1143 lra_final_code_change): Likewise.
1144 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1145 update_inc_notes): Likewise.
1146 * mcf.c (adjust_cfg_counts): Likewise.
1147 * mode-switching.c (optimize_mode_switching): Likewise.
1148 * modulo-sched.c (rest_of_handle_sms): Likewise.
1149 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1150 expand_omp_target): Likewise.
1151 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1152 * postreload.c (reload_cse_regs_1): Likewise.
1153 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1154 tree_estimate_probability, expensive_function_p,
1155 estimate_bb_frequencies, compute_function_frequency): Likewise.
1156 * profile.c (is_inconsistent, compute_branch_probabilities,
1157 branch_prob): Likewise.
1158 * ree.c (find_removable_extensions): Likewise.
1159 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1160 * regcprop.c (copyprop_hardreg_forward): Likewise.
1161 * reginfo.c (init_subregs_of_mode): Likewise.
1162 * regrename.c (regrename_analyze): Likewise.
1163 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1165 * reload1.c (has_nonexceptional_receiver, reload,
1166 calculate_elim_costs_all_insns): Likewise.
1167 * resource.c (init_resource_info, free_resource_info): Likewise.
1168 * sched-ebb.c (schedule_ebbs): Likewise.
1169 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1170 haifa_find_rgns, sched_rgn_local_init): Likewise.
1171 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1172 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1173 make_regions_from_the_rest): Likewise.
1174 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1175 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1176 * store-motion.c (compute_store_table, build_store_vectors,
1177 one_store_motion_pass): Likewise.
1178 * tracer.c (tail_duplicate): Likewise.
1179 * trans-mem.c (compute_transaction_bits): Likewise.
1180 * tree-call-cdce.c (tree_call_cdce): Likewise.
1181 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1182 fold_cond_expr_cond, make_edges, assign_discriminators,
1183 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1184 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1185 execute_fixup_cfg): Likewise.
1186 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1187 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1189 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1190 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1191 mark_reachable_handlers): Likewise.
1192 * tree-emutls.c (lower_emutls_function_body): Likewise.
1193 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1194 * tree-inline.c (optimize_inline_calls): Likewise.
1195 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1196 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1197 * tree-object-size.c (compute_object_sizes): Likewise.
1198 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1199 insert_backedge_copies, tree_profiling): Likewise.
1200 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1201 * tree-sra.c (scan_function, sra_modify_function_body,
1202 propagate_dereference_distances, ipa_sra_modify_function_body,
1203 convert_callers): Likewise.
1204 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1205 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1206 create_outofssa_var_map, coalesce_partitions): Likewise.
1207 * tree-ssa-copy.c (init_copy_prop): Likewise.
1208 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1209 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1210 eliminate_unnecessary_stmts): Likewise.
1211 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1213 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1214 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1215 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1216 analyze_memory_references, fill_always_executed_in,
1217 tree_ssa_lim_finalize): Likewise.
1218 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1220 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1221 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1222 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1223 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1224 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1226 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1227 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1228 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1229 tree_ssa_uncprop): Likewise.
1230 * tree-ssa-uninit.c (warn_uninitialized_vars,
1231 execute_late_warn_uninitialized): Likewise.
1232 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1233 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1235 * tree-switch-conversion.c (do_switchconv): Likewise.
1236 * tree-vect-generic.c (expand_vector_operations): Likewise.
1237 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1238 execute_vect_slp): Likewise.
1239 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1240 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1242 * ubsan.c (ubsan_pass): Likewise.
1243 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1244 gimple_find_values_to_profile): Likewise.
1245 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1246 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1248 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1250 * basic-block.h (last_basic_block): Eliminate macro.
1252 * asan.c (transform_statements): Eliminate use of last_basic_block
1253 in favor of last_basic_block_for_fn, in order to make use of cfun
1255 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1256 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1257 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1258 * cfg.c (compact_blocks): Likewise.
1259 * cfganal.c (mark_dfs_back_edges,
1260 control_dependences::control_dependences, post_order_compute,
1261 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1262 single_pred_before_succ_order): Likewise.
1263 * cfgbuild.c (make_edges): Likewise.
1264 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1265 * cfghooks.c (verify_flow_info): Likewise.
1266 * cfgloop.c (verify_loop_structure): Likewise.
1267 * cfgloopanal.c (just_once_each_iteration_p,
1268 mark_irreducible_loops): Likewise.
1269 * cfgloopmanip.c (fix_bb_placements, remove_path,
1270 update_dominators_in_loop): Likewise.
1271 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1272 break_superblocks, rtl_flow_call_edges_add): Likewise.
1273 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1274 * config/frv/frv.c (frv_optimize_membar): Likewise.
1275 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1276 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1277 * cprop.c (compute_local_properties, find_implicit_sets,
1278 bypass_conditional_jumps, one_cprop_pass): Likewise.
1279 * cse.c (cse_main): Likewise.
1280 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1281 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1282 * df-problems.c (df_lr_verify_solution_start,
1283 df_live_verify_solution_start, df_md_local_compute): Likewise.
1284 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1285 calc_idoms): Likewise.
1286 * domwalk.c (dom_walker::walk): Likewise.
1287 * dse.c (dse_step0, dse_step3): Likewise.
1288 * function.c (epilogue_done): Likewise.
1289 * gcse.c (alloc_gcse_mem, compute_local_properties,
1290 prune_insertions_deletions, compute_pre_data,
1291 pre_expr_reaches_here_p, one_pre_gcse_pass,
1292 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1293 one_code_hoisting_pass): Likewise.
1294 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1295 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1296 * haifa-sched.c (unlink_bb_notes): Likewise.
1297 * ipa-split.c (execute_split_functions): Likewise.
1298 * ira-build.c (create_loop_tree_nodes,
1299 remove_unnecessary_regions): Likewise.
1300 * ira-emit.c (ira_emit): Likewise.
1301 * ira.c (find_moveable_pseudos, ira): Likewise.
1302 * lcm.c (compute_antinout_edge, compute_laterin,
1303 compute_insert_delete, pre_edge_lcm, compute_available,
1304 compute_nearerout, compute_rev_insert_delete,
1305 pre_edge_rev_lcm): Likewise.
1306 * loop-unroll.c (opt_info_start_duplication,
1307 apply_opt_in_copies): Likewise.
1308 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1309 * lra-lives.c (lra_create_live_ranges): Likewise.
1310 * lra.c (lra): Likewise.
1311 * mode-switching.c (optimize_mode_switching): Likewise.
1312 * recog.c (split_all_insns): Likewise.
1313 * regcprop.c (copyprop_hardreg_forward): Likewise.
1314 * regrename.c (regrename_analyze): Likewise.
1315 * reload1.c (reload): Likewise.
1316 * resource.c (init_resource_info): Likewise.
1317 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1318 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1319 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1320 recompute_rev_top_order, sel_init_pipelining,
1321 make_regions_from_the_rest): Likewise.
1322 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1324 * tracer.c (tail_duplicate): Likewise.
1325 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1326 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1327 gimple_flow_call_edges_add): Likewise.
1328 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1329 cleanup_tree_cfg_1): Likewise.
1330 * tree-complex.c (tree_lower_complex): Likewise.
1331 * tree-inline.c (copy_cfg_body): Likewise.
1332 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1333 prepare_def_site_for, update_ssa): Likewise.
1334 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1335 * tree-ssa-dom.c (record_edge_info): Likewise.
1336 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1337 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1338 * tree-ssa-loop-manip.c (copy_phi_node_args
1339 gimple_duplicate_loop_to_header_edge): Likewise.
1340 * tree-ssa-pre.c (compute_antic): Likewise.
1341 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1342 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1343 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1344 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1345 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1346 * tree-stdarg.c (reachable_at_most_once): Likewise.
1347 * tree-vrp.c (find_assert_locations): Likewise.
1348 * var-tracking.c (vt_find_locations): Likewise.
1350 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1352 * basic-block.h (profile_status): Eliminate macro.
1354 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1355 profile_status macro in favor of profile_status_for_fn, making
1356 use of cfun explicit.
1357 * cfghooks.c (account_profile_record): Likewise.
1358 * cfgloopanal.c (single_likely_exit):
1359 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1360 * graphite.c (graphite_finalize):
1361 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1362 ubsan_expand_si_overflow_neg_check,
1363 ubsan_expand_si_overflow_mul_check): Likewise.
1364 * ipa-split.c (consider_split, execute_split_functions):
1365 * loop-unroll.c (decide_peel_simple):
1366 * optabs.c (emit_cmp_and_jump_insn_1):
1367 * predict.c (maybe_hot_edge_p, probably_never_executed,
1368 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1369 tree_estimate_probability_driver, estimate_bb_frequencies,
1370 compute_function_frequency, rebuild_frequencies): Likewise.
1371 * profile.c (compute_branch_probabilities): Likewise.
1372 * tree-cfg.c (gimple_account_profile_record): Likewise.
1373 * tree-inline.c (optimize_inline_calls): Likewise.
1375 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1377 * basic-block.h (label_to_block_map): Eliminate macro.
1379 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1380 with uses of label_to_block_map_for_fn, making uses of cfun be
1382 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1383 (verify_gimple_label): Likewise.
1385 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1387 * basic-block.h (basic_block_info): Eliminate macro.
1389 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1390 basic_block_info with basic_block_info_for_fn, making uses
1391 of cfun be explicit.
1392 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1394 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1396 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1398 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1399 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1400 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1401 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1402 * caller-save.c (insert_one_insn): Likewise.
1403 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1404 * cfgexpand.c (add_scope_conflicts): Likewise.
1405 * cfghooks.c (verify_flow_info): Likewise.
1406 * cfgloop.c (flow_loops_find): Likewise.
1407 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1408 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1409 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1410 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1411 * cse.c (cse_main): Likewise.
1412 * dce.c (fast_dce): Likewise.
1413 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1414 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1415 df_bb_replace, df_dump_region): Likewise.
1416 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1417 df_live_bb_local_compute, df_chain_remove_problem)
1418 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1419 df_md_bb_local_compute, df_md_local_compute,
1420 df_md_transfer_function): Likewise.
1421 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1422 df_reorganize_refs_by_insn, df_bb_refs_collect,
1423 df_record_entry_block_defs, df_update_entry_block_defs,
1424 df_record_exit_block_uses): Likewise.
1425 * dominance.c (nearest_common_dominator_for_set): Likewise.
1426 * gcse.c (hoist_code): Likewise.
1427 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1428 * ipa-inline-analysis.c (param_change_prob,
1429 estimate_function_body_sizes): Likewise.
1430 * ipa-split.c (dominated_by_forbidden): Likewise.
1431 * loop-unroll.c (apply_opt_in_copies): Likewise.
1432 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1433 * lra-lives.c (lra_create_live_ranges): Likewise.
1434 * predict.c (propagate_freq): Likewise.
1435 * regrename.c (regrename_analyze): Likewise.
1436 * regstat.c (regstat_bb_compute_ri,
1437 regstat_bb_compute_calls_crossed): Likewise.
1438 * resource.c (mark_target_live_regs): Likewise.
1439 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1440 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1441 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1442 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1443 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1444 * sched-vis.c (debug_bb_n_slim): Likewise.
1445 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1446 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1447 * sel-sched.c (remove_insns_that_need_bookkeeping)
1448 (current_region_empty_p, sel_region_init,
1449 simplify_changed_insns): Likewise.
1450 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1451 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1452 * tree-cfg.c (make_edges, end_recording_case_labels,
1453 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1454 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1455 gimple_purge_all_dead_eh_edges,
1456 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1457 * tree-cfgcleanup.c (fixup_noreturn_call,
1458 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1459 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1460 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1461 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1462 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1463 * tree-ssa-live.c (live_worklist): Likewise.
1464 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1465 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1466 * tree-ssa-pre.c (compute_antic): Likewise.
1467 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1468 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1469 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1470 same_succ_flush_bbs, update_worklist, set_cluster,
1471 same_phi_alternatives, find_clusters_1, apply_clusters,
1472 update_debug_stmts): Likewise.
1473 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1474 thread_through_all_blocks): Likewise.
1475 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1476 * tree-vrp.c (find_assert_locations): Likewise.
1478 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1480 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1482 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1483 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1484 (expunge_block): Likewise.
1485 * cfgrtl.c (create_basic_block_structure): Likewise.
1486 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1487 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1488 * tree-cfg.c (create_bb): Likewise.
1490 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1492 * basic-block.h (profile_status_for_function): Rename to...
1493 (profile_status_for_fn): ...this.
1495 * cfg.c (check_bb_profile): Update for renaming.
1496 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1497 * lto-streamer-in.c (input_cfg): Likewise.
1498 * lto-streamer-out.c (output_cfg): Likewise.
1499 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1500 maybe_hot_bb_p, probably_never_executed)
1501 (handle_missing_profiles): Likewise.
1502 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1503 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1505 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1507 * basic-block.h (label_to_block_map_for_function): Rename to...
1508 (label_to_block_map_for_fn): ...this.
1510 * lto-streamer-in.c (input_cfg): Update for renaming.
1511 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1513 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1515 * basic-block.h (last_basic_block_for_function): Rename to...
1516 (last_basic_block_for_fn): ...this.
1518 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1519 last_basic_block_for_function to last_basic_block_for_fn.
1520 * lto-streamer-in.c (input_cfg): Likewise.
1521 * lto-streamer-out.c (output_cfg): Likewise.
1522 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1523 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1526 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1528 * basic-block.h (basic_block_info_for_function): Rename to...
1529 (basic_block_info_for_fn): ...this.
1530 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1531 (BASIC_BLOCK_FOR_FN): ...this.
1532 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1533 (SET_BASIC_BLOCK_FOR_FN): ...this.
1535 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1536 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1537 * ipa-utils.c (ipa_merge_profiles): Likewise.
1538 * lto-streamer-in.c (make_new_block): Update for renaming of
1539 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1540 (input_cfg): Update for renamings.
1541 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1542 (dump_function_to_file): Update for renaming of
1543 basic_block_info_for_function to basic_block_info_for_fn.
1545 2013-12-09 Richard Biener <rguenther@suse.de>
1548 * tree-ssa-structalias.c (set_union_with_increment): Remove
1550 (do_complex_constraint): Call set_union_with_increment with
1551 the solution delta, not the full solution.
1552 (make_transitive_closure_constraints): Merge the two
1555 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1557 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1558 more address validation checks.
1560 2013-12-09 Marek Polacek <polacek@redhat.com>
1563 * vtable-verify.c (verify_bb_vtables): Check the return value
1564 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1566 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1568 * config/arm/arm.md (generic_sched): Add cortexa12.
1569 (generic_vfp): Likewise.
1570 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1571 (arm_cortex_a12_tune): New tuning struct.
1572 * config/arm/arm-cores.def: Add cortex-a12.
1573 * config/arm/arm-tables.opt: Regenerate.
1574 * config/arm/arm-tune.md: Likewise.
1575 * config/arm/bpabi.h: Add cortex-a12.
1576 * doc/invoke.texi: Document -mcpu=cortex-a12.
1578 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1580 * doc/install.texi (Prerequisites): Explicitly mention C library
1581 and its headers for multilib builds.
1583 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1587 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1588 OPT_mcbranchdi entry.
1589 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1591 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1592 and TARGET_CMPEQDI_T variables.
1593 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1595 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1597 * config/linux.h: Fix typo in a comment.
1599 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1601 * config.gcc (*linux*): Split libc selection from Android support.
1602 Add libc selection to all *linux* targets. Add Android support to
1603 architectures that support it.
1604 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1605 (mips*-*-linux*): Add Android support.
1607 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1608 Maxim Kuvyrkov <maxim@kugelworks.com>
1610 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1611 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1612 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1614 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1616 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1617 Define appropriately for Linux and uClinux targets.
1619 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1621 * config/linux.c (linux_has_ifunc_p): Use correct test.
1623 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1625 * config/linux.c (linux_android_has_ifunc_p): Rename to
1627 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1628 * config/linux-protos.h (linux_android_has_ifunc_p,)
1629 (linux_android_libc_has_function): Update declarations.
1630 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1631 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1633 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1635 * linux-android.c: Rename to linux.c.
1636 * t-linux-android: Rename to t-linux. Update references
1638 * config.gcc: Update references to t-linux-android and linux-android.o.
1640 2013-12-07 Alan Modra <amodra@gmail.com>
1642 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1645 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1647 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1649 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1651 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1654 2013-12-06 Caroline Tice <cmtice@google.com>
1656 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1657 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1658 vtable pointer with the results of the verification call, rather than
1659 only the uses in the next statement.
1661 2013-12-06 Andrew Pinski <apinski@cavium.com>
1664 * config/aarch64/aarch64.md (trap): New pattern.
1666 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1668 PR tree-optimization/59388
1669 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1670 gimplify tem after stmt rather than before it.
1672 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1673 (get_references_in_stmt): Don't record operand addresses, but
1674 operands themselves.
1675 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1676 Adjust for the pos -> ref change.
1678 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1680 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1682 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1683 (processor_alias_table): Likewise.
1684 (ix86_option_override_internal): Likewise.
1685 * config/i386/i386.h (target_cpu_default): Replace
1686 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1688 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1690 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1693 * config/i386/i386.c (type_natural_mode): Properly handle
1694 size 8 for !TARGET_64BIT.
1696 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1698 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1701 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1702 Mark Mitchell <mark@codesourcery.com>
1705 * config/arm/arm.md (trap): New pattern.
1706 * config/arm/types.md: Added a type for trap.
1708 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1710 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1712 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1715 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1716 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1717 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1718 (TARGET_BUILTIN_DECL): Define.
1719 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1720 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1721 (enum sparc_builtins): New enumeral type.
1722 (sparc_builtins): New static array.
1723 (sparc_builtins_icode): Likewise.
1724 (def_builtin): Accept a separate icode and save the result.
1725 (def_builtin_const): Likewise.
1726 (sparc_fpu_init_builtins): New function.
1727 (sparc_vis_init_builtins): Pass the builtin code.
1728 (sparc_init_builtins): Call it if TARGET_FPU.
1729 (sparc_builtin_decl): New function.
1730 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1731 (sparc_handle_vis_mul8x16): Use the builtin code.
1732 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1733 and SPARC_BUILTIN_PDISTN.
1734 (compound_expr): New helper function.
1735 (sparc_atomic_assign_expand_fenv): New function.
1736 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1738 (flush, flushdi): Merge into single pattern.
1739 (ldfsr): New instruction.
1742 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1744 * asan.c: Remove struct tags when referring to class varpool_node.
1745 * cgraph.h: Likewise.
1746 * cgraphbuild.c: Likewise.
1747 * cgraphunit.c: Likewise.
1748 * dbxout.c: Likewise.
1749 * dwarf2out.c: Likewise.
1750 * gimple-fold.c: Likewise.
1751 * ipa-devirt.c: Likewise.
1752 * ipa-ref-inline.h: Likewise.
1753 * ipa-ref.h: Likewise.
1754 * ipa-reference.c: Likewise.
1755 * ipa-utils.c: Likewise.
1757 * lto-cgraph.c: Likewise.
1758 * lto-streamer-out.c: Likewise.
1759 * lto-streamer.h: Likewise.
1760 * passes.c: Likewise.
1761 * toplev.c: Likewise.
1762 * tree-eh.c: Likewise.
1763 * tree-emutls.c: Likewise.
1764 * tree-pass.h: Likewise.
1765 * tree-ssa-structalias.c: Likewise.
1766 * tree-vectorizer.c: Likewise.
1768 * varasm.c: Likewise.
1769 * varpool.c: Likewise.
1771 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1773 * cgraphunit.c: Remove struct tags when referring to class
1774 ipa_opt_pass_d or class opt_pass.
1775 * function.h: Likewise.
1776 * lto-cgraph.c: Likewise.
1777 * pass_manager.h: Likewise.
1778 * passes.c: Likewise.
1779 * tree-pass.h: Likewise.
1781 2013-12-06 Richard Biener <rguenther@suse.de>
1783 PR tree-optimization/59058
1784 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1785 (LOOP_VINFO_NITERSM1): New macro.
1786 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1787 the vector loop entry test in terms of scalar latch executions.
1788 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1789 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1790 number of latch executions.
1791 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1792 (vect_analyze_loop_form): Likewise.
1793 (vect_generate_tmps_on_preheader): Compute the number of
1794 vectorized iterations differently.
1796 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1798 * config/score/score.c (score_force_temporary): Delete function.
1799 (score_split_symbol): Ditto.
1800 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1801 parentheses to silence ambiguity warning and reindent.
1803 2013-12-05 Marek Polacek <polacek@redhat.com>
1805 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1807 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1809 * config.gcc: Support --with-cpu=ia.
1811 * config/i386/i386.c (cpu_names): Add "ia".
1812 (processor_alias_table): Likewise.
1813 (ix86_option_override_internal): Disallow -march=ia.
1814 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1816 * doc/invoke.texi: Document -mtune=ia.
1818 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1820 PR rtl-optimization/59317
1821 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1824 2013-12-05 Martin Jambor <mjambor@suse.cz>
1827 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1828 non-BLKmode in their naturally aligned type.
1830 2013-12-05 Marek Polacek <polacek@redhat.com>
1834 * ubsan.c: Include rtl.h and expr.h.
1835 (ubsan_encode_value): Add new parameter. If expanding, assign
1836 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1837 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1838 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1839 * ubsan.h (ubsan_encode_value): Adjust declaration.
1840 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1841 ubsan_build_overflow_builtin above expand_normal call. Surround
1842 this call with push_temp_slots and pop_temp_slots.
1843 (ubsan_expand_si_overflow_neg_check): Likewise.
1844 (ubsan_expand_si_overflow_mul_check): Likewise.
1846 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1848 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1849 the get_alternative_base call with flag_expensive_optimizations.
1850 (alloc_cand_and_find_basis): Likewise.
1852 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1854 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1855 vec_select for overlapping register lanes.
1857 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1859 * config/i386/i386.c (ix86_expand_builtin): Generate
1860 reg for readflags built-in when optimizing.
1861 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1862 (pushfl<mode>2): This. Fix iterator.
1863 (*popfl<mode>): Rename to ...
1864 (*popfl<mode>1): This. Fix iterator.
1866 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1868 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1869 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1870 (ix86_init_mmx_sse_builtins): Define
1871 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1872 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1873 (ix86_expand_builtin): Expand them.
1874 * config/i386/ia32intrin.h (__readeflags): New.
1875 (__writeeflags): Ditto.
1876 * config/i386/i386.md (*pushfl<mode>): Ditto.
1877 (*popfl<mode>1): Ditto.
1879 2013-12-05 Richard Biener <rguenther@suse.de>
1881 PR tree-optimization/59374
1882 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1883 Commonize known and unknown dependence case fixing the allowed
1884 read-write dependence case and dropping code that should not matter.
1886 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1888 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1889 generation of predicated version.
1890 (epilogue_deallocate_stack): Ditto.
1891 (prologue_allocate_stack_pr): Add explicit predicated version.
1892 (epilogue_deallocate_stack_pr): Ditto.
1893 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1895 2013-12-05 Alan Modra <amodra@gmail.com>
1897 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1899 <recursive call for build != host>: Clear GMPINC. Don't bother
1902 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1903 Marek Polacek <polacek@redhat.com>
1905 * opts.c (common_handle_option): Handle
1906 -fsanitize=signed-integer-overflow.
1907 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1908 negv<mode>3, negv<mode>3_1): Define expands.
1909 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1910 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1911 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1912 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1913 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1914 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1915 PROB_ALWAYS): Define.
1916 (ubsan_build_overflow_builtin): Declare.
1917 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1919 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1920 (ubsan_build_overflow_builtin): New function.
1921 (instrument_si_overflow): Likewise.
1922 (ubsan_pass): Add signed integer overflow checking.
1923 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1924 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1925 * internal-fn.c: Include ubsan.h and target.h.
1926 (ubsan_expand_si_overflow_addsub_check): New function.
1927 (ubsan_expand_si_overflow_neg_check): Likewise.
1928 (ubsan_expand_si_overflow_mul_check): Likewise.
1929 (expand_UBSAN_CHECK_ADD): Likewise.
1930 (expand_UBSAN_CHECK_SUB): Likewise.
1931 (expand_UBSAN_CHECK_MUL): Likewise.
1932 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1933 (-A) + B -> B - A when doing the signed integer overflow checking.
1934 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1936 * tree-vrp.c (extract_range_basic): Handle internal calls.
1937 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1939 * asan.c: Include predict.h.
1940 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1941 * predict.c: Move the PROB_* macros...
1942 * predict.h (enum br_predictor): ...here.
1943 (PROB_LIKELY, PROB_UNLIKELY): Define.
1944 * trans-mem.c: Include predict.h.
1945 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1946 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1948 2013-12-04 Jeff Law <law@redhat.com>
1950 * common.opt: Split up -fisolate-erroneous-paths into
1951 -fisolate-erroneous-paths-dereference and
1952 -fisolate-erroneous-paths-attribute.
1953 * invoke.texi: Corresponding changes.
1954 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1955 what kind of statements can be used to infer a non-null range.
1956 * gimple.h (infer_nonnull_range): Update prototype.
1957 * tree-vrp.c (infer_value_range): Corresponding changes.
1958 * opts.c (default_options_table): Update due to option split.
1959 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1960 (find_implicit_erroneous_behaviour): Pass additional arguments
1961 to infer_nonnull_range.
1962 (find_explicit_erroneous_behaviour): Similarly.
1963 (gate_isolate_erroneous_paths): Check both of the new options.
1965 2013-12-04 Jeff Law <law@redhat.com>
1967 * expr.c (expand_assignment): Update comments.
1969 2013-12-04 Tobias Burnus <burnus@net-b.de>
1972 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1973 * tree.def (NAMELIST_DECL): Add.
1974 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1975 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1976 * dwarf2out.c (gen_namelist_decl): New function.
1977 (gen_decl_die, dwarf2out_decl): Call it.
1978 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1979 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1980 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1982 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1984 2013-12-03 Xinliang David Li <davidxl@google.com>
1986 * tree-ssa-structalias.c (constraint_set_union): Change return type
1988 (merge_node_constraints): Ditto.
1989 (unify_nodes): Update changed set when constraints set changes.
1991 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1993 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1995 * configure: Regenerated.
1997 * gdbasan.in: New file.
1999 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2001 PR rtl-optimization/58726
2002 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2003 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2005 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2006 Uros Bizjak <ubizjak@gmail.com>
2009 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2010 !TARGET_AVX there is misaligned MEM operand with vector mode
2011 and get_attr_ssememalign is 0, return false.
2012 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2013 computed alignment and for non-temporal loads/stores also
2014 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2015 * config/i386/sse.md
2016 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2017 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2018 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2019 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2020 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2021 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2022 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2023 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2024 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2025 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2026 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2027 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2028 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2029 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2030 * config/i386/i386.md (ssememalign): New define_attr.
2032 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2034 PR tree-optimization/59355
2035 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2036 * opts.c (common_handle_option): Fix comment spelling.
2038 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2040 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2041 (name_expansions): New static variable.
2042 (alt_base_map): Ditto.
2043 (get_alternative_base): New function.
2044 (find_basis_for_candidate): For CAND_REF, optionally call
2045 find_basis_for_base_expr with the returned value from
2046 get_alternative_base.
2047 (record_potential_basis): Add new parameter 'base' of type 'tree';
2048 add an assertion of non-NULL base; use base to set node->base_expr.
2049 (alloc_cand_and_find_basis): Update; call record_potential_basis
2050 for CAND_REF with the returned value from get_alternative_base.
2051 (replace_refs): Dump details on the replacing.
2052 (execute_strength_reduction): Call pointer_map_create for
2053 alt_base_map; call free_affine_expand_cache with &name_expansions.
2055 2013-12-03 Wei Mi <wmi@google.com>
2057 PR rtl-optimization/59020
2058 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2059 (sched_analyze_insn): Call try_group_insn.
2060 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2061 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2062 (group_insns_for_macro_fusion): Removed.
2063 (sched_init): Remove calling group_insns_for_macro_fusion.
2065 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2067 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2069 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2071 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2073 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2075 (aarch64_can_eliminate): Don't check elimination source when
2076 frame_pointer_required is false.
2078 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2080 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2081 position independent code.
2082 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2084 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2087 * config/i386/i386.c (emit_memset): Adjust destination address
2089 (expand_setmem_epilogue): Likewise.
2091 2013-12-03 Marek Polacek <polacek@redhat.com>
2094 * calls.c (expand_call): Disallow passing huge arguments by value.
2096 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2098 PR tree-optimization/59362
2099 * tree-object-size.c (object_sizes): Change into array of
2100 vec<unsigned HOST_WIDE_INT>.
2101 (compute_builtin_object_size): Check computed bitmap for
2102 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2103 vector if new SSA_NAMEs appeared.
2104 (init_object_sizes): Check computed bitmap for non-NULL.
2105 Call safe_grow on object_sizes elements instead of initializing
2107 (fini_object_sizes): Call release on object_sizes elements, don't
2111 * gimplify.c (nonlocal_vla_vars): New variable.
2112 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2113 nonlocal_vla_vars chain.
2114 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2115 if outer_bind has DECL_INITIAL (current_function_decl) block.
2118 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2120 * expr.h (struct saved_pending_stack_adjust): New type.
2121 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2123 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2124 and get_last_insn before do_pending_stack_adjust, call
2125 restore_pending_stack_adjust after delete_insns_since.
2126 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2127 before calling emit_conditional_move.
2128 * expmed.c (expand_sdiv_pow2): Likewise.
2129 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2131 2013-12-02 Jeff Law <law@redhat.com>
2133 PR tree-optimization/59322
2134 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2135 Remove code which copied jump threading paths.
2137 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2140 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2141 for saving in cl_target_option.
2142 (ix86_tune_string): Ditto.
2143 (ix86_cmodel): Ditto.
2145 (ix86_asm_dialect): Ditto.
2146 (ix86_branch_cost): Ditto.
2147 (ix86_dump_tunes): Ditto.
2148 (ix86_force_align_arg_pointer): Ditto.
2149 (ix86_force_drap): Ditto.
2150 (ix86_incoming_stack_boundary_arg): Ditto.
2151 (ix86_pmode): Ditto.
2152 (ix86_preferred_stack_boundary_arg): Ditto.
2153 (ix86_recip_name): Ditto.
2154 (ix86_regparm): Ditto.
2155 (ix86_section_threshold): Ditto.
2156 (ix86_sse2avx): Ditto.
2157 (ix86_stack_protector_guard): Ditto.
2158 (ix86_stringop_alg): Ditto.
2159 (ix86_tls_dialect): Ditto.
2160 (ix86_tune_ctrl_string): Ditto.
2161 (ix86_tune_memcpy_strategy): Ditto.
2162 (ix86_tune_memset_strategy): Ditto.
2163 (ix86_tune_no_default): Ditto.
2164 (ix86_veclibabi_type): Ditto.
2165 * config/i386/i386.c (function_specific_save): Save the above
2166 variables in gcc_options to cl_target_option.
2167 (function_specific_restore): Do the reverse done in
2168 function_specific_save.
2169 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2170 and ix86_tune_string to use the opts structure.
2171 (ix86_option_override_internal):Change
2172 ix86_incoming_stack_boundary_arg to
2173 opts->x_ix86_incoming_stack_boundary_arg
2175 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2177 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2178 in #ifndef IN_LIBGCC2 / #endif.
2180 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2182 PR tree-optimization/59358
2183 * tree-vrp.c (union_ranges): To check for the partially overlapping
2184 ranges or adjacent ranges, also compare *vr0max with vr1max.
2186 2013-12-02 Sterling Augustine  <saugustine@google.com>
2188 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2189 when there isn't a skeleton die.
2191 2013-12-02 Marek Polacek <polacek@redhat.com>
2194 * doc/invoke.texi: Document -fsanitize=return.
2196 2013-12-02 Tobias Burnus <burnus@net-b.de>
2197 Manuel López-Ibáñez <manu@gcc.gnu.org>
2200 * doc/invoke.texi: Add missing @opindex.
2201 (-fsanitize=): Use @gcctabopt instead of @itemize.
2203 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2205 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2206 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2207 targets like arm-none-eabi.
2208 * expr.c (expand_assignment): Handle normal fields like bit regions.
2210 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2213 * function.c (invoke_set_current_function_hook): Call
2214 targetm.set_current_function after setting this_fn_optabs.
2216 2013-12-02 Richard Biener <rguenther@suse.de>
2218 PR tree-optimization/59139
2219 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2220 code in get_val_for.
2221 (get_val_for): Use gcc_checking_asserts.
2223 2013-12-02 Richard Biener <rguenther@suse.de>
2226 * tree-ssa-operands.c (opf_implicit): Remove.
2227 (opf_address_taken): New flag.
2228 (get_expr_operands): Remove early out, pass down opf_address_taken for
2229 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2230 (get_indirect_ref_operands): Rename to ...
2231 (get_mem_ref_operands): ... this.
2232 (get_asm_expr_operands): Rename to ...
2233 (get_asm_stmt_operands): ... this.
2235 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2237 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2239 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2241 PR tree-optimization/59356
2242 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2243 offset computation using the precision of the index type.
2245 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2248 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2249 when rclass is GENERAL_REGS.
2251 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2253 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2254 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2256 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2258 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2261 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2263 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2265 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2266 Eric Botcazou <ebotcazou@adacore.com>
2268 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2269 as applied to nonzero_sign_valid when last_set_mode has less precision
2272 2013-11-30 Tobias Burnus <burnus@net-b.de>
2275 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2276 environment variable and link to a list with flags.
2277 (-fsanitize=thread): Ditto and update link.
2279 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2281 PR rtl-optimization/59340
2282 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2285 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2287 * lra.c (lra): Set lra_in_progress before check_rtl call.
2288 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2289 adding clobber regs when LRA is running.
2291 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2294 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2296 2013-11-29 Richard Biener <rguenther@suse.de>
2299 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2300 free_stmt_operands, update_stmt_operands): Add struct function
2302 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2303 function argument from fini_ssa_operands, verify_ssa_operands,
2304 free_stmt_operands and update_stmt_operands everywhere.
2305 * tree-ssanames.h (release_ssa_name_fn): New.
2306 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2307 * tree-ssanames.c (release_ssa_name): Rename to ...
2308 (release_ssa_name_fn): ... this and add struct function argument.
2309 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2310 (update_stmt_fn): New function.
2311 * tree-cfg.c (move_block_to_fn): Adjust.
2312 * tree-if-conv.c (free_bb_predicate): Likewise.
2313 * tree-ssa.c (verify_ssa): Likewise.
2314 (delete_tree_ssa): Likewise.
2315 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2316 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2317 update_stmt_fn instead of update_stmt.
2319 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2321 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2324 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2326 * config/arm/arm.md (store_minmaxsi): Use only when
2327 optimize_function_for_size_p.
2329 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2330 Yury Gribov <y.gribov@samsung.com>
2333 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2334 * gcc.c: Using libsanitizer spec instead of explicit libs.
2336 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2339 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2340 * cgraph.h (varpool_node): Add need_bounds_init field.
2341 * lto-cgraph.c (lto_output_varpool_node): Output
2342 need_bounds_init value.
2343 (input_varpool_node): Read need_bounds_init value.
2344 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2347 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2348 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2349 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2350 (gen_type_die_with_usage): Skip pointer bounds.
2351 (dwarf2out_global_decl): Likewise.
2354 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2355 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2356 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2357 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2358 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2359 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2360 (gimple_call_with_bounds_p): New.
2361 (gimple_call_set_with_bounds): New.
2362 (gimple_call_num_nobnd_args): Remove.
2363 (gimple_call_nobnd_arg): Remove.
2364 * tree.h (CALL_WITH_BOUNDS_P): New.
2365 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2368 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2369 * common.opt (fcheck-pointer-bounds): Move to ...
2370 * c-family/c.opt: ... here.
2371 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2372 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2373 * langhooks.h (lang_hooks): Remove chkp_supported field.
2374 * toplev.c (process_options): Remove chkp_supported check.
2377 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2378 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2379 * tree.h (POINTER_BOUNDS_P): New.
2380 (BOUNDED_TYPE_P): New.
2382 (pointer_bounds_type_node): New.
2383 * tree.c (build_common_tree_nodes): Initialize
2384 pointer_bounds_type_node.
2385 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2386 (gimple_call_num_nobnd_args): New.
2387 (gimple_call_nobnd_arg): New.
2388 (gimple_return_retbnd): New.
2389 (gimple_return_set_retbnd): New
2390 * gimple.c (gimple_build_return): Increase number of ops
2391 for return statement.
2392 (gimple_call_get_nobnd_arg_index): New.
2393 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2396 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2397 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2398 with "chkp ctor" and "bnd_legacy" attributes.
2399 * gimplify.c (gimplify_init_constructor): Avoid infinite
2400 loop during gimplification of bounds initializer.
2403 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2404 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2405 (handle_bnd_legacy): New.
2406 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2407 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2411 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2412 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2413 (BT_FN_PTR_CONST_PTR): New.
2414 (BT_FN_CONST_PTR_CONST_PTR): New.
2415 (BT_FN_PTR_CONST_PTR_SIZE): New.
2416 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2417 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2418 (BT_FN_VOID_CONST_PTR_SIZE): New.
2419 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2420 * chkp-builtins.def: New.
2421 * builtins.def: include chkp-builtins.def.
2422 (DEF_CHKP_BUILTIN): New.
2423 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2424 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2425 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2426 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2427 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2428 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2429 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2430 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2431 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2432 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2433 * common.opt (fcheck-pointer-bounds): New.
2434 * toplev.c (process_options): Check Pointer Bounds Checker is
2436 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2439 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2440 * target.def (builtin_chkp_function): New.
2441 (chkp_bound_type): New.
2442 (chkp_bound_mode): New.
2443 (fn_abi_va_list_bounds_size): New.
2444 (load_bounds_for_arg): New.
2445 (store_bounds_for_arg): New.
2446 * targhooks.h (default_load_bounds_for_arg): New.
2447 (default_store_bounds_for_arg): New.
2448 (default_fn_abi_va_list_bounds_size): New.
2449 (default_chkp_bound_type): New.
2450 (default_chkp_bound_mode): New.
2451 (default_builtin_chkp_function): New.
2452 * targhooks.c (default_load_bounds_for_arg): New.
2453 (default_store_bounds_for_arg): New.
2454 (default_fn_abi_va_list_bounds_size): New.
2455 (default_chkp_bound_type): New.
2456 (default_chkp_bound_mode); New.
2457 (default_builtin_chkp_function): New.
2458 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2459 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2460 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2461 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2462 (TARGET_CHKP_BOUND_TYPE): New.
2463 (TARGET_CHKP_BOUND_MODE): New.
2464 * doc/tm.texi: Regenerated.
2465 * langhooks.h (lang_hooks): Add chkp_supported field.
2466 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2467 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2470 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2471 * config/i386/constraints.md (B): New.
2474 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2475 * config/i386/i386-modes.def (BND32): New.
2477 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2478 * config/i386/i386.c (isa_opts): Add mmpx.
2479 (regclass_map): Add bound registers.
2480 (dbx_register_map): Likewise.
2481 (dbx64_register_map): Likewise.
2482 (svr4_dbx_register_map): Likewise.
2484 (ix86_option_override_internal): Support MPX ISA.
2485 (ix86_conditional_register_usage): Support bound registers.
2486 (print_reg): Likewise.
2487 (ix86_code_end): Add MPX bnd prefix.
2488 (output_set_got): Likewise.
2489 (ix86_output_call_insn): Likewise.
2490 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2491 (ix86_print_operand_punct_valid_p): Likewise.
2492 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2494 (ix86_class_likely_spilled_p): Add bound regs support.
2495 (ix86_hard_regno_mode_ok): Likewise.
2496 (x86_order_regs_for_local_alloc): Likewise.
2497 (ix86_bnd_prefixed_insn_p): New.
2498 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2499 (FIXED_REGISTERS): Add bound registers.
2500 (CALL_USED_REGISTERS): Likewise.
2501 (REG_ALLOC_ORDER): Likewise.
2502 (HARD_REGNO_NREGS): Likewise.
2504 (VALID_BND_REG_MODE): New.
2505 (FIRST_BND_REG): New.
2506 (LAST_BND_REG): New.
2507 (reg_class): Add BND_REGS.
2508 (REG_CLASS_NAMES): Likewise.
2509 (REG_CLASS_CONTENTS): Likewise.
2511 (ANY_BND_REG_P): New.
2513 (HI_REGISTER_NAMES): Add bound registers.
2514 * config/i386/i386.md (UNSPEC_BNDMK): New.
2515 (UNSPEC_BNDMK_ADDR): New.
2516 (UNSPEC_BNDSTX): New.
2517 (UNSPEC_BNDLDX): New.
2518 (UNSPEC_BNDLDX_ADDR): New.
2519 (UNSPEC_BNDCL): New.
2520 (UNSPEC_BNDCU): New.
2521 (UNSPEC_BNDCN): New.
2522 (UNSPEC_MPX_FENCE): New.
2525 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2526 (length_immediate): Likewise.
2527 (prefix_0f): Likewise.
2529 (prefix_rep): Check for bnd prefix.
2530 (length_nobnd): New.
2531 (length): Use length_nobnd if specified.
2536 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2539 (simple_return_internal): Likewise.
2540 (simple_return_pop_internal): Likewise.
2541 (*indirect_jump): Add MPX bnd prefix.
2542 (*tablejump_1): Likewise.
2543 (simple_return_internal_long): Likewise.
2544 (simple_return_indirect_internal): Likewise.
2548 (*mov<mode>_internal_mpx): New.
2549 (<mode>_<bndcheck>): New.
2550 (*<mode>_<bndcheck>): New.
2555 * config/i386/predicates.md (lea_address_operand): Rename to...
2556 (address_no_seg_operand): ... this.
2557 (address_mpx_no_base_operand): New.
2558 (address_mpx_no_index_operand): New.
2559 (bnd_mem_operator): New.
2560 * config/i386/i386.opt (mmpx): New.
2561 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2562 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2565 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2566 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2567 * tree.def (POINTER_BOUNDS_TYPE): New.
2568 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2569 (POINTER_BOUNDS_MODE): New.
2570 (make_pointer_bounds_mode): New.
2571 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2572 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2573 (layout_type): Support POINTER_BOUNDS_TYPE.
2574 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2575 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2576 (type_contains_placeholder_1): Likewise.
2577 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2578 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2579 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2581 2013-11-29 Richard Biener <rguenther@suse.de>
2584 * tree-cfg.c (verify_expr): Restrict bounds verification of
2585 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2587 2013-11-29 Richard Biener <rguenther@suse.de>
2589 PR tree-optimization/59334
2590 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2593 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2594 Richard Biener <rguenther@suse.de>
2597 * omp-low.c (simd_clone_create): Return NULL if for definition
2598 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2599 before calling cgraph_function_versioning.
2600 (expand_simd_clones): Look for "omp declare simd" attribute first.
2601 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2602 Punt if node->global.inlined_to.
2603 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2604 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2605 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2607 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2610 * tree-core.h (enum omp_clause_schedule_kind): Add
2611 OMP_CLAUSE_SCHEDULE_LAST.
2612 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2613 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2614 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2615 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2616 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2617 (DFS_write_tree_body): Handle OMP_CLAUSE.
2618 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2619 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2620 (write_ts_omp_clause_tree_pointers): New function.
2621 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2622 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2623 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2624 (unpack_value_fields): Call it for OMP_CLAUSE.
2625 (streamer_alloc_tree): Handle OMP_CLAUSE.
2626 (lto_input_ts_omp_clause_tree_pointers): New function.
2627 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2629 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2631 * doc/implement-c.texi: Document C11 implementation-defined
2632 behavior. Refer to -ffp-contract=fast for contraction behavior.
2633 * doc/invoke.texi (-std=c99, std=c11): Update description of
2635 (-std=gnu99): Don't mention as future default.
2636 (-std=gnu11): Mention as intended future default.
2637 * doc/standards.texi: Update descriptions of C99 and C11 support.
2638 Limit statement about C99 facilities for freestanding
2639 implementations to some platforms only.
2641 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2644 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2646 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2649 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2650 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2651 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2652 Don't call lra_init_elimination.
2653 (ira): Call ira_setup_eliminable_regset without arguments.
2654 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2655 from ira_setup_eliminable_regset call.
2656 * gcse.c (calculate_bb_reg_pressure): Ditto.
2657 * haifa-sched.c (sched_init): Ditto.
2658 * lra.h (lra_init_elimination): Remove the prototype.
2659 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2660 used_insn_alternative upper.
2661 (lra_eliminate_regs_1): Add one more parameter.
2662 (lra-eliminate): Ditto.
2663 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2664 (setup_sp_offset): New.
2665 (lra_process_new_insns): Call setup_sp_offset.
2666 (lra): Add argument to lra_eliminate calls.
2667 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2668 (get_equiv_with_elimination): New.
2669 (process_addr_reg): Call get_equiv_with_elimination instead of
2670 get_equiv_substitution.
2671 (equiv_address_substitution): Ditto.
2672 (loc_equivalence_change_p): Ditto.
2673 (loc_equivalence_callback, lra_constraints): Ditto.
2674 (curr_insn_transform): Ditto. Print the sp offset
2675 (process_alt_operands): Prevent stack pointer reloads.
2676 (lra_constraints): Remove one argument from lra_eliminate call.
2677 Move it up. Mark used hard regs bfore it. Use
2678 get_equiv_with_elimination instead of get_equiv_substitution.
2679 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2680 assert for param values combination. Use sp offset. Add argument
2681 to lra_eliminate_regs_1 calls.
2682 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2683 (curr_sp_change): New static var.
2684 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2685 Don't prevent elimination to sp if we can calculate its change.
2686 Pass the argument to mark_not_eliminable calls.
2687 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2688 argument to lra_eliminate_regs_1 call.
2689 (update_reg_eliminate): Move calculation of hard regs for spill
2690 lower. Switch off lra_in_progress temporarily to generate regs
2691 involved into elimination.
2692 (lra_init_elimination): Rename to init_elimination. Make it
2693 static. Set up insn sp offset, check the offsets at the end of BBs.
2694 (process_insn_for_elimination): Add parameter. Pass its value to
2695 eliminate_regs_in_insn.
2696 (lra_eliminate): : Add parameter. Pass its value to
2697 process_insn_for_elimination. Add assert for param values
2698 combination. Call init_elimination. Don't update offsets in
2699 equivalence substitutions.
2700 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2701 for created stack slot.
2702 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2705 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2707 * config/arm/iterators.md (vrint_conds): New int attribute.
2708 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2709 (smax<mode>3): Likewise.
2710 (smin<mode>3): Likewise.
2712 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2714 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2715 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2716 * tree-ssanames.h (set_range_info): Add range_type argument.
2717 (duplicate_ssa_name_range_info): Likewise.
2718 * tree-ssanames.c (set_range_info): Take the range type as argument
2719 and store it in SSA_NAME_ANTI_RANGE_P.
2720 (duplicate_ssa_name_range_info): Likewise.
2721 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2722 (set_nonzero_bits): Update call to set_range_info.
2723 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2724 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2725 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2726 (vrp_finalize): Likewise, passing anti-ranges directly.
2728 2013-11-28 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/59330
2731 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2732 and fix delayed marking of free calls not necessary.
2734 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2736 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2738 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2740 2013-11-28 Terry Guo <terry.guo@arm.com>
2742 * config/arm/arm.c (v7m_extra_costs): New table.
2743 (arm_v7m_tune): Use it.
2745 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2747 * config/sol2.h (TIME_LIBRARY): Define.
2749 2013-11-28 Richard Biener <rguenther@suse.de>
2752 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2753 CONST_DECLs in function context are not indexable.
2755 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2757 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2758 not optimized for size.
2760 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2762 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2764 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2765 data->asan_base as base for vars and update asan_alignb.
2766 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2767 Pass them to asan_emit_stack_protection.
2768 * asan.c (asan_detect_stack_use_after_return): New variable.
2769 (asan_emit_stack_protection): Add pbase and alignb arguments.
2770 Implement use after return sanitization.
2771 * asan.h (asan_emit_stack_protection): Adjust prototype.
2772 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2774 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2776 * common.opt: Introduced a new option -fsimd-cost-model.
2777 * doc/invoke.texi: Introduced a new openmp-simd warning and
2778 a new -fsimd-cost-model option.
2779 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2780 to rely on the particular loop info.
2781 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2782 (vect_peeling_hash_choose_best_peeling): Ditto.
2783 (vect_enhance_data_refs_alignment): Ditto.
2784 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2785 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2786 plus added openmp-simd warining.
2788 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2790 PR rtl-optimization/59311
2791 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2792 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2794 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2796 * var-tracking.c (track_expr_p): Do not track declarations for parts
2797 of tracked parameters.
2798 (add_stores): Do not track values for tracked parameters passed in
2800 (vt_get_decl_and_offset): Handle PARALLEL.
2801 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2803 2013-11-27 Jeff Law <law@redhat.com>
2805 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2806 clobber the loop structure thread_block was unsuccessful. If
2807 thread_block was unsuccessful, cleanup appropriately.
2809 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2811 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2812 (score_char_to_class): Likewise.
2814 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2816 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2817 the overflow bit set.
2819 2013-11-27 Richard Biener <rguenther@suse.de>
2822 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2824 (rebuild_cgraph_edges): Likewise.
2825 * ipa-inline-analysis.c (estimate_function_body_sizes):
2826 Skip internal calls.
2827 * tree-inline.c (estimate_num_insns): Estimate size of internal
2829 (gimple_expand_calls_inline): Do not try inline-expanding
2831 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2832 force_vect and simduid.
2833 (input_struct_function_base): Stream has_force_vect_loops
2834 and has_simduid_loops.
2835 (input_function): Adjust.
2836 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2837 force_vect and simduid.
2838 (output_struct_function_base): Stream has_force_vect_loops
2839 and has_simduid_loops.
2841 2013-11-27 Kai Tietz <ktietz@redhat.com>
2843 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2846 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2848 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2849 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2851 2013-11-27 Marek Polacek <polacek@redhat.com>
2854 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2855 instead of walk_gimple_op.
2856 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2858 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2859 Jakub Jelinek <jakub@redhat.com>
2861 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2862 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2863 (struct cgraph_node): Add simdclone and simd_clones fields.
2864 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2865 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2866 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2867 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2868 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2869 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2870 * doc/tm.texi: Regenerated.
2871 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2872 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2873 attribute is present.
2874 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2875 (simd_clone_vector_of_formal_parm_types): New function.
2876 (simd_clone_struct_alloc, simd_clone_struct_copy,
2877 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2878 simd_clone_compute_base_data_type, simd_clone_mangle,
2879 simd_clone_create, simd_clone_adjust_return_type,
2880 create_tmp_simd_array, simd_clone_adjust_argument_types,
2881 simd_clone_init_simd_arrays): New functions.
2882 (struct modify_stmt_info): New type.
2883 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2884 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2886 (pass_data_omp_simd_clone): New variable.
2887 (pass_omp_simd_clone): New class.
2888 (make_pass_omp_simd_clone): New function.
2889 * passes.def (pass_omp_simd_clone): New.
2890 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2891 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2892 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2893 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2894 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2895 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2896 * tree-vect-data-refs.c: Include cgraph.h.
2897 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2898 and find_data_references_in_bb, if find_data_references_in_stmt
2899 fails, still allow calls to #pragma omp declare simd functions
2900 in #pragma omp simd loops unless they contain data references among
2901 the call arguments or in lhs.
2902 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2904 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2906 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2907 call_simd_clone_vec_info_type.
2908 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2909 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2910 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2911 tree-scalar-evolution.h and cgraph.h.
2912 (vectorizable_call): Handle calls without lhs. Assert
2913 !stmt_can_throw_internal instead of failing for it. Don't update
2915 (struct simd_call_arg_info): New.
2916 (vectorizable_simd_clone_call): New function.
2917 (vect_transform_stmt): Call it.
2918 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2920 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2921 if cgraph_function_with_gimple_body_p is true.
2923 2013-11-27 Tom de Vries <tom@codesourcery.com>
2924 Marc Glisse <marc.glisse@inria.fr>
2927 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2929 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2930 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2933 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2936 * expr.c (emit_group_store): Don't write past the end of the structure.
2937 (store_bit_field): Fix formatting.
2939 2013-11-27 Richard Biener <rguenther@suse.de>
2941 PR tree-optimization/59288
2942 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2943 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2945 2013-11-27 Marek Polacek <polacek@redhat.com>
2947 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2948 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2949 rather than ADDR_EXPRs.
2951 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2953 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2955 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2957 * gengtype.c (struct seen_tag): New.
2958 (already_seen_tag): New.
2959 (mark_tag_as_seen): New.
2960 (walk_subclasses): Support having multiple subclasses using the
2961 same tag by tracking which tags have already been seen, and using
2962 this to avoid adding duplicate cases to the "switch" statement.
2963 The call to already_seen_tag introduces an O(N^2) when running
2964 gengtype on N, the number of tags, due to the repeated linear
2965 search, but currently max(N) is relatively small (the number of
2966 GSS codes, which is 26).
2967 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2970 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2971 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2972 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2973 GIMPLE_OMP_RETURN happens to share the data layout of
2974 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2975 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2976 underlying GSS value from GSS_OMP_PARALLEL to
2977 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2978 not directly related; they merely share in-memory layout.
2979 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2980 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2982 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2984 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2986 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2987 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2988 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2989 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2992 * gimple.h (gimple_statement_resx): New subclass of
2993 gimple_statement_eh_ctrl, with the invariant that
2994 stmt->code == GIMPLE_RESX.
2995 (gimple_statement_eh_dispatch): New subclass of
2996 gimple_statement_eh_ctrl, with the invariant that
2997 stmt->code == GIMPLE_EH_DISPATH.
2999 (gimple_statement_omp_parallel): The existing class expressed
3000 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3001 are not all related, so it makes more sense for this class to
3002 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3003 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3004 rename the existing gimple_statement_omp_parallel class to...
3005 (gimple_statement_omp_parallel_layout): ...this, expressing
3006 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3007 (gimple_statement_omp_taskreg): New subclass of
3008 gimple_statement_omp_parallel_layout, expressing the invariant
3009 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3010 as used by the various gimple_omp_taskreg_ accessors.
3011 (gimple_statement_omp_parallel): Reintroduce this class, this time
3012 as a subclass of gimple_statement_omp_taskreg to express the
3013 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3014 (gimple_statement_omp_target) New class, subclassing
3015 gimple_statement_omp_parallel_layout, to express the invariant
3016 stmt->code == GIMPLE_OMP_TARGET.
3017 (gimple_statement_omp_task): Update to inherit from
3018 gimple_statement_omp_taskreg rather than
3019 gimple_statement_omp_parallel.
3021 (gimple_statement_omp_single): Rename to...
3022 (gimple_statement_omp_single_layout): ...this, expressing the
3023 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3024 (gimple_statement_omp_single): ...and reintroduce this name as
3025 a subclass of gimple_statement_omp_single_layout, expressing
3026 the invariant that code == GIMPLE_OMP_SINGLE.
3027 (gimple_statement_omp_teams): New class, subclassing
3028 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3030 (gimple_statement_omp_atomic_store): Rename to...
3031 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3032 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3033 (gimple_statement_omp_atomic_store): ...and reintroduce this
3034 name as a subclass of gimple_statement_omp_atomic_store_layout
3035 with code == GIMPLE_OMP_ATOMIC_STORE.
3036 (gimple_statement_omp_return): New class, subclassing
3037 gimple_statement_omp_atomic_store_layout for the code
3040 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3041 (is_a_helper <gimple_statement_resx>::test): New.
3042 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3043 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3044 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3045 (is_a_helper <gimple_statement_omp_return>::test): New.
3046 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3047 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3048 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3050 (is_a_helper <gimple_statement_omp_target>::test): New.
3051 (is_a_helper <gimple_statement_omp_single>::test): Only check
3052 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3053 (is_a_helper <gimple_statement_omp_teams>::test): New.
3055 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3056 (is_a_helper <const gimple_statement_resx>::test): New.
3057 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3058 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3059 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3060 (is_a_helper <const gimple_statement_omp_return>::test): New.
3061 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3062 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3063 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3065 (is_a_helper <const gimple_statement_omp_target>::test): New.
3066 (is_a_helper <const gimple_statement_omp_single>::test): Only
3067 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3068 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3070 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3071 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3072 gimple_statement_omp_atomic_store with downcasts to
3073 gimple_statement_omp_return, thus requiring that the code be
3075 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3076 downcasts to gimple_statement_eh_ctrl with downcasts to
3077 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3078 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3079 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3080 downcasts to gimple_statement_eh_dispatch, thus requiring that
3081 the code be GIMPLE_EH_DISPATCH.
3082 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3083 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3084 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3085 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3086 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3087 gimple_statement_omp_parallel with downcasts to
3088 gimple_statement_omp_taskreg, thus requiring that the code be
3089 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3090 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3091 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3092 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3093 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3094 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3095 gimple_statement_omp_parallel with downcasts to
3096 gimple_statement_omp_target, thus requiring that the code be
3098 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3099 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3100 gimple_statement_omp_single with downcasts to
3101 gimple_statement_omp_teams, thus requiring that the code be
3104 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3105 gimple_statement_resx.
3106 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3107 gimple_statement_eh_dispatch.
3109 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3111 PR tree-optimization/59014
3112 * tree-vrp.c (register_edge_assert_for_1): Don't look
3113 through conversions from non-integral types or through
3114 narrowing conversions.
3117 * config/i386/i386.c (device_alg): Fix up formatting.
3118 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3119 similarly to count && count < epilogue_size_needed. Fix up
3121 * builtins.c (determine_block_size): Fix comment typo.
3124 * ubsan.c (ubsan_source_location): Don't add any location
3125 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3126 (ubsan_create_data): Strip block info from LOC.
3129 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3130 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3132 PR rtl-optimization/59166
3133 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3134 DF_REF_LOC in validate_change call.
3135 (split_live_ranges_for_shrink_wrap): Likewise.
3138 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3139 of references to constant size types in simd loops, defer emitting
3140 initializer for the new_var, emit it later on only if not using
3144 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3145 for the inner loop if collapse_bb is non-NULL.
3146 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3148 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3150 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3151 a constant immediate before force_reg.
3153 2013-11-26 Richard Biener <rguenther@suse.de>
3155 PR tree-optimization/59245
3156 * tree-vrp.c (set_value_range): Assert that we don't have
3157 overflowed constants (but our infinities).
3158 (set_value_range_to_value): Drop all overflow flags.
3159 (vrp_visit_phi_node): Likewise.
3160 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3161 to set a constant range.
3163 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3166 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3167 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3168 for zero_extend case.
3170 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3173 * configure.ac (install_gold_as_default): New. Set to yes for
3174 --disable-ld or --enable-gold=default.
3175 (gcc_cv_ld_gold_srcdir): New.
3176 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3177 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3178 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3179 * configure: Regenerated.
3181 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3182 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3183 (original) [collect-ld && -fuse-ld=bfd]: Set to
3184 $ORIGINAL_LD_BFD_FOR_TARGET.
3185 (original) [collect-ld && -fuse-ld=gold]: Set to
3186 $ORIGINAL_LD_GOLD_FOR_TARGET.
3187 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3188 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3190 2013-11-26 Terry Guo <terry.guo@arm.com>
3192 * config/arm/arm.c (require_pic_register): Handle high pic base
3193 register for thumb-1.
3194 (arm_load_pic_register): Also initialize high pic base register.
3195 * doc/invoke.texi: Update documentation for option -mpic-register.
3197 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3201 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3202 Prefix function names with 'sh_'. Make them non-static.
3203 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3204 sh_max_mov_insn_displacement): Add declarations.
3205 * config/sh/constraints.md (Q): Reject QImode.
3206 (Sdd): Use match_code "mem".
3207 (Snd): Fix erroneous matching of non-memory operands.
3208 * config/sh/predicates.md (short_displacement_mem_operand): New
3210 (general_movsrc_operand): Disallow PC relative QImode loads.
3211 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3212 (*movqi, *movhi): Merge both insns into...
3213 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3214 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3215 on the operand types.
3217 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3219 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3220 Remove unused variable save_config.
3221 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3224 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3226 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3227 using other intrinsics.
3228 (vtbx3_<psu>8): Likewise.
3230 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3232 * config/aarch64/aarch64-builtins.c
3233 (aarch64_types_bsl_p_qualifiers): New.
3234 (aarch64_types_bsl_s_qualifiers): Likewise.
3235 (aarch64_types_bsl_u_qualifiers): Likewise.
3236 (TYPES_BSL_P): Likewise.
3237 (TYPES_BSL_S): Likewise.
3238 (TYPES_BSL_U): Likewise.
3239 (BUILTIN_VALLDIF): Likewise.
3240 (BUILTIN_VDQQH): Likewise.
3241 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3242 * config/aarch64/aarch64-simd.md
3243 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3244 (aarch64_simd_bsl<mode>): Likewise.
3245 * config/aarch64/arm_neon.h
3246 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3247 * config/aarch64/iterators.md (VALLDIF): New.
3248 (Vbtype): Handle more modes.
3250 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3252 * config/aarch64/aarch64-builtins.c
3253 (aarch64_type_qualifiers): Add qualifier_poly.
3254 (aarch64_build_scalar_type): Also build Poly types.
3255 (aarch64_build_vector_type): Likewise.
3256 (aarch64_build_type): Likewise.
3257 (aarch64_build_signed_type): New.
3258 (aarch64_build_unsigned_type): Likewise.
3259 (aarch64_build_poly_type): Likewise.
3260 (aarch64_init_simd_builtins): Also handle Poly types.
3262 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3264 * config/aarch64/aarch64-builtins.c
3265 (VAR1): Use new naming scheme for aarch64_builtins.
3266 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3268 2013-11-26 Richard Biener <rguenther@suse.de>
3270 PR tree-optimization/59287
3271 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3272 Remove no longer necessary special-casing of union accesses.
3274 2013-11-26 Richard Biener <rguenther@suse.de>
3276 * pretty-print.c (output_buffer::~output_buffer): Really
3279 2013-11-25 Jeff Law <law@redhat.com>
3281 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3282 invalidate loop information.
3284 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3286 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3288 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3292 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3294 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3295 previously visited basic blocks before recursing instead of only one
3298 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3300 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3301 * config/aarch64/aarch64-cores.def (cortex-a53):
3302 Use cortexa53 tuning struct.
3304 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3307 * fold-const.c: Include hash-table.h.
3309 2013-11-25 Marek Polacek <polacek@redhat.com>
3312 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3314 2013-11-25 Richard Biener <rguenther@suse.de>
3316 * tree-dfa.c: Remove unused convert.h include.
3318 2013-11-25 Terry Guo <terry.guo@arm.com>
3320 * doc/invoke.texi (-mslow-flash-data): Document new option.
3321 * config/arm/arm.opt (mslow-flash-data): New option.
3322 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3324 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3326 (arm_disable_literal_pool): Declare it.
3327 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3328 (arm_option_override): Handle new option.
3329 (thumb2_legitimate_address_p): Don't allow symbol references when
3330 literal pools are disabled.
3331 (arm_max_const_double_inline_cost): New function.
3332 * config/arm/arm.md (types.md): Include it before ...
3333 (use_literal_pool): New attribute.
3334 (enabled): Use new attribute.
3335 (split pattern): Replace symbol+offset with MOVW/MOVT.
3337 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3340 Revert previous commit.
3342 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3344 * jump.c (reset_insn_reg_label_operand_notes): New function,
3346 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3347 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3349 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3350 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3351 expensive CFG cleanup is called for.
3352 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3353 (cfg_layout_finalize): Delete dead jump tables before re-building
3355 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3356 basic blocks, not before.
3357 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3359 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3360 insns chain of a scheduling extended basic block, they cannot appear
3361 there in cfglayout mode.
3363 2013-11-24 Tobias Burnus <burnus@net-b.de>
3365 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3367 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3369 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3372 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3374 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3376 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3378 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3380 2013-11-23 David Edelson <dje.gcc@gmail.com>
3381 Andrew Dixie <andrewd@gentrack.com>
3384 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3385 (COLLECT_SHARED_FINI_FUNC): Define.
3387 * collect2.c (aix_shared_initname): Declare.
3388 (aix_shared_fininame): Declare.
3389 (symkind): Add SYM_AIXI and SYM_AIXD.
3390 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3391 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3392 (aixlazy_flag): Parse.
3393 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3394 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3396 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3398 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3399 (rs6000_xcoff_select_section): Place decls with stricter alignment
3400 into named sections.
3401 (rs6000_xcoff_unique_section): Allow unique sections for
3402 uninitialized data with strict alignment.
3404 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3406 PR tree-optimization/59154
3407 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3408 rhs1 of a cast and new_op is invariant, fold_convert it.
3409 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3410 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3412 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3415 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3416 Declare as MULTI_ARG_1_SF instruction.
3417 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3418 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3419 from *xop_vmfrcz_<mode>.
3420 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3421 to merge scalar result with __A.
3422 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3425 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3427 * gimplify.h (recalculate_side_effects): Delete.
3428 * gimplify.c (recalculate_side_effects): Make static and add comment.
3430 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3432 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3433 for the destination of a define_peephole2. Likewise register_operand
3434 rather than arith_reg_operand. Remove constraints from
3437 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3439 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3441 (mn10300_store_multiple_operation_p): Declare.
3442 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3444 (mn10300_store_multiple_operation_p): ...this and remove mode
3446 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3449 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3451 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3452 (pop_multiple_operation): Delete.
3453 (analyze_push_multiple_operation): Declare.
3454 (analyze_pop_multiple_operation): Declare.
3455 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3456 (analyze_push_multiple_operation): ...this and remove mode argument.
3457 (pop_multiple_operation): Rename to...
3458 (analyze_pop_multiple_operation): ...this and remove mode argument.
3459 * config/bfin/predicates.md (push_multiple_operation): Define.
3460 (pop_multiple_operation): Likewise.
3462 2013-11-23 Alan Modra <amodra@gmail.com>
3464 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3466 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3469 * common.opt (static-liblsan): Add.
3470 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3472 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3473 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3475 * opts.c (common_handle_option): Handle -fsanitize=leak.
3476 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3477 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3478 (LIBUBSAN_EARLY_SPEC): Remove.
3479 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3480 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3481 (sanitize_spec_function): Handle %sanitize(leak).
3482 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3484 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3485 Jakub Jelinek <jakub@redhat.com>
3487 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3488 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3489 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3490 (ipa_modify_formal_parameters): Adjust caller. Remove
3491 synth_parm_prefix argument. Use operator enum instead of bit fields.
3492 Add assert for properly handling vector of references. Handle
3493 creating brand new parameters.
3494 (ipa_modify_call_arguments): Use operator enum instead of bit
3496 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3498 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3500 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3501 Use operator enum instead of bit fields.
3502 * ipa-prop.h (enum ipa_parm_op): New.
3503 (struct ipa_parm_adjustment): New field op. Rename reduction
3504 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3506 (ipa_modify_formal_parameters): Remove last argument.
3507 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3508 ipa_get_adjustment_candidate): New prototypes.
3509 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3510 enum. Set arg_prefix.
3511 (get_adjustment_for_base): Use operator enum.
3512 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3514 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3515 (ipa_sra_modify_function_body): Same. No longer static.
3516 (sra_ipa_reset_debug_stmts): Use operator enum.
3517 (modify_function): Do not pass prefix argument.
3519 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3521 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3522 (ubsan_pass): Ignore clobber stmts.
3524 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3525 * opts.c (common_handle_option): Add -fsanitize=return.
3526 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3527 or it into SANITIZE_UNDEFINED.
3529 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3530 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3531 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3532 Don't instrument accesses to VAR_DECLs which are known to fit
3533 into their bounds and the vars are known to have shadow bytes
3534 indicating allowed access.
3535 (asan_dynamic_init_call): New function.
3536 (asan_add_global): If vnode->dynamically_initialized,
3537 set __has_dynamic_init to 1 instead of 0.
3538 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3539 * asan.h (asan_dynamic_init_call): New prototype.
3540 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3542 2013-11-22 Martin Jambor <mjambor@suse.cz>
3544 PR rtl-optimization/10474
3545 * ira.c (interesting_dest_for_shprep_1): New function.
3546 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3547 also check parallels.
3549 2013-11-22 Jeff Law <law@redhat.com>
3551 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3552 NULL for RHS, which we used to invalidate equivalences.
3553 (record_temporary_equivalences_from_phis): New bitmap arguments
3554 and a boolean indicating if we have passed a backedge. If we
3555 have passed a backedge, then set the appropriate bit in the
3556 bitmaps for the SRC & DEST of PHIs creating equivalences.
3557 (invalidate_equivalences, dummy_simplify): New functions.
3558 (cond_arg_set_in_b): Remove.
3559 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3560 arguments and a boolean indicating if we have passed a backedge.
3561 If we have passed a backedge, then perform invalidations as needed.
3562 (thread_around_empty_blocks): If we have seen a backedge, then
3563 use the dummy simplify routine.
3564 (thread_through_normal_block): Likewise. Pass bitmaps and
3565 backedge status to children. Do not pessimize so much when
3566 traversing backedges in the CFG.
3567 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3568 If we have seen a backedge, then use the dummy simplify routine.
3569 Do not pessimize so much when traversing backedges.
3571 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3573 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3574 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3576 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3578 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3579 PTA_PCLMUL and PTA_RDRND for Silvermont.
3580 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3583 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3585 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3587 * hooks.h (hook_uint_mode_0): Add Prototype.
3588 * hooks.c (hook_uint_mode_0): New default function.
3589 * target.def (atomic_align_for_mode): New target hook.
3590 * tree.c (build_atomic_base): Add alignment override parameter.
3591 (build_common_tree_nodes): Use atomic alignment override.
3592 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3593 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3595 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3597 * gimple.h: Remove all includes.
3598 (recalculate_side_effects): Move prototype to gimplify.h.
3599 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3600 * gengtype.c (open_base_files): Add gimple.h include list.
3601 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3602 * gimple.c: Adjust include list.
3603 (recalculate_side_effects): Move to gimplify.c.
3604 * gimplify.c: Adjust include list.
3605 (recalculate_side_effects): Relocate from gimple.c.
3606 * alias.c: Add required include files removed from gimple.h.
3608 * builtins.c: Likewise.
3609 * calls.c: Likewise.
3610 * cfgexpand.c: Likewise.
3611 * cfgloop.c: Likewise.
3612 * cfgloopmanip.c: Likewise.
3613 * cgraphbuild.c: Likewise.
3614 * cgraph.c: Likewise.
3615 * cgraphclones.c: Likewise.
3616 * cgraphunit.c: Likewise.
3617 * cilk-common.c: Likewise.
3618 * data-streamer.c: Likewise.
3619 * data-streamer-in.c: Likewise.
3620 * data-streamer-out.c: Likewise.
3622 * dwarf2out.c: Likewise.
3623 * emit-rtl.c: Likewise.
3624 * except.c: Likewise.
3626 * fold-const.c: Likewise.
3627 * function.c: Likewise.
3628 * gimple-builder.c: Likewise.
3629 * gimple-expr.c: Likewise.
3630 * gimple-fold.c: Likewise.
3631 * gimple-iterator.c: Likewise.
3632 * gimple-low.c: Likewise.
3633 * gimple-pretty-print.c: Likewise.
3634 * gimple-ssa-isolate-paths.c: Likewise.
3635 * gimple-ssa-strength-reduction.c: Likewise.
3636 * gimple-streamer-in.c: Likewise.
3637 * gimple-streamer-out.c: Likewise.
3638 * gimple-walk.c: Likewise.
3639 * gimplify-me.c: Likewise.
3640 * graphite-blocking.c: Likewise.
3641 * graphite.c: Likewise.
3642 * graphite-clast-to-gimple.c: Likewise.
3643 * graphite-dependences.c: Likewise.
3644 * graphite-interchange.c: Likewise.
3645 * graphite-optimize-isl.c: Likewise.
3646 * graphite-poly.c: Likewise.
3647 * graphite-scop-detection.c: Likewise.
3648 * graphite-sese-to-poly.c: Likewise.
3649 * internal-fn.c: Likewise.
3651 * ipa-cp.c: Likewise.
3652 * ipa-devirt.c: Likewise.
3653 * ipa-inline-analysis.c: Likewise.
3654 * ipa-inline.c: Likewise.
3655 * ipa-profile.c: Likewise.
3656 * ipa-prop.c: Likewise.
3657 * ipa-pure-const.c: Likewise.
3658 * ipa-reference.c: Likewise.
3659 * ipa-split.c: Likewise.
3660 * ipa-utils.c: Likewise.
3661 * langhooks.c: Likewise.
3662 * lto-cgraph.c: Likewise.
3663 * lto-compress.c: Likewise.
3664 * lto-opts.c: Likewise.
3665 * lto-section-in.c: Likewise.
3666 * lto-section-out.c: Likewise.
3667 * lto-streamer.c: Likewise.
3668 * lto-streamer-in.c: Likewise.
3669 * lto-streamer-out.c: Likewise.
3670 * omp-low.c: Likewise.
3671 * opts-global.c: Likewise.
3672 * passes.c: Likewise.
3673 * predict.c: Likewise.
3674 * profile.c: Likewise.
3677 * stor-layout.c: Likewise.
3678 * symtab.c: Likewise.
3679 * targhooks.c: Likewise.
3680 * toplev.c: Likewise.
3681 * tracer.c: Likewise.
3682 * trans-mem.c: Likewise.
3683 * tree-affine.c: Likewise.
3685 * tree-call-cdce.c: Likewise.
3686 * tree-cfg.c: Likewise.
3687 * tree-cfgcleanup.c: Likewise.
3688 * tree-chrec.c: Likewise.
3689 * tree-complex.c: Likewise.
3690 * tree-data-ref.c: Likewise.
3691 * tree-dfa.c: Likewise.
3692 * tree-eh.c: Likewise.
3693 * tree-emutls.c: Likewise.
3694 * tree-if-conv.c: Likewise.
3695 * tree-inline.c: Likewise.
3696 * tree-into-ssa.c: Likewise.
3697 * tree-loop-distribution.c: Likewise.
3698 * tree-nested.c: Likewise.
3699 * tree-nrv.c: Likewise.
3700 * tree-object-size.c: Likewise.
3701 * tree-outof-ssa.c: Likewise.
3702 * tree-parloops.c: Likewise.
3703 * tree-phinodes.c: Likewise.
3704 * tree-predcom.c: Likewise.
3705 * tree-pretty-print.c: Likewise.
3706 * tree-profile.c: Likewise.
3707 * tree-scalar-evolution.c: Likewise.
3708 * tree-sra.c: Likewise.
3709 * tree-ssa-address.c: Likewise.
3710 * tree-ssa-alias.c: Likewise.
3711 * tree-ssa.c: Likewise.
3712 * tree-ssa-ccp.c: Likewise.
3713 * tree-ssa-coalesce.c: Likewise.
3714 * tree-ssa-copy.c: Likewise.
3715 * tree-ssa-copyrename.c: Likewise.
3716 * tree-ssa-dce.c: Likewise.
3717 * tree-ssa-dom.c: Likewise.
3718 * tree-ssa-dse.c: Likewise.
3719 * tree-ssa-forwprop.c: Likewise.
3720 * tree-ssa-ifcombine.c: Likewise.
3721 * tree-ssa-live.c: Likewise.
3722 * tree-ssa-loop.c: Likewise.
3723 * tree-ssa-loop-ch.c: Likewise.
3724 * tree-ssa-loop-im.c: Likewise.
3725 * tree-ssa-loop-ivcanon.c: Likewise.
3726 * tree-ssa-loop-ivopts.c: Likewise.
3727 * tree-ssa-loop-manip.c: Likewise.
3728 * tree-ssa-loop-niter.c: Likewise.
3729 * tree-ssa-loop-prefetch.c: Likewise.
3730 * tree-ssa-loop-unswitch.c: Likewise.
3731 * tree-ssa-math-opts.c: Likewise.
3732 * tree-ssanames.c: Likewise.
3733 * tree-ssa-operands.c: Likewise.
3734 * tree-ssa-phiopt.c: Likewise.
3735 * tree-ssa-phiprop.c: Likewise.
3736 * tree-ssa-pre.c: Likewise.
3737 * tree-ssa-propagate.c: Likewise.
3738 * tree-ssa-reassoc.c: Likewise.
3739 * tree-ssa-sccvn.c: Likewise.
3740 * tree-ssa-sink.c: Likewise.
3741 * tree-ssa-strlen.c: Likewise.
3742 * tree-ssa-structalias.c: Likewise.
3743 * tree-ssa-tail-merge.c: Likewise.
3744 * tree-ssa-ter.c: Likewise.
3745 * tree-ssa-threadedge.c: Likewise.
3746 * tree-ssa-threadupdate.c: Likewise.
3747 * tree-ssa-uncprop.c: Likewise.
3748 * tree-ssa-uninit.c: Likewise.
3749 * tree-stdarg.c: Likewise.
3750 * tree-streamer.c: Likewise.
3751 * tree-streamer-in.c: Likewise.
3752 * tree-streamer-out.c: Likewise.
3753 * tree-switch-conversion.c: Likewise.
3754 * tree-tailcall.c: Likewise.
3755 * tree-vect-data-refs.c: Likewise.
3756 * tree-vect-generic.c: Likewise.
3757 * tree-vect-loop.c: Likewise.
3758 * tree-vect-loop-manip.c: Likewise.
3759 * tree-vectorizer.c: Likewise.
3760 * tree-vect-patterns.c: Likewise.
3761 * tree-vect-slp.c: Likewise.
3762 * tree-vect-stmts.c: Likewise.
3763 * tree-vrp.c: Likewise.
3765 * ubsan.c: Likewise.
3766 * value-prof.c: Likewise.
3767 * varpool.c: Likewise.
3768 * var-tracking.c: Likewise.
3769 * vtable-verify.c: Likewise.
3770 * config/darwin.c: Likewise.
3771 * config/aarch64/aarch64-builtins.c: Likewise.
3772 * config/aarch64/aarch64.c: Likewise.
3773 * config/alpha/alpha.c: Likewise.
3774 * config/i386/i386.c: Likewise.
3775 * config/i386/winnt.c: Likewise.
3776 * config/ia64/ia64.c: Likewise.
3777 * config/m32c/m32c.c: Likewise.
3778 * config/mep/mep.c: Likewise.
3779 * config/mips/mips.c: Likewise.
3780 * config/rs6000/rs6000.c: Likewise.
3781 * config/s390/s390.c: Likewise.
3782 * config/sh/sh.c: Likewise.
3783 * config/sparc/sparc.c: Likewise.
3784 * config/spu/spu.c: Likewise.
3785 * config/stormy16/stormy16.c: Likewise.
3786 * config/tilegx/tilegx.c: Likewise.
3787 * config/tilepro/tilepro.c: Likewise.
3788 * config/xtensa/xtensa.c: Likewise.
3790 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3793 * arm.md (negdi_extendsidi): Fix invalid split.
3795 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3797 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3798 (vmov_n_f64): Likewise.
3799 (vmov_n_p8): Likewise.
3800 (vmov_n_p16): Likewise.
3801 (vmov_n_s8): Likewise.
3802 (vmov_n_s16): Likewise.
3803 (vmov_n_s32): Likewise.
3804 (vmov_n_s64): Likewise.
3805 (vmov_n_u8): Likewise.
3806 (vmov_n_u16): Likewise.
3807 (vmov_n_u32): Likewise.
3808 (vmov_n_u64): Likewise.
3809 (vmovq_n_f32): Likewise.
3810 (vmovq_n_f64): Likewise.
3811 (vmovq_n_p8): Likewise.
3812 (vmovq_n_p16): Likewise.
3813 (vmovq_n_s8): Likewise.
3814 (vmovq_n_s16): Likewise.
3815 (vmovq_n_s32): Likewise.
3816 (vmovq_n_s64): Likewise.
3817 (vmovq_n_u8): Likewise.
3818 (vmovq_n_u16): Likewise.
3819 (vmovq_n_u32): Likewise.
3820 (vmovq_n_u64): Likewise.
3822 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3824 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3825 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3826 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3827 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3828 and also change to float UNSPEC.
3829 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3830 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3831 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3832 result access for big-endian.
3833 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3834 intrinsics for big-endian.
3835 * config/aarch64/iterators.md (VDQV): Add V2DI.
3837 (vp): New mode attribute.
3839 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3841 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3842 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3845 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3847 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3848 for big-endian element order.
3849 (aarch64_simd_vec_setv2di): Likewise.
3850 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3851 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3852 (vec_extract): Expand using aarch64_get_lane.
3853 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3855 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3857 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3858 and stores to be ABI compliant.
3860 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3862 * input.h (input_line): Remove.
3863 (input_filename): Likewise.
3864 (in_system_header): Likewise.
3865 * tree.h (EXPR_LOC_OR_HERE): Remove.
3866 * config/bfin/bfin.c (output_file_start): Remove use of
3867 input_filename macro.
3868 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3869 * gimplify.c (internal_get_tmp_var): Likewise.
3870 EXPR_LOC_OR_HERE macro.
3871 (shortcut_cond_expr): Likewise.
3872 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3873 use of input_filename macro.
3874 * tree.c (get_file_function_name): Likewise.
3876 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3878 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3880 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3882 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3883 (same sized) elements even if the type of the CONSTRUCTOR has
3884 vector mode and target is a REG.
3886 2013-11-22 Richard Biener <rguenther@suse.de>
3889 2013-11-21 Richard Biener <rguenther@suse.de>
3891 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3892 nb_iterations_upper_bound by one.
3894 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3896 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3899 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3900 core-avx-i, core-avx2 and slm.
3902 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3904 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3906 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3908 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3909 (stzx_24_<mode>): Likewise mra_operand.
3911 2013-11-22 Jeff Law <law@redhat.com>
3913 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3914 (thread_block_1): Do not cancel jump threads which go from
3915 inside a loop, through the header, then back inside the loop.
3916 (bb_ends_with_multiway_branch): New function.
3917 (thread_through_all_blocks): Handle threading cases which start
3918 in a loop through the loop header to a point in the loop.
3920 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3921 jump thread path properly.
3923 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3925 * vec.h (auto_vec): New class.
3926 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3927 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3928 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3929 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3930 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3931 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3932 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3933 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3934 appropriate instead of vec for local variables.
3936 2013-11-21 Teresa Johnson <tejohnson@google.com>
3939 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3940 not understood by old_insns_match_p.
3942 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3944 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3945 little endian change.
3946 (vec_pack_sfix_trunc_v2df): Likewise.
3947 (vec_pack_ufix_trunc_v2df): Likewise.
3948 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3949 double checking of endianness.
3951 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3953 * tree-vect-generic.c (optimize_vector_constructor): New function.
3954 (expand_vector_operations_1): Call it.
3956 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3958 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3959 ix86_zero_extend_to_Pmode where appropriate.
3960 (ix86_expand_builtin): Ditto.
3962 2013-11-21 Cary Coutant <ccoutant@google.com>
3964 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3965 (add_linkage_name): Don't add linkage name for -g1.
3966 (decls_for_scope): Process subblocks for -g1.
3967 (dwarf2out_source_line): Output line tables for -g1.
3968 (dwarf2out_finish): Likewise.
3969 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3970 unused scopes for -g1.
3971 * opts.c (common_handle_option): Handle -g same as -g2.
3972 * doc/invoke.texi: Update description for -g1.
3974 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3976 * doc/extend.texi: Document htm builtins.
3978 2013-11-21 Jeff Law <law@redhat.com>
3980 PR tree-optimization/59221
3981 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3982 temporary equivalences when threading through joiner blocks.
3984 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3986 PR rtl-optimization/55950
3987 * real.c (real_sqrt): Remove function.
3988 * real.h (real_sqrt): Remove prototype.
3989 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3990 SQRT using real_sqrt.
3992 2013-11-21 Richard Biener <rguenther@suse.de>
3994 PR tree-optimization/59058
3995 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3996 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3997 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3998 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3999 (NITERS_KNOWN_P): Fold into ...
4000 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4001 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4002 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4003 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4004 (vect_do_peeling_for_alignment): Re-use precomputed niter
4005 instead of re-emitting it.
4006 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4007 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4008 * tree-vect-loop.c (vect_get_loop_niters): Use
4009 number_of_latch_executions.
4010 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4011 (vect_analyze_loop_form): Simplify.
4012 (vect_analyze_loop_operations): Move epilogue peeling code ...
4013 (vect_analyze_loop_2): ... here and adjust it to compute
4014 LOOP_VINFO_PEELING_FOR_NITER.
4015 (vect_estimate_min_profitable_iters): Use
4016 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4017 (vect_build_loop_niters): Emit on the preheader.
4018 (vect_generate_tmps_on_preheader): Likewise.
4019 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4020 of recomputing it. Adjust.
4022 2013-11-21 Richard Biener <rguenther@suse.de>
4024 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4025 LOC_LINE): Remove wrappers and fix all users.
4026 (struct _loop_vec_info): Remove loop_line_number member.
4027 (LOOP_VINFO_LOC): Remove.
4028 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4029 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4032 2013-11-21 Richard Biener <rguenther@suse.de>
4034 * tree-ssa-forwprop.c (simplify_vce): New function.
4035 (ssa_forward_propagate_and_combine): Call it.
4037 2013-11-21 Richard Biener <rguenther@suse.de>
4039 * tree-vect-loop-manip.c (vect_build_loop_niters,
4040 vect_generate_tmps_on_preheader): Move ...
4041 * tree-vect-loop.c (vect_build_loop_niters,
4042 vect_generate_tmps_on_preheader): ... here and simplify.
4043 (vect_transform_loop): Call them here and pass down results
4045 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4046 Get niter variables from caller.
4047 (vect_do_peeling_for_alignment): Likewise.
4048 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4049 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4052 2013-11-21 Richard Biener <rguenther@suse.de>
4054 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4055 nb_iterations_upper_bound by one.
4057 2013-11-21 Richard Biener <rguenther@suse.de>
4059 PR tree-optimization/59058
4060 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4061 (build_size_arg_loc): Apply niter adjustment here.
4062 (generate_memset_builtin): Adjust.
4063 (generate_memcpy_builtin): Likewise.
4064 (classify_partition): Do not use number_of_exit_cond_executions
4065 but record whether niter needs to be adjusted.
4067 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4069 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4072 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4075 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4076 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4077 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4078 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4079 sh_optimize_sett_clrt pass.o to extra_objs.
4081 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4083 * cfg.c (dump_edge_info): Remove redundant comment.
4084 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4085 EXIT_BLOCK_PTR in comment.
4086 (try_optimize_cfg): Likewise.
4087 * cfgrtl.c (last_bb_in_partition): Likewise.
4088 * cgraph.c (cgraph_node_cannot_return): Likewise.
4089 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4090 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4091 * ipa-split.c (consider_split): Likewise.
4092 * profile.c (find_spanning_tree): Likewise.
4093 * sched-int.h (common_sched_info_def.add_block): Likewise.
4094 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4095 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4096 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4097 in comments to now removed ENTRY_BLOCK_PTR macro.
4098 (tree_forwarder_block_p): Reword reference in comment to
4100 * tree-inline.c (copy_cfg_body): Reword references in comments to
4101 now removed ENTRY_BLOCK_PTR macro.
4102 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4103 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4104 a comma to the comment to clarify the meaning.
4106 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4108 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4110 (free_gimplify_stack): Add prototype.
4111 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4112 (struct gimplify_ctx): Relocate here.
4113 (gimplify_ctxp): Make static.
4114 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4115 list of struct gimplify_ctx.
4116 (push_gimplify_context): Add default parameters and allocate a struct
4118 (pop_gimplify_context): Free a struct back to the pool.
4119 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4120 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4121 use a local 'struct gimplify_ctx'.
4122 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4123 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4125 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4126 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4127 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4128 lower_omp_teams, execute_lower_omp): Likewise.
4129 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4130 * tree-inline.c (optimize_inline_calls): Likewise.
4132 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4134 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4135 (vsx_extract_<mode>): Likewise.
4136 (*vsx_extract_<mode>_one_le): New LE variant on
4137 *vsx_extract_<mode>_zero.
4138 (vsx_extract_v4sf): Adjust for little endian.
4140 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4142 PR rtl-optimization/59133
4143 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4145 (lra_create_new_reg_with_unique_value): Pass new argument value.
4146 (lra_emit_add, lra_emit_move): Ditto.
4147 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4148 (change_class): Rename to lra_change_class. Move to lra-int.h.
4149 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4151 (process_addr_reg, process_addr): Ditto.
4152 (curr_insn_transform): Ditto. Add check on old pseudo for
4154 * lra-int.h (lra_get_regno_hard_regno): Move below.
4155 (lra_change_class): Renamed change_class from lra.c.
4157 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4159 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4160 the children of a NULL pointer.
4162 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4164 * lra.c (lra): Set lra_in_progress before check_rtl call.
4165 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4166 adding clobber regs when LRA is running.
4168 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4170 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4171 restriction for ISA_MIPS32R2.
4172 (ISA_HAS_LXC1_SXC1): New macro.
4173 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4174 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4175 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4176 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4177 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4178 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4179 (*<ANYF:storex>_<P:mode>): Likewise.
4181 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4183 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4184 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4185 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4186 * config/mips/mips.md (recip_condition): Remove mode attribute.
4187 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4189 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4191 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4194 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4195 Make sure neg2_ovf is set before being used.
4197 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4199 * plugin.def: Add comment about register_callback and
4200 invoke_plugin_callbacks_full.
4202 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4203 Handle PLUGIN_INCLUDE_FILE event.
4205 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4207 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4208 allow subregs of TDmode in FPRs of smaller size in little-endian.
4209 (rs6000_split_multireg_move): When splitting an access to TDmode
4210 in FPRs, do not use simplify_gen_subreg.
4212 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4215 * real.c: Remove comment about decimal string conversion and
4217 (real_from_string): Use MPFR to convert nonzero decimal constant
4220 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4222 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4223 endianness of the D registers for the legacy encodings.
4225 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4227 PR rtl-optimization/54300
4228 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4229 outputs in a single-set are killed from the value chains.
4231 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4233 * cgraph.h (varpool_node): Add need_bounds_init field.
4234 * lto-cgraph.c (lto_output_varpool_node): Output
4235 need_bounds_init value.
4236 (input_varpool_node): Read need_bounds_init value.
4237 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4239 2013-11-20 Jan Hubicka <jh@suse.cz>
4241 * opts.c (finish_options): Imply -ffat-lto-objects with
4242 -fno-use-linker-plugin.
4243 * common.opt (fuse-linker-plugin): Add var.
4245 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4247 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4248 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4249 (gen_type_die_with_usage): Skip pointer bounds.
4250 (dwarf2out_global_decl): Likewise.
4252 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4254 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4257 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4260 * config/i386/i386.c (ix86_option_override_internal): Add missed
4261 argument prefix for 'ix86_fpmath'.
4262 * config/i386/ssemath.h: Add missed definition of
4263 TARGET_FPMATH_DEFAULT_P macros.
4265 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4266 Mike Stump <mikestump@comcast.net>
4267 Richard Sandiford <rdsandiford@googlemail.com>
4269 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4270 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4271 tree_fits_shwi_p or tree_fits_uhwi_p.
4272 * builtins.c (fold_builtin_powi): Likewise.
4273 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4275 * dbxout.c (dbxout_symbol): Likewise.
4276 * expr.c (expand_expr_real_1): Likewise.
4277 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4278 (fold_binary_loc): Likewise.
4279 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4280 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4281 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4282 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4283 * stor-layout.c (compute_record_mode): Likewise.
4284 * tree-cfg.c (verify_expr): Likewise.
4285 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4286 * tree-pretty-print.c (dump_array_domain): Likewise.
4287 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4288 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4289 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4290 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4291 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4292 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4293 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4294 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4295 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4296 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4297 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4298 (create_variable_info_for_1): Likewise.
4299 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4300 (vect_verify_datarefs_alignment): Likewise.
4301 (vect_analyze_data_ref_accesses): Likewise.
4302 (vect_prune_runtime_alias_test_list): Likewise.
4303 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4305 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4307 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4308 overflow. Use tree_to_shwi.
4310 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4312 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4313 HOST_WIDE_INTs when folding (x >> c) << c.
4315 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4316 Dominik Vogt <vogt@linux.vnet.ibm.com>
4318 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4319 int comparisons with an out of range condition code.
4320 (s390_optimize_nonescaping_tx): Skip empty BBs.
4321 Generate the new tbegin RTX when removing the FPR clobbers (with
4323 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4324 result before doing the retry calculations.
4325 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4327 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4328 the TDB setting part of an tbegin.
4329 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4330 ("tx_assist"): Set unused argument to an immediate zero instead of
4331 loading zero into a GPR and pass it as argument.
4332 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4333 Remove inline and related attributes.
4334 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4335 (__TM_is_illegal, __TM_is_footprint_exceeded)
4336 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4338 2013-11-20 Richard Biener <rguenther@suse.de>
4341 * lto-opts.c (lto_write_options): Write defaults only if
4342 they were not explicitely specified. Also write
4343 -ffp-contract default.
4344 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4346 (run_gcc): Pass through -ffp-contract.
4348 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4350 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4352 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4354 * config/aarch64/aarch64-builtins.c
4355 (aarch64_simd_itype): Remove.
4356 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4357 (VAR1): Use qualifiers.
4358 (aarch64_build_scalar_type): New.
4359 (aarch64_build_vector_type): Likewise.
4360 (aarch64_build_type): Likewise.
4361 (aarch64_init_simd_builtins): Refactor, remove special cases,
4362 consolidate main loop.
4363 (aarch64_simd_expand_args): Likewise.
4365 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4368 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4370 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4372 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4374 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4376 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4377 to "vec<>" instances.
4378 (build_pretty_printer): Register the vec<>* prettyprinter.
4380 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4382 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4383 (GdbSubprinter.handles_type): New.
4384 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4385 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4386 (GdbPrettyPrinters.add_printer): Remove in favor of...
4387 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4388 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4389 (GdbPrettyPrinters.__call__): Update search for subprinter
4390 to use handles_type method.
4391 (build_pretty_printer): Update registration of subprinters to
4392 use the new API above, supporting multiple spelling of each type,
4393 and allowing for future regex-based subprinters.
4395 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4397 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4398 V16QI vector splat case for little endian.
4400 2013-11-19 Jeff Law <law@redhat.com>
4402 * tree-ssa-threadedge.c (thread_across_edge): After threading
4403 through a joiner, allow threading a normal block requiring duplication.
4405 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4406 jump threading requests that would muck up the loop structures.
4408 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4409 * tree-ssa-threadupdate.h: Likewise.
4411 2013-11-19 Mike Stump <mikestump@comcast.net>
4413 * gdbinit.in: Add pmz to print out mpz values.
4415 2013-11-20 Jan Hubicka <jh@suse.cz>
4417 * common.opt (ffat-lto-objects): Disable by default.
4418 * doc/invoke.texi (fat-lto-objects): Update documentation.
4419 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4421 2013-11-19 Martin Jambor <mjambor@suse.cz>
4423 PR rtl-optimization/59099
4424 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4426 (ira): Move init_reg_equiv and call to
4427 split_live_ranges_for_shrink_wrap up, remove analyses around call
4428 to find_moveable_pseudos.
4430 2013-11-20 Alan Modra <amodra@gmail.com>
4432 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4433 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4434 to strict alignment on older processors when little-endian.
4435 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4438 2013-11-19 Teresa Johnson <tejohnson@google.com>
4440 * common/config/i386/i386-common.c: Enable
4441 -freorder-blocks-and-partition at -O2 and up for x86.
4442 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4443 * opts.c (finish_options): Only warn if
4444 -freorder-blocks-and-partition was set on command line.
4446 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4448 * final.c (final_scan_insn): Emit a label for the split
4449 cold function part. Label name is formed by suffixing
4450 the original function name with "cold".
4452 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4454 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4455 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4456 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4457 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4458 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4460 (EXIT_BLOCK_PTR): Likewise.
4461 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4462 (FOR_ALL_BB_FN): Update for renaming of
4463 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4465 * cfg.c (init_flow): Likewise.
4466 (check_bb_profile): Likewise.
4467 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4468 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4469 * cfghooks.c (account_profile_record): Likewise.
4470 * cfgloop.c (init_loops_structure): Likewise.
4471 * cgraphbuild.c (record_eh_tables): Likewise.
4472 (compute_call_stmt_bb_frequency): Likewise.
4473 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4474 * lto-streamer-in.c (input_cfg): Likewise.
4475 * predict.c (maybe_hot_frequency_p): Likewise.
4476 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4477 * tree-inline.c (initialize_cfun): Likewise.
4478 (copy_cfg_body): Likewise.
4479 (copy_body): Likewise.
4480 (tree_function_versioning): Likewise.
4482 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4483 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4484 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4485 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4486 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4487 (connect_traces): Likewise.
4488 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4489 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4490 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4492 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4494 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4495 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4496 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4497 (rotate_loop): Likewise.
4498 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4499 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4501 (alloc_aux_for_edges): Likewise.
4502 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4503 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4505 (compact_blocks): Likewise.
4506 (clear_edges): Likewise.
4507 * cfganal.c (single_pred_before_succ_order): Remove usage of
4508 ENTRY_BLOCK_PTR macro.
4509 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4510 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4511 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4512 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4513 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4515 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4516 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4518 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4519 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4520 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4521 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4522 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4523 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4525 (print_edge_list): Likewise.
4526 (create_edge_list): Likewise.
4527 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4528 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4530 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4532 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4533 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4534 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4535 (try_optimize_cfg): Likewise.
4536 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4537 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4538 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4539 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4540 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4541 (try_forward_edges): Likewise.
4542 (try_simplify_condjump): Likewise.
4543 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4544 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4545 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4546 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4548 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4549 (expand_gimple_tailcall): Likewise.
4550 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4551 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4552 (tidy_fallthru_edges): Likewise.
4553 (verify_flow_info): Likewise.
4554 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4555 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4556 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4557 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4558 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4559 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4560 (get_loop_body_in_dom_order): Likewise.
4561 (get_loop_body): Likewise.
4562 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4563 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4564 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4566 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4567 (fix_bb_placement): Likewise.
4568 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4569 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4570 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4571 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4573 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4574 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4575 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4576 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4578 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4579 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4580 (fixup_reorder_chain): Likewise.
4581 (relink_block_chain): Likewise.
4582 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4583 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4584 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4585 (force_one_exit_fallthru): Likewise.
4586 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4588 (rtl_verify_edges): Likewise.
4589 (commit_edge_insertions): Likewise.
4590 (commit_one_edge_insertion): Likewise.
4591 (rtl_split_edge): Likewise.
4592 (force_nonfallthru_and_redirect): Likewise.
4593 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4594 (skip_insns_after_block): Likewise.
4595 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4597 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4598 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4600 (contains_no_active_insn_p): Likewise.
4601 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4602 (entry_of_function): Likewise.
4603 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4604 (fixup_new_cold_bb): Likewise.
4605 (patch_jump_insn): Likewise.
4606 (try_redirect_by_replacing_jump): Likewise.
4607 (block_label): Likewise.
4608 (could_fall_through): Likewise.
4609 (can_fallthru): Likewise.
4610 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4611 ENTRY_BLOCK_PTR macro.
4612 (rebuild_cgraph_edges): Likewise.
4613 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4614 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4615 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4616 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4617 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4618 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4619 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4620 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4622 (reg_nonzero_bits_for_combine): Likewise.
4623 (set_nonzero_bits_and_sign_copies): Likewise.
4624 (combine_instructions): Likewise.
4625 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4627 (bypass_conditional_jumps): Likewise.
4628 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4629 (find_implicit_sets): Likewise.
4630 (cprop_jump): Likewise.
4631 * cse.c (cse_cc_succs): Likewise.
4632 (cse_find_path): Likewise.
4633 * df-problems.c (df_lr_confluence_0): Likewise.
4634 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4635 ENTRY_BLOCK_PTR macro.
4636 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4637 * dominance.c (iterate_fix_dominators): Remove usage of
4638 ENTRY_BLOCK_PTR macro.
4639 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4640 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4641 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4643 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4645 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4647 * domwalk.c (cmp_bb_postorder): Likewise.
4648 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4649 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4651 (sjlj_emit_function_enter): Likewise.
4652 * final.c (compute_alignments): Likewise.
4653 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4654 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4655 (reposition_prologue_and_epilogue_notes): Remove usage of
4656 EXIT_BLOCK_PTR macro.
4657 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4659 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4660 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4661 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4662 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4663 (compute_code_hoist_vbeinout): Likewise.
4664 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4665 (pre_expr_reaches_here_p_work): Likewise.
4666 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4667 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4669 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4670 ENTRY_BLOCK_PTR macro.
4671 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4673 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4674 ENTRY_BLOCK_PTR macro.
4675 * graphite-scop-detection.c (build_scops): Likewise.
4676 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4677 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4678 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4680 (unlink_bb_notes): Likewise.
4681 (create_check_block_twin): Likewise.
4682 (init_before_recovery): Likewise.
4683 (sched_extend_bb): Likewise.
4684 (priority): Likewise.
4685 * hw-doloop.c (reorder_loops): Likewise.
4686 (discover_loop): Likewise.
4687 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4688 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4689 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4690 (block_has_only_trap): Likewise.
4691 (cond_exec_find_if_block): Likewise.
4692 (merge_if_block): Likewise.
4693 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4694 ENTRY_BLOCK_PTR macro.
4695 (record_modified): Likewise.
4696 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4697 EXIT_BLOCK_PTR macro.
4698 (local_pure_const): Likewise.
4699 * ipa-split.c (split_function): Remove uses of macros:
4700 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4701 (find_split_points): Likewise.
4702 (consider_split): Likewise.
4703 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4704 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4705 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4706 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4707 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4708 ENTRY_BLOCK_PTR macro.
4709 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4710 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4711 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4712 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4713 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4715 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4717 (compute_farthest): Likewise.
4718 (compute_available): Likewise.
4719 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4720 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4722 (compute_earliest): Likewise.
4723 (compute_antinout_edge): Likewise.
4724 * loop-iv.c (simplify_using_initial_values): Remove usage of
4725 ENTRY_BLOCK_PTR macro.
4726 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4728 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4730 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4732 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4733 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4734 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4736 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4738 * lto-streamer-out.c (output_cfg): Likewise.
4739 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4741 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4742 * mode-switching.c (optimize_mode_switching): Likewise.
4743 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4744 * modulo-sched.c (rest_of_handle_sms): Likewise.
4745 (canon_loop): Likewise.
4746 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4747 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4748 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4749 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4751 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4752 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4753 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4754 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4755 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4756 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4757 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4758 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4759 (gimple_predict_edge): Likewise.
4760 (probably_never_executed): Likewise.
4761 * profile.c (find_spanning_tree): Remove uses of macros:
4762 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4763 (branch_prob): Likewise.
4764 (compute_branch_probabilities): Likewise.
4765 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4766 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4767 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4768 (set_bb_counts): Likewise.
4769 (correct_negative_edge_counts): Likewise.
4770 (get_exec_counts): Likewise.
4771 (instrument_values): Likewise.
4772 (instrument_edges): Likewise.
4773 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4775 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4776 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4777 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4778 (reg_to_stack): Likewise.
4779 * regs.h (REG_N_SETS): Likewise.
4780 * reload.c (find_dummy_reload): Likewise.
4781 (combine_reloads): Likewise.
4782 (push_reload): Likewise.
4783 * reload1.c (has_nonexceptional_receiver): Remove usage of
4784 EXIT_BLOCK_PTR macro.
4785 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4787 (find_basic_block): Likewise.
4788 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4789 (schedule_ebbs): Likewise.
4790 * sched-int.h (sel_sched_p): Likewise.
4791 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4793 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4794 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4796 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4797 (extend_rgns): Likewise.
4798 (find_single_block_region): Likewise.
4799 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4800 ENTRY_BLOCK_PTR macro.
4801 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4802 (sel_create_recovery_block): Likewise.
4803 (bb_ends_ebb_p): Likewise.
4804 (sel_bb_end): Likewise.
4805 (sel_bb_head): Likewise.
4806 (free_lv_sets): Likewise.
4807 (init_lv_sets): Likewise.
4808 (tidy_control_flow): Likewise.
4809 (maybe_tidy_empty_bb): Likewise.
4810 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4811 (_succ_iter_start): Likewise.
4812 (sel_bb_empty_or_nop_p): Likewise.
4813 (get_loop_exit_edges_unique_dests): Likewise.
4814 (inner_loop_header_p): Likewise.
4815 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4816 (find_block_for_bookkeeping): Likewise.
4817 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4818 (insert_store): Likewise.
4819 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4820 ENTRY_BLOCK_PTR macro.
4821 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4822 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4823 (gate_tm_init): Likewise.
4824 (tm_region_init): Likewise.
4825 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4826 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4827 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4828 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4830 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4831 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4833 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4835 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4837 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4839 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4840 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4841 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4842 (build_gimple_cfg): Likewise.
4843 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4844 (gimple_can_merge_blocks_p): Likewise.
4845 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4846 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4847 * tree-complex.c (update_parameter_components): Remove usage of
4848 ENTRY_BLOCK_PTR macro.
4849 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4850 EXIT_BLOCK_PTR macro.
4851 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4852 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4853 (delete_unreachable_blocks_update_callgraph): Likewise.
4854 (initialize_cfun): Likewise.
4855 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4856 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4857 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4858 * tree-into-ssa.c (update_ssa): Likewise.
4859 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4860 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4861 (rewrite_into_ssa): Likewise.
4862 (rewrite_debug_stmt_uses): Likewise.
4863 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4864 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4865 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4866 ENTRY_BLOCK_PTR macro.
4867 * tree-scalar-evolution.h (block_before_loop): Likewise.
4868 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4869 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4871 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4873 (propagate_dereference_distances): Remove uses of macros:
4874 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4875 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4877 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4878 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4879 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4880 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4881 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4882 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4883 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4884 (mark_control_dependent_edges_necessary): Remove uses of macros:
4885 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4886 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4887 ENTRY_BLOCK_PTR macro.
4888 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4889 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4890 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4891 (calculate_live_on_exit): Likewise.
4892 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4893 (loe_visit_block): Likewise.
4894 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4895 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4896 (live_on_entry): Likewise.
4897 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4898 EXIT_BLOCK_PTR macro.
4899 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4900 ENTRY_BLOCK_PTR macro.
4901 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4902 (bound_difference): Likewise.
4903 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4904 of EXIT_BLOCK_PTR macro.
4905 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4906 of ENTRY_BLOCK_PTR macro.
4907 * tree-ssa-math-opts.c (register_division_in): Likewise.
4908 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4909 * tree-ssa-pre.c (compute_avail): Likewise.
4910 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4911 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4912 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4913 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4914 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4916 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4917 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4918 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4919 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4920 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4921 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4922 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4923 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4924 (find_pdom): Likewise.
4925 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4926 * tree-stdarg.c (reachable_at_most_once): Likewise.
4927 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4928 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4929 (eliminate_tail_call): Likewise.
4930 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4932 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4933 * var-tracking.c (vt_initialize): Remove uses of macros:
4934 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4935 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4936 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4937 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4939 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4941 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4942 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4943 of EXIT_BLOCK_PTR macro.
4944 * config/arm/arm.c (require_pic_register): Remove usage of
4945 ENTRY_BLOCK_PTR macro.
4946 (arm_r3_live_at_start_p): Likewise.
4947 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4948 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4949 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4950 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4951 ENTRY_BLOCK_PTR macro.
4952 * config/i386/i386.c (ix86_count_insn): Likewise.
4953 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4954 (ix86_pad_short_function): Likewise.
4955 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4956 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4957 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4958 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4959 (ix86_expand_epilogue): Likewise.
4960 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4961 (ia64_expand_prologue): Likewise.
4963 2013-11-19 Catherine Moore <clm@codesourcery.com>
4965 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4966 * config/mips/mips.opt (mfix-rm7000): New option.
4967 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4968 * config/mips/mips.c (mips_reorg_process_insns): Disable
4969 noreorder for TARGET_FIX_RM7000.
4971 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4973 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4975 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4977 * config/arm/arm.c (arm_new_rtx_costs):
4978 Handle narrow mode add-shifts properly.
4979 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4980 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4983 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4985 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4987 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4989 * config/rs6000/vector.md ("mov<mode>"): Do not call
4990 rs6000_emit_le_vsx_move to move into or out of GPRs.
4991 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4992 source and destination are not GPR hard regs.
4994 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4996 * basic-block.h (n_edges_for_function): Rename macro to...
4997 (n_edges_for_fn): ...this.
4998 (n_edges): Eliminate macro as work towards making uses of
5001 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5002 to "n_edges_for_fn".
5004 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5005 (clear_edges): Likewise.
5006 (free_edge): Likewise.
5007 * cfghooks.c (dump_flow_info): Likewise.
5008 * cprop.c (is_too_expensive): Likewise.
5009 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5010 * gcse.c (is_too_expensive): Likewise.
5011 (prune_insertions_deletions): Likewise.
5012 * mcf.c (create_fixup_graph): Likewise.
5013 * sched-rgn.c (haifa_find_rgns): Likewise.
5014 * tree-cfg.c (gimple_dump_cfg): Likewise.
5015 * var-tracking.c (variable_tracking_main_1): Likewise.
5017 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5019 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5022 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5024 * config/aarch64/aarch64.md
5025 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5027 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5029 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5031 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5033 * varasm.c (align_variable): Give error instead of warning for
5034 unsupported alignment.
5035 (assemble_noswitch_variable): Likewise.
5037 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5039 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5042 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5044 * loop-doloop.c (doloop_optimize_loops): Remove unused
5045 loop iterator argument from FOR_EACH_LOOP.
5047 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5049 Convert gimple types from a union to C++ inheritance.
5050 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5051 * coretypes.h (union gimple_statement_d): Remove declaration.
5052 (gimple): Convert from being a "union gimple_statement_d *"
5053 to a "struct gimple_statement_base *".
5054 (const_gimple): Likewise (with "const").
5055 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5056 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5057 * gimple-pretty-print.c (debug): Change parameter from a
5058 "gimple_statement_d &" to a "gimple_statement_base &".
5059 (debug): Change parameter from a "gimple_statement_d *" to
5060 a "gimple_statement_base *".
5061 * gimple-pretty-print.h (debug): Update declarations as above.
5062 * gimple.c (gimple_alloc_stat): Update for renaming of
5063 ggc_alloc_cleared_gimple_statement_d_stat to
5064 ggc_alloc_cleared_gimple_statement_stat.
5065 * gimple.h: Include "is-a.h" for use by is_a_helper
5066 specializations in followup autogenerated patch.
5067 (struct gimple statement_base): Make this type usable as a base
5068 class by adding "desc", "tag" and "variable_size" to GTY, thus
5069 using opting-in to gengtype's support for simple inheritance.
5070 (gimple_statement_with_ops_base): Convert to a subclass of
5071 gimple_statement_base, dropping initial "gsbase" field. Note that
5072 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5073 (gimple_statement_with_ops): Convert to a subclass of
5074 gimple_statement_with_ops_base, dropping initial "opbase" field.
5075 Add tag value to GTY marking. Update marking of op field to
5076 reflect how num_ops field is accessed via inheritance.
5077 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5078 gimple_statement_with_ops_base, dropping initial "opbase" field.
5079 Add tag value to GTY marking.
5080 (gimple_statement_with_memory_ops): Convert to a subclass of
5081 public gimple_statement_with_memory_ops_base, dropping initial
5082 "membase" field. Add tag value to GTY marking. Update marking
5083 of op field to reflect how num_ops field is accessed via inheritance.
5084 (gimple_statement_call): Analogous changes that also update the
5085 marking of the "u" union.
5086 (gimple_statement_omp): Convert to a subclass of
5087 gimple_statement_base, dropping initial "gsbase" field, adding
5088 tag value to GTY marking.
5089 (gimple_statement_bind): Likewise.
5090 (gimple_statement_catch): Likewise.
5091 (gimple_statement_eh_filter): Likewise.
5092 (gimple_statement_eh_else): Likewise.
5093 (gimple_statement_eh_mnt): Likewise.
5094 (gimple_statement_phi): Likewise.
5095 (gimple_statement_eh_ctrl): Likewise.
5096 (gimple_statement_try): Likewise.
5097 (gimple_statement_wce): Likewise.
5098 (gimple_statement_asm): Convert to a subclass of
5099 gimple_statement_with_memory_ops_base, dropping initial
5100 "membase" field, adding tag value to GTY marking, and updating
5101 marking of op field.
5102 (gimple_statement_omp_critical): Convert to a subclass of
5103 gimple_statement_omp, dropping initial "omp" field, adding tag
5104 value to GTY marking.
5105 (gimple_statement_omp_for): Likewise.
5106 (gimple_statement_omp_parallel): Likewise.
5107 (gimple_statement_omp_task): Convert to a subclass of
5108 gimple_statement_omp_parallel, dropping initial "par" field,
5109 adding tag value to GTY marking.
5110 (gimple_statement_omp_sections): Convert to a subclass of
5111 gimple_statement_omp, dropping initial "omp" field, adding
5112 tag value to GTY marking.
5113 (gimple_statement_omp_continue): Convert to a subclass of
5114 gimple_statement_base, dropping initial "gsbase" field, adding
5115 tag value to GTY marking.
5116 (gimple_statement_omp_single): Convert to a subclass of
5117 gimple_statement_omp, dropping initial "omp" field, adding
5118 tag value to GTY marking.
5119 (gimple_statement_omp_atomic_load): Convert to a subclass of
5120 gimple_statement_base, dropping initial "gsbase" field, adding
5121 tag value to GTY marking.
5122 (gimple_statement_omp_atomic_store): Convert to a subclass of
5123 gimple_statement_base, dropping initial "gsbase" field, adding
5124 tag value to GTY marking.
5125 (gimple_statement_transaction): Convert to a subclass of
5126 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5127 field, adding tag value to GTY marking.
5128 (union gimple_statement_d): Remove.
5129 * system.h (CONST_CAST_GIMPLE): Update to use
5130 "struct gimple_statement_base *" rather than
5131 "union gimple_statement_d *".
5132 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5133 gimple_statement_d to gimple_statement_base.
5135 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5136 (gimple_set_use_ops): Port from union to usage of as_a.
5137 (gimple_set_vuse): Likewise.
5138 (gimple_set_vdef): Likewise.
5139 (gimple_call_internal_fn): Port from union to a static_cast,
5140 given that the type has already been asserted.
5141 (gimple_omp_body_ptr): Port from unchecked union usage to
5143 (gimple_omp_set_body): Likewise.
5145 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5146 gimple types to a true class hierarchy.
5147 (update_call_edge_frequencies): Likewise.
5148 (gsi_insert_seq_nodes_before): Likewise.
5149 (gsi_insert_seq_nodes_after): Likewise.
5150 (gsi_split_seq_after): Likewise.
5151 (gsi_set_stmt): Likewise.
5152 (gsi_split_seq_before): Likewise.
5153 (gsi_remove): Likewise.
5154 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5155 (gsi_next): Likewise.
5156 (gsi_prev): Likewise.
5157 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5158 * gimple-ssa.h (gimple_vuse_op): Likewise.
5159 (gimple_vdef_op): Likewise.
5160 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5161 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5162 * gimple.c (gimple_set_code): Likewise.
5163 (gimple_alloc_stat): Likewise.
5164 (gimple_set_subcode): Likewise.
5165 (gimple_build_call_internal_1): Likewise.
5166 (gimple_check_failed): Likewise.
5167 (gimple_call_flags): Likewise.
5168 (gimple_set_bb): Likewise.
5169 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5170 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5171 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5172 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5173 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5174 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5175 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5176 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5177 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5178 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5179 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5180 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5181 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5182 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5183 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5184 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5185 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5186 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5187 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5188 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5189 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5190 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5191 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5192 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5193 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5194 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5196 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5198 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5200 (is_a_helper <const gimple_statement_omp_atomic_store>
5201 (const_gimple)): Likewise.
5202 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5204 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5206 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5208 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5210 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5212 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5214 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5216 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5217 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5219 (gimple_seq_last): Update for conversion of gimple types to a true
5221 (gimple_seq_set_last): Likewise.
5222 (gimple_code): Likewise.
5223 (gimple_bb): Likewise.
5224 (gimple_block): Likewise.
5225 (gimple_set_block): Likewise.
5226 (gimple_location): Likewise.
5227 (gimple_location_ptr): Likewise.
5228 (gimple_set_location): Likewise.
5229 (gimple_no_warning_p): Likewise.
5230 (gimple_set_no_warning): Likewise.
5231 (gimple_set_visited): Likewise.
5232 (gimple_visited_p): Likewise.
5233 (gimple_set_plf): Likewise.
5234 (gimple_plf): Likewise.
5235 (gimple_set_uid): Likewise.
5236 (gimple_uid): Likewise.
5237 (gimple_init_singleton): Likewise.
5238 (gimple_modified_p): Likewise.
5239 (gimple_set_modified): Likewise.
5240 (gimple_expr_code): Likewise.
5241 (gimple_has_volatile_ops): Likewise.
5242 (gimple_set_has_volatile_ops): Likewise.
5243 (gimple_omp_subcode): Likewise.
5244 (gimple_omp_set_subcode): Likewise.
5245 (gimple_omp_return_set_nowait): Likewise.
5246 (gimple_omp_section_set_last): Likewise.
5247 (gimple_omp_parallel_set_combined_p): Likewise.
5248 (gimple_omp_atomic_set_need_value): Likewise.
5249 (gimple_omp_atomic_set_seq_cst): Likewise.
5250 (gimple_num_ops): Likewise.
5251 (gimple_set_num_ops): Likewise.
5252 (gimple_assign_nontemporal_move_p): Likewise.
5253 (gimple_assign_set_nontemporal_move): Likewise.
5254 (gimple_assign_rhs_code): Likewise.
5255 (gimple_assign_set_rhs_code): Likewise.
5256 (gimple_call_internal_p): Likewise.
5257 (gimple_call_with_bounds_p): Likewise.
5258 (gimple_call_set_with_bounds): Likewise.
5259 (gimple_call_set_tail): Likewise.
5260 (gimple_call_tail_p): Likewise.
5261 (gimple_call_set_return_slot_opt): Likewise.
5262 (gimple_call_return_slot_opt_p): Likewise.
5263 (gimple_call_set_from_thunk): Likewise.
5264 (gimple_call_from_thunk_p): Likewise.
5265 (gimple_call_set_va_arg_pack): Likewise.
5266 (gimple_call_va_arg_pack_p): Likewise.
5267 (gimple_call_set_nothrow): Likewise.
5268 (gimple_call_set_alloca_for_var): Likewise.
5269 (gimple_call_alloca_for_var_p): Likewise.
5270 (gimple_call_copy_flags): Likewise.
5271 (gimple_cond_code): Likewise.
5272 (gimple_cond_set_code): Likewise.
5273 (gimple_cond_make_false): Likewise.
5274 (gimple_cond_make_true): Likewise.
5275 (gimple_asm_volatile_p): Likewise.
5276 (gimple_asm_set_volatile): Likewise.
5277 (gimple_asm_set_input): Likewise.
5278 (gimple_asm_input_p): Likewise.
5279 (gimple_try_kind): Likewise.
5280 (gimple_try_set_kind): Likewise.
5281 (gimple_try_catch_is_cleanup): Likewise.
5282 (gimple_try_set_catch_is_cleanup): Likewise.
5283 (gimple_wce_cleanup_eh_only): Likewise.
5284 (gimple_wce_set_cleanup_eh_only): Likewise.
5285 (gimple_debug_bind_p): Likewise.
5286 (gimple_debug_source_bind_p): Likewise.
5287 (gimple_omp_for_set_kind): Likewise.
5288 (gimple_omp_for_set_combined_p): Likewise.
5289 (gimple_omp_for_set_combined_into_p): Likewise.
5290 (gimple_omp_target_set_kind): Likewise.
5291 (gimple_transaction_subcode): Likewise.
5292 (gimple_transaction_set_subcode): Likewise.
5293 (gimple_predict_predictor): Likewise.
5294 (gimple_predict_set_predictor): Likewise.
5295 (gimple_predict_outcome): Likewise.
5296 (gimple_predict_set_outcome): Likewise.
5297 (gimple_transaction_set_label): Likewise.
5298 (gimple_transaction_set_body): Likewise.
5299 (gimple_transaction_label_ptr): Likewise.
5300 (gimple_transaction_label): Likewise.
5301 (gimple_transaction_body_ptr): Likewise.
5302 (gimple_omp_continue_set_control_use): Likewise.
5303 (gimple_omp_continue_control_use_ptr): Likewise.
5304 (gimple_omp_continue_control_use): Likewise.
5305 (gimple_omp_continue_set_control_def): Likewise.
5306 (gimple_omp_continue_control_def_ptr): Likewise.
5307 (gimple_omp_continue_control_def): Likewise.
5308 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5309 (gimple_omp_atomic_load_rhs): Likewise.
5310 (gimple_omp_atomic_load_set_rhs): Likewise.
5311 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5312 (gimple_omp_atomic_load_lhs): Likewise.
5313 (gimple_omp_atomic_load_set_lhs): Likewise.
5314 (gimple_omp_atomic_store_val_ptr): Likewise.
5315 (gimple_omp_atomic_store_val): Likewise.
5316 (gimple_omp_atomic_store_set_val): Likewise.
5317 (gimple_omp_for_cond): Likewise.
5318 (gimple_omp_for_set_cond): Likewise.
5319 (gimple_omp_sections_set_control): Likewise.
5320 (gimple_omp_sections_control_ptr): Likewise.
5321 (gimple_omp_sections_control): Likewise.
5322 (gimple_omp_sections_set_clauses): Likewise.
5323 (gimple_omp_sections_clauses_ptr): Likewise.
5324 (gimple_omp_sections_clauses): Likewise.
5325 (gimple_omp_teams_set_clauses): Likewise.
5326 (gimple_omp_teams_clauses_ptr): Likewise.
5327 (gimple_omp_teams_clauses): Likewise.
5328 (gimple_omp_target_set_data_arg): Likewise.
5329 (gimple_omp_target_data_arg_ptr): Likewise.
5330 (gimple_omp_target_data_arg): Likewise.
5331 (gimple_omp_target_set_child_fn): Likewise.
5332 (gimple_omp_target_child_fn_ptr): Likewise.
5333 (gimple_omp_target_child_fn): Likewise.
5334 (gimple_omp_target_set_clauses): Likewise.
5335 (gimple_omp_target_clauses_ptr): Likewise.
5336 (gimple_omp_target_clauses): Likewise.
5337 (gimple_omp_single_set_clauses): Likewise.
5338 (gimple_omp_single_clauses_ptr): Likewise.
5339 (gimple_omp_single_clauses): Likewise.
5340 (gimple_omp_task_set_arg_align): Likewise.
5341 (gimple_omp_task_arg_align_ptr): Likewise.
5342 (gimple_omp_task_arg_align): Likewise.
5343 (gimple_omp_task_set_arg_size): Likewise.
5344 (gimple_omp_task_arg_size_ptr): Likewise.
5345 (gimple_omp_task_arg_size): Likewise.
5346 (gimple_omp_task_set_copy_fn): Likewise.
5347 (gimple_omp_task_copy_fn_ptr): Likewise.
5348 (gimple_omp_task_copy_fn): Likewise.
5349 (gimple_omp_task_set_data_arg): Likewise.
5350 (gimple_omp_task_data_arg_ptr): Likewise.
5351 (gimple_omp_task_data_arg): Likewise.
5352 (gimple_omp_task_set_child_fn): Likewise.
5353 (gimple_omp_task_child_fn_ptr): Likewise.
5354 (gimple_omp_task_child_fn): Likewise.
5355 (gimple_omp_task_set_clauses): Likewise.
5356 (gimple_omp_task_clauses_ptr): Likewise.
5357 (gimple_omp_task_clauses): Likewise.
5358 (gimple_omp_parallel_set_data_arg): Likewise.
5359 (gimple_omp_parallel_data_arg_ptr): Likewise.
5360 (gimple_omp_parallel_data_arg): Likewise.
5361 (gimple_omp_parallel_set_child_fn): Likewise.
5362 (gimple_omp_parallel_child_fn_ptr): Likewise.
5363 (gimple_omp_parallel_child_fn): Likewise.
5364 (gimple_omp_parallel_set_clauses): Likewise.
5365 (gimple_omp_parallel_clauses_ptr): Likewise.
5366 (gimple_omp_parallel_clauses): Likewise.
5367 (gimple_omp_for_set_pre_body): Likewise.
5368 (gimple_omp_for_pre_body_ptr): Likewise.
5369 (gimple_omp_for_set_incr): Likewise.
5370 (gimple_omp_for_incr_ptr): Likewise.
5371 (gimple_omp_for_incr): Likewise.
5372 (gimple_omp_for_set_final): Likewise.
5373 (gimple_omp_for_final_ptr): Likewise.
5374 (gimple_omp_for_final): Likewise.
5375 (gimple_omp_for_set_initial): Likewise.
5376 (gimple_omp_for_initial_ptr): Likewise.
5377 (gimple_omp_for_initial): Likewise.
5378 (gimple_omp_for_set_index): Likewise.
5379 (gimple_omp_for_index_ptr): Likewise.
5380 (gimple_omp_for_index): Likewise.
5381 (gimple_omp_for_collapse): Likewise.
5382 (gimple_omp_for_set_clauses): Likewise.
5383 (gimple_omp_for_clauses_ptr): Likewise.
5384 (gimple_omp_for_clauses): Likewise.
5385 (gimple_omp_critical_set_name): Likewise.
5386 (gimple_omp_critical_name_ptr): Likewise.
5387 (gimple_omp_critical_name): Likewise.
5388 (gimple_eh_dispatch_set_region): Likewise.
5389 (gimple_eh_dispatch_region): Likewise.
5390 (gimple_resx_set_region): Likewise.
5391 (gimple_resx_region): Likewise.
5392 (gimple_phi_set_arg): Likewise.
5393 (gimple_phi_arg): Likewise.
5394 (gimple_phi_set_result): Likewise.
5395 (gimple_phi_result_ptr): Likewise.
5396 (gimple_phi_result): Likewise.
5397 (gimple_phi_num_args): Likewise.
5398 (gimple_phi_capacity): Likewise.
5399 (gimple_wce_set_cleanup): Likewise.
5400 (gimple_wce_cleanup_ptr): Likewise.
5401 (gimple_try_set_cleanup): Likewise.
5402 (gimple_try_set_eval): Likewise.
5403 (gimple_try_cleanup_ptr): Likewise.
5404 (gimple_try_eval_ptr): Likewise.
5405 (gimple_eh_else_set_e_body): Likewise.
5406 (gimple_eh_else_set_n_body): Likewise.
5407 (gimple_eh_else_e_body_ptr): Likewise.
5408 (gimple_eh_else_n_body_ptr): Likewise.
5409 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5410 (gimple_eh_must_not_throw_fndecl): Likewise.
5411 (gimple_eh_filter_set_failure): Likewise.
5412 (gimple_eh_filter_set_types): Likewise.
5413 (gimple_eh_filter_failure_ptr): Likewise.
5414 (gimple_eh_filter_types_ptr): Likewise.
5415 (gimple_eh_filter_types): Likewise.
5416 (gimple_catch_set_handler): Likewise.
5417 (gimple_catch_set_types): Likewise.
5418 (gimple_catch_handler_ptr): Likewise.
5419 (gimple_catch_types_ptr): Likewise.
5420 (gimple_catch_types): Likewise.
5421 (gimple_asm_string): Likewise.
5422 (gimple_asm_set_label_op): Likewise.
5423 (gimple_asm_label_op): Likewise.
5424 (gimple_asm_set_clobber_op): Likewise.
5425 (gimple_asm_clobber_op): Likewise.
5426 (gimple_asm_set_output_op): Likewise.
5427 (gimple_asm_output_op_ptr): Likewise.
5428 (gimple_asm_output_op): Likewise.
5429 (gimple_asm_set_input_op): Likewise.
5430 (gimple_asm_input_op_ptr): Likewise.
5431 (gimple_asm_input_op): Likewise.
5432 (gimple_asm_nlabels): Likewise.
5433 (gimple_asm_nclobbers): Likewise.
5434 (gimple_asm_noutputs): Likewise.
5435 (gimple_asm_ninputs): Likewise.
5436 (gimple_bind_set_block): Likewise.
5437 (gimple_bind_block): Likewise.
5438 (gimple_bind_add_seq): Likewise.
5439 (gimple_bind_add_stmt): Likewise.
5440 (gimple_bind_set_body): Likewise.
5441 (gimple_bind_body_ptr): Likewise.
5442 (gimple_bind_append_vars): Likewise.
5443 (gimple_bind_set_vars): Likewise.
5444 (gimple_bind_vars): Likewise.
5445 (gimple_call_clobber_set): Likewise.
5446 (gimple_call_use_set): Likewise.
5447 (gimple_call_set_internal_fn): Likewise.
5448 (gimple_call_set_fntype): Likewise.
5449 (gimple_call_fntype): Likewise.
5450 (gimple_omp_return_lhs_ptr): Likewise.
5451 (gimple_omp_return_lhs): Likewise.
5452 (gimple_omp_return_set_lhs): Likewise.
5453 (gimple_omp_taskreg_set_data_arg): Likewise.
5454 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5455 (gimple_omp_taskreg_data_arg): Likewise.
5456 (gimple_omp_taskreg_set_child_fn): Likewise.
5457 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5458 (gimple_omp_taskreg_child_fn): Likewise.
5459 (gimple_omp_taskreg_set_clauses): Likewise.
5460 (gimple_omp_taskreg_clauses_ptr): Likewise.
5461 (gimple_omp_taskreg_clauses): Likewise.
5462 (gimple_vuse): Likewise.
5463 (gimple_vdef): Likewise.
5464 (gimple_vuse_ptr): Likewise.
5465 (gimple_vdef_ptr): Likewise.
5466 * tree-inline.c (copy_debug_stmt): Likewise.
5467 * tree-phinodes.c (make_phi_node): Likewise.
5469 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5470 (is_a_helper <gimple_statement_with_ops>::test): New.
5471 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5472 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5474 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5475 access to use of as_a.
5476 * gimple.c (gimple_build_asm_1): Likewise.
5477 (gimple_build_try): Likewise. Also, return a specific subclass
5478 rather than just gimple.
5479 (gimple_build_resx): Port from union access to use of as_a.
5480 (gimple_build_eh_dispatch): Likewise.
5481 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5482 now that gengtype no longer provides a typed allocator function.
5483 (gimple_copy): Likewise.
5484 * gimple.h (gimple_build_try): Return a specific subclass rather
5486 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5487 with subclass access by making use of new return type of
5489 * tree-phinodes.c: (allocate_phi_node): Return a
5490 "gimple_statement_phi *" rather than just a gimple.
5491 (resize_phi_node): Likewise.
5492 (make_phi_node): Replace union access with subclass access by
5493 making use of new return type of allocate_phi_node.
5494 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5495 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5497 (remove_phi_args): Update for change to remove_phi_arg_num.
5499 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5500 code field to reflect inheritance, rather than embedding of
5501 the base gimple type.
5503 2013-11-19 Richard Biener <rguenther@suse.de>
5505 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5506 and destructor and make fel_next a member function.
5507 (fel_next): Transform into ...
5508 (loop_iterator::next): ... this.
5509 (fel_init): Transform into ...
5510 (loop_iterator::loop_iterator): ... this.
5511 (loop_iterator::~loop_iterator): New.
5512 (FOR_EACH_LOOP): Remove loop-iterator argument.
5513 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5514 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5515 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5516 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5517 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5518 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5519 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5520 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5521 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5522 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5523 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5524 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5525 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5526 FOR_EACH_LOOP_BREAK with break.
5528 2013-11-19 Richard Biener <rguenther@suse.de>
5530 PR tree-optimization/59164
5531 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5533 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5534 whether we can create an epilogue loop to reflect thecases where
5537 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5539 * graphite-sese-to-poly.c: Include expr.h.
5541 2013-11-19 Richard Biener <rguenther@suse.de>
5544 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5545 loads into stmts that may clobber it.
5547 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5549 * cgraphunit.c (symtab_terminator): New variable.
5550 (queued_nodes): Renamed from first. Use symtab_terminator as
5552 (analyze_functions): Adjust accordingly.
5553 (cgraph_process_new_functions): Return void.
5554 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5556 2013-11-19 Marek Polacek <polacek@redhat.com>
5558 * opts.c (common_handle_option): Add -fsanitize=null option.
5559 Turn off -fdelete-null-pointer-checks option when doing the
5560 NULL pointer checking.
5561 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5562 * tree-pass.h (make_pass_ubsan): Declare.
5563 (make_pass_sanopt): Declare.
5564 * timevar.def (TV_TREE_UBSAN): New timevar.
5565 * passes.def: Add pass_sanopt and pass_ubsan.
5566 * ubsan.h (ubsan_null_ckind): New enum.
5567 (ubsan_mismatch_data): New struct.
5568 (ubsan_expand_null_ifn): Declare.
5569 (ubsan_create_data): Adjust declaration.
5570 (ubsan_type_descriptor): Likewise.
5571 * asan.c: Include "ubsan.h".
5572 (pass_data_sanopt): New pass.
5573 (execute_sanopt): New function.
5574 (gate_sanopt): Likewise.
5575 (make_pass_sanopt): Likewise.
5576 (class pass_sanopt): New class.
5577 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5578 gimple-iterator.h and cfgloop.h.
5579 (PROB_VERY_UNLIKELY): Define.
5580 (tree_type_map_hash): New function.
5581 (ubsan_type_descriptor): Add new parameter.
5582 Improve type name generation.
5583 (ubsan_create_data): Add new parameter. Add pointer data into
5585 (ubsan_expand_null_ifn): New function.
5586 (instrument_member_call): Likewise.
5587 (instrument_mem_ref): Likewise.
5588 (instrument_null): Likewise.
5589 (ubsan_pass): Likewise.
5590 (gate_ubsan): Likewise.
5591 (make_pass_ubsan): Likewise.
5592 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5593 (class pass_ubsan): New class.
5594 (pass_data_ubsan): New pass.
5595 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5596 * internal-fn.c (expand_UBSAN_NULL): New function.
5597 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5598 even when !flag_toplevel_reorder.
5599 * internal-fn.def (UBSAN_NULL): New.
5601 2013-11-19 Jan Hubicka <jh@suse.cz>
5603 * cgraph.c (cgraph_create_indirect_edge): Use
5604 get_polymorphic_call_info.
5605 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5606 maybe_in_construction and maybe_derived_type.
5607 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5608 (ipa_dummy_polymorphic_call_context): New global var.
5609 (possible_polymorphic_call_targets): Add context paramter.
5610 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5611 (possible_polymorphic_call_target_p): Likewise.
5612 (get_polymorphic_call_info): New function.
5613 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5614 (add_type_duplicate): Remove forgotten debug output.
5615 (method_class_type): Add sanity check.
5616 (maybe_record_node): Add FINALP parameter.
5617 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5618 by info by get_binfo_at_offset.
5619 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5620 parameters; pass them to record-binfo.
5621 (polymorphic_call_target_d): Add context and FINAL.
5622 (polymorphic_call_target_hasher::hash): Hash context.
5623 (polymorphic_call_target_hasher::equal): Compare context.
5624 (free_polymorphic_call_targets_hash):
5625 (get_class_context): New function.
5626 (contains_type_p): New function.
5627 (get_polymorphic_call_info): New function.
5628 (walk_bases): New function.
5629 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5630 (dump_possible_polymorphic_call_targets): Dump context.
5631 (possible_polymorphic_call_target_p): Add context.
5632 (update_type_inheritance_graph): Update comment.s
5633 (ipa_set_jf_known_type): Assert that compoentn type is known.
5634 (ipa_note_param_call): Do not tamper with offsets.
5635 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5637 (update_indirect_edges_after_inlining): Likewise.
5638 (ipa_write_indirect_edge_info): Stream new fields.
5639 (ipa_read_indirect_edge_info): Stream in new fields.
5641 2013-11-19 Jan Hubicka <jh@suse.cz>
5643 * tree-pretty-print.c (dump_generic_node): Print class type of
5646 2013-11-19 Joey Ye <joey.ye@arm.com>
5648 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5649 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5651 * config/arm/arm.c (arm_option_override): By default disable
5652 -marm-pic-data-is-text-relative.
5653 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5654 (arm_assemble_integer): Likewise.
5655 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5656 New macro to initialize -marm-pic-data-is-text-relative.
5658 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5660 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5661 (address_cost_data): New field.
5662 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5663 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5665 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5667 * config/aarch64/aarch64.md: Remove v8type from all insns.
5669 2013-11-19 Richard Biener <rguenther@suse.de>
5671 PR tree-optimization/57517
5672 * tree-predcom.c (combinable_refs_p): Verify the combination
5673 is always executed when the refs are.
5675 2013-11-19 Jeff Law <law@redhat.com>
5677 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5678 (copy_phi_arg_into_existing_phi): New function.
5679 (any_remaining_duplicated_blocks): Likewise.
5680 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5681 blocks on a jump threading path.
5683 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5684 thread through a joiner which has the latch edge.
5686 2013-11-19 Jan Hubicka <jh@suse.cz>
5688 * md.texi (setmem): Document new parameter.
5689 * optabs.c (maybe_gen_insn): Support 9 operands.
5690 * builtins.c (determine_block_size): Add probable_max_size;
5691 support anti-ranges.
5692 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5694 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5695 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5697 * expr.h (emit_block_move_hints, clear_storage_hints,
5698 set_storage_via_setmem): Update prototype.
5699 * i386.md (setmem, movmem patterns): Add 9th operand.
5700 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5701 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5702 argument; pass it to decide_alg.
5704 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5706 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5707 (n_basic_blocks_for_fn): ...this.
5709 (n_basic_blocks): Eliminate macro as work towards making uses of
5712 * cfgloop.c (init_loops_structure): Update for renaming of
5713 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5714 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5715 * ipa-utils.c (ipa_merge_profiles): Likewise.
5716 * lto-streamer-in.c (make_new_block): Likewise.
5717 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5718 (dump_function_to_file): Likewise.
5720 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5721 macro with "n_basic_blocks_for_fn (cfun)".
5722 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5723 (duplicate_computed_gotos): Likewise.
5724 (reorder_basic_blocks): Likewise.
5725 * bt-load.c (augment_live_range): Likewise.
5726 * cfg.c (expunge_block): Likewise.
5727 (compact_blocks): Likewise.
5728 * cfganal.c (single_pred_before_succ_order): Likewise.
5729 (compute_idf): Likewise.
5730 (flow_dfs_compute_reverse_init): Likewise.
5731 (pre_and_rev_post_order_compute): Likewise.
5732 (pre_and_rev_post_order_compute_fn): Likewise.
5733 (inverted_post_order_compute): Likewise.
5734 (post_order_compute): Likewise.
5735 (print_edge_list): Likewise.
5736 (find_unreachable_blocks): Likewise.
5737 (mark_dfs_back_edges): Likewise.
5738 * cfgcleanup.c (try_optimize_cfg): Likewise.
5739 (try_forward_edges): Likewise.
5740 * cfghooks.c (dump_flow_info): Likewise.
5741 * cfgloop.c (verify_loop_structure): Likewise.
5742 (get_loop_body): Likewise.
5743 (flow_loops_find): Likewise.
5744 * cfgloopmanip.c (add_loop): Likewise.
5745 (remove_path): Likewise.
5746 (find_path): Likewise.
5747 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5748 (rtl_verify_bb_layout): Likewise.
5749 (entry_of_function): Likewise.
5750 (rtl_create_basic_block): Likewise.
5751 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5752 * cprop.c (one_cprop_pass): Likewise.
5753 (is_too_expensive): Likewise.
5754 * df-core.c (df_compute_cfg_image): Likewise.
5755 (df_compact_blocks): Likewise.
5756 (df_worklist_dataflow_doublequeue): Likewise.
5757 * dominance.c (calculate_dominance_info): Likewise.
5758 (calc_dfs_tree): Likewise.
5759 (calc_dfs_tree_nonrec): Likewise.
5760 (init_dom_info): Likewise.
5761 * domwalk.c (cmp_bb_postorder): Likewise.
5762 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5763 (generate_setjmp_warnings): Likewise.
5764 * fwprop.c (build_single_def_use_links): Likewise.
5765 * gcse.c (is_too_expensive): Likewise.
5766 (one_code_hoisting_pass): Likewise.
5767 (one_pre_gcse_pass): Likewise.
5768 * graphite.c (graphite_initialize): Likewise.
5769 * haifa-sched.c (haifa_sched_init): Likewise.
5770 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5771 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5772 * ira-build.c (ira_build): Likewise.
5773 * lcm.c (compute_nearerout): Likewise.
5774 (compute_available): Likewise.
5775 (compute_laterin): Likewise.
5776 (compute_antinout_edge): Likewise.
5777 * lra-lives.c (lra_create_live_ranges): Likewise.
5778 * lra.c (has_nonexceptional_receiver): Likewise.
5779 * mcf.c (create_fixup_graph): Likewise.
5780 * profile.c (branch_prob): Likewise.
5781 * reg-stack.c (convert_regs_2): Likewise.
5782 * regrename.c (regrename_analyze): Likewise.
5783 * reload1.c (has_nonexceptional_receiver): Likewise.
5784 * reorg.c (dbr_schedule): Likewise.
5785 * sched-deps.c (sched_deps_init): Likewise.
5786 * sched-ebb.c (schedule_ebbs): Likewise.
5787 * sched-rgn.c (extend_regions): Likewise.
5788 (schedule_insns): Likewise.
5789 (sched_rgn_init): Likewise.
5790 (extend_rgns): Likewise.
5791 (haifa_find_rgns): Likewise.
5792 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5793 (sel_recompute_toporder): Likewise.
5794 * sel-sched.c (run_selective_scheduling): Likewise.
5795 * store-motion.c (one_store_motion_pass): Likewise.
5796 (remove_reachable_equiv_notes): Likewise.
5797 * tracer.c (tracer): Likewise.
5798 (tail_duplicate): Likewise.
5799 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5800 (dump_cfg_stats): Likewise.
5801 (gimple_dump_cfg): Likewise.
5802 (create_bb): Likewise.
5803 (build_gimple_cfg): Likewise.
5804 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5805 * tree-inline.c (optimize_inline_calls): Likewise.
5806 (fold_marked_statements): Likewise.
5807 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5808 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5809 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5810 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5811 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5812 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5813 * tree-ssa-pre.c (do_pre): Likewise.
5814 (init_pre): Likewise.
5815 (compute_avail): Likewise.
5816 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5817 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5818 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5819 (init_worklist): Likewise.
5820 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5821 * var-tracking.c (variable_tracking_main_1): Likewise.
5822 (vt_find_locations): Likewise.
5823 (vt_stack_adjustments): Likewise.
5824 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5825 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5827 2013-11-18 Jan Hubicka <jh@suse.cz>
5829 * profile.c (compute_branch_probabilities): Do not sanity check
5832 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5834 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5836 * fold-const.c (fold_single_bit_test_into_sign_test)
5837 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5839 2013-11-18 Teresa Johnson <tejohnson@google.com>
5841 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5842 cfglayout after bb reordering.
5843 * passes.def: Move compgotos before bb reordering since it goes into
5846 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5848 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5849 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5851 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5852 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5853 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5854 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5855 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5856 Remove all_lto_gen_passes.
5857 * passes.c (pass_manager::dump_passes): Remove its use.
5858 (pass_manager::register_pass): Likewise.
5859 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5860 (pass_manager::pass_manager): Don't initialize or use it.
5861 (write_lto): New static function.
5862 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5863 instead of using all_lto_gen_passes.
5864 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5865 pass_ipa_lto_finish_out): Delete.
5866 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5867 make_pass_ipa_lto_finish_out): Don't declare.
5869 2013-11-18 Jeff Law <law@redhat.com>
5871 * tree-ssa-threadupdate.c (redirection_data): Record two
5872 duplicated blocks instead of just one.
5873 (local_info): Explain why we don't create a template for the
5874 second duplicated block in a thread path.
5875 (create_block_for_threading): Accept argument indicating array
5876 index into redirection_data to store its result.
5877 (lookup_redirection_data): Initialize both duplicate blocks.
5878 (ssa_create_duplicates): If a jump threading path needs multiple
5879 blocks duplicated, then duplicate them.
5880 (ssa_fix_duplicate_block_edges): Corresponding changes.
5881 (ssa_fixup_template_block, thread_single_edge): Likewise.
5883 2013-11-18 Marek Polacek <polacek@redhat.com>
5885 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5887 2013-11-18 Andrew Pinski <apinski@cavium.com>
5888 Steve Ellcey <sellcey@mips.com>
5891 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5892 type restriction from equality_operator on conditonal move.
5893 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5894 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5896 2013-11-18 Jeff Law <law@redhat.com>
5898 * tree-ssa-threadupdate.c: Fix file block comment.
5899 Fix minor indention issue.
5901 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5903 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5904 ix86_address_subreg_operand. Move subreg checks to
5905 ix86_validate_address_register. Move address override check to
5906 ix86_legitimate_address_p.
5907 (ix86_validate_address_register): New function.
5908 (ix86_legitimate_address_p): Call ix86_validate_address_register
5909 to validate base and index registers. Add address override check
5910 from ix86_decompose_address.
5911 (ix86_decompose_address): Remove.
5913 2013-11-18 Richard Biener <rguenther@suse.de>
5915 PR tree-optimization/59125
5916 PR tree-optimization/54570
5917 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5918 is not complete do not treat component-references with offset zero
5919 but different fields as equal.
5920 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5921 (compute_object_sizes): Apply TLC. Propagate the constant
5922 results into all uses and fold their stmts.
5923 * passes.def (pass_all_optimizations): Move pass_object_sizes
5924 after the first pass_forwprop and before pass_fre.
5926 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5928 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5929 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5930 (tree_ctz): Remove cast to unsigned type.
5931 * builtins.c (fold_builtin_memory_op): Likewise.
5932 * dwarf2out.c (descr_info_loc): Likewise.
5933 * godump.c (go_output_typedef): Likewise.
5934 * omp-low.c (expand_omp_simd): Likewise.
5935 * stor-layout.c (excess_unit_span): Likewise.
5936 * tree-object-size.c (addr_object_size): Likewise.
5937 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5938 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5939 (simplify_rotate): Likewise.
5940 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5941 (handle_pointer_plus): Likewise.
5942 * tree-switch-conversion.c (check_range): Likewise.
5943 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5944 * tsan.c (instrument_builtin_call): Likewise.
5945 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5946 * trans-mem.c (tm_log_add): Likewise.
5947 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5948 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5949 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5950 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5952 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5954 * tree.h (host_integerp, tree_low_cst): Delete.
5955 * tree.c (host_integerp, tree_low_cst): Delete.
5957 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5959 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5961 * fold-const.c (fold_binary_loc): Likewise.
5962 * expr.c (store_constructor): Use tree_to_uhwi rather than
5964 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5965 * stmt.c (emit_case_dispatch_table): Likewise.
5966 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5968 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5970 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5971 config/aarch64/aarch64.c, config/alpha/predicates.md,
5972 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5973 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5974 config/mep/mep-pragma.c, config/mips/mips.c,
5975 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5976 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5977 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5978 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5979 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5980 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5981 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5982 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5983 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5984 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5986 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5988 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5989 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5990 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5991 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5992 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5993 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5994 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5995 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5996 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5997 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5998 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6000 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6002 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6003 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6005 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6007 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6010 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6012 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6013 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6014 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6015 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6016 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6017 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6018 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6019 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6020 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6021 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6022 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6023 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6024 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6025 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6026 tree_fits_uhwi_p throughout.
6028 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6030 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6031 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6032 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6033 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6034 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6035 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6036 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6037 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6038 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6039 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6040 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6041 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6042 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6045 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6047 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6048 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6050 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6052 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6053 flag if it kills its address, not its post-increment.
6055 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6057 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6058 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6059 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6060 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6061 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6062 (gimple_call_with_bounds_p): New.
6063 (gimple_call_set_with_bounds): New.
6064 (gimple_call_num_nobnd_args): Remove.
6065 (gimple_call_nobnd_arg): Remove.
6066 * tree.h (CALL_WITH_BOUNDS_P): New.
6067 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6069 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6071 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6072 (symtab_node_name): Rename to symtab_node::name.
6073 (cgraph_node_asm_name): Remove.
6074 (varpool_node_asm_name): Remove.
6075 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6076 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6077 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6078 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6079 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6081 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6083 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6084 * config/arm/arm.c (arm_cortex_a53_tune): New.
6085 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6087 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6089 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6090 (case ${target}): Add bdver4.
6091 * config/i386/bdver3.md: Add bdver4.
6092 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6093 -march=native recognize bdver4 processors.
6094 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6095 bdver4 def_and_undef
6096 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6097 (m_BDVER4): New definition.
6098 (m_AMD_MULTIPLE): Includes m_BDVER4.
6099 (processor_target_table): Add bdver4 entry.
6100 (static const char *const cpu_names): Add bdver4 entry.
6101 (software_prefetching_beneficial_p): Add bdver3.
6102 (ix86_option_override_internal): Add bdver4 instruction sets.
6103 (ix86_issue_rate): Add bdver4.
6104 (ix86_adjust_cost): Add bdver4.
6105 (ia32_multipass_dfa_lookahead): Add bdver4.
6106 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6107 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6108 (has_dispatch): Add bdver4.
6109 * config/i386/i386.h (TARGET_BDVER4): New definition.
6110 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6111 (enum processor_type): Add PROCESSOR_BDVER4.
6112 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6113 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6114 * doc/extend.texi: Add details about bdver4.
6115 * doc/invoke.texi: Add details about bdver4. Add
6116 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6118 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6120 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6121 sdmode_stack_slot also in little-endian mode.
6123 2013-11-17 Jan Hubicka <jh@suse.cz>
6125 * doc/md.texi (setmem, movstr): Update documentation.
6126 * builtins.c (determine_block_size): New function.
6127 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6128 (expand_builtin_memset_args): Use it and pass it to
6129 set_storage_via_setmem.
6130 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6131 parameters; update call to expander.
6132 (emit_block_move_hints): Add min_size/max_size parameters.
6133 (clear_storage_hints): Likewise.
6134 (set_storage_via_setmem): Likewise.
6135 (clear_storage): Update.
6136 * expr.h (emit_block_move_hints, clear_storage_hints,
6137 set_storage_via_setmem): Update prototypes.
6138 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6139 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6140 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6141 * i386.md (movmem, setmem): Pass parameters.
6143 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6146 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6147 reject non-integer subregs.
6148 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6149 Move check for invalid x32 constant addresses ...
6150 (ix86_legitimate_address_p): ... here.
6152 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6154 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6155 parameter and use it in REG_FRAME_RELATED_EXPR note.
6156 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6158 (rs6000_emit_prologue): Likewise, but for little endian VSX
6159 stores, pass the source register of the store instead.
6161 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6163 * gimple.h: Reorder prototypes to match .c declaration order, and
6164 remove protyotypes for functions not in gimple.c.
6165 (LABEL): Move to tree-into-ssa.c.
6166 * gimple.c: Remove unused prototypes.
6167 (get_base_address): Move to tree.c.
6168 * tree.c (get_base_address): Relocate from gimple.c.
6169 * builtins.h (validate_gimple_arglist): Add prototype.
6170 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6171 * cfgexpand.h: New File.
6172 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6173 * tree.h (build_addr): Move to tree-nested.h.
6174 * tree-nested.h: New File.
6175 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6177 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6178 * ipa-inline-analysis.c: Include cfgexpand.h.
6179 * cgraphunit.c: Include tree-nested.h.
6180 * omp-low.c: Likewise.
6181 * tree-parloops.c: Likewise.
6182 * gimple-low.h: Likewise.
6183 * tree-profile.h: Likewise.
6184 * expr.c: Include cfgexpand.h.
6185 * tree-affine.c: Likewise.
6186 * tree-ssa.c: Likewise.
6187 * tree-ssa-loop-im.c: Include trans-mem.h.
6188 * tree-ssa-tail-merge.c: Likewise.
6189 * value-prof.c: Include builtins.h and tree-nested.h.
6190 * tree-into-ssa.c (LABEL): Define here.
6192 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6194 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6195 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6196 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6197 (make_pass_arc_predicate_delay_insns): New function.
6198 (arc_init): Register pass_arc_predicate_delay_insns if
6199 flag_delayed_branch is active.
6201 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6203 * config/arc/constraints.md (Rcq): Simplify register number test.
6205 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6207 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6209 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6211 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6214 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6216 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6217 * gimple-pretty-print.c (dump_omp_for): Add case for
6218 GF_OMP_FOR_KIND_CILKSIMD.
6219 * gimple.h (enum gf_mask): Restructure entries to add
6220 GF_OMP_FOR_KIND_CILKSIMD.
6221 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6222 (gimplify_omp_for): Handle CILK_SIMD.
6223 (gimplify_expr): Add ccase for CILK_SIMD.
6224 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6225 (build_outer_var_ref): Same.
6226 (check_omp_nesting_restrictions): Same.
6227 (lower_rec_input_clauses): Same.
6228 (lower_lastprivate_clauses): Same.
6229 (expand_omp_for): Same.
6230 (execute_expand_omp): Check flag_enable_cilkplus.
6231 (execute_lower_omp): Same.
6232 (diagnose_sb_0): Handle CILK_SIMD.
6233 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6234 (setjmp_or_longjmp_p): New.
6235 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6236 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6237 * tree.def: Add tree code for CILK_SIMD.
6239 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6241 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6243 (altivec_vperm_<mode>): Revert earlier little endian change.
6244 (*altivec_vperm_<mode>_internal): Remove.
6245 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6246 (*altivec_vperm_<mode>_uns_internal): Remove.
6247 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6249 2013-11-15 Jeff Law <law@redhat.com>
6251 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6252 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6253 * gimple-ssa-isolate-paths.c
6254 (find_implicit_erroneous_behaviour): Corresponding changes.
6255 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6256 (find_explicit_erroneous_behaviour): Likewise.
6258 2013-11-15 Jeff Law <law@redhat.com>
6260 * ifcvt.c (find_cond_trap): Properly handle case where
6263 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6265 * configure: Regenerate.
6267 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6269 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6270 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6271 where it is incorrect or missing.
6273 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6275 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6277 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6278 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6280 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6281 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6282 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6284 2013-11-15 Richard Biener <rguenther@suse.de>
6286 PR tree-optimization/50262
6287 * tree-ssa-alias.h (struct pt_solution): Split
6288 vars_contains_global into vars_contains_nonlocal,
6289 vars_contains_escaped and vars_contains_escaped_heap.
6290 * tree-ssa-structalias.c (label_visit): Expand comment.
6291 (handle_lhs_call): Adjust comment.
6292 (set_uids_in_ptset): Set the new flags appropriately.
6293 (pt_solution_set): Adjust.
6294 (pt_solution_set_var): Likewise.
6295 (pt_solution_ior_into): Likewise.
6296 (pt_solution_includes_global): Likewise.
6297 (pt_solutions_intersect_1): Optimize escaped handling.
6298 (compute_points_to_sets): Remove heap variable globalization.
6299 (ipa_escaped_pt): Adjust initializer.
6300 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6301 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6302 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6304 2013-11-15 Richard Biener <rguenther@suse.de>
6306 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6307 to distribute all stores.
6309 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6311 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6313 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6315 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6316 * configure.ac: Determine target_header_dir earlier.
6317 (--with-glibc-version): New configure option.
6318 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6319 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6320 * configure: Regenerate.
6321 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6322 native toolchains for default.
6323 (--with-glibc-version): Document.
6325 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6327 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6329 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6331 * lto-streamer-in.c (input function): Call cgraph_create_node if
6332 cgraph_get_node failed.
6334 2013-11-14 Olivier Hainque <hainque@adacore.com>
6336 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6337 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6338 small. Factorize size threshold computation from the existing one.
6339 (expand_used_vars): Refine comment.
6341 2013-11-14 Cong Hou <congh@google.com>
6343 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6344 address field as it can be obtained from dr. Rename the struct.
6345 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6346 steps of data references during sort.
6347 (vect_prune_runtime_alias_test_list): Adjust with the change to
6348 struct dr_with_seg_len.
6349 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6350 Adjust with the change to struct dr_with_seg_len.
6352 2013-11-14 Jeff Law <law@redhat.com>
6355 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6356 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6357 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6358 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6359 edges, then ignore it. If the statement exhibiting erroneous
6360 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6361 then we can not optimize.
6362 (find_explicit_erroneous_behaviour): Likewise.
6364 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6366 * gimplify-me.h: New file. Add prototypes.
6367 * gimplify.h: Don't include gimple.h.
6368 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6369 Relocate from gimple.h.
6370 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6371 is_gimple_sizepos): Move to gimplify.h.
6372 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6373 (enum gsi_iterator_update): Move to gimple-iterator.h.
6374 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6375 * gimplify-me.c: New File.
6376 (force_gimple_operand_1, force_gimple_operand,
6377 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6378 gimple_regimplify_operands): Relocate from gimplify.c.
6379 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6380 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6381 gimple_regimplify_operands): Move to gimplify-me.c.
6382 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6384 * Makefile.in (OBJS): Add gimplify-me.o
6385 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6387 * cfgloopmanip.c: Likewise.
6388 * cgraphunit.c: Likewise.
6389 * cilk-common.c: Likewise.
6390 * fold-const.c: Likewise.
6391 * function.c: Likewise.
6392 * gimple-expr.c: Likewise.
6393 * gimple-fold.c: Likewise.
6394 * gimple-ssa-strength-reduction.c: Likewise.
6395 * gimple.c: Likewise.
6396 * graphite-clast-to-gimple.c: Likewise.
6397 * graphite-sese-to-poly.c: Likewise.
6398 * ipa-prop.c: Likewise.
6399 * ipa-split.c: Likewise.
6401 * langhooks.c: Likewise.
6402 * omp-low.c: Likewise.
6404 * stor-layout.c: Likewise.
6405 * targhooks.c: Likewise.
6406 * trans-mem.c: Likewise.
6407 * tree-affine.c: Likewise.
6408 * tree-cfg.c: Likewise.
6409 * tree-cfgcleanup.c: Likewise.
6410 * tree-complex.c: Likewise.
6411 * tree-if-conv.c: Likewise.
6412 * tree-inline.c: Likewise.
6413 * tree-loop-distribution.c: Likewise.
6414 * tree-nested.c: Likewise.
6415 * tree-parloops.c: Likewise.
6416 * tree-predcom.c: Likewise.
6417 * tree-profile.c: Likewise.
6418 * tree-scalar-evolution.c: Likewise.
6419 * tree-sra.c: Likewise.
6420 * tree-ssa-address.c: Likewise.
6421 * tree-ssa-ccp.c: Likewise.
6422 * tree-ssa-dce.c: Likewise.
6423 * tree-ssa-forwprop.c: Likewise.
6424 * tree-ssa-ifcombine.c: Likewise.
6425 * tree-ssa-loop-im.c: Likewise.
6426 * tree-ssa-loop-ivopts.c: Likewise.
6427 * tree-ssa-loop-manip.c: Likewise.
6428 * tree-ssa-loop-niter.c: Likewise.
6429 * tree-ssa-loop-prefetch.c: Likewise.
6430 * tree-ssa-loop-unswitch.c: Likewise.
6431 * tree-ssa-math-opts.c: Likewise.
6432 * tree-ssa-phiopt.c: Likewise.
6433 * tree-ssa-phiprop.c: Likewise.
6434 * tree-ssa-pre.c: Likewise.
6435 * tree-ssa-propagate.c: Likewise.
6436 * tree-ssa-reassoc.c: Likewise.
6437 * tree-ssa-sccvn.c: Likewise.
6438 * tree-ssa-strlen.c: Likewise.
6439 * tree-ssa.c: Likewise.
6440 * tree-switch-conversion.c: Likewise.
6441 * tree-tailcall.c: Likewise.
6442 * tree-vect-data-refs.c: Likewise.
6443 * tree-vect-generic.c: Likewise.
6444 * tree-vect-loop-manip.c: Likewise.
6445 * tree-vect-loop.c: Likewise.
6446 * tree-vect-patterns.c: Likewise.
6447 * tree-vect-stmts.c: Likewise.
6450 * value-prof.c: Likewise.
6451 * config/aarch64/aarch64.c: Likewise.
6452 * config/alpha/alpha.c: Likewise.
6453 * config/darwin.c: Likewise.
6454 * config/i386/i386.c: Likewise.
6455 * config/ia64/ia64.c: Likewise.
6456 * config/mep/mep.c: Likewise.
6457 * config/mips/mips.c: Likewise.
6458 * config/rs6000/rs6000.c: Likewise.
6459 * config/s390/s390.c: Likewise.
6460 * config/sh/sh.c: Likewise.
6461 * config/sparc/sparc.c: Likewise.
6462 * config/spu/spu.c: Likewise.
6463 * config/stormy16/stormy16.c: Likewise.
6464 * config/tilegx/tilegx.c: Likewise.
6465 * config/tilepro/tilepro.c: Likewise.
6466 * config/xtensa/xtensa.c: Likewise.
6468 2013-11-14 Diego Novillo <dnovillo@google.com>
6470 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6472 2013-11-14 Diego Novillo <dnovillo@google.com>
6474 * tree.h: Include fold-const.h.
6475 (aggregate_value_p): Moved to function.h.
6476 (alloca_call_p): Moved to calls.h.
6477 (allocate_struct_function): Moved to function.h.
6478 (apply_tm_attr): Moved to attribs.h.
6479 (array_at_struct_end_p): Moved to expr.h.
6480 (array_ref_element_size): Moved to tree-dfa.h.
6481 (array_ref_low_bound): Moved to tree-dfa.h.
6482 (array_ref_up_bound): Moved to tree.h.
6483 (assemble_alias): Moved to cgraph.h.
6484 (bit_from_pos): Moved to stor-layout.h.
6485 (build_addr): Moved to tree-nested.h.
6486 (build_duplicate_type): Moved to tree-inline.h.
6487 (build_fold_addr_expr): Moved to fold-const.h.
6488 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6489 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6490 (build_fold_indirect_ref): Moved to fold-const.h.
6491 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6492 (build_personality_function): Moved to tree.h.
6493 (build_range_check): Moved to fold-const.h.
6494 (build_simple_mem_ref): Moved to fold-const.h.
6495 (build_simple_mem_ref_loc): Moved to fold-const.h.
6496 (build_tm_abort_call): Moved to trans-mem.h.
6497 (byte_from_pos): Moved to stor-layout.h.
6498 (call_expr_flags): Moved to calls.h.
6499 (can_move_by_pieces): Moved to expr.h.
6500 (categorize_ctor_elements): Moved to expr.h.
6501 (change_decl_assembler_name): Moved to gcc-symtab.h.
6502 (combine_comparisons): Moved to fold-const.h.
6503 (complete_ctor_at_level_p): Moved to tree.h.
6504 (component_ref_field_offset): Moved to tree-dfa.h.
6505 (compute_builtin_object_size): Moved to tree-object-size.h.
6506 (compute_record_mode): Moved to stor-layout.h.
6507 (constant_boolean_node): Moved to fold-const.h.
6508 (constructor_static_from_elts_p): Moved to varasm.h.
6509 (cxx11_attribute_p): Moved to attribs.h.
6510 (debug_body): Moved to print-tree.h.
6511 (debug_find_tree): Moved to tree-inline.h.
6512 (debug_fold_checksum): Moved to fold-const.h.
6513 (debug_head): Moved to print-tree.h.
6514 (debug_head): Moved to print-tree.h.
6515 (debug_raw): Moved to print-tree.h.
6516 (debug_tree): Moved to print-tree.h.
6517 (debug_vec_tree): Moved to print-tree.h.
6518 (debug_verbose): Moved to print-tree.h.
6519 (debug_verbose): Moved to print-tree.h.
6520 (decl_attributes): Moved to attribs.h.
6521 (decl_binds_to_current_def_p): Moved to varasm.h.
6522 (decl_default_tls_model): Moved to varasm.h.
6523 (decl_replaceable_p): Moved to varasm.h.
6524 (div_if_zero_remainder): Moved to fold-const.h.
6525 (double_int mem_ref_offset): Moved to fold-const.h.
6526 (dump_addr): Moved to print-tree.h.
6527 (element_precision): Moved to machmode.h.
6528 (expand_dummy_function_end): Moved to function.h.
6529 (expand_function_end): Moved to function.h.
6530 (expand_function_start): Moved to function.h.
6531 (expand_label): Moved to stmt.h.
6532 (expr_first): Moved to tree-iterator.h.
6533 (expr_last): Moved to tree-iterator.h.
6534 (finalize_size_functions): Moved to stor-layout.h.
6535 (finish_builtin_struct): Moved to stor-layout.h.
6536 (finish_record_layout): Moved to stor-layout.h.
6537 (fixup_signed_type): Moved to stor-layout.h.
6538 (fixup_unsigned_type): Moved to stor-layout.h.
6539 (flags_from_decl_or_type): Moved to calls.h.
6540 (fold): Moved to fold-const.h.
6541 (fold_abs_const): Moved to fold-const.h.
6542 (fold_binary): Moved to fold-const.h.
6543 (fold_binary_loc): Moved to fold-const.h.
6544 (fold_binary_to_constant): Moved to fold-const.h.
6545 (fold_build1): Moved to fold-const.h.
6546 (fold_build1_initializer_loc): Moved to fold-const.h.
6547 (fold_build1_loc): Moved to fold-const.h.
6548 (fold_build1_stat_loc): Moved to fold-const.h.
6549 (fold_build2): Moved to fold-const.h.
6550 (fold_build2_initializer_loc): Moved to fold-const.h.
6551 (fold_build2_loc): Moved to fold-const.h.
6552 (fold_build2_stat_loc): Moved to fold-const.h.
6553 (fold_build3): Moved to fold-const.h.
6554 (fold_build3_loc): Moved to fold-const.h.
6555 (fold_build3_stat_loc): Moved to fold-const.h.
6556 (fold_build_call_array): Moved to fold-const.h.
6557 (fold_build_call_array_initializer): Moved to fold-const.h.
6558 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6559 (fold_build_call_array_loc): Moved to fold-const.h.
6560 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6561 (fold_convert): Moved to fold-const.h.
6562 (fold_convert_loc): Moved to fold-const.h.
6563 (fold_convertible_p): Moved to fold-const.h.
6564 (fold_defer_overflow_warnings): Moved to fold-const.h.
6565 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6566 (fold_fma): Moved to fold-const.h.
6567 (fold_ignored_result): Moved to fold-const.h.
6568 (fold_indirect_ref): Moved to fold-const.h.
6569 (fold_indirect_ref_1): Moved to fold-const.h.
6570 (fold_indirect_ref_loc): Moved to fold-const.h.
6571 (fold_read_from_constant_string): Moved to fold-const.h.
6572 (fold_real_zero_addition_p): Moved to fold-const.h.
6573 (fold_single_bit_test): Moved to fold-const.h.
6574 (fold_strip_sign_ops): Moved to fold-const.h.
6575 (fold_ternary): Moved to fold-const.h.
6576 (fold_ternary_loc): Moved to fold-const.h.
6577 (fold_unary): Moved to tree-data-ref.h.
6578 (fold_unary_ignore_overflow): Moved to fold-const.h.
6579 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6580 (fold_unary_loc): Moved to fold-const.h.
6581 (fold_unary_to_constant): Moved to fold-const.h.
6582 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6583 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6584 (folding_initializer): Moved to fold-const.h.
6585 (free_temp_slots): Moved to function.h.
6586 (generate_setjmp_warnings): Moved to function.h.
6587 (get_attribute_name): Moved to attribs.h.
6588 (get_identifier): Moved to stringpool.h.
6589 (get_identifier_with_length): Moved to stringpool.h.
6590 (get_inner_reference): Moved to tree.h.
6591 (gimple_alloca_call_p): Moved to calls.h.
6592 (gimplify_parameters): Moved to function.h.
6593 (highest_pow2_factor): Moved to expr.h.
6594 (indent_to): Moved to print-tree.h.
6595 (init_attributes): Moved to attribs.h.
6596 (init_dummy_function_start): Moved to function.h.
6597 (init_function_start): Moved to function.h.
6598 (init_inline_once): Moved to tree-inline.h.
6599 (init_object_sizes): Moved to tree-object-size.h.
6600 (init_temp_slots): Moved to function.h.
6601 (init_tree_optimization_optabs): Moved to optabs.h.
6602 (initialize_sizetypes): Moved to stor-layout.h.
6603 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6604 (initializer_constant_valid_p): Moved to varasm.h.
6605 (int_const_binop): Moved to fold-const.h.
6606 (internal_reference_types): Moved to stor-layout.h.
6607 (invert_tree_comparison): Moved to fold-const.h.
6608 (invert_truthvalue): Moved to fold-const.h.
6609 (invert_truthvalue_loc): Moved to fold-const.h.
6610 (is_tm_ending_fndecl): Moved to trans-mem.h.
6611 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6612 (is_tm_pure): Moved to trans-mem.h.
6613 (is_tm_safe): Moved to trans-mem.h.
6614 (layout_decl): Moved to stor-layout.h.
6615 (layout_type): Moved to stor-layout.h.
6616 (lookup_attribute_spec): Moved to attribs.h.
6617 (make_accum_type): Moved to stor-layout.h.
6618 (make_decl_one_only): Moved to varasm.h.
6619 (make_decl_rtl): Moved to tree.h.
6620 (make_decl_rtl_for_debug): Moved to varasm.h.
6621 (make_fract_type): Moved to stor-layout.h.
6622 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6623 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6624 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6625 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6626 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6627 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6628 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6629 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6630 (make_range): Moved to fold-const.h.
6631 (make_range_step): Moved to fold-const.h.
6632 (make_sat_signed_accum_type): Moved to stor-layout.h.
6633 (make_sat_signed_fract_type): Moved to stor-layout.h.
6634 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6635 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6636 (make_signed_accum_type): Moved to stor-layout.h.
6637 (make_signed_fract_type): Moved to stor-layout.h.
6638 (make_signed_type): Moved to stor-layout.h.
6639 (make_unsigned_accum_type): Moved to stor-layout.h.
6640 (make_unsigned_fract_type): Moved to stor-layout.h.
6641 (make_unsigned_type): Moved to stor-layout.h.
6642 (mark_decl_referenced): Moved to varasm.h.
6643 (mark_referenced): Moved to varasm.h.
6644 (may_negate_without_overflow_p): Moved to fold-const.h.
6645 (maybe_get_identifier): Moved to stringpool.h.
6646 (merge_ranges): Moved to fold-const.h.
6647 (merge_weak): Moved to varasm.h.
6648 (mode_for_size_tree): Moved to stor-layout.h.
6649 (multiple_of_p): Moved to fold-const.h.
6650 (must_pass_in_stack_var_size): Moved to calls.h.
6651 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6652 (native_encode_expr): Moved to fold-const.h.
6653 (native_interpret_expr): Moved to fold-const.h.
6654 (non_lvalue): Moved to fold-const.h.
6655 (non_lvalue_loc): Moved to fold-const.h.
6656 (normalize_offset): Moved to stor-layout.h.
6657 (normalize_rli): Moved to stor-layout.h.
6658 (notice_global_symbol): Moved to varasm.h.
6659 (omit_one_operand): Moved to fold-const.h.
6660 (omit_one_operand_loc): Moved to fold-const.h.
6661 (omit_two_operands): Moved to fold-const.h.
6662 (omit_two_operands_loc): Moved to fold-const.h.
6663 (operand_equal_p): Moved to tree-data-ref.h.
6664 (parse_input_constraint): Moved to stmt.h.
6665 (parse_output_constraint): Moved to stmt.h.
6666 (place_field): Moved to stor-layout.h.
6667 (pop_function_context): Moved to function.h.
6668 (pop_temp_slots): Moved to function.h.
6669 (pos_from_bit): Moved to stor-layout.h.
6670 (preserve_temp_slots): Moved to function.h.
6671 (print_node): Moved to print-tree.h.
6672 (print_node_brief): Moved to print-tree.h.
6673 (print_rtl): Moved to rtl.h.
6674 (process_pending_assemble_externals): Moved to varasm.h.
6675 (ptr_difference_const): Moved to fold-const.h.
6676 (push_function_context): Moved to function.h.
6677 (push_struct_function): Moved to function.h.
6678 (push_temp_slots): Moved to function.h.
6679 (record_tm_replacement): Moved to trans-mem.h.
6680 (relayout_decl): Moved to stor-layout.h.
6681 (resolve_asm_operand_names): Moved to stmt.h.
6682 (resolve_unique_section): Moved to varasm.h.
6683 (rli_size_so_far): Moved to stor-layout.h.
6684 (rli_size_unit_so_far): Moved to stor-layout.h.
6685 (round_down): Moved to fold-const.h.
6686 (round_down_loc): Moved to fold-const.h.
6687 (round_up): Moved to fold-const.h.
6688 (round_up_loc): Moved to fold-const.h.
6689 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6690 (set_decl_rtl): Moved to tree.h.
6691 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6692 (set_user_assembler_name): Moved to varasm.h.
6693 (setjmp_call_p): Moved to calls.h.
6694 (size_binop): Moved to fold-const.h.
6695 (size_binop_loc): Moved to fold-const.h.
6696 (size_diffop): Moved to fold-const.h.
6697 (size_diffop_loc): Moved to fold-const.h.
6698 (size_int_kind): Moved to fold-const.h.
6699 (stack_protect_epilogue): Moved to function.h.
6700 (start_record_layout): Moved to stor-layout.h.
6701 (supports_one_only): Moved to varasm.h.
6702 (swap_tree_comparison): Moved to fold-const.h.
6703 (tm_malloc_replacement): Moved to trans-mem.h.
6704 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6705 (tree build_invariant_address): Moved to fold-const.h.
6706 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6707 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6708 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6709 (tree_expr_nonnegative_p): Moved to fold-const.h.
6710 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6711 (tree_output_constant_def): Moved to varasm.h.
6712 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6713 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6714 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6715 (tree_swap_operands_p): Moved to fold-const.h.
6716 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6717 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6718 (update_alignment_for_field): Moved to stor-layout.h.
6719 (use_register_for_decl): Moved to function.h.
6720 (variable_size): Moved to rtl.h.
6721 (vector_type_mode): Moved to stor-layout.h.
6722 * cgraph.h: Corresponding changes.
6723 * emit-rtl.h: Corresponding changes.
6724 * expr.h: Corresponding changes.
6725 * function.h: Corresponding changes.
6726 * optabs.h: Corresponding changes.
6727 * trans-mem.h: Corresponding changes.
6728 Protect against multiple inclusion.
6729 * tree-inline.h: Corresponding changes.
6730 * tree-iterator.h: Corresponding changes.
6731 * tree-dfa.h: Include expr.h.
6732 * tree-ssanames.h: Include stringpool.h.
6733 * attribs.h: New file.
6734 * calls.h: New file.
6735 * fold-const.h: New file.
6736 * gcc-symtab.h: New file.
6737 * print-rtl.h: New file.
6738 * print-tree.h: New file.
6740 * stor-layout.h: New file.
6741 * strinpool.h: New file.
6742 * tree-nested.h: New file
6743 * tree-object-size.h: New file.
6744 * varasm.h: New file.
6746 2013-11-14 Diego Novillo <dnovillo@google.com>
6748 * alias.c: Include varasm.h.
6750 * asan.c: Include calls.h.
6751 Include stor-layout.h.
6753 * attribs.c: Include stringpool.h.
6755 Include stor-layout.h.
6756 * builtins.c: Include stringpool.h.
6757 Include stor-layout.h.
6760 Include tree-object-size.h.
6761 * calls.c: Include stor-layout.h.
6763 Include stringpool.h.
6765 * cfgexpand.c: Include stringpool.h.
6767 Include stor-layout.h.
6769 Include print-tree.h.
6770 * cgraph.c: Include varasm.h.
6772 Include print-tree.h.
6773 * cgraphclones.c: Include stringpool.h.
6776 Move inclusion of rtl.h earlier in the file.
6777 * cgraphunit.c: Include varasm.h.
6778 Include stor-layout.h.
6779 Include stringpool.h.
6780 * cilk-common.c: Include stringpool.h.
6781 Include stor-layout.h.
6782 * combine.c: Include stor-layout.h.
6783 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6784 Include stringpool.h.
6786 * config/aarch64/aarch64.c: Include stringpool.h.
6787 Include stor-layout.h.
6790 * config/alpha/alpha.c: Include stor-layout.h.
6793 * config/arc/arc.c: Include varasm.h.
6794 Include stor-layout.h.
6795 Include stringpool.h.
6797 * config/arm/arm.c: Include stringpool.h.
6798 Include stor-layout.h.
6801 * config/avr/avr-c.c: Include stor-layout.h.
6802 * config/avr/avr-log.c: Include print-tree.h.
6803 * config/avr/avr.c: Include print-tree.h.
6805 Include stor-layout.h.
6806 Include stringpool.h.
6807 * config/bfin/bfin.c: Include varasm.h.
6809 * config/c6x/c6x.c: Include stor-layout.h.
6812 Include stringpool.h.
6813 * config/cr16/cr16.c: Include stor-layout.h.
6815 * config/cris/cris.c: Include varasm.h.
6816 Include stor-layout.h.
6819 * config/darwin.c: Include stringpool.h.
6821 Include stor-layout.h.
6822 * config/epiphany/epiphany.c: Include stor-layout.h.
6825 Include stringpool.h.
6826 * config/fr30/fr30.c: Include stor-layout.h.
6828 * config/frv/frv.c: Include varasm.h.
6829 Include stor-layout.h.
6830 Include stringpool.h.
6831 * config/h8300/h8300.c: Include stor-layout.h.
6834 Include stringpool.h.
6835 * config/i386/i386.c: Include stringpool.h.
6838 Include stor-layout.h.
6840 * config/i386/winnt-cxx.c: Include stringpool.h.
6842 * config/i386/winnt.c: Include stringpool.h.
6844 * config/ia64/ia64-c.c: Include stringpool.h.
6845 * config/ia64/ia64.c: Include stringpool.h.
6846 Include stor-layout.h.
6849 * config/iq2000/iq2000.c: Include stor-layout.h.
6852 * config/lm32/lm32.c: Include calls.h.
6853 * config/m32c/m32c.c: Include stor-layout.h.
6856 * config/m32r/m32r.c: Include stor-layout.h.
6858 Include stringpool.h.
6860 * config/m68k/m68k.c: Include calls.h.
6861 Include stor-layout.h.
6863 * config/mcore/mcore.c: Include stor-layout.h.
6865 Include stringpool.h.
6867 * config/mep/mep.c: Include varasm.h.
6869 Include stringpool.h.
6870 Include stor-layout.h.
6871 * config/microblaze/microblaze.c: Include varasm.h.
6872 Include stor-layout.h.
6874 * config/mips/mips.c: Include varasm.h.
6875 Include stringpool.h.
6876 Include stor-layout.h.
6878 * config/mmix/mmix.c: Include varasm.h.
6879 Include stor-layout.h.
6881 * config/mn10300/mn10300.c: Include stor-layout.h.
6884 * config/moxie/moxie.c: Include stor-layout.h.
6887 * config/msp430/msp430.c: Include stor-layout.h.
6889 * config/nds32/nds32.c: Include stor-layout.h.
6892 * config/pa/pa.c: Include stor-layout.h.
6893 Include stringpool.h.
6896 * config/pdp11/pdp11.c: Include stor-layout.h.
6899 * config/picochip/picochip.c: Include calls.h.
6900 Include stor-layout.h.
6901 Include stringpool.h.
6903 * config/rl78/rl78.c: Include varasm.h.
6904 Include stor-layout.h.
6906 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6907 Include stringpool.h.
6908 * config/rs6000/rs6000.c: Include stringpool.h.
6909 Include stor-layout.h.
6911 Include print-tree.h.
6913 * config/rx/rx.c: Include varasm.h.
6914 Include stor-layout.h.
6916 * config/s390/s390.c: Include print-tree.h.
6917 Include stringpool.h.
6918 Include stor-layout.h.
6921 * config/score/score.c: Include stringpool.h.
6924 Include stor-layout.h.
6925 * config/sh/sh-c.c: Include stringpool.h.
6926 Include attribs.h.h.
6927 * config/sh/sh.c: Include stringpool.h.
6928 Include stor-layout.h.
6931 * config/sol2-c.c: Include stringpool.h.
6933 * config/sol2-cxx.c: Include stringpool.h.
6934 * config/sol2.c: Include stringpool.h.
6936 * config/sparc/sparc.c: Include stringpool.h.
6937 Include stor-layout.h.
6940 * config/spu/spu-c.c: Include stringpool.h.
6941 * config/spu/spu.c: Include stringpool.h.
6942 Include stor-layout.h.
6945 * config/stormy16/stormy16.c: Include stringpool.h.
6946 Include stor-layout.h.
6949 * config/tilegx/tilegx.c: Include stringpool.h.
6950 Include stor-layout.h.
6953 * config/tilepro/tilepro.c: Include stringpool.h.
6954 Include stor-layout.h.
6957 * config/v850/v850-c.c: Include stringpool.h.
6959 * config/v850/v850.c: Include stringpool.h.
6960 Include stor-layout.h.
6963 * config/vax/vax.c: Include calls.h.
6965 * config/vms/vms.c: Include stringpool.h.
6966 * config/vxworks.c: Include stringpool.h.
6967 * config/xtensa/xtensa.c: Include stringpool.h.
6968 Include stor-layout.h.
6971 * convert.c: Include stor-layout.h.
6972 * coverage.c: Include stringpool.h.
6973 Include stor-layout.h.
6974 * dbxout.c: Include varasm.h.
6975 Include stor-layout.h.
6976 * dojump.c: Include stor-layout.h.
6977 * dse.c: Include stor-layout.h.
6978 * dwarf2asm.c: Include stringpool.h.
6980 * dwarf2cfi.c: Include stor-layout.h.
6981 * dwarf2out.c: Include rtl.h.
6982 Include stringpool.h.
6983 Include stor-layout.h.
6987 Move inclusion of rtl.h earlier in the file.
6988 * emit-rtl.c: Include varasm.h.
6989 * except.c: Include stringpool.h.
6990 Include stor-layout.h.
6991 * explow.c: Include stor-layout.h.
6992 * expmed.c: Include stor-layout.h.
6993 * expr.c: Include stringpool.h.
6994 Include stor-layout.h.
6997 * final.c: Include varasm.h.
6998 * fold-const.c: Include stor-layout.h.
7000 Include tree-iterator.h.
7001 * function.c: Include stor-layout.h.
7003 Include stringpool.h.
7004 * genattrtab.c (write_header): Emit includes for varasm.h,
7005 stor-layout.h and calls.h.
7006 * genautomata.c (main): Likewise.
7007 * genemit.c: Likewise.
7008 * genopinit.c: Likewise.
7009 * genoutput.c (output_prologue): Likewise.
7010 * genpeep.c: Likewise.
7011 * genpreds.c (write_insn_preds_c): Likewise.
7012 * gengtype.c (open_base_files): Add stringpool.h.
7013 * gimple-expr.c: Include stringpool.h.
7014 Include stor-layout.h.
7015 * gimple-fold.c: Include stringpool.h.
7018 Include stor-layout.h.
7019 * gimple-low.c: Include tree-nested.h.
7021 * gimple-pretty-print.c: Include stringpool.h.
7022 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7024 * gimple-walk.c: Include stmt.h.
7025 * gimple.c: Include calls.h.
7027 Include stor-layout.h.
7028 * gimplify.c: Include stringpool.h.
7031 Include stor-layout.h.
7033 Include print-tree.h.
7035 * gimplify-me.c: Include stmt.h
7036 Include stor-layout.h
7037 * internal-fn.c: Include stor-layout.h.
7038 * ipa-devirt.c: Include print-tree.h.
7040 * ipa-inline-analysis.c: Include stor-layout.h.
7041 Include stringpool.h.
7042 Include print-tree.h.
7043 * ipa-inline.c: Include trans-mem.h.
7045 * ipa-prop.c: Include expr.h.
7046 Include stor-layout.h.
7047 Include print-tree.h.
7048 * ipa-pure-const.c: Include print-tree.h.
7050 * ipa-reference.c: Include calls.h.
7051 * ipa-split.c: Include stringpool.h.
7054 * ipa.c: Include calls.h.
7055 Include stringpool.h.
7056 * langhooks.c: Include stringpool.h.
7058 * lto-cgraph.c: Include stringpool.h.
7059 * lto-streamer-in.c: Include stringpool.h.
7060 * lto-streamer-out.c: Include stor-layout.h.
7061 Include stringpool.h.
7062 * omp-low.c: Include stringpool.h.
7063 Include stor-layout.h.
7065 * optabs.c: Include stor-layout.h.
7066 Include stringpool.h.
7068 * passes.c: Include varasm.h.
7069 * predict.c: Include calls.h.
7070 * print-rtl.c: Include print-tree.h.
7071 * print-tree.c: Include varasm.h.
7072 Include print-rtl.h.
7073 Include stor-layout.h.
7074 * realmpfr.c: Include stor-layout.h.
7075 * reg-stack.c: Include varasm.h.
7076 * sdbout.c: Include varasm.h.
7077 Include stor-layout.h.
7078 * simplify-rtx.c: Include varasm.h.
7079 * stmt.c: Include varasm.h.
7080 Include stor-layout.h.
7081 * stor-layout.c: Include stor-layout.h.
7082 Include stringpool.h.
7084 Include print-tree.h.
7085 * symtab.c: Include rtl.h.
7086 Include print-tree.h.
7090 * targhooks.c: Include stor-layout.h.
7092 * toplev.c: Include varasm.h.
7093 Include tree-inline.h.
7094 * trans-mem.c: Include calls.h.
7098 * tree-affine.c: Include expr.h.
7099 * tree-browser.c: Include print-tree.h.
7100 * tree-call-cdce.c: Include stor-layout.h.
7101 * tree-cfg.c: Include trans-mem.h.
7102 Include stor-layout.h.
7103 Include print-tree.h.
7104 * tree-complex.c: Include stor-layout.h.
7105 * tree-data-ref.c: Include expr.h.
7106 * tree-dfa.c: Include stor-layout.h.
7107 * tree-eh.c: Include expr.h.
7109 * tree-emutls.c: Include stor-layout.h.
7111 * tree-if-conv.c: Include stor-layout.h.
7112 * tree-inline.c: Include stor-layout.h.
7114 * tree-loop-distribution.c: Include stor-layout.h.
7115 * tree-nested.c: Include stringpool.h.
7116 Include stor-layout.h.
7117 * tree-object-size.c: Include tree-object-size.h.
7118 * tree-outof-ssa.c: Include stor-layout.h.
7119 * tree-parloops.c: Include stor-layout.h.
7120 Include tree-nested.h.
7121 * tree-pretty-print.c: Include stor-layout.h.
7123 * tree-profile.c: Include varasm.h.
7124 Include tree-nested.h.
7125 * tree-scalar-evolution.c: Include expr.h.
7126 * tree-sra.c: Include stor-layout.h.
7127 * tree-ssa-address.c: Include stor-layout.h.
7128 * tree-ssa-ccp.c: Include stor-layout.h.
7129 * tree-ssa-dce.c: Include calls.h.
7130 * tree-ssa-dom.c: Include stor-layout.h.
7131 * tree-ssa-forwprop.c: Include stor-layout.h.
7132 * tree-ssa-ifcombine.c: Include stor-layout.h.
7133 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7134 * tree-ssa-loop-niter.c: Include calls.h.
7136 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7137 * tree-ssa-math-opts.c: Include stor-layout.h.
7138 * tree-ssa-operands.c: Include stmt.h.
7139 Include print-tree.h.
7140 * tree-ssa-phiopt.c: Include stor-layout.h.
7141 * tree-ssa-reassoc.c: Include stor-layout.h.
7142 * tree-ssa-sccvn.c: Include stor-layout.h.
7143 * tree-ssa-sink.c: Include stor-layout.h.
7144 * tree-ssa-strlen.c: Include stor-layout.h.
7145 * tree-ssa-structalias.c: Include stor-layout.h.
7147 * tree-ssa-tail-merge.c: Include stor-layout.h.
7148 Include trans-mem.h.
7149 * tree-ssa-uncprop.c: Include stor-layout.h.
7150 * tree-ssa.c: Include stor-layout.h.
7151 * tree-ssanames.c: Include stor-layout.h.
7152 * tree-streamer-in.c: Include stringpool.h.
7153 * tree-streamer-out.c: Include stor-layout.h.
7154 * tree-switch-conversion.c: Include varasm.h.
7155 Include stor-layout.h.
7156 * tree-tailcall.c: Include stor-layout.h.
7157 * tree-vect-data-refs.c: Include stor-layout.h.
7158 * tree-vect-generic.c: Include stor-layout.h.
7159 * tree-vect-loop.c: Include stor-layout.h.
7160 * tree-vect-patterns.c: Include stor-layout.h.
7161 * tree-vect-slp.c: Include stor-layout.h.
7162 * tree-vect-stmts.c: Include stor-layout.h.
7163 * tree-vectorizer.c: Include stor-layout.h.
7164 * tree-vrp.c: Include stor-layout.h.
7166 * tree.c: Include stor-layout.h.
7170 * tsan.c: Include expr.h.
7171 * ubsan.c: Include stor-layout.h.
7172 Include stringpool.h.
7173 * value-prof.c: Include tree-nested.h.
7175 * var-tracking.c: Include varasm.h.
7176 Include stor-layout.h.
7177 * varasm.c: Include stor-layout.h.
7178 Include stringpool.h.
7179 Include gcc-symtab.h.
7181 * varpool.c: Include varasm.h.
7182 * vmsdbgout.c: Include varasm.h.
7183 * xcoffout.c: Include varasm.h.
7185 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7187 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7190 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7192 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7194 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7195 Alan Modra <amodra@gmail.com>
7197 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7198 (RS6000_SAVE_TOC): Remove.
7199 (RS6000_TOC_SAVE_SLOT): New macro.
7200 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7201 (rs6000_parm_start): Use it.
7202 (rs6000_function_arg_advance_1): Likewise.
7203 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7204 (rs6000_emit_epilogue): Likewise.
7205 (rs6000_call_aix): Likewise.
7206 (rs6000_output_function_prologue): Do not save/restore r11
7207 around calling _mcount for ABI_ELFv2.
7209 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7210 Alan Modra <amodra@gmail.com>
7212 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7214 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7215 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7216 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7217 (rs6000_function_parms_need_stack): Likewise.
7218 (rs6000_reg_parm_stack_space): Likewise.
7219 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7220 returning a register argument.
7222 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7223 Michael Gschwind <mkg@us.ibm.com>
7225 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7226 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7227 (FUNCTION_VALUE_REGNO_P): Use them.
7228 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7229 (rs6000_return_in_msb): New function.
7230 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7231 Handle aggregates of up to 16 bytes for ELFv2.
7232 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7234 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7235 Michael Gschwind <mkg@us.ibm.com>
7237 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7238 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7239 (rs6000_discover_homogeneous_aggregate): Likewise.
7240 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7241 (rs6000_function_arg_advance_1): Likewise.
7242 (rs6000_function_arg): Likewise.
7243 (rs6000_arg_partial_bytes): Likewise.
7244 (rs6000_psave_function_arg): Handle BLKmode arguments.
7246 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7247 Michael Gschwind <mkg@us.ibm.com>
7249 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7250 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7251 (rs6000_discover_homogeneous_aggregate): Likewise.
7252 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7253 (rs6000_function_arg_advance_1): Likewise.
7254 (rs6000_function_arg): Likewise.
7255 (rs6000_arg_partial_bytes): Likewise.
7256 (rs6000_psave_function_arg): Handle BLKmode arguments.
7258 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7260 * config/rs6000/rs6000.c (machine_function): New member
7262 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7263 (rs6000_output_mi_thunk): Set r2_setup_needed.
7264 (rs6000_output_function_prologue): Output global entry point
7265 prologue and local entry point marker if needed for ABI_ELFv2.
7266 Output -mprofile-kernel code here.
7267 (output_function_profiler): Do not output -mprofile-kernel
7268 code here; moved to rs6000_output_function_prologue.
7269 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7271 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7272 (rs6000_output_function_entry): Likewise.
7273 (rs6000_assemble_integer): Likewise.
7274 (rs6000_elf_encode_section_info): Likewise.
7275 (rs6000_elf_declare_function_name): Do not create dot symbols
7276 or .opd section for ABI_ELFv2.
7278 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7279 (rs6000_trampoline_init): Likewise.
7280 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7282 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7283 for function descriptors in ABI_ELFv2.
7285 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7286 on ABI_AIX only, not ABI_ELFv2.
7287 ("*call_value_indirect_aix<mode>"): Likewise.
7288 ("*call_indirect_elfv2<mode>"): New pattern.
7289 ("*call_value_indirect_elfv2<mode>"): Likewise.
7291 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7292 check for function descriptors in ABI_ELFv2.
7293 ("current_file_function_operand"): Likewise.
7295 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7297 (FUNC_NAME): Define ELFv2 variant.
7298 (JUMP_TARGET): Likewise.
7299 (FUNC_START): Likewise.
7300 (HIDDEN_FUNC): Likewise.
7301 (FUNC_END): Likeiwse.
7303 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7305 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7306 and --with-abi=elfv2.
7307 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7308 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7309 (mabi=elfv2): Likewise.
7310 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7311 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7313 (ELFv2_ABI_CHECK): New macro.
7314 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7315 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7316 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7317 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7318 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7320 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7321 (debug_stack_info): Likewise.
7322 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7323 (rs6000_legitimize_tls_address): Likewise.
7324 (rs6000_conditional_register_usage): Likewise.
7325 (rs6000_emit_move): Likewise.
7326 (init_cumulative_args): Likewise.
7327 (rs6000_function_arg_advance_1): Likewise.
7328 (rs6000_function_arg): Likewise.
7329 (rs6000_arg_partial_bytes): Likewise.
7330 (rs6000_output_function_entry): Likewise.
7331 (rs6000_assemble_integer): Likewise.
7332 (rs6000_savres_strategy): Likewise.
7333 (rs6000_stack_info): Likewise.
7334 (rs6000_function_ok_for_sibcall): Likewise.
7335 (rs6000_emit_load_toc_table): Likewise.
7336 (rs6000_savres_routine_name): Likewise.
7337 (ptr_regno_for_savres): Likewise.
7338 (rs6000_emit_prologue): Likewise.
7339 (rs6000_emit_epilogue): Likewise.
7340 (rs6000_output_function_epilogue): Likewise.
7341 (output_profile_hook): Likewise.
7342 (output_function_profiler): Likewise.
7343 (rs6000_trampoline_size): Likewise.
7344 (rs6000_trampoline_init): Likewise.
7345 (rs6000_elf_output_toc_section_asm_op): Likewise.
7346 (rs6000_elf_encode_section_info): Likewise.
7347 (rs6000_elf_reloc_rw_mask): Likewise.
7348 (rs6000_elf_declare_function_name): Likewise.
7349 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7350 except that rs6000_compat_align_parm is always assumed false.
7351 (rs6000_gimplify_va_arg): Likewise.
7352 (rs6000_call_aix): Update comment.
7353 (rs6000_sibcall_aix): Likewise.
7354 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7355 Treat ABI_ELFv2 the same as ABI_AIX.
7356 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7357 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7358 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7359 ("load_toc_aix_si"): Likewise.
7360 ("load_toc_aix_di"): Likewise.
7362 ("call_value"): Likewise.
7363 ("*call_local_aix<mode>"): Likewise.
7364 ("*call_value_local_aix<mode>"): Likewise.
7365 ("*call_nonlocal_aix<mode>"): Likewise.
7366 ("*call_value_nonlocal_aix<mode>"): Likewise.
7367 ("*call_indirect_aix<mode>"): Likewise.
7368 ("*call_value_indirect_aix<mode>"): Likewise.
7369 ("sibcall"): Likewise.
7370 ("sibcall_value"): Likewise.
7371 ("*sibcall_aix<mode>"): Likewise.
7372 ("*sibcall_value_aix<mode>"): Likewise.
7373 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7374 ("current_file_function_operand"): Likewise.
7376 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7378 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7379 by making use of the fact that for vector / floating point arguments
7380 passed both in VRs/FPRs and in the fixed parameter area, the partial
7381 bytes mechanism is in fact not used.
7383 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7385 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7386 (rs6000_finish_function_arg): Likewise.
7387 (rs6000_function_arg): Use rs6000_psave_function_arg and
7388 rs6000_finish_function_arg to handle both vector and floating
7389 point arguments that are also passed in GPRs / the stack.
7391 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7393 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7394 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7395 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7396 (rs6000_function_arg_advance_1):Likewise.
7397 (rs6000_darwin64_record_arg_recurse): Likewise.
7398 (rs6000_function_arg): Likewise.
7399 (rs6000_arg_partial_bytes): Likewise.
7401 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7404 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7405 (rs6000_savres_strategy): Likewise.
7406 (rs6000_return_addr): Likewise.
7407 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7408 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7409 (rs6000_emit_prologue): Likewise.
7410 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7411 (rs6000_elf_declare_function_name): Remove duplicated test.
7412 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7413 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7414 ("load_toc_v4_PIC_1_normal"): Likewise.
7415 ("load_toc_v4_PIC_1_476"): Likewise.
7416 ("load_toc_v4_PIC_1b"): Likewise.
7417 ("load_toc_v4_PIC_1b_normal"): Likewise.
7418 ("load_toc_v4_PIC_1b_476"): Likewise.
7419 ("load_toc_v4_PIC_2"): Likewise.
7420 ("load_toc_v4_PIC_3b"): Likewise.
7421 ("load_toc_v4_PIC_3c"): Likewise.
7422 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7423 (RS6000_SAVE_AREA): Likewise.
7424 (FP_ARG_MAX_REG): Likewise.
7425 (RETURN_ADDRESS_OFFSET): Likewise.
7426 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7428 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7429 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7431 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7433 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7434 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7435 Create call insn directly instead of via various gen_... routines.
7436 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7437 (rs6000_sibcall_aix): New function.
7438 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7439 (TOC_SAVE_OFFSET_64BIT): Likewise.
7440 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7441 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7442 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7443 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7444 ("call" expander): Call rs6000_call_aix.
7445 ("call_value" expander): Likewise.
7446 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7447 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7448 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7449 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7450 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7451 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7452 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7453 ("*call_nonlocal_aix<mode>"): ... this pattern.
7454 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7455 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7456 ("*call_local_aix<mode>"): New insn pattern.
7457 ("*call_value_local_aix<mode>"): Likewise.
7458 ("sibcall" expander): Call rs6000_sibcall_aix.
7459 ("sibcall_value" expander): Likewise. Move earlier in file.
7460 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7461 ("*sibcall_aix<mode>"): ... this pattern.
7462 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7463 ("*sibcall_value_aix<mode>"): ... this pattern.
7464 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7465 (rs6000_call_aix): Add prototype.
7466 (rs6000_sibcall_aix): Likewise.
7468 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7471 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7472 isn't confused by the artificial decl.
7474 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7476 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7477 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7478 Instead, add USEs of all modified call-saved CR fields to the
7479 insn storing the result to the stack slot, and provide an
7480 appropriate REG_FRAME_RELATED_EXPR for that insn.
7481 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7482 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7484 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7485 Alan Modra <amodra@gmail.com>
7487 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7488 of re-evaluating REG_PARM_STACK_SPACE target macro.
7489 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7490 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7491 (assign_parm_find_entry_rtl): Update call.
7492 * calls.c (initialize_argument_information): Update call.
7493 (emit_library_call_value_1): Likewise.
7494 * expr.h (locate_and_pad_parm): Update prototype.
7496 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7498 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7501 2013-11-14 DJ Delorie <dj@redhat.com>
7503 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7506 2013-11-14 Jeff Law <law@redhat.com>
7508 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7509 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7511 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7513 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7516 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7518 * config/aarch64/aarch64-cores.def (example-1): Remove.
7519 (example-2): Likewise.
7520 * config/aarch64/aarch64-tune.md: Regenerate.
7521 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7522 (generic_sched): Remove "large", "small".
7523 * config/aarch64/large.md: Delete.
7524 * config/aarch64/small.md: Delete.
7526 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7528 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7529 * config/aarch64/aarch64-tune.md: Regenerate.
7530 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7531 (generic_sched): "no" if we are tuning for cortexa15.
7532 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7535 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7537 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7538 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7539 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7540 (all_cores): Use cortexa53 when tuning for "generic".
7541 (aarch64_override_options): Fix comment.
7542 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7543 * config/aarch64/aarch64-generic.md: Delete.
7545 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7547 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7549 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7551 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7552 (generic_rtx_cost_table): Remove.
7553 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7554 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7556 (cpu_rtx_cost_table): Remove.
7558 2013-11-14 Julian Brown <julian@codesourcery.com>
7559 Joey Ye <joey.ye@arm.com>
7561 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7562 (arm_v7m_tune): New.
7563 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7564 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7565 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7566 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7568 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7571 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7574 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7575 Uros Bizjak <ubizjak@gmail.com>
7578 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7579 operands[2] satisfies_constraint_Z that might have bit 31 set.
7581 2013-11-13 Jeff Law <law@redhat.com>
7583 PR tree-optimization/59102
7584 * gimple-ssa-isolate-paths.c
7585 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7586 gimple assignment before looking at gimple_assign_lhs.
7588 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7590 * ira.c: Add comment about threads at the top of file.
7592 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7594 * ira-color.c (coalesce_allocnos): Don't allocate and free
7597 2013-11-14 Tom de Vries <tom@codesourcery.com>
7599 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7600 equality for GIMPLE_ASSIGN.
7602 2013-11-14 Tom de Vries <tom@codesourcery.com>
7604 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7606 (gimple_equal_p): ... here.
7608 2013-11-14 Tom de Vries <tom@codesourcery.com>
7610 * trans-mem.c (is_tm_ending): New function.
7611 * gimple.h (is_tm_ending): Declare.
7612 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7614 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7616 2013-11-14 Tom de Vries <tom@codesourcery.com>
7618 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7620 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7622 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7623 (struct walk_stmt_info): Relocate here from gimple.h.
7624 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7625 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7626 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7627 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7628 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7629 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7630 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7631 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7632 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7633 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7634 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7635 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7636 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7637 (struct walk_stmt_info): Move to gimple-walk.h.
7638 (gimple_seq_set_location): Move to gimple.c
7639 * gimple-walk.c: New File.
7640 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7641 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7642 walk_stmt_load_store_ops): Relocate here from gimple.c.
7643 * gimple-iterator.c: Include gimple-iterator.h.
7644 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7645 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7646 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7648 (gimple_seq_set_location): Relocate from gimple.h.
7649 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7650 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7651 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7652 * Makefile.in (OBJS): Add gimple-walk.o
7653 * asan.c: Update Include list as required for gimple-iterator.h and
7655 * cfgexpand.c: Likewise.
7656 * cfgloop.c: Likewise.
7657 * cfgloopmanip.c: Likewise.
7658 * cgraph.c: Likewise.
7659 * cgraphbuild.c: Likewise.
7660 * cgraphunit.c: Likewise.
7661 * gimple-fold.c: Likewise.
7662 * gimple-low.c: Likewise.
7663 * gimple-pretty-print.c: Likewise.
7664 * gimple-ssa-isolate-paths.c: Likewise.
7665 * gimple-ssa-strength-reduction.c: Likewise.
7666 * gimple-streamer-in.c: Likewise.
7667 * gimple-streamer-out.c: Likewise.
7668 * gimplify.c: Likewise.
7669 * graphite-blocking.c: Likewise.
7670 * graphite-clast-to-gimple.c: Likewise.
7671 * graphite-dependences.c: Likewise.
7672 * graphite-interchange.c: Likewise.
7673 * graphite-optimize-isl.c: Likewise.
7674 * graphite-poly.c: Likewise.
7675 * graphite-scop-detection.c: Likewise.
7676 * graphite-sese-to-poly.c: Likewise.
7677 * graphite.c: Likewise.
7678 * ipa-inline-analysis.c: Likewise.
7679 * ipa-profile.c: Likewise.
7680 * ipa-prop.c: Likewise.
7681 * ipa-pure-const.c: Likewise.
7682 * ipa-split.c: Likewise.
7683 * lto-streamer-in.c: Likewise.
7684 * lto-streamer-out.c: Likewise.
7685 * omp-low.c: Likewise.
7686 * predict.c: Likewise.
7687 * profile.c: Likewise.
7689 * tracer.c: Likewise.
7690 * trans-mem.c: Likewise.
7691 * tree-call-cdce.c: Likewise.
7692 * tree-cfg.c: Likewise.
7693 * tree-cfgcleanup.c: Likewise.
7694 * tree-complex.c: Likewise.
7695 * tree-data-ref.c: Likewise.
7696 * tree-dfa.c: Likewise.
7697 * tree-eh.c: Likewise.
7698 * tree-emutls.c: Likewise.
7699 * tree-if-conv.c: Likewise.
7700 * tree-inline.c: Likewise.
7701 * tree-into-ssa.c: Likewise.
7702 * tree-loop-distribution.c: Likewise.
7703 * tree-nested.c: Likewise.
7704 * tree-nrv.c: Likewise.
7705 * tree-object-size.c: Likewise.
7706 * tree-outof-ssa.c: Likewise.
7707 * tree-parloops.c: Likewise.
7708 * tree-predcom.c: Likewise.
7709 * tree-profile.c: Likewise.
7710 * tree-scalar-evolution.c: Likewise.
7711 * tree-sra.c: Likewise.
7712 * tree-ssa-ccp.c: Likewise.
7713 * tree-ssa-coalesce.c: Likewise.
7714 * tree-ssa-copy.c: Likewise.
7715 * tree-ssa-copyrename.c: Likewise.
7716 * tree-ssa-dce.c: Likewise.
7717 * tree-ssa-dom.c: Likewise.
7718 * tree-ssa-dse.c: Likewise.
7719 * tree-ssa-forwprop.c: Likewise.
7720 * tree-ssa-ifcombine.c: Likewise.
7721 * tree-ssa-live.c: Likewise.
7722 * tree-ssa-loop-ch.c: Likewise.
7723 * tree-ssa-loop-im.c: Likewise.
7724 * tree-ssa-loop-ivcanon.c: Likewise.
7725 * tree-ssa-loop-ivopts.c: Likewise.
7726 * tree-ssa-loop-manip.c: Likewise.
7727 * tree-ssa-loop-niter.c: Likewise.
7728 * tree-ssa-loop-prefetch.c: Likewise.
7729 * tree-ssa-loop.c: Likewise.
7730 * tree-ssa-math-opts.c: Likewise.
7731 * tree-ssa-phiopt.c: Likewise.
7732 * tree-ssa-phiprop.c: Likewise.
7733 * tree-ssa-pre.c: Likewise.
7734 * tree-ssa-propagate.c: Likewise.
7735 * tree-ssa-reassoc.c: Likewise.
7736 * tree-ssa-sink.c: Likewise.
7737 * tree-ssa-strlen.c: Likewise.
7738 * tree-ssa-structalias.c: Likewise.
7739 * tree-ssa-tail-merge.c: Likewise.
7740 * tree-ssa-ter.c: Likewise.
7741 * tree-ssa-threadedge.c: Likewise.
7742 * tree-ssa-threadupdate.c: Likewise.
7743 * tree-ssa-uncprop.c: Likewise.
7744 * tree-ssa-uninit.c: Likewise.
7745 * tree-ssa.c: Likewise.
7746 * tree-stdarg.c: Likewise.
7747 * tree-switch-conversion.c: Likewise.
7748 * tree-tailcall.c: Likewise.
7749 * tree-vect-data-refs.c: Likewise.
7750 * tree-vect-generic.c: Likewise.
7751 * tree-vect-loop-manip.c: Likewise.
7752 * tree-vect-loop.c: Likewise.
7753 * tree-vect-patterns.c: Likewise.
7754 * tree-vect-slp.c: Likewise.
7755 * tree-vect-stmts.c: Likewise.
7756 * tree-vectorizer.c: Likewise.
7757 * tree-vrp.c: Likewise.
7760 * value-prof.c: Likewise.
7761 * vtable-verify.c: Likewise.
7763 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7765 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7768 2013-11-13 Jeff Law <law@redhat.com>
7770 * PR middle-end/59119
7771 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7772 function, extracted from gimple_ssa_isolate_erroneous_paths.
7773 (find_explicit_erroneous_behaviour): Similarly.
7774 (insert_trap_and_remove_trailing_statements): Remove statements
7777 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7779 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7780 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7781 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7782 looking at INSN_CODE.
7783 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7784 active_insn_p object, respect basic block boundaries.
7785 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7786 follows immediately after the jump table data label.
7787 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7788 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7789 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7791 2013-11-13 Teresa Johnson <tejohnson@google.com>
7794 * predict.c (drop_profile): Error is currently too strict.
7795 (handle_missing_profiles): Pass call_count to drop_profile.
7797 2013-11-13 Teresa Johnson <tejohnson@google.com>
7800 * ipa-inline.c (edge_badness): Fix overflow.
7802 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7804 PR rtl-optimization/59036
7805 * ira-color.c (struct allocno_color_data): Add new members
7806 first_thread_allocno, next_thread_allocno, thread_freq.
7807 (sorted_copies): New static var.
7808 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7809 (allocno_thread_conflict_p, merge_threads)
7810 (form_threads_from_copies, form_threads_from_bucket)
7811 (form_threads_from_colorable_allocno, init_allocno_threads): New
7813 (bucket_allocno_compare_func): Add comparison by thread frequency
7815 (add_allocno_to_ordered_bucket): Rename to
7816 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7817 (push_only_colorable): Call form_threads_from_bucket.
7818 (color_pass): Call init_allocno_threads. Use
7819 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7820 for nuillify allocno color data.
7821 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7822 (coalesce_allocnos): Use static sorted copies.
7824 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7826 * passes.c (execute_todo): Don't call do_per_function if
7828 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7829 execute_function_dump if dump_file is NULL.
7831 2013-11-13 Martin Jambor <mjambor@suse.cz>
7833 * cgraph.c (cgraph_get_create_node): Do what
7834 cgraph_get_create_real_symbol_node used to do.
7835 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7836 call cgraph_get_create_node.
7837 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7838 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7839 cgraph_get_create_node. Assert we get a node.
7841 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7843 * config/aarch64/aarch64-simd.md (vec_extract): New.
7845 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7847 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7850 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7852 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7853 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7854 or if optimization is enabled.
7855 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7856 require that all the names based on a PARM_DECL or a RESULT_DECL that
7857 isn't ignored for debug info be coalesced.
7859 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7861 * config/c6x/c6x.c: Include "gimple-expr.h".
7863 2013-11-13 Richard Biener <rguenther@suse.de>
7865 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7866 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7867 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7868 dealing with type mismatches inside component reference chains.
7870 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7872 PR tree-optimization/59077
7873 * ipa-pure-const.c (better_state): Update *state.
7875 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7877 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7878 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7879 Update offset calculations.
7881 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7884 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7885 for fields. Do not add the attribute if the size is negative.
7887 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7889 * config/arm/arm.c: Include aarch-cost-tables.h.
7890 (generic_extra_costs): Move from here...
7891 * config/arm/aarch-cost-tables.h: ... To here. New file.
7893 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7894 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7895 Sergey Lega <sergey.s.lega@intel.com>
7896 Anna Tikhonova <anna.tikhonova@intel.com>
7897 Ilya Tocar <ilya.tocar@intel.com>
7898 Andrey Turetskiy <andrey.turetskiy@intel.com>
7899 Ilya Verbin <ilya.verbin@intel.com>
7900 Kirill Yukhin <kirill.yukhin@intel.com>
7901 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7903 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7904 * config/i386/predicate.md (const_0_to_4_operand): New.
7905 (const_0_to_5_operand): Ditto.
7906 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7907 (UNSPEC_COMPRESS_STORE): Ditto.
7908 (UNSPEC_EXPAND): Ditto.
7909 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7910 (define_mode_attr ssescalarsize): Ditto.
7911 (avx512f_load<mode>_mask): Ditto.
7912 (avx512f_store<mode>_mask): Ditto.
7913 (avx512f_storedqu<mode>_mask): Ditto.
7914 (avx512f_vmcmp<mode>3_mask): Ditto.
7915 (avx512f_fmadd_<mode>_mask): Ditto.
7916 (avx512f_fmadd_<mode>_mask3): Ditto.
7917 (avx512f_fmsub_<mode>_mask): Ditto.
7918 (avx512f_fmsub_<mode>_mask3): Ditto.
7919 (avx512f_fnmadd_<mode>_mask): Ditto.
7920 (avx512f_fnmadd_<mode>_mask3): Ditto.
7921 (avx512f_fnmsub_<mode>_mask): Ditto.
7922 (avx512f_fnmsub_<mode>_mask3): Ditto.
7923 (avx512f_fmaddsub_<mode>_mask): Ditto.
7924 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7925 (avx512f_fmsubadd_<mode>_mask): Ditto.
7926 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7927 (vec_unpacku_float_lo_v16si): Ditto.
7928 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7929 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7930 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7931 (vec_extract_lo_<mode>_maskm): Ditto.
7932 (vec_extract_hi_<mode>_maskm): Ditto.
7933 (avx512f_vternlog<mode>_mask): Ditto.
7934 (avx512f_shufps512_mask): Ditto.
7935 (avx512f_fixupimm<mode>_mask): Ditto.
7936 (avx512f_shufpd512_mask): Ditto.
7937 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7938 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7939 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7940 (ashr<mode>3<mask_name>): Ditto.
7941 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7942 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7943 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7944 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7945 (avx512f_pshufdv3_mask): Ditto.
7946 (avx512f_perm<mode>_mask): Ditto.
7947 (avx512f_vpermi2var<mode>3_mask): Ditto.
7948 (avx512f_vpermt2var<mode>3_mask): Ditto.
7949 (avx512f_compress<mode>_mask): Ditto.
7950 (avx512f_compressstore<mode>_mask): Ditto.
7951 (avx512f_expand<mode>_mask): Ditto.
7952 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7954 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7955 (<plusminus_insn><mode>3<mask_name>): Ditto.
7956 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7957 (mul<mode>3<mask_name>): Ditto.
7958 (*mul<mode>3<mask_name>): Ditto.
7959 (<sse>_div<mode>3<mask_name>): Ditto.
7960 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7961 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7962 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7963 (<code><mode>3<mask_name>/smaxmin): Ditto.
7964 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7965 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7966 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7967 (ufloatv16siv16sf2<mask_name>): Ditto.
7968 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7969 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7970 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7971 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7972 (ufloatv8siv8df<mask_name>): Ditto.
7973 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7974 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7975 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7976 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7977 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7978 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7979 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7980 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7981 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7982 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7983 (vec_extract_lo_<mode><mask_name>): Ditto.
7984 (vec_extract_hi_<mode><mask_name>): Ditto.
7985 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7986 (avx512f_movddup512<mask_name>): Ditto.
7987 (avx512f_unpcklpd512<mask_name>): Ditto.
7988 (*avx512f_unpcklpd512<mask_name>): Ditto.
7989 (*avx512f_vmscalef<mode>): Ditto.
7990 (avx512f_scalef<mode><mask_name>): Ditto.
7991 (avx512f_getexp<mode><mask_name>): Ditto.
7992 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7993 (avx512f_rndscale<mode><mask_name>): Ditto.
7994 (avx512f_shufps512_1<mask_name>): Ditto.
7995 (avx512f_shufpd512_1<mask_name>): Ditto.
7996 (<plusminus_insn><mode>3<mask_name>): Ditto.
7997 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7998 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7999 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8000 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8001 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8002 (mul<mode>3<mask_name>): Ditto.
8003 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8004 (<shift_insn><mode>3<mask_name>): Ditto.
8005 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8006 (avx512f_<rotate><mode><mask_name>): Ditto.
8007 (<code><mode>3<mask_name>/maxmin): Ditto.
8008 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8009 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8010 (*andnot<mode>3<mask_name>): Ditto.
8011 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8012 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8013 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8014 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8015 (vec_set_lo_<mode><mask_name>): Ditto.
8016 (vec_set_hi_<mode><mask_name>): Ditto.
8017 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8018 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8019 (avx512f_pshufd_1<mask_name>): Ditto.
8020 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8021 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8022 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8023 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8024 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8025 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8026 (avx512er_exp2<mode><mask_name>): Ditto.
8027 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8028 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8029 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8030 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8031 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8032 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8033 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8034 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8035 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8036 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8037 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8038 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8039 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8040 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8041 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8042 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8043 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8044 (avx512f_getmant<mode><mask_name>): Ditto.
8045 (clz<mode>2<mask_name>): Ditto.
8046 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8047 (*srcp14<mode>): Remove visibility.
8048 (*rsqrt14<mode>): Ditto.
8049 (*fma_fmsub_<mode>): Ditto.
8050 (*fma_fnmadd_<mode>): Ditto.
8051 (*avx512f_rndscale<mode>): Ditto.
8052 * config/i386/subst.md: New file.
8054 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8056 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8057 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8058 (atomic_load_explicit, atomic_exchange_explicit)
8059 (atomic_compare_exchange_strong_explicit)
8060 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8061 declare variable initialized with PTR argument.
8063 2013-11-12 Jeff Law <law@redhat.com>
8065 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8066 backedge_seen_p. Set, use and pass it to children appropriately.
8067 (thread_through_normal_block): Similarly.
8068 (thread_across_edge): Similarly.
8070 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8071 memory references as volatile.
8072 (insert_trap_and_remove_trailing_statements): Fix comment.
8074 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8077 * ira-costs.c (record_operand_costs): Check operands number for
8080 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8083 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8084 constraints that would allow DImode into the traditional Altivec
8085 registers, but cause undesirable code generation when loading 0 as
8087 (movdi_internal64): Likewise.
8088 (cmp<mode>_fpr): Do not use %x for CR register output.
8089 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8090 -mallow-upper-sf debug switches are used.
8092 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8094 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8095 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8096 Relocate prototypes from gimple.h.
8097 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8098 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8100 * gimple.h: Move some prototypes to gimplify.h.
8101 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8103 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8104 Relocate from gimpify.c.
8105 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8106 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8107 is_gimple_reg_rhs) Relocate from gimplify.c.
8108 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8109 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8110 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8111 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8112 is_gimple_reg_rhs): Move to gimple-expr.c.
8113 (should_carry_location_p): Move to gimple.c.
8114 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8116 (annotate_one_with_location, annotate_all_with_location_after,
8117 annotate_all_with_location): Move to gimple.c.
8118 (compare_case_labels, sort_case_labels,
8119 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8120 (rhs_predicate_for): Make static.
8121 (gimplify_assign): Relocate from gimple.c.
8122 * gimple.c (gimplify_assign): Move to gimplify.c.
8123 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8124 annotate_one_with_location, annotate_all_with_location_after,
8125 annotate_all_with_location, compare_case_labels, sort_case_labels,
8126 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8127 * tree.h (unshare_expr, unshare_expr_without_location,
8128 mark_addressable): Move prototypes to gimplify.h.
8129 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8131 * asan.c: Include gimplify.h rather than gimple.h.
8132 * cfgloopmanip.c: Likewise.
8133 * cgraphunit.c: Likewise.
8134 * cilk-common.c: Likewise.
8135 * dwarf2out.c: Dont include gimple.h.
8136 * fold-const.c: Include gimplify.h rather than gimple.h.
8137 * function.c: Likewise.
8138 * gimple-fold.c: Likewise.
8139 * gimple-ssa-strength-reduction.c: Likewise.
8140 * graphite-clast-to-gimple.c: Likewise.
8141 * graphite-sese-to-poly.c: Likewise.
8142 * ipa-prop.c: Likewise.
8143 * ipa-split.c: Likewise.
8145 * langhooks.c: Dont include gimple.h.
8146 * loop-init.c: Include gimplify.h rather than gimple.h.
8147 * omp-low.c: Likewise.
8149 * stor-layout.c: Likewise.
8150 * targhooks.c: Likewise.
8151 * trans-mem.c: Likewise.
8152 * tree-affine.c: Likewise.
8153 * tree-cfg.c: Likewise.
8154 * tree-cfgcleanup.c: Likewise.
8155 * tree-complex.c: Likewise.
8156 * tree-if-conv.c: Likewise.
8157 * tree-inline.c: Likewise.
8158 * tree-iterator.c: Likewise.
8159 * tree-loop-distribution.c: Likewise.
8160 * tree-nested.c: Likewise.
8161 * tree-parloops.c: Likewise.
8162 * tree-predcom.c: Likewise.
8163 * tree-profile.c: Likewise.
8164 * tree-scalar-evolution.c: Likewise.
8165 * tree-sra.c: Likewise.
8166 * tree-ssa-address.c: Likewise.
8167 * tree-ssa-ccp.c: Likewise.
8168 * tree-ssa-dce.c: Likewise.
8169 * tree-ssa-forwprop.c: Likewise.
8170 * tree-ssa-ifcombine.c: Likewise.
8171 * tree-ssa-loop-im.c: Likewise.
8172 * tree-ssa-loop-ivopts.c: Likewise.
8173 * tree-ssa-loop-manip.c: Likewise.
8174 * tree-ssa-loop-niter.c: Likewise.
8175 * tree-ssa-loop-prefetch.c: Likewise.
8176 * tree-ssa-loop-unswitch.c: Likewise.
8177 * tree-ssa-math-opts.c: Likewise.
8178 * tree-ssa-phiopt.c: Likewise.
8179 * tree-ssa-phiprop.c: Likewise.
8180 * tree-ssa-pre.c: Likewise.
8181 * tree-ssa-propagate.c: Likewise.
8182 * tree-ssa-reassoc.c: Likewise.
8183 * tree-ssa-sccvn.c: Likewise.
8184 * tree-ssa-strlen.c: Likewise.
8185 * tree-ssa.c: Likewise.
8186 * tree-switch-conversio: Likewise.n.c
8187 * tree-tailcall.c: Likewise.
8188 * tree-vect-data-refs.c: Likewise.
8189 * tree-vect-generic.c: Likewise.
8190 * tree-vect-loop-manip.c: Likewise.
8191 * tree-vect-loop.c: Likewise.
8192 * tree-vect-patterns.c: Likewise.
8193 * tree-vect-stmts.c: Likewise.
8195 * value-prof.c: Likewise.
8196 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8197 * config/alpha/alpha.c: Likewise.
8198 * config/darwin.c: Likewise.
8199 * config/i386/i386.c: Likewise.
8200 * config/ia64/ia64.c: Likewise.
8201 * config/mep/mep.c: Likewise.
8202 * config/mips/mips.c: Likewise.
8203 * config/rs6000/rs6000.c: Likewise.
8204 * config/s390/s390.c: Likewise.
8205 * config/sh/sh.c: Likewise.
8206 * config/sparc/sparc.c: Likewise.
8207 * config/spu/spu.c: Likewise.
8208 * config/stormy16/stormy16.c: Likewise.
8209 * config/tilegx/tilegx.c: Likewise.
8210 * config/tilepro/tilepro.c: Likewise.
8211 * config/xtensa/xtensa.c: Likewise.
8213 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8215 * tree.c (grow_tree_vec_stat): New function ...
8216 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8217 and macro front-end.
8219 2013-11-12 Marek Polacek <polacek@redhat.com>
8221 * final.c (update_alignments): Initialize label to NULL_RTX.
8223 2013-11-12 Jeff Law <law@redhat.com>
8225 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8226 (insert_trap_and_remove_trailing_statements): New argument OP which
8227 is the NULL pointer. Emit the trap after the load/store through
8228 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8229 when trivial to do so.
8230 (isolate_path): Corresponding changes.
8231 (gimple_ssa_isolate_erroneous_path): Likewise.
8233 2013-11-12 Teresa Johnson <tejohnson@google.com>
8234 Jan Hubicka <jh@suse.cz>
8236 * predict.c (drop_profile): New function.
8237 (handle_missing_profiles): Ditto.
8238 (counts_to_freqs): Don't overwrite estimated frequencies
8239 when function has no profile counts.
8240 * predict.h (handle_missing_profiles): Declare.
8241 * tree-inline.c (freqs_to_counts): New function.
8242 (copy_cfg_body): Invoke freqs_to_counts as needed.
8243 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8245 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8248 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8250 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8252 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8255 * config/i386/i386.c (ix86_option_override_internal): Check
8256 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8257 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8258 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8259 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8261 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8262 Clear m_COREI7_AVX and update comments.
8263 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8265 2013-11-12 Martin Jambor <mjambor@suse.cz>
8267 PR rtl-optimization/10474
8268 * ira.c (interesting_dest_for_shprep): New function.
8269 (split_live_ranges_for_shrink_wrap): Likewise.
8270 (find_moveable_pseudos): Move calculation of dominance info,
8271 df_analysios and the final anlyses to...
8272 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8274 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8276 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8277 Handle type conversion.
8279 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8280 Jan Hubicka <jh@suse.cz>
8282 * cgraph.c (dump_cgraph_node): Profile dump added.
8283 * cgraph.h (struct cgraph_node): New time profile variable added.
8284 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8285 * gcov-io.h (gcov_type): New profiler type introduced.
8286 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8287 (input_node): Time profiler is read from LTO stream.
8288 * predict.c (maybe_hot_count_p): Hot prediction changed.
8289 * profile.c (instrument_values): New case for time profiler added.
8290 (compute_value_histograms): Read of time profile.
8291 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8292 * tree-profile.c (init_ic_make_global_vars): Time profiler
8294 (gimple_init_edge_profiler): TP function instrumentation.
8295 (gimple_gen_time_profiler): New.
8296 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8298 (dump_histogram_value): TP type added to dumps.
8299 (visit_hist): More sensitive check that takes TP into account.
8300 (gimple_find_values_to_profile): TP instrumentation.
8301 * value-prof.h (hist_type): New histogram type added.
8302 (struct histogram_value_t): Pointer to struct function added.
8303 * libgcc/Makefile.in: New GCOV merge function for TP added.
8304 * libgcov.c: function_counter variable introduced.
8305 (_gcov_merge_time_profile): New.
8306 (_gcov_time_profiler): New.
8308 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8309 Jeff Law <law@redhat.com>
8311 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8312 ao_ref_init_from_ptr_and_size for builtins.
8314 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8315 H.J. Lu <hongjiu.lu@intel.com>
8318 * config/i386/x86-tune.def
8319 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8320 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8321 * config/i386/i386.h
8322 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8323 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8324 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8325 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8326 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8327 misaligned_prologue_used. Check that
8328 desired_aling <= epilogue_size_needed.
8330 2013-11-11 Cong Hou <congh@google.com>
8332 PR tree-optimization/59050
8333 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8335 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8338 * expmed.c (emit_store_flag): Fail for const-const comparison.
8340 2013-11-11 Tristan Gingold <gingold@adacore.com>
8341 Eric Botcazou <ebotcazou@adacore.com>
8343 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8344 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8345 * tree.def (CONSTRUCTOR): Likewise.
8346 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8347 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8348 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8350 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8352 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8355 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8357 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8360 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8362 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8364 2013-11-08 Jeff Law <law@redhat.com>
8366 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8367 threading paths first, then perform PHI node checks if applicable.
8369 2013-11-10 Karlson2k <k2k@narod.ru>
8370 Kai Tietz <ktietz@redhat.com>
8373 * configure.ac: Adding for exported symbols check
8374 and for rdynamic-check executable-extension.
8375 * configure: Regenerated.
8377 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8379 * mode-switching.c (optimize_mode_switching): Mark block as
8380 nontransparent, if last_mode at block exit is different from no_mode.
8382 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8384 * function.c (NAME__MAIN): Move to...
8385 * cfgexpand.c (NAME__MAIN): ...here.
8387 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8389 * target.def (can_use_doloop_p): New hook.
8390 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8391 * doc/tm.texi: Regenerate.
8392 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8393 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8394 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8395 * targhooks.h (can_use_doloop_if_innermost): Declare.
8396 * targhooks.c (can_use_doloop_if_innermost): New function.
8397 * target.h: Include double-int.h.
8398 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8399 Remove iteration count, maximum iteration count, loop depth and
8400 enter-at-top inputs from doloop_begin and doloop_end.
8401 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8403 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8404 (TARGET_CAN_USE_DOLOOP_P): Define.
8405 * config/arm/thumb2.md (doloop_end): Update for new interface.
8406 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8407 * config/bfin/bfin.md (doloop_end): Update for new interface.
8408 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8409 (TARGET_CAN_USE_DOLOOP_P): Define.
8410 * config/c6x/c6x.md (doloop_end): Update for new interface.
8411 * config/ia64/ia64.md (doloop_end): Update for new interface.
8412 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8413 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8415 * config/mep/mep.c (mep_emit_doloop): Likewise.
8416 (TARGET_CAN_USE_DOLOOP_P): Define.
8417 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8418 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8419 * config/s390/s390.md (doloop_end): Update for new interface.
8420 * config/sh/sh.md (doloop_end): Likewise.
8421 * config/spu/spu.md (doloop_end): Likewise.
8422 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8423 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8424 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8425 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8426 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8427 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8429 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8431 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8434 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8437 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8438 Joseph Myers <joseph@codesourcery.com>
8440 * ginclude/stdatomic.h: New file.
8441 * Makefile.in (USER_H): Add stdatomic.h.
8443 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8445 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8448 2013-11-08 Jeff Law <law@redhat.com>
8450 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8451 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8452 (ssa_redirect_edges, thread_block_1): Use it.
8453 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8454 (thread_through_all_blocks, register_jump_thread): Likewise.
8455 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8457 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8459 * config/arm/aarch-common.c
8460 (search_term): New typedef.
8461 (shift_rtx_costs): New array.
8462 (arm_rtx_shift_left_p): New.
8463 (arm_find_sub_rtx_with_search_term): Likewise.
8464 (arm_find_sub_rtx_with_code): Likewise.
8465 (arm_early_load_addr_dep): Add sanity checking.
8466 (arm_no_early_alu_shift_dep): Likewise.
8467 (arm_no_early_alu_shift_value_dep): Likewise.
8468 (arm_no_early_mul_dep): Likewise.
8469 (arm_no_early_store_addr_dep): Likewise.
8471 2013-11-08 Richard Biener <rguenther@suse.de>
8473 PR tree-optimization/59047
8474 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8476 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8478 * common.opt (fcheck-pointer-bounds): Move to ...
8479 * c-family/c.opt: ... here.
8480 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8481 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8482 * langhooks.h (lang_hooks): Remove chkp_supported field.
8483 * toplev.c (process_options): Remove chkp_supported check.
8485 2013-11-08 Richard Biener <rguenther@suse.de>
8487 PR tree-optimization/59038
8488 PR tree-optimization/58955
8489 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8490 previous change. Handle known dependences correctly.
8492 2013-11-08 Tom de Vries <tom@codesourcery.com>
8494 * config/rs6000/t-xilinx: Remove duplicate contents.
8496 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8497 Joseph Myers <joseph@codesourcery.com>
8499 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8500 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8501 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8502 (struct tree_base): Add atomic_flag field.
8503 * tree.h (TYPE_ATOMIC): New accessor macro.
8504 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8505 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8506 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8507 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8508 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8509 (find_atomic_core_type): New function.
8510 (build_qualified_type): Adjust alignment for qualified types.
8511 (build_atomic_base): New function
8512 (build_common_tree_nodes): Build atomicQI_type_node,
8513 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8515 * print-tree.c (print_node): Print atomic qualifier.
8516 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8517 * target.def (atomic_assign_expand_fenv): New hook.
8518 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8519 * doc/tm.texi: Regenerate.
8520 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8521 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8522 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8523 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8525 * config/i386/i386.c (enum ix86_builtins): Add
8526 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8527 IX86_BUILTIN_FNCLEX.
8528 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8529 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8530 (ix86_expand_builtin): Handle the new built-in functions.
8531 (ix86_atomic_assign_expand_fenv): New function.
8532 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8533 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8534 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8535 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8537 2013-11-07 Steve Ellcey <sellcey@mips.com>
8539 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8540 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8541 (MULTILIB_DIRNAMES): Add fp64 directory.
8542 (MULTILIB_EXCEPTIONS): Add new exclusions.
8544 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8546 * gimplify.c (gimple_regimplify_operands): Do not set
8548 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8549 (rewrite_close_phi_out_of_ssa): Same.
8550 (rewrite_phi_out_of_ssa): Same.
8551 (rewrite_degenerate_phi): Same.
8552 (handle_scalar_deps_crossing_scop_limits): Same.
8553 * tree-if-conv.c (predicate_scalar_phi): Same.
8554 * tree-parloops.c (create_loads_for_reductions): Same.
8555 (create_final_loads_for_reduction): Same.
8556 (create_loads_and_stores_for_name): Same.
8557 (transform_to_exit_first_loop): Same.
8558 (create_parallel_loop): Same.
8559 * tree-ssa-loop-im.c
8560 (move_computations_dom_walker::before_dom_children): Same.
8561 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8562 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8563 * tree-ssa-propagate.c (substitute_and_fold): Same.
8564 * tree-vect-loop.c (vect_finalize_reduction): Same.
8565 * tree-vect-stmts.c (vectorizable_call): Same.
8567 2013-11-07 Mike Stump <mikestump@comcast.net>
8569 * config/pdp11/pdp11.c: Include dbxout.h.
8570 * config/picochip/picochip.c: Likewise.
8572 2013-11-07 Cong Hou <congh@google.com>
8574 PR tree-optimization/56764
8575 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8576 Combine alias checks if it is possible to amortize the runtime
8577 overhead. Return the number of alias checks after merging.
8578 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8579 Use the function vect_create_cond_for_alias_checks () to check
8580 the number of alias checks.
8582 2013-11-07 Jeff Law <law@redhat.com>
8584 * varpool.c (ctor_for_folding): Fix typo in comment.
8586 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8588 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8589 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8591 2013-11-07 Jeff Law <law@redhat.com>
8593 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8595 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8596 No longer check if we have __builtin_trap, assume it's available.
8598 2013-11-07 Diego Novillo <dnovillo@google.com>
8600 * attribs.c (lookup_scoped_attribute_spec): Make static.
8601 (get_attribute_namespace): Likewise.
8602 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8603 (validate_arglist): Move earlier in the file. Make static.
8604 (expand_stack_restore): Move from stmt.c
8605 (expand_stack_save): Move from stmt.c
8606 (rewrite_call_expr_array): Move earlier in the file.
8607 (rewrite_call_expr_valist): Likewise.
8608 * cfgexpand.c: Include hard-reg-set.h before tree.h
8611 (expand_asm_loc): Move from stmt.c.
8612 (n_occurrences): Move from stmt.c.
8613 (check_operand_nalternatives): Move from stmt.c.
8614 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8615 (expand_asm_operands): Move from stmt.c
8616 (expand_asm_stmt): Move from stmt.c
8617 (expand_computed_goto): Move from stmt.c
8618 (expand_goto): Move from stmt.c
8619 (expand_null_return_1): Move from stmt.c
8620 (expand_null_return): Move from stmt.c
8621 (expand_value_return): Move from stmt.c
8622 (expand_return): Move from stmt.c
8623 (expand_main_function): Move from function.c
8624 (stack_protect_prologue): Move from function.c
8625 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8626 (build_function_decl_skip_args): Move from tree.c.
8627 * explow.c (tree_expr_size): Move from tree.c.
8628 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8629 (fields_length): Move from tree.c.
8630 * fold-const.c (size_low_cst): Move from tree.c.
8631 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8632 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8633 (fold_build3_initializer_loc): Remove.
8634 (tree_invalid_nonnegative_warnv_p): Make static.
8635 * function.c (expand_main_function): Move to cfgexpand.c.
8636 (stack_protect_prologue): Move to cfgexpand.c.
8637 (set_insn_locations): Move earlier in the file.
8638 * gimple-fold.c: Include langhooks.h.
8639 (truth_type_for): Move from tree.c.
8640 * print-tree.c (print_vec_tree): Remove.
8641 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8642 (expand_goto): Move to cfgexpand.c.
8643 (n_occurrences): Move to cfgexpand.c.
8644 (expand_asm_loc): Move to cfgexpand.c
8645 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8646 (expand_asm_operands): Move to cfgexpand.c.
8647 (expand_asm_stmt): Move to cfgexpand.c.
8648 (check_operand_nalternatives): Move to cfgexpand.c
8649 (expand_null_return): Move to cfgexpand.c.
8650 (expand_value_return): Move to cfgexpand.c.
8651 (expand_null_return_1): Move to cfgexpand.c.
8652 (expand_return): Move to cfgexpand.c.
8653 (expand_stack_save): Move to builtins.c.
8654 (expand_stack_restore): Move to builtins.c
8655 * symtab.c: Include output.h.
8656 (decl_assembler_name_hash): Move from tree.c.
8657 (decl_assembler_name_equal): Move from tree.c.
8658 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8659 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8660 (range_in_array_bounds_p): Move from tree.c.
8661 * tree-object-size.c (fini_object_sizes): Make static.
8662 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8663 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8664 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8665 (tree_expr_size): Move to explow.c.
8666 (decl_assembler_name_hash): Move to symtab.c.
8667 (real_twop): Remove.
8668 (tree_expr_size): Move to explow.c.
8669 (stabilize_reference_1): Move earlier in the file. Make static.
8670 (omp_remove_redundant_declare_simd_attrs): Remove.
8671 (simple_cst_list_equal): Move earlier in the file. Make static.
8672 (size_low_cst): Move to fold-const.c.
8673 (build_type_no_quals): Remove.
8674 (build_function_type_skip_args): Move to cgraphclones.c.
8675 (build_function_decl_skip_args): Move to cgraphclones.c.
8676 (in_array_bounds_p): Move to tree-eh.c.
8677 (range_in_array_bounds_p): Move to tree-eh.c.
8678 (truth_type_for): Move to gimple-fold.c.
8679 (list_equal_p): Remove.
8680 * tree.h (decl_assembler_name_equal): Remove.
8681 (decl_assembler_name_hash): Remove.
8682 (truth_type_for): Remove.
8683 (build_type_no_quals): Remove.
8684 (build_function_decl_skip_args): Remove.
8685 (in_array_bounds_p): Remove.
8686 (range_in_array_bounds_p): Remove.
8687 (size_low_cst): Remove.
8688 (omp_remove_redundant_declare_simd_attrs): Remove.
8689 (tree_expr_size): Remove.
8690 (fields_length): Remove.
8691 (stabilize_reference_1): Remove.
8692 (expand_goto): Remove.
8693 (expand_stack_save): Remove.
8694 (expand_stack_restore): Remove.
8695 (expand_return): Remove.
8696 (fold_build3_initializer_loc): Remove.
8697 (tree_expr_nonzero_p): Remove.
8698 (tree_invalid_nonnegative_warnv_p): Remove.
8699 (tree_expr_nonzero_warnv_p): Remove.
8700 (fold_builtin_snprintf_chk): Remove.
8701 (validate_arglist): Remove.
8702 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8703 (simple_cst_list_equal): Remove.
8704 (real_twop): Remove.
8705 (expand_main_function): Remove.
8706 (stack_protect_prologue): Remove.
8707 (print_vec_tree): Remove.
8708 (lookup_scoped_attribute_spec): Remove.
8709 (get_attribute_namespace): Remove.
8710 (expand_computed_goto): Remove.
8711 (expand_asm_stmt): Remove.
8712 (list_equal_p): Remove.
8713 (ssa_name_nonnegative_p): Remove.
8714 (fini_object_sizes): Remove.
8715 (addr_expr_of_non_mem_decl_p): Remove.
8716 (is_tm_safe_or_pure): Move to trans-mem.c.
8717 (more_const_call_expr_args_p): Remove.
8718 (save_vtable_map_decl): Remove.
8720 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8722 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8723 linker plugins, too.
8725 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8726 link to libgomp and its dependencies.
8727 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8728 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8729 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8730 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8732 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8734 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8735 (determine_value_range): Add loop argument. Use get_range_info to
8737 (bound_difference): Adjust caller.
8739 2013-11-07 Richard Biener <rguenther@suse.de>
8740 Jakub Jelinek <jakub@redhat.com>
8742 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8743 latches from header PHI arguments from the latch edge.
8745 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8748 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8750 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8752 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8753 misaligned_prologue_used when it has been set.
8755 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8756 Jakub Jelinek <jakub@redhat.com>
8759 * asan.c (get_mem_refs_of_builtin_call): Allow
8760 integer literals as addresses in instrumented builtins.
8762 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8764 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8765 Explain why plus_constant is not used.
8767 2013-11-07 Richard Biener <rguenther@suse.de>
8769 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8770 (canonicalize_value): ... this. Also handle stripping of
8772 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8773 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8774 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8776 2013-11-07 Richard Biener <rguenther@suse.de>
8778 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8780 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8783 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8784 with stack_pointer_rtx.
8786 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8788 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8789 using operand_equal_p.
8791 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8793 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8794 * tree-affine.c (get_inner_reference_aff): Return base.
8795 * tree-affine.h (get_inner_reference_aff): Change prototype.
8797 2013-11-06 Tobias Burnus <burnus@net-b.de>
8799 * doc/invoke.texi (Wdate-time): Fix typo.
8801 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8803 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8804 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8805 fp_arith_reg_operand instead of arith_reg_operand.
8807 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8809 * config/sh/sh.md (adddi3): Remove empty constraints.
8810 Remove can_create_pseudo_p and arith_reg_operand check.
8811 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8812 Split before reload.
8814 2013-11-06 Jeff Law <law@redhat.com>
8815 Tom Tromey <tromey@redhat.com>
8817 * gdbinit.in: Disable strict type checking.
8819 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8821 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8822 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8823 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8824 (rest_of_handle_live_range_shrinkage): Ditto
8825 (class pass_live_range_shrinkage): Ditto.
8826 (pass_data_live_range_shrinkage): Ditto.
8827 (make_pass_live_range_shrinkage): Ditto.
8828 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8829 (finish_live_range_shrinkage): Ditto.
8830 * sched-deps.c (create_insn_reg_set): Make void return value.
8831 * passes.def: Add pass_live_range_shrinkage.
8832 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8833 * haifa-sched.c (live_range_shrinkage_p): New.
8834 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8836 (rank_for_schedule): Add code for pressure relief through live
8838 (schedule_insn): Print more debug info.
8839 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8840 through live range shrinkage.
8841 * doc/invoke.texi (-flive-range-shrinkage): New.
8842 * common.opt (flive-range-shrinkage): New.
8844 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8847 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8848 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8849 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8850 RTXes that return in AVX256 register.
8852 2013-11-06 Richard Biener <rguenther@suse.de>
8854 PR tree-optimization/58653
8855 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8856 (prepare_initializers_chain): Adjust.
8858 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8860 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8861 (gimple_in_transaction): Use bb_in_transaction.
8862 * basic-block.h (bb_in_transaction): Relocate here and rename.
8863 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8865 2013-11-06 Richard Biener <rguenther@suse.de>
8867 * tree.c (drop_tree_overflow): New function.
8868 * tree.h (drop_tree_overflow): Declare.
8869 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8870 * tree-vrp.c (range_int_cst_singleton_p): Use
8871 is_overflow_infinity instead of testing TREE_OVERFLOW.
8872 (extract_range_from_assert): Likewise.
8873 (zero_nonzero_bits_from_vr): Likewise.
8874 (extract_range_basic): Likewise.
8875 (register_new_assert_for): Use drop_tree_overflow.
8876 (vrp_visit_phi_node): Likewise.
8878 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8880 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8881 checking for leaf functions without dynamic stack allocation.
8882 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8883 (ia64_expand_prologue): Likewise.
8884 * config/mips/mips.c (mips_expand_prologue): Likewise.
8885 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8886 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8887 (sparc_flat_expand_prologue): Likewise.
8889 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8891 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8892 (__ST3_LANE_FUNC): Likewise.
8893 (__ST4_LANE_FUNC): Likewise.
8895 2013-11-06 Nick Clifton <nickc@redhat.com>
8897 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8898 name returned by msp430_mcu_name.
8899 (LIB_SPEC): If a -T option has not been specified then set a
8900 default, mcu-specific, linker script.
8901 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8902 * config/msp430/msp430.c (msp430x_names): Likewise.
8903 Alpha sort the names for ease of comparison.
8904 (msp430_mcu_name): New function: Returns a string suitable for
8905 use as a C preprocessor symbol based upon the name of the MCU
8907 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8909 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8911 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8912 unless it is the last part of a spec substring.
8913 * doc/invoke.texi (Spec Files): Document space insertion
8916 2013-11-06 Christian Bruel <christian.bruel@st.com>
8918 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8919 Factorize probabilities, Use adjust_address instead of
8920 adjust_automodify_address when possible. Enable for optimize.
8921 (sh_expand_strlen): New function.
8922 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8923 * config/sh/sh.md (strlensi): New pattern.
8924 (UNSPEC_BUILTIN_STRLEN): Define.
8926 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8929 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8930 (expand_assignment): If *bitpos is negative, set *offset
8931 and adjust *bitpos, so that it is not negative.
8933 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8935 * config/i386/bdver3.md : Added two additional decoder units
8936 to support issue rate of 4 and remodeled vector unit.
8937 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8938 architectures is set to 4.
8939 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8940 lookahead is set to 4 for BD architectures.
8942 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8944 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8945 Remove restriction against use of VSX instructions when generating
8946 code for little endian mode.
8948 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8950 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8951 for both big and little endian.
8952 (mulv8hi3): Swap input operands for merge high and merge low
8953 instructions for little endian.
8955 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8957 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8958 define_insn to define_expand that uses even patterns for big
8959 endian and odd patterns for little endian.
8960 (vec_widen_smult_even_v16qi): Likewise.
8961 (vec_widen_umult_even_v8hi): Likewise.
8962 (vec_widen_smult_even_v8hi): Likewise.
8963 (vec_widen_umult_odd_v16qi): Likewise.
8964 (vec_widen_smult_odd_v16qi): Likewise.
8965 (vec_widen_umult_odd_v8hi): Likewise.
8966 (vec_widen_smult_odd_v8hi): Likewise.
8967 (altivec_vmuleub): New define_insn.
8968 (altivec_vmuloub): Likewise.
8969 (altivec_vmulesb): Likewise.
8970 (altivec_vmulosb): Likewise.
8971 (altivec_vmuleuh): Likewise.
8972 (altivec_vmulouh): Likewise.
8973 (altivec_vmulesh): Likewise.
8974 (altivec_vmulosh): Likewise.
8976 2013-11-05 Mike Stump <mikestump@comcast.net>
8978 * Makefile.in (mostlyclean): Remove c-family objects.
8980 2013-11-05 Ian Lance Taylor <iant@google.com>
8982 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8983 If possible, add .cfi directives to record change to bx.
8984 * config/i386/i386.c (ix86_emit_cfi): New function.
8985 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8987 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8989 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8990 immediately after a label for a tablejump pattern.
8992 * config/arm/arm.c (is_jump_table): Remove.
8993 (create_fix_barrier): Use tablejump_p instead.
8994 (arm_reorg): Likewise.
8995 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8996 (thumb2_output_casesi): Likewise.
8997 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8998 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8999 casesi_shift_media, casesi_load_media): Likewise.
9000 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9001 * config/microblaze/microblaze.md: Likewise.
9003 2013-11-05 Tobias Burnus <burnus@net-b.de>
9005 * doc/invoke.texi (-Wdate-time): Document.
9007 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9009 * double-int.c (lshift_double, rshift_double): Remove
9010 SHIFT_COUNT_TRUNCATED handling.
9012 2013-11-05 Jeff Law <law@redhat.com>
9014 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9015 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9016 * gimple-ssa-isolate-paths.c: New file.
9017 * gimple.c (check_loadstore): New function.
9018 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9019 Verify OP is in the argument list and the argument corresponding
9020 to OP is a pointer type. Use operand_equal_p rather than
9021 pointer equality when testing if OP is on the nonnull list.
9022 Use check_loadstore rather than count_ptr_derefs. Handle
9023 GIMPLE_RETURN statements.
9024 * tree-vrp.c (infer_nonnull_range): Remove.
9025 * gimple.h (infer_nonnull_range): Declare.
9026 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9027 * passes.def: Add pass_isolate_erroneous_paths.
9028 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9029 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9030 * tree-ssa.c (struct count_ptr_d): Remove.
9031 (count_ptr_derefs, count_uses_and_derefs): Remove.
9032 * tree-ssa.h (count_uses_and_derefs): Remove.
9034 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9036 PR rtl-optimization/58997
9037 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9038 get_iv_value to be in iv->mode rather than iv->extend_mode.
9039 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9040 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9041 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9044 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9046 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9048 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9049 Move to gimple-expr.h.
9050 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9051 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9052 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9053 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9055 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9056 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9057 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9058 is_gimple_address, is_gimple_invariant_address,
9059 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9060 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9061 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9062 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9063 gimple_decl_printable_name, useless_type_conversion_p,
9064 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9066 * gimple-expr.c: New File.
9067 (useless_type_conversion_p, gimple_set_body, gimple_body,
9068 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9069 gimple_can_coalesce_p, extract_ops_from_tree_1,
9070 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9071 is_gimple_address, is_gimple_invariant_address,
9072 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9073 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9074 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9075 is_gimple_mem_ref_addr): Relocate here.
9076 * Makefile.in (OBJS): Add gimple-expr.o.
9078 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9080 * gengtype-parse.c (struct_field_seq): Support empty structs.
9082 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9084 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9086 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9088 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9090 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9092 (LONG_DOUBLE_TYPE_SIZE): New define.
9093 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9095 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9098 * doc/extend.texi [visibility ("visibility_type")]: Add example
9099 about visibility attribute on namespace declaration.
9101 2013-11-05 Richard Biener <rguenther@suse.de>
9104 * passes.def (all_passes): Start with pass_fixup_cfg again.
9106 2013-11-05 Richard Biener <rguenther@suse.de>
9108 PR tree-optimization/58955
9109 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9112 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9114 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9116 (vec_pack_ufix_trunc_v2df): Likewise.
9118 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9121 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9122 pattern, instead of word_mode.
9124 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9126 (set_storage_via_setmem): Likewise.
9128 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9130 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9131 gimple.h and the rest of the condition in eliminate_build.
9132 (eliminate_build): Call new routine.
9133 * gimple.h (phi_ssa_name_p): Delete.
9135 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9137 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9138 case of no prefix and reserving zero slots, because when that's the
9139 case we'll never get here.
9140 * vec.h (va_heap::reserve): Don't try and handle
9141 vec_prefix::calculate_allocation returning zero because that should
9144 2013-11-05 Richard Biener <rguenther@suse.de>
9147 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9148 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9149 process trailing array detection before diving into the
9150 view-converted object (and possibly apply some extra offset).
9152 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9154 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9156 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9158 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9160 PR tree-optimization/58958
9161 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9162 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9164 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9166 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9167 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9169 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9171 PR tree-optimization/58984
9172 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9173 set *SIZE_P if non-NULL on success.
9174 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9176 (ipcp_transform_function): Likewise. Punt if size of access
9177 is different from TYPE_SIZE on v->value's type.
9179 2013-11-05 Tobias Burnus <burnus@net-b.de>
9181 * doc/invoke.texi (-fopenmp-simd): Document new option.
9182 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9183 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9184 * tree.c (attribute_value_equal): Ditto.
9186 2013-11-04 Wei Mi <wmi@google.com>
9188 * sched-rgn.c (add_branch_dependences): Keep insns in
9189 a SCHED_GROUP at the end of BB to remain their location.
9191 2013-11-04 Wei Mi <wmi@google.com>
9193 * config/i386/i386.c (memory_address_length): Extract a part
9194 of code to rip_relative_addr_p.
9195 (rip_relative_addr_p): New Function.
9196 (ix86_macro_fusion_p): Ditto.
9197 (ix86_macro_fusion_pair_p): Ditto.
9198 * config/i386/i386.h: Add new tune features about macro-fusion.
9199 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9200 * doc/tm.texi: Generated.
9201 * doc/tm.texi.in: Ditto.
9202 * haifa-sched.c (try_group_insn): New Function.
9203 (group_insns_for_macro_fusion): Ditto.
9204 (sched_init): Call group_insns_for_macro_fusion.
9205 * target.def: Add two hooks: macro_fusion_p and
9206 macro_fusion_pair_p.
9208 2013-11-04 Kostya Serebryany <kcc@google.com>
9210 Update to match the changed asan API.
9211 * asan.c (asan_function_start): New function.
9212 (asan_emit_stack_protection): Update the string stored in the
9213 stack red zone to match new API. Store the PC of the current
9214 function in the red zone.
9215 (asan_global_struct): Update the __asan_global definition to match
9217 (asan_add_global): Ditto.
9218 * asan.h (asan_function_start): New prototype.
9219 * final.c (final_start_function): Call asan_function_start.
9220 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9223 2013-11-04 Wei Mi <wmi@google.com>
9225 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9226 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9227 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9228 (ix86_issue_rate): Ditto.
9229 (ix86_adjust_cost): Ditto.
9230 (ia32_multipass_dfa_lookahead): Ditto.
9231 (ix86_sched_init_global): Ditto.
9232 (get_builtin_code_for_version): Ditto.
9233 * config/i386/i386.h (enum target_cpu_default): Ditto.
9234 (enum processor_type): Ditto.
9235 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9237 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9239 PR rtl-optimization/58967
9240 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9241 !lra_in_progress for mode sizes bigger word.
9243 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9245 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9246 arguments to merge instruction for little endian.
9247 (vec_widen_umult_lo_v16qi): Likewise.
9248 (vec_widen_smult_hi_v16qi): Likewise.
9249 (vec_widen_smult_lo_v16qi): Likewise.
9250 (vec_widen_umult_hi_v8hi): Likewise.
9251 (vec_widen_umult_lo_v8hi): Likewise.
9252 (vec_widen_smult_hi_v8hi): Likewise.
9253 (vec_widen_smult_lo_v8hi): Likewise.
9255 2013-11-04 Ian Lance Taylor <iant@google.com>
9257 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9258 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9259 builtins that take pointers.
9260 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9261 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9262 (run_gcc): Pass -fnon-call-exceptions.
9264 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9266 * optabs.c (expand_vec_perm): Revert one incorrect line from
9269 PR tree-optimization/58978
9270 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9271 use_stmt by single_imm_use directly. Only call single_imm_use
9274 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9276 PR rtl-optimization/58968
9277 * lra-spills.c (return_regno_p): New function.
9278 (lra_final_code_change): Use it.
9280 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9282 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9283 * target.def (float_exceptions_rounding_supported_p): New hook.
9284 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9286 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9287 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9289 * doc/tm.texi: Regenerate.
9290 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9291 * config/rs6000/rs6000-linux.c: New file.
9292 * config/rs6000/rs6000-protos.h
9293 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9294 * config/rs6000/linux.h
9295 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9296 * config/rs6000/linux64.h
9297 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9298 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9299 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9301 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9303 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9304 Replace the define_insn_and_split with a define_insn and two
9305 define_splits, with the split after reload re-permuting the source
9306 register to its original value.
9307 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9308 (*vsx_le_perm_store_v8hi): Likewise.
9309 (*vsx_le_perm_store_v16qi): Likewise.
9311 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9313 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9316 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9318 PR tree-optimization/58946
9319 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9320 bbs with bbinfo[idx].op != NULL before all blocks with
9321 bbinfo[idx].op == NULL.
9323 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9325 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9326 (avr_dump_double_int_hex): Likewise.
9327 (avr_log_vadump): Remove %D and %X handling.
9328 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9329 (avr_map_op_t): Change map from double_int to unsigned int.
9330 (avr_map_op): Update accordingly.
9331 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9332 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9333 unsigned ints rather than double_ints.
9335 2013-11-03 Marek Polacek <polacek@redhat.com>
9337 Implement -fsanitize=vla-bound.
9338 * opts.c (common_handle_option): Handle vla-bound.
9339 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9340 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9341 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9343 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9345 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9348 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9350 * config/i386/constraints.md (Ts, Tv): New address constrains.
9351 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9352 constraint for address_no_seg_operand.
9353 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9354 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9355 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9356 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9357 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9358 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9359 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9360 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9361 constraint for vsib_address_operand.
9363 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9365 * gcse.c (pre_delete): Remove references to regmove from comments.
9366 * recog.c: (validate_replace_rtx_1): Likewise.
9367 * config/rl78/rl78.c: Likewise.
9368 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9369 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9370 * common/config/mmix/mmix-common.c: Likewise.
9372 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9374 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9375 * gimplify.c (gimplify_compound_lval): Likewise.
9376 * graphite-clast-to-gimple.c (gloog): Likewise.
9377 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9378 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9379 (limit_scop); Likewise.
9380 (build_scops): Likewise.
9381 (dot_scop): Likewise.
9382 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9383 (build_scop_drs): Likewise.
9384 (insert_stmts): Likewise.
9385 (insert_out_of_ssa_copy): Likewise.
9386 (remove_phi): Likewise.
9387 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9388 * hw-doloop.c (discover_loop): Likewise.
9389 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9390 * tree-dfa.c (dump_enumerated_decls): Likewise.
9391 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9392 * tree-inline.c (tree_function_versioning): Likewise.
9393 * tree-loop-distribution.c (build_rdg): Likewise.
9394 (rdg_flag_vertex_and_dependent): Likewise.
9395 (distribute_loop): Likewise.
9396 * tree-parloops.c (loop_parallel_p): Likewise.
9397 (eliminate_local_variables): Likewise.
9398 (separate_decls_in_region): Likewise.
9399 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9400 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9401 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9402 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9403 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9404 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9405 (vectorizable_condition): Likewise.
9407 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9409 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9410 * configure: Regenerate.
9411 * config/i386/i386.md (*movdi_internal): Change
9412 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9413 (*movdf_internal): Ditto.
9414 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9415 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9416 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9418 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9420 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9423 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9425 Automated part of renaming of symtab_node_base to symtab_node.
9427 Patch autogenerated by rename_symtab.py from
9428 https://github.com/davidmalcolm/gcc-refactoring-scripts
9429 revision 58bb219cc090b2f4516a9297d868c245495ee622
9430 with ChangeLog entry fixed up by hand.
9432 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9434 (cgraph_node_for_asm): Likewise.
9435 * cgraph.h (symtab_node_base): Likewise.
9436 (cgraph_node): Likewise.
9437 (varpool_node): Likewise.
9438 (is_a_helper <cgraph_node>::test): Likewise.
9439 (is_a_helper <varpool_node>::test): Likewise.
9440 (symtab_nodes): Likewise.
9441 (symtab_register_node): Likewise.
9442 (symtab_unregister_node): Likewise.
9443 (symtab_remove_node): Likewise.
9444 (symtab_get_node): Likewise.
9445 (symtab_node_for_asm): Likewise.
9446 (symtab_node_asm_name): Likewise.
9447 (symtab_node_name): Likewise.
9448 (symtab_insert_node_to_hashtable): Likewise.
9449 (symtab_add_to_same_comdat_group): Likewise.
9450 (symtab_dissolve_same_comdat_group_list): Likewise.
9451 (dump_symtab_node): Likewise.
9452 (debug_symtab_node): Likewise.
9453 (dump_symtab_base): Likewise.
9454 (verify_symtab_node): Likewise.
9455 (verify_symtab_base): Likewise.
9456 (symtab_used_from_object_file_p): Likewise.
9457 (symtab_alias_ultimate_target): Likewise.
9458 (symtab_resolve_alias): Likewise.
9459 (fixup_same_cpp_alias_visibility): Likewise.
9460 (symtab_for_node_and_aliases): Likewise.
9461 (symtab_nonoverwritable_alias): Likewise.
9462 (availability symtab_node_availability): Likewise.
9463 (symtab_semantically_equivalent_p): Likewise.
9464 (fixup_same_cpp_alias_visibility): Likewise.
9465 (symtab_prevail_in_asm_name_hash): Likewise.
9467 (varpool): Likewise.
9468 (varpool_first_variable): Likewise.
9469 (varpool_next_variable): Likewise.
9470 (varpool_first_static_initializer): Likewise.
9471 (varpool_next_static_initializer): Likewise.
9472 (varpool_first_defined_variable): Likewise.
9473 (varpool_next_defined_variable): Likewise.
9474 (cgraph_first_defined_function): Likewise.
9475 (cgraph_next_defined_function): Likewise.
9476 (cgraph_first_function): Likewise.
9477 (cgraph_next_function): Likewise.
9478 (cgraph_first_function_with_gimple_body): Likewise.
9479 (cgraph_next_function_with_gimple_body): Likewise.
9480 (symtab_alias_target): Likewise.
9481 (symtab_real_symbol_p): Likewise.
9482 (symtab_can_be_discarded): Likewise.
9483 * cgraphbuild.c (mark_address): Likewise.
9484 (mark_load): Likewise.
9485 (mark_store): Likewise.
9486 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9488 (enqueue_node): Likewise.
9489 (referred_to_p): Likewise.
9490 (cgraph_process_same_body_aliases): Likewise.
9491 (analyze_functions): Likewise.
9492 (handle_alias_pairs): Likewise.
9493 (output_weakrefs): Likewise.
9494 (compile): Likewise.
9495 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9496 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9497 * ipa-prop.c (remove_described_reference): Likewise.
9498 (try_decrement_rdesc_refcount): Likewise.
9499 (ipa_edge_duplication_hook): Likewise.
9500 * ipa-ref.c (ipa_record_reference): Likewise.
9501 (ipa_maybe_record_reference): Likewise.
9502 (ipa_clone_ref): Likewise.
9503 (ipa_clone_references): Likewise.
9504 (ipa_clone_referring): Likewise.
9505 (ipa_find_reference): Likewise.
9506 (ipa_remove_stmt_references): Likewise.
9507 (ipa_clear_stmts_in_references): Likewise.
9508 * ipa-ref.h (symtab_node_base): Likewise.
9509 (ipa_ref): Likewise.
9510 (ipa_record_reference): Likewise.
9511 (ipa_maybe_record_reference): Likewise.
9512 (ipa_clone_references): Likewise.
9513 (ipa_clone_referring): Likewise.
9514 (ipa_clone_ref): Likewise.
9515 (ipa_find_reference): Likewise.
9516 (ipa_remove_stmt_references): Likewise.
9517 (ipa_clear_stmts_in_references): Likewise.
9518 * ipa-reference.c (ipa_reference_write_optimization_summary):
9520 * ipa.c (enqueue_node): Likewise.
9521 (process_references): Likewise.
9522 (walk_polymorphic_call_targets): Likewise.
9523 (symtab_remove_unreachable_nodes): Likewise.
9524 (address_taken_from_non_vtable_p): Likewise.
9525 (comdat_can_be_unshared_p_1): Likewise.
9526 (comdat_can_be_unshared_p): Likewise.
9527 (can_replace_by_local_alias): Likewise.
9528 (function_and_variable_visibility): Likewise.
9529 * is-a.h: Likewise (within example in comment).
9530 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9531 (lto_symtab_encoder_encode): Likewise.
9532 (lto_symtab_encoder_delete_node): Likewise.
9533 (lto_symtab_encoder_in_partition_p): Likewise.
9534 (lto_set_symtab_encoder_in_partition): Likewise.
9535 (output_refs): Likewise.
9536 (compute_ltrans_boundary): Likewise.
9537 (output_symtab): Likewise.
9538 (input_node): Likewise.
9539 (input_ref): Likewise.
9540 (input_edge): Likewise.
9541 (input_cgraph_1): Likewise.
9542 (input_refs): Likewise.
9543 (output_cgraph_opt_summary): Likewise.
9544 (input_node_opt_summary): Likewise.
9545 (input_cgraph_opt_section): Likewise.
9546 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9548 * lto-streamer-out.c (lto_output): Likewise.
9549 (output_symbol_p): Likewise.
9550 (produce_symtab): Likewise.
9551 * lto-streamer.h (lto_encoder_entry): Likewise.
9552 (lto_free_function_in_decl_state_for_node): Likewise.
9553 (lto_symtab_encoder_encode): Likewise.
9554 (lto_symtab_encoder_delete_node): Likewise.
9555 (lto_symtab_encoder_in_partition_p): Likewise.
9556 (lto_set_symtab_encoder_in_partition): Likewise.
9557 (lto_symtab_encoder_lookup): Likewise.
9558 (lsei_node): Likewise.
9559 (lto_symtab_encoder_deref): Likewise.
9560 * symtab.c (symtab_hash): Likewise.
9561 (assembler_name_hash): Likewise.
9562 (symtab_nodes): Likewise.
9563 (hash_node): Likewise.
9564 (eq_node): Likewise.
9565 (hash_node_by_assembler_name): Likewise.
9566 (eq_assembler_name): Likewise.
9567 (insert_to_assembler_name_hash): Likewise.
9568 (unlink_from_assembler_name_hash): Likewise.
9569 (symtab_prevail_in_asm_name_hash): Likewise.
9570 (symtab_register_node): Likewise.
9571 (symtab_insert_node_to_hashtable): Likewise.
9572 (symtab_unregister_node): Likewise.
9573 (symtab_get_node): Likewise.
9574 (symtab_remove_node): Likewise.
9575 (symtab_initialize_asm_name_hash): Likewise.
9576 (symtab_node_for_asm): Likewise.
9577 (symtab_add_to_same_comdat_group): Likewise.
9578 (symtab_dissolve_same_comdat_group_list): Likewise.
9579 (symtab_node_asm_name): Likewise.
9580 (symtab_node_name): Likewise.
9581 (dump_symtab_base): Likewise.
9582 (dump_symtab_node): Likewise.
9583 (dump_symtab): Likewise.
9584 (debug_symtab_node): Likewise.
9585 (verify_symtab_base): Likewise.
9586 (verify_symtab_node): Likewise.
9587 (verify_symtab): Likewise.
9588 (symtab_used_from_object_file_p): Likewise.
9589 (symtab_node_availability): Likewise.
9590 (symtab_alias_ultimate_target): Likewise.
9591 (fixup_same_cpp_alias_visibility): Likewise.
9592 (symtab_resolve_alias): Likewise.
9593 (symtab_for_node_and_aliases): Likewise.
9594 (symtab_for_node_and_aliases): Likewise.
9595 (symtab_nonoverwritable_alias_1): Likewise.
9596 (symtab_nonoverwritable_alias): Likewise.
9597 (symtab_semantically_equivalent_p): Likewise.
9598 * value-prof.c (init_node_map): Likewise.
9599 * varasm.c (find_decl): Likewise.
9600 * varpool.c (varpool_node_for_asm): Likewise.
9601 (varpool_remove_unreferenced_decls): Likewise.
9603 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9605 Manual part of renaming of symtab_node_base to symtab_node.
9607 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9608 clashes with the preferred name for the base class.
9609 (const_symtab_node): Remove redundant typedef.
9611 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9613 * optabs.c (expand_vec_perm): Avoid vector mode punning
9614 SUBREGs in SET_DEST.
9615 * expmed.c (store_bit_field_1): Likewise.
9616 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9617 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9618 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9619 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9620 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9621 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9622 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9623 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9624 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9625 expand_vec_perm_vpshufb2_vpermq,
9626 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9627 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9628 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9629 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9632 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9634 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9635 Use gcc_unreachable for unhandled modes. Do not check results of
9636 expand_simple_binop. If not expanded to target, move the result.
9638 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9639 Shiva Chen <shiva0217@gmail.com>
9641 * config.gcc (nds32*-*-*): Add nds32 target.
9642 * config/nds32/nds32.c: New file.
9643 * config/nds32/nds32.h: New file.
9644 * config/nds32/nds32.md: New file.
9645 * config/nds32/constants.md: New file.
9646 * config/nds32/constraints.md: New file.
9647 * config/nds32/iterators.md: New file.
9648 * config/nds32/nds32-doubleword.md: New file.
9649 * config/nds32/nds32-intrinsic.md: New file.
9650 * config/nds32/nds32_intrinsic.h: New file.
9651 * config/nds32/nds32-modes.def: New file.
9652 * config/nds32/nds32-multiple.md: New file.
9653 * config/nds32/nds32.opt: New file.
9654 * config/nds32/nds32-opts.h: New file.
9655 * config/nds32/nds32-protos.h: New file.
9656 * config/nds32/nds32-peephole2.md: New file.
9657 * config/nds32/pipelines.md: New file.
9658 * config/nds32/predicates.md: New file.
9659 * config/nds32/t-mlibs: New file.
9660 * common/config/nds32: New directory and files.
9662 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9663 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9664 * doc/install.texi (Cross-Compiler-Specific Options): Document
9665 --with-nds32-lib for nds32 target.
9666 * doc/extend.texi (Function Attributes, Target Builtins): Document
9667 nds32 specific attributes.
9669 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9671 * lra-constraints (process_alt_operands): Use the result
9672 elimination register for operand when matching constraints.
9674 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9676 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9677 (remove_range_assertions): Call it.
9679 * tree.c (tree_ctz): New function.
9680 * tree.h (tree_ctz): New prototype.
9681 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9682 first argument from tree to const_tree.
9683 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9684 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9685 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9687 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9688 * tree-vect-loop.c (vect_analyze_loop_operations,
9689 vect_transform_loop): Don't force scalar loop for bound just because
9690 number of iterations is unknown, only do it if it is not known to be
9691 a multiple of vectorization_factor.
9692 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9694 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9695 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9696 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9697 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9698 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9699 a default def isn't partially constant.
9700 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9701 is known to be partially zero.
9702 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9703 to see if a default def isn't partially constant.
9704 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9705 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9707 (set_nonzero_bits, get_nonzero_bits): New functions.
9709 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9710 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9711 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9712 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9713 uses but in the condition and ASSERT_EXPR and the other successor of
9714 the predecessor bb is __builtin_unreachable (), set_range_info of the
9715 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9717 2013-10-31 Martin Jambor <mjambor@suse.cz>
9719 PR rtl-optimization/58934
9721 2013-10-30 Martin Jambor <mjambor@suse.cz>
9722 PR rtl-optimization/10474
9723 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9725 (interesting_dest_for_shprep): New function.
9726 (split_live_ranges_for_shrink_wrap): Likewise.
9727 (ira): Calculate dominance info and df analysis. Call
9728 split_live_ranges_for_shrink_wrap.
9730 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9731 Yury Gribov <y.gribov@samsung.com>
9734 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9735 shadow pointer to avoid clobbering the main one.
9737 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9739 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9741 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9744 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9745 it for calling update_costs_from_allocno.
9746 (assign_hard_reg): Call restore_costs_from_copies only for
9747 !retry_p. Pass new argument to update_costs_from_copies.
9748 (color_pass): Pass new argument to update_costs_from_copies.
9749 (ira_mark_allocation_change): Ditto.
9751 2013-10-30 Sharad Singhai <singhai@google.com>
9754 * opts.c (common_handle_option): Remove deprecated option
9755 -ftree-vectorizer-verbose.
9756 * doc/invoke.texi (Debugging Options): Ditto.
9757 * opts-global.c (handle_common_deferred_options): Ditto.
9758 (dump_remap_tree_vectorizer_verbose): Delete.
9759 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9761 2013-10-30 DJ Delorie <dj@redhat.com>
9763 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9764 that take no arguments.
9766 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9769 * reload1.c (update_eliminables_and_spill): New function, broken
9771 (reload): Use it. Check for frame size change after frame size
9772 alignment, and call update_eliminables_and_spill first if continue-ing.
9774 2013-10-30 Cong Hou <congh@google.com>
9777 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9778 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9779 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9781 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9783 PR rtl-optimization/58369
9784 * reload1.c (compute_reload_subreg_offset): New function.
9785 (choose_reload_regs): Use it to pass endian-correct
9786 offset to subreg_regno_offset.
9788 2013-10-30 Tobias Burnus <burnus@net-b.de>
9791 * tree-cfg.c (replace_loop_annotate): Replace warning by
9794 2013-10-30 Jason Merrill <jason@redhat.com>
9796 * configure.ac (loose_warn): Add -Wno-format if
9797 --disable-build-format-warnings.
9799 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9801 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9802 onto multiple lines to make things easier for rename_symtab.py.
9804 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9805 (symtab_semantically_equivalent_p): Likewise.
9807 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9810 * lra.c (check_rtl): Remove address check before LRA work.
9812 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9814 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9815 POINTER_PLUS_EXPR in the defining statement.
9817 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9819 * regmove.c: Remove.
9820 * tree-pass.h (make_pass_regmove): Remove.
9821 * timevar.def (TV_REGMOVE): Remove.
9822 * passes.def (pass_regmove): Remove.
9823 * opts.c (default_options_table): Remove entry for regmove.
9824 * doc/passes.texi: Remove regmove pass description.
9825 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9827 (-fdump-rtl-regmove): Ditto.
9828 * common.opt (foptimize-register-move, fregmove): Ignore.
9829 * Makefile.in (OBJS): Remove regmove.o.
9830 * regmove.c: Remove.
9831 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9833 (struct ira_allocno) New member allocno_prefs.
9834 (ALLOCNO_PREFS): New macro.
9835 (ira_prefs, ira_prefs_num): New external vars.
9836 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9837 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9838 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9840 (ira_add_allocno_copy_to_list): Remove prototype.
9841 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9842 (ira_pref_iterator): New type.
9843 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9844 (FOR_EACH_PREF): New macro.
9845 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9846 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9848 (ira_setup_alts): New function.
9849 (decrease_live_ranges_number): New function.
9850 (ira): Call the above function.
9851 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9852 (ira_create_allocno): Initialize allocno prefs.
9853 (pref_pool, pref_vec): New static vars.
9854 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9856 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9857 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9858 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9859 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9860 (ira_add_allocno_copy_to_list): Make static. Rename to
9861 add_allocno_copy_to_list.
9862 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9863 swap_allocno_copy_ends_if_necessary.
9864 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9865 ira_remove_allocno_prefs.
9866 (ira_flattening): Ditto.
9867 (ira_build): Call initiate_prefs, print_prefs.
9868 (ira_destroy): Call finish_prefs.
9869 * ira-color.c (struct update_cost_record): New.
9870 (struct allocno_color_data): Add new member update_cost_records.
9871 (update_cost_record_pool): New static var.
9872 (init_update_cost_records, get_update_cost_record): New functions.
9873 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9874 (struct update_cost_queue_elem): Add member from.
9875 (initiate_cost_update): Call init_update_cost_records.
9876 (finish_cost_update): Call finish_update_cost_records.
9877 (queue_update_cost, get_next_update_cost): Add new param from.
9878 (Update_allocno_cost, update_costs_from_allocno): New functions.
9879 (update_costs_from_prefs): Ditto.
9880 (update_copy_costs): Rename to update_costs_from_copies.
9881 (restore_costs_from_copies): New function.
9882 (update_conflict_hard_regno_costs): Don't go back.
9883 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9885 (pop_allocnos): Add priniting more debug info.
9886 (color_allocnos): Remove prefs for conflicting hard regs.
9887 Call update_costs_from_prefs.
9888 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9889 (get_dup_num): Rename, modify, and move to ira.c
9890 (process_regs_for_copy): Add prefs.
9891 (add_insn_allocno_copies): Put src as first arg of
9892 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9893 * ira-costs.c (record_reg_classes): Modify and move code into
9894 record_operands_costs.
9895 (find_costs_and_classes): Create prefs for the hard reg of small
9897 (process_bb_node_for_hard_reg_moves): Add prefs.
9899 2013-10-30 Richard Biener <rguenther@suse.de>
9902 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9903 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9905 (pre_and_rev_post_order_compute): ... which now wraps it.
9906 * graph.c (draw_cfg_nodes_no_loops): Use
9907 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9910 2013-10-30 Christian Bruel <christian.bruel@st.com>
9912 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9913 (sh_expand_cmpstr): Handle known align and schedule improvements.
9914 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9915 * config/sh/sh.md (cmpstrnsi): New pattern.
9917 2013-10-30 Martin Jambor <mjambor@suse.cz>
9919 PR rtl-optimization/10474
9920 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9922 (interesting_dest_for_shprep): New function.
9923 (split_live_ranges_for_shrink_wrap): Likewise.
9924 (ira): Calculate dominance info and df analysis. Call
9925 split_live_ranges_for_shrink_wrap.
9927 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9930 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9932 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9934 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9935 * tree.h (POINTER_BOUNDS_P): New.
9936 (BOUNDED_TYPE_P): New.
9938 (pointer_bounds_type_node): New.
9939 * tree.c (build_common_tree_nodes): Initialize
9940 pointer_bounds_type_node.
9941 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9942 (gimple_call_num_nobnd_args): New.
9943 (gimple_call_nobnd_arg): New.
9944 (gimple_return_retbnd): New.
9945 (gimple_return_set_retbnd): New
9946 * gimple.c (gimple_build_return): Increase number of ops
9947 for return statement.
9948 (gimple_call_get_nobnd_arg_index): New.
9949 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9951 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9953 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9954 with "chkp ctor" and "bnd_legacy" attributes.
9955 * gimplify.c (gimplify_init_constructor): Avoid infinite
9956 loop during gimplification of bounds initializer.
9958 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9960 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9961 (handle_bnd_legacy): New.
9962 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9963 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9966 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9968 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9969 (BT_FN_PTR_CONST_PTR): New.
9970 (BT_FN_CONST_PTR_CONST_PTR): New.
9971 (BT_FN_PTR_CONST_PTR_SIZE): New.
9972 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9973 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9974 (BT_FN_VOID_CONST_PTR_SIZE): New.
9975 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9976 * chkp-builtins.def: New.
9977 * builtins.def: include chkp-builtins.def.
9978 (DEF_CHKP_BUILTIN): New.
9979 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9980 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9981 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9982 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9983 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9984 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9985 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9986 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9987 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9988 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9989 * common.opt (fcheck-pointer-bounds): New.
9990 * toplev.c (process_options): Check Pointer Bounds Checker is
9992 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9994 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9996 * target.def (builtin_chkp_function): New.
9997 (chkp_bound_type): New.
9998 (chkp_bound_mode): New.
9999 (fn_abi_va_list_bounds_size): New.
10000 (load_bounds_for_arg): New.
10001 (store_bounds_for_arg): New.
10002 * targhooks.h (default_load_bounds_for_arg): New.
10003 (default_store_bounds_for_arg): New.
10004 (default_fn_abi_va_list_bounds_size): New.
10005 (default_chkp_bound_type): New.
10006 (default_chkp_bound_mode): New.
10007 (default_builtin_chkp_function): New.
10008 * targhooks.c (default_load_bounds_for_arg): New.
10009 (default_store_bounds_for_arg): New.
10010 (default_fn_abi_va_list_bounds_size): New.
10011 (default_chkp_bound_type): New.
10012 (default_chkp_bound_mode); New.
10013 (default_builtin_chkp_function): New.
10014 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10015 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10016 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10017 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10018 (TARGET_CHKP_BOUND_TYPE): New.
10019 (TARGET_CHKP_BOUND_MODE): New.
10020 * doc/tm.texi: Regenerated.
10021 * langhooks.h (lang_hooks): Add chkp_supported field.
10022 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10023 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10025 2013-10-29 Andrew Pinski <apinski@cavium.com>
10027 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10028 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10029 fails, combining the branches anyways.
10030 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10031 increases the number of combinings.
10032 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10034 2013-10-29 Mike Stump <mikestump@comcast.net>
10036 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10037 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10038 (make_vector_mode): Increase namebuf to 16.
10039 (emit_insn_modes_h): When processing BImode, don't
10040 also match partial int modes.
10041 (emit_class_narrowest_mode): Likewise.
10043 * config/bfin/bfin-modes.def: Add precision to PDI.
10044 * config/m32c/m32c-modes.def: Add precision to PSI.
10045 * config/msp430/msp430-modes.def: Add precision to PSI.
10046 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10047 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10049 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10052 * config/sh/sh.md (*addc): Rename existing variations to ...
10053 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10054 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10055 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10056 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10058 2013-10-29 Teresa Johnson <tejohnson@google.com>
10061 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10062 insanities when updating probabilities.
10064 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10066 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10067 prettyprinter for cgraph_node to reflect the conversion of the
10068 symtable types to a C++ class hierarchy: it now *is* a
10069 symtab_node_base, rather than having one (named "symbol").
10071 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10073 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10074 __cilkrts_pop_frame. If matched, then return true for built-in
10076 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10077 BUILT_IN_CILK_POP_FRAME case.
10078 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10079 (lhs_cilk_detect_spawn): Likewise.
10080 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10081 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10082 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10083 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10084 (LANG_HOOKS_CILKPLUS): Likewise.
10085 * tree.h (CILK_SPAWN_FN): Likewise.
10086 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10087 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10088 (OBJS): Added cilk-common.o.
10089 (BUILTINS_DEF): Added cilk-builtins.def.
10090 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10091 (lhd_cilk_detect_spawn): Likewise.
10092 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10093 (struct lang_hooks): Added new field called "cilkplus."
10094 * cilk-common.c: New file.
10095 * cilk.h: Likewise.
10096 * cilk-builtins.def: Likewise.
10097 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10098 "__cilk" macro and set it to 200.
10099 * function.h (struct function::cilk_frame_decl): New field.
10100 (struct function::is_cilk_function): Likewise.
10101 (struct function::calls_cilk_spawn): Likewise.
10102 * gimplify.c (gimplify_call_expr): Added a check if the function call
10103 being gimplified is a spawn detach point. If so, then add pop_frame
10104 and detach function calls.
10105 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10106 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10107 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10108 function. If so, added a _Cilk_sync and gimplified it.
10109 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10110 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10111 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10113 (can_inline_edge_p): Prevent inling of spawnee function.
10114 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10115 for functions that use Cilk keywords.
10116 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10117 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10118 CILK_SYNC_STMT cases.
10119 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10121 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10122 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10123 * passes.texi (Cilk Keywords): New section that describes the compiler
10124 code changes for handling Cilk Keywords.
10126 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10128 Patch autogenerated by refactor_symtab.py from
10129 https://github.com/davidmalcolm/gcc-refactoring-scripts
10130 revision 58bb219cc090b2f4516a9297d868c245495ee622
10132 * asan.c (asan_finish_file): Update for conversion of symtab types to
10133 a true class hierarchy.
10134 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10135 * cgraph.c (cgraph_get_body): Likewise.
10136 (cgraph_get_create_real_symbol_node): Likewise.
10137 (verify_cgraph_node): Likewise.
10138 (verify_edge_corresponds_to_fndecl): Likewise.
10139 (verify_edge_count_and_frequency): Likewise.
10140 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10141 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10142 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10143 (cgraph_node_cannot_return): Likewise.
10144 (cgraph_set_pure_flag_1): Likewise.
10145 (cgraph_set_const_flag_1): Likewise.
10146 (cgraph_set_nothrow_flag_1): Likewise.
10147 (cgraph_make_node_local_1): Likewise.
10148 (cgraph_for_node_and_aliases): Likewise.
10149 (cgraph_for_node_thunks_and_aliases): Likewise.
10150 (cgraph_node_can_be_local_p): Likewise.
10151 (cgraph_node_cannot_be_local_p_1): Likewise.
10152 (cgraph_function_body_availability): Likewise.
10153 (dump_cgraph_node): Likewise.
10154 (cgraph_rtl_info): Likewise.
10155 (cgraph_mark_address_taken_node): Likewise.
10156 (cgraph_remove_node): Likewise.
10157 (cgraph_release_function_body): Likewise.
10158 (cgraph_update_edges_for_call_stmt_node): Likewise.
10159 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10160 (cgraph_make_edge_direct): Likewise.
10161 (cgraph_resolve_speculation): Likewise.
10162 (cgraph_speculative_call_info): Likewise.
10163 (cgraph_turn_edge_to_speculative): Likewise.
10164 (cgraph_create_edge_1): Likewise.
10165 (cgraph_set_call_stmt): Likewise.
10166 (cgraph_node_for_asm): Likewise.
10167 (cgraph_add_thunk): Likewise.
10168 (cgraph_same_body_alias): Likewise.
10169 (cgraph_create_function_alias): Likewise.
10170 (cgraph_create_node): Likewise.
10171 (cgraph_create_empty_node): Likewise.
10172 (record_function_versions): Likewise.
10173 (used_from_object_file_p): Likewise.
10174 * cgraph.h (symtab_can_be_discarded): Likewise.
10175 (symtab_real_symbol_p): Likewise.
10176 (cgraph_mark_force_output_node): Likewise.
10177 (cgraph_edge_recursive_p): Likewise.
10178 (symtab_alias_target): Likewise.
10179 (varpool_all_refs_explicit_p): Likewise.
10180 (varpool_can_remove_if_no_refs): Likewise.
10181 (cgraph_only_called_directly_or_aliased_p): Likewise.
10182 (cgraph_next_function_with_gimple_body): Likewise.
10183 (cgraph_first_function_with_gimple_body): Likewise.
10184 (cgraph_function_with_gimple_body_p): Likewise.
10185 (cgraph_next_function): Likewise.
10186 (cgraph_first_function): Likewise.
10187 (cgraph_next_defined_function): Likewise.
10188 (cgraph_first_defined_function): Likewise.
10189 (varpool_next_defined_variable): Likewise.
10190 (varpool_first_defined_variable): Likewise.
10191 (varpool_next_static_initializer): Likewise.
10192 (varpool_first_static_initializer): Likewise.
10193 (varpool_next_variable): Likewise.
10194 (varpool_first_variable): Likewise.
10195 (varpool_node_name): Likewise.
10196 (varpool): Likewise.
10197 (cgraph): Likewise.
10198 (is_a_helper <varpool_node>::test): Likewise.
10199 (is_a_helper <cgraph_node>::test): Likewise.
10200 (varpool_variable_node): Likewise.
10201 (cgraph_function_or_thunk_node): Likewise.
10202 (varpool_alias_target): Likewise.
10203 (cgraph_alias_target): Likewise.
10204 (cgraph_node_name): Likewise.
10205 (varpool_node_asm_name): Likewise.
10206 (cgraph_node_asm_name): Likewise.
10207 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10208 (cgraph_rebuild_references): Likewise.
10209 (rebuild_cgraph_edges): Likewise.
10210 (record_eh_tables): Likewise.
10211 (build_cgraph_edges): Likewise.
10212 (mark_store): Likewise.
10213 (mark_load): Likewise.
10214 (mark_address): Likewise.
10215 (record_type_list): Likewise.
10216 (record_reference): Likewise.
10217 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10218 (cgraph_materialize_clone): Likewise.
10219 (cgraph_function_versioning): Likewise.
10220 (cgraph_copy_node_for_versioning): Likewise.
10221 (update_call_expr): Likewise.
10222 (cgraph_find_replacement_node): Likewise.
10223 (cgraph_create_virtual_clone): Likewise.
10224 (cgraph_clone_node): Likewise.
10225 * cgraphunit.c (compile): Likewise.
10226 (output_weakrefs): Likewise.
10227 (output_in_order): Likewise.
10228 (expand_function): Likewise.
10229 (assemble_thunks_and_aliases): Likewise.
10230 (expand_thunk): Likewise.
10231 (mark_functions_to_output): Likewise.
10232 (handle_alias_pairs): Likewise.
10233 (analyze_functions): Likewise.
10234 (walk_polymorphic_call_targets): Likewise.
10235 (varpool_finalize_decl): Likewise.
10236 (process_function_and_variable_attributes): Likewise.
10237 (cgraph_process_same_body_aliases): Likewise.
10238 (analyze_function): Likewise.
10239 (cgraph_add_new_function): Likewise.
10240 (cgraph_finalize_function): Likewise.
10241 (referred_to_p): Likewise.
10242 (cgraph_reset_node): Likewise.
10243 (cgraph_process_new_functions): Likewise.
10244 (enqueue_node): Likewise.
10245 (decide_is_symbol_needed): Likewise.
10246 * coverage.c (coverage_compute_profile_id): Likewise.
10247 * dbxout.c (dbxout_expand_expr): Likewise.
10248 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10249 (reference_to_unused): Likewise.
10250 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10251 * gimplify.c (unvisit_body): Likewise.
10252 (unshare_body): Likewise.
10253 * ipa-cp.c (ipcp_generate_summary): Likewise.
10254 (ipcp_decision_stage): Likewise.
10255 (identify_dead_nodes): Likewise.
10256 (decide_whether_version_node): Likewise.
10257 (decide_about_value): Likewise.
10258 (perhaps_add_new_callers): Likewise.
10259 (create_specialized_node): Likewise.
10260 (update_profiling_info): Likewise.
10261 (ipcp_propagate_stage): Likewise.
10262 (estimate_local_effects): Likewise.
10263 (good_cloning_opportunity_p): Likewise.
10264 (devirtualization_time_bonus): Likewise.
10265 (propagate_constants_accross_call): Likewise.
10266 (initialize_node_lattices): Likewise.
10267 (ipcp_cloning_candidate_p): Likewise.
10268 (determine_versionability): Likewise.
10269 (print_all_lattices): Likewise.
10270 (print_lattice): Likewise.
10271 (ipcp_discover_new_direct_edges): Likewise.
10272 * ipa-devirt.c (ipa_devirt): Likewise.
10273 (likely_target_p): Likewise.
10274 (update_type_inheritance_graph): Likewise.
10275 (possible_polymorphic_call_target_p): Likewise.
10276 (dump_possible_polymorphic_call_targets): Likewise.
10277 (devirt_variable_node_removal_hook): Likewise.
10278 (record_binfo): Likewise.
10279 (maybe_record_node): Likewise.
10280 (build_type_inheritance_graph): Likewise.
10281 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10282 (inline_generate_summary): Likewise.
10283 (inline_analyze_function): Likewise.
10284 (do_estimate_growth): Likewise.
10285 (simple_edge_hints): Likewise.
10286 (estimate_node_size_and_time): Likewise.
10287 (estimate_edge_devirt_benefit): Likewise.
10288 (compute_inline_parameters): Likewise.
10289 (estimate_function_body_sizes): Likewise.
10290 (compute_bb_predicates): Likewise.
10291 (initialize_inline_failed): Likewise.
10292 (dump_inline_summary): Likewise.
10293 (dump_inline_edge_summary): Likewise.
10294 * ipa-inline-transform.c (inline_transform): Likewise.
10295 (preserve_function_body_p): Likewise.
10296 (save_inline_function_body): Likewise.
10297 (inline_call): Likewise.
10298 (clone_inlined_nodes): Likewise.
10299 (can_remove_node_now_p): Likewise.
10300 (can_remove_node_now_p_1): Likewise.
10301 * ipa-inline.c (early_inliner): Likewise.
10302 (early_inline_small_functions): Likewise.
10303 (inline_always_inline_functions): Likewise.
10304 (ipa_inline): Likewise.
10305 (flatten_function): Likewise.
10306 (inline_small_functions): Likewise.
10307 (speculation_useful_p): Likewise.
10308 (recursive_inlining): Likewise.
10309 (update_caller_keys): Likewise.
10310 (reset_edge_caches): Likewise.
10311 (update_edge_key): Likewise.
10312 (edge_badness): Likewise.
10313 (relative_time_benefit): Likewise.
10314 (want_inline_self_recursive_call_p): Likewise.
10315 (want_inline_small_function_p): Likewise.
10316 (want_early_inline_function_p): Likewise.
10317 (num_calls): Likewise.
10318 (can_early_inline_edge_p): Likewise.
10319 (can_inline_edge_p): Likewise.
10320 (report_inline_failed_reason): Likewise.
10321 * ipa-profile.c (ipa_profile): Likewise.
10322 (ipa_propagate_frequency): Likewise.
10323 (ipa_propagate_frequency_1): Likewise.
10324 (ipa_profile_generate_summary): Likewise.
10325 * ipa-prop.c (ipcp_transform_function): Likewise.
10326 (read_replacements_section): Likewise.
10327 (ipa_prop_read_section): Likewise.
10328 (ipa_modify_call_arguments): Likewise.
10329 (ipa_print_node_params): Likewise.
10330 (propagate_controlled_uses): Likewise.
10331 (update_indirect_edges_after_inlining): Likewise.
10332 (remove_described_reference): Likewise.
10333 (ipa_make_edge_direct_to_target): Likewise.
10334 (ipa_analyze_node): Likewise.
10335 (ipa_analyze_params_uses): Likewise.
10336 (ipa_compute_jump_functions): Likewise.
10337 (ipa_get_callee_param_type): Likewise.
10338 (ipa_print_node_jump_functions): Likewise.
10339 (ipa_initialize_node_params): Likewise.
10340 (ipa_populate_param_decls): Likewise.
10341 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10342 (write_agg_replacement_chain): Likewise.
10343 (ipa_write_node_info): Likewise.
10344 (ipa_edge_duplication_hook): Likewise.
10345 (try_decrement_rdesc_refcount): Likewise.
10346 * ipa-pure-const.c (propagate_nothrow): Likewise.
10347 (propagate_pure_const): Likewise.
10348 (pure_const_read_summary): Likewise.
10349 (pure_const_write_summary): Likewise.
10350 (analyze_function): Likewise.
10351 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10352 (ipa_ref_referring_ref_list): Likewise.
10353 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10354 (ipa_remove_stmt_references): Likewise.
10355 (ipa_find_reference): Likewise.
10356 (ipa_dump_referring): Likewise.
10357 (ipa_dump_references): Likewise.
10358 (ipa_record_reference): Likewise.
10359 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10360 (ipa_reference_write_optimization_summary): Likewise.
10361 (write_node_summary_p): Likewise.
10362 (propagate): Likewise.
10363 (read_write_all_from_decl): Likewise.
10364 (generate_summary): Likewise.
10365 (analyze_function): Likewise.
10366 (propagate_bits): Likewise.
10367 (ipa_reference_get_not_written_global): Likewise.
10368 (ipa_reference_get_not_read_global): Likewise.
10369 * ipa-split.c (execute_split_functions): Likewise.
10370 (split_function): Likewise.
10371 * ipa-utils.c (ipa_merge_profiles): Likewise.
10372 (dump_cgraph_node_set): Likewise.
10373 (ipa_reverse_postorder): Likewise.
10374 (ipa_edge_within_scc): Likewise.
10375 (ipa_get_nodes_in_cycle): Likewise.
10376 (ipa_free_postorder_info): Likewise.
10377 (ipa_reduced_postorder): Likewise.
10378 (searchc): Likewise.
10379 (recursive_call_p): Likewise.
10380 * ipa.c (ipa_cdtor_merge): Likewise.
10381 (record_cdtor_fn): Likewise.
10382 (function_and_variable_visibility): Likewise.
10383 (varpool_externally_visible_p): Likewise.
10384 (cgraph_externally_visible_p): Likewise.
10385 (comdat_can_be_unshared_p): Likewise.
10386 (comdat_can_be_unshared_p_1): Likewise.
10387 (address_taken_from_non_vtable_p): Likewise.
10388 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10389 (symtab_remove_unreachable_nodes): Likewise.
10390 (walk_polymorphic_call_targets): Likewise.
10391 (process_references): Likewise.
10392 (enqueue_node): Likewise.
10393 (has_addr_references_p): Likewise.
10394 (cgraph_non_local_node_p_1): Likewise.
10395 * is-a.h (varpool_analyze_node): Likewise.
10396 * lto-cgraph.c (input_symtab): Likewise.
10397 (merge_profile_summaries): Likewise.
10398 (input_cgraph_1): Likewise.
10399 (input_edge): Likewise.
10400 (input_varpool_node): Likewise.
10401 (input_node): Likewise.
10402 (input_overwrite_node): Likewise.
10403 (compute_ltrans_boundary): Likewise.
10404 (output_refs): Likewise.
10405 (lto_output_varpool_node): Likewise.
10406 (lto_output_node): Likewise.
10407 (reachable_from_other_partition_p): Likewise.
10408 (referenced_from_other_partition_p): Likewise.
10409 (lto_output_edge): Likewise.
10410 (output_node_opt_summary): Likewise.
10411 (add_node_to): Likewise.
10412 (reachable_from_this_partition_p): Likewise.
10413 (lto_set_symtab_encoder_in_partition): Likewise.
10414 (lto_symtab_encoder_in_partition_p): Likewise.
10415 (lto_set_symtab_encoder_encode_initializer): Likewise.
10416 (lto_symtab_encoder_encode_initializer_p): Likewise.
10417 (lto_set_symtab_encoder_encode_body): Likewise.
10418 (lto_symtab_encoder_encode_body_p): Likewise.
10419 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10421 * lto-streamer-in.c (lto_read_body): Likewise.
10422 (fixup_call_stmt_edges): Likewise.
10423 (fixup_call_stmt_edges_1): Likewise.
10424 * lto-streamer-out.c (produce_symtab): Likewise.
10425 (output_symbol_p): Likewise.
10426 (write_symbol): Likewise.
10427 (lto_output): Likewise.
10428 (copy_function): Likewise.
10429 (output_function): Likewise.
10430 * passes.c (function_called_by_processed_nodes_p): Likewise.
10431 (ipa_write_optimization_summaries): Likewise.
10432 (ipa_write_summaries): Likewise.
10433 (do_per_function_toporder): Likewise.
10434 (do_per_function): Likewise.
10435 (dump_passes): Likewise.
10436 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10437 (symtab_nonoverwritable_alias): Likewise.
10438 (symtab_nonoverwritable_alias_1): Likewise.
10439 (symtab_for_node_and_aliases): Likewise.
10440 (symtab_resolve_alias): Likewise.
10441 (fixup_same_cpp_alias_visibility): Likewise.
10442 (symtab_alias_ultimate_target): Likewise.
10443 (symtab_used_from_object_file_p): Likewise.
10444 (verify_symtab_base): Likewise.
10445 (dump_symtab_base): Likewise.
10446 (symtab_node_name): Likewise.
10447 (symtab_node_asm_name): Likewise.
10448 (symtab_dissolve_same_comdat_group_list): Likewise.
10449 (symtab_add_to_same_comdat_group): Likewise.
10450 (symtab_unregister_node): Likewise.
10451 (symtab_insert_node_to_hashtable): Likewise.
10452 (symtab_register_node): Likewise.
10453 (unlink_from_assembler_name_hash): Likewise.
10454 (insert_to_assembler_name_hash): Likewise.
10455 (eq_assembler_name): Likewise.
10456 (hash_node_by_assembler_name): Likewise.
10457 (eq_node): Likewise.
10458 (hash_node): Likewise.
10459 * toplev.c (wrapup_global_declaration_2): Likewise.
10460 * trans-mem.c (ipa_tm_execute): Likewise.
10461 (ipa_tm_transform_clone): Likewise.
10462 (ipa_tm_transform_transaction): Likewise.
10463 (ipa_tm_transform_calls_redirect): Likewise.
10464 (ipa_tm_insert_gettmclone_call): Likewise.
10465 (ipa_tm_insert_irr_call): Likewise.
10466 (ipa_tm_create_version): Likewise.
10467 (ipa_tm_create_version_alias): Likewise.
10468 (ipa_tm_mark_forced_by_abi_node): Likewise.
10469 (ipa_tm_mark_force_output_node): Likewise.
10470 (ipa_tm_diagnose_tm_safe): Likewise.
10471 (ipa_tm_mayenterirr_function): Likewise.
10472 (ipa_tm_scan_irr_function): Likewise.
10473 (ipa_tm_note_irrevocable): Likewise.
10474 (ipa_tm_scan_calls_clone): Likewise.
10475 (get_cg_data): Likewise.
10476 * tree-eh.c (tree_could_trap_p): Likewise.
10477 * tree-emutls.c (ipa_lower_emutls): Likewise.
10478 (create_emultls_var): Likewise.
10479 (lower_emutls_function_body): Likewise.
10480 (gen_emutls_addr): Likewise.
10481 (emutls_decl): Likewise.
10482 (new_emutls_decl): Likewise.
10483 * tree-inline.c (tree_function_versioning): Likewise.
10484 (optimize_inline_calls): Likewise.
10485 (expand_call_inline): Likewise.
10486 (estimate_num_insns): Likewise.
10487 (copy_bb): Likewise.
10488 (delete_unreachable_blocks_update_callgraph): Likewise.
10489 * tree-nested.c (gimplify_all_functions): Likewise.
10490 (create_nesting_tree): Likewise.
10491 (check_for_nested_with_variably_modified): Likewise.
10492 * tree-pretty-print.c (dump_function_header): Likewise.
10493 * tree-profile.c (tree_profiling): Likewise.
10494 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10495 (modify_function): Likewise.
10496 (convert_callers): Likewise.
10497 (convert_callers_for_node): Likewise.
10498 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10499 (associate_varinfo_to_alias): Likewise.
10500 (create_variable_info_for): Likewise.
10501 (get_constraint_for_ssa_var): Likewise.
10502 * tree-vectorizer.c (increase_alignment): Likewise.
10503 * tree.c (find_decls_types_in_var): Likewise.
10504 (find_decls_types_in_node): Likewise.
10505 (free_lang_data_in_decl): Likewise.
10506 * value-prof.c (gimple_ic_transform): Likewise.
10507 (gimple_ic): Likewise.
10508 (check_ic_target): Likewise.
10509 (init_node_map): Likewise.
10510 * varasm.c (decl_binds_to_current_def_p): Likewise.
10511 (default_binds_local_p_1): Likewise.
10512 (dump_tm_clone_pairs): Likewise.
10513 (assemble_alias): Likewise.
10514 (find_decl): Likewise.
10515 (mark_decl_referenced): Likewise.
10516 * varpool.c (varpool_for_node_and_aliases): Likewise.
10517 (varpool_extra_name_alias): Likewise.
10518 (varpool_create_variable_alias): Likewise.
10519 (add_new_static_var): Likewise.
10520 (varpool_finalize_named_section_flags): Likewise.
10521 (varpool_remove_unreferenced_decls): Likewise.
10522 (enqueue_node): Likewise.
10523 (varpool_assemble_decl): Likewise.
10524 (assemble_aliases): Likewise.
10525 (varpool_analyze_node): Likewise.
10526 (cgraph_variable_initializer_availability): Likewise.
10527 (varpool_add_new_variable): Likewise.
10528 (ctor_for_folding): Likewise.
10529 (dump_varpool_node): Likewise.
10530 (varpool_remove_initializer): Likewise.
10531 (varpool_remove_node): Likewise.
10532 (varpool_node_for_decl): Likewise.
10533 (varpool_create_empty_node): Likewise.
10534 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10535 (ix86_get_function_versions_dispatcher): Likewise.
10537 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10539 * cgraph.h (symtab_node_base): Convert to a class;
10540 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10541 chain_next/prev from symtab_node_def.
10542 (cgraph_node): Inherit from symtab_node; add GTY option
10543 tag ("SYMTAB_FUNCTION").
10544 (varpool_node): Inherit from symtab_node; add GTY option
10545 tag ("SYMTAB_VARIABLE").
10546 (symtab_node_def): Remove.
10547 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10548 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10549 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10550 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10552 * ipa-ref.h (symtab_node_def): Drop.
10553 (symtab_node): Change underlying type from symtab_node_def to
10555 (const_symtab_node): Likwise.
10557 * is-a.h: Update examples in comment.
10559 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10560 (assembler_name_hash): Likewise.
10562 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10564 * doc/tree-ssa.texi (gimple_phi_result): Document.
10565 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10566 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10567 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10568 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10570 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10572 * expr.h: Revert change and include tree-core.h.
10573 * rtl.h: Revert change and don't include tree-core.h.
10575 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10577 * config/darwin.c: Include gimple.h.
10578 * config/i386/winnt.c: Likewise.
10580 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10582 PR tree-optimization/19831
10583 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10585 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10587 * tree-outof-ssa.h: Remove include files.
10588 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10589 * expr.c: Likewise.
10590 * tree-ssa-coalesce.c: Likewise.
10591 * cfgexpand.c: Likewise.
10592 * tree-ssa-ter.c: Likewise.
10593 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10594 * lto-streamer.h: Likewise.
10595 * cgraphbuild.c: Add gimple.h to include list.
10596 * data-streamer-in.c: Likewise.
10597 * ipa-cp.c: Likewise.
10598 * tree-streamer.c: Likewise.
10599 * lto-compress.c: Likewise.
10600 * ipa-reference.c: Likewise.
10601 * data-streamer-out.c: Likewise.
10602 * lto-cgraph.c: Likewise.
10603 * cgraphclones.c: Likewise.
10604 * ipa-utils.c: Likewise.
10605 * data-streamer.c: Likewise.
10606 * ipa-split.c: Likewise.
10607 * lto-section-in.c: Likewise.
10608 * tree-streamer-out.c: Likewise.
10609 * ipa-prop.c: Likewise.
10610 * tree-streamer-in.c: Likewise.
10611 * symtab.c: Likewise.
10612 * opts-global.c: Likewise.
10613 * lto-opts.c: Likewise.
10614 * lto-section-out.c: Likewise.
10615 * lto-streamer.c: Likewise.
10616 * rtl.h: Add tree-core.h to include list.
10617 * expr.h: Remove tree-core.h from include list.
10618 * gimple.h: Likewise.
10619 * ipa-utils.h: Likewise.
10620 * streamer-hooks.h: Likewise.
10621 * streamer-hooks.c: Include input.h.
10623 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10625 * config/arm/arm.c (cortexa7_extra_costs): New table.
10626 (arm_cortex_a7_tune): New.
10627 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10629 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10631 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10633 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10635 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10636 to use autogenerated markers for a class-hierarchy, every class
10637 must have a GTY marker.
10638 * gengtype.h (struct type): Add linked list of subclasses to
10639 the "s" member of the union.
10640 (add_subclass): New decl.
10641 * gengtype-state.c (read_state_struct_type): Set up subclass
10643 * gengtype.c (get_ultimate_base_class): New.
10644 (add_subclass): New.
10645 (new_structure): Set up subclass linked list.
10646 (set_gc_used_type): Propagate usage information to subclasses.
10647 (output_mangled_typename): Use get_ultimate_base_class.
10648 (walk_subclasses): Use the subclass linked list, avoiding an
10649 O(N^2) when writing out all types.
10650 (walk_type): Issue an error if the base class is missing a tag,
10651 rather than generating bogus C code. Add a gcc_unreachable
10652 default case, in case people omit tags from concrete subclasses,
10653 or get the values wrong.
10654 (write_func_for_structure): Issue an error for subclasses for
10655 which the base doesn't have a "desc", since otherwise the
10656 autogenerated routines for the base would silently fail to visit
10657 any subclass fields.
10658 (write_root): Use get_ultimate_base_class, tweaking constness of
10659 tp to match that function's signature.
10661 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10663 * doc/gty.texi (GTY Options): Add note about inheritance to
10664 description of desc and tag.
10665 (Inheritance and GTY): New.
10667 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10669 * gengtype-parse.c (opts_have): Drop "static" so that
10670 we can use this from gengtype.c.
10671 * gengtype.c (set_gc_used_type): Mark any base class as used;
10672 update field traversal to visit inherited fields.
10673 (output_mangled_typename): Convert references to classes within
10674 an inheritance hierarchy to reference the ultimate base class,
10675 since only it will have gt_ functions.
10676 (get_string_option): New.
10677 (walk_subclasses): New.
10678 (walk_type): Treat GTY structs that have a "desc" as being the
10679 root of an inheritance hierarchy. Generate a switch on it
10680 within the marking function which walks all subclasses, adding
10681 cases for them via walk_subclasses. For subclasses, visit all
10682 fields of the type (including inherited ones).
10683 (write_func_for_structure): Don't write fns for subclasses, only
10684 for the ultimate base class within an inheritance hierarchy.
10685 Subclasses-marking will be handled by the base class marking functions.
10686 (write_types): Likewise.
10687 (write_local_func_for_structure): Likewise.
10688 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10689 a "tag" option (and are thus concrete subclasses).
10690 (write_root): Use the marker function for the ultimate base class.
10691 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10692 (opts_have): Add declaration.
10694 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10696 * lra-spills.c (lra_final_code_change): Remove useless move insns
10697 originated from moves of pseudos.
10699 2013-10-28 Jeff Law <law@redhat.com>
10701 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10703 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10705 * df-scan.c (df_collection_rec): Adjust.
10706 (copy_defs): New constant.
10707 (copy_uses): Likewise.
10708 (copy_eq_uses): Likewise.
10709 (copy_mw): Likewise.
10710 (copy_all): Likewise.
10711 (df_insn_rescan): Adjust.
10712 (df_notes_rescan): Likewise.
10713 (df_swap_refs): Likewise.
10714 (df_sort_and_compress_refs): Likewise.
10715 (df_sort_and_compress_mws): Likewise.
10716 (df_install_refs): Likewise.
10717 (df_install_mws): Likewise.
10718 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10720 (df_bb_refs_record): Adjust.
10721 (df_record_entry_block_defs): Likewise.
10722 (df_record_exit_block_defs): Likewise.
10723 (df_refs_verify): Likewise.
10724 (df_mws_verify): Likewise.
10725 (df_insn_refs_verify): Likewise.
10726 (df_bb_verify): Likewise.
10727 * ipa-pure-const.c (finish_state): Remove.
10728 (propagate): Adjust.
10729 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10730 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10731 var-tracking.c: Adjust.
10732 * vec.c (stack_vecs): Remove.
10733 (register_stack_vec): Likewise.
10734 (stack_vec_register_index): Likewise.
10735 (unregister_stack_vec): Likewise.
10736 * vec.h (struct va_stack): Remove.
10737 (struct vec<T, A, vl_ptr>): Specialize as
10738 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10739 allocation strategy compatable with the vl_ptr layout.
10740 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10741 specialization anyway.
10742 (class stack_vec): New class.
10743 (vec_stack_alloc): Remove.
10744 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10746 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10748 Sergey Lega <sergey.s.lega@intel.com>
10749 Anna Tikhonova <anna.tikhonova@intel.com>
10750 Ilya Tocar <ilya.tocar@intel.com>
10751 Andrey Turetskiy <andrey.turetskiy@intel.com>
10752 Ilya Verbin <ilya.verbin@intel.com>
10753 Kirill Yukhin <kirill.yukhin@intel.com>
10754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10756 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10757 (*prefetch_avx512pf_<mode>): New.
10758 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10759 (avx512f_maskcmp<mode>3): Ditto.
10760 (vashrv16si3): Ditto.
10762 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10764 Sergey Lega <sergey.s.lega@intel.com>
10765 Anna Tikhonova <anna.tikhonova@intel.com>
10766 Ilya Tocar <ilya.tocar@intel.com>
10767 Andrey Turetskiy <andrey.turetskiy@intel.com>
10768 Ilya Verbin <ilya.verbin@intel.com>
10769 Kirill Yukhin <kirill.yukhin@intel.com>
10770 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10772 * config/i386/i386.md (any_truncate): New.
10773 (trunsuffix): Ditto.
10774 * config/i386/predicates.md (const_8_to_9_operand): New.
10775 (const_10_to_11_operand): Ditto.
10776 (const_12_to_13_operand): Ditto.
10777 (const_14_to_15_operand): Ditto.
10778 (const_16_to_19_operand): Ditto.
10779 (const_20_to_23_operand): Ditto.
10780 (const_24_to_27_operand): Ditto.
10781 (const_28_to_31_operand): Ditto.
10782 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10783 (cvtusi2<ssescalarmodesuffix>32): New.
10784 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10785 (ufloatv16siv16sf2): Ditto.
10786 (avx512f_fix_notruncv16sfv16si): Ditto.
10787 (avx512f_ufix_notruncv16sfv16si): Ditto.
10788 (avx512f_vcvtss2usi): Ditto.
10789 (avx512f_vcvtss2usiq): Ditto.
10790 (avx512f_vcvttss2usi): Ditto.
10791 (avx512f_vcvttss2usiq): Ditto.
10792 (avx512f_vcvtsd2usi): Ditto.
10793 (avx512f_vcvtsd2usiq): Ditto.
10794 (avx512f_vcvttsd2usi): Ditto.
10795 (avx512f_vcvttsd2usiq): Ditto.
10796 (ufloatv8siv8df): Ditto.
10797 (avx512f_cvtdq2pd512_2): Ditto.
10798 (avx512f_cvtpd2dq512): Ditto.
10799 (avx512f_ufix_notruncv8dfv8si): Ditto.
10800 (avx512f_cvtpd2ps512): Ditto.
10801 (vec_unpacks_lo_v16sf): Ditto.
10802 (vec_unpacks_hi_v16sf): Ditto.
10803 (vec_unpacks_float_hi_v16si): Ditto.
10804 (vec_unpacks_float_lo_v16si): Ditto.
10805 (avx512f_unpckhps512): Ditto.
10806 (avx512f_unpcklps512): Ditto.
10807 (avx512f_movshdup512): Ditto.
10808 (avx512f_movsldup512): Ditto.
10809 (vec_extract_lo_v32hi): Ditto.
10810 (vec_extract_hi_v32hi): Ditto.
10811 (vec_extract_lo_v64qi): Ditto.
10812 (vec_extract_hi_v64qi): Ditto.
10813 (avx512f_unpckhpd512): Ditto.
10814 (avx512f_movddup512): Ditto.
10815 (avx512f_unpcklpd512): Ditto.
10816 (*avx512f_unpcklpd512): Ditto.
10817 (avx512f_shufps512_1): Ditto.
10818 (avx512f_shufpd512_1): Ditto.
10819 (avx512f_interleave_highv8di): Ditto.
10820 (avx512f_interleave_lowv8di): Ditto.
10821 (PMOV_DST_MODE): Ditto.
10822 (pmov_src_mode): Ditto.
10823 (pmov_src_lower): Ditto.
10824 (pmov_suff): Ditto.
10825 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10826 (*avx512f_<code>v8div16qi2): Ditto.
10827 (*avx512f_<code>v8div16qi2_store): Ditto.
10828 (vec_widen_umult_even_v16si): Ditto.
10829 (*vec_widen_umult_even_v16si): Ditto.
10830 (vec_widen_smult_even_v16si): Ditto.
10831 (*vec_widen_smult_even_v16si): Ditto.
10832 (avx512f_interleave_highv16si): Ditto.
10833 (avx512f_interleave_lowv16si): Ditto.
10834 (avx512f_<code>v16qiv16si2): Ditto.
10835 (avx512f_<code>v16hiv16si2): Ditto.
10836 (avx512f_<code>v8qiv8di2): Ditto.
10837 (avx512f_<code>v8hiv8di2): Ditto.
10838 (avx512f_<code>v8siv8di2): Ditto.
10839 (avx512cd_maskb_vec_dupv8di): Ditto.
10840 (avx512cd_maskw_vec_dupv16si): Ditto.
10841 (avx512f_vcvtph2ps512): Ditto.
10842 (avx512f_vcvtps2ph512): Ditto.
10843 (VEC_EXTRACT_MODE): Extened with wider modes.
10844 (VEC_PERM_AVX2): Ditto.
10845 (VEC_PERM_CONST): Ditto.
10847 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10849 * config/arc/arc.c (arc_ccfsm_post_advance):
10850 Add comment about TYPE_RETURN.
10852 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10854 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10855 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10856 (strip_offset): Convert offset to unsigned number.
10858 2013-10-27 Tom de Vries <tom@codesourcery.com>
10860 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10861 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10863 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10865 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10866 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10867 (TARGET_BIG_ENDIAN): New macro.
10868 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10869 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10870 * config/sh/sh.c: Likewise.
10871 * config/sh/sh.h: Likewise.
10873 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10875 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10876 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10878 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10880 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10882 (cmpstr_t, cmpstrsi): Fix formatting.
10884 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10887 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10888 addressing, do not use general_operand for memory operands.
10890 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10893 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10894 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10896 2013-10-26 Jeff Law <law@redhat.com>
10898 * predict.c (PRED_MUDFLAP): Remove.
10899 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10901 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10902 (OBJS): Remove tree-nomudflap.o
10903 (GTFILES): Remove tree-mudflap.c
10904 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10905 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10906 (mfwrap_spec, mflib_spec): Likewise.
10907 (cpp_unique_options, cc1_options, static_specs): Likewise.
10908 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10909 * passes.def: Likewise.
10910 * toplev.c (compile_file, process_options): Likewise.
10911 * tree-inline.c (copy_tree_r): Likewise.
10912 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10913 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10914 (build_constant_desc, output_constant_def_contents): Likewise.
10915 (categorize_decl_for_section): Likewise.
10916 * tree-mudflap.c: Removed.
10917 * tree-mudflap.h: Removed.
10918 * tree-nomudflap.c: Removed.
10919 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10920 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10921 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10922 * config/sol2.h (MFLIB_SPEC): Likewise.
10923 * doc/install.texi: Remove mudflap references.
10924 * doc/passes.texi: Similarly.
10925 * doc/sourcebuild.texi: Similarly.
10926 * doc/invoke.texi: Remove mudlfap related options.
10928 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10930 PR rtl-optimization/58759
10931 * lra-constraints.c (lra_constraints): Remove wrong condition to
10932 remove insn setting up an equivalent pseudo.
10934 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10936 * config/rs6000/rs6000-protos.h
10937 (rs6000_secondary_memory_needed_mode): New prototype.
10938 * config/rs6000/rs6000.c: Include ira.h.
10939 (TARGET_LRA_P): Redefine.
10940 (rs6000_legitimate_offset_address_p): Call
10941 legitimate_constant_pool_address_p in strict mode for LRA.
10942 (rs6000_legitimate_address_p): Ditto.
10943 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10944 (rs6000_emit_move): Add LRA version of code to generate load/store
10946 (rs6000_secondary_memory_needed_mode): New.
10947 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10948 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10949 constants, memory, and FP registers.
10950 (rs6000_lra_p): New.
10951 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10952 * config/rs6000/rs6000.opt (mlra): New option.
10953 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10955 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10957 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10958 has_single_use () and not do the conversion if has_single_use ()
10959 returns false for the multiplication result.
10961 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10963 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10964 to "NODE", since this works on a "tree", not an
10966 (CONSTANT_CLASS_P): Likewise.
10967 (TYPE_P): Likewise.
10968 (DECL_P): Likewise.
10969 (INDIRECT_REF_P): Likewise.
10970 (REFERENCE_CLASS_P): Likewise.
10971 (COMPARISON_CLASS_P): Likewise.
10972 (UNARY_CLASS_P): Likewise.
10973 (BINARY_CLASS_P): Likewise.
10974 (STATEMENT_CLASS_P): Likewise.
10975 (VL_EXP_CLASS_P): Likewise.
10976 (EXPRESSION_CLASS_P): Likewise.
10977 (IS_TYPE_OR_DECL_P): Likewise.
10979 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10981 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10982 ADDR_EXPR in the defining statement.
10984 2013-10-25 Richard Biener <rguenther@suse.de>
10986 PR tree-optimization/58626
10987 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10988 anti_dd, output_dd and input_dd.
10989 (struct rdg_edge): Remove level and relation members.
10990 (RDGE_LEVEL, RDGE_RELATION): Remove.
10991 (dot_rdg_1): Adjust.
10992 (create_rdg_edge_for_ddr): Remove.
10993 (create_rdg_edges_for_scalar): Adjust.
10994 (create_edge_for_control_dependence): Likewise.
10995 (create_rdg_edges): Split into ...
10996 (create_rdg_flow_edges): ... this
10997 (create_rdg_cd_edges): ... and this.
10998 (free_rdg): Adjust.
10999 (build_rdg): Likewise, do not compute data dependences or
11000 add edges for them.
11001 (pg_add_dependence_edges): New function.
11003 (distribute_loop): First apply all non-dependence based
11004 partition mergings. Then compute dependences between partitions
11005 and merge and order partitions according to them.
11007 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11009 PR rtl-optimization/58831
11010 * alias.c (init_alias_analysis): At the beginning of each iteration,
11011 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11013 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11015 * recog.c (search_ofs): New static variable moved from...
11016 (peep2_find_free_register): ...here.
11017 (peephole2_optimize): Initialize it.
11019 2013-10-25 Tobias Burnus <burnus@net-b.de>
11021 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11023 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11025 * config/i386/i386.h (TARGET_MPX): New define.
11026 (TARGET_MPX_P): Ditto.
11028 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11030 * config/i386/constraints.md (B): New.
11033 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11034 * config/i386/i386-modes.def (BND32): New.
11036 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11037 * config/i386/i386.c (isa_opts): Add mmpx.
11038 (regclass_map): Add bound registers.
11039 (dbx_register_map): Likewise.
11040 (dbx64_register_map): Likewise.
11041 (svr4_dbx_register_map): Likewise.
11043 (ix86_option_override_internal): Support MPX ISA.
11044 (ix86_conditional_register_usage): Support bound registers.
11045 (print_reg): Likewise.
11046 (ix86_code_end): Add MPX bnd prefix.
11047 (output_set_got): Likewise.
11048 (ix86_output_call_insn): Likewise.
11049 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11050 (ix86_print_operand_punct_valid_p): Likewise.
11051 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11053 (ix86_class_likely_spilled_p): Add bound regs support.
11054 (ix86_hard_regno_mode_ok): Likewise.
11055 (x86_order_regs_for_local_alloc): Likewise.
11056 (ix86_bnd_prefixed_insn_p): New.
11057 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11058 (FIXED_REGISTERS): Add bound registers.
11059 (CALL_USED_REGISTERS): Likewise.
11060 (REG_ALLOC_ORDER): Likewise.
11061 (HARD_REGNO_NREGS): Likewise.
11063 (VALID_BND_REG_MODE): New.
11064 (FIRST_BND_REG): New.
11065 (LAST_BND_REG): New.
11066 (reg_class): Add BND_REGS.
11067 (REG_CLASS_NAMES): Likewise.
11068 (REG_CLASS_CONTENTS): Likewise.
11069 (BND_REGNO_P): New.
11070 (ANY_BND_REG_P): New.
11072 (HI_REGISTER_NAMES): Add bound registers.
11073 * config/i386/i386.md (UNSPEC_BNDMK): New.
11074 (UNSPEC_BNDMK_ADDR): New.
11075 (UNSPEC_BNDSTX): New.
11076 (UNSPEC_BNDLDX): New.
11077 (UNSPEC_BNDLDX_ADDR): New.
11078 (UNSPEC_BNDCL): New.
11079 (UNSPEC_BNDCU): New.
11080 (UNSPEC_BNDCN): New.
11081 (UNSPEC_MPX_FENCE): New.
11084 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11085 (length_immediate): Likewise.
11086 (prefix_0f): Likewise.
11087 (memory): Likewise.
11088 (prefix_rep): Check for bnd prefix.
11089 (length_nobnd): New.
11090 (length): Use length_nobnd if specified.
11095 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11096 (*jcc_2): Likewise.
11098 (simple_return_internal): Likewise.
11099 (simple_return_pop_internal): Likewise.
11100 (*indirect_jump): Add MPX bnd prefix.
11101 (*tablejump_1): Likewise.
11102 (simple_return_internal_long): Likewise.
11103 (simple_return_indirect_internal): Likewise.
11107 (*mov<mode>_internal_mpx): New.
11108 (<mode>_<bndcheck>): New.
11109 (*<mode>_<bndcheck>): New.
11111 (*<mode>_ldx): New.
11113 (*<mode>_stx): New.
11114 * config/i386/predicates.md (lea_address_operand): Rename to...
11115 (address_no_seg_operand): ... this.
11116 (address_mpx_no_base_operand): New.
11117 (address_mpx_no_index_operand): New.
11118 (bnd_mem_operator): New.
11119 * config/i386/i386.opt (mmpx): New.
11120 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11121 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11123 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11125 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11126 * tree.def (POINTER_BOUNDS_TYPE): New.
11127 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11128 (POINTER_BOUNDS_MODE): New.
11129 (make_pointer_bounds_mode): New.
11130 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11131 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11132 (layout_type): Support POINTER_BOUNDS_TYPE.
11133 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11134 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11135 (type_contains_placeholder_1): Likewise.
11136 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11137 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11138 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11140 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11142 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11143 mode of address computation when calling memory_address_addr_space.
11145 2013-08-24 Richard Henderson <rth@twiddle.net>
11148 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11149 instead of create_convert_operand_to.
11150 (maybe_emit_sync_lock_test_and_set): Likewise.
11151 (expand_atomic_compare_and_swap): Likewise.
11152 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11154 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11156 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11157 Change param_is to use the struct and not the pointer to the struct.
11159 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11161 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11162 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11163 Move to targhooks.c.
11164 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11165 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11166 Relocate from gimplify.c.
11167 * targhooks.h: Add 2 prototypes.
11168 * tree.h: Delete 2 prototypes.
11170 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11172 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11173 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11175 2013-10-24 Cong Hou <congh@google.com>
11177 * convert.c (convert_to_real): Guard those unsafe math function
11178 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11181 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11184 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11186 (cgraph_create_edge): Use the new argument.
11187 (cgraph_create_indirect_edge): Likewise.
11189 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11191 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11192 TYPE_UNCOND_BRANCH.
11193 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11194 changes statep->state.
11196 2013-10-24 Tobias Burnus <burnus@net-b.de>
11199 * tree-cfg.c (replace_loop_annotate): New function.
11200 (execute_build_cfg): Call it.
11201 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11202 * internal-fn.c (expand_ANNOTATE): New function.
11203 * internal-fn.def (ANNOTATE): Define as new internal function.
11204 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11205 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11206 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11207 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11208 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11210 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11211 Marcus Shawcroft <marcus.shawcroft@arm.com>
11213 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11214 Special case reload SP+C into none GENERAL_REGS.
11216 2013-10-24 Michael Matz <matz@suse.de>
11218 * gengtype.c (is_file_equal): Check that files will be same length.
11220 2013-10-25 Christian Bruel <christian.bruel@st.com>
11222 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11223 * config/sh/t-sh (sh-mem.o): New rule.
11224 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11225 (sh_expand_cmpstr): New function.
11226 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11227 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11228 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11229 (rotlhi3_8): Rename.
11231 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11233 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11234 * Makefile.in (CXXDEPMODE): Assign and change users.
11235 (CCDEPMODE): Delete.
11236 * configure: Regenerate.
11238 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11240 * gengtype-parse.c (require_without_advance): New.
11241 (type): For GTY-marked types that are not GTY((user)), parse any
11242 base classes, requiring them to be single-inheritance, and not
11243 be templates. For non-GTY-marked types and GTY((user)),
11244 continue to skip over any C++ inheritance specification.
11245 * gengtype-state.c (state_writer::write_state_struct_type):
11246 Write base class of type (if any).
11247 (read_state_struct_type): Read base class of type (if any).
11248 * gengtype.c (new_structure): Add a "base_class" parameter.
11249 (create_optional_field_): Update for new parameter to new_structure.
11250 (adjust_field_rtx_def): Likewise.
11251 (adjust_field_tree_exp): Likewise.
11252 * gengtype.h (struct type): Add "base_class" field to the s
11254 (new_structure): Add "base" parameter.
11256 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11259 * config/i386/i386.c (ix86_option_override_internal):
11260 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11261 (ix86_valid_target_attribute_tree):
11262 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11263 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11265 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11267 * tree-ssa-loop.h: Remove include files.
11268 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11269 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11270 * graphite-clast-to-gimple.c: Likewise.
11271 * graphite-scop-detection.c: Likewise.
11272 * graphite-sese-to-poly.c: Likewise.
11273 * ipa-inline-analysis.c: Likewise.
11274 * ipa-pure-const.c: Likewise.
11275 * loop-init.c: Likewise.
11276 * passes.c: Likewise.
11277 * predict.c: Likewise.
11278 * tree-cfg.c: Likewise.
11279 * tree-cfgcleanup.c: Likewise.
11280 * tree-chrec.c: Likewise.
11281 * tree-data-ref.c: Likewise.
11282 * tree-loop-distribution.c: Likewise.
11283 * tree-parloops.c: Likewise.
11284 * tree-predcom.c: Likewise.
11285 * tree-scalar-evolution.c: Likewise.
11286 * tree-ssa-address.c: Likewise.
11287 * tree-ssa.c: Likewise.
11288 * tree-ssa-dce.c: Likewise.
11289 * tree-ssa-loop.c: Likewise.
11290 * tree-ssa-loop-im.c: Likewise.
11291 * tree-ssa-loop-ivcanon.c: Likewise.
11292 * tree-ssa-loop-ivopts.c: Likewise.
11293 * tree-ssa-loop-manip.c: Likewise.
11294 * tree-ssa-loop-niter.c: Likewise.
11295 * tree-ssa-loop-prefetch.c: Likewise.
11296 * tree-ssa-loop-unswitch.c: Likewise.
11297 * tree-ssa-reassoc.c: Likewise.
11298 * tree-vect-data-refs.c: Likewise.
11299 * tree-vect-loop.c: Likewise.
11300 * tree-vect-loop-manip.c: Likewise.
11301 * tree-vectorizer.c: Likewise.
11302 * tree-vect-stmts.c: Likewise.
11303 * tree-vrp.c: Likewise.
11305 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11307 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11309 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11311 PR tree-optimization/58775
11312 PR tree-optimization/58791
11313 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11314 (insert_stmt_after): Rewritten, don't move the stmt, but really
11316 (get_stmt_uid_with_default): Remove.
11317 (build_and_add_sum): Use insert_stmt_after and
11318 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11319 (update_range_test): Set uid on stmts added by
11320 force_gimple_operand_gsi. Don't immediately modify statements
11321 in inter-bb optimization, just update oe->op values.
11322 (optimize_range_tests): Return bool whether any changed have been made.
11323 (update_ops): New function.
11324 (struct inter_bb_range_test_entry): New type.
11325 (maybe_optimize_range_tests): Perform statement changes here.
11326 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11327 ensure_ops_are_available): Remove.
11328 (find_insert_point): Rewritten.
11329 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11330 return LHS of the (new resp. old) stmt. Don't call
11331 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11332 instead of last, move new stmt at the right place.
11333 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11334 (negate_value): Likewise. Set uids.
11335 (break_up_subtract_bb): Initialize uids.
11336 (reassociate_bb): Adjust rewrite_expr_tree caller.
11337 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11339 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11342 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11343 TARGET_32BIT final condition.
11344 (mulsi3_internal2 and splitter): Same.
11346 2013-10-23 Jeff Law <law@redhat.com>
11348 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11349 through joiner blocks with abnormal outgoing edges.
11351 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11352 Add parameter JOINERS, to allow/disallow threading through joiner
11354 (thread_block): New. Call thread_block_1.
11355 (mark_threaded_blocks): Remove code to filter out certain cases
11356 of threading through joiner blocks.
11357 (thread_through_all_blocks): Document how we can have a dangling
11358 edge AUX field and clear it.
11360 2013-10-23 Ian Lance Taylor <iant@google.com>
11362 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11363 (C++ Dialect Options): Likewise.
11364 (Optimize Options): Likewise.
11366 2013-10-23 Tom de Vries <tom@codesourcery.com>
11368 PR tree-optimization/58805
11369 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11371 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11373 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11374 sequence based on get_range_info returned range.
11376 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11378 * tree-ssa.h: Remove all #include's
11379 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11380 * alias.c: Move required includes from tree-ssa.h.
11381 * asan.c: Likewise.
11382 * builtins.c: Likewise.
11383 * calls.c: Likewise.
11384 * cfgexpand.c: Likewise.
11385 * cfghooks.c: Likewise.
11386 * cfgloop.c: Likewise.
11387 * cfgloopmanip.c: Likewise.
11388 * cgraph.c: Likewise.
11389 * cgraphbuild.c: Likewise.
11390 * cgraphclones.c: Likewise.
11391 * cgraphunit.c: Likewise.
11393 * except.c: Likewise.
11394 * expr.c: Likewise.
11395 * final.c: Likewise.
11396 * fold-const.c: Likewise.
11397 * ggc-page.c: Likewise.
11398 * gimple-builder.c: Likewise.
11399 * gimple-fold.c: Likewise.
11400 * gimple-iterator.c: Likewise.
11401 * gimple-low.c: Likewise.
11402 * gimple-pretty-print.c: Likewise.
11403 * gimple-ssa-strength-reduction.c: Likewise.
11404 * gimple-streamer-in.c: Likewise.
11405 * gimple-streamer-out.c: Likewise.
11406 * gimplify.c: Likewise.
11407 * graphite-blocking.c: Likewise.
11408 * graphite-clast-to-gimple.c: Likewise.
11409 * graphite-dependences.c: Likewise.
11410 * graphite-interchange.c: Likewise.
11411 * graphite-optimize-isl.c: Likewise.
11412 * graphite-poly.c: Likewise.
11413 * graphite-scop-detection.c: Likewise.
11414 * graphite-sese-to-poly.c: Likewise.
11415 * graphite.c: Likewise.
11416 * ipa-cp.c: Likewise.
11417 * ipa-inline-analysis.c: Likewise.
11418 * ipa-inline-transform.c: Likewise.
11419 * ipa-inline.c: Likewise.
11420 * ipa-prop.c: Likewise.
11421 * ipa-pure-const.c: Likewise.
11422 * ipa-reference.c: Likewise.
11423 * ipa-split.c: Likewise.
11424 * ipa-utils.c: Likewise.
11425 * loop-init.c: Likewise.
11426 * lto-cgraph.c: Likewise.
11427 * lto-section-in.c: Likewise.
11428 * lto-section-out.c: Likewise.
11429 * lto-streamer-in.c: Likewise.
11430 * lto-streamer-out.c: Likewise.
11431 * lto-streamer.c: Likewise.
11432 * omp-low.c: Likewise.
11433 * passes.c: Likewise.
11434 * predict.c: Likewise.
11435 * print-tree.c: Likewise.
11436 * profile.c: Likewise.
11437 * sese.c: Likewise.
11438 * targhooks.c: Likewise.
11439 * tracer.c: Likewise.
11440 * trans-mem.c: Likewise.
11441 * tree-call-cdce.c: Likewise.
11442 * tree-cfg.c: Likewise.
11443 * tree-cfgcleanup.c: Likewise.
11444 * tree-chrec.c: Likewise.
11445 * tree-complex.c: Likewise.
11446 * tree-data-ref.c: Likewise.
11447 * tree-dfa.c: Likewise.
11448 * tree-eh.c: Likewise.
11449 * tree-emutls.c: Likewise.
11450 * tree-if-conv.c: Likewise.
11451 * tree-inline.c: Likewise.
11452 * tree-into-ssa.c: Likewise.
11453 * tree-loop-distribution.c: Likewise.
11454 * tree-mudflap.c: Likewise.
11455 * tree-nested.c: Likewise.
11456 * tree-nrv.c: Likewise.
11457 * tree-object-size.c: Likewise.
11458 * tree-outof-ssa.c: Likewise.
11459 * tree-parloops.c: Likewise.
11460 * tree-phinodes.c: Likewise.
11461 * tree-predcom.c: Likewise.
11462 * tree-pretty-print.c: Likewise.
11463 * tree-profile.c: Likewise.
11464 * tree-scalar-evolution.c: Likewise.
11465 * tree-sra.c: Likewise.
11466 * tree-ssa-address.c: Likewise.
11467 * tree-ssa-alias.c: Likewise.
11468 * tree-ssa-ccp.c: Likewise.
11469 * tree-ssa-coalesce.c: Likewise.
11470 * tree-ssa-copy.c: Likewise.
11471 * tree-ssa-copyrename.c: Likewise.
11472 * tree-ssa-dce.c: Likewise.
11473 * tree-ssa-dom.c: Likewise.
11474 * tree-ssa-dse.c: Likewise.
11475 * tree-ssa-forwprop.c: Likewise.
11476 * tree-ssa-ifcombine.c: Likewise.
11477 * tree-ssa-live.c: Likewise.
11478 * tree-ssa-loop-ch.c: Likewise.
11479 * tree-ssa-loop-im.c: Likewise.
11480 * tree-ssa-loop-ivcanon.c: Likewise.
11481 * tree-ssa-loop-ivopts.c: Likewise.
11482 * tree-ssa-loop-manip.c: Likewise.
11483 * tree-ssa-loop-niter.c: Likewise.
11484 * tree-ssa-loop-prefetch.c: Likewise.
11485 * tree-ssa-loop-unswitch.c: Likewise.
11486 * tree-ssa-loop.c: Likewise.
11487 * tree-ssa-math-opts.c: Likewise.
11488 * tree-ssa-operands.c: Likewise.
11489 * tree-ssa-phiopt.c: Likewise.
11490 * tree-ssa-phiprop.c: Likewise.
11491 * tree-ssa-pre.c: Likewise.
11492 * tree-ssa-propagate.c: Likewise.
11493 * tree-ssa-reassoc.c: Likewise.
11494 * tree-ssa-sccvn.c: Likewise.
11495 * tree-ssa-sink.c: Likewise.
11496 * tree-ssa-strlen.c: Likewise.
11497 * tree-ssa-structalias.c: Likewise.
11498 * tree-ssa-tail-merge.c: Likewise.
11499 * tree-ssa-ter.c: Likewise.
11500 * tree-ssa-threadedge.c: Likewise.
11501 * tree-ssa-threadupdate.c: Likewise.
11502 * tree-ssa-uncprop.c: Likewise.
11503 * tree-ssa-uninit.c: Likewise.
11504 * tree-ssa.c: Likewise.
11505 * tree-ssanames.c: Likewise.
11506 * tree-stdarg.c: Likewise.
11507 * tree-streamer-in.c: Likewise.
11508 * tree-switch-conversion.c: Likewise.
11509 * tree-tailcall.c: Likewise.
11510 * tree-vect-data-refs.c: Likewise.
11511 * tree-vect-generic.c: Likewise.
11512 * tree-vect-loop-manip.c: Likewise.
11513 * tree-vect-loop.c: Likewise.
11514 * tree-vect-patterns.c: Likewise.
11515 * tree-vect-slp.c: Likewise.
11516 * tree-vect-stmts.c: Likewise.
11517 * tree-vectorizer.c: Likewise.
11518 * tree-vrp.c: Likewise.
11519 * tree.c: Likewise.
11520 * tsan.c: Likewise.
11521 * value-prof.c: Likewise.
11522 * var-tracking.c: Likewise.
11523 * varpool.c: Likewise.
11524 * vtable-verify.c: Likewise.
11526 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11528 * config/tilegx/tilegx.c: Include "tree.h".
11530 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11532 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11533 the info, not after it.
11534 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11535 dump_ssaname_info call.
11536 (pp_gimple_stmt_1): Adjust caller.
11537 (dump_phi_nodes): Likewise. Don't print "# " here.
11539 2013-10-22 Jan Hubicka <jh@suse.cz>
11541 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11543 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11544 * i386.c (expand_small_movmem_or_setmem): New function.
11545 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11547 (alg_usable_p): Add support for value ranges; cleanup.
11548 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11550 2013-10-22 Sterling Augustine <saugustine@google.com>
11552 * doc/invoke.texi: Document -ggnu-pubnames.
11553 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11555 * dwarf2out.c: Include gdb/gdb-index.h.
11556 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11557 debug_generate_pub_sections.
11558 (is_java, output_pubtables, output_pubname): New functions.
11559 (include_pubname_in_output): Handle debug_generate_pub_sections at
11561 (size_of_pubnames): Use new local space_for_flags based on
11562 debug_generate_pub_sections.
11563 (output_pubnames): Unify pubnames and pubtypes output logic.
11564 Genericize comments. Call output_pubname.
11565 (dwarf2out_finish): Move logic to output_pubnames and call it.
11567 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11570 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11571 Remove CCCmode handling.
11572 <case LTU>: Return 'c' suffix for CCCmode.
11573 <case GEU>: Return 'nc' suffix for CCCmode.
11574 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11575 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11576 (*sub<mode>3_cc_overflow): Ditto.
11577 (*subsi3_zext_cc_overflow): Ditto.
11579 2013-10-22 Steve Ellcey <sellcey@mips.com>
11581 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11582 (AND (NOT OP1) (NOT OP2)).
11584 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11586 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11587 meaning of merge-high and merge-low masks for little endian; avoid
11588 use of vector-pack masks for little endian for mismatched modes.
11590 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11592 * config/tilepro/tilepro.c: Include "tree.h".
11594 2013-10-22 Andreas Schwab <schwab@suse.de>
11596 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11599 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11601 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11602 [Ed Smith-Rowland]): New entries.
11603 ([Stephen M. Webb]): Update.
11605 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11607 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11609 2013-10-21 Marek Polacek <polacek@redhat.com>
11611 PR middle-end/58809
11612 * fold-const.c (fold_range_test): Return 0 if the type is not
11615 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11617 * system.h: Move hwint.h include further down.
11618 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11619 gcc_checking_asserts.
11620 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11622 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11624 Fix volatile issues in optimize_bit_field_compare.
11625 * fold-const.c (optimize_bit_field_compare): Bail out if
11626 lvolatilep or rvolatilep.
11628 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11630 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11631 and get_inner_reference returning different pmode for non-volatile
11632 bit-field members dependent on flag_strict_volatile_bitfields.
11633 * stor-layout.c (layout_decl): Remove special handling of
11634 flag_strict_volatile_bitfields.
11635 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11636 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11638 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11640 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11643 2013-10-21 Jeff Law <law@redhat.com>
11645 * tree-ssa-threadedge.c (thread_through_normal_block): New
11646 argument VISITED. Remove VISISTED as a local variable. When we
11647 have a threadable jump, verify the destination of the jump has not
11649 (thread_across_edge): Allocate VISITED bitmap once at function
11650 scope and use it throughout. Make sure to set appropriate bits in
11651 VISITED for E (start of jump thread path).
11652 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11653 through a joiner if any edge on the path has a recorded jump thread.
11655 2013-10-21 Ian Lance Taylor <iant@google.com>
11657 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11658 don't imply that attributes can solve all problems.
11659 (Directory Options): Fix typo.
11661 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11663 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11664 extend and extend_add.
11666 2013-10-21 Richard Biener <rguenther@suse.de>
11668 PR tree-optimization/58794
11669 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11670 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11672 2013-10-21 Richard Biener <rguenther@suse.de>
11674 PR middle-end/58742
11675 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11676 to (T) X for sign-changing conversions (or no conversion).
11678 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11680 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11682 2013-10-20 Jan Hubicka <jh@suse.cz>
11684 * config/i386/i386-tune.def: Add comment; organize into categories
11686 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11688 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11689 argument. Update function comment.
11690 (expand_set_or_movmem_via_rep): New function combining
11691 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11692 (expand_movmem_via_rep_mov): Remove.
11693 expand_setmem_via_rep_stos): Remove.
11694 (expand_movmem_epilogue): Update calls correspondingly.
11695 (expand_setmem_epilogue_via_loop): Likewise.
11696 (emit_memset): New.
11697 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11698 (expand_set_or_movmem_prologue): New function combining
11699 expand_movmem_prologue and expand_setmem_prologue.
11700 (expand_movmem_prologue): Remove.
11701 (expand_setmem_prologue): Remove.
11702 (expand_set_or_movmem_constant_prologue): New function combining
11703 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11704 (expand_constant_movmem_prologue): Remove.
11705 (expand_constant_setmem_prologue): Remove.
11706 (promote_duplicated_reg): Allow vector-const0 value.
11707 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11708 and ix86_expand_setmem.
11709 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11710 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11712 2013-10-21 Diego Novillo <dnovillo@google.com>
11714 * asan.c: Include tree.h
11715 * bb-reorder.c: Likewise.
11716 * cfgcleanup.c: Likewise.
11717 * cfgloopmanip.c: Likewise.
11718 * data-streamer-in.c: Likewise.
11719 * data-streamer-out.c: Likewise.
11720 * data-streamer.c: Likewise.
11721 * dwarf2cfi.c: Likewise.
11722 * graphite-blocking.c: Likewise.
11723 * graphite-clast-to-gimple.c: Likewise.
11724 * graphite-dependences.c: Likewise.
11725 * graphite-interchange.c: Likewise.
11726 * graphite-optimize-isl.c: Likewise.
11727 * graphite-poly.c: Likewise.
11728 * graphite-scop-detection.c: Likewise.
11729 * graphite-sese-to-poly.c: Likewise.
11730 * graphite.c: Likewise.
11731 * ipa-devirt.c: Likewise.
11732 * ipa-profile.c: Likewise.
11735 * loop-init.c: Likewise.
11736 * loop-unroll.c: Likewise.
11737 * lower-subreg.c: Likewise.
11738 * lto/lto-object.c: Likewise.
11739 * recog.c: Likewise.
11740 * reginfo.c: Likewise.
11741 * tree-loop-distribution.c: Likewise.
11742 * tree-parloops.c: Likewise.
11743 * tree-ssa-strlen.c: Likewise.
11744 * tree-streamer.c: Likewise.
11745 * value-prof.c: Likewise.
11746 * target-globals.c: Likewise.
11747 * expr.h: Include tree-core.h instead of tree.h.
11748 * gimple.h: Likewise.
11749 * ipa-prop.h: Likewise.
11750 * ipa-utils.h: Likewise.
11751 * lto-streamer.h: Likewise.
11752 * streamer-hooks.h: Likewise.
11753 * ipa-reference.h: Include cgraph.h instead of tree.h.
11754 * cgraph.h: Include basic-block.h instead of tree.h.
11755 * tree-streamer.h: Do not include tree.h.
11756 * genattrtab.c (write_header): Generate inclusion of tree.h.
11757 * genautomata.c (main): Likewise.
11758 * genemit.c: Likewise.
11759 * genopinit.c: Likewise.
11760 * genoutput.c (output_prologue): Likewise.
11761 * genpeep.c: Likewise.
11763 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11765 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11767 (vec_unpacku_hi_v8hi): Likewise.
11768 (vec_unpacku_lo_v16qi): Likewise.
11769 (vec_unpacku_lo_v8hi): Likewise.
11771 2013-10-20 Jan Hubicka <jh@suse.cz>
11773 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11774 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11775 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11777 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11779 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11780 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11782 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11784 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11787 * system.h: Undef m_slot.
11789 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11791 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11792 all elements for both endian flavors.
11794 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11797 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11798 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11799 and SI_REG for 64bit SYSV ABI targets.
11801 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11803 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11804 to multi_reg_return. Clarify that we are skipping USEs of multiple
11805 return registers. Use bool type where appropriate.
11807 2013-10-18 Jan Hubicka <jh@suse.cz>
11809 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11810 for cold functions.
11811 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11812 (X86_TUNE_PUSH_MEMORY): Likewise.
11813 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11814 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11815 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11817 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11818 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11820 (ix86_option_override_internal): Update to use tune features instead
11823 2013-10-18 Cong Hou <congh@google.com>
11825 PR tree-optimization/58508
11826 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11827 statement that contains data refs with zero-step.
11829 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11831 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11832 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11833 * gimple-low.c (gimple_check_call_arg,
11834 gimple_check_call_matching_types): Move to cgraph.c.
11835 * gimple-low.h: Remove prototype.
11836 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11837 Relocate from gimple-low.c.
11838 * cgraph.h: Add prototype. Don't include basic-block.h.
11839 * gimplify.c: Add gimple-low to include list.
11840 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11841 * tree-eh.c: Add gimple-low to include list.
11842 * tree-nested.c: Likewise.
11843 * cfgexpand.c: Add tree-ssa-address.h to include list.
11844 * expr.c: Likewise.
11845 * gimple-fold.c: Likewise.
11846 * gimple-ssa-strength-reduction.c: Likewise.
11847 * trans-mem.c: Likewise.
11848 * tree-mudflap.c: Likewise.
11849 * tree-ssa-loop-ivopts.c: Likewise.
11850 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11851 (degenerate_phi_result): Move to tree-phinodes.c.
11852 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11853 * tree-ssa-threadedge.c: Likewise.
11854 * tree-vrp.c: Likewise.
11855 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11856 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11857 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11858 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11859 * tree-ssa-forwprop.c: Likewise.
11860 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11861 pass_data_cleanup_cfg_post_optimizing,
11862 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11863 * tree-optimize.c: Delete File.
11864 * graphite.c: Include tree-cfgcleanup.h.
11865 * passes.c: Likewise.
11866 * tree-cfg.c: Likewise.
11867 * tree-profile.c: Likewise.
11868 * tree-ssa-dse.c: Likewise.
11869 * tree-ssa-loop-ivcanon.c: Likewise.
11870 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11871 * tree-outof-ssa.c: Include sbitmap.h.
11872 * tree-ssa-live.c: Likewise.
11873 * tree-ssa-propagate.c: Likewise.
11874 * tree-ssa-structalias.c: Likewise.
11875 * tree-stdarg.c: Likewise.
11876 * Makefile.in (OBJS): Delete tree-optimize.o.
11877 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11878 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11879 * varasm.c: Include basic-block.h.
11880 * cfgloop.h: Include function.h instead of basic-block.h
11881 (bb_loop_depth): Move to cfgloop.c.
11882 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11884 2013-10-18 Teresa Johnson <tejohnson@google.com>
11886 * predict.c (probably_never_executed): Compare frequency-based
11887 count to number of training runs.
11888 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11890 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11892 * config/arm/arm.c (cortexa9_extra_costs): New table.
11893 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11895 2013-10-18 Jeff Law <law@redhat.com>
11897 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11899 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11900 (register_jump_thread): Add "registered_jump_thread" debug
11902 * dbgcnt.def (registered_jump_thread): New debug counter.
11904 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11906 * config/rs6000/rs6000.c: Include cgraph.h.
11908 2013-10-18 Teresa Johnson <tejohnson@google.com>
11910 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11911 weights during merging.
11913 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11915 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11916 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11917 * tree-ssa-operands.h: Remove prototype.
11918 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11919 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11920 * gimple.h: Add prototype.
11921 * gimple-ssa.h: Include tree-ssa-operands.h.
11922 * tree-dump.c: Add tree-cfg.h to include list.
11923 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11924 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11925 * config/i386/i386.c: Don't include tree-flow.h.
11926 * config/rs6000/rs6000.c: Likewise.
11928 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11930 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11932 2013-10-18 Richard Biener <rguenther@suse.de>
11934 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11935 or TYPE_UNSIGNED of integral types.
11936 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11937 NULL_TREE for zero-precision integral types.
11939 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11941 * config/aarch64/arm_neon.h
11942 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11944 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11947 * opth-gen.awk: Define target_flags_explicit.
11949 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11951 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11952 fields to the reg_addr array that describes the valid addressing
11953 mode for any register, general purpose registers, floating point
11954 registers, and Altivec registers.
11955 (FIRST_RELOAD_REG_CLASS): Likewise.
11956 (LAST_RELOAD_REG_CLASS): Likewise.
11957 (struct reload_reg_map_type): Likewise.
11958 (reload_reg_map_type): Likewise.
11959 (RELOAD_REG_VALID): Likewise.
11960 (RELOAD_REG_MULTIPLE): Likewise.
11961 (RELOAD_REG_INDEXED): Likewise.
11962 (RELOAD_REG_OFFSET): Likewise.
11963 (RELOAD_REG_PRE_INCDEC): Likewise.
11964 (RELOAD_REG_PRE_MODIFY): Likewise.
11965 (reg_addr): Likewise.
11966 (mode_supports_pre_incdec_p): New helper functions to say whether
11967 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11968 (mode_supports_pre_modify_p): Likewise.
11969 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11970 print the valid address mode bits for each mode.
11971 (rs6000_debug_print_mode): Likewise.
11972 (rs6000_debug_reg_global): Likewise.
11973 (rs6000_setup_reg_addr_masks): New function to set up the address
11974 mask bits for each type.
11975 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11976 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11977 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11978 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11979 PRE_MODIFY are supported.
11980 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11981 registers, instead of {src,dest}_av_p.
11982 (rs6000_print_options_internal): Tweak the debug output slightly.
11984 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11986 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11989 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11991 * tree-flow.h (struct omp_region): Move to omp-low.c.
11992 Remove omp_ prototypes and variables.
11993 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11994 (copy_var_decl): Relocate prototype from tree-flow.h.
11995 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11996 * tree.h: Move prototype to omp-low.h.
11997 * omp-low.h: New File. Relocate prototypes here.
11998 * omp-low.c (struct omp_region): Make local here.
11999 (root_omp_region): Make static.
12000 (copy_var_decl) Move to gimple.c.
12001 (new_omp_region): Make static.
12002 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12003 * tree-cfg.c: Include omp-low.h.
12004 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12005 * gimplify.c: Include omp-low.h.
12006 * tree-parloops.c: Likewise.
12008 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12010 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12011 operands are in memory, prefer to force non-matched operand 1 to
12014 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12017 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12018 restrict TImode addresses to single indirect registers if both
12019 -mquad-memory and -mvsx-timode are used.
12020 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12021 we should emit load/store quad. Remove using %y for quad memory
12024 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12025 constraints to allow load/store quad on machines where TImode is
12026 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12027 for TImode to load integer constants.
12029 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12031 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12033 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12035 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12036 handling of STACK_REG.
12038 2013-10-17 Richard Biener <rguenther@suse.de>
12040 PR tree-optimization/58143
12041 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12043 (rewrite_to_defined_overflow): Likewise.
12044 (move_computations_dom_walker::before_dom): Rewrite stmts
12045 with undefined signed overflow that are not always executed
12046 into unsigned arithmetic.
12048 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12051 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12052 explicit isa flag to be an options variable, instead of using
12053 global_options_set. Remove define from rs6000.h.
12054 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12056 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12057 Initialize rs6000_isa_flags_explicit.
12058 (rs6000_function_specific_save): Add gcc_options* parameter, so
12059 that the powerpc builds after the 2013-10-15 changes.
12060 (rs6000_function_specific_restore): Likewise.
12062 2013-10-16 DJ Delorie <dj@redhat.com>
12064 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12065 op is a REG before checking REGNO.
12066 (rl78_alloc_physical_registers): Verify pattern is a SET before
12069 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12071 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12073 (vec_unpacks_lo_v4sf): Likewise.
12074 (vec_unpacks_float_hi_v4si): Likewise.
12075 (vec_unpacks_float_lo_v4si): Likewise.
12076 (vec_unpacku_float_hi_v4si): Likewise.
12077 (vec_unpacku_float_lo_v4si): Likewise.
12079 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12081 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12082 (vsx_concat_v2sf): Likewise.
12084 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12086 * config/aarch64/aarch64.md
12087 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12089 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12091 PR tree-optimization/58697
12092 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12093 estimated_loop_iterations_int.
12094 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12095 (get_max_loop_iterations_int): New. HWINT version of
12096 get_max_loop_iterations.
12097 * cfgloop.h: Add prototypes.
12098 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12099 * loop-unroll.c (decide_peel_once_rolling): Call
12100 get_estimated_loop_iterations_int.
12101 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12102 * tree-ssa-loop-niter.h: Tweak prototypes.
12104 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12106 * gengtype-parse.c (struct_field_seq): Ignore access-control
12107 keywords ("public:" etc).
12109 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12111 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12112 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12114 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12116 * config/arm/arm.opt (mlra): New option.
12117 * config/arm/arm.c (arm_lra_p): New function.
12118 (TARGET_LRA_P): Define.
12120 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12122 * tree-core.h (tree_code_name): Remove.
12123 * tree.h (get_tree_code_name): New prototype.
12124 * tree.c (tree_code_name): Make static.
12125 (get_tree_code_name): New function.
12126 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12127 tree_class_check_failed, tree_range_check_failed,
12128 tree_not_class_check_failed, omp_clause_check_failed,
12129 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12130 wrapper get_tree_code_name instead of calling tree_code_name directly.
12131 * tree-vrp.c (dump_asserts_for): Likewise.
12132 * tree-dump.c (dequeue_and_dump): Likewise.
12133 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12134 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12135 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12136 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12137 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12138 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12139 dump_gimple_omp_for): Likewise.
12140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12141 * tree-ssa-pre.c (print_pre_expr): Likewise.
12142 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12143 * print-tree.c (print_node_brief, print_node): Likewise.
12144 * gimple.c (gimple_check_failed): Likewise.
12145 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12146 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12147 * config/mep/mep.c (mep_validate_vliw): Likewise.
12148 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12149 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12151 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12153 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12156 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12158 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12159 (MULTILIB_MATCHES): Add multilib for -march=v8.
12161 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12164 * optc-save-gen.awk: Add extra parameter to the save and restore
12166 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12167 * tree.c (build_optimization_node): New parameter. Add extra parameter
12168 to call to cl_optimization_save.
12169 (build_target_option_node): New parameter. Add extra parameter
12170 to call to cl_target_option_save.
12171 * tree.h (build_optimization_node): New parameter.
12172 (build_target_option_node): New parameter.
12173 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12174 build_optimization_node and build_target_option_node.
12175 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12176 (handle_pragma_push_options): Ditto.
12177 * toplev.c (process_options): Ditto.
12178 * opts.c (init_options_struct): Check for opts_set non-null.
12179 * target.def (target_option.save): New parameter.
12180 (target_option.restore): New parameter.
12181 * tm.texi: Generate.
12182 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12183 (ix86_pragma_target_parse): Ditto.
12184 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12186 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12187 to build_optimization_node and build_target_option_node.
12188 (rs6000_valid_attribute_p): Ditto.
12189 (rs6000_pragma_target_parse): Ditto.
12190 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12192 * config/i386/i386.h:
12193 TARGET_64BIT_P: New Macro
12194 TARGET_MMX_P: New Macro.
12195 TARGET_3DNOW_P: New Macro.
12196 TARGET_3DNOW_A_P: New Macro.
12197 TARGET_SSE_P: New Macro.
12198 TARGET_SSE2_P: New Macro.
12199 TARGET_SSE3_P: New Macro.
12200 TARGET_SSSE3_P: New Macro.
12201 TARGET_SSE4_1_P: New Macro.
12202 TARGET_SSE4_2_P: New Macro.
12203 TARGET_AVX_P: New Macro.
12204 TARGET_AVX2_P: New Macro.
12205 TARGET_AVX512F_P: New Macro.
12206 TARGET_AVX512PF_P: New Macro.
12207 TARGET_AVX512ER_P: New Macro.
12208 TARGET_AVX512CD_P: New Macro.
12209 TARGET_FMA_P: New Macro.
12210 TARGET_SSE4A_P: New Macro.
12211 TARGET_FMA4_P: New Macro.
12212 TARGET_XOP_P: New Macro.
12213 TARGET_LWP_P: New Macro.
12214 TARGET_ABM_P: New Macro.
12215 TARGET_BMI_P: New Macro.
12216 TARGET_BMI2_P: New Macro.
12217 TARGET_LZCNT_P: New Macro.
12218 TARGET_TBM_P: New Macro.
12219 TARGET_POPCNT_P: New Macro.
12220 TARGET_SAHF_P: New Macro.
12221 TARGET_MOVBE_P: New Macro.
12222 TARGET_CRC32_P: New Macro.
12223 TARGET_AES_P: New Macro.
12224 TARGET_PCLMUL_P: New Macro.
12225 TARGET_CMPXCHG16B_P: New Macro.
12226 TARGET_FSGSBASE_P: New Macro.
12227 TARGET_RDRND_P: New Macro.
12228 TARGET_F16C_P: New Macro.
12229 TARGET_RTM_P: New Macro.
12230 TARGET_HLE_P: New Macro.
12231 TARGET_RDSEED_P: New Macro.
12232 TARGET_PRFCHW_P: New Macro.
12233 TARGET_ADX_P: New Macro.
12234 TARGET_FXSR_P: New Macro.
12235 TARGET_XSAVE_P: New Macro.
12236 TARGET_XSAVEOPT_P: New Macro.
12237 TARGET_LP64_P: New Macro.
12238 TARGET_X32_P: New Macro.
12239 TARGET_FPMATH_DEFAULT_P: New Macro.
12240 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12241 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12243 Change ix86_tune_string to access opts->x_ix86_tune_string.
12244 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12245 Change ix86_arch_string to access opts->x_ix86_arch_string.
12246 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12247 Change ix86_pmode to access opts->x_ix86_pmode.
12248 Change ix86_abi to access opts->x_ix86_abi.
12249 Change ix86_cmodel to access opts->x_ix86_cmodel.
12250 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12251 Change ix86_isa_flags_explicit to access
12252 opts->x_ix86_isa_flags_explicit.
12253 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12254 Change ix86_regparm to access opts->x_ix86_regparm.
12255 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12256 Change ix86_preferred_stack_boundary_arg to access
12257 opts->x_ix86_preferred_stack_boundary_arg.
12258 Change ix86_force_align_arg_pointer to access
12259 opts->x_ix86_force_align_arg_pointer.
12260 Change ix86_incoming_stack_boundar_arg to access
12261 opts->x_ix86_incoming_stack_boundar_arg.
12262 Change ix86_fpmath to access opts->x_ix86_fpmath.
12263 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12264 Change ix86_recip_name to access opts->x_ix86_recip_name.
12265 Change ix86_stack_protector_guard to access
12266 opts->x_ix86_stack_protector_guard.
12267 Change ix86_tune_memcpy_strategy to access
12268 opts->x_ix86_tune_memcpy_strategy.
12269 Change ix86_tune_memset_strategy to access
12270 opts->x_ix86_tune_memset_strategy.
12271 Change global_options to access opts.
12272 Change global_options_set to access opts_set.
12273 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12274 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12275 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12276 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12277 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12278 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12279 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12280 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12281 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12282 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12283 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12284 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12285 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12286 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12287 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12288 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12289 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12290 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12291 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12292 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12293 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12294 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12295 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12296 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12297 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12298 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12299 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12300 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12301 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12302 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12303 Change TARGET_AES to TARGET_AES_P (opts->...).
12304 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12305 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12306 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12307 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12308 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12309 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12310 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12311 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12312 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12313 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12314 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12315 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12316 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12317 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12318 Change TARGET_X32 to TARGET_X32_P (opts->...).
12319 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12320 Change TARGET_FLOAT_RETURNS_IN_80387 to
12321 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12322 (ix86_function_specific_save): New parameter. Use opts-> fields
12323 to replace global fields.
12324 (ix86_function_specific_restore): Ditto.
12325 (ix86_valid_target_attribute_inner_p): New parameters.
12326 Fix recursive call.
12327 Fix call to ix86_handle_option and set_option.
12328 (ix86_valid_target_attribute_tree): New parameters.
12329 Change global_options to access opts.
12330 Change global_options_set to access opts_set.
12331 Fix call to ix86_valid_target_attribute_inner_p.
12332 Change ix86_tune_string to access opts->x_ix86_tune_string.
12333 Change ix86_arch_string to access opts->x_ix86_arch_string.
12334 Change ix86_fpmath to access opts->x_ix86_fpmath
12335 Fix call to ix86_option_override_internal.
12336 Fix call to ix86_add_new_builtins.
12337 Fix calls to build_optimization_node and build_target_option_node.
12338 (ix86_valid_target_attribute_p): Remove access to global_options.
12339 Use new gcc_options structure func_options.
12340 Fix call to ix86_valid_target_attribute_tree.
12341 Fix call to build_optimization_node.
12342 (get_builtin_code_for_version): Fix call to
12343 ix86_valid_target_attribute_tree.
12345 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12347 * Makefile.in (PICFLAG): New.
12348 (enable_host_shared): New.
12349 (INTERNAL_CFLAGS): Use PICFLAG.
12350 (LIBIBERTY): Use pic build of libiberty.a if configured with
12351 --enable-host-shared.
12352 * configure.ac: Add --enable-host-shared, setting up new
12354 * configure: Regenerate.
12355 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12356 (--enable-host-shared): New option.
12358 2013-10-15 Richard Biener <rguenther@suse.de>
12360 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12361 for built-in functions.
12363 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12365 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12366 (optimize_range_tests_1): New function,
12367 extracted from optimize_range_tests.
12368 (optimize_range_tests_xor): Similarly.
12369 (optimize_range_tests_diff): New function.
12370 (optimize_range_tests): Use optimize_range_tests_1.
12372 2013-10-15 Cong Hou <congh@google.com>
12374 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12375 requirement of the reduction pattern so that one operand of the
12376 reduction operation can come from outside of the loop.
12378 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12380 * config/arm/neon-schedgen.ml: Remove.
12381 * config/arm/cortex-a9-neon.md: Remove comment regarding
12384 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12386 * config/arm/types: Remove old neon types.
12388 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12390 * config/arm/cortex-a7.md
12391 (cortex_a7_neon_type): New.
12392 (cortex_a7_neon_mul): Update for new types.
12393 (cortex_a7_neon_mla): Likewise.
12394 (cortex_a7_neon): Likewise.
12396 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12398 * config/arm/cortex-a15-neon.md
12399 (cortex_a15_neon_type): New,
12401 (cortex_a15_neon_int_1): Remove.
12402 (cortex_a15_neon_int_2): Likewise.
12403 (cortex_a15_neon_int_3): Likewise.
12404 (cortex_a15_neon_int_4): Likewise.
12405 (cortex_a15_neon_int_5): Likewise.
12406 (cortex_a15_neon_vqneg_vqabs): Likewise.
12407 (cortex_a15_neon_vmov): Likewise.
12408 (cortex_a15_neon_vaba): Likewise.
12409 (cortex_a15_neon_vaba_qqq): Likewise.
12410 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12411 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12412 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12414 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12415 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12416 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12417 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12418 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12419 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12420 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12421 (cortex_a15_neon_shift_1): Likewise.
12422 (cortex_a15_neon_shift_2): Likewise.
12423 (cortex_a15_neon_shift_3): Likewise.
12424 (cortex_a15_neon_vshl_ddd): Likewise.
12425 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12426 (cortex_a15_neon_vsra_vrsra): Likewise.
12427 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12428 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12429 (cortex_a15_neon_bp_3cycle): Likewise.
12430 (cortex_a15_neon_ldm_2): Likewise.
12431 (cortex_a15_neon_stm_2): Likewise.
12432 (cortex_a15_neon_mcr): Likewise.
12433 (cortex_a15_neon_mrc): Likewise.
12434 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12435 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12436 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12437 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12438 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12439 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12440 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12441 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12442 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12443 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12444 (cortex_a15_neon_bp_simple): Likewise.
12445 (cortex_a15_neon_bp_2cycle): Likewise.
12446 (cortex_a15_neon_bp_3cycle): Likewise.
12447 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12448 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12449 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12450 (cortex_a15_neon_vld2_4_regs): Likewise.
12451 (cortex_a15_neon_vld3_vld4): Likewise.
12452 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12453 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12454 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12455 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12456 (cortex_a15_neon_vst3_vst4): Rename to...
12457 (cortex_a15_neon_vst4): This, update for new attributes.
12458 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12459 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12460 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12461 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12462 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12463 (cortex_a15_neon_ldm_2): Likewise.
12464 (cortex_a15_neon_stm_2): Likewise.
12465 (cortex_a15_neon_mcr): Likewise.
12466 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12467 (cortex_a15_neon_mrc): Likewise.
12468 (cortex_a15_neon_mrrc): Likewise.
12470 (cortex_a15_neon_abd): New.
12471 (cortex_a15_neon_abd_q): Likewise.
12472 (cortex_a15_neon_aba): Likewise.
12473 (cortex_a15_neon_aba_q): Likewise.
12474 (cortex_a15_neon_acc): Likewise.
12475 (cortex_a15_neon_acc_q): Likewise.
12476 (cortex_a15_neon_arith_basic): Likewise.
12477 (cortex_a15_neon_arith_complex): Likewise.
12478 (cortex_a15_neon_multiply): Likewise.
12479 (cortex_a15_neon_multiply_q): Likewise.
12480 (cortex_a15_neon_mla): Likewise.
12481 (cortex_a15_neon_mla_q): Likewise.
12482 (cortex_a15_neon_sat_mla_long): Likewise.
12483 (cortex_a15_neon_shift_acc): Likewise.
12484 (cortex_a15_neon_shift_imm_basic): Likewise.
12485 (cortex_a15_neon_shift_imm_complex): Likewise.
12486 (cortex_a15_neon_shift_reg_basic): Likewise.
12487 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12488 (cortex_a15_neon_shift_reg_complex): Likewise.
12489 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12490 (cortex_a15_neon_fp_negabs): Likewise
12491 (cortex_a15_neon_fp_arith): Likewise
12492 (cortex_a15_neon_fp_arith_q): Likewise
12493 (cortex_a15_neon_fp_cvt_int): Likewise
12494 (cortex_a15_neon_fp_cvt_int_q): Likewise
12495 (cortex_a15_neon_fp_cvt_16): Likewise
12496 (cortex_a15_neon_fp_mul): Likewise
12497 (cortex_a15_neon_fp_mul_q): Likewise
12498 (cortex_a15_neon_fp_mla): Likewise
12499 (cortex_a15_neon_fp_mla_q): Likewise
12500 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12501 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12502 (cortex_a15_neon_bitops): Likewise.
12503 (cortex_a15_neon_bitops_q): Likewise.
12504 (cortex_a15_neon_from_gp): Likewise.
12505 (cortex_a15_neon_from_gp_q): Likewise.
12506 (cortex_a15_neon_tbl3_tbl4): Likewise.
12507 (cortex_a15_neon_zip_q): Likewise.
12508 (cortex_a15_neon_to_gp): Likewise.
12509 (cortex_a15_neon_load_a): Likewise.
12510 (cortex_a15_neon_load_b): Likewise.
12511 (cortex_a15_neon_load_c): Likewise.
12512 (cortex_a15_neon_load_d): Likewise.
12513 (cortex_a15_neon_load_e): Likewise.
12514 (cortex_a15_neon_load_f): Likewise.
12515 (cortex_a15_neon_store_a): Likewise.
12516 (cortex_a15_neon_store_b): Likewise.
12517 (cortex_a15_neon_store_c): Likewise.
12518 (cortex_a15_neon_store_d): Likewise.
12519 (cortex_a15_neon_store_e): Likewise.
12520 (cortex_a15_neon_store_f): Likewise.
12521 (cortex_a15_neon_store_g): Likewise.
12522 (cortex_a15_neon_store_h): Likewise.
12523 (cortex_a15_vfp_to_from_gp): Likewise.
12525 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12527 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12529 (cortex_a9_neon_vshl_ddd): Remove.
12530 (cortex_a9_neon_vst3_vst4): Likewise.
12531 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12533 (cortex_a9_neon_bit_ops_q): New.
12535 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12536 (cortex_a9_neon_int_2): Likewise.
12537 (cortex_a9_neon_int_3): Likewise.
12538 (cortex_a9_neon_int_4): Likewise.
12539 (cortex_a9_neon_int_5): Likewise.
12540 (cortex_a9_neon_vqneg_vqabs): Likewise.
12541 (cortex_a9_neon_vmov): Likewise.
12542 (cortex_a9_neon_vaba): Likewise.
12543 (cortex_a9_neon_vaba_qqq): Likewise.
12544 (cortex_a9_neon_shift_1): Likewise.
12545 (cortex_a9_neon_shift_2): Likewise.
12546 (cortex_a9_neon_shift_3): Likewise.
12547 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12548 (cortex_a9_neon_vsra_vrsra): Likewise.
12549 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12550 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12551 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12553 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12554 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12555 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12557 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12558 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12559 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12560 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12561 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12562 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12563 (cortex_a9_neon_fp_vsum): Likewise.
12564 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12565 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12566 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12567 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12568 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12569 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12570 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12571 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12572 (cortex_a9_neon_bp_simple): Likewise.
12573 (cortex_a9_neon_bp_2cycle): Likewise.
12574 (cortex_a9_neon_bp_3cycle): Likewise.
12575 (cortex_a9_neon_ldr): Likewise.
12576 (cortex_a9_neon_str): Likewise.
12577 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12578 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12579 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12580 (cortex_a9_neon_vld2_4_regs): Likewise.
12581 (cortex_a9_neon_vld3_vld4): Likewise.
12582 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12583 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12584 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12585 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12586 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12587 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12588 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12589 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12590 (cortex_a9_neon_mcr): Likewise.
12591 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12592 (cortex_a9_neon_mrc): Likewise.
12593 (cortex_a9_neon_mrrc): Likewise.
12595 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12597 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12599 (cortex_a8_neon_vshl_ddd): Remove.
12600 (cortex_a8_neon_vst3_vst4): Likewise.
12601 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12603 (cortex_a8_neon_bit_ops_q): New.
12605 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12606 (cortex_a8_neon_int_2): Likewise..
12607 (cortex_a8_neon_int_3): Likewise.
12608 (cortex_a8_neon_int_5): Likewise.
12609 (cortex_a8_neon_vqneg_vqabs): Likewise.
12610 (cortex_a8_neon_int_4): Likewise.
12611 (cortex_a8_neon_vaba): Likewise.
12612 (cortex_a8_neon_vaba_qqq): Likewise.
12613 (cortex_a8_neon_shift_1): Likewise.
12614 (cortex_a8_neon_shift_2): Likewise.
12615 (cortex_a8_neon_shift_3): Likewise.
12616 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12617 (cortex_a8_neon_vsra_vrsra): Likewise.
12618 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12619 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12620 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12622 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12623 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12624 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12626 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12627 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12628 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12629 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12630 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12631 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12632 (cortex_a8_neon_fp_vsum): Likewise.
12633 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12634 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12635 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12636 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12637 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12638 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12639 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12640 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12641 (cortex_a8_neon_bp_simple): Likewise.
12642 (cortex_a8_neon_bp_2cycle): Likewise.
12643 (cortex_a8_neon_bp_3cycle): Likewise.
12644 (cortex_a8_neon_ldr): Likewise.
12645 (cortex_a8_neon_str): Likewise.
12646 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12647 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12648 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12649 (cortex_a8_neon_vld2_4_regs): Likewise.
12650 (cortex_a8_neon_vld3_vld4): Likewise.
12651 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12652 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12653 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12654 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12655 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12656 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12657 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12658 (cortex_a8_neon_mcr): Likewise.
12659 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12660 (cortex_a8_neon_mrc): Likewise.
12661 (cortex_a8_neon_mrrc): Likewise.
12663 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12665 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12667 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12668 (aarch64_simd_dup<mode>): Add "type" attribute.
12669 (aarch64_dup_lane<mode>): Likewise.
12670 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12671 (*aarch64_simd_mov<mode>): Likewise.
12672 (aarch64_simd_mov_from_<mode>low): Likewise.
12673 (aarch64_simd_mov_from_<mode>high): Likewise.
12674 (orn<mode>3): Likewise.
12675 (bic<mode>3): Likewise.
12676 (add<mode>3): Likewise.
12677 (sub<mode>3): Likewise.
12678 (mul<mode>3): Likewise.
12679 (*aarch64_mul3_elt<mode>): Likewise.
12680 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12681 (*aarch64_mul3_elt_to_128df): Likewise.
12682 (*aarch64_mul3_elt_to_64v2df): Likewise.
12683 (neg<mode>2): Likewise.
12684 (abs<mode>2): Likewise.
12685 (abd<mode>_3): Likewise.
12686 (aba<mode>_3): Likewise.
12687 (fabd<mode>_3): Likewise.
12688 (*fabd_scalar<mode>3): Likewise.
12689 (and<mode>3): Likewise.
12690 (ior<mode>3): Likewise.
12691 (xor<mode>3): Likewise.
12692 (one_cmpl<mode>2): Likewise.
12693 (aarch64_simd_vec_set<mode>): Likewise.
12694 (aarch64_simd_lshr<mode>): Likewise.
12695 (aarch64_simd_ashr<mode>): Likewise.
12696 (aarch64_simd_imm_shl<mode>): Likewise.
12697 (aarch64_simd_reg_sshl<mode): Likewise.
12698 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12699 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12700 (aarch64_simd_vec_setv2di): Likewise.
12701 (aarch64_simd_vec_set<mode>): Likewise.
12702 (aarch64_mla<mode>): Likewise.
12703 (*aarch64_mla_elt<mode>): Likewise.
12704 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12705 (aarch64_mls<mode>): Likewise.
12706 (*aarch64_mls_elt<mode>): Likewise.
12707 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12708 (<su><maxmin><mode>3): Likewise.
12709 (move_lo_quad_<mode>): Likewise.
12710 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12711 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12712 (vec_pack_trunc_<mode>): Likewise.
12713 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12714 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12715 (*aarch64_<su>mlal_lo<mode>): Likewise.
12716 (*aarch64_<su>mlal_hi<mode>): Likewise.
12717 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12718 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12719 (*aarch64_<su>mlal<mode>): Likewise.
12720 (*aarch64_<su>mlsl<mode>): Likewise.
12721 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12722 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12723 (add<mode>3): Likewise.
12724 (sub<mode>3): Likewise.
12725 (mul<mode>3): Likewise.
12726 (div<mode>3): Likewise.
12727 (neg<mode>2): Likewise.
12728 (abs<mode>2): Likewise.
12729 (fma<mode>4): Likewise.
12730 (*aarch64_fma4_elt<mode>): Likewise.
12731 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12732 (*aarch64_fma4_elt_to_128df): Likewise.
12733 (*aarch64_fma4_elt_to_64v2df): Likewise.
12734 (fnma<mode>4): Likewise.
12735 (*aarch64_fnma4_elt<mode>): Likewise.
12736 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12737 (*aarch64_fnma4_elt_to_128df): Likewise.
12738 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12739 (<frint_pattern><mode>2): Likewise.
12740 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12741 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12742 (vec_unpacks_lo_v4sf): Likewise.
12743 (aarch64_float_extend_lo_v2df): Likewise.
12744 (vec_unpacks_hi_v4sf): Likewise.
12745 (aarch64_float_truncate_lo_v2sf): Likewise.
12746 (aarch64_float_truncate_hi_v4sf): Likewise.
12747 (aarch64_vmls<mode>): Likewise.
12748 (<su><maxmin><mode>3): Likewise.
12749 (<maxmin_uns><mode>3): Likewise.
12750 (reduc_<sur>plus_<mode>): Likewise.
12751 (reduc_<sur>plus_v2di): Likewise.
12752 (reduc_<sur>plus_v2si): Likewise.
12753 (reduc_<sur>plus_<mode>): Likewise.
12754 (aarch64_addpv4sf): Likewise.
12755 (clz<mode>2): Likewise.
12756 (reduc_<maxmin_uns>_<mode>): Likewise.
12757 (reduc_<maxmin_uns>_v2di): Likewise.
12758 (reduc_<maxmin_uns>_v2si): Likewise.
12759 (reduc_<maxmin_uns>_<mode>): Likewise.
12760 (reduc_<maxmin_uns>_v4sf): Likewise.
12761 (aarch64_simd_bsl<mode>_internal): Likewise.
12762 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12763 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12764 (aarch64_get_lane<mode>): Likewise.
12765 (*aarch64_combinez<mode>): Likewise.
12766 (aarch64_combine<mode>): Likewise.
12767 (aarch64_simd_combine<mode>): Likewise.
12768 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12769 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12770 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12771 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12772 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12773 (aarch64_<sur>h<addsub><mode>): Likewise.
12774 (aarch64_<sur><addsub>hn<mode>): Likewise.
12775 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12776 (aarch64_pmul<mode>): Likewise.
12777 (aarch64_<su_optab><optab><mode>): Likewise.
12778 (aarch64_<sur>qadd<mode>): Likewise.
12779 (aarch64_sqmovun<mode>): Likewise.
12780 (aarch64_<sur>qmovn<mode>): Likewise.
12781 (aarch64_s<optab><mode>): Likewise.
12782 (aarch64_sq<r>dmulh<mode>): Likewise.
12783 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12784 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12785 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12786 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12787 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12788 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12789 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12790 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12791 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12792 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12793 (aarch64_sqdmull<mode>): Likewise.
12794 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12795 (aarch64_sqdmull_n<mode>): Likewise.
12796 (aarch64_sqdmull2<mode>_internal): Likewise.
12797 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12798 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12799 (aarch64_<sur>shl<mode>): Likewise.
12800 (aarch64_<sur>q<r>shl<mode>
12801 (aarch64_<sur>shll_n<mode>): Likewise.
12802 (aarch64_<sur>shll2_n<mode>): Likewise.
12803 (aarch64_<sur>shr_n<mode>): Likewise.
12804 (aarch64_<sur>sra_n<mode>): Likewise.
12805 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12806 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12807 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12808 (aarch64_cm<optab><mode>): Likewise.
12809 (aarch64_cm<optab>di): Likewise.
12810 (aarch64_cm<optab><mode>): Likewise.
12811 (aarch64_cm<optab>di): Likewise.
12812 (aarch64_cmtst<mode>): Likewise.
12813 (aarch64_cmtstdi): Likewise.
12814 (aarch64_cm<optab><mode>): Likewise.
12815 (*aarch64_fac<optab><mode>): Likewise.
12816 (aarch64_addp<mode>): Likewise.
12817 (aarch64_addpdi): Likewise.
12818 (sqrt<mode>2): Likewise.
12819 (vec_load_lanesoi<mode>): Likewise.
12820 (vec_store_lanesoi<mode>): Likewise.
12821 (vec_load_lanesci<mode>): Likewise.
12822 (vec_store_lanesci<mode>): Likewise.
12823 (vec_load_lanesxi<mode>): Likewise.
12824 (vec_store_lanesxi<mode>): Likewise.
12825 (*aarch64_mov<mode>): Likewise.
12826 (aarch64_ld2<mode>_dreg): Likewise.
12827 (aarch64_ld2<mode>_dreg): Likewise.
12828 (aarch64_ld3<mode>_dreg): Likewise.
12829 (aarch64_ld3<mode>_dreg): Likewise.
12830 (aarch64_ld4<mode>_dreg): Likewise.
12831 (aarch64_ld4<mode>_dreg): Likewise.
12832 (aarch64_tbl1<mode>): Likewise.
12833 (aarch64_tbl2v16qi): Likewise.
12834 (aarch64_combinev16qi): Likewise.
12835 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12836 (aarch64_st2<mode>_dreg): Likewise.
12837 (aarch64_st2<mode>_dreg): Likewise.
12838 (aarch64_st3<mode>_dreg): Likewise.
12839 (aarch64_st3<mode>_dreg): Likewise.
12840 (aarch64_st4<mode>_dreg): Likewise.
12841 (aarch64_st4<mode>_dreg): Likewise.
12842 (*aarch64_simd_ld1r<mode>): Likewise.
12843 (aarch64_frecpe<mode>): Likewise.
12844 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12845 (aarch64_frecps<mode>): Likewise.
12847 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12849 * config/arm/iterators.md (V_elem_ch): New.
12851 (VQH_type): Likewise.
12852 * config/arm/arm.md (is_neon_type): New.
12853 (conds): Use is_neon_type.
12854 (anddi3_insn): Update type attribute.
12855 (xordi3_insn): Likewise.
12856 (one_cmpldi2): Likewise.
12857 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12858 * config/arm/neon.md (neon_mov): Update type attribute.
12859 (*movmisalign<mode>_neon_store): Likewise.
12860 (*movmisalign<mode>_neon_load): Likewise.
12861 (vec_set<mode>_internal): Likewise.
12862 (vec_set<mode>_internal): Likewise.
12863 (vec_setv2di_internal): Likewise.
12864 (vec_extract<mode>): Likewise.
12865 (vec_extract<mode>): Likewise.
12866 (vec_extractv2di): Likewise.
12867 (*add<mode>3_neon): Likewise.
12868 (adddi3_neon): Likewise.
12869 (*sub<mode>3_neon): Likewise.
12870 (subdi3_neon): Likewise.
12871 (fma<VCVTF:mode>4): Likewise.
12872 (fma<VCVTF:mode>4_intrinsic): Likewise.
12873 (*fmsub<VCVTF:mode>4): Likewise.
12874 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12875 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12876 (ior<mode>3): Likewise.
12877 (and<mode>3): Likewise.
12878 (orn<mode>3_neon): Likewise.
12879 (orndi3_neon): Likewise.
12880 (bic<mode>3_neon): Likewise.
12881 (bicdi3_neon): Likewise.
12882 (xor<mode>3): Likewise.
12883 (one_cmpl<mode>2): Likewise.
12884 (abs<mode>2): Likewise.
12885 (neg<mode>2): Likewise.
12886 (negdi2_neon): Likewise.
12887 (*umin<mode>3_neon): Likewise.
12888 (*umax<mode>3_neon): Likewise.
12889 (*smin<mode>3_neon): Likewise.
12890 (*smax<mode>3_neon): Likewise.
12891 (vashl<mode>3): Likewise.
12892 (vashr<mode>3_imm): Likewise.
12893 (vlshr<mode>3_imm): Likewise.
12894 (ashl<mode>3_signed): Likewise.
12895 (ashl<mode>3_unsigned): Likewise.
12896 (neon_load_count): Likewise.
12897 (ashldi3_neon_noclobber): Likewise.
12898 (ashldi3_neon): Likewise.
12899 (signed_shift_di3_neon): Likewise.
12900 (unsigned_shift_di3_neon): Likewise.
12901 (ashrdi3_neon_imm_noclobber): Likewise.
12902 (lshrdi3_neon_imm_noclobber): Likewise.
12903 (<shift>di3_neon): Likewise.
12904 (widen_ssum<mode>3): Likewise.
12905 (widen_usum<mode>3): Likewise.
12906 (quad_halves_<code>v4si): Likewise.
12907 (quad_halves_<code>v4sf): Likewise.
12908 (quad_halves_<code>v8hi): Likewise.
12909 (quad_halves_<code>v16qi): Likewise.
12910 (reduc_splus_v2di): Likewise.
12911 (neon_vpadd_internal<mode>): Likewise.
12912 (neon_vpsmin<mode>): Likewise.
12913 (neon_vpsmax<mode>): Likewise.
12914 (neon_vpumin<mode>): Likewise.
12915 (neon_vpumax<mode>): Likewise.
12916 (*ss_add<mode>_neon): Likewise.
12917 (*us_add<mode>_neon): Likewise.
12918 (*ss_sub<mode>_neon): Likewise.
12919 (*us_sub<mode>_neon): Likewise.
12920 (neon_vadd<mode>_unspec): Likewise.
12921 (neon_vaddl<mode>): Likewise.
12922 (neon_vaddw<mode>): Likewise.
12923 (neon_vhadd<mode>): Likewise.
12924 (neon_vqadd<mode>): Likewise.
12925 (neon_vaddhn<mode>): Likewise.
12926 (neon_vmul<mode>): Likewise.
12927 (neon_vfms<VCVTF:mode>): Likewise.
12928 (neon_vmlal<mode>): Likewise.
12929 (neon_vmls<mode>): Likewise.
12930 (neon_vmlsl<mode>): Likewise.
12931 (neon_vqdmulh<mode>): Likewise.
12932 (neon_vqdmlal<mode>): Likewise.
12933 (neon_vqdmlsl<mode>): Likewise.
12934 (neon_vmull<mode>): Likewise.
12935 (neon_vqdmull<mode>): Likewise.
12936 (neon_vsub<mode>_unspec): Likewise.
12937 (neon_vsubl<mode>): Likewise.
12938 (neon_vsubw<mode>): Likewise.
12939 (neon_vqsub<mode>): Likewise.
12940 (neon_vhsub<mode>): Likewise.
12941 (neon_vsubhn<mode>): Likewise.
12942 (neon_vceq<mode>): Likewise.
12943 (neon_vcge<mode>): Likewise.
12944 (neon_vcgeu<mode>): Likewise.
12945 (neon_vcgt<mode>): Likewise.
12946 (neon_vcgtu<mode>): Likewise.
12947 (neon_vcle<mode>): Likewise.
12948 (neon_vclt<mode>): Likewise.
12949 (neon_vcage<mode>): Likewise.
12950 (neon_vcagt<mode>): Likewise.
12951 (neon_vtst<mode>): Likewise.
12952 (neon_vabd<mode>): Likewise.
12953 (neon_vabdl<mode>): Likewise.
12954 (neon_vaba<mode>): Likewise.
12955 (neon_vabal<mode>): Likewise.
12956 (neon_vmax<mode>): Likewise.
12957 (neon_vmin<mode>): Likewise.
12958 (neon_vpaddl<mode>): Likewise.
12959 (neon_vpadal<mode>): Likewise.
12960 (neon_vpmax<mode>): Likewise.
12961 (neon_vpmin<mode>): Likewise.
12962 (neon_vrecps<mode>): Likewise.
12963 (neon_vrsqrts<mode>): Likewise.
12964 (neon_vqabs<mode>): Likewise.
12965 (neon_vqneg<mode>): Likewise.
12966 (neon_vcls<mode>): Likewise.
12967 (clz<mode>2): Likewise.
12968 (popcount<mode>2): Likewise.
12969 (neon_vrecpe<mode>): Likewise.
12970 (neon_vrsqrte<mode>): Likewise.
12971 (neon_vget_lane<mode>_sext_internal): Likewise.
12972 (neon_vget_lane<mode>_zext_internal): Likewise.
12973 (neon_vdup_n<mode>): Likewise.
12974 (neon_vdup_n<mode>): Likewise.
12975 (neon_vdup_nv2di): Likewise.
12976 (neon_vdup_lane<mode>_interal): Likewise.
12977 (*neon_vswp<mode>): Likewise.
12978 (neon_vcombine<mode>): Likewise.
12979 (float<mode><V_cvtto>2): Likewise.
12980 (floatuns<mode><V_cvtto>2): Likewise.
12981 (fix_trunc<mode><V_cvtto>2): Likewise.
12982 (fixuns_trunc<mode><V_cvtto>2
12983 (neon_vcvt<mode>): Likewise.
12984 (neon_vcvt<mode>): Likewise.
12985 (neon_vcvtv4sfv4hf): Likewise.
12986 (neon_vcvtv4hfv4sf): Likewise.
12987 (neon_vcvt_n<mode>): Likewise.
12988 (neon_vcvt_n<mode>): Likewise.
12989 (neon_vmovn<mode>): Likewise.
12990 (neon_vqmovn<mode>): Likewise.
12991 (neon_vqmovun<mode>): Likewise.
12992 (neon_vmovl<mode>): Likewise.
12993 (neon_vmul_lane<mode>): Likewise.
12994 (neon_vmul_lane<mode>): Likewise.
12995 (neon_vmull_lane<mode>): Likewise.
12996 (neon_vqdmull_lane<mode>): Likewise.
12997 (neon_vqdmulh_lane<mode>): Likewise.
12998 (neon_vqdmulh_lane<mode>): Likewise.
12999 (neon_vmla_lane<mode>): Likewise.
13000 (neon_vmla_lane<mode>): Likewise.
13001 (neon_vmlal_lane<mode>): Likewise.
13002 (neon_vqdmlal_lane<mode>): Likewise.
13003 (neon_vmls_lane<mode>): Likewise.
13004 (neon_vmls_lane<mode>): Likewise.
13005 (neon_vmlsl_lane<mode>): Likewise.
13006 (neon_vqdmlsl_lane<mode>): Likewise.
13007 (neon_vext<mode>): Likewise.
13008 (neon_vrev64<mode>): Likewise.
13009 (neon_vrev32<mode>): Likewise.
13010 (neon_vrev16<mode>): Likewise.
13011 (neon_vbsl<mode>_internal): Likewise.
13012 (neon_vshl<mode>): Likewise.
13013 (neon_vqshl<mode>): Likewise.
13014 (neon_vshr_n<mode>): Likewise.
13015 (neon_vshrn_n<mode>): Likewise.
13016 (neon_vqshrn_n<mode>): Likewise.
13017 (neon_vqshrun_n<mode>): Likewise.
13018 (neon_vshl_n<mode>): Likewise.
13019 (neon_vqshl_n<mode>): Likewise.
13020 (neon_vqshlu_n<mode>): Likewise.
13021 (neon_vshll_n<mode>): Likewise.
13022 (neon_vsra_n<mode>): Likewise.
13023 (neon_vsri_n<mode>): Likewise.
13024 (neon_vsli_n<mode>): Likewise.
13025 (neon_vtbl1v8qi): Likewise.
13026 (neon_vtbl2v8qi): Likewise.
13027 (neon_vtbl3v8qi): Likewise.
13028 (neon_vtbl4v8qi): Likewise.
13029 (neon_vtbl1v16qi): Likewise.
13030 (neon_vtbl2v16qi): Likewise.
13031 (neon_vcombinev16qi): Likewise.
13032 (neon_vtbx1v8qi): Likewise.
13033 (neon_vtbx2v8qi): Likewise.
13034 (neon_vtbx3v8qi): Likewise.
13035 (neon_vtbx4v8qi): Likewise.
13036 (*neon_vtrn<mode>_insn): Likewise.
13037 (*neon_vzip<mode>_insn): Likewise.
13038 (*neon_vuzp<mode>_insn): Likewise.
13039 (neon_vld1<mode>): Likewise.
13040 (neon_vld1_lane<mode>): Likewise.
13041 (neon_vld1_lane<mode>): Likewise.
13042 (neon_vld1_dup<mode>): Likewise.
13043 (neon_vld1_dup<mode>): Likewise.
13044 (neon_vld1_dupv2di): Likewise.
13045 (neon_vst1<mode>): Likewise.
13046 (neon_vst1_lane<mode>): Likewise.
13047 (neon_vst1_lane<mode>): Likewise.
13048 (neon_vld2<mode>): Likewise.
13049 (neon_vld2<mode>): Likewise.
13050 (neon_vld2_lane<mode>): Likewise.
13051 (neon_vld2_lane<mode>): Likewise.
13052 (neon_vld2_dup<mode>): Likewise.
13053 (neon_vst2<mode>): Likewise.
13054 (neon_vst2<mode>): Likewise.
13055 (neon_vst2_lane<mode>): Likewise.
13056 (neon_vst2_lane<mode>): Likewise.
13057 (neon_vld3<mode>): Likewise.
13058 (neon_vld3qa<mode>): Likewise.
13059 (neon_vld3qb<mode>): Likewise.
13060 (neon_vld3_lane<mode>): Likewise.
13061 (neon_vld3_lane<mode>): Likewise.
13062 (neon_vld3_dup<mode>): Likewise.
13063 (neon_vst3<mode>): Likewise.
13064 (neon_vst3qa<mode>): Likewise.
13065 (neon_vst3qb<mode>): Likewise.
13066 (neon_vst3_lane<mode>): Likewise.
13067 (neon_vst3_lane<mode>): Likewise.
13068 (neon_vld4<mode>): Likewise.
13069 (neon_vld4qa<mode>): Likewise.
13070 (neon_vld4qb<mode>): Likewise.
13071 (neon_vld4_lane<mode>): Likewise.
13072 (neon_vld4_lane<mode>): Likewise.
13073 (neon_vld4_dup<mode>): Likewise.
13074 (neon_vst4<mode>): Likewise.
13075 (neon_vst4qa<mode>): Likewise.
13076 (neon_vst4qb<mode>): Likewise.
13077 (neon_vst4_lane<mode>): Likewise.
13078 (neon_vst4_lane<mode>): Likewise.
13079 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13080 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13081 (neon_vec_<US>mult_lo_<mode>): Likewise.
13082 (neon_vec_<US>mult_hi_<mode>): Likewise.
13083 (neon_vec_<US>shiftl_<mode>): Likewise.
13084 (neon_unpack<US>_<mode>): Likewise.
13085 (neon_vec_<US>mult_<mode>): Likewise.
13086 (vec_pack_trunc_<mode>): Likewise.
13087 (neon_vec_pack_trunc_<mode>): Likewise.
13088 (neon_vabd<mode>_2): Likewise.
13089 (neon_vabd<mode>_3): Likewise.
13091 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13093 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13094 (load_pair): Update type attribute.
13095 (store_pair): Update type attribute.
13096 * config/aarch64/iterators.md (q): New.
13098 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13100 * config/arm/types.md: Add new types for Neon insns.
13102 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13103 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13104 Sergey Lega <sergey.s.lega@intel.com>
13105 Anna Tikhonova <anna.tikhonova@intel.com>
13106 Ilya Tocar <ilya.tocar@intel.com>
13107 Andrey Turetskiy <andrey.turetskiy@intel.com>
13108 Ilya Verbin <ilya.verbin@intel.com>
13109 Kirill Yukhin <kirill.yukhin@intel.com>
13110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13112 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13113 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13114 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13115 (rcp14<mode>): New.
13116 (srcp14<mode>): Ditto.
13117 (rsqrt14<mode>): Ditto.
13118 (rsqrt14<mode>): Ditto.
13119 (avx512f_vmscalef<mode>): Ditto.
13120 (avx512f_scalef<mode>): Ditto.
13121 (avx512f_getexp<mode>): Ditto.
13122 (avx512f_sgetexp<mode>): Ditto.
13123 (avx512f_fixupimm<mode>): Ditto.
13124 (avx512f_sfixupimm<mode>): Ditto.
13125 (avx512f_rndscale<mode>): Ditto.
13126 (*avx512er_exp2<mode>): Ditto.
13127 (*avx512er_rcp28<mode>): Ditto.
13128 (avx512er_rsqrt28<mode>): Ditto.
13129 (avx512f_getmant<mode>): Ditto.
13130 (avx512f_getmant<mode>): Ditto.
13131 (avx512f_rndscale<mode>): Fix formatting.
13133 2013-10-15 Martin Jambor <mjambor@suse.cz>
13135 * ipa-utils.h (ipa_edge_within_scc): Declare.
13136 * ipa-cp.c (edge_within_scc): Moved...
13137 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13139 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13141 Sergey Lega <sergey.s.lega@intel.com>
13142 Anna Tikhonova <anna.tikhonova@intel.com>
13143 Ilya Tocar <ilya.tocar@intel.com>
13144 Andrey Turetskiy <andrey.turetskiy@intel.com>
13145 Ilya Verbin <ilya.verbin@intel.com>
13146 Kirill Yukhin <kirill.yukhin@intel.com>
13147 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13149 * config/i386/predicates.md (const_8_to_15_operand): New.
13150 (const_16_to_31_operand): Ditto.
13151 * config/i386/sse.md (V8FI): New.
13153 (reduc_splus_v8df): Ditto.
13154 (reduc_splus_v16sf): Ditto.
13155 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13156 (vec_extract_hi_<mode>): Ditto.
13157 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13158 (vec_set_lo_<mode>): Ditto.
13159 (vec_set_hi_<mode>): Ditto.
13160 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13161 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13162 (avx512f_pshufd_1): Ditto.
13163 (avx512f_broadcast<mode>): Ditto.
13164 (avx512f_broadcast<mode>): Ditto.
13165 (define_split): Split vec_extract_lo into move.
13166 (ssequartermode): Ditto.
13167 (ssedoublemode): Extened with wider modes.
13168 (vec_extract_lo_<mode>): Ditto.
13170 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13172 Sergey Lega <sergey.s.lega@intel.com>
13173 Anna Tikhonova <anna.tikhonova@intel.com>
13174 Ilya Tocar <ilya.tocar@intel.com>
13175 Andrey Turetskiy <andrey.turetskiy@intel.com>
13176 Ilya Verbin <ilya.verbin@intel.com>
13177 Kirill Yukhin <kirill.yukhin@intel.com>
13178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13180 * config/i386/predicates.md (register_or_constm1_operand): New.
13181 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13182 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13183 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13184 UNSPEC_SCATTER_PREFETCH
13186 (avx512f_ucmp<mode>3): Ditto.
13187 (avx512f_vternlog<mode>): Ditto.
13188 (avx512f_align<mode>): Ditto.
13189 (<shift_insn><mode>3): Ditto.
13190 (avx512f_<rotate>v<mode>): Ditto.
13191 (avx512f_<rotate><mode>): Ditto.
13192 (avx512f_eq<mode>3): Ditto.
13193 (avx512f_eq<mode>3_1): Ditto.
13194 (avx512f_gt<mode>3): Ditto.
13195 (avx512f_testm<mode>3): Ditto.
13196 (avx512f_testnm<mode>3): Ditto.
13197 (avx512pf_gatherpf<mode>): Ditto.
13198 (*avx512pf_gatherpf<mode>_mask): Ditto.
13199 (*avx512pf_gatherpf<mode>): Ditto.
13200 (avx512pf_scatterpf<mode>): Ditto.
13201 (*avx512pf_scatterpf<mode>_mask): Ditto.
13202 (*avx512pf_scatterpf<mode>): Ditto.
13203 (avx512f_vec_dup_gpr<mode>): Ditto.
13204 (clz<mode>2): Ditto.
13205 (conflict<mode>): Ditto.
13206 (REDUC_SMINMAX_MODE): Extened with wider modes.
13207 (reduc_<code>_<mode>): Ditto.
13208 (vlshr<mode>3): Ditto.
13209 (vashl<mode>3): Ditto.
13211 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13213 Sergey Lega <sergey.s.lega@intel.com>
13214 Anna Tikhonova <anna.tikhonova@intel.com>
13215 Ilya Tocar <ilya.tocar@intel.com>
13216 Andrey Turetskiy <andrey.turetskiy@intel.com>
13217 Ilya Verbin <ilya.verbin@intel.com>
13218 Kirill Yukhin <kirill.yukhin@intel.com>
13219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13221 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13224 (avx512fmaskmode): Ditto.
13225 (bcstscalarsuff): Ditto.
13226 (avx512f_blendm<mode>): Ditto.
13227 (cmp_imm_predicate): Ditto.
13228 (avx512f_cmp<mode>3): Ditto.
13229 (avx512f_vec_dup<mode>): Ditto.
13230 (avx512f_vec_dup_mem<mode>): Ditto.
13231 (avx512f_vpermi2var<mode>3): Ditto.
13232 (avx512f_vpermt2var<mode>3): Ditto.
13233 (vec_init<mode>): Ditto.
13234 (avx512f_gathersi<mode>): Ditto.
13235 (*avx512f_gathersi<mode>): Ditto.
13236 (*avx512f_gathersi<mode>_2): Ditto.
13237 (avx512f_gatherdi<mode>): Ditto.
13238 (*avx512f_gatherdi<mode>): Ditto.
13239 (*avx512f_gatherdi<mode>_2): Ditto.
13240 (avx512f_scattersi<mode>): Ditto.
13241 (*avx512f_scattersi<mode>): Ditto.
13242 (avx512f_scatterdi<mode>): Ditto.
13243 (*avx512f_scatterdi<mode>): Ditto.
13244 (sseintprefix): Extened with wider modes.
13245 (VEC_GATHER_IDXSI): Ditto.
13246 (VEC_GATHER_IDXDI): Ditto.
13247 (VEC_GATHER_SRCDI): Ditto.
13249 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13250 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13252 * config/arm/t-aprofile: New file.
13253 * config.gcc: Handle --with-multilib-list option.
13255 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13257 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13260 2013-10-15 Richard Biener <rguenther@suse.de>
13262 * tree-loop-distribution.c (build_empty_rdg): Inline into
13264 (rdg_flag_vertex): Inline into single user.
13265 (rdg_flag_vertex_and_dependent): Likewise.
13266 (build_rdg_partition_for_vertex): Remove processed bitmap.
13267 (rdg_build_partitions): Simplify.
13269 2013-10-15 Richard Biener <rguenther@suse.de>
13271 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13272 Restructure forwarding through conversions and copies to
13273 avoid performing copy-propagation the wrong way. Adjust
13274 recursion invocations.
13275 (forward_propagate_addr_expr): Add argument stating if we
13276 are recursing from a single-use.
13277 (ssa_forward_propagate_and_combine): Adjust.
13279 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13281 * dumpfile.h (gcc::dump_manager): New class, to hold state
13282 relating to dumpfile management.
13283 (get_dump_file_name): Remove in favor of method of dump_manager.
13284 (dump_initialized_p): Likewise.
13285 (dump_start): Likewise.
13286 (dump_finish): Likewise.
13287 (dump_switch_p): Likewise.
13288 (dump_register): Likewise.
13289 (get_dump_file_info): Likewise.
13290 * context.c (gcc::context::context): Construct the dump_manager
13292 * context.h (gcc::context::get_dumps): New.
13293 (gcc::context::m_dumps): New.
13294 * coverage.c (coverage_init): Port to dump_manager API.
13295 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13296 (extra_dump_files_in_use): Likewise.
13297 (extra_dump_files_alloced): Likewise.
13298 (gcc::dump_manager::dump_manager): New.
13299 (dump_register): Convert to...
13300 (gcc::dump_manager::dump_register): ...method, replacing
13301 function-static next_dump with m_next_dump field.
13302 (get_dump_file_info): Convert to...
13303 (gcc::dump_manager::get_dump_file_info): ...method.
13304 (get_dump_file_name): Convert to...
13305 (gcc::dump_manager::get_dump_file_name): ...method.
13306 (dump_start): Convert to...
13307 (gcc::dump_manager::dump_start): ...method.
13308 (dump_finish): Convert to...
13309 (gcc::dump_manager::dump_finish): ...method.
13310 (dump_begin): Replace body with...
13311 (gcc::dump_manager::dump_begin): ...new method.
13312 (dump_phase_enabled_p): Convert to...
13313 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13314 (dump_phase_enabled_p): Convert to...
13315 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13316 (dump_initialized_p): Convert to...
13317 (gcc::dump_manager::dump_initialized_p): ...method.
13318 (dump_flag_name): Replace body with...
13319 (gcc::dump_manager::dump_flag_name): ...new method.
13320 (dump_enable_all): Convert to...
13321 (gcc::dump_manager::dump_enable_all): ...new method.
13322 (opt_info_enable_passes): Convert to...
13323 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13324 (dump_switch_p_1): Convert to...
13325 (gcc::dump_manager::dump_switch_p_1): ...new method.
13326 (dump_switch_p): Convert to...
13327 (gcc::dump_manager::dump_switch_p): ...new method.
13328 (opt_info_switch_p): Port to dump_manager API.
13329 (enable_rtl_dump_file): Likewise.
13330 * opts-global.c (handle_common_deferred_options): Port to new
13332 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13333 (pass_manager::register_one_dump_file): Likewise.
13334 (pass_manager::register_pass): Likewise.
13335 (pass_init_dump_file): Likewise.
13336 (pass_fini_dump_file): Likewise.
13337 * statistics.c (statistics_early_init): Likewise.
13339 2013-10-14 Richard Biener <rguenther@suse.de>
13341 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13342 iterative_hash_canonical_type, gimple_canonical_type_hash,
13343 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13344 gimple_register_canonical_type, print_gimple_types_stats,
13345 free_gimple_type_tables): Move to lto/lto.c
13346 (gt-gimple.h): Do not include.
13347 * gimple.h (gimple_register_canonical_type,
13348 print_gimple_types_stats, free_gimple_type_tables): Remove.
13349 * Makefile.in (GTFILES): Remove gimple.c.
13351 2013-10-14 Travis Snoozy <quandary@remstate.com>
13354 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13355 scanning for msp430x targets.
13357 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13360 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13361 (registers_ok_for_ldd_peep): Move around.
13362 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13363 * config/sparc/sparc.md (widening peepholes): Use it.
13365 2013-10-14 Richard Biener <rguenther@suse.de>
13367 PR middle-end/58712
13368 PR middle-end/55358
13369 * gimple.c (iterative_hash_canonical_type): Make sure to
13370 record the hash into the correct hashtable slot.
13372 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13374 PR rtl-optimization/58662
13375 * combine.c (try_combine): Take into account death nodes on I2 when
13376 splitting a PARALLEL of two independent SETs. Fix dump message.
13378 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13381 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13382 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13384 * config/sh/t-sh (sh_treg_combine.o): New entry.
13385 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13386 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13387 (register_sh_passes): New function. Register sh_treg_combine pass.
13388 (sh_option_override): Invoke it.
13389 (sh_canonicalize_comparison): Handle op0_preserve_value.
13390 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13391 opportunities. Canonicalize branch condition.
13392 (nott): Allow only if pseudos can be created for non-SH2A.
13394 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13397 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13398 (ix86_expand_movmem): Replace copy_addr_to_reg with
13399 ix86_copy_addr_to_reg.
13400 (ix86_expand_setmem): Likewise.
13402 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13404 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13405 provided by ix86_fp_compare_mode instead of CCFPUmode.
13407 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13409 * config/aarch64/arm_neon.h
13410 (vtbx<1,3>_<psu>8): Fix register constriants.
13412 2013-10-11 Jeff Law <law@redhat.com>
13414 PR tree-optimization/58640
13415 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13416 threading paths that cross over two loop entry points.
13418 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13420 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13421 handle vector float as well.
13422 (*vsx_le_perm_load_v4si): Likewise.
13423 (*vsx_le_perm_store_v2di): Likewise.
13424 (*vsx_le_perm_store_v4si): Likewise.
13426 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13428 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13429 directly to circumvent subtract from splat{31} workaround.
13430 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13432 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13433 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13434 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13435 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13436 separate big and little endian logic.
13437 (*altivec_vperm_<mode>_internal): New define_insn.
13438 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13439 separate big and little endian logic.
13440 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13441 (vec_permv16qi): Add little endian logic.
13443 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13445 * doc/extend.texi (returns_nonnull): Remove arguments.
13447 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13449 Sergey Lega <sergey.s.lega@intel.com>
13450 Anna Tikhonova <anna.tikhonova@intel.com>
13451 Ilya Tocar <ilya.tocar@intel.com>
13452 Andrey Turetskiy <andrey.turetskiy@intel.com>
13453 Ilya Verbin <ilya.verbin@intel.com>
13454 Kirill Yukhin <kirill.yukhin@intel.com>
13455 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13457 * config/i386/sse.md (VI48F_256_512): New.
13458 (avx2_permvar<mode>): Change to ...
13459 (<avx2_avx512f>_permvar<mode>): This.
13461 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13463 Sergey Lega <sergey.s.lega@intel.com>
13464 Anna Tikhonova <anna.tikhonova@intel.com>
13465 Ilya Tocar <ilya.tocar@intel.com>
13466 Andrey Turetskiy <andrey.turetskiy@intel.com>
13467 Ilya Verbin <ilya.verbin@intel.com>
13468 Kirill Yukhin <kirill.yukhin@intel.com>
13469 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13471 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13472 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13473 * config/i386/sse.md (VI4_AVX): New.
13474 (sf2simodelower): Ditto.
13475 (sse2_cvtps2dq): Change to ...
13476 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13478 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13480 Sergey Lega <sergey.s.lega@intel.com>
13481 Anna Tikhonova <anna.tikhonova@intel.com>
13482 Ilya Tocar <ilya.tocar@intel.com>
13483 Andrey Turetskiy <andrey.turetskiy@intel.com>
13484 Ilya Verbin <ilya.verbin@intel.com>
13485 Kirill Yukhin <kirill.yukhin@intel.com>
13486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13488 * config/i386/sse.md (V_512): New.
13490 (vcond<V_512:mode><VF_512:mode>): Ditto.
13491 (vcond<V_512:mode><VI_512:mode>): Ditto.
13492 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13494 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13495 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13496 Sergey Lega <sergey.s.lega@intel.com>
13497 Anna Tikhonova <anna.tikhonova@intel.com>
13498 Ilya Tocar <ilya.tocar@intel.com>
13499 Andrey Turetskiy <andrey.turetskiy@intel.com>
13500 Ilya Verbin <ilya.verbin@intel.com>
13501 Kirill Yukhin <kirill.yukhin@intel.com>
13502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13504 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13505 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13507 (fma<mode>4): Removed condition.
13508 (fms<mode>4): Ditto.
13509 (fnma<mode>4): Ditto.
13510 (fnms<mode>4): Ditto.
13511 (fma4i_fmadd_<mode>): Ditto.
13512 (*fma_fmadd_<mode>): Ditto.
13513 (*fma_fmsub_<mode>): Ditto.
13514 (*fma_fnmadd_<mode>): Ditto.
13515 (*fma_fnmsub_<mode>): Ditto.
13516 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13517 (*fma_fmaddsub_<mode>): Ditto.
13518 (*fma_fmsubadd_<mode>): Ditto.
13519 (*fmai_fmadd_<mode>): Ditto.
13520 (*fmai_fmsub_<mode>): Ditto.
13521 (*fmai_fnmadd_<mode>): Ditto.
13522 (*fmai_fnmsub_<mode>): Ditto.
13524 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13526 Sergey Lega <sergey.s.lega@intel.com>
13527 Anna Tikhonova <anna.tikhonova@intel.com>
13528 Ilya Tocar <ilya.tocar@intel.com>
13529 Andrey Turetskiy <andrey.turetskiy@intel.com>
13530 Ilya Verbin <ilya.verbin@intel.com>
13531 Kirill Yukhin <kirill.yukhin@intel.com>
13532 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13534 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13535 (VI124_256): Changed to ...
13536 (VI124_256_48_512): This.
13537 (ssepackmode): Extended with wider modes.
13538 (<code><mode>3): Changed iterator.
13539 (*avx2_<code><mode>3): Ditto.
13540 (vec_pack_trunc_<mode>): Ditto.
13542 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13544 Sergey Lega <sergey.s.lega@intel.com>
13545 Anna Tikhonova <anna.tikhonova@intel.com>
13546 Ilya Tocar <ilya.tocar@intel.com>
13547 Andrey Turetskiy <andrey.turetskiy@intel.com>
13548 Ilya Verbin <ilya.verbin@intel.com>
13549 Kirill Yukhin <kirill.yukhin@intel.com>
13550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13552 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13553 (VI8F_256_512): Ditto.
13554 (abs<mode>2): Changed iterator.
13555 (avx2_perm<mode>): Changed to ...
13556 (<avx2_avx512f>_perm<mode>): This.
13557 (avx2_perm<mode>_1): Changed to ...
13558 (<avx2_avx512f>_perm<mode>_1): This.
13560 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13562 Sergey Lega <sergey.s.lega@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 (VI48_AVX512F): New.
13571 (VI48_AVX2): Changed to ...
13572 (VI48_AVX2_48_AVX512F): This.
13573 (avx2_ashrv<mode>): Changed to ...
13574 (<avx2_avx512f>_ashrv<mode>): This.
13575 (avx2_<shift_insn>v<mode>): Changed to ...
13576 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13578 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13579 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13580 Sergey Lega <sergey.s.lega@intel.com>
13581 Anna Tikhonova <anna.tikhonova@intel.com>
13582 Ilya Tocar <ilya.tocar@intel.com>
13583 Andrey Turetskiy <andrey.turetskiy@intel.com>
13584 Ilya Verbin <ilya.verbin@intel.com>
13585 Kirill Yukhin <kirill.yukhin@intel.com>
13586 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13588 * config/i386/sse.md (VI4_AVX512F): New.
13589 (VI8_AVX2_AVX512F): Ditto.
13590 (mul<mode>3): Extended with wider modes.
13591 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13592 (mul<mode>3): Ditto.
13593 (vec_widen_<s>mult_odd_<mode>): Ditto.
13595 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13596 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13597 Sergey Lega <sergey.s.lega@intel.com>
13598 Anna Tikhonova <anna.tikhonova@intel.com>
13599 Ilya Tocar <ilya.tocar@intel.com>
13600 Andrey Turetskiy <andrey.turetskiy@intel.com>
13601 Ilya Verbin <ilya.verbin@intel.com>
13602 Kirill Yukhin <kirill.yukhin@intel.com>
13603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13605 * config/i386/sse.md (VI2_AVX512F): New.
13606 (VI124_AVX512F): Ditto.
13607 (sseunpackmode): Extended with wider modes.
13608 (sseunpackfltmode): Ditto.
13609 (vec_unpacks_float_hi_<mode>): Ditto.
13610 (vec_unpacks_float_lo_<mode>): Ditto.
13611 (vec_unpacku_float_hi_<mode>): Ditto.
13612 (vec_unpacku_float_lo_<mode>): Ditto.
13613 (vec_unpacks_lo_<mode>): Ditto.
13614 (vec_unpacks_hi_<mode>): Ditto.
13615 (vec_unpacku_lo_<mode>): Ditto.
13616 (vec_unpacku_hi_<mode>): Ditto.
13618 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13620 Sergey Lega <sergey.s.lega@intel.com>
13621 Anna Tikhonova <anna.tikhonova@intel.com>
13622 Ilya Tocar <ilya.tocar@intel.com>
13623 Andrey Turetskiy <andrey.turetskiy@intel.com>
13624 Ilya Verbin <ilya.verbin@intel.com>
13625 Kirill Yukhin <kirill.yukhin@intel.com>
13626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13628 * config/i386/i386.md (multdiv): New.
13629 (multdiv_mnemonic): Ditto.
13630 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13631 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13632 (<sse>_vmdiv<mode>3): Removed.
13634 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13636 Sergey Lega <sergey.s.lega@intel.com>
13637 Anna Tikhonova <anna.tikhonova@intel.com>
13638 Ilya Tocar <ilya.tocar@intel.com>
13639 Andrey Turetskiy <andrey.turetskiy@intel.com>
13640 Ilya Verbin <ilya.verbin@intel.com>
13641 Kirill Yukhin <kirill.yukhin@intel.com>
13642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13644 * config/i386/sse.md (V): Extended with wider modes.
13646 (ssehalfvecmode): Ditto.
13648 (ssepackfltmode): Ditto.
13649 (avx_vec_concat<mode>): Ditto.
13650 (V_256_512): New iterator.
13651 (VF2_512_256): Ditto.
13652 (si2dfmode): New attribute.
13653 (si2dfmodelower): Ditto.
13654 (sf2dfmode): Ditto.
13655 (concat_tg_mode): Ditto.
13656 (floatv4siv4df2): Changed to ...
13657 (float<si2dfmodelower><mode>2): This.
13658 (avx_cvtps2pd256): Changed to ...
13659 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13660 (vec_pack_trunc_v4df): Changed to ...
13661 (vec_pack_trunc_<mode>): This.
13662 (avx_vpermil<mode>): Changed to ...
13663 (<sse2_avx_avx512f>_vpermil<mode>): This.
13664 (<fixsuffix>fix_truncv8dfv8si2): New.
13665 (vec_pack_sfix_trunc_v8df): Ditto.
13666 (avx512f_rndscale<mode>): Ditto.
13667 (avx512f_roundpd512): Ditto.
13668 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13670 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13672 Sergey Lega <sergey.s.lega@intel.com>
13673 Anna Tikhonova <anna.tikhonova@intel.com>
13674 Ilya Tocar <ilya.tocar@intel.com>
13675 Andrey Turetskiy <andrey.turetskiy@intel.com>
13676 Ilya Verbin <ilya.verbin@intel.com>
13677 Kirill Yukhin <kirill.yukhin@intel.com>
13678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13680 * config/i386/i386.md (any_fix): New iterator.
13681 (fixsuffix): New attribute.
13682 * config/i386/sse.md (VF1): Extened with wider modes.
13686 (sseintvecmodelower): Ditto.
13687 (ssescalarmode): Ditto.
13688 (ssescalarnum): Ditto.
13689 (VF1_128_256): New.
13690 (ssexmmmode): Ditto.
13691 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13692 (<sse>_rcp<mode>2): Change iterator.
13693 (rsqrt<mode>2): Ditto.
13694 (<sse>_rsqrt<mode>2): Ditto.
13695 (avx2_vec_dup<mode>): Ditto.
13696 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13697 (round<mode>2_sfix): Ditto.
13698 (avx2_pbroadcast<mode>): Ditto.
13699 (*andnot<mode>3): Handle XI mode.
13700 (*<code><mode>3): Ditto.
13701 (AVXTOSSEMODE): Removed.
13702 (avx_vpermil<mode>): Changed to ...
13703 (<sse2_avx_avx512f>_vpermil<mode>): This.
13705 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13707 Sergey Lega <sergey.s.lega@intel.com>
13708 Anna Tikhonova <anna.tikhonova@intel.com>
13709 Ilya Tocar <ilya.tocar@intel.com>
13710 Andrey Turetskiy <andrey.turetskiy@intel.com>
13711 Ilya Verbin <ilya.verbin@intel.com>
13712 Kirill Yukhin <kirill.yukhin@intel.com>
13713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13715 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13716 (<sse>_comi): Ditto.
13717 (<sse>_ucomi): Ditto.
13718 (sse_cvtss2siq_2): Ditto.
13719 (sse2_cvtsd2si): Ditto.
13720 (sse2_cvtsd2siq): Ditto.
13721 (sse2_cvttsd2si): Ditto.
13722 (sse2_cvttsd2siq): Ditto.
13723 (<shift_insn><mode>3): Ditto.
13724 (sse2_cvtsi2sdq): Update constraint and prefix.
13725 (sse_cvtsi2ss): Update prefix.
13726 (sse_cvtsi2ssq): Ditto.
13728 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13730 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13731 ignore internal calls.
13733 2013-10-11 Richard Biener <rguenther@suse.de>
13735 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13736 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13737 TREE_OVERFLOW is set.
13739 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13741 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13743 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13744 * gimple.h: Likewise.
13746 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13748 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13751 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13753 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13754 * configure: Regenerate.
13756 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13758 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13759 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13760 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13761 similarly pp_right_paren.
13762 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13763 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13764 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13765 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13767 (omp_declare_simd_clauses_equal,
13768 omp_remove_redundant_declare_simd_attrs): New functions.
13769 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13770 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13771 * tree.h (OMP_LOOP_CHECK): Define.
13772 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13773 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13774 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13775 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13776 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13777 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13778 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13779 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13780 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13781 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13782 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13783 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13784 (omp_remove_redundant_declare_simd_attrs): New prototype.
13785 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13786 GIMPLE_OMP_TEAMS): New codes.
13787 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13788 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13790 (target_nesting_level): New variable.
13791 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13792 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13793 for collapse > 1 static schedule unless ordered.
13794 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13795 (determine_parallel_type): Adjust get_ws_args_for caller.
13796 (install_var_field): Handle mask & 4 for double indirection.
13797 (scan_sharing_clauses): Ignore shared clause on teams construct.
13798 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13799 (create_omp_child_function): If inside target or declare target
13800 constructs, set "omp declare target" attribute on the child function.
13801 (find_combined_for): New function.
13802 (scan_omp_parallel): Handle combined loops.
13803 (scan_omp_target, scan_omp_teams): New functions.
13804 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13805 restrictions and set ctx->cancellable for cancellable constructs.
13806 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13807 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13808 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13809 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13810 (omp_clause_aligned_alignment): New function.
13811 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13812 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13813 on teams constructs. Handle user defined reductions and new
13814 OpenMP 4.0 clauses.
13815 (lower_reduction_clauses): Don't set placeholder to address of ref
13816 if it has already the right type.
13817 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13818 (expand_parallel_call): Use the new non-_start suffixed builtins,
13819 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13820 and GOMP_parallel_end after the call.
13821 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13822 (expand_omp_for_init_counts): Handle combined loops.
13823 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13825 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13826 end of cancellable loops.
13827 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13828 Likewise. Handle collapse > 1 loops.
13829 (expand_omp_simd): Handle combined loops.
13830 (expand_omp_for): Add inner_stmt argument, adjust callers of
13831 expand_omp_for* functions, use expand_omp_for_static*chunk even
13832 for collapse > 1 unless ordered.
13833 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13834 of cancellable sections.
13835 (expand_omp_single): Remove need_barrier variable, just rely on
13836 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13837 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13838 (expand_omp_atomic_load, expand_omp_atomic_store,
13839 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13840 (expand_omp_target): New function.
13841 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13842 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13843 (build_omp_regions_1): Immediately close region for
13844 GF_OMP_TARGET_KIND_UPDATE.
13845 (maybe_add_implicit_barrier_cancel): New function.
13846 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13848 (lower_omp_single): Likewise. Add clobber after the barrier.
13849 (lower_omp_taskgroup): New function.
13850 (lower_omp_for): Handle combined loops. Adjust
13851 lower_rec_input_clauses caller. Handle cancellation.
13852 (lower_depend_clauses): New function.
13853 (lower_omp_taskreg): Lower depend clauses. Adjust
13854 lower_rec_input_clauses caller. Add clobber after the call. Handle
13856 (lower_omp_target, lower_omp_teams): New functions.
13857 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13858 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13859 and GOMP_cancellation_point calls.
13860 (lower_omp): Fold stmts inside of target region.
13861 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13862 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13863 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13864 (BT_FN_VOID_OMPFN_PTR_UINT,
13865 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13866 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13867 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13868 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13869 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13870 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13871 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13872 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13873 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13874 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13875 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13876 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13877 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13878 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13879 BUILT_IN_GOMP_PARALLEL_END.
13880 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13881 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13882 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13883 GF_OMP_FOR_KIND_DISTRIBUTE.
13884 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13885 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13886 (dump_gimple_omp_return): Print lhs if it has any.
13887 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13888 gimple_omp_atomic_seq_cst_p.
13889 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13890 and GIMPLE_OMP_TEAMS.
13891 * langhooks.c (lhd_omp_mappable_type): New function.
13892 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13893 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13895 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13896 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13897 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13898 (struct gimplify_omp_ctx): Add combined_loop field.
13899 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13900 on stmts inside of target region.
13901 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13902 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13903 ORT_TARGET and ORT_TARGET_DATA.
13904 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13906 (omp_notice_threadprivate_variable): Complain about threadprivate
13907 variables in target region.
13908 (omp_notice_variable): Complain about vars with non-mappable type
13909 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13910 (omp_check_private): Ignore ORT_TARGET* regions.
13911 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13912 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13913 (find_combined_omp_for): New function.
13914 (gimplify_omp_for): Handle gimplification of combined loops.
13915 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13917 (gimplify_omp_target_update): New function.
13918 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13919 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13920 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13921 (gimplify_body): If fndecl has "omp declare target" attribute, add
13922 implicit ORT_TARGET context around it.
13923 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13924 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13925 * tree-nested.c (convert_nonlocal_reference_stmt,
13926 convert_local_reference_stmt, convert_gimple_call): Handle
13927 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13928 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13929 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13930 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13931 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13932 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13933 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13934 BUILT_IN_GOMP_LOOP_END_CANCEL,
13935 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13936 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13937 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13938 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13939 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13940 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13941 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13942 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13943 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13944 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13945 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13946 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13947 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13948 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13949 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13950 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13951 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13952 gimple_build_omp_teams): New functions.
13953 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13954 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13955 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13956 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13957 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13958 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13959 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13960 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13961 GF_OMP_ATOMIC_SEQ_CST): New.
13962 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13963 gimple_build_omp_teams): New prototypes.
13964 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13965 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13966 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13967 GIMPLE_OMP_SINGLE as end of range.
13968 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13969 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13970 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13971 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13972 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13973 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13974 gimple_omp_target_kind, gimple_omp_target_set_kind,
13975 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13976 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13977 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13978 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13979 gimple_omp_teams_set_clauses): New inlines.
13980 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13981 and GIMPLE_OMP_TASKGROUP.
13982 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13983 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13984 enum omp_clause_proc_bind_kind): New.
13985 (union omp_clause_subcode): Add depend_kind, map_kind and
13986 proc_bind_kind fields.
13987 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13988 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13989 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13990 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13991 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13993 2013-10-10 Teresa Johnson <tejohnson@google.com>
13995 * predict.c (tree_estimate_probability): Add new parameter
13996 for estimate_bb_frequencies.
13997 (estimate_bb_frequencies): Add new parameter to force estimation.
13998 (rebuild_frequencies): When max frequency in function is small,
13999 recompute counts from frequencies.
14000 * predict.h (estimate_bb_frequencies): New parameter.
14002 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14004 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14005 optimizations are disabled.
14007 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14009 * coverage.c (coverage_finish): Fix leak of da_file_name.
14011 2013-10-10 Jan Hubicka <jh@suse.cz>
14013 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14014 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14015 Bobcat and generic.
14017 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14019 PR middle-end/58670
14020 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14021 if any labels are in FALLTHRU_BB, use a special label emitted
14022 immediately after the asm goto insn rather than label_rtx
14024 (expand_asm_stmt): Adjust caller.
14025 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14026 edge if the last insn in predecessor is a jump with single successor,
14027 but it isn't simplejump_p.
14029 2013-10-10 Richard Biener <rguenther@suse.de>
14031 PR tree-optimization/58656
14032 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14034 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14036 * gimplify.c: Include expr.h and tm_p.h for targets with special
14037 va-arg padding requirements.
14039 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14041 * tree-flow.h: Move some prototypes to gimple.h.
14042 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14043 * gimple.h: Relocate some prototypes from tree-flow.h
14044 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14045 Move to gimplify.c.
14046 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14047 (build_va_arg_indirect_ref): Relocate and make static.
14048 (std_gimplify_va_arg_expr): Relocate here.
14049 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14050 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14052 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14054 * doc/md.texi: Document the mnemonic attribute.
14056 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14059 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14060 (set_attr_alternative x ...) when searching for user defined
14061 mnemonic attribute.
14063 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14065 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14067 2013-10-09 Easwaran Raman <eraman@google.com>
14069 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14070 * cfgexpand.c (defer_stack_allocation): ...use here
14071 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14073 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14075 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14076 (operand_equal_for_value_replacement): New function, extracted from
14077 value_replacement and enhanced to catch more cases.
14078 (value_replacement): Use operand_equal_for_value_replacement.
14080 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14082 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14083 get_max_loop_iterations.
14085 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14087 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14088 Place comment above function.
14090 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14092 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14093 are not related to tree-cfg.c.
14094 * tree-ssa-address.h: New file. Relocate prototypes.
14095 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14096 (addr_for_mem_ref): New. Combine call to get_address_description and
14097 return addr_for_mem_ref.
14098 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14099 * tree-ssa-live.h: Adjust prototypes.
14100 * passes.c: Include tree-ssa-live.h.
14101 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14102 * graphite.c (graphite_transform_loops): Make static.
14103 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14104 make_pass_graphite, pass_data_graphite_transforms,
14105 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14106 * ipa-pure-const.c (warn_function_noreturn): Make static.
14107 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14108 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14109 Relocate from tree-cfg.c
14110 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14112 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14113 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14114 Move to ipa-pure-const.c.
14115 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14116 Relocate from tree-optimize.c.
14117 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14118 make_pass_fixup_cfg): Move to tree-cfg.c.
14119 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14120 Relocate some prototypes.
14121 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14122 * tree-dump.c (dump_function_to_file): Remove prototype.
14123 Add tree-flow.h to the include file.
14124 * tree-dump.h: Remove prototype.
14125 * tree-parloops.h: New File. Add prototypes.
14126 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14127 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14128 from tree-ssa-loop.c.
14129 * tree-predcom.c (run_tree_predictive_commoning,
14130 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14131 Relocate here from tree-ssa-loop.c.
14132 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14133 ssa_name_values.release ().
14134 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14135 (ssa_name_values): Relocate from tree-flow.h.
14136 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14137 * tree-ssa-loop.c (run_tree_predictive_commoning,
14138 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14139 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14140 make_pass_graphite, pass_data_graphite_transforms,
14141 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14142 tree_parallelize_loops, pass_data_parallelize_loops,
14143 make_pass_parallelize_loops): Move to other files.
14144 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14146 * tree.h: Remove prototypes from tree-address.c.
14148 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14150 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14151 (struct int_tree_map): Move to tree-hasher.h
14152 (SCALE, LABEL, PERCENT): Move to gimple.h
14153 * tree-flow-inline.h: Delete. Move functions to other files.
14154 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14155 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14156 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14157 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14158 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14159 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14160 * tree-hasher.h: Don't include tree-flow.h.
14161 (struct int_tree_map): Relocate from tree-flow.h.
14162 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14163 tree-flow-inline.h and make static.
14164 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14165 tree-flow-inline.h.
14166 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14167 tree-flow-inline.h and make static.
14168 * tree.h (is_global_var, may_be_aliased): Relocate from
14169 tree-flow-inline.h.
14170 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14171 * value-prof.c: No longer include tree-flow-inline.h.
14172 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14174 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14176 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14177 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14178 (enum move_pos): Move to tree-ssa-loop-im.h
14179 * cfgloop.h: Move some prototypes.
14180 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14181 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14182 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14183 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14184 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14185 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14186 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14187 (enum move_pos): Relocate here.
14188 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14190 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14191 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14192 make_pass_lim): Relocate here from tree-ssa-loop.c.
14193 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14195 (loop_edge_to_cancel, unloop_loops): Make static.
14196 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14197 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14198 (tree_complete_unroll, gate_tree_complete_unroll,
14199 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14200 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14201 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14202 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14203 (stmt_invariant_in_loop_p): Remove unused function.
14204 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14205 * tree-ssa-loop-manip.h: New file. Add prototypes.
14206 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14207 (gcov_type_to_double_int): Move to cfgloop.h.
14208 (double_int_cmp, bound_index,
14209 estimate_numbers_of_iterations_loop): Make static.
14210 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14211 (max_loop_iterations): Factor out get_max_loop_iterations.
14212 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14214 * tree-ssa-loop-niter.h: New file. Add prototypes.
14215 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14216 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14217 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14218 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14219 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14220 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14221 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14222 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14223 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14224 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14225 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14226 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14227 pass_data_complete_unroll, make_pass_complete_unroll,
14228 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14229 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14230 tree-ssa-loop-ivcanon.c.
14231 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14232 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14233 tree-ssa-loop-prefetch.c.
14234 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14235 tree-ssa-loop-im.c.
14236 (get_lsm_tmp_name): Relocate and add suffix parameter.
14237 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14238 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14239 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14240 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14241 (get_estimated_loop_iterations): Factor out accessor from
14242 estimated_loop_iterations in tree-ssa-loop-niter.c.
14243 (get_max_loop_iterations): Factor out accessor from
14244 _max_loop_iterations in tree-ssa-niter.c.
14245 * loop-unroll.c (decide_unroll_constant_iterations,
14246 decide_unroll_runtime_iterations, decide_peel_simple,
14247 decide_unroll_stupid): Use new get_* accessors.
14249 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14251 PR tree-optimization/20318
14252 * doc/extend.texi (returns_nonnull): New function attribute.
14253 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14255 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14256 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14258 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14260 PR middle-end/58570
14261 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14262 false if both components are bitfields.
14264 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14266 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14267 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14268 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14269 * config/aarch64/aarch64.h
14270 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14271 * config/aarch64/aarch64-simd-builtins.def
14272 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14274 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14276 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14278 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14280 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14282 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14284 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14285 (vneg_f64): New intrinsic.
14286 (vneg_s8): Asm replaced with C.
14287 (vneg_s16): Likewise.
14288 (vneg_s32): Likewise.
14289 (vneg_s64): New intrinsic.
14290 (vnegq_f32): Asm replaced with C.
14291 (vnegq_f64): Likewise.
14292 (vnegq_s8): Likewise.
14293 (vnegq_s16): Likewise.
14294 (vnegq_s32): Likewise.
14295 (vnegq_s64): Likewise.
14297 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14299 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14301 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14303 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14304 packed stack special handling.
14305 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14306 back to fixed stack slots for FPRs saved due to stdarg.
14308 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14310 * config/s390/s390.c (s390_frame_info): Restructure function.
14312 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14314 * config/s390/s390.c (struct s390_frame_layout): New field
14316 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14317 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14318 regs_ever_clobbered to char*.
14319 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14320 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14321 (s390_register_info): Enable FPR save slots. Move/Copy some
14322 functionality into ...
14323 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14324 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14326 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14327 not imply a stack frame.
14328 (s390_init_frame_layout): Remove variable clobbered_regs.
14329 (s390_update_register_info): Remove function.
14330 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14331 cannot be used for register renaming.
14332 (s390_hard_regno_scratch_ok): New function.
14333 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14334 (s390_initial_elimination_offset): Change offset calculation of
14335 the return address pointer.
14336 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14337 (restore_gprs): Set frame related flag.
14338 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14339 (s390_emit_prologue): Call s390_register_info instead of
14340 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14341 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14342 (s390_optimize_prologue): Call s390_optimize_register_info.
14343 Try to remove also FPR slot save/restore INSNs. Remove frame
14344 related flags from restore INSNs.
14346 2013-10-08 DJ Delorie <dj@redhat.com>
14348 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14351 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14352 avoid conflict with the MI use of %c.
14353 * config/rl78/rl78-real.md: change %c to %C throughout.
14354 * config/rl78/rl78-virt.md: Likewise.
14356 2013-10-08 Jan Hubicka <jh@suse.cz>
14358 * config/i386/i386.c (ix86_option_override_internal): Switch
14359 to SSE math for -ffast-math when target ISA supports SSE2.
14361 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14363 * tree-flow.h: Remove some prototypes.
14364 * tree.h: Remove some protypes, add a couple.
14365 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14366 using_eh_for_cleanups_p): Add interface routines for front ends.
14367 * tree-eh.h: New file. Add protoptyes.
14368 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14369 (add_stmt_to_eh_lp_fn): Make static.
14370 (lower_try_finally): Use new using_eh_for_cleanups_p.
14371 * emit-rtl.c: Include tree-eh.h.
14372 * gimple.h: Include tree-eh.h.
14374 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14376 PR tree-optimization/58480
14377 * tree-vrp.c (infer_nonnull_range): New function.
14378 (infer_value_range): Call infer_nonnull_range.
14380 2013-10-08 Dehao Chen <dehao@google.com>
14382 PR tree-optimization/58619
14383 * tree-inline.c (copy_phis_for_bb): Combine location data
14386 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14389 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14390 RTX_FRAME_RELATED_P on INSN.
14392 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14394 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14395 (altivec_expand_vec_perm_const): Call it.
14397 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14399 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14400 sequences for LE VSX loads and stores at expand time.
14401 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14403 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14404 (rs6000_gen_le_vsx_permute): New.
14405 (rs6000_gen_le_vsx_load): New.
14406 (rs6000_gen_le_vsx_store): New.
14407 (rs6000_gen_le_vsx_move): New.
14408 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14409 (*vsx_le_perm_load_v4si): New.
14410 (*vsx_le_perm_load_v8hi): New.
14411 (*vsx_le_perm_load_v16qi): New.
14412 (*vsx_le_perm_store_v2di): New.
14413 (*vsx_le_perm_store_v4si): New.
14414 (*vsx_le_perm_store_v8hi): New.
14415 (*vsx_le_perm_store_v16qi): New.
14416 (*vsx_xxpermdi2_le_<mode>): New.
14417 (*vsx_xxpermdi4_le_<mode>): New.
14418 (*vsx_xxpermdi8_le_V8HI): New.
14419 (*vsx_xxpermdi16_le_V16QI): New.
14420 (*vsx_lxvd2x2_le_<mode>): New.
14421 (*vsx_lxvd2x4_le_<mode>): New.
14422 (*vsx_lxvd2x8_le_V8HI): New.
14423 (*vsx_lxvd2x16_le_V16QI): New.
14424 (*vsx_stxvd2x2_le_<mode>): New.
14425 (*vsx_stxvd2x4_le_<mode>): New.
14426 (*vsx_stxvd2x8_le_V8HI): New.
14427 (*vsx_stxvd2x16_le_V16QI): New.
14429 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14431 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14433 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14435 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14436 loop to work also for 31bit ABI.
14437 Save the stack pointer for frame_size > 0.
14439 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14441 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14442 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14443 constraint letters from expanders.
14444 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14445 retry count to general_operand.
14446 ("tabort"): Give operand 0 a mode.
14447 ("tabort_1"): Add mode and constraint letter for operand 0.
14448 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14450 2013-10-04 Jeff Law <law@redhat.com>
14452 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14454 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14456 (thread_across_edge): Here. Call it.
14458 2013-10-04 Cary Coutant <ccoutant@google.com>
14460 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14461 discarding a location list expression (or a piece of one).
14463 2013-10-03 Jan Hubicka <jh@suse.cz>
14465 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14466 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14467 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14469 2013-10-03 Jan Hubicka <jh@suse.cz>
14471 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14472 accumulate-outgoing-args when producing unwind info.
14474 2013-10-03 Wei Mi <wmi@google.com>
14476 * lra-constraints.c (insert_move_for_subreg): New function
14477 extracted from simplify_operand_subreg.
14478 (simplify_operand_subreg): Add reload for paradoxical subreg.
14480 2013-10-03 Rong Xu <xur@google.com>
14482 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14483 the candidate of builtin_expect such that we should fix the
14484 size/time estimation.
14485 (estimate_function_body_sizes): Do the acutally size/time fix-up
14486 for builtin_expect.
14488 2013-10-03 Rong Xu <xur@google.com>
14490 * predict.c (tree_predict_by_opcode): Get the probability
14491 for builtin_expect from param builtin_expect_probability.
14492 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14493 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14494 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14496 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14499 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14500 * calls.c (alloca_call_p): Use get_callee_fndecl.
14501 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14502 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14504 (vrp_visit_stmt): Remove duplicated code.
14506 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14508 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14509 ceildf2, btruncdf2, instead of vsx_* name.
14511 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14512 iterators to only do V2DF and V4SF here. Move the DF code to
14513 rs6000.md where it is combined with SF mode. Replace <VSv> with
14514 just 'v' since only vector operations are handled with these insns
14515 after moving the DF support to rs6000.md.
14516 (vsx_sub<mode>3): Likewise.
14517 (vsx_mul<mode>3): Likewise.
14518 (vsx_div<mode>3): Likewise.
14519 (vsx_fre<mode>2): Likewise.
14520 (vsx_neg<mode>2): Likewise.
14521 (vsx_abs<mode>2): Likewise.
14522 (vsx_nabs<mode>2): Likewise.
14523 (vsx_smax<mode>3): Likewise.
14524 (vsx_smin<mode>3): Likewise.
14525 (vsx_sqrt<mode>2): Likewise.
14526 (vsx_rsqrte<mode>2): Likewise.
14527 (vsx_fms<mode>4): Likewise.
14528 (vsx_nfma<mode>4): Likewise.
14529 (vsx_copysign<mode>3): Likewise.
14530 (vsx_btrunc<mode>2): Likewise.
14531 (vsx_floor<mode>2): Likewise.
14532 (vsx_ceil<mode>2): Likewise.
14533 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14534 (vsx_sminsf3): Likewise.
14535 (vsx_fmadf4): Likewise.
14536 (vsx_fmsdf4): Likewise.
14537 (vsx_nfmadf4): Likewise.
14538 (vsx_nfmsdf4): Likewise.
14539 (vsx_cmpdf_internal1): Likewise.
14541 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14542 simpler to select whether a target has SPE or traditional floating
14543 point support in iterators.
14544 (TARGET_DF_SPE): Likewise.
14545 (TARGET_SF_FPR): Likewise.
14546 (TARGET_DF_FPR): Likewise.
14547 (TARGET_SF_INSN): Macros to say whether floating point support
14548 exists for a given operation for expanders.
14549 (TARGET_DF_INSN): Likewise.
14551 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14552 combining of SF/DF mode operations, using both traditional and VSX
14560 (abs<mode>2): Combine SF/DF modes using traditional floating point
14561 instructions. Add support for using the upper DF registers with
14562 VSX support, and SF registers with power8-vector support. Update
14563 expanders for operations supported by both the SPE and traditional
14564 floating point units.
14565 (abs<mode>2_fpr): Likewise.
14566 (nabs<mode>2): Likewise.
14567 (nabs<mode>2_fpr): Likewise.
14568 (neg<mode>2): Likewise.
14569 (neg<mode>2_fpr): Likewise.
14570 (add<mode>3): Likewise.
14571 (add<mode>3_fpr): Likewise.
14572 (sub<mode>3): Likewise.
14573 (sub<mode>3_fpr): Likewise.
14574 (mul<mode>3): Likewise.
14575 (mul<mode>3_fpr): Likewise.
14576 (div<mode>3): Likewise.
14577 (div<mode>3_fpr): Likewise.
14578 (sqrt<mode>3): Likewise.
14579 (sqrt<mode>3_fpr): Likewise.
14580 (fre<Fs>): Likewise.
14581 (rsqrt<mode>2): Likewise.
14582 (cmp<mode>_fpr): Likewise.
14583 (smax<mode>3): Likewise.
14584 (smin<mode>3): Likewise.
14585 (smax<mode>3_vsx): Likewise.
14586 (smin<mode>3_vsx): Likewise.
14587 (negsf2): Delete SF operations that are merged with DF.
14588 (abssf2): Likewise.
14589 (addsf3): Likewise.
14590 (subsf3): Likewise.
14591 (mulsf3): Likewise.
14592 (divsf3): Likewise.
14594 (fmasf4_fpr): Likewise.
14595 (fmssf4_fpr): Likewise.
14596 (nfmasf4_fpr): Likewise.
14597 (nfmssf4_fpr): Likewise.
14598 (sqrtsf2): Likewise.
14599 (rsqrtsf_internal1): Likewise.
14600 (smaxsf3): Likewise.
14601 (sminsf3): Likewise.
14602 (cmpsf_internal1): Likewise.
14603 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14604 (negdf2): Delete DF operations that are merged with SF.
14605 (absdf2): Likewise.
14606 (nabsdf2): Likewise.
14607 (adddf3): Likewise.
14608 (subdf3): Likewise.
14609 (muldf3): Likewise.
14610 (divdf3): Likewise.
14612 (rsqrtdf_internal1): Likewise.
14613 (fmadf4_fpr): Likewise.
14614 (fmsdf4_fpr): Likewise.
14615 (nfmadf4_fpr): Likewise.
14616 (nfmsdf4_fpr): Likewise.
14617 (sqrtdf2): Likewise.
14618 (smaxdf3): Likewise.
14619 (smindf3): Likewise.
14620 (cmpdf_internal1): Likewise.
14621 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14622 (btrunc<mode>2): Delete separate expander, and combine with the
14623 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14624 (btrunc<mode>2_fpr): Likewise.
14625 (ceil<mode>2): Likewise.
14626 (ceil<mode>2_fpr): Likewise.
14627 (floor<mode>2): Likewise.
14628 (floor<mode>2_fpr): Likewise.
14629 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14630 Add support for using the upper registers with VSX and
14631 power8-vector. Move insns to be closer to the define_expands. On
14632 VSX systems, prefer the traditional form of FMA over the VSX
14633 version, since the traditional form allows the target not to
14634 overlap with the inputs.
14635 (fms<mode>4_fpr): Likewise.
14636 (nfma<mode>4_fpr): Likewise.
14637 (nfms<mode>4_fpr): Likewise.
14639 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14640 Richard Earnshaw <richard.earnshaw@arm.com>
14642 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14643 (struct mult_cost_table): Likewise.
14644 (struct mem_cost_table): Likewise.
14645 (struct fp_cost_table): Likewise.
14646 (struct vector_cost_table): Likewise.
14647 (cpu_cost_table): Likewise.
14648 * config/arm/arm.opt (mold-rts-costs): New option.
14649 (mnew-generic-costs): Likewise.
14650 * config/arm/arm.c (generic_extra_costs): New table.
14651 (cortexa15_extra_costs): Likewise.
14652 (arm_slowmul_tune): Use NULL as new costs.
14653 (arm_fastmul_tune): Likewise.
14654 (arm_strongarm_tune): Likewise.
14655 (arm_xscale_tune): Likewise.
14656 (arm_9e_tune): Likewise.
14657 (arm_v6t2_tune): Likewise.
14658 (arm_cortex_a5_tune): Likewise.
14659 (arm_cortex_a9_tune): Likewise.
14660 (arm_v6m_tune): Likewise.
14661 (arm_fa726te_tune): Likewise.
14662 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14663 (arm_cortex_tune): Use generict_extra_costs.
14664 (shifter_op_p): New function.
14665 (arm_unspec_cost): Likewise.
14666 (LIBCALL_COST): Define.
14667 (arm_new_rtx_costs): New function.
14668 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14669 table is available. Use old costs otherwise unless mnew-generic-costs
14671 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14672 (cpu_cost_table): Declare.
14674 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14677 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14678 (*subs_mul_imm_<mode>)
14679 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14680 (*sub_<shift>_<mode>)
14681 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14682 Remove k constraint.
14684 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14686 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14688 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14690 2013-10-02 Teresa Johnson <tejohnson@google.com>
14692 * predict.c (probably_never_executed): New function.
14693 (probably_never_executed_bb_p): Invoke probably_never_executed.
14694 (probably_never_executed_edge_p): Ditto.
14695 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14696 Treat profile insanities conservatively.
14698 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14700 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14702 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14704 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14705 use it. Use smaller increase for scratch. Don't increase reject
14706 for early clobber scratch.
14707 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14708 setting eliminated regs except setting fp from hfp.
14709 (lra_eliminate): Check lra_insn_recog_data on NULL.
14711 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14714 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14715 setting -mvsx-timode by default until the underlying problem is fixed.
14716 (RS6000_CPU, power7 defaults): Likewise.
14718 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14720 * config/x-linux (host-linux.o): Remove header dependencies.
14721 Use $(COMPILE) and $(POSTCOMPILE).
14722 * config/t-linux-android (linux-android.o): Ditto.
14724 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14726 * Makefile.in (expmed.o-warn): Remove.
14728 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14730 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14731 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14733 2013-10-02 Teresa Johnson <tejohnson@google.com>
14735 * dojump.c (do_jump_1): Divide probability between
14736 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14738 2013-10-02 Tom Tromey <tromey@redhat.com>
14740 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14742 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14744 * tree-flow.h: Remove some prototypes.
14745 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14746 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14747 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14748 mark_virtual_phi_result_for_renaming): Relocate here.
14749 * tree-into-ssa.h: Add prototypes.
14750 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14751 single_pred_before_succ_order.
14752 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14753 (nonfreeing_call_p) Move to gimple.c.
14754 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14756 * basic-block.h (single_pred_before_succ_order): Add prototype.
14757 * gimple.c (nonfreeing_call_p): Relocate here.
14758 * gimple.h: Add prototype.
14759 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14760 * tree-ssa-dom.h: New file. Relocate prototypes here.
14761 * tree-ssa.h: Include tree-ssa-dom.h.
14763 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14765 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14766 Use $(COMPILE) and $(POSTCOMPILE).
14768 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14770 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14772 * tree-flow.h: Remove some prototypes.
14773 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14774 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14775 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14776 propagate_tree_value*): Move from here to...
14777 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14778 propagate_tree_value*): Relocate here.
14779 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14780 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14781 * gimple-fold.c: Remove gimple-fold.h from include list.
14782 * tree-vrp.c: Remove gimple-fold.h from include list.
14783 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14784 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14785 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14786 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14787 * sese.c: Add tree-ssa-propagate.h to include list.
14789 2013-10-02 Richard Biener <rguenther@suse.de>
14791 * tree-loop-distribution.c: Include tree-vectorizer.h for
14792 find_loop_location.
14793 (enum partition_kind): Remove PKIND_REDUCTION.
14794 (struct partition_s): Remove has_writes member, add reduction_p member.
14795 (partition_alloc): Adjust.
14796 (partition_builtin_p): Likewise.
14797 (partition_has_writes): Remove.
14798 (partition_reduction_p): New function.
14799 (partition_merge_into): Likewise.
14800 (generate_code_for_partition): Commonize builtin partition
14802 (rdg_cannot_recompute_vertex_p): Remove.
14803 (already_processed_vertex_p): Likewise.
14804 (rdg_flag_vertex): Do not set has_writes.
14805 (classify_partition): Adjust.
14806 (rdg_build_partitions): Do not set has_writes, treat all
14807 partitions as useful.
14808 (distribute_loop): Record number of library calls generated. Adjust.
14809 (tree_loop_distribution): Report number of loops and library
14810 calls generated as opt-info.
14812 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14814 * tree-flow.h: Include new .h files. Move prototypes.
14815 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14816 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14817 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14818 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14819 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14820 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14821 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14822 * tree.h (get_ref_base_and_extent): Move prototype out.
14823 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14825 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14826 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14827 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14828 * tree-scalar-evolution.c: Include tree.h.
14829 * sese.c: Include tree.h.
14830 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14831 * dwarf2out.c: Include tree-dfa.h.
14832 * tree-chrec.c: Include tree.h.
14833 * tree-data-ref.c: Include tree.h.
14835 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14837 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14840 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14842 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14843 Use $(COMPILE) and $(POSTCOMPILE).
14844 (sol2-cxx.o): Likewise.
14845 (sol2-stubs.o): Likewise.
14846 (sol2.o): Likewise.
14847 * config/x-solaris (host-solaris.o): Likewise.
14849 * config/sparc/t-sparc (sparc.o): Remove.
14850 (sparc-c.o): Remove header dependencies.
14851 Use $(COMPILE) and $(POSTCOMPILE).
14852 * config/sparc/x-sparc: Likewise.
14854 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14856 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14857 * config/arc/arc700.md: Likewise.
14858 * config/arc/arc-modes.def: Likewise.
14859 * config/arc/arc-simd.h: Likewise.
14860 * config/arc/t-arc-uClibc: Likewise.
14861 * config/arc/t-arc-newlib: Likewise.
14863 2013-10-02 Renlin Li <renlin.li@arm.com>
14865 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14867 (aarch64_expand_epilogue): Likewise.
14869 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14870 Yufeng Zhang <yufeng.zhang@arm.com>
14872 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14874 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14875 'base_in' represent a conversion and legal_cast_p_1 holds; set
14876 'base_in' with the returned value from get_unwidened.
14878 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14880 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14881 plus_constant is not used.
14883 2013-10-01 Wei Mi <wmi@google.com>
14885 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14886 * config/i386/i386.md: Add define_peephole2 to
14887 break partial reg stall for cvtss2sd/cvtsd2ss.
14889 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14891 * config/arc/arc.c (pass_arc_ifcvt::clone):
14892 Update for ctxt_ -> m_ctxt change.
14894 2013-10-01 Jeff Law <law@redhat.com>
14896 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14897 outgoing_edge and intermediate_edge fields. Instead store the path.
14898 (redirection_data::hash): Hash on the last edge's destination index.
14899 (redirection_data::equal): Check the entire thread path.
14900 (lookup_redirectio_data): Corresponding changes.
14901 (create_edge_and_update_destination_phis): Likewise.
14902 (thread_single_edge): Likewise.
14904 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14905 Diego Novillo <dnovillo@google.com>
14907 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14908 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14909 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14910 versions of these patterns.
14912 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14913 (__builtin_arc_aligned): Likewise.
14915 * config/arc/arc.md: Expand adc_0 comment stating the intended
14916 purpose and why it isn't ready.
14917 Replace commented out call_value_via_label_mixed with a
14918 plain comment about bl_s.
14920 * config/arc/arc.c (stdio.h): Don't include directly.
14921 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14922 Remove if (1) condition.
14923 (arc_encode_section_info): Fix comment.
14925 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14927 * config/arc/arc.c (arc_conditional_register_usage):
14928 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14929 Also set reg_alloc_order for DMA config regs.
14931 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14932 Jeremy Bennett <jeremy.bennett@embecosm.com>
14934 * doc/install.texi (--with-cpu): Mention ARC.
14935 (arc-*-elf32): New paragraph.
14936 (arc-linux-uclibc): Likewise.
14937 * doc/md.texi (Machine Constraints): Add ARC part.
14938 * doc/invoke.texi: (menu): Add ARC Options.
14939 (Machine Dependent Options) <ARC Options>: Add synopsis.
14940 (node ARC Options): Add.
14941 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14942 (ARC Built-in Functions): New section defining
14943 generic ARC built-in functions.
14944 (ARC SIMD Built-in Functions): New section defining SIMD specific
14945 built-in functions.
14946 (Declaring Attributes of Functions): Extended
14947 description of short_call and long_call attributes for ARC and
14948 added index entries.
14950 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14951 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14952 Joern Rennecke <joern.rennecke@embecosm.com>
14953 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14954 Brendan Kehoe <brendan@zen.org>
14955 Michael Eager <eager@eagercon.com>
14956 Simon Cook <simon.cook@embecosm.com>
14957 Jeremy Bennett <jeremy.bennett@embecosm.com>
14959 * config/arc, common/config/arc: New directories.
14961 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14962 Brendan Kehoe <brendan@zen.org>
14963 Simon Cook <simon.cook@embecosm.com>
14965 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14967 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14969 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14970 * tree-ssa-coalesce.h: New. Move prototype to here.
14971 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14972 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14973 (gimple_can_coalesce_p): Move to...
14974 * gimple.c (gimple_can_coalesce_p): Here.
14976 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14978 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14979 (dump_decl_set): Move to gimple.c.
14980 * gimple.h: Don't include tree-ssa-operands.h.
14981 (dump_decl_set): Add prototype.
14982 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14983 Move to gimple-ssa.h.
14984 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14985 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14986 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14987 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14988 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14990 (dump_decl_set): Relocate here.
14991 * gimple-ssa.h: New file.
14992 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14993 Relocate from gimple.h.
14994 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14995 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14996 swap_tree_operands and remove non-ssa path.
14997 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14998 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15000 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15001 vect_is_simple_reduction_1): Use swap_ssa_operands.
15002 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15003 (enum need_phi_state): Move to tree-into-ssa.c.
15004 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15005 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15006 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15007 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15008 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15009 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15010 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15011 num_imm_uses): Move to ssa-iterators.h.
15012 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15013 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15015 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15016 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15017 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15018 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15019 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15020 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15021 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15022 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15023 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15024 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15025 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15026 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15027 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15028 (set_phi_nodes): Move to tree-phinodes.h.
15029 * tree-ssa-operands.h (enum ssa_op_iter_type,
15030 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15031 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15032 (dump_decl_set): Remove prototype.
15033 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15034 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15035 (set_phi_nodes): Relocate from tree-flow-inline.h.
15036 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15038 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15039 include list. Temporarily add gimple.h to include list.
15040 * ssa-iterators.h: New file.
15041 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15042 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15043 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15044 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15045 Relocate from tree-ssa-operands.h.
15046 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15047 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15048 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15049 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15050 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15051 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15052 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15053 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15054 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15055 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15056 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15057 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15058 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15059 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15060 Relocate from tree-flow-inline.h.
15061 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15063 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15066 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15067 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15068 Insert '\t' to output template.
15069 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15070 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15071 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15072 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15074 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15076 * doc/install.texi (Host/target specific installation notes for GCC):
15077 Put @anchor before @heading.
15078 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15079 Use @email for email addresses.
15081 2013-10-01 Jeff Law <law@redhat.com>
15083 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15084 a vec. Only delete the path if we create one without successfully
15085 registering a jump thread.
15086 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15088 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15089 (paths): New vector of jump threading paths.
15090 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15091 (THREAD_PATH): New accessor macro for the entire thread path.
15092 (lookup_redirection_data): Get intermediate and final outgoing edge
15093 from the thread path.
15094 (create_edge_and_update_destination_phis): Copy the threading path.
15095 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15096 jump threading path.
15097 (ssa_redirect_edges): Get edges and block types from the jump threading
15098 path. Free the path vector.
15099 (thread_block): Get edges from the jump threading path. Look at the
15100 entire path to see if we thread to a loop exit. If we cancel a jump
15101 thread request, then free the path vector.
15102 (thread_single_edge): Get edges and block types from the jump threading
15103 path. Free the path vector.
15104 (thread_through_loop_header): Get edges and block types from the jump
15105 threading path. Free the path vector.
15106 (mark_threaded_blocks): Iterate over the vector of paths and store
15107 the path on the appropriate edge. Get edges and block types from the
15108 jump threading path.
15109 (mark_threaded_blocks): Get edges and block types from the jump
15110 threading path. Free the path vector.
15111 (thread_through_all_blocks): Use the vector of paths rather than
15112 a vector of 3-edge sets.
15113 (register_jump_thread): Accept pointer to a path vector rather
15114 than the path vector itself. Store the path vector for later use.
15117 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15118 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15121 * config/s390/s390.c (s390_split_branches): Modify check for table
15123 (s390_chunkify_start): Rearrange table jump insn check in order to
15124 deal with compare and branch insns correctly.
15126 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15130 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15131 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15132 define_insn_and_split.
15133 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15134 (shiftsi3_compare): New pattern.
15135 (rrx): New pattern.
15136 * config/arm/unspecs.md (UNSPEC_RRX): New.
15138 2013-10-01 Alan Modra <amodra@gmail.com>
15140 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15141 casing inout operands.
15143 2013-10-01 Richard Biener <rguenther@suse.de>
15145 PR tree-optimization/58553
15146 * tree-loop-distribution.c (struct partition_s): Add niter member.
15147 (classify_partition): Populate niter member for the partition
15148 and properly identify whether the relevant store happens before
15149 or after the loop exit.
15150 (generate_memset_builtin): Use niter member from the partition.
15151 (generate_memcpy_builtin): Likewise.
15153 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15155 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15156 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15158 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15160 * basic-block.h (edge_list): Prefix member names with "m_".
15161 * context.h (context): Likewise.
15162 * domwalk.h (dom_walker): Likewise.
15163 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15164 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15165 * hash-table.h (hash_table): Likewise.
15166 * machmode.h (bit_field_mode_iterator): Likewise.
15167 * pass_manager.h (pass_list): Likewise.
15168 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15169 * tree-pass.h (pass_data): Likewise.
15170 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15171 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15172 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15173 * asan.c (pass_data_asan): Update accordingly.
15174 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15175 (control_dependences::control_dependences): Likewise.
15176 (control_dependences::~control_dependences): Likewise.
15177 (control_dependences::~control_dependences): Likewise.
15178 (control_dependences::get_edges_dependent_on): Likewise.
15179 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15180 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15181 * context.c (gcc::context::context): Likewise.
15182 * cprop.c (pass_rtl_cprop::clone): Likewise.
15183 * domwalk.c (dom_walker::walk): Likewise.
15184 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15185 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15186 * mode-switching.c (pass_mode_switching::clone): Likewise.
15187 * passes.c (opt_pass::opt_pass): Likewise.
15188 (pass_manager::pass_manager): Likewise.
15189 * predict.c (pass_strip_predict_hints::clone): Likewise.
15190 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15191 (pass_split_all_insns::clone): Likewise.
15192 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15194 (bit_field_mode_iterator::next_mode): Likewise.
15195 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15196 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15197 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15198 * tree-complex.c (pass_lower_complex::clone): Likewise.
15199 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15200 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15201 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15202 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15203 (pass_fold_builtins::clone): Likewise.
15204 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15205 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15206 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15207 (pass_cd_dce::clone): Likewise.
15208 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15209 (pass_phi_only_cprop::clone): Likewise.
15210 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15211 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15212 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15213 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15214 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15215 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15216 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15217 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15218 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15219 * tree-vrp.c (pass_vrp::clone): Likewise.
15220 * tsan.c (pass_tsan::clone): Likewise.
15222 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15224 PR middle-end/58564
15225 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15226 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15228 PR middle-end/58564
15229 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15230 optimization, punt if sign_bit_p looked through any zero extension.
15232 2013-09-30 Teresa Johnson <tejohnson@google.com>
15234 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15235 Update redirected out edge count in joiner case.
15236 (ssa_redirect_edges): Common the joiner and non-joiner cases
15237 so that joiner case gets profile updates.
15239 2013-09-30 Richard Biener <rguenther@suse.de>
15241 PR tree-optimization/58554
15242 * tree-loop-distribution.c (classify_partition): Require
15243 unconditionally executed stores for memcpy and memset recognition.
15244 (tree_loop_distribution): Calculate dominance info.
15246 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15248 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15249 (NO_PROFILE_COUNTERS): Likewise.
15250 (PROFILE_HOOK): Likewise.
15251 (FUNCTION_PROFILER): Likewise.
15252 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15254 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15256 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15257 calls and defines in TARGET_MACHO conditional.
15258 (load_macho_picbase_di): Likewise.
15259 (reload_macho_picbase): Likewise.
15260 (reload_macho_picbase_si): Likewise.
15261 (reload_macho_picbase_di): Likewise.
15262 (nonlocal_goto_receiver): Likewise.
15264 2013-09-30 Nick Clifton <nickc@redhat.com>
15266 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15267 that use the MSP430X ISA.
15268 (msp430_option_override): Scan -mmcu command line option for any
15269 MCU name that supports the MSP430X ISA.
15270 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15271 -mmcu options which enable the MSP430X ISA.
15273 2013-09-30 Richard Biener <rguenther@suse.de>
15275 PR middle-end/58532
15276 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15277 before looking for setjmp-like calls.
15279 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15282 * config/darwin-protos.h (machopic_get_function_picbase): New.
15283 * config/darwin.c (machopic_get_function_picbase): New.
15284 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15285 label for a new func. (load_macho_picbase_di): Likewise.
15286 (reload_macho_picbase): New expand.
15287 (reload_macho_picbase_si): New insn.
15288 (reload_macho_picbase_di): New insn.
15289 (nonlocal_goto_receiver): New define and split.
15290 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15291 (unspecv enum): Add UNSPECV_NLGR.
15293 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15295 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15296 that altivec registers are correctly sized on Darwin.
15298 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15300 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15301 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15302 * config/x-darwin (host-darwin.o): Likewise.
15303 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15304 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15305 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15307 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15309 * doc/invoke.texi: Fix usage of @tie{} command.
15311 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15313 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15315 2013-09-28 Jan Hubicka <jh@suse.cz>
15317 * config/i386/x86-tune.def: Add documentation for each of the options;
15320 2013-09-28 Jan Hubicka <jh@suse.cz>
15322 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15324 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15325 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15326 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15327 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15328 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15330 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15332 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15333 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15334 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15335 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15336 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15337 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15338 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15339 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15340 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15341 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15342 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15343 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15344 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15345 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15346 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15347 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15348 gimple.h, godump.c, graphite-clast-to-gimple.c,
15349 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15350 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15351 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15352 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15353 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15354 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15355 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15356 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15357 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15358 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15359 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15360 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15361 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15362 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15363 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15364 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15365 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15366 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15367 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15368 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15369 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15370 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15371 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15372 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15373 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15374 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15375 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15376 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15377 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15378 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15379 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15380 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15381 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15382 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15383 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15384 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15385 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15386 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15387 whitespace before "(".
15389 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15391 * expr.h (extract_bit_field): Remove packedp parameter.
15392 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15393 from forward declaration.
15394 (store_split_bit_field): Remove packedp arg from calls to
15395 extract_fixed_bit_field.
15396 (extract_bit_field_1): Remove packedp parameter and packedp
15397 argument from recursive calls and calls to extract_fixed_bit_field.
15398 (extract_bit_field): Remove packedp parameter and corresponding
15399 arg to extract_bit_field_1.
15400 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15402 (extract_split_bit_field): Remove packedp arg from call to
15403 extract_fixed_bit_field.
15404 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15405 (copy_blkmode_from_reg): Likewise.
15406 (copy_blkmode_to_reg): Likewise.
15407 (read_complex_part): Likewise.
15408 (store_field): Likewise.
15409 (expand_expr_real_1): Likewise.
15410 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15411 to extract_bit_field.
15412 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15413 call to extract_bit_field.
15414 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15415 call to extract_bit_field.
15416 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15417 and special packedp behavior from -fstrict-volatile-bitfields
15420 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15422 * lra-eliminations.c (init_elim_table): Guard value_p.
15424 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15426 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15427 DFmode, DImode, and SFmode in the upper VSX registers based on the
15428 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15429 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15430 of the VSX register handling.
15432 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15433 (f32_sv): Likewise.
15434 (zero_extendsidi2_lfiwzx): Add support for loading into the
15435 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15436 only do VSX memory options on Altivec registers.
15437 (extendsidi2_lfiwax): Likewise.
15438 (extendsfdf2_fpr): Likewise.
15439 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15440 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15441 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15442 (movdi_internal64): Likewise.
15444 2013-09-27 Xinliang David Li <davidxl@google.com>
15446 * opts.c (finish_options): Adjust parameters
15447 according to vect cost model.
15448 (common_handle_option): Set dynamic vect cost
15450 targhooks.c (default_add_stmt_cost): Compute stmt cost
15452 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15453 Use helper function.
15454 * tree-vectorizer.h (unlimited_cost_model): New function.
15455 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15456 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15458 (vect_enhance_data_refs_alignment): Ditto.
15459 * flag-types.h: New enum.
15460 * common/config/i386/i386-common.c (ix86_option_init_struct):
15461 No need to initialize vect_cost_model flag.
15462 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15465 2013-09-27 Diego Novillo <dnovillo@google.com>
15467 * gimple.h (enum ssa_mode): Remove.
15469 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15471 * cfgloop.h (number_of_loops): Fix typo in check for null.
15473 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15475 PR middle-end/58551
15476 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15477 are children of outermost saved_cfun's loop, and set it up to
15478 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15479 if loop != loop0 and SESE region contains bbs that belong to loop0.
15481 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15483 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15484 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15485 (set_address_segment, set_address_base, set_address_index)
15486 (set_address_disp): Accept the argument unconditionally.
15487 (baseness): Remove must_be_base_p and must_be_index_p checks.
15488 (decompose_normal_address): Classify as much as possible in the
15491 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15493 * cse.c (count_reg_usage): Handle INT_LIST.
15494 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15495 * reginfo.c (reg_scan_mark_refs): Likewise.
15496 * reload1.c (eliminate_regs_1): Likewise.
15498 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15500 PR middle-end/58547
15501 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15504 2013-09-27 Richard Biener <rguenther@suse.de>
15506 PR tree-optimization/58459
15507 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15508 restriction not propagating into loops.
15510 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15512 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15513 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15514 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15516 2013-09-26 Richard Biener <rguenther@suse.de>
15518 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15520 2013-09-26 Richard Biener <rguenther@suse.de>
15522 * alias.h (component_uses_parent_alias_set): Rename to ...
15523 (component_uses_parent_alias_set_from): ... this.
15524 * alias.c (component_uses_parent_alias_set): Rename to ...
15525 (component_uses_parent_alias_set_from): ... this and return
15526 the desired parent.
15527 (reference_alias_ptr_type_1): Use the result from
15528 component_uses_parent_alias_set_from instead of stripping
15529 components one at a time.
15530 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15532 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15534 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15535 Move prototypes to...
15536 * tree-ssa-ter.h: New File. Move prototypes here.
15537 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15538 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15539 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15540 from is_replaceable_p.
15541 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15542 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15543 (process_replaceable): Use ter_is_replaceable_p.
15544 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15545 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15546 newly refactored ssa_is_replaceable_p.
15547 * cfgexpand.c: Include tree-outof-ssa.h.
15548 * ssaexpand.h: Delete.
15550 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15552 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15553 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15555 (create_gimple_tmp): Delete.
15556 (get_expr_type, build_assign, build_type_cast): Move to...
15557 * gimple-builder.c: New File.
15558 (get_expr_type): Relocate from gimple.c.
15559 (build_assign, build_type_cast): Change to only create ssanames.
15560 * gimple.h: Move prototypes to...
15561 * gimple-builder.h: New File. Here.
15562 * tree-ssa.h: And here.
15563 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15564 count_uses_and_derefs): Relocate from gimple.c.
15565 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15566 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15567 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15568 gimple_replace_ssa_lhs.
15569 * asan.c: Include gimple-builder.h.
15570 * Makefile.in: Add gimple-builder.o.
15572 2013-09-26 Richard Biener <rguenther@suse.de>
15574 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15575 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15576 (loe_visit_block): Use gcc_checking_assert.
15577 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15578 gimple_assign_ssa_name_copy_p.
15579 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15582 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15584 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15585 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15587 2013-09-26 Richard Biener <rguenther@suse.de>
15589 PR tree-optimization/58539
15590 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15591 the fact that debug statements are not taking part in loop-closed
15594 2013-09-26 Nick Clifton <nickc@redhat.com>
15596 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15597 time warning message.
15598 (msp430_print_operand_raw): Delete unused letter parameter.
15599 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15600 (msp430_print_operand_address): New function.
15601 (msp430_print_operand): Move address printing code from here to
15603 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15605 (zero_extendpsisi2): Likewise.
15606 (extendpsisi2): New pattern.
15607 (andneghi3): New pattern.
15609 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15611 * config/aarch64/aarch64.opt (mlra): New option.
15612 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15613 (TARGET_LRA_P): Define.
15615 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15617 * expr.c (expand_assignment): Remove obsolete comment.
15619 2013-09-25 Jeff Law <law@redhat.com>
15621 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15622 tree-ssa-threadupdate.h.
15623 (register_jump_thread): Similarly.
15624 * tree-ssa-threadupdate.h: New header file.
15625 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15626 * tree-vrp.c: Likewise.
15627 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15628 (thread_around_empty_blocks): Change type of path vector argument to
15629 an edge,type pair from just an edge. Initialize both elements when
15630 appending to a jump threading path. Tweak references to elements
15632 (thread_across_edge): Similarly. Release memory for the elements
15634 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15635 (dump_jump_thread_path): New function broken out from
15636 register_jump_thread.
15637 (register_jump_thread): Use dump_jump_thread_path. Change type of
15638 path vector entries. Search the path for NULL edges and dump
15639 the path if one is found. Tweak the conversion of path to 3-edge
15640 form to use the block copy type information embedded in the path.
15642 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15644 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15646 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15647 Vladimir Makarov <vmakarov@redhat.com>
15649 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15650 from the least significant bit.
15651 (strip_address_mutations): Add bitfield operations handling.
15652 (must_be_index_p): Add shifting and rotate operations handling.
15653 (set_address_base): Use must_be_base_p predicate.
15654 (set_address_index): Use must_be_index_p predicate.
15656 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15657 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15658 Sergey Lega <sergey.s.lega@intel.com>
15659 Anna Tikhonova <anna.tikhonova@intel.com>
15660 Ilya Tocar <ilya.tocar@intel.com>
15661 Andrey Turetskiy <andrey.turetskiy@intel.com>
15662 Ilya Verbin <ilya.verbin@intel.com>
15663 Kirill Yukhin <kirill.yukhin@intel.com>
15664 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15666 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15668 (ix86_expand_vector_move_misalign): Support new unaligned load and
15669 stores and use new names.
15670 (CODE_FOR_sse2_storedqu): Rename to ...
15671 (CODE_FOR_sse2_storedquv16qi): ... this.
15672 (CODE_FOR_sse2_loaddqu): Rename to ...
15673 (CODE_FOR_sse2_loaddquv16qi): ... this.
15674 (CODE_FOR_avx_loaddqu256): Rename to ...
15675 (CODE_FOR_avx_loaddquv32qi): ... this.
15676 (CODE_FOR_avx_storedqu256): Rename to ...
15677 (CODE_FOR_avx_storedquv32qi): ... this.
15678 * config/i386/i386.md (fpint_logic): New.
15679 * config/i386/sse.md (VMOVE): Extend for AVX512.
15683 (VI_UNALIGNED_LOADSTORE): Ditto.
15684 (sse2_avx_avx512f): Ditto.
15685 (sse2_avx2): Extend for AVX512.
15686 (sse4_1_avx2): Ditto.
15687 (avx2_avx512f): New.
15688 (sse): Extend for AVX512.
15691 (avxsizesuffix): Ditto.
15692 (sseintvecmode): Ditto.
15693 (ssePSmode): Ditto.
15694 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15695 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15696 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15697 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15698 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15699 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15700 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15701 (STORENT_MODE): Extend for AVX512.
15702 (*absneg<mode>2): Replace constraint "x" with "v".
15703 (*mul<mode>3): Ditto.
15704 (*ieee_smin<mode>3): Ditto.
15705 (*ieee_smax<mode>3): Ditto.
15706 (avx_cmp<mode>3): Replace VF with VF_128_256.
15707 (*<sse>_maskcmp<mode>3_comm): Ditto.
15708 (<sse>_maskcmp<mode>3): Ditto.
15709 (<sse>_andnot<mode>3): Extend for AVX512.
15710 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15711 (<code><mode>3, fpint_logic): New.
15712 (*<code><mode>3): Extend for AVX512.
15713 (avx512flogicsuff): New.
15714 (avx512f_<logic><mode>): Ditto.
15715 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15717 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15718 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15719 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15720 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15721 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15722 (xop_vpermil2<mode>3): Ditto.
15723 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15724 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15725 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15726 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15728 2013-09-25 Tom Tromey <tromey@redhat.com>
15730 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15731 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15732 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15733 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15734 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15735 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15736 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15737 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15738 (GRAPHITE_HTAB_H): Remove.
15740 2013-09-25 Tom Tromey <tromey@redhat.com>
15742 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15744 2013-09-25 Tom Tromey <tromey@redhat.com>
15746 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15748 2013-09-25 Tom Tromey <tromey@redhat.com>
15750 * config/i386/t-i386 (i386.o): Remove.
15751 (i386-c.o): Use COMPILE and POSTCOMPILE.
15753 2013-09-25 Tom Tromey <tromey@redhat.com>
15755 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15757 2013-09-25 Tom Tromey <tromey@redhat.com>
15759 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15760 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15761 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15762 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15763 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15764 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15765 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15766 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15767 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15768 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15769 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15770 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15771 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15772 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15773 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15774 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15775 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15776 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15777 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15778 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15779 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15780 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15781 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15782 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15783 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15784 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15785 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15786 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15787 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15788 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15789 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15790 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15791 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15792 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15793 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15794 (graphite-clast-to-gimple.o, graphite-dependences.o)
15795 (graphite-interchange.o, graphite-poly.o)
15796 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15797 (graphite-optimize-isl.o, tree-vect-loop.o)
15798 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15799 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15800 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15801 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15802 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15803 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15804 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15805 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15806 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15807 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15808 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15809 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15810 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15811 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15812 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15813 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15814 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15815 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15816 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15817 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15818 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15819 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15820 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15821 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15822 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15823 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15824 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15825 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15826 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15827 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15828 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15829 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15830 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15831 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15832 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15833 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15834 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15835 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15836 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15837 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15838 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15839 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15840 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15841 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15842 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15843 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15844 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15845 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15846 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15847 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15848 (gcov-dump.o): Remove.
15849 (default-c.o): Use COMPILE and POSTCOMPILE.
15850 (CFLAGS-gcc.o): New variable.
15851 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15853 2013-09-25 Tom Tromey <tromey@redhat.com>
15855 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15856 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15857 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15858 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15859 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15860 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15861 (c-family/array-notation-common.o, c-family/stub-objc.o)
15862 (c-family/c-ubsan.o): Remove.
15864 2013-09-25 Tom Tromey <tromey@redhat.com>
15866 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15868 2013-09-25 Tom Tromey <tromey@redhat.com>
15870 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15871 to add -DENABLE_SHARED_LIBGCC.
15872 (gcc.o): Don't use subshell.
15874 2013-09-25 Tom Tromey <tromey@redhat.com>
15876 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15877 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15878 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15879 * configure, config.in: Rebuild.
15881 2013-09-25 Tom Tromey <tromey@redhat.com>
15883 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15884 (COMPILE, POSTCOMPILE): New variables.
15885 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15886 (DEPFILES): New variable.
15887 Include ".Po" files.
15888 * configure.ac: Add checks for dependency checking.
15889 * configure, aclocal.m4: Regenerate.
15891 2013-09-25 Tom Tromey <tromey@redhat.com>
15893 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15894 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15896 2013-09-25 Tom Tromey <tromey@redhat.com>
15898 * Makefile.in (generated_files): Add options.h,
15899 target-hooks-def.h, insn-opinit.h,
15900 common/common-target-hooks-def.h, pass-instances.def,
15901 c-family/c-target-hooks-def.h.
15903 2013-09-25 Jeff Law <law@redhat.com>
15905 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15906 than foo[foo.length () - 1] to access last member in a vec.
15907 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15909 2013-09-25 Richard Biener <rguenther@suse.de>
15911 PR middle-end/58521
15912 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15914 2013-09-25 Jan Hubicka <jh@suse.cz>
15916 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15919 2013-09-25 Marek Polacek <polacek@redhat.com>
15922 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15923 when determining the type name.
15925 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15927 * config/sh/sh.md: Fix formatting.
15929 2013-09-24 Xinliang David Li <davidxl@google.com>
15931 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15932 max peel iterations parameter.
15933 * param.def: New parameter.
15934 * doc/invoke.texi: Document New parameter.
15936 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15938 * gimple-pretty-print.c: Various whitespace tweaks.
15939 * tree-core.h: Likewise.
15940 * tree-pretty-print.c: Likewise.
15941 * tree-ssa-alias.c: Likewise.
15942 * tree-ssa-copy.c: Likewise.
15943 * tree-ssanames.c: Likewise.
15944 * tree-ssanames.h: Likewise.
15945 * tree-vrp.c: Likewise.
15947 2013-09-24 Alan Modra <amodra@gmail.com>
15949 PR middle-end/57134
15950 PR middle-end/57586
15951 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15952 for output operands that disallow regs. Don't use EXPAND_WRITE on
15955 2013-09-24 Richard Biener <rguenther@suse.de>
15957 PR middle-end/58513
15958 * tree.c (reference_alias_ptr_type): Move ...
15959 * alias.c (reference_alias_ptr_type): ... here and implement
15960 in terms of the new reference_alias_ptr_type_1.
15961 (ref_all_alias_ptr_type_p): New helper.
15962 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15963 use ref_all_alias_ptr_type_p.
15964 (get_deref_alias_set): Add flag_strict_aliasing check here.
15965 (reference_alias_ptr_type_1): New function, split out from ...
15966 (get_alias_set): ... here.
15967 (alias_ptr_types_compatible_p): New function.
15968 * alias.h (reference_alias_ptr_type): Declare.
15969 (alias_ptr_types_compatible_p): Likewise.
15970 * tree.h (reference_alias_ptr_type): Remove.
15971 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15972 to compare MEM_REF alias types.
15974 2013-09-24 Richard Biener <rguenther@suse.de>
15976 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15978 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15980 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15981 reload helper function arrays into a single array reg_addr.
15982 (reload_fpr_gpr): Likewise.
15983 (reload_gpr_vsx): Likewise.
15984 (reload_vsx_gpr): Likewise.
15985 (struct rs6000_reg_addr): Likewise.
15986 (reg_addr): Likewise.
15987 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15988 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15989 (rs6000_init_hard_regno_mode_ok): Likewise.
15990 (rs6000_secondary_reload_direct_move): Likewise.
15991 (rs6000_secondary_reload): Likewise.
15993 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15994 constraints: wu, ww, and wy. Repurpose wv constraint added during
15995 power8 changes. Put wg constraint in alphabetical order.
15997 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15998 for future work to add ISA 2.07 VSX single precision support.
15999 (-mvsx-scalar-double): Change default from -1 to 1, update
16000 documentation comment.
16001 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16002 (-mupper-regs-df): New debug switch to control whether DF values
16003 can go in the traditional Altivec registers.
16004 (-mupper-regs-sf): New debug switch to control whether SF values
16005 can go in the traditional Altivec registers.
16007 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16008 and wy constraints.
16009 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16010 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16011 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16012 (rs6000_debug_legitimate_address_p): Print if we are running
16013 before, during, or after reload.
16014 (rs6000_secondary_reload): Add a comment.
16015 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16017 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16018 constraints. Update documentation string.
16019 (wd constraint): Likewise.
16020 (wf constraint): Likewise.
16021 (wg constraint): Likewise.
16022 (wn constraint): Likewise.
16023 (ws constraint): Likewise.
16024 (wt constraint): Likewise.
16025 (wx constraint): Likewise.
16026 (wz constraint): Likewise.
16027 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16029 (ww constraint): Likewise.
16030 (wy constraint): Likewise.
16031 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16032 in the previous submissions.
16033 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16035 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16037 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16038 (REG_BR_PROB): Say that the probability is stored in an int_list.
16039 * reg-notes.def: Update commentary to mention INT_LIST.
16040 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16041 (INT_LIST): New rtx.
16042 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16043 * rtlanal.c (int_reg_note_p): New function.
16044 (alloc_reg_note): Assert that the note does not have an int argument.
16045 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16046 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16047 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16048 rather than an INSN_LIST. Handle INT_LIST.
16049 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16050 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16051 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16052 Manipulate them as ints rather than rtxes.
16053 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16054 * regmove.c (copy_src_to_dest): Likewise.
16055 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16057 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16058 into the cases that need it.
16059 * config/arm/arm.c (arm_unwind_emit): Likewise.
16061 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16062 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16063 * loop-doloop.c (add_test, doloop_modify): Likewise.
16064 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16065 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16066 * predict.c (combine_predictions_for_insn): Likewise.
16067 * print-rtl.c (print_rtx): Handle INT_LIST.
16068 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16069 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16070 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16071 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16072 (ix86_split_fp_branch, predict_jump): Likewise.
16073 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16074 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16075 * config/spu/spu.c (ea_load_store_inline): Likewise.
16077 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16078 value of a REG_BR_PROB note.
16079 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16080 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16081 * emit-rtl.c (try_split): Likewise.
16082 * predict.c (br_prob_note_reliable_p): Likewise.
16083 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16084 * reorg.c (mostly_true_jump): Likewise.
16085 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16086 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16087 * config/i386/i386.c (ix86_print_operand): Likewise.
16088 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16089 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16090 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16091 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16092 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16093 * config/sparc/sparc.c (output_cbranch): Likewise.
16094 * config/spu/spu.c (get_branch_target): Likewise.
16095 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16096 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16098 2013-09-23 Jan Hubicka <jh@suse.cz>
16100 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16102 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16103 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16105 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16106 (gimple_fold_call): Dump inconsistent devirtualizations; add
16107 sanity check for type based devirtualizations.
16108 * ipa-prop.c: Include ipa-utils.h
16109 (ipa_intraprocedural_devirtualization): Add sanity check.
16110 (try_make_edge_direct_virtual_call): Likewise.
16112 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16114 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16115 assignment statements.
16117 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16119 * gimple-pretty-print.c (dump_ssaname_info): New function.
16120 (dump_gimple_phi): Call it.
16121 (pp_gimple_stmt_1): Likewise.
16122 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16123 (range_info_def): Declare.
16124 * tree-pretty-print.c (pp_double_int): New function.
16125 (dump_generic_node): Call it.
16126 * tree-pretty-print.h (pp_double_int): Declare.
16127 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16128 * tree-ssanames.h (range_info_def): New structure.
16129 (value_range_type): Move definition here.
16130 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16132 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16134 (set_range_info): New function.
16135 (get_range_info): Likewise.
16136 (duplicate_ssa_name_range_info): Likewise.
16137 (duplicate_ssa_name_fn): Check pointer type and call
16138 duplicate_ssa_name_range_info.
16139 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16140 * tree-vrp.c (value_range_type): Remove definition, now in
16142 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16143 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16144 (SSA_NAME_RANGE_INFO): New macro.
16146 2013-09-23 Richard Biener <rguenther@suse.de>
16148 PR tree-optimization/58464
16149 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16150 (phi_trans_add): Change to add conditionally on being not present.
16151 (phi_translate_1): Remove recursion detection here.
16152 (phi_translate): Pre-seed the cache with NULL to catch
16153 recursion here in a more generic way.
16154 (bitmap_find_leader): Adjust comment.
16155 (get_representative_for): Dump value-numbers.
16156 (create_expression_by_pieces): Likewise.
16157 (insert_into_preds_of_block): Likewise.
16159 2013-09-23 Christian Bruel <christian.bruel@st.com>
16162 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16163 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16165 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16168 2013-09-20 Renlin Li <renlin.li@arm.com>
16170 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16172 (aarch64_expand_epilogue): Likewise.
16173 (aarch64_legitimize_reload_address): Likewise.
16175 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16177 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16178 NULL_TREE before pushing them onto the vector. Likewise for labels.
16180 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16182 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16183 comparison operators when -fno-trapping-math is in effect.
16184 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16185 comparison operators in TFmode and assert that unsupported operators
16187 (ia64_print_operand): Likewise.
16189 2013-09-21 Jan Hubicka <jh@suse.cz>
16191 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16192 (sse_typeless_stores): Enable for core
16193 (sse_load0_by_pxor): Likewise.
16194 (four_jump_limit): Disable for core.
16195 (pad_returns): Likewise.
16196 (avoid_vector_decode): Likewise.
16197 (fuse_cmp_and_branch): Enable for cores.
16198 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16200 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16202 PR middle-end/56791
16203 * config/pa/pa.c (pa_option_override): Disable auto increment and
16204 decrement instructions until reload is completed.
16206 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16207 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16208 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16210 2013-09-20 DJ Delorie <dj@redhat.com>
16211 Nick Clifton <nickc@redhat.com>
16213 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16214 (need_to_save): Save bank 0 on interrupts.
16215 (characterize_address): Strip far address wrappers.
16216 (rl78_as_legitimate_address): Likewise.
16217 (transcode_memory_rtx): Likewise.
16218 (rl78_peep_movhi_p): Disable this peephole after devirt.
16219 (rl78_propogate_register_origins): Forget all origins when a
16221 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16222 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16224 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16225 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16226 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16228 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16230 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16232 * config/pa/pa.md: In "scc" insn patterns, change output template to
16233 handle const0_rtx in reg_or_0_operand operands.
16235 2013-09-20 Martin Husemann <martin@NetBSD.org>
16238 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16239 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16241 2013-09-20 Richard Biener <rguenther@suse.de>
16243 PR middle-end/58484
16244 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16245 remembering SSA name version and block index.
16246 (new_scev_info_str): Adjust.
16247 (hash_scev_info): Likewise. Also hash the block index.
16248 (eq_scev_info): Adjust.
16249 (find_var_scev_info): Likewise.
16250 (struct instantiate_cache_entry): Remove.
16251 (struct instantiate_cache_type): Use a htab to map name, block
16253 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16254 (get_instantiated_value_entry): Likewise.
16255 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16256 (instantiate_scev_name): Adjust.
16258 2013-09-20 Jeff Law <law@redhat.com>
16260 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16262 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16264 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16265 Call aarch64_simd_expand_args to update op[argc].
16267 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16269 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16272 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16274 * gengtype.c (file_rules): Added rule for *.cc files.
16275 (get_output_file_with_visibility): Give fatal message when no
16278 2013-09-20 Renlin Li <renlin.li@arm.com>
16280 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16281 (aarch64_expand_epilogue): Likewise.
16282 (aarch64_legitimize_reload_address): Likewise.
16284 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16286 PR middle-end/57748
16287 * expr.c (expand_assignment): Remove misalignp code path.
16289 2013-09-20 Marek Polacek <polacek@redhat.com>
16292 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16293 TYPE_PRECISION. Add asserts.
16295 2013-09-20 Richard Biener <rguenther@suse.de>
16297 PR tree-optimization/58453
16298 * tree-loop-distribution.c (distribute_loop): Apply the cost
16299 model for -ftree-loop-distribute-patterns, too.
16301 2013-09-20 Richard Biener <rguenther@suse.de>
16303 PR middle-end/58473
16304 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16305 make type comparison less strict.
16307 2013-09-20 Alan Modra <amodra@gmail.com>
16309 * configure: Regenerate.
16310 * aclocal.m4: Regenerate.
16312 2013-09-20 Marek Polacek <polacek@redhat.com>
16315 * doc/extend.texi: Document that attribute used is meant to be used
16316 on variables with static storage duration.
16318 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16320 PR tree-optimization/58472
16321 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16322 simd_lane_access set inv_p = false.
16323 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16324 the simduid magic VAR_DECL.
16326 2013-09-19 Jan Hubicka <jh@suse.cz>
16328 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16330 2013-09-17 Jeff Law <law@redhat.com>
16332 * tree-ssa-dom.c (record_temporary_equivalences): New function
16333 split out of dom_opt_dom_walker::after_dom_children.
16334 (dom_opt_dom_walker::thread_across_edge): Move common code
16335 in here from dom_opt_dom_walker::after_dom_children.
16336 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16338 2013-09-19 Jan Hubicka <jh@suse.cz>
16340 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16341 (TARGET_GENERIC): Use PROCESOR_GENERIC
16342 (enum processor_type): Unify generic32 and 64.
16343 * i386.md (cpu): Likewise.
16344 * x86-tune.def (use_leave): Enable for generic32.
16345 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16346 * athlon.md: Change generic64 to generic in all occurences.
16347 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16348 (ix86_target_macros_internal): Likewise.
16349 * driver-i386.c (host_detect_local_cpu): Likewise.
16350 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16352 (generic_memcpy, generic_memset, generic_cost): This one.
16353 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16354 (m_GENERIC32, m_GENERIC64): Remove.
16355 (m_GENERIC): Turn into one flag.
16356 (processor_target): Unify generic tunnings.
16357 (ix86_option_override_internal): Replace generic32/64 by generic.
16358 (ix86_issue_rate): Likewise.
16359 (ix86_adjust_cost): Likewise.
16361 2013-09-19 Jan Hubicka <jh@suse.cz>
16363 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16364 of speculative flag.
16366 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16368 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16369 GOMP_sections_start, even if !exit_reachable.
16371 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16373 * lra-constraints.c (need_for_all_save_p): Use macro
16374 HARD_REGNO_CALL_PART_CLOBBERED.
16375 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16376 set up pseudo conflict hard regs.
16378 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16381 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16384 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16386 PR rtl-optimization/58438
16387 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16388 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16389 from previous subpasses.
16391 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16393 * arm.c (arm_get_frame_offsets): Validate architecture supports
16394 LDRD/STRD before accepting the tuning preference.
16395 (arm_expand_prologue): Likewise.
16396 (arm_expand_epilogue): Likewise.
16398 2013-09-18 Richard Biener <rguenther@suse.de>
16400 PR tree-optimization/58417
16401 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16402 have chrecs with symbols defined in the loop as operands.
16403 (chrec_fold_multiply): Likewise.
16404 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16405 parameters before folding binary operations.
16406 (struct instantiate_cache_entry_hasher): Remove.
16407 (struct instantiate_cache_type): Use a pointer-map.
16408 (instantiate_cache_type::instantiate_cache_type): New function.
16409 (instantiate_cache_type::get): Likewise.
16410 (instantiate_cache_type::set): Likewise.
16411 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16412 (get_instantiated_value_entry): Likewise.
16413 (global_cache): New global.
16414 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16415 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16416 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16417 (instantiate_scev_name): Adjust.
16418 (instantiate_scev): Construct global instead of local cache.
16419 (resolve_mixers): Likewise.
16421 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16422 Paolo Carlini <paolo.carlini@oracle.com>
16425 * doc/implement-cxx.texi: Fix references to the C++ standards.
16427 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16429 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16430 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16431 simd_lane_access drs, update also DR_ALIGNED_TO.
16433 2013-09-18 Marek Polacek <polacek@redhat.com>
16436 * doc/extend.texi: Document no_sanitize_undefined attribute.
16437 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16438 no_sanitize_undefined attribute.
16440 2013-09-18 Nick Clifton <nickc@redhat.com>
16442 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16443 (ASM_DECLARE_FUNCTION_NAME): Define.
16445 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16447 * compare-elim.c (find_comparison_dom_walker): New class
16448 (find_comparisons_in_bb): Rename to
16449 find_comparison_dom_walker::before_dom_children
16450 (find_comparisons): Adjust
16451 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16453 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16454 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16455 (init_walk_dominator_tree): Remove declaration.
16456 (fini_walk_dominator_tree): Remove declaration.
16457 * fwprop.c (single_def_use_dom_walker): New class
16458 (single_def_use_enter_block): Convert to
16459 single_def_use_dom_walker::before_dom_children.
16460 (single_def_use_leave_block): Convert to
16461 single_def_use_dom_walker::after_dom_children.
16462 (build_single_def_use_links): Adjust.
16463 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16465 (find_candidates_in_block): Convert to
16466 find_candidates_dom_walker::before_dom_children.
16467 (execute_strength_reduction): Adjust.
16468 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16469 (sese_dom_walker): New class.
16470 (sese_dom_walker::sese_dom_walker): New constructor.
16471 (sese_dom_walker::~sese_dom_walker): New destructor.
16472 (build_sese_conditions_before): Convert to
16473 sese_dom_walker::before_dom_children.
16474 (build_sese_conditions_after): Convert to
16475 sese_dom_walker::after_dom_children.
16476 (build_poly_scop): Adjust
16477 * tree-into-ssa.c (rewrite_dom_walker): New class
16478 (rewrite_enter_block): Convert to
16479 rewrite_dom_walker::before_dom_children.
16480 (rewrite_leave_block): Convert to
16481 rewrite_dom_walker::after_dom_children.
16482 (rewrite_update_dom_walker): New class.
16483 (rewrite_update_enter_block): Convert to
16484 rewrite_update_dom_walker::before_dom_children.
16485 (rewrite_update_leave_block): Convert to
16486 rewrite_update_dom_walker::after_dom_children.
16487 (rewrite_blocks, rewrite_into_ssa): Adjust.
16488 (mark_def_dom_walker): New class.
16489 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16490 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16491 (mark_def_sites_blocks): Convert to
16492 mark_def_dom_walker::before_dom_children.
16493 (mark_def_site_blocks): Remove.
16494 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16495 (tree_ssa_dominator_optimize): Adjust.
16496 (dom_thread_across_edge): Convert to method
16497 dom_opt_dom_walker::thread_across_edge.
16498 (dom_opt_enter_block): Convert to member function
16499 dom_opt_dom_walker::before_dom_children.
16500 (dom_opt_leave_block): Convert to member function
16501 dom_opt_dom_walker::after_dom_children.
16502 * tree-ssa-dse.c (dse_dom_walker): New class.
16503 (dse_enter_block): Convert to member function
16504 dse_dom_walker::before_dom_children.
16505 (tree_ssa_dse): Adjust.
16506 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16507 (determine_invariantness_stmt): Convert to method
16508 invariantness_dom_walker::before_dom_children.
16509 (determine_invariantness): Remove
16510 (move_computations_dom_walker): New class.
16511 (move_computations_stmt): Convert to method
16512 move_computations_dom_walker::before_dom_children.
16513 (move_computations, tree_ssa_lim): Adjust.
16514 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16515 (nt_init_block): Convert to method
16516 notrappping_dom_walker::before_dom_children.
16517 (nt_fini_block): Convert to method
16518 method nontrapping_dom_walker::after_dom_children.
16519 (get_non_trapping): Adjust.
16520 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16521 (eliminate_bb): Convert to method
16522 eliminate_dom_walker::before_dom_children.
16523 (eliminate_leave_block): Convert to method
16524 eliminate_dom_walker::after_dom_children.
16525 (eliminate): Adjust.
16526 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16527 (strlen_enter_block): Convert to method
16528 strlen_dom_walker::before_dom_children.
16529 (strlen_leave_block): Convert to method
16530 method strlen_dom_walker::after_dom_children.
16531 (tree_ssa_strlen): Adjust.
16532 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16533 (tree_ssa_uncprop): Adjust.
16534 (uncprop_leave_block): Convert to method
16535 uncprop_dom_walker::after_dom_children.
16536 (uncprop_leave_block): Convert to method
16537 uncprop_dom_walker::before_dom_children.
16539 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16541 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16542 branch in same basic block. Check both src and dest of the move insn.
16544 2013-09-17 Nick Clifton <nickc@redhat.com>
16546 * config/rl78/rl78-real.md (bf): New pattern.
16548 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16549 (rl78_print_operand): Do not put a # before a %B.
16550 * config/rl78/rl78.opt: Tweak doc strings.
16552 2013-09-17 DJ Delorie <dj@redhat.com>
16554 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16555 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16556 (rl78_option_override): Likewise, if -mallregs.
16557 (is_virtual_register): Likewise.
16558 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16559 (REGNO_OK_FOR_BASE_P): Likewise.
16560 * config/rl78/rl78.opt (-mallregs): New.
16562 2013-09-17 Nick Clifton <nickc@redhat.com>
16564 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16565 For interrupt functions: save all call clobbered registers if the
16566 interrupt handler is not a leaf function.
16567 (rl78_expand_prologue): Always recompute the frame information.
16568 For interrupt functions: only select bank 0 if one of the bank 0
16569 registers is going to be psuhed.
16571 2013-09-17 DJ Delorie <dj@redhat.com>
16573 * config/rl78/constraints.md: For each W* constraint, rename to C*
16574 and create a W* constraint that checks for an optional ES: prefix
16576 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16577 (es_addr): New. Used to wrap far addresses.
16578 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16579 (rl78_es_base): New.
16580 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16581 wrapped far addresses.
16582 (rl78_print_operand_1): Unwrap far addresses before processing.
16583 (rl78_lo16): Wrap far addresses in unspecs.
16584 (rl78_es_addr): New.
16585 (rl78_es_base): New.
16586 (insn_ok_now): Check for not-yet-wrapped far addresses.
16587 (transcode_memory_rtx): Properly re-wrap far addresses.
16589 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16591 * config/sparc/t-rtems: Add leon3 multilibs.
16593 2013-09-17 Cong Hou <congh@google.com>
16595 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16596 when checking the dot production pattern. The type of rhs operand
16597 of multiply is now checked correctly.
16599 2013-09-17 Jeff Law <law@redhat.com>
16601 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16602 edge implied equivalences into successor phis.
16603 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16604 here from tree-ssa-threadedge.c.
16605 (mark_threaded_blocks): When threading through a joiner, if both
16606 successors of the joiner's clone reach the same block, verify the
16607 PHI arguments are equal. If not, cancel the jump threading request.
16608 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16609 tree-ssa-threadupdate.c
16610 (thread_across_edge): Don't check PHI argument equality when
16611 threading through joiner block here.
16613 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16615 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16616 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16617 (warn_uninit, warn_uninitialized_vars,
16618 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16619 Move to tree-ssa-uninit.c.
16620 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16621 (has_undefined_value_p): New. Pass dependant parts of
16622 ssa_undefined_value_p.
16623 (uninit_undefined_value_p): Use has_undefined_value_p.
16624 (warn_uninit, warn_uninitialized_vars,
16625 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16626 Move from tree-ssa.c.
16627 * tree-ssa.h: Adjust prototypes.
16629 2013-09-17 Jan Hubicka <jh@suse.cz>
16631 PR middle-end/58332
16632 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16633 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16634 FUNCTION_NOT_OPTIMIZED.
16635 * ipa-inline-analysis.c (compute_inline_parameters): Function
16636 not optimized is not inlinable unless it is alwaysinline.
16637 (inline_analyze_function): Force calls in not optimized
16638 function not inlinable.
16640 2013-09-17 Jan Hubicka <jh@suse.cz>
16642 PR middle-end/58329
16643 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16645 * ipa.c (function_and_variable_visibility): Likewise.
16646 * ipa-profile.c (ipa_profile): Likewise.
16648 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16651 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16652 attribute, and don't inline the resolver in this case.
16654 2013-09-17 Teresa Johnson <tejohnson@google.com>
16656 * coverage.c (get_coverage_counts): Add missing newline.
16658 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16660 PR tree-optimization/58088
16661 * fold-const.c (mask_with_trailing_zeros): New function.
16662 (fold_binary_loc): Make sure we don't recurse infinitely
16663 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16664 Use mask_with_trailing_zeros where appropriate.
16666 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16668 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16669 of 'prev' var to get better distance estimation.
16671 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16673 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16674 * tree-inline.c (is_parameter_of): New predicate.
16675 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16676 a parameter has been remapped.
16677 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16678 (optimize_inline_calls): Initialize transform_parameter.
16679 (copy_gimple_seq_and_replace_locals): Likewise.
16680 (tree_function_versioning): Likewise.
16681 (maybe_inline_call_in_expr): Likewise.
16683 2013-09-17 Nick Clifton <nickc@redhat.com>
16685 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16686 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16687 interrupt handlers.
16688 (is_attr_func): New function.
16689 (msp430_is_interrupt_func): New function.
16690 (is_naked_func): New function.
16691 (is_reentrant_func): New function.
16692 (is_critical_func): New function.
16693 (msp430_start_function): Add annotations for function attributes.
16694 (msp430_attr): New function.
16695 (msp430_attribute_table): New.
16696 (msp430_function_section): New function.
16697 (TARGET_ASM_FUNCTION_SECTION): Define.
16698 (msp430_builtin): New enum.
16699 (msp430_init_builtins): New function.
16700 (msp430_builtin_devl): New function.
16701 (msp430_expand_builtin): New function.
16702 (TARGET_INIT_BUILTINS): Define.
16703 (TARGET_EXPAND_BUILTINS): Define.
16704 (TARGET_BUILTIN_DECL): Define.
16705 (msp430_expand_prologue): Add support for naked, interrupt,
16706 critical and reentrant functions.
16707 (msp430_expand_epilogue): Likewise.
16708 (msp430_print_operand): Handle 'O' character.
16709 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16711 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16712 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16713 (pushm): Use a 'n' rather than an 'i' constraint.
16714 (msp_return): Add generation of the interrupt return instruction.
16715 (disable_interrupts): New pattern.
16716 (enable_interrupts): New pattern.
16717 (push_intr_state): New pattern.
16718 (pop_intr_state): New pattern.
16719 (bic_SR): New pattern.
16720 (bis_SR): New pattern.
16721 * doc/extend.texi: Document MSP430 function attributes and builtin
16724 2013-09-17 Richard Biener <rguenther@suse.de>
16726 PR tree-optimization/58432
16727 * tree-loop-distribution.c (tree_loop_distribution): Also
16728 scan PHIs for outside loop uses and seed a partition from them.
16730 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16732 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16733 (restructure_reference): Call backtrace_base_for_ref.
16735 2013-09-17 Alan Modra <amodra@gmail.com>
16738 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16741 2013-09-16 DJ Delorie <dj@redhat.com>
16743 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16744 vregs location for RL78/G10.
16745 (rl78_expand_prologue): Avoid SEL on G10.
16746 (rl78_expand_epilogue): Likewise.
16747 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16748 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16749 __RL78_G10__ when appropriate.
16750 (ASM_SPEC): Pass -mg10 along to the assembler.
16751 * config/rl78/rl78.md (sel_rb): Disable for G10.
16752 * config/rl78/rl78.opt: Add -mg10 option.
16753 * config/rl78/t-rl78: Add -mg10 multilib.
16755 2013-09-16 Xinliang David Li <davidxl@google.com>
16757 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16758 * omp-low.c (omp_max_vf): Ditto.
16759 (expand_omp_simd): Ditto.
16760 * tree-vectorizer.c (vectorize_loops): Ditto.
16761 (gate_vect_slp): Ditto.
16762 (gate_increase_alignment): Ditto.
16763 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16764 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16765 (gate_tree_vectorize): Name change.
16766 (tree_vectorize): Ditto.
16767 (pass_vectorize::gate): Call new function.
16768 (pass_vectorize::execute): Ditto.
16769 * opts.c: O3 default setting change.
16770 (finish_options): Check new flag.
16771 * doc/invoke.texi: Document new flags.
16772 * common.opt: New flags.
16774 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16776 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16777 (Condition Code): Don't reference it.
16778 * doc/tm.texi: Regenerate.
16780 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16782 PR middle-end/58418
16783 * lra-constraints.c (undo_optional_reloads): Consider all optional
16784 reload even if it did not get a hard reg.
16786 2013-09-16 Teresa Johnson <tejohnson@google.com>
16788 * dumpfile.c (dump_loc): Remove newline emission.
16789 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16790 emission to dump_printf_loc calls where missing.
16791 (vect_mark_for_runtime_alias_test): Ditto.
16792 (vect_analyze_data_ref_dependence): Ditto.
16793 (vect_analyze_data_ref_dependences): Ditto.
16794 (vect_slp_analyze_data_ref_dependence): Ditto.
16795 (vect_slp_analyze_data_ref_dependences): Ditto.
16796 (vect_compute_data_ref_alignment): Ditto.
16797 (vect_update_misalignment_for_peel): Ditto.
16798 (vect_verify_datarefs_alignment): Ditto.
16799 (vector_alignment_reachable_p): Ditto.
16800 (vect_get_data_access_cost): Ditto.
16801 (vect_enhance_data_refs_alignment): Ditto.
16802 (vect_find_same_alignment_drs): Ditto.
16803 (vect_analyze_data_refs_alignment): Ditto.
16804 (vect_analyze_group_access): Ditto.
16805 (vect_analyze_data_ref_access): Ditto.
16806 (vect_analyze_data_ref_accesses): Ditto.
16807 (vect_prune_runtime_alias_test_list): Ditto.
16808 (vect_analyze_data_refs): Ditto.
16809 (vect_create_addr_base_for_vector_ref): Ditto.
16810 (vect_create_data_ref_ptr): Ditto.
16811 (vect_grouped_store_supported): Ditto.
16812 (vect_grouped_load_supported): Ditto.
16813 * value-prof.c (check_counter): Ditto.
16814 (check_ic_target): Ditto.
16815 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16816 (vect_recog_widen_mult_pattern): Ditto.
16817 (vect_recog_widen_sum_pattern): Ditto.
16818 (vect_recog_over_widening_pattern): Ditto.
16819 (vect_recog_widen_shift_pattern): Ditto.
16820 (vect_recog_rotate_pattern): Ditto.
16821 (vect_recog_vector_vector_shift_pattern): Ditto.
16822 (vect_recog_divmod_pattern): Ditto.
16823 (vect_recog_mixed_size_cond_pattern): Ditto.
16824 (vect_recog_bool_pattern): Ditto.
16825 (vect_pattern_recog_1): Ditto.
16826 (vect_pattern_recog): Ditto.
16827 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16828 (vect_is_simple_iv_evolution): Ditto.
16829 (vect_analyze_scalar_cycles_1): Ditto.
16830 (vect_get_loop_niters): Ditto.
16831 (vect_analyze_loop_1): Ditto.
16832 (vect_analyze_loop_form): Ditto.
16833 (vect_analyze_loop_operations): Ditto.
16834 (vect_analyze_loop_2): Ditto.
16835 (vect_analyze_loop): Ditto.
16836 (report_vect_op): Ditto.
16837 (vect_is_slp_reduction): Ditto.
16838 (vect_is_simple_reduction_1): Ditto.
16839 (vect_get_known_peeling_cost): Ditto.
16840 (vect_estimate_min_profitable_iters): Ditto.
16841 (vect_model_reduction_cost): Ditto.
16842 (vect_model_induction_cost): Ditto.
16843 (get_initial_def_for_induction): Ditto.
16844 (vect_create_epilog_for_reduction): Ditto.
16845 (vectorizable_reduction): Ditto.
16846 (vectorizable_induction): Ditto.
16847 (vectorizable_live_operation): Ditto.
16848 (vect_loop_kill_debug_uses): Ditto.
16849 (vect_transform_loop): Ditto.
16850 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16851 (vect_stmt_relevant_p): Ditto.
16852 (process_use): Ditto.
16853 (vect_mark_stmts_to_be_vectorized): Ditto.
16854 (vect_model_simple_cost): Ditto.
16855 (vect_model_promotion_demotion_cost): Ditto.
16856 (vect_model_store_cost): Ditto.
16857 (vect_get_store_cost): Ditto.
16858 (vect_model_load_cost): Ditto.
16859 (vect_get_load_cost): Ditto.
16860 (vect_init_vector_1): Ditto.
16861 (vect_get_vec_def_for_operand): Ditto.
16862 (vect_finish_stmt_generation): Ditto.
16863 (vectorizable_call): Ditto.
16864 (vectorizable_conversion): Ditto.
16865 (vectorizable_assignment): Ditto.
16866 (vectorizable_shift): Ditto.
16867 (vectorizable_operation): Ditto.
16868 (vectorizable_store): Ditto.
16869 (vectorizable_load): Ditto.
16870 (vectorizable_condition): Ditto.
16871 (vect_analyze_stmt): Ditto.
16872 (vect_transform_stmt): Ditto.
16873 (vect_is_simple_use): Ditto.
16874 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16875 (vect_can_advance_ivs_p): Ditto.
16876 (vect_update_ivs_after_vectorizer): Ditto.
16877 (vect_do_peeling_for_loop_bound): Ditto.
16878 (vect_gen_niters_for_prolog_loop): Ditto.
16879 (vect_update_inits_of_drs): Ditto.
16880 (vect_create_cond_for_alias_checks): Ditto.
16881 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16882 (vect_build_slp_tree_1): Ditto.
16883 (vect_supported_load_permutation_p): Ditto.
16884 (vect_analyze_slp_instance): Ditto.
16885 (vect_analyze_slp): Ditto.
16886 (vect_make_slp_decision): Ditto.
16887 (vect_detect_hybrid_slp): Ditto.
16888 (vect_bb_vectorization_profitable_p): Ditto.
16889 (vect_slp_analyze_bb_1): Ditto.
16890 (vect_update_slp_costs_according_to_vf): Ditto.
16891 (vect_get_mask_element): Ditto.
16892 (vect_transform_slp_perm_load): Ditto.
16893 (vect_schedule_slp_instance): Ditto.
16894 (vect_schedule_slp): Ditto.
16895 (vect_slp_transform_bb): Ditto.
16896 * profile.c (read_profile_edge_counts): Ditto.
16897 (compute_branch_probabilities): Ditto.
16898 * coverage.c (get_coverage_counts): Ditto.
16900 2013-09-16 Diego Novillo <dnovillo@google.com>
16902 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16904 2013-09-16 Jan Hubicka <jh@suse.cz>
16906 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16907 abstract functions; for static functions check the presence of body.
16909 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16911 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16912 * config/aarch64/aarch64-simd.md
16913 (aarch64_mla_elt<mode>): New.
16914 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16915 (aarch64_mls_elt<mode>): Likewise.
16916 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16917 (aarch64_fma4_elt<mode>): Likewise.
16918 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16919 (aarch64_fma4_elt_to_128v2df): Likewise.
16920 (aarch64_fma4_elt_to_64df): Likewise.
16921 (fnma<mode>4): Likewise.
16922 (aarch64_fnma4_elt<mode>): Likewise.
16923 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16924 (aarch64_fnma4_elt_to_128v2df): Likewise.
16925 (aarch64_fnma4_elt_to_64df): Likewise.
16926 * config/aarch64/iterators.md (VDQSF): New.
16927 * config/aarch64/arm_neon.h
16928 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16929 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16931 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16933 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16934 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16935 (aarch64_mul3_elt_to_128df): Likewise.
16936 (aarch64_mul3_elt_to_64v2df): Likewise.
16937 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16939 (VMUL_CHANGE_NLANES) Likewise.
16942 * config/aarch64/arm_neon.h
16943 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16945 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16947 * config/aarch64/arm_neon.h
16948 (vcvtx_high_f32_f64): Fix parameters.
16950 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16951 Uros Bizjak <ubizjak@gmail.com>
16953 * config/alpha.c: Include tree-ssanames.h.
16955 2013-09-16 Richard Biener <rguenther@suse.de>
16957 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16958 (dot_rdg_1): Handle control_dd.
16959 (create_edge_for_control_dependence): New function.
16960 (create_rdg_edges): Add control dependences if asked for.
16961 (build_rdg): Likewise.
16962 (generate_loops_for_partition): If there are not necessary
16963 control stmts remove all their dependencies.
16964 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16965 (distribute_loop): Pass on control dependences.
16966 (tree_loop_distribution): Compute control dependences and remove
16967 restriction on number of loop nodes.
16969 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16971 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16972 for internal calls.
16974 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16976 * cse.c (try_const_anchors): Punt on CC modes.
16978 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16980 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16982 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16985 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16986 calls to word_mode.
16988 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16991 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16993 (darwin_objc1_section): Likewise.
16994 (darwin_file_end): Emit Image Info section when required.
16996 2013-09-14 Jan Hubicka <jh@suse.cz>
16998 * tree-into-ssa.c (gate_into_ssa): New.
16999 (pass_data_build_ssa): Use it.
17000 * cgraph.h (expand_thunk): Update prototype.
17001 * cgraphunit.c (analyze_function): Expand thunks early.
17002 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17003 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17004 set lowered flag; do not add new function.
17005 (assemble_thunks_and_aliases): Update.
17006 * tree-ssa.c (gate_init_datastructures): New gate.
17007 (pass_data_init_datastructures): Use it.
17009 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17012 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17013 xmm register set described in the psABI.
17015 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17017 * dwarf2out.c (should_emit_struct_debug): Add check
17018 for type_decl variable is not NULL.
17020 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17022 * config.gcc: Use new winnt-c.c target hooks
17023 * config/t-winnt: New file
17024 * config/winnt-c.c: New file
17025 * doc/tm.texi.in: Document new hook
17026 * doc/tm.texi: Regenerated
17028 2013-09-13 Jan Hubicka <jh@suse.cz>
17030 PR middle-end/58094
17031 * ipa-inline.c (check_callers): New function.
17032 (check_caller_edge): Remove.
17033 (want_inline_function_to_all_callers_p): Also permit alises that are
17035 (inline_to_all_callers): Terminate the walk when devirtualization
17036 introduce new calls.
17038 2013-09-13 Jan Hubicka <jh@suse.cz>
17040 * ipa-inline-analysis.c (struct growth_data): Add node.
17041 (do_estimate_growth_1): Fix detection of recursion.
17043 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17045 PR tree-optimization/58392
17046 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17047 to avoid shadowing of outer loop variable. If
17048 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17049 replace_by_duplicate_decl simduid of loops that have it set and
17050 set dest_cfun->has_simduid_loops and/or
17051 dest_cfun->has_force_vect_loops.
17052 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17053 instead of maybe_lookup_decl.
17054 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17055 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17056 call. Copy over force_vect and copy and remap simduid. Set
17057 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17058 (copy_cfg_body): Remove blocks_to_copy argument. Use
17059 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17060 caller. Don't set cfun->has_simduid_loops and/or
17061 cfun->has_force_vect_loops here.
17062 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17064 (expand_call_inline, tree_function_versioning): Adjust copy_body
17067 2013-09-13 Martin Jambor <mjambor@suse.cz>
17070 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17071 the assert if the edge was a speculative one.
17073 2013-09-13 Richard Biener <rguenther@suse.de>
17075 * tree-data-ref.h (known_dependences_p): Move here ...
17076 * tree-loop-distribution.c (known_dependences_p): ... from here.
17077 (dump_rdg_component, debug_rdg_component): Remove.
17078 (dump_rdg): Adjust.
17079 (generate_loops_for_partition): Use gimple_uid instead of
17080 relying on matching stmt visit order.
17081 (rdg_build_partitions): Take starting stmt vector.
17082 (ldist_gen): Merge into ...
17083 (distribute_loop): ... this function. Do not compute starting
17085 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17087 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17089 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17090 Set type attribute correctly. Set predicable_short_it attribute.
17091 (cmpsi_shiftsi): Remove %? from output template.
17093 2013-09-13 Richard Biener <rguenther@suse.de>
17095 * tree-loop-distribution.c (struct rdg_component,
17096 rdg_defs_used_in_other_loops_p, free_rdg_components,
17097 rdg_build_components): Remove.
17098 (stmts_from_loop): Do not record virtual PHIs.
17099 (generate_loops_for_partition): Skip virtual PHIs.
17100 (build_rdg_partition_for_component): Rename to ...
17101 (build_rdg_partition_for_vertex): ... this and adjust.
17102 (rdg_build_partitions): Take a vector of starting vertices
17103 instead of components. Remove unnecessary leftover handling.
17104 (ldist_gen): Do not build components or record other stores.
17105 (distribute_loop): Do not distribute loops containing stmts
17108 2013-09-13 Christian Bruel <christian.bruel@st.com>
17111 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17113 2013-09-13 Kai Tietz <ktietz@redhat.com>
17115 * config.gcc: Separate cases for mingw and cygwin targets,
17116 and add 64-bit cygwin target case.
17118 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17119 dll-export inline-functions.
17120 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17122 2013-09-13 Jeff Law <law@redhat.com>
17124 PR middle-end/58387
17126 2013-09-06 Jeff Law <law@redhat.com>
17128 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17129 edge implied equivalences into successor phis.
17131 2013-09-12 DJ Delorie <dj@redhat.com>
17133 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17136 2013-09-12 Brooks Moses <bmoses@google.com>
17139 * Makefile.in: Do not install driver binaries in $(target)/bin.
17141 2013-09-12 DJ Delorie <dj@redhat.com>
17143 * config/rl78/rl78.opt (mrelax): New.
17144 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17145 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17147 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17149 (rl78_expand_epilogue): Likewise.
17151 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17153 PR middle-end/58335
17154 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17155 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17156 pointer elimination with using remove_reg_equal_offset_note.
17158 2013-09-12 DJ Delorie <dj@redhat.com>
17160 * config/msp430/: New port.
17161 * config.gcc (msp430): Added.
17162 * doc/invoke.texi: Document MSP430 options.
17163 * doc/install.texi: Document msp430-elf
17164 * doc/md.texi: Document msp430-elf
17165 * doc/contrib.texi: Document msp430-elf
17167 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17170 2013-09-12 Martin Jambor <mjambor@suse.cz>
17173 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17174 reference descriptor is NULL.
17175 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17178 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17180 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17181 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17182 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17183 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17184 make_temp_ssa_name): move to tree-ssanames.h
17185 * tree-ssa-alias.h: Move prototype.
17186 * tree-ssa.h: Include tree-ssanames.h.
17187 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17188 * tree-ssanames.h: New. Move items from tree-flow*.h
17189 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17191 2013-09-12 Richard Biener <rguenther@suse.de>
17193 PR tree-optimization/58404
17194 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17195 propagate non-invariant addresses into dereferences wrapped
17196 in component references.
17198 2013-09-12 Richard Biener <rguenther@suse.de>
17200 PR tree-optimization/58402
17201 * passes.def: Move pass_late_warn_uninitialized later.
17203 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17205 * tree-ssa.h: New. Move content from tree-flow.h and
17206 tree-flow-inline.h.
17207 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17208 Move prototypes belonging to tree-ssa.c.
17209 * tree-flow-inline.h (redirect_edge_var_map_def,
17210 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17212 * gimple.h: Adjust prototypes.
17213 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17215 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17216 * tree.h: Move prototype to tree-ssa.h.
17217 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17218 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17219 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17220 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17221 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17222 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17223 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17224 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17225 graphite-blocking.c, graphite-clast-to-gimple.c,
17226 graphite-dependences.c, graphite-interchange.c,
17227 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17228 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17229 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17230 ipa-reference.c, ipa-split.c, ipa-utils.c,
17231 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17232 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17233 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17234 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17235 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17236 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17237 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17238 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17239 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17240 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17241 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17242 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17243 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17244 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17245 value-prof.c, var-tracking.c,
17246 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17248 2013-09-12 Richard Biener <rguenther@suse.de>
17250 PR tree-optimization/58396
17251 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17252 (build_rdg): Take a loop-nest parameter, fix memleaks.
17253 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17255 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17257 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17260 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17262 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17263 The FMA instruction names should have a 'v' prefix.
17265 2013-09-12 Richard Biener <rguenther@suse.de>
17267 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17268 (dot_rdg): Use popen instead of system in optional code.
17269 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17270 (already_processed_vertex_p): Adjust.
17271 (has_anti_or_output_dependence, predecessor_has_mem_write,
17272 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17273 rdg_flag_uses): Remove.
17274 (rdg_flag_vertex): Simplify.
17275 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17277 (build_rdg_partition_for_component): Process the first vertex
17278 of a component only.
17279 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17281 2013-09-12 Alan Modra <amodra@gmail.com>
17283 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17285 2013-09-11 DJ Delorie <dj@redhat.com>
17286 Nick Clifton <nickc@redhat.com>
17288 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17289 (rl78_stack_based_mem): New.
17290 * config/rl78/constraints.md (Iv08): New.
17299 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17301 (movsi): Change from expand to insn-and-split.
17302 (ashrsi3): Clobber AX.
17306 * config/rl78/rl78.md (CC_REG): Fix.
17307 (addsi3): Allow memory and immediate operands.
17308 (addsi3_internal): Split into...
17309 (addsi3_internal_virt): ...new, and ...
17310 (addsi3_internal_real): ...new.
17312 (subsi3_internal_virt): New.
17313 (subsi3_internal_real): New.
17314 (mulsi3): Add memory operand.
17315 (mulsi3_rl78): Likewise.
17316 (mulsi3_g13): Likewise.
17317 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17318 (cbranchqi4_real): Add more constraint options.
17319 (cbranchhi4_real): Expand pattern.
17320 (cbranchhi4_real_signed): New.
17321 (cbranchhi4_real_inverted): New.
17322 (cbranchsi4_real_lt): New.
17323 (cbranchsi4_real_ge): New.
17324 (cbranchsi4_real_signed): New.
17325 (cbranchsi4_real): New.
17327 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17329 (lshrsi3_virt): Likewise.
17330 (ashlsi3_virt): Likewise.
17331 (cbranchqi4_virt_signed): New.
17332 (cbranchhi4_virt_signed): New.
17333 (cbranchsi4_virt): New.
17334 * config/rl78/rl78.c: Whitespace fixes throughout.
17335 (move_elim_pass): New.
17336 (pass_data_rl78_move_elim): New.
17337 (pass_rl78_move_elim): New.
17338 (make_pass_rl78_move_elim): New.
17339 (rl78_devirt_info): Run devirt earlier.
17340 (rl78_move_elim_info): New.
17341 (rl78_asm_file_start): Register it.
17342 (rl78_split_movsi): New.
17343 (rl78_as_legitimate_address): Allow virtual base registers when
17345 (rl78_addr_space_convert): Remove spurious debug stuff.
17346 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17347 (rl78_print_operand): More cases for not printing '#'.
17348 (rl78_expand_compare): Remove most of the logic.
17349 (content_memory): New.
17350 (clear_content_memory): New.
17351 (get_content_index): New.
17352 (get_content_name): New.
17353 (display_content_memory): New.
17354 (update_content): New.
17355 (record_content): New.
17356 (already_contains): New.
17357 (insn_ok_now): Re-recog insns with virtual registers.
17358 (add_postponed_content_update): New.
17359 (process_postponed_content_update): New.
17360 (gen_and_emit_move): New.
17361 (transcode_memory_rtx): Record new location content.
17362 Use gen_and_emit_move.
17363 (force_into_acc): New.
17364 (move_to_acc): Use gen_and_emit_move.
17365 (move_from_acc): Likewise.
17366 (move_acc_to_reg): Likewise.
17367 (move_to_x): Likewise.
17368 (move_to_hl): Likewise.
17369 (move_to_de): Likewise.
17370 (rl78_alloc_physical_registers_op1): Record location content.
17371 (has_constraint): New.
17372 (rl78_alloc_physical_registers_op2): Record location content.
17373 Optimize use of HL.
17374 (rl78_alloc_physical_registers_ro1): Likewise.
17375 (rl78_alloc_physical_registers_cmp): Likewise.
17376 (rl78_alloc_physical_registers_umul): Likewise.
17377 (rl78_alloc_address_registers_macax): New.
17378 (rl78_alloc_physical_registers): Initialize and set location
17379 content memory as needed.
17380 (rl78_reorg): Make sure split2 is called.
17381 (rl78_rtx_costs): New.
17383 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17385 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17386 for (not (neg ...)) and (neg (not ...)) cases.
17388 2013-09-11 Richard Biener <rguenther@suse.de>
17390 PR middle-end/58377
17391 * passes.def: Split critical edges before late uninit warning passes.
17392 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17394 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17396 PR tree-optimization/58385
17397 * fold-const.c (build_range_check): If both low and high are NULL,
17398 use omit_one_operand_loc to preserve exp side-effects.
17400 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17402 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17404 2013-09-11 Richard Biener <rguenther@suse.de>
17406 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17407 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17408 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17409 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17410 stmts_from_loop, known_dependences_p, build_empty_rdg,
17411 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17412 * tree-loop-distribution.c: ... here.
17413 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17414 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17415 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17416 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17417 * tree-loop-distribution.c: ... here.
17418 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17419 (struct partition_s): Add loops member.
17420 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17421 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17422 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17424 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17426 Sergey Lega <sergey.s.lega@intel.com>
17427 Anna Tikhonova <anna.tikhonova@intel.com>
17428 Ilya Tocar <ilya.tocar@intel.com>
17429 Andrey Turetskiy <andrey.turetskiy@intel.com>
17430 Ilya Verbin <ilya.verbin@intel.com>
17431 Kirill Yukhin <kirill.yukhin@intel.com>
17432 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17434 * config/i386/constraints.md (k): New.
17436 * config/i386/i386.c (const regclass_map): Add new mask registers.
17437 (dbx_register_map): Ditto.
17438 (dbx64_register_map): Ditto.
17439 (svr4_dbx_register_map): Ditto.
17440 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17442 (ix86_preferred_reload_class): Disable constants for mask registers.
17443 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17444 (ix86_hard_regno_mode_ok): Support new mask registers.
17445 (x86_order_regs_for_local_alloc): Ditto.
17446 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17447 (FIXED_REGISTERS): Add new mask registers.
17448 (CALL_USED_REGISTERS): Ditto.
17449 (REG_ALLOC_ORDER): Ditto.
17450 (VALID_MASK_REG_MODE): New.
17451 (FIRST_MASK_REG): Ditto.
17452 (LAST_MASK_REG): Ditto.
17453 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17454 (MAYBE_MASK_CLASS_P): New.
17455 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17456 (REG_CLASS_CONTENTS): Ditto.
17457 (MASK_REGNO_P): New.
17458 (ANY_MASK_REG_P): Ditto.
17459 (HI_REGISTER_NAMES): Add new mask registers.
17460 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17461 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17463 (attribute "type"): Add mskmov, msklog.
17464 (attribute "length_immediate"): Support them.
17465 (attribute "memory"): Ditto.
17466 (attribute "prefix_0f"): Ditto.
17467 (*movhi_internal): Support new mask registers.
17468 (*movqi_internal): Ditto.
17469 (define_split): Split out clobber pattern is a logic
17470 insn on mask registers.
17471 (*k<logic><mode>): New.
17472 (*andhi_1): Extend to support mask regs.
17473 (*andqi_1): Extend to support mask regs.
17474 (kandn<mode>): New.
17475 (define_split): Split and-not to and and not if operands
17477 (*<code><mode>_1): Separate HI mode to new pattern...
17478 (*<code>hi_1): This.
17479 (*<code>qi_1): Extend to support mask regs.
17480 (kxnor<mode>): New.
17481 (kortestzhi): Ditto.
17482 (kortestchi): Ditto.
17484 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17485 (*one_cmplhi2_1): ...Here, now with mask registers support.
17486 (*one_cmplqi2_1): Support new mask registers.
17487 (HI/QImode arithmetics splitter): Don't split if mask registers
17489 (HI/QImode not splitter): Ditto.
17490 * config/i386/predicated.md (mask_reg_operand): New.
17491 (general_reg_operand): Ditto.
17493 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17495 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17496 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17498 2013-09-10 Jeff Law <law@redhat.com>
17500 PR tree-optimization/58380
17501 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17502 of threading through a buried loop header.
17504 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17505 return value for single successor case.
17507 2013-09-10 Jan Hubicka <jh@suse.cz>
17509 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17511 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17514 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17515 support conditional execution.
17516 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17518 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17520 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17522 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17523 Check destination too to check move insn.
17524 (undo_optional_reloads): Add check that the original peudo did not
17525 changed its allocation and the optional reload was inherited on last
17526 inheritance pass. Break loop after deciding to keep optional reload.
17527 (lra_undo_inheritance): Add check that inherited pseudo still in
17530 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17532 * config/aarch64/aarch64.md (generic_sched): New.
17533 * config/aarch64/aarch64-generic.md (load): Make conditional
17534 on generic_sched attribute.
17535 (nonload): Likewise.
17537 2013-09-10 Jan Hubicka <jh@suse.cz>
17539 * lto-cgraph.c: Include ipa-utils.h.
17540 (compute_ltrans_boundary): Also add possible targets into the boundary.
17542 2013-09-10 Jan Hubicka <jh@suse.cz>
17544 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17545 VAR_DECL of vtable rather than full expression.
17547 2013-09-10 Jan Hubicka <jh@suse.cz>
17548 Paolo Carlini <paolo.carlini@oracle.com>
17550 * cgraphunit.c (analyze_functions): Save input_location, set it
17551 to UNKNOWN_LOCATION and restore it at the end.
17553 2013-09-10 Martin Jambor <mjambor@suse.cz>
17555 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17556 represented by a thunk.
17558 2013-09-10 Jeff Law <law@redhat.com>
17560 PR tree-optimization/58343
17561 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17562 jump threading requests through loop headers buried in the middle
17563 of a jump threading path.
17565 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17566 in return value/type.
17568 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17570 PR rtl-optimization/58365
17571 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17572 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17575 2013-09-10 Richard Biener <rguenther@suse.de>
17577 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17578 * tree-data-ref.c (create_rdg_vertices): Collect all data
17579 references, signal failure to the caller, use data-ref API.
17580 (build_rdg): Compute data references only once. Maintain lifetime
17581 of data references and data dependences from within RDG.
17582 (free_rdg): Free dependence relations.
17583 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17584 inventing extra dependences.
17585 (distribute_loop): Update for RDG API changes.
17587 2013-09-10 Kai Tietz <ktietz@redhat.com>
17589 * doc/invoke.texi (fms-extensions): Document changed
17590 behavior for ms-abi targets.
17591 * config/i386/i386.c (ix86_option_override_internal):
17592 Set default value of option -fms-extension for ms-abi targets.
17594 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17596 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17598 2013-09-10 Alan Modra <amodra@gmail.com>
17601 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17603 2013-09-10 Alan Modra <amodra@gmail.com>
17605 * config/rs6000/predicates.md (add_cint_operand): New.
17606 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17607 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17608 using add_cint_operand.
17609 (largetoc_high_plus_aix): Likewise.
17611 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17613 PR tree-optimization/58364
17614 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17615 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17616 the current range can't be an unconditional true or false.
17618 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17620 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17622 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17624 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17626 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17629 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17631 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17633 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17634 NO_REGS for immediate that can't be moved directly into FP_REGS.
17636 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17638 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17639 comparison with negated operand.
17640 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17643 2013-09-09 Richard Biener <rguenther@suse.de>
17645 PR middle-end/58326
17646 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17647 of a subloop record all its block as affecting loop-closed SSA form.
17649 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17651 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17652 of an rtx/bitpos pair.
17653 (store_fixed_bit_field): Update accordingly.
17655 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17657 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17659 * builtins.c (expand_errno_check): Likewise.
17660 * dwarf2cfi.c (init_return_column_size): Likewise.
17661 * except.c (sjlj_mark_call_sites): Likewise.
17662 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17663 * lra-constraints.c (emit_inc): Likewise.
17664 * ree.c (combine_set_extension): Likewise.
17665 * regmove.c (fixup_match_2): Likewise.
17666 * reload1.c (inc_for_reload): Likewise.
17668 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17670 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17671 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17672 Use gen_int_mode with the mode of the associated simplify_* call.
17673 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17674 * expmed.c (expand_shift_1): Likewise.
17675 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17676 * loop-iv.c (iv_number_of_iterations): Likewise.
17677 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17678 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17680 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17682 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17683 of the associated expand_* call.
17684 (asan_emit_stack_protection): Likewise.
17685 * builtins.c (round_trampoline_addr): Likewise.
17686 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17687 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17688 (emit_store_flag): Likewise.
17689 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17690 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17692 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17693 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17694 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17695 * modulo-sched.c (generate_prolog_epilog): Likewise.
17696 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17697 (expand_ctz, expand_ffs, expand_unop): Likewise.
17699 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17701 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17702 of the associated gen_rtx_* call.
17703 * caller-save.c (init_caller_save): Likewise.
17704 * combine.c (find_split_point, make_extraction): Likewise.
17705 (make_compound_operation): Likewise.
17706 * dwarf2out.c (mem_loc_descriptor): Likewise.
17707 * explow.c (plus_constant, probe_stack_range): Likewise.
17708 * expmed.c (expand_mult_const): Likewise.
17709 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17710 * reload1.c (init_reload): Likewise.
17711 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17712 * var-tracking.c (adjust_mems): Likewise.
17713 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17714 rather than gen_rtx_fmt_ee.
17716 2013-09-09 Jan Hubicka <jh@suse.cz>
17718 PR middle-end/58294
17719 * value-prof.c (gimple_ic): Copy also abnormal edges.
17721 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17723 * asan.c (asan_shadow_cst): Use gen_int_mode.
17725 2013-09-08 Jan Hubicka <jh@suse.cz>
17727 * ipa-profile.c: Add toplevel comment.
17728 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17729 (contains_hot_call_p): New function.
17730 (ipa_propagate_frequency): Set frequencies based on counts when
17732 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17733 profile; do not tamper with profile after inlining if it is read.
17735 2013-09-08 Jan Hubicka <jh@suse.cz>
17737 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17740 2013-09-08 Jan Hubicka <jh@suse.cz>
17742 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17743 summary generation.
17745 2013-09-08 Jeff Law <law@redhat.com>
17748 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17751 2013-09-08 Andi Kleen <ak@linux.intel.com>
17753 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17755 2013-09-08 Jan Hubicka <jh@suse.cz>
17757 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17759 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17761 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17762 for non-debug insns.
17763 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17764 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17765 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17768 2013-09-08 Jan Hubicka <jh@suse.cz>
17770 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17771 targets and devirtualize to BUILT_IN_UNREACHABLE.
17772 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17773 * ipa.c (walk_polymorphic_call_targets): New function.
17774 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17775 functions; use the new timevar.
17776 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17777 was removed from the program.
17778 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17779 not consider it in the walk when its vtable is dead.
17780 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17782 (devirt_variable_node_removal_hook): New function.
17783 (possible_polymorphic_call_targets): Also register
17784 devirt_variable_node_removal_hook.
17785 (ipa_devirt): Do not do non-speculative devirtualization.
17786 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17788 2013-09-08 Jan Hubicka <jh@suse.cz>
17790 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17791 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17792 varpool_remove_variable_insertion_hook): Declare.
17793 * varpool.c (varpool_node_hook_list): New structure.
17794 (first_varpool_node_removal_hook,
17795 first_varpool_variable_insertion_hook): New variables.
17796 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17797 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17798 varpool_remove_variable_insertion_hook,
17799 varpool_call_variable_insertion_hooks): New functions.
17800 (varpool_remove_node): Use it.
17802 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17805 * diagnostic.c (diagnostic_build_prefix): When s.file is
17806 "<built-in>" don't output line and column numbers.
17808 2013-09-06 Jan Hubicka <jh@suse.cz>
17810 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17811 * lto-streamer-out.c: Stream thunks, too.
17812 * lto-streamer-in.c (input_function): Pop cfun here
17813 (lto_read_body): Instead of here.
17815 2013-09-06 Caroline Tice <cmtice@google.com>
17817 * doc/install.texi: Add documentation for the --enable-vtable-verify
17818 and the --disable-libvtv configure options.
17820 2013-09-06 Jeff Law <law@redhat.com>
17822 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17823 edge implied equivalences into successor phis.
17825 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17827 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17829 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17831 * resource.c (mark_target_live_regs): Compute resources taking
17832 into account if a call is predicated or not.
17834 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17836 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17837 the compiler in the function names.
17839 2013-09-06 Jan Hubicka <jh@suse.cz>
17841 PR middle-end/58094
17842 * ipa-inline.c (has_caller_p): New function.
17843 (want_inline_function_to_all_callers_p): Use it.
17844 (sum_callers, inline_to_all_callers): Break out from ...
17845 (ipa_inline): ... here.
17847 2013-09-06 Jan Hubicka <jh@suse.cz>
17849 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17850 only when AVX is enabled.
17852 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17854 * config/aarch64/aarch64.md
17855 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17856 is fpsimd_<load/store>2.
17857 (load_pair<mode>): Likewise.
17858 (store_pair<mode>): Likewise.
17860 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17862 * config/arm/types.md (type): Add "mrs" type.
17863 * config/aarch64/aarch64.md
17864 (aarch64_load_tp_hard): Make type "mrs".
17865 * config/arm/arm.md
17866 (load_tp_hard): Make type "mrs".
17867 * config/arm/cortex-a15.md: Update with new attributes.
17868 * config/arm/cortex-a5.md: Update with new attributes.
17869 * config/arm/cortex-a53.md: Update with new attributes.
17870 * config/arm/cortex-a7.md: Update with new attributes.
17871 * config/arm/cortex-a8.md: Update with new attributes.
17872 * config/arm/cortex-a9.md: Update with new attributes.
17873 * config/arm/cortex-m4.md: Update with new attributes.
17874 * config/arm/cortex-r4.md: Update with new attributes.
17875 * config/arm/fa526.md: Update with new attributes.
17876 * config/arm/fa606te.md: Update with new attributes.
17877 * config/arm/fa626te.md: Update with new attributes.
17878 * config/arm/fa726te.md: Update with new attributes.
17880 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17882 * config/aarch64/aarch64.md
17883 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17884 (*movtf_aarch64): Likewise.
17885 * config/arm/arm.md
17886 (thumb1_movdi_insn): Use "multiple" for type where more than one
17887 instruction is used for a move.
17888 (*arm32_movhf): Likewise.
17889 (*thumb_movdf_insn): Likewise.
17891 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17893 * config/arm/types.md (type): Rename fcpys to fmov.
17894 * config/arm/vfp.md
17895 (*arm_movsi_vfp): Rename type fcpys as fmov.
17896 (*thumb2_movsi_vfp): Likewise
17897 (*movhf_vfp_neon): Likewise
17898 (*movhf_vfp): Likewise
17899 (*movsf_vfp): Likewise
17900 (*thumb2_movsf_vfp): Likewise
17901 (*movsfcc_vfp): Likewise
17902 (*thumb2_movsfcc_vfp): Likewise
17903 * config/aarch64/aarch64-simd.md
17904 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17905 * config/aarch64/aarch64.md
17906 (*movsi_aarch64): Replace type mov_reg with fmovs.
17907 (*movdi_aarch64): Likewise
17908 (*movsf_aarch64): Likewise
17909 (*movdf_aarch64): Likewise
17911 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17912 * config/arm/iwmmxt.md
17913 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17914 * config/arm/arm1020e.md: Update with new attributes.
17915 * config/arm/cortex-a15-neon.md: Update with new attributes.
17916 * config/arm/cortex-a5.md: Update with new attributes.
17917 * config/arm/cortex-a53.md: Update with new attributes.
17918 * config/arm/cortex-a7.md: Update with new attributes.
17919 * config/arm/cortex-a8-neon.md: Update with new attributes.
17920 * config/arm/cortex-a9.md: Update with new attributes.
17921 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17922 * config/arm/cortex-r4f.md: Update with new attributes.
17923 * config/arm/marvell-pj4.md: Update with new attributes.
17924 * config/arm/vfp11.md: Update with new attributes.
17926 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17928 * config/aarch64/aarch64.md
17929 (*madd<mode>): Fix type attribute.
17930 (*maddsi_uxtw): Likewise.
17931 (*msub<mode>): Likewise.
17932 (*msubsi_uxtw): Likewise.
17933 (<su_optab>maddsidi4): Likewise.
17934 (<su_optab>msubsidi4): Likewise.
17936 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17938 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17939 * config/arm/arm.md (core_cycles): Remove fdiv.
17940 * config/arm/vfp.md:
17941 (*sqrtsf2_vfp): Update for attribute changes.
17942 (*sqrtdf2_vfp): Likewise.
17943 * config/aarch64/aarch64.md:
17944 (sqrt<mode>2): Update for attribute changes.
17945 * config/arm/arm1020e.md: Update with new attributes.
17946 * config/arm/cortex-a15-neon.md: Update with new attributes.
17947 * config/arm/cortex-a5.md: Update with new attributes.
17948 * config/arm/cortex-a53.md: Update with new attributes.
17949 * config/arm/cortex-a7.md: Update with new attributes.
17950 * config/arm/cortex-a8-neon.md: Update with new attributes.
17951 * config/arm/cortex-a9.md: Update with new attributes.
17952 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17953 * config/arm/cortex-r4f.md: Update with new attributes.
17954 * config/arm/marvell-pj4.md: Update with new attributes.
17955 * config/arm/vfp11.md: Update with new attributes.
17957 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17959 * config/arm/types.md
17960 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17961 * config/aarch64/aarch64.md
17962 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17964 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17965 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17966 (float<GPI:mode><GPF:mode>2): Likewise.
17967 * config/arm/vfp.md
17968 (*truncsisf2_vfp): Update with new attributes.
17969 (*truncsidf2_vfp): Likewise.
17970 (fixuns_truncsfsi2): Likewise.
17971 (fixuns_truncdfsi2): Likewise.
17972 (*floatsisf2_vfp): Likewise.
17973 (*floatsidf2_vfp): Likewise.
17974 (floatunssisf2): Likewise.
17975 (floatunssidf2): Likewise.
17976 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17977 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17978 * config/arm/arm1020e.md: Update with new attributes.
17979 * config/arm/cortex-a15-neon.md: Update with new attributes.
17980 * config/arm/cortex-a5.md: Update with new attributes.
17981 * config/arm/cortex-a53.md: Update with new attributes.
17982 * config/arm/cortex-a7.md: Update with new attributes.
17983 * config/arm/cortex-a8-neon.md: Update with new attributes.
17984 * config/arm/cortex-a9.md: Update with new attributes.
17985 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17986 * config/arm/cortex-r4f.md: Update with new attributes.
17987 * config/arm/marvell-pj4.md: Update with new attributes.
17988 * config/arm/vfp11.md: Update with new attributes.
17990 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17992 * config/aarch64/arm_neon.h
17993 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17994 (vqtbx<1,2,3,4><q>_s8): Likewise.
17996 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17998 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17999 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18000 (add<mode>3): Add type attribute.
18001 (add<mode>3): Likewise.
18002 (usadd<mode>3): Likewise.
18003 (ssadd<mode>3): Likewise.
18004 (sub<mode>3): Likewise.
18005 (sub<mode>3): Likewise.
18006 (ussub<mode>3): Likewise.
18007 (sssub<mode>3): Likewise.
18008 (ssmulsa3): Likewise.
18009 (usmulusa3): Likewise.
18010 (arm_usatsihi): Likewise.
18011 * config/arm/vfp.md
18012 (*movdi_vfp): Add types for all instructions.
18013 (*movdi_vfp_cortexa8): Likewise.
18014 (*movhf_vfp_neon): Likewise.
18015 (*movhf_vfp): Likewise.
18016 (*movdf_vfp): Likewise.
18017 (*thumb2_movdf_vfp): Likewise.
18018 (*thumb2_movdfcc_vfp): Likewise.
18019 * config/arm/arm.md: Add type attribute to all insn patterns.
18020 (*thumb1_adddi3): Add type attribute.
18021 (*arm_adddi3): Likewise.
18022 (*adddi_sesidi_di): Likewise.
18023 (*adddi_zesidi_di): Likewise.
18024 (*thumb1_addsi3): Likewise.
18025 (addsi3_compare0): Likewise.
18026 (*addsi3_compare0_scratch): Likewise.
18027 (*compare_negsi_si): Likewise.
18028 (cmpsi2_addneg): Likewise.
18029 (*addsi3_carryin_<optab>): Likewise.
18030 (*addsi3_carryin_alt2_<optab>): Likewise.
18031 (*addsi3_carryin_clobercc_<optab>): Likewise.
18032 (*subsi3_carryin): Likewise.
18033 (*subsi3_carryin_const): Likewise.
18034 (*subsi3_carryin_compare): Likewise.
18035 (*subsi3_carryin_compare_const): Likewise.
18036 (*arm_subdi3): Likewise.
18037 (*thumb_subdi3): Likewise.
18038 (*subdi_di_zesidi): Likewise.
18039 (*subdi_di_sesidi): Likewise.
18040 (*subdi_zesidi_di): Likewise.
18041 (*subdi_sesidi_di): Likewise.
18042 (*subdi_zesidi_ze): Likewise.
18043 (thumb1_subsi3_insn): Likewise.
18044 (*arm_subsi3_insn): Likewise.
18045 (*anddi3_insn): Likewise.
18046 (*anddi_zesidi_di): Likewise.
18047 (*anddi_sesdi_di): Likewise.
18048 (*ne_zeroextracts): Likewise.
18049 (*ne_zeroextracts): Likewise.
18050 (*ite_ne_zeroextr): Likewise.
18051 (*ite_ne_zeroextr): Likewise.
18052 (*anddi_notdi_di): Likewise.
18053 (*anddi_notzesidi): Likewise.
18054 (*anddi_notsesidi): Likewise.
18055 (andsi_notsi_si): Likewise.
18056 (thumb1_bicsi3): Likewise.
18057 (*iordi3_insn): Likewise.
18058 (*iordi_zesidi_di): Likewise.
18059 (*iordi_sesidi_di): Likewise.
18060 (*thumb1_iorsi3_insn): Likewise.
18061 (*xordi3_insn): Likewise.
18062 (*xordi_zesidi_di): Likewise.
18063 (*xordi_sesidi_di): Likewise.
18064 (*arm_xorsi3): Likewise.
18065 (*andsi_iorsi3_no): Likewise.
18066 (*smax_0): Likewise.
18067 (*smax_m1): Likewise.
18068 (*arm_smax_insn): Likewise.
18069 (*smin_0): Likewise.
18070 (*arm_smin_insn): Likewise.
18071 (*arm_umaxsi3): Likewise.
18072 (*arm_uminsi3): Likewise.
18073 (*minmax_arithsi): Likewise.
18074 (*minmax_arithsi_): Likewise.
18075 (*satsi_<SAT:code>): Likewise.
18076 (arm_ashldi3_1bit): Likewise.
18077 (arm_ashrdi3_1bit): Likewise.
18078 (arm_lshrdi3_1bit): Likewise.
18079 (*arm_negdi2): Likewise.
18080 (*thumb1_negdi2): Likewise.
18081 (*arm_negsi2): Likewise.
18082 (*thumb1_negsi2): Likewise.
18083 (*negdi_extendsid): Likewise.
18084 (*negdi_zero_extend): Likewise.
18085 (*arm_abssi2): Likewise.
18086 (*thumb1_abssi2): Likewise.
18087 (*arm_neg_abssi2): Likewise.
18088 (*thumb1_neg_abss): Likewise.
18089 (one_cmpldi2): Likewise.
18090 (extend<mode>di2): Likewise.
18091 (*compareqi_eq0): Likewise.
18092 (*arm_extendhisi2addsi): Likewise.
18093 (*arm_movdi): Likewise.
18094 (*thumb1_movdi_insn): Likewise.
18095 (*arm_movt): Likewise.
18096 (*thumb1_movsi_insn): Likewise.
18097 (pic_add_dot_plus_four): Likewise.
18098 (pic_add_dot_plus_eight): Likewise.
18099 (tls_load_dot_plus_eight): Likewise.
18100 (*thumb1_movhi_insn): Likewise.
18101 (*thumb1_movsf_insn): Likewise.
18102 (*movdf_soft_insn): Likewise.
18103 (*thumb_movdf_insn): Likewise.
18104 (cbranchsi4_insn): Likewise.
18105 (cbranchsi4_scratch): Likewise.
18106 (*negated_cbranchsi4): Likewise.
18107 (*tbit_cbranch): Likewise.
18108 (*tlobits_cbranch): Likewise.
18109 (*tstsi3_cbranch): Likewise.
18110 (*cbranchne_decr1): Likewise.
18111 (*addsi3_cbranch): Likewise.
18112 (*addsi3_cbranch_scratch): Likewise.
18113 (*arm_cmpdi_insn): Likewise.
18114 (*arm_cmpdi_unsig): Likewise.
18115 (*arm_cmpdi_zero): Likewise.
18116 (*thumb_cmpdi_zero): Likewise.
18117 (*deleted_compare): Likewise.
18118 (*mov_scc): Likewise.
18119 (*mov_negscc): Likewise.
18120 (*mov_notscc): Likewise.
18121 (*cstoresi_eq0_thumb1_insn): Likewise.
18122 (cstoresi_nltu_thumb1): Likewise.
18123 (cstoresi_ltu_thu): Likewise.
18124 (thumb1_addsi3_addgeu): Likewise.
18125 (*arm_jump): Likewise.
18126 (*thumb_jump): Likewise.
18127 (*check_arch2): Likewise.
18128 (arm_casesi_internal): Likewise.
18129 (thumb1_casesi_dispatch): Likewise.
18130 (*arm_indirect_jump): Likewise.
18131 (*thumb1_indirect_jump): Likewise.
18133 (*and_scc): Likewise.
18134 (*ior_scc): Likewise.
18135 (*compare_scc): Likewise.
18136 (*cond_move): Likewise.
18137 (*cond_arith): Likewise.
18138 (*cond_sub): Likewise.
18139 (*cmp_ite0): Likewise.
18140 (*cmp_ite1): Likewise.
18141 (*cmp_and): Likewise.
18142 (*cmp_ior): Likewise.
18143 (*ior_scc_scc): Likewise.
18144 (*ior_scc_scc_cmp): Likewise.
18145 (*and_scc_scc): Likewise.
18146 (*and_scc_scc_cmp): Likewise.
18147 (*and_scc_scc_nod): Likewise.
18148 (*negscc): Likewise.
18149 (movcond_addsi): Likewise.
18150 (movcond): Likewise.
18151 (*ifcompare_plus_move): Likewise.
18152 (*if_plus_move): Likewise.
18153 (*ifcompare_move_plus): Likewise.
18154 (*if_move_plus): Likewise.
18155 (*ifcompare_arith_arith): Likewise.
18156 (*if_arith_arith): Likewise.
18157 (*ifcompare_arith_move): Likewise.
18158 (*if_arith_move): Likewise.
18159 (*ifcompare_move_arith): Likewise.
18160 (*if_move_arith): Likewise.
18161 (*ifcompare_move_not): Likewise.
18162 (*if_move_not): Likewise.
18163 (*ifcompare_not_move): Likewise.
18164 (*if_not_move): Likewise.
18165 (*ifcompare_shift_move): Likewise.
18166 (*if_shift_move): Likewise.
18167 (*ifcompare_move_shift): Likewise.
18168 (*if_move_shift): Likewise.
18169 (*ifcompare_shift_shift): Likewise.
18170 (*ifcompare_not_arith): Likewise.
18171 (*ifcompare_arith_not): Likewise.
18172 (*if_arith_not): Likewise.
18173 (*ifcompare_neg_move): Likewise.
18174 (*if_neg_move): Likewise.
18175 (*ifcompare_move_neg): Likewise.
18176 (*if_move_neg): Likewise.
18177 (prologue_thumb1_interwork): Likewise.
18178 (*cond_move_not): Likewise.
18179 (*sign_extract_onebit): Likewise.
18180 (*not_signextract_onebit): Likewise.
18181 (stack_tie): Likewise.
18182 (align_4): Likewise.
18183 (align_8): Likewise.
18184 (consttable_end): Likewise.
18185 (consttable_1): Likewise.
18186 (consttable_2): Likewise.
18187 (consttable_4): Likewise.
18188 (consttable_8): Likewise.
18189 (consttable_16): Likewise.
18190 (*thumb1_tablejump): Likewise.
18191 (prefetch): Likewise.
18192 (force_register_use): Likewise.
18193 (thumb_eh_return): Likewise.
18194 (load_tp_hard): Likewise.
18195 (load_tp_soft): Likewise.
18196 (tlscall): Likewise.
18197 (*arm_movtas_ze): Likewise.
18198 (*arm_rev): Likewise.
18199 (*arm_revsh): Likewise.
18200 (*arm_rev16): Likewise.
18201 * config/arm/thumb2.md
18202 (*thumb2_smaxsi3): Likewise.
18203 (*thumb2_sminsi3): Likewise.
18204 (*thumb32_umaxsi3): Likewise.
18205 (*thumb2_uminsi3): Likewise.
18206 (*thumb2_negdi2): Likewise.
18207 (*thumb2_abssi2): Likewise.
18208 (*thumb2_neg_abss): Likewise.
18209 (*thumb2_movsi_insn): Likewise.
18210 (tls_load_dot_plus_four): Likewise.
18211 (*thumb2_movhi_insn): Likewise.
18212 (*thumb2_mov_scc): Likewise.
18213 (*thumb2_mov_negs): Likewise.
18214 (*thumb2_mov_negs): Likewise.
18215 (*thumb2_mov_nots): Likewise.
18216 (*thumb2_mov_nots): Likewise.
18217 (*thumb2_movsicc_): Likewise.
18218 (*thumb2_movsfcc_soft_insn): Likewise.
18219 (*thumb2_indirect_jump): Likewise.
18220 (*thumb2_and_scc): Likewise.
18221 (*thumb2_ior_scc): Likewise.
18222 (*thumb2_ior_scc_strict_it): Likewise.
18223 (*thumb2_cond_move): Likewise.
18224 (*thumb2_cond_arith): Likewise.
18225 (*thumb2_cond_ari): Likewise.
18226 (*thumb2_cond_sub): Likewise.
18227 (*thumb2_negscc): Likewise.
18228 (*thumb2_movcond): Likewise.
18229 (thumb2_casesi_internal): Likewise.
18230 (thumb2_casesi_internal_pic): Likewise.
18231 (*thumb2_alusi3_short): Likewise.
18232 (*thumb2_mov<mode>_shortim): Likewise.
18233 (*thumb2_addsi_short): Likewise.
18234 (*thumb2_subsi_short): Likewise.
18235 (thumb2_addsi3_compare0): Likewise.
18236 (*thumb2_cbz): Likewise.
18237 (*thumb2_cbnz): Likewise.
18238 (*thumb2_one_cmplsi2_short): Likewise.
18239 (*thumb2_negsi2_short): Likewise.
18240 (*orsi_notsi_si): Likewise.
18241 * config/arm/arm1020e.md: Update with new attributes.
18242 * config/arm/arm1026ejs.md: Update with new attributes.
18243 * config/arm/arm1136jfs.md: Update with new attributes.
18244 * config/arm/arm926ejs.md: Update with new attributes.
18245 * config/arm/cortex-a15.md: Update with new attributes.
18246 * config/arm/cortex-a5.md: Update with new attributes.
18247 * config/arm/cortex-a53.md: Update with new attributes.
18248 * config/arm/cortex-a7.md: Update with new attributes.
18249 * config/arm/cortex-a8.md: Update with new attributes.
18250 * config/arm/cortex-a9.md: Update with new attributes.
18251 * config/arm/cortex-m4.md: Update with new attributes.
18252 * config/arm/cortex-r4.md: Update with new attributes.
18253 * config/arm/fa526.md: Update with new attributes.
18254 * config/arm/fa606te.md: Update with new attributes.
18255 * config/arm/fa626te.md: Update with new attributes.
18256 * config/arm/fa726te.md: Update with new attributes.
18258 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18260 * config/aarch64/aarch64-simd.md
18261 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18262 <vwx> iterator to ensure correct register choice.
18263 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18264 (aarch64_sqdmull_n<mode>): Likewise.
18265 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18266 * config/aarch64/arm_neon.h
18267 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18268 (vml<as><q>_n_<su>16): Likewise.
18269 (vml<as>l_high_lane<q>_<su>16): Likewise.
18270 (vml<as>l_high_n_<su>16): Likewise.
18271 (vml<as>l_lane<q>_<su>16): Likewise.
18272 (vml<as>l_n_<su>16): Likewise.
18273 (vmul<q>_lane<q>_<su>16): Likewise.
18274 (vmul<q>_n_<su>16): Likewise.
18275 (vmull_lane<q>_<su>16): Likewise.
18276 (vmull_n_<su>16): Likewise.
18277 (vmull_high_lane<q>_<su>16): Likewise.
18278 (vmull_high_n_<su>16): Likewise.
18279 (vqrdmulh<q>_n_s16): Likewise.
18281 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18283 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18284 have the correct lane parameter.
18286 2013-09-06 Richard Biener <rguenther@suse.de>
18288 * cfganal.c (control_dependences::~control_dependences):
18289 Properly free all of the vector.
18291 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18294 * config/i386/i386.c (ix86_conditional_register_usage):
18295 Proper initialize extended SSE registers.
18297 2013-09-06 Jan Hubicka <jh@suse.cz>
18299 PR tree-optimization/58311
18300 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18302 2013-09-06 Jan Hubicka <jh@suse.cz>
18304 * Makefile.in (tree-sra.o): Update dependencies.
18305 * tree-sra.c: Include ipa-utils.h
18306 (scan_function): Use recursive_call_p.
18307 (has_caller_p): New function.
18308 (cgraph_for_node_and_aliases): Count also callers of aliases.
18310 2013-09-06 Jan Hubicka <jh@suse.cz>
18312 PR middle-end/58094
18313 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18314 * tree-tailcall.c: Include ipa-utils.h.
18315 (find_tail_calls): Use it.
18316 * ipa-pure-const.c (check_call): Likewise.
18317 * ipa-utils.c (recursive_call_p): New function.
18318 * ipa-utils.h (recursive_call_p): Dclare.
18319 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18320 (symtab_semantically_equivalent_p): New function.
18321 * Makefile.in (tree-tailcall.o): Update dependencies.
18323 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18325 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18326 non-inlinable part.
18328 2013-09-06 Richard Biener <rguenther@suse.de>
18330 * lto-streamer.h (lto_global_var_decls): Remove.
18331 * Makefile.in (OBJS): Remove lto-symtab.o.
18332 (lto-symtab.o): Remove.
18333 (GTFILES): Remove lto-symtab.c
18334 * lto-symtab.c: Move to lto/
18336 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18338 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18339 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18340 (UNSPEC_FPINT_RINT): New constant definitions.
18341 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18342 definition with 2 attributes.
18343 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18344 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18347 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18349 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18350 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18351 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18352 attribute to "z196_alone".
18353 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18356 2013-09-06 Richard Biener <rguenther@suse.de>
18358 * basic-block.h (class control_dependences): New.
18359 * tree-ssa-dce.c (control_dependence_map): Remove.
18361 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18362 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18363 find_pdom, find_control_dependence, find_all_control_dependences):
18365 (mark_control_dependent_edges_necessary,
18366 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18367 tree_dce_done, perform_tree_ssa_dce): Adjust.
18368 * cfganal.c (set_control_dependence_map_bit,
18369 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18370 find_all_control_dependences): Move from tree-ssa-dce.c and
18371 implement as methods of control_dependences class.
18372 (control_dependences::control_dependences): New.
18373 (control_dependences::~control_dependences): Likewise.
18374 (control_dependences::get_edges_dependent_on): Likewise.
18375 (control_dependences::get_edge): Likewise.
18377 2013-09-04 Jan Hubicka <jh@suse.cz>
18379 * tree.c (types_same_for_odr): Drop overactive check.
18380 * ipa-devirt.c (hash_type_name): Likewise.
18382 2013-09-04 Jan Hubicka <jh@suse.cz>
18384 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18385 (analyze_functions): ... here.
18387 2013-09-04 Jan Hubicka <jh@suse.cz>
18389 PR middle-end/58201
18390 * cgraphunit.c (analyze_functions): Clear AUX fields
18391 after processing; initialize assembler name has.
18393 2013-09-05 Jeff Law <law@redhat.com>
18395 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18396 from thread_around_empty_block. Record threading path into PATH.
18397 Recurse if threading through the initial block is successful.
18398 (thread_across_edge): Corresponding changes to slightly simplify.
18400 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18402 * config/aarch64/aarch64.md
18403 (type): Remove frecpe, frecps, frecpx.
18404 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18405 fix to be a TARGET_SIMD instruction.
18406 (aarch64_frecps): Remove.
18407 * config/aarch64/aarch64-simd.md
18408 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18409 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18411 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18412 Sofiane Naci <sofiane.naci@arm.com>
18414 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18415 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18416 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18417 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18418 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18419 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18420 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18421 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18422 into "clz, "rbit". Rename "shift" to "shift_imm".
18423 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18424 changes. Update for attribute changes all occurrences of arlo_* and
18426 * config/arm/arm-fixed.md: Update for attribute changes
18427 all occurrences of arlo_* types.
18428 * config/arm/thumb2.md: Update for attribute changes all occurrences
18430 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18431 (cortexa7_older_only): Likewise.
18432 (cortexa7_younger): Likewise.
18433 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18434 (1020alu_shift_op): Likewise.
18435 (1020alu_shift_reg_op): Likewise.
18436 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18437 (alu_shift_op): Likewise.
18438 (alu_shift_reg_op): Likewise.
18439 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18440 (11_alu_shift_op): Likewise.
18441 (11_alu_shift_reg_op): Likewise.
18442 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18443 (9_alu_shift_reg_op): Likewise.
18444 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18446 (cortex_a15_alu_shift): Likewise.
18447 (cortex_a15_alu_shift_reg): Likewise.
18448 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18450 (cortex_a5_alu_shift): Likewise.
18451 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18453 (cortex_a53_alu_shift): Likewise.
18454 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18456 (cortex_a7_alu_reg): Likewise.
18457 (cortex_a7_alu_shift): Likewise.
18458 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18460 (cortex_a8_alu_shift): Likewise.
18461 (cortex_a8_alu_shift_reg): Likewise.
18462 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18463 (cortex_a9_dp_shift): Likewise.
18464 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18466 * config/arm/cortex-r4.md
18467 (cortex_r4_alu): Update for attribute changes.
18468 (cortex_r4_mov): Likewise.
18469 (cortex_r4_alu_shift_reg): Likewise.
18470 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18471 (526_alu_shift_op): Likewise.
18472 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18473 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18474 (626te_alu_shift_op): Likewise.
18475 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18476 (726te_alu_shift_op): Likewise.
18477 (726te_alu_shift_reg_op): Likewise.
18478 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18479 (mp626_alu_shift_op): Likewise.
18480 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18481 (pj4_alu_conds): Likewise.
18482 (pj4_shift): Likewise.
18483 (pj4_shift_conds): Likewise.
18484 (pj4_alu_shift): Likewise.
18485 (pj4_alu_shift_conds): Likewise.
18486 * config/aarch64/aarch64.md: Update for attribute change
18487 all occurrences of arlo_* and shift* types.
18489 2013-09-05 Mike Stump <mikestump@comcast.net>
18491 * tree.h: Move documentation for tree_function_decl to tree-core.h
18492 with the declaration.
18494 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18497 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18498 looking for widest mode.
18500 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18502 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18504 2013-09-05 Richard Biener <rguenther@suse.de>
18506 PR tree-optimization/58137
18507 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18508 Do not create vectors of pointers.
18509 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18510 types for the components of the vector initializer.
18511 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18512 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18514 2013-09-05 Martin Jambor <mjambor@suse.cz>
18516 * ipa-prop.c (remove_described_reference): Accept missing references,
18517 return false if that hppens, otherwise return true.
18518 (cgraph_node_for_jfunc): New function.
18519 (try_decrement_rdesc_refcount): Likewise.
18520 (try_make_edge_direct_simple_call): Use them.
18521 (ipa_edge_removal_hook): Remove references from rdescs.
18522 (ipa_edge_duplication_hook): Clone rdescs and their references
18523 when the new edge has the same caller as the old one.
18524 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18525 reference before removing any edges.
18527 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18529 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18531 * thumb2.md (thumb2_storewb_parisi): New pattern.
18533 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18535 * config/aarch64/aarch64-option-extensions.def: Add
18536 AARCH64_OPT_EXTENSION of 'crc'.
18537 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18538 (AARCH64_ISA_CRC): Ditto.
18539 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18540 description of the CRC extension.
18542 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18544 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18545 * config/rs6000/linux.h: Ditto.
18546 * alpha/linux.h: Ditto.
18547 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18548 no_c99_libc_has_function.
18549 * config/c6x/uclinux-elf.h: Ditto.
18550 * config/lm32/uclinux-elf.h: Ditto.
18551 * config/m68k/uclinux.h: Ditto.
18552 * config/moxie/uclinux.h: Ditto.
18553 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18554 (crisv32-*-linux*, cris-*-linux*): Ditto.
18555 * config/bfin/bfin.c: Include "tm_p.h".
18557 2013-09-05 Richard Biener <rguenther@suse.de>
18559 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18560 check for a definition without a basic-block.
18562 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18563 Sofiane Naci <sofiane.naci@arm.com>
18565 * config/aarch64/aarch64.md
18566 (*movti_aarch64): Rename r_2_f and f_2_r.
18567 (*movsf_aarch64): Likewise.
18568 (*movdf_aarch64): Likewise.
18569 (*movtf_aarch64): Likewise.
18570 (aarch64_movdi_<mode>low): Likewise.
18571 (aarch64_movdi_<mode>high): Likewise.
18572 (aarch64_mov<mode>high_di): Likewise.
18573 (aarch64_mov<mode>low_di): Likewise.
18574 (aarch64_movtilow_tilow): Likewise.
18575 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18576 values to config/arm/types.md
18577 (attribute "conds"): Update for attribute change.
18578 (anddi3_insn): Likewise.
18579 (iordi3_insn): Likewise.
18580 (xordi3_insn): Likewise.
18581 (one_cmpldi2): Likewise.
18582 * config/arm/types.md (type): Add Neon types.
18583 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18584 use "type" attribute.
18585 (movmisalign<mode>_neon_store): Likewise.
18586 (movmisalign<mode>_neon_load): Likewise.
18587 (vec_set<mode>_internal): Likewise.
18588 (vec_setv2di_internal): Likewise.
18589 (vec_extract<mode>): Likewise.
18590 (vec_extractv2di): Likewise.
18591 (add<mode>3_neon): Likewise.
18592 (adddi3_neon): Likewise.
18593 (sub<mode>3_neon): Likewise.
18594 (subdi3_neon): Likewise.
18595 (mul<mode>3_neon): Likewise.
18596 (mul<mode>3add<mode>_neon): Likewise.
18597 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18598 (fma<VCVTF:mode>4)): Likewise.
18599 (fma<VCVTF:mode>4_intrinsic): Likewise.
18600 (fmsub<VCVTF:mode>4)): Likewise.
18601 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18602 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18603 (ior<mode>3): Likewise.
18604 (and<mode>3): Likewise.
18605 (anddi3_neon): Likewise.
18606 (orn<mode>3_neon): Likewise.
18607 (orndi3_neon): Likewise.
18608 (bic<mode>3_neon): Likewise.
18609 (bicdi3_neon): Likewise.
18610 (xor<mode>3): Likewise.
18611 (one_cmpl<mode>2): Likewise.
18612 (abs<mode>2): Likewise.
18613 (neg<mode>2): Likewise.
18614 (umin<mode>3_neon): Likewise.
18615 (umax<mode>3_neon): Likewise.
18616 (smin<mode>3_neon): Likewise.
18617 (smax<mode>3_neon): Likewise.
18618 (vashl<mode>3): Likewise.
18619 (vashr<mode>3_imm): Likewise.
18620 (vlshr<mode>3_imm): Likewise.
18621 (ashl<mode>3_signed): Likewise.
18622 (ashl<mode>3_unsigned): Likewise.
18623 (neon_load_count): Likewise.
18624 (ashldi3_neon_noclobber): Likewise.
18625 (signed_shift_di3_neon): Likewise.
18626 (unsigned_shift_di3_neon): Likewise.
18627 (ashrdi3_neon_imm_noclobber): Likewise.
18628 (lshrdi3_neon_imm_noclobber): Likewise.
18629 (widen_ssum<mode>3): Likewise.
18630 (widen_usum<mode>3): Likewise.
18631 (quad_halves_<code>v4si): Likewise.
18632 (quad_halves_<code>v4sf): Likewise.
18633 (quad_halves_<code>v8hi): Likewise.
18634 (quad_halves_<code>v16qi): Likewise.
18635 (reduc_splus_v2di): Likewise.
18636 (neon_vpadd_internal<mode>): Likewise.
18637 (neon_vpsmin<mode>): Likewise.
18638 (neon_vpsmax<mode>): Likewise.
18639 (neon_vpumin<mode>): Likewise.
18640 (neon_vpumax<mode>): Likewise.
18641 (ss_add<mode>_neon): Likewise.
18642 (us_add<mode>_neon): Likewise.
18643 (ss_sub<mode>_neon): Likewise.
18644 (us_sub<mode>_neon): Likewise.
18645 (neon_vadd<mode>_unspec): Likewise.
18646 (neon_vaddl<mode>): Likewise.
18647 (neon_vaddw<mode>): Likewise.
18648 (neon_vhadd<mode>): Likewise.
18649 (neon_vqadd<mode>): Likewise.
18650 (neon_vaddhn<mode>): Likewise.
18651 (neon_vmul<mode>): Likewise.
18652 (neon_vmla<mode>): Likewise.
18653 (neon_vmlal<mode>): Likewise.
18654 (neon_vmls<mode>): Likewise.
18655 (neon_vmlsl<mode>): Likewise.
18656 (neon_vqdmulh<mode>): Likewise.
18657 (neon_vqdmlal<mode>): Likewise.
18658 (neon_vqdmlsl<mode>): Likewise.
18659 (neon_vmull<mode>): Likewise.
18660 (neon_vqdmull<mode>): Likewise.
18661 (neon_vsub<mode>_unspec): Likewise.
18662 (neon_vsubl<mode>): Likewise.
18663 (neon_vsubw<mode>): Likewise.
18664 (neon_vqsub<mode>): Likewise.
18665 (neon_vhsub<mode>): Likewise.
18666 (neon_vsubhn<mode>): Likewise.
18667 (neon_vceq<mode>): Likewise.
18668 (neon_vcge<mode>): Likewise.
18669 (neon_vcgeu<mode>): Likewise.
18670 (neon_vcgt<mode>): Likewise.
18671 (neon_vcgtu<mode>): Likewise.
18672 (neon_vcle<mode>): Likewise.
18673 (neon_vclt<mode>): Likewise.
18674 (neon_vcage<mode>): Likewise.
18675 (neon_vcagt<mode>): Likewise.
18676 (neon_vtst<mode>): Likewise.
18677 (neon_vabd<mode>): Likewise.
18678 (neon_vabdl<mode>): Likewise.
18679 (neon_vaba<mode>): Likewise.
18680 (neon_vabal<mode>): Likewise.
18681 (neon_vmax<mode>): Likewise.
18682 (neon_vmin<mode>): Likewise.
18683 (neon_vpaddl<mode>): Likewise.
18684 (neon_vpadal<mode>): Likewise.
18685 (neon_vpmax<mode>): Likewise.
18686 (neon_vpmin<mode>): Likewise.
18687 (neon_vrecps<mode>): Likewise.
18688 (neon_vrsqrts<mode>): Likewise.
18689 (neon_vqabs<mode>): Likewise.
18690 (neon_vqneg<mode>): Likewise.
18691 (neon_vcls<mode>): Likewise.
18692 (clz<mode>2): Likewise.
18693 (popcount<mode>2): Likewise.
18694 (neon_vrecpe): Likewise.
18695 (neon_vrsqrte): Likewise.
18696 (neon_vget_lane<mode>_sext_internal): Likewise.
18697 (neon_vget_lane<mode>_zext_internal): Likewise.
18698 (neon_vdup_n<mode>): Likewise.
18699 (neon_vdup_nv2di): Likewise.
18700 (neon_vdpu_lane<mode>_internal): Likewise.
18701 (neon_vswp<mode>): Likewise.
18702 (float<mode><V_cvtto>2): Likewise.
18703 (floatuns<mode><V_cvtto>2): Likewise.
18704 (fix_trunc<mode><V_cvtto>)2): Likewise
18705 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18706 (neon_vcvt<mode>): Likewise.
18707 (neon_vcvtv4sfv4hf): Likewise.
18708 (neon_vcvtv4hfv4sf): Likewise.
18709 (neon_vcvt_n<mode>): Likewise.
18710 (neon_vmovn<mode>): Likewise.
18711 (neon_vqmovn<mode>): Likewise.
18712 (neon_vqmovun<mode>): Likewise.
18713 (neon_vmovl<mode>): Likewise.
18714 (neon_vmul_lane<mode>): Likewise.
18715 (neon_vmull_lane<mode>): Likewise.
18716 (neon_vqdmull_lane<mode>): Likewise.
18717 (neon_vqdmulh_lane<mode>): Likewise.
18718 (neon_vmla_lane<mode>): Likewise.
18719 (neon_vmlal_lane<mode>): Likewise.
18720 (neon_vqdmlal_lane<mode>): Likewise.
18721 (neon_vmls_lane<mode>): Likewise.
18722 (neon_vmlsl_lane<mode>): Likewise.
18723 (neon_vqdmlsl_lane<mode>): Likewise.
18724 (neon_vext<mode>): Likewise.
18725 (neon_vrev64<mode>): Likewise.
18726 (neon_vrev32<mode>): Likewise.
18727 (neon_vrev16<mode>): Likewise.
18728 (neon_vbsl<mode>_internal): Likewise.
18729 (neon_vshl<mode>): Likewise.
18730 (neon_vqshl<mode>): Likewise.
18731 (neon_vshr_n<mode>): Likewise.
18732 (neon_vshrn_n<mode>): Likewise.
18733 (neon_vqshrn_n<mode>): Likewise.
18734 (neon_vqshrun_n<mode>): Likewise.
18735 (neon_vshl_n<mode>): Likewise.
18736 (neon_vqshl_n<mode>): Likewise.
18737 (neon_vqshlu_n<mode>): Likewise.
18738 (neon_vshll_n<mode>): Likewise.
18739 (neon_vsra_n<mode>): Likewise.
18740 (neon_vsri_n<mode>): Likewise.
18741 (neon_vsli_n<mode>): Likewise.
18742 (neon_vtbl1v8qi): Likewise.
18743 (neon_vtbl2v8qi): Likewise.
18744 (neon_vtbl3v8qi): Likewise.
18745 (neon_vtbl4v8qi): Likewise.
18746 (neon_vtbx1v8qi): Likewise.
18747 (neon_vtbx2v8qi): Likewise.
18748 (neon_vtbx3v8qi): Likewise.
18749 (neon_vtbx4v8qi): Likewise.
18750 (neon_vtrn<mode>_internal): Likewise.
18751 (neon_vzip<mode>_internal): Likewise.
18752 (neon_vuzp<mode>_internal): Likewise.
18753 (neon_vld1<mode>): Likewise.
18754 (neon_vld1_lane<mode>): Likewise.
18755 (neon_vld1_dup<mode>): Likewise.
18756 (neon_vld1_dupv2di): Likewise.
18757 (neon_vst1<mode>): Likewise.
18758 (neon_vst1_lane<mode>): Likewise.
18759 (neon_vld2<mode>): Likewise.
18760 (neon_vld2_lane<mode>): Likewise.
18761 (neon_vld2_dup<mode>): Likewise.
18762 (neon_vst2<mode>): Likewise.
18763 (neon_vst2_lane<mode>): Likewise.
18764 (neon_vld3<mode>): Likewise.
18765 (neon_vld3qa<mode>): Likewise.
18766 (neon_vld3qb<mode>): Likewise.
18767 (neon_vld3_lane<mode>): Likewise.
18768 (neon_vld3_dup<mode>): Likewise.
18769 (neon_vst3<mode>): Likewise.
18770 (neon_vst3qa<mode>): Likewise.
18771 (neon_vst3qb<mode>): Likewise.
18772 (neon_vst3_lane<mode>): Likewise.
18773 (neon_vld4<mode>): Likewise.
18774 (neon_vld4qa<mode>): Likewise.
18775 (neon_vld4qb<mode>): Likewise.
18776 (neon_vld4_lane<mode>): Likewise.
18777 (neon_vld4_dup<mode>): Likewise.
18778 (neon_vst4<mode>): Likewise.
18779 (neon_vst4qa<mode>): Likewise.
18780 (neon_vst4qb<mode>): Likewise.
18781 (neon_vst4_lane<mode>): Likewise.
18782 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18783 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18784 (neon_vec_<US>mult_lo_<mode>): Likewise.
18785 (neon_vec_<US>mult_hi_<mode>): Likewise.
18786 (neon_vec_<US>shiftl_<mode>): Likewise.
18787 (neon_unpack<US>_<mode>): Likewise.
18788 (neon_vec_<US>mult_<mode>): Likewise.
18789 (vec_pack_trunc_<mode>): Likewise.
18790 (neon_vec_pack_trunk_<mode>): Likewise.
18791 (neon_vabd<mode>_2): Likewise.
18792 (neon_vabd<mode>_3): Likewise.
18793 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18794 (thumb2_movsi_vfp): Likewise.
18795 (movdi_vfp): Likewise.
18796 (movdi_vfp_cortexa8): Likewise.
18797 (movhf_vfp_neon): Likewise.
18798 (movhf_vfp): Likewiwse.
18799 (movsf_vfp): Likewiwse.
18800 (thumb2_movsf_vfp): Likewiwse.
18801 (movdf_vfp): Likewise.
18802 (thumb2_movdf_vfp): Likewise.
18803 (movsfcc_vfp): Likewise.
18804 (thumb2_movsfcc_vfp): Likewise.
18805 (movdfcc_vfp): Likewise.
18806 (thumb2_movdfcc_vfp): Likewise.
18807 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18808 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18809 (v10_v2c): Likewise.
18810 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18812 (cortex_a15_neon_int_2): Likewise.
18813 (cortex_a15_neon_int_3): Likewise.
18814 (cortex_a15_neon_int_4): Likewise.
18815 (cortex_a15_neon_int_5): Likewise.
18816 (cortex_a15_neon_vqneg_vqabs): Likewise.
18817 (cortex_a15_neon_vmov): Likewise.
18818 (cortex_a15_neon_vaba): Likewise.
18819 (cortex_a15_neon_vaba_qqq): Likewise.
18820 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18821 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18822 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18823 scalar_64_32_long_scalar): Likewise.
18824 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18825 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18826 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18827 lotype_qdd_64_32_long): Likewise.
18828 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18829 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18830 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18831 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18832 (cortex_a15_neon_shift_1): Likewise.
18833 (cortex_a15_neon_shift_2): Likewise.
18834 (cortex_a15_neon_shift_3): Likewise.
18835 (cortex_a15_neon_vshl_ddd): Likewise.
18836 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18837 (cortex_a15_neon_vsra_vrsra): Likewise.
18838 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18839 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18840 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18841 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18842 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18843 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18844 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18845 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18846 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18847 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18848 (cortex_a15_neon_bp_simple): Likewise.
18849 (cortex_a15_neon_bp_2cycle): Likewise.
18850 (cortex_a15_neon_bp_3cycle): Likewise.
18851 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18852 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18853 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18854 (cortex_a15_neon_vld2_4_regs): Likewise.
18855 (cortex_a15_neon_vld3_vld4): Likewise.
18856 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18857 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18858 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18859 (cortex_a15_neon_vst3_vst4): Likewise.
18860 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18861 (cortex_a15_neon_vld3_vld4_lane" 10
18862 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18863 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18864 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18865 (cortex_a15_neon_ldm_2): Likewise.0
18866 (cortex_a15_neon_stm_2): Likewise.
18867 (cortex_a15_neon_mcr): Likewise.
18868 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18869 (cortex_a15_neon_mrc): Likewise.
18870 (cortex_a15_neon_mrrc): Likewise.
18871 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18873 (cortex_a15_alu_shift): Likewise.
18874 (cortex_a15_alu_shift_reg): Likewise.
18875 (cortex_a15_mult32): Likewise.
18876 (cortex_a15_mult64): Likewise.
18877 (cortex_a15_block): Likewise.
18878 (cortex_a15_branch): Likewise.
18879 (cortex_a15_load1): Likewise.
18880 (cortex_a15_load3): Likewise.
18881 (cortex_a15_store1): Likewise.
18882 (cortex_a15_store3): Likewise.
18883 (cortex_a15_call): Likewise.
18884 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18885 (cortex_a5_f2r): Likewise.
18886 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18888 (cortex_a53_f2r): Likewise.
18889 * config/arm/cortex-a7.md
18890 (cortex_a7_branch): Update for attribute change.
18891 (cortex_a7_call): Likewise.
18892 (cortex_a7_alu_imm): Likewise.
18893 (cortex_a7_alu_reg): Likewise.
18894 (cortex_a7_alu_shift): Likewise.
18895 (cortex_a7_mul): Likewise.
18896 (cortex_a7_load1): Likewise.
18897 (cortex_a7_store1): Likewise.
18898 (cortex_a7_load2): Likewise.
18899 (cortex_a7_store2): Likewise.
18900 (cortex_a7_load3): Likewise.
18901 (cortex_a7_store3): Likewise.
18902 (cortex_a7_load4): Likewise.
18903 (cortex_a7_store4): Likewise.
18904 (cortex_a7_fpalu): Likewise.
18905 (cortex_a7_fconst): Likewise.
18906 (cortex_a7_fpmuls): Likewise.
18907 (cortex_a7_neon_mul): Likewise.
18908 (cortex_a7_fpmacs): Likewise.
18909 (cortex_a7_neon_mla: Likewise.
18910 (cortex_a7_fpmuld: Likewise.
18911 (cortex_a7_fpmacd: Likewise.
18912 (cortex_a7_fpfmad: Likewise.
18913 (cortex_a7_fdivs: Likewise.
18914 (cortex_a7_fdivd: Likewise.
18915 (cortex_a7_r2f: Likewise.
18916 (cortex_a7_f2r: Likewise.
18917 (cortex_a7_f_flags: Likewise.
18918 (cortex_a7_f_loads: Likewise.
18919 (cortex_a7_f_loadd: Likewise.
18920 (cortex_a7_f_stores: Likewise.
18921 (cortex_a7_f_stored: Likewise.
18922 (cortex_a7_neon): Likewise.
18923 * config/arm/cortex-a8-neon.md
18924 (cortex_a8_neon_mrc): Update for attribute change.
18925 (cortex_a8_neon_mrrc): Likewise.
18926 (cortex_a8_neon_int_1): Likewise.
18927 (cortex_a8_neon_int_2): Likewise.
18928 (cortex_a8_neon_int_3): Likewise.
18929 (cortex_a8_neon_int_4): Likewise.
18930 (cortex_a8_neon_int_5): Likewise.
18931 (cortex_a8_neon_vqneg_vqabs): Likewise.
18932 (cortex_a8_neon_vmov): Likewise.
18933 (cortex_a8_neon_vaba): Likewise.
18934 (cortex_a8_neon_vaba_qqq): Likewise.
18935 (cortex_a8_neon_vsma): Likewise.
18936 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18937 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18938 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18939 long_scalar): Likewise.
18940 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18941 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18942 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18943 long_scalar_qdd_64_32_long): Likewise.
18944 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18945 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18946 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18947 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18948 (cortex_a8_neon_shift_1): Likewise.
18949 (cortex_a8_neon_shift_2): Likewise.
18950 (cortex_a8_neon_shift_3): Likewise.
18951 (cortex_a8_neon_vshl_ddd): Likewise.
18952 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18953 (cortex_a8_neon_vsra_vrsra): Likewise.
18954 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18955 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18956 (cortex_a8_neon_fp_vsum): Likewise.
18957 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18958 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18959 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18960 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18961 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18962 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18963 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18964 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18965 (cortex_a8_neon_bp_simple): Likewise.
18966 (cortex_a8_neon_bp_2cycle): Likewise.
18967 (cortex_a8_neon_bp_3cycle): Likewise.
18968 (cortex_a8_neon_ldr): Likewise.
18969 (cortex_a8_neon_str): Likewise.
18970 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18971 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18972 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18973 (cortex_a8_neon_vld2_4_regs): Likewise.
18974 (cortex_a8_neon_vld3_vld4): Likewise.
18975 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18976 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18977 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18978 (cortex_a8_neon_vst3_vst4): Likewise.
18979 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18980 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18981 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18982 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18983 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18984 (cortex_a8_neon_mcr): Likewise.
18985 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18986 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18987 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18989 (ca9_neon_mrrc): Likewise.
18990 (cortex_a9_neon_int_1): Likewise.
18991 (cortex_a9_neon_int_2): Likewise.
18992 (cortex_a9_neon_int_3): Likewise.
18993 (cortex_a9_neon_int_4): Likewise.
18994 (cortex_a9_neon_int_5): Likewise.
18995 (cortex_a9_neon_vqneg_vqabs): Likewise.
18996 (cortex_a9_neon_vmov): Likewise.
18997 (cortex_a9_neon_vaba): Likewise.
18998 (cortex_a9_neon_vaba_qqq): Likewise.
18999 (cortex_a9_neon_vsma): Likewise.
19000 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19001 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19002 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19003 long_scalar): Likewise.
19004 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19005 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19006 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19007 long_scalar_qdd_64_32_long): Likewise.
19008 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19009 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19010 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19011 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19012 (cortex_a9_neon_shift_1): Likewise.
19013 (cortex_a9_neon_shift_2): Likewise.
19014 (cortex_a9_neon_shift_3): Likewise.
19015 (cortex_a9_neon_vshl_ddd): Likewise.
19016 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19017 (cortex_a9_neon_vsra_vrsra): Likewise.
19018 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19019 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19020 (cortex_a9_neon_fp_vsum): Likewise.
19021 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19022 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19023 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19024 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19025 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19026 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19027 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19028 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19029 (cortex_a9_neon_bp_simple): Likewise.
19030 (cortex_a9_neon_bp_2cycle): Likewise.
19031 (cortex_a9_neon_bp_3cycle): Likewise.
19032 (cortex_a9_neon_ldr): Likewise.
19033 (cortex_a9_neon_str): Likewise.
19034 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19035 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19036 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19037 (cortex_a9_neon_vld2_4_regs): Likewise.
19038 (cortex_a9_neon_vld3_vld4): Likewise.
19039 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19040 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19041 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19042 (cortex_a9_neon_vst3_vst4): Likewise.
19043 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19044 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19045 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19046 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19047 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19048 (cortex_a9_neon_mcr): Likewise.
19049 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19050 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19051 (cortex_a9_fps): Likewise.
19052 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19054 (cortex_m4_fmuls): Likewise.
19055 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19057 (cortex_r4_mrc): Likewise.
19058 * config/arm/iterators.md: Update comment referring to neon_type.
19059 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19060 (iwmmxt_movsi_insn): Likewise.
19061 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19063 (pj4_core_to_vfp): Likewise.
19064 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19066 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19067 (vfp_fstore): Likewise.
19068 * doc/md.texi: Change references to neon_type to refer to type.
19070 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19072 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19074 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19076 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19077 lglobl if not weak.
19079 2013-09-04 Easwaran Raman <eraman@google.com>
19081 PR middle-end/57370
19082 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19083 (build_and_add_sum): Use it.
19084 (appears_later_in_bb): Simplify code.
19086 2013-09-04 Teresa Johnson <tejohnson@google.com>
19088 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19090 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19092 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19094 2013-09-04 Jan Hubicka <jh@suse.cz>
19096 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19097 * ipa-devirt.c: Include diganostic.h
19098 (odr_type_d): Add types and types_set.
19099 (hash_type_name): Work for types with vtables during LTO.
19100 (odr_hasher::remove): Fix comment; destroy types_set.
19101 (add_type_duplicate): New function,
19102 (get_odr_type): Use it.
19103 (dump_type_inheritance_graph): Dump type duplicates.
19104 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19106 * tree.c (types_same_for_odr): Give exact answers on types with
19109 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19111 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19112 explaining their differences.
19114 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19116 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19118 2013-09-03 Jeff Law <law@redhat.com>
19120 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19121 when not threading through a joiner block. Pass joiner/no joiner
19122 state to register_jump_thread.
19123 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19124 state from argument rather than implying on path length.
19125 Dump the entire jump thread path into debugging dump.
19126 * tree-flow.h (register_jump_thread): Update prototype.
19128 2013-08-29 Xinliang David Li <davidxl@google.com>
19130 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19131 Remove a trivial gcc_assert.
19133 2013-08-29 Xinliang David Li <davidxl@google.com>
19135 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19136 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19137 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19138 Delay base decl alignment adjustment.
19139 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19140 * tree-vectorizer.h: New data structure.
19141 (set_dr_misalignment): New function.
19142 (dr_misalignment): Ditto.
19143 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19144 (vectorizable_load): Ditto.
19145 (ensure_base_align): New function.
19146 (vectorize_loops): Add dbg_cnt support.
19147 (execute_vect_slp): Ditto.
19148 * dbgcnt.def: New debug counter.
19149 * Makefile: New dependency.
19151 2013-09-03 Meador Inge <meadori@codesourcery.com>
19155 2013-08-30 Meador Inge <meadori@codesourcery.com>
19157 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19159 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19161 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19162 function descriptor.
19164 2013-09-03 Richard Biener <rguenther@suse.de>
19166 * tree-affine.c (add_elt_to_tree): Fix association issue,
19167 avoid useless converts and make sure to always return a
19168 properly typed result.
19170 2013-09-03 Richard Biener <rguenther@suse.de>
19172 PR middle-end/57656
19173 * fold-const.c (negate_expr_p): Fix division case.
19174 (negate_expr): Likewise.
19176 2013-09-03 Richard Biener <rguenther@suse.de>
19179 * tree-streamer-out.c: Include tm.h.
19180 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19182 2013-09-03 Jan Hubicka <jh@suse.cz>
19184 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19186 2013-09-03 Alan Modra <amodra@gmail.com>
19188 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19189 multilibs to big-endian target and vice versa.
19190 * config/rs6000/t-linux64: Use := assignment on all vars.
19191 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19192 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19193 * config/rs6000/t-linux64le: New file.
19194 * config/rs6000/t-linux64bele: New file.
19195 * config/rs6000/t-linux64lebe: New file.
19197 2013-09-02 Jan Hubicka <jh@suse.cz>
19199 * ipa-inline-transform.c (inline_transform): Do not
19200 optimize_inline_calls when not optimizing.
19202 2013-09-02 Jan Hubicka <jh@suse.cz>
19204 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19205 duplicated nodes for assembler names.
19206 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19207 hard registers from assembler name hash.
19209 2013-09-02 Jan Hubicka <jh@suse.cz>
19211 * ipa-split.c (execute_split_functions): Split externally visible
19212 functions called once.
19214 2013-09-02 Martin Jambor <mjambor@suse.cz>
19217 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19218 linked list. When finding the correct duplicate, also consider also
19219 the caller in additon to its inlined_to node.
19221 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19223 * config/aarch64/aarch64-simd-builtins.def
19224 (dup_lane_scalar): Remove.
19225 * config/aarch64/aarch64-simd.md
19226 (aarch64_simd_dup): Add 'w->w' alternative.
19227 (aarch64_dup_lane<mode>): Allow for VALL.
19228 (aarch64_dup_lane_scalar<mode>): Remove.
19229 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19230 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19231 (aarch64_get_lane_unsigned<mode>): Likewise.
19232 (aarch64_get_lane<mode>): Likewise.
19233 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19234 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19235 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19236 (VCON): Change container of V2SF.
19237 (vswap_width_name): Likewise.
19238 * config/aarch64/arm_neon.h
19239 (__aarch64_vdup_lane_any): New.
19240 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19241 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19242 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19244 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19246 PR middle-end/56382
19247 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19248 the source or the destination is a single hard register.
19250 2013-09-02 Richard Biener <rguenther@suse.de>
19252 PR middle-end/57511
19253 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19256 2013-09-02 Richard Biener <rguenther@suse.de>
19258 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19259 arithmetic to sizetype.
19261 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19263 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19264 Find auto-increment use both before and after candidate.
19266 2013-09-02 Marek Polacek <polacek@redhat.com>
19268 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19270 2013-09-01 Jan Hubicka <jh@suse.cz>
19272 * Makefile.in: Add ipa-profile.o
19273 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19274 * cgraph.c (struct cgraph_propagate_frequency_data,
19275 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19276 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19277 * cgraph.h (cgraph_propagate_frequency): Remove.
19278 * ipa-inline-analysis.c: Include ipa-utils.h;
19279 drop duplicated cfgloop.h.
19280 (inline_update_callee_summaries): Update.
19281 * ipa-profile.c: New file.
19282 * ipa-utils.h (ipa_propagate_frequency): Declare.
19283 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19284 data-streamer.h, value-prof.h.
19285 (symtab_remove_unreachable_nodes): Update profile.
19286 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19287 account_time_size, cmp_counts, dump_histogram,
19288 ipa_profile_generate_summary, ipa_profile_write_summary,
19289 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19290 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19291 Move to ipa-profile.c.
19293 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19295 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19297 2013-09-01 Jan Hubicka <jh@suse.cz>
19299 * common.opt (fdevirtualize-speculatively): New function.
19300 * invoke.texi (fdevirtualize-speculatively): Document.
19301 * ipa-devirt.c: Include ipa-inline.h
19302 (likely_target_p): New function.
19303 (ipa_devirt): New function.
19304 (gate_ipa_devirt): New function.
19305 (pass_data_ipa_devirt): New static var.
19306 (pass_ipa_devirt): Likewise.
19307 (make_pass_ipa_devirt): New function.
19308 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19309 (common_handle_option): Disable devirtualization when
19310 value range profiling is available.
19311 * passes.def (pass_ipa_devirt): Add.
19312 * timever.def (TV_IPA_DEVIRT): New timevar.
19313 * tree-pass.h (make_pass_ipa_devirt):
19315 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19317 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19318 include sanitize(undefined).
19320 2013-08-31 Diego Novillo <dnovillo@google.com>
19322 * Makefile.in (TREE_CORE_H): Define.
19324 (GTFILES): Add tree-core.h.
19325 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19327 * tree-core.h: New file.
19328 Move all data structures, enum, typedefs, global
19329 declarations and constants from ...
19330 * tree.h: ... here.
19332 2013-08-31 Jan Hubicka <jh@suse.cz>
19334 * bulitins.c (expand_builtin): Do not early exit for gcov
19335 instrumented functions.
19337 2013-08-31 Marek Polacek <polacek@redhat.com>
19339 * ubsan.c: Include tm_p.h.
19341 2013-08-31 Jan Hubicka <jh@suse.cz>
19343 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19346 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19347 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19348 * tree-cfg.c (verify_gimple_label): ... here.
19349 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19350 (ipa_merge_profiles): New function.
19351 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19352 (lto_input_function_body): Likewise.
19353 * ipa-utils.h (ipa_merge_profiles): Declare.
19354 * lto-streamer.h (lto_input_function_body): Update prototype.
19355 (emit_label_in_global_context_p): Remove.
19356 * lto-symtab.c: Include ipa-utils.h
19357 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19359 2013-08-31 Jan Hubicka <jh@suse.cz>
19361 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19363 2013-08-31 Jan Hubicka <jh@suse.cz>
19365 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19367 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19369 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19370 "cmp" RTX before signed_comparison_operator check to account
19371 for "code" changes.
19373 2013-08-30 Jan Hubicka <jh@suse.cz>
19375 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19376 (detect_type_change_1): Rename to ...
19377 (detect_type_change): ... this one; early return on non-polymorphic
19379 (detect_type_change_ssa): Add comp_type parameter; update
19380 use of detect_type_change.
19381 (compute_complex_assign_jump_func): Add param_type parameter;
19382 update use of detect_type_change_ssa.
19383 (compute_complex_ancestor_jump_func): Likewise.
19384 (ipa_get_callee_param_type): New function.
19385 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19386 update calls to the jump function computation functions.
19388 2013-08-30 Teresa Johnson <tejohnson@google.com>
19389 Steven Bosscher <steven@gcc.gnu.org>
19391 * cfgrtl.c (fixup_new_cold_bb): New routine.
19392 (commit_edge_insertions): Invoke fixup_partitions.
19393 (find_partition_fixes): New routine.
19394 (fixup_partitions): Ditto.
19395 (verify_hot_cold_block_grouping): Update comments.
19396 (rtl_verify_edges): Invoke find_partition_fixes.
19397 (rtl_verify_bb_pointers): Update comments.
19398 (rtl_verify_bb_layout): Ditto.
19399 * basic-block.h (probably_never_executed_edge_p): Declare.
19400 (fixup_partitions): Ditto.
19401 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19402 * bb-reorder.c (sanitize_hot_paths): New function.
19403 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19404 sanitize_hot_paths.
19405 * predict.c (probably_never_executed_edge_p): New routine.
19406 * cfg.c (check_bb_profile): Add partition insanity warnings.
19408 2013-08-30 Meador Inge <meadori@codesourcery.com>
19410 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19412 2013-08-30 Marek Polacek <polacek@redhat.com>
19414 * Makefile.in (ubsan.o): Add.
19415 (c-family/c-ubsan.o): Add.
19416 (builtins.o): Add ubsan.h dependency.
19417 * ubsan.h: New file.
19418 * ubsan.c: New file.
19419 * common.opt: Add -fsanitize=undefined option.
19420 (flag_sanitize): Add variable.
19421 (fsanitize=): Add option. Add Driver.
19422 (fsanitize=thread): Remove option.
19423 (fsanitize=address): Likewise.
19424 (static-libubsan): New option.
19425 * doc/invoke.texi: Document the new flag and -static-libubsan.
19426 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19427 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19428 * builtin-attrs.def (ATTR_COLD): Define.
19429 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19430 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19431 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19432 * flag-types.h (sanitize_code): New enum.
19433 * opts.c (common_handle_option): Parse command line arguments
19434 of -fsanitize=. Add -fsanitize=unreachable option.
19435 * varasm.c (get_variable_section): Adjust.
19436 (assemble_noswitch_variable): Likewise.
19437 (assemble_variable): Likewise.
19438 (output_constant_def_contents): Likewise.
19439 (categorize_decl_for_section): Likewise.
19440 (place_block_symbol): Likewise.
19441 (output_object_block): Likewise.
19442 * builtins.def: Likewise.
19443 * toplev.c (compile_file): Likewise.
19444 (process_options): Likewise.
19445 * cppbuiltin.c: Likewise.
19446 * tsan.c (tsan_pass): Likewise.
19447 (tsan_gate): Likewise.
19448 (tsan_gate_O0): Likewise.
19449 * cfgexpand.c (partition_stack_vars): Likewise.
19450 (expand_stack_vars): Likewise.
19451 (defer_stack_allocation): Likewise.
19452 (expand_used_vars): Likewise.
19453 * cfgcleanup.c (old_insns_match_p): Likewise.
19454 * asan.c (asan_finish_file): Likewise.
19455 (asan_instrument): Likewise.
19456 (gate_asan): Likewise.
19457 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19458 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19459 (asan_global_struct): Use pointer_sized_int_node instead
19460 calling build_nonstandard_integer_type.
19461 (initialize_sanitizer_builtins): Likewise.
19462 (asan_finish_file): Likewise.
19463 * gcc.c: Document %{%:function(args):X}.
19464 (static_spec_functions): Add sanitize.
19465 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19466 store funcval != NULL there.
19467 (do_spec_1): Adjust handle_spec_function caller.
19468 (handle_braces): Allow %:function(args) as condition.
19469 (sanitize_spec_function): New function.
19470 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19471 (LIBUBSAN_SPEC): Likewise.
19472 (LIBUBSAN_EARLY_SPEC): Likewise.
19473 (SANITIZER_SPEC): Handle libubsan.
19474 (SANITIZER_EARLY_SPEC): Likewise.
19475 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19476 instead of fsanitize=address.
19477 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19478 instead of fsanitize=address*.
19479 * builtins.c: Include ubsan.h.
19480 (fold_builtin_0): Instrument __builtin_unreachable.
19481 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19482 instead of flag_asan.
19483 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19484 (pointer_sized_int_node): Define.
19485 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19487 2013-08-30 Mike Stump <mikestump@comcast.net>
19489 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19492 2013-08-29 Jan Hubicka <jh@suse.cz>
19494 * cgraph.c (cgraph_function_body_availability): Handle weakref
19496 * passes.def: Remove pass_fixup_cfg.
19497 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19498 track when we need to remove functions.
19499 (gate_ipa_inline): Execute inlining always; add comment why.
19500 (pass_data_ipa_inline): Remove TODO_remove_functions.
19501 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19502 do not produce summaries.
19503 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19504 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19505 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19506 constant pool and vtable.
19508 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19510 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19511 New arm_neon.h's internal macros to specify 64-bit constants.
19512 Avoid using stdint.h's macros.
19514 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19516 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19517 before applying REG_P.
19519 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19521 PR tree-optimization/58277
19522 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19523 after seeing too many stmts with vdef in between dombb and current
19524 bb, invalidate everything.
19526 2013-08-30 Richard Biener <rguenther@suse.de>
19528 * fold-const.c (fold_single_bit_test): Fix overflow test.
19530 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19532 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19533 and which can live in a register, always retrieve the value on entry.
19534 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19535 passed by invisible reference specially.
19536 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19537 (vt_add_function_parameter): Correctly deal with a parameter passed by
19538 invisible reference.
19540 2013-08-30 Jan Hubicka <jh@suse.cz>
19542 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19544 2013-08-30 Richard Biener <rguenther@suse.de>
19546 PR tree-optimization/58228
19547 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19548 allow invariant loads in nested loop vectorization.
19550 2013-08-30 Richard Biener <rguenther@suse.de>
19552 PR tree-optimization/58223
19553 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19554 (has_anti_or_output_dependence): ... this and adjust to also
19555 look for output dependences.
19556 (mark_nodes_having_upstream_mem_writes): Adjust.
19557 (rdg_flag_uses): Likewise.
19559 2013-08-30 Richard Biener <rguenther@suse.de>
19561 PR tree-optimization/58010
19562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19563 assert that we have a loop-closed PHI.
19565 2013-08-29 Jan Hubicka <jh@suse.cz>
19567 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19568 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19569 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19570 (lto_free_function_in_decl_state_for_node): New function.
19572 2013-08-29 Xinliang David Li <davidxl@google.com>
19574 * loop-unroll.c (report_unroll_peel): Minor message change.
19575 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19576 Emit alignment peeling message with default -fopt-info.
19577 (vect_loop_versioning): Emit loop version info message.
19578 * tree-vectorizer.c (vectorize_loops): Minor message change.
19579 (execute_vect_slp): Ditto.
19581 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19583 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19584 of the clone from the DECL_NAME of the original function.
19586 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19588 * passes.c (register_pass): Add overload.
19589 * tree-pass.h (register_pass): Forward declare it. Add comment.
19591 2013-08-29 Jan Hubicka <jh@suse.cz>
19593 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19594 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19595 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19596 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19597 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19598 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19599 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19600 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19602 2013-08-29 Teresa Johnson <tejohnson@google.com>
19604 * dumpfile.c (dump_loc): Output column number.
19605 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19606 * doc/invoke.texi: Document optall -fopt-info flag.
19607 * profile.c (read_profile_edge_counts): Use new dump framework.
19608 (compute_branch_probabilities): Ditto.
19609 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19610 when pass not in any opt group.
19611 * pass_manager.h (pass_manager::get_pass_profile): New method.
19612 * value-prof.c (check_counter): Use new dump framework.
19613 (check_ic_target): Ditto.
19614 * coverage.c (get_coverage_counts): Ditto.
19615 (coverage_init): Setup new dump framework.
19617 2013-08-29 Richard Biener <rguenther@suse.de>
19619 PR tree-optimization/58246
19620 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19621 handle the dominance check inside a basic-block.
19623 2013-08-29 Richard Biener <rguenther@suse.de>
19625 PR middle-end/57287
19626 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19627 of default defs that appear in abnormal PHI nodes.
19629 2013-08-29 Richard Biener <rguenther@suse.de>
19631 PR tree-optimization/57685
19632 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19633 single-use operands to avoid exponential complexity.
19635 2013-08-28 Dehao Chen <dehao@google.com>
19637 * ipa-inline.c (edge_badness): Fix integer underflow.
19639 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19641 * gtm-builtins.def (_ITM_free): Declare leaf.
19643 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19646 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19647 (*tls_local_dynamic_base_64_largepic): Likewise.
19648 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19649 Remove predicate from call operand.
19650 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19651 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19653 2013-08-28 Jeff Law <law@redhat.com>
19655 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19656 checks for the number of predecessors and successors allowed.
19657 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19658 which require copying a joiner block if there is a request which
19659 is a subpath that requires no joiner block copying.
19661 2013-08-28 Jan Hubicka <jh@suse.cz>
19663 * lto-streamer-out.c (DFS_write_tree_body): Drop
19664 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19665 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19666 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19667 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19668 Do not read DECL_ERROR_ISSUED.
19669 (unpack_ts_decl_with_vis_value_fields): Do not read
19671 (lto_input_ts_binfo_tree_pointers): Do not read
19672 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19673 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19674 write DECL_ERROR_ISSUED..
19675 (pack_ts_decl_with_vis_value_fields): Do not write
19677 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19678 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19679 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19680 * tree.h (tree_decl_common): Update comment.
19681 (DECL_ERROR_ISSUED): Remove.
19683 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19685 PR middle-end/58257
19686 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19688 2013-08-28 Jan Hubicka <jh@suse.cz>
19690 * builtins.def (free): Declare leaf.
19692 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19694 * gdbhooks.py: New.
19695 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19696 * configure: Regenerate.
19698 2013-08-27 Martin Jambor <mjambor@suse.cz>
19700 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19701 (ipa_ancestor_jf_data): Likewise.
19702 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19703 (ipa_get_jf_pass_through_type_preserved): New function.
19704 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19705 (ipa_get_jf_ancestor_type_preserved): New function.
19706 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19707 (ipa_get_jf_ancestor_result): Likewise.
19708 (propagate_vals_accross_pass_through): Use
19709 ipa_get_jf_pass_through_result to do all the value mappings.
19710 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19711 type_preserved flag.
19712 (ipa_set_jf_cst_copy): New function.
19713 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19714 (ipa_set_jf_arith_pass_through): Likewise.
19715 (ipa_set_ancestor_jf): Likewise.
19716 (compute_complex_assign_jump_func): Set type_preserved instead of
19718 (ipa_compute_jump_functions_for_edge): Likewise.
19719 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19720 (update_jump_functions_after_inlining): Update type_preserved.
19721 Explicitely create jump functions when combining one with pass_through.
19722 (ipa_write_jump_function): Stream the type_preserved flags.
19723 (ipa_read_jump_function): Likewise.
19725 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19726 Aldy Hernandez <aldyh@redhat.com>
19728 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19729 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19730 * function.h (struct function): Add has_force_vect_loops and
19732 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19733 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19735 * gimple.def: Update CLAUSES comments.
19736 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19737 (gimple_build_omp_for): Add argument to prototype.
19738 (gimple_omp_for_kind): New.
19739 (gimple_omp_for_set_kind): New.
19740 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19741 GOVD_DATA_SHARE_CLASS.
19742 (enum omp_region_type): Add ORT_SIMD.
19743 (gimple_add_tmp_var): Handle ORT_SIMD.
19744 (gimplify_var_or_parm_decl): Same.
19745 (is_gimple_stmt): Same.
19746 (omp_firstprivatize_variable): Same.
19747 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19748 (omp_notice_variable): Handle ORT_SIMD.
19749 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19750 (omp_check_private): Handle ORT_SIMD.
19751 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19752 OMP_CLAUSE_SAFELEN.
19753 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19754 Handle OMP_CLAUSE_LASTPRIVATE.
19755 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19756 OMP_CLAUSE_SAFELEN.
19757 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19758 (gimplify_expr): Handle OMP_SIMD.
19759 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19760 (expand_GOMP_SIMD_VF): New.
19761 (expand_GOMP_SIMD_LAST_LANE): New.
19762 * internal-fn.def (GOMP_SIMD_LANE): New.
19763 (GOMP_SIMD_VF): New.
19764 (GOMP_SIMD_LAST_LANE): New.
19765 * omp-low.c: Include target.h.
19766 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19767 OMP_CLAUSE_SAFELEN.
19768 (check_omp_nesting_restrictions): Same.
19770 (lower_rec_simd_input_clauses): New.
19771 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19773 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19774 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19775 (expand_omp_build_assign): New.
19776 (expand_omp_for_init_counts): New.
19777 (expand_omp_for_init_vars): New.
19778 (extract_omp_for_update_vars): New.
19779 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19780 and rewrite accordingly.
19781 (expand_omp_simd): New.
19782 (expand_omp_for): Use expand_omp_simd.
19783 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19784 (lower_omp_for): Do not lower the body.
19785 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19786 in their own loops.
19787 * tree-flow.h (find_omp_clause): Remove prototype.
19788 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19789 forcing vectorization of the loop, or if flag_tree_vectorize.
19790 (gate_tree_if_conversion): Similarly.
19791 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19792 gimple_build_omp_for.
19793 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19794 * tree-parloops (create_parallel_loop): Pass kind argument to
19795 gimple_build_omp_for.
19796 * tree-pretty-print.c (dump_omp_clause): Add cases for
19797 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19798 OMP_CLAUSE__SIMDUID_.
19799 (dump_generic_node): Handle OMP_SIMD.
19800 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19801 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19802 unroll OMP_SIMD loops here.
19803 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19804 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19806 (vect_analyze_data_refs): Handle simd loops.
19807 * tree-vect-loop.c (vectorizable_live_operation): Handle
19809 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19810 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19811 (vectorizable_load): Same.
19812 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19813 (struct simduid_to_vf): New.
19814 (simduid_to_vf::hash): New.
19815 (simduid_to-vf::equal): New.
19816 (struct simd_array_to_simduid): New.
19817 (simd_array_to_simduid::hash): New.
19818 (simd_array_to_simduid::equal): New.
19819 (adjust_simduid_builtins): New.
19820 (struct note_simd_array_uses_struct): New.
19821 (note_simd_array_uses_cb): New.
19822 (note_simd_array_uses): New.
19823 (vectorize_loops): Handle simd hints and adjust simd builtins
19825 * tree-vectorizer.h (struct _stmt_vec_info): Add
19826 simd_lane_access_p field.
19827 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19828 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19829 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19830 (omp_clause_code_name): Same.
19831 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19832 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19833 * tree.def (OMP_SIMD): New entry.
19834 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19835 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19836 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19837 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19838 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19839 (OMP_CLAUSE_LINEAR_STEP): New.
19840 (OMP_CLAUSE_SAFELEN_EXPR): New.
19841 (OMP_CLAUSE__SIMDUID__DECL): New.
19842 (find_omp_clause): New prototype.
19844 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19846 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19847 Haswell processor detection.
19849 2013-08-27 Christian Widmer <shadow@umbrox.de>
19852 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19853 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19854 AVX2 capable processors.
19856 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19858 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19859 of vget_low_* with implementations in terms of other intrinsics.
19861 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19863 PR middle-end/57219
19864 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19865 values to -1, 0 and 1.
19867 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19869 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19870 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19871 (<optab><mode>3_insn): Remove.
19872 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19873 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19874 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19875 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19876 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19877 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19878 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19879 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19880 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19881 (ror<mode>3_insn): Likewise.
19882 * config/aarch64/predicates.md (aarch64_simd_register): New.
19884 2013-08-27 Richard Biener <rguenther@suse.de>
19886 PR tree-optimization/57521
19887 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19888 one edge is non-critical.
19889 (find_phi_replacement_condition): Make sure to use a non-critical
19890 edge. Cleanup and remove old bug workarounds.
19891 (bb_postdominates_preds): Remove.
19892 (if_convertible_loop_p_1): Do not compute post-dominators.
19893 (combine_blocks): Do not free post-dominators.
19894 (main_tree_if_conversion): Likewise.
19895 (pass_data_if_conversion): Add TODO_verify_ssa.
19897 2013-08-27 DJ Delorie <dj@redhat.com>
19899 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19901 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19903 * function.c (assign_parm_find_data_types): Set passed_mode and
19904 nominal_mode to the TYPE_MODE of nominal_type for the built
19905 pointer type in case of the struct-pass-by-reference.
19907 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19909 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19910 (UINT16_TYPE): Change default to "unsigned int".
19912 * config/avr/avr.opt (mfract-convert-truncate): New option.
19913 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19914 is set, round negative fractional integers according to n1169
19915 when converting to integer types.
19917 2013-08-26 Jan Hubicka <jh@suse.cz>
19919 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19920 methods can not be called indirectly when their address is not taken.
19922 2013-08-26 Jan Hubicka <jh@suse.cz>
19924 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19927 2013-08-26 Jan Hubicka <jh@suse.cz>
19929 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19932 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19934 * reload.c (find_valid_class): Allow classes that do not include
19935 FIRST_PSEUDO_REGISTER - 1.
19937 2013-08-26 Jan Hubicka <jh@suse.cz>
19939 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19940 fix edge count/frequency when speculation failed; fix type check
19941 for the direct call.
19943 2013-08-26 Jan Hubicka <jh@suse.cz>
19945 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19947 2013-08-26 Jan Hubicka <jh@suse.cz>
19949 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19950 to be changed by edge redirection.
19952 2013-08-26 Jan Hubicka <jh@suse.cz>
19954 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19955 formating; add sanity check.
19956 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19957 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19958 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19959 (resolve_noninline_speculation): Update callee keys, too.
19961 2013-08-26 Jan Hubicka <jh@suse.cz>
19963 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19964 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19966 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19968 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19971 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19973 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19974 (x86_64_elf_select_section): Ditto.
19975 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19977 (ix86_pass_by_reference): Ditto.
19978 (output_set_got): Ditto.
19979 (ix86_unary_operator_ok): Ditto.
19980 (ix86_expand_builtin): Ditto.
19982 2013-08-23 Jan Hubicka <jh@suse.cz>
19984 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19986 2013-08-23 Jan Hubicka <jh@suse.cz>
19988 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19989 (tree_decl_with_vis): Add FINAL field.
19991 2013-08-23 Jeff Law <law@redhat.com>
19993 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19994 the debugging dump when the expression is fully redundant.
19996 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19998 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19999 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20000 * pretty-print.c (pp_formatted_text_data): Likewise.
20001 (pp_write_text_to_stream): Likewise.
20002 (pp_write_text_as_dot_label_to_stream): Likewise.
20003 (pp_append_r): Likewise.
20004 (pp_format): Likewise.
20005 (pp_flush): Likewise.
20006 (pp_clear_output_area): Likewise.
20007 (pp_append_text): Likewise.
20008 (pp_formatted_text): Likewise.
20009 (pp_remaining_character_count_for_line): Likewise.
20010 (pp_newline): Likewise.
20011 (pp_character): Likewise.
20012 (output_buffer::~output_buffer): Define.
20013 (pretty_printer::~pretty_printer): Destruct output buffer.
20014 * pretty-print.h (output_buffer::~output_buffer): Declare.
20015 (pretty_printer::~pretty_printer): Declare virtual.
20017 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20020 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20021 HOST_WIDE_INT_M1U): New macros.
20022 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20023 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20024 unsigned -1 for lshift.
20025 * cse.c (cse_insn): Likewise.
20026 * double-int.c (rshift_double, lshift_double): Likewise.
20027 * builtins.c (fold_builtin_bitop): Likewise.
20028 * combine.c (force_to_mode): Likewise.
20029 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20030 * simplify-rtx.c (simplify_const_unary_operation,
20031 simplify_const_binary_operation): Likewise.
20032 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20033 check_va_list_escapes): Likewise.
20034 * rtlanal.c (nonzero_bits1): Likewise.
20035 * expmed.c (expand_smod_pow2): Likewise.
20036 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20038 2013-08-23 Jan Hubicka <jh@suse.cz>
20040 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20041 as having address taken.
20043 2013-08-23 Jan Hubicka <jh@suse.cz>
20045 * ipa-utils.h (method_class_type): Declare.
20046 * ipa-devirt.c (method_class_type): Export.
20048 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20049 do not walk base classes of anonymous types.
20051 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20053 PR rtl-optimization/58220
20054 PR regression/58221
20055 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20056 handle SEQUENCE insns properly.
20058 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20060 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20062 (pp_newline_and_indent): Likewise.
20063 (pp_separate_with): Likewise.
20064 * pretty-print.c (pp_newline_and_flush): Define.
20065 (pp_newline_and_indent): Likewise.
20066 (pp_separate_with): Likewise.
20068 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20071 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20072 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20074 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20076 * config/i386/predicates.md (ext_sse_reg_operand): New.
20077 * config/i386/i386.md (*movti_internal): Use
20078 predicate to determine if EVEX is needed.
20079 (*movsi_internal): Ditto.
20080 (*movdf_internal): Ditto.
20081 (*movsf_internal): Ditto.
20082 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20084 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20086 PR tree-optimization/58209
20087 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20088 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20089 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20090 emit POINTER_PLUS_EXPR.
20091 (create_tailcall_accumulator): For pointer result type accumulate in
20094 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20096 * configure.ac: Add backslashes missing from the last change.
20097 * configure: Regenerate.
20099 2013-08-22 Jan Hubicka <jh@susue.cz>
20101 * ipa.c (function_and_variable_visibility): First remember function
20102 was global and then make it local.
20104 2013-08-22 Julian Brown <julian@codesourcery.com>
20106 * configure.ac: Add aarch64 to list of arches which use "nop" in
20108 * configure: Regenerate.
20110 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20112 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20113 gnu_libc_has_function.
20114 * config/s390/tpf.h: Likewise.
20116 2013-08-22 Jan Hubicka <jh@susue.cz>
20118 * timevar.c (validate_phases): Add cast.
20120 2013-08-22 Jan Hubicka <jh@susue.cz>
20122 * timevar.c (validate_phases): Use size_t for memory.
20123 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20125 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20127 * pretty-print.h (output_buffer::output_buffer): Declare.
20128 (pretty_printer::pretty_printer): Likewise.
20129 (pp_construct): Remove.
20130 * pretty-print.c (output_buffer::output_buffer): Define.
20131 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20132 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20133 (print_gimple_expr): Likewise.
20134 (print_gimple_seq): Likewise.
20135 (gimple_dump_bb): Likewise.
20136 * sched-vis.c (dump_value_slim): Likewise.
20137 (dump_insn_slim): Likewise.
20138 (dump_rtl_slim): Likewise.
20139 (str_pattern_slim): Likewise.
20140 * tree-mudflap.c (mf_varname_tree): Likewise.
20141 * graph.c (print_graph_cfg): Likewise.
20142 (start_graph_dump): Likewise.
20143 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20145 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20146 pretty printer initialization.
20147 * coretypes.h (diagnostic_context): Remove superflous type alias
20149 (pretty_printer): Likewise. Declare directly as a class.
20150 (pretty_print_info): Remove declaration as class.
20151 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20152 and pp_clear_output_area.
20153 (asan_add_global): Likewise.
20155 2013-08-22 Jan Hubicka <jh@suse.cz>
20157 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20158 * ipa-utils.h (update_type_inheritance_graph): Declare.
20159 (possible_polymorphic_call_target_p): Declare.
20160 (possible_polymorphic_call_target_p): New.
20161 * ipa-devirt.c: Update toplevel comments.
20162 (cached_polymorphic_call_targets): Move up.
20163 (odr_type_d): Move ID down.
20164 (polymorphic_type_binfo_p): Update comment.
20165 (odr_hasher::remove): Likewise;
20166 (get_odr_type): Set anonymous_namespace.
20167 (dump_odr_type): Dump it.
20168 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20169 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20170 (record_binfo): Add comment.
20171 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20173 (devirt_node_removal_hook): Do not iCE when cache is freed.
20174 (possible_polymorphic_call_target_p): New predicate.
20175 (update_type_inheritance_graph): New function.
20177 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20178 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20179 Sergey Lega <sergey.s.lega@intel.com>
20180 Anna Tikhonova <anna.tikhonova@intel.com>
20181 Ilya Tocar <ilya.tocar@intel.com>
20182 Andrey Turetskiy <andrey.turetskiy@intel.com>
20183 Ilya Verbin <ilya.verbin@intel.com>
20184 Kirill Yukhin <kirill.yukhin@intel.com>
20185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20187 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20188 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20189 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20190 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20191 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20192 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20193 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20194 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20195 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20196 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20197 OPT_mavx512pf, OPT_mavx512er cases.
20198 * config/i386/constraints.md (v): New constraint.
20199 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20200 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20201 (bit_AVX512CD): New.
20202 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20203 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20204 * config/i386/i386-c.c (ix86_target_macros_internal):
20205 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20207 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20208 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20209 * config/i386/i386.c (regclass_map, dbx_register_map)
20210 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20211 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20212 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20213 -mavx512pf options.
20214 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20215 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20216 -mavx512pf options. Fix formatting.
20217 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20218 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20219 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20220 -mavx512cd, -mavx512pf options.
20221 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20222 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20223 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20225 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20226 (ix86_set_reg_reg_cost): Ditto.
20227 (x86_order_regs_for_local_alloc): Ditto.
20228 (MAX_VECT_LEN): Extend to 64-byte.
20229 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20230 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20231 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20232 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20233 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20234 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20235 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20236 (SSE_REG_MODE_P): Support new modes.
20237 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20238 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20239 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20240 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20241 (REG_CLASS_CONTENTS): Add new registers.
20242 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20243 (EXT_REX_SSE_REGNO_P): New.
20244 (HI_REGISTER_NAMES): Add new registers.
20245 * config/i386/i386.md: Define constants for new registers.
20246 (mode): Add new 512-bit modes.
20247 (prefix): Support evex prefix.
20248 (isa): Support avx512f, noavx512f, fma_avx512f.
20249 (ssemodesuffix): Add new 512-bit modes.
20251 (*movxi_internal_avx512f): Ditto.
20252 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20254 (*movsi_internal): Likewise.
20255 (*movdf_internal): Likewise.
20256 (*movsf_internal): Likewise.
20257 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20258 (<code><mode>3): Likewise.
20259 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20261 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20262 with the new constraint "v".
20263 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20265 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20266 with the new constraint "v".
20267 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20268 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20269 (*<plusminus_insn><mode>3): Likewise.
20270 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20271 (*mul<mode>3): Likewise.
20272 (<sse>_vmmul<mode>3): Likewise.
20273 (<sse>_div<mode>3): Likewise.
20274 (<sse>_vmdiv<mode>3): Likewise.
20275 (<sse>_sqrt<mode>2): Likewise.
20276 (<sse>_vmsqrt<mode>2): Likewise.
20277 (*<code><mode>3_finite): Likewise.
20278 (*<code><mode>3) <smaxmin>: Likewise.
20279 (<sse>_vm<code><mode>3): Likewise.
20280 (*<code><mode>3) <any_logic>: Likewise.
20281 (*fma_fmadd_<mode>): Likewise.
20282 (*fma_fmsub_<mode>): Likewise.
20283 (*fma_fnmadd_<mode>): Likewise.
20284 (*fma_fnmsub_<mode>): Likewise.
20285 (*fma_fmaddsub_<mode>): Likewise.
20286 (*fma_fmsubadd_<mode>): Likewise.
20287 (*fmai_fmadd_<mode>): Likewise.
20288 (*fmai_fmsub_<mode>): Likewise.
20289 (*fmai_fnmadd_<mode>): Likewise.
20290 (*fmai_fnmsub_<mode>): Likewise.
20291 (sse_cvtsi2ss): Likewise.
20292 (sse_cvtsi2ssq): Likewise.
20293 (sse_cvtss2si): Likewise.
20294 (sse_cvtss2si_2): Likewise.
20295 (sse_cvtss2siq): Likewise.
20296 (sse_cvtss2siq_2): Likewise.
20297 (sse_cvttss2si): Likewise.
20298 (sse_cvtss2siq_2): Likewise.
20299 (float<sseintvecmodelower><mode>2): Likewise.
20300 (sse2_cvtsd2si_2): Likewise.
20301 (sse2_cvtsd2siq_2): Likewise.
20302 (*<plusminus_insn><mode>3): Likewise.
20303 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20304 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20305 (ashr<mode>3): Likewise.
20306 (<shift_insn><mode>3): Likewise.
20307 (avx2_<code><mode>3): Likewise.
20308 (*avx2_<code><mode>3): Likewise.
20309 (*andnot<mode>3): Likewise.
20310 (*<code><mode>3) <any_logic>: Likewise.
20311 (abs<mode>2): Likewise.
20312 (avx2_permvar<mode>): Likewise.
20313 (avx2_perm<mode>_1): Likewise.
20314 (*avx_vpermilp<mode>): Likewise.
20315 (avx_vpermilvar<mode>3): Likewise.
20316 (avx2_ashrv<mode>): Likewise.
20317 (avx2_<shift_insn>v<mode>): Likewise.
20318 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20320 * doc/rtl.texi: Document XImode.
20322 2013-08-21 Jeff Law <law@redhat.com>
20324 * tree-flow.h (register_jump_thread): Pass vector of edges
20325 instead of each important edge.
20326 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20327 thread path into a vector and pass that to register_jump_thread.
20328 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20329 passed in edge vector to the current 3-edge form.
20332 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20334 * dce.c (fini_dce): Call df_analyze again just in case
20335 delete_unmarked_insns removed anything.
20337 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20339 * reload.h (struct reg_equivs): Rename to ..
20340 (struct reg_equivs_s): .. this.
20342 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20344 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20346 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20348 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20350 2013-08-21 Jeff Law <law@redhat.com>
20352 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20353 simplify assignments too. If the RHS collapses to a singleton
20354 range, then return the value for the range.
20356 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20358 * config/i386/sse.md (V16): Rename to...
20360 (mov<mode>): Update iterator name.
20361 (*mov<mode>_internal): Ditto.
20362 (push<mode>1): Ditto.
20363 (movmisalign<mode>): Ditto.
20365 2013-08-20 Jan Hubicka <jh@suse.cz>
20368 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20369 entry for direct edges.
20370 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20372 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20374 Revert my last two changes, r201865 and r201864:
20377 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20379 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20380 instances can own GC refs.
20382 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20383 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20384 (gcc::context::gt_pch_nx): Likewise.
20385 (gcc::context::gt_pch_nx): Likewise.
20386 * ggc.h (gt_ggc_mx <T>): New.
20387 (gt_pch_nx_with_op <T>): New.
20388 (gt_pch_nx <T>): New.
20389 * passes.c (opt_pass::gt_ggc_mx): New.
20390 (opt_pass::gt_pch_nx): New.
20391 (opt_pass::gt_pch_nx_with_op): New.
20392 (pass_manager::gt_ggc_mx): New.
20393 (pass_manager::gt_pch_nx): New.
20394 (pass_manager::gt_pch_nx_with_op): New.
20395 (pass_manager::operator new): Use
20396 ggc_internal_cleared_alloc_stat rather than xcalloc.
20397 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20398 (pass_manager::gt_ggc_mx): New.
20399 (pass_manager::gt_pch_nx): New.
20400 (pass_manager::gt_pch_nx_with_op): New.
20401 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20402 (opt_pass::operator new): New.
20403 (opt_pass::gt_ggc_mx): New.
20404 (opt_pass::gt_pch_nx): New.
20405 (opt_pass::gt_pch_nx_with_op): New.
20408 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20410 * Makefile.in (GTFILES): Add context.h.
20411 * context.c (gcc::context::operator new): New.
20412 (gcc::context::gt_ggc_mx): New.
20413 (gcc::context::gt_pch_nx): New.
20414 (gcc::context::gt_pch_nx): New.
20415 * context.h (gcc::context): Add GTY((user)) marking.
20416 (gcc::context::operator new): New.
20417 (gcc::context::gt_ggc_mx): New.
20418 (gcc::context::gt_pch_nx): New.
20419 (gcc::context::gt_pch_nx): New.
20420 (g): Add GTY marking.
20421 (gt_ggc_mx (gcc::context *)): New.
20422 (gt_pch_nx (gcc::context *)): New.
20423 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20424 void *cookie)): New.
20425 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20427 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20429 * dce.c (fini_dce): Call df_analyze again just in case
20430 delete_unmarked_insns removed anything.
20432 2013-08-20 Teresa Johnson <tejohnson@google.com>
20434 PR rtl-optimizations/57451
20435 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20436 from crossing split section boundaries.
20438 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20440 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20441 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20442 with MULTLIB_DEFAULTS.
20444 2013-08-20 Nick Clifton <nickc@redhat.com>
20446 * target.def (narrow_volatile_bitfield): Note that the default
20447 value is false, not !TARGET_STRICT_ALIGN.
20448 * doc/tm.texi: Regenerate.
20450 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20452 Fix LIB_SPEC for systems without libpthread.
20454 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20455 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20457 * config/i386/linux-common.h: Likewise.
20458 * config/mips/linux-common.h: Likewise.
20460 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20462 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20465 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20467 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20468 instances can own GC refs.
20470 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20471 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20472 (gcc::context::gt_pch_nx): Likewise.
20473 (gcc::context::gt_pch_nx): Likewise.
20474 * ggc.h (gt_ggc_mx <T>): New.
20475 (gt_pch_nx_with_op <T>): New.
20476 (gt_pch_nx <T>): New.
20477 * passes.c (opt_pass::gt_ggc_mx): New.
20478 (opt_pass::gt_pch_nx): New.
20479 (opt_pass::gt_pch_nx_with_op): New.
20480 (pass_manager::gt_ggc_mx): New.
20481 (pass_manager::gt_pch_nx): New.
20482 (pass_manager::gt_pch_nx_with_op): New.
20483 (pass_manager::operator new): Use
20484 ggc_internal_cleared_alloc_stat rather than xcalloc.
20485 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20486 (pass_manager::gt_ggc_mx): New.
20487 (pass_manager::gt_pch_nx): New.
20488 (pass_manager::gt_pch_nx_with_op): New.
20489 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20490 (opt_pass::operator new): New.
20491 (opt_pass::gt_ggc_mx): New.
20492 (opt_pass::gt_pch_nx): New.
20493 (opt_pass::gt_pch_nx_with_op): New.
20495 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20497 * Makefile.in (GTFILES): Add context.h.
20498 * context.c (gcc::context::operator new): New.
20499 (gcc::context::gt_ggc_mx): New.
20500 (gcc::context::gt_pch_nx): New.
20501 (gcc::context::gt_pch_nx): New.
20502 * context.h (gcc::context): Add GTY((user)) marking.
20503 (gcc::context::operator new): New.
20504 (gcc::context::gt_ggc_mx): New.
20505 (gcc::context::gt_pch_nx): New.
20506 (gcc::context::gt_pch_nx): New.
20507 (g): Add GTY marking.
20508 (gt_ggc_mx (gcc::context *)): New.
20509 (gt_pch_nx (gcc::context *)): New.
20510 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20511 void *cookie)): New.
20512 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20514 2013-08-20 Alan Modra <amodra@gmail.com>
20517 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20518 (rs6000_emit_epilogue): Likewise.
20520 2013-08-19 Dehao Chen <dehao@google.com>
20522 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20524 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20525 Jakub Jelinek <jakub@redhat.com>
20527 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20528 (BUILT_IN_FABSD64): Likewise.
20529 (BUILT_IN_FABSD128): Likewise.
20530 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20531 (fold_builtin_1): Likewise.
20532 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20533 destination and source operands.
20534 (*abstd2_fpr): Likewise.
20535 (*nabstd2_fpr): Likewise.
20537 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20539 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20542 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20544 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20547 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20549 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20550 * builtins.c (default_libc_has_function): New.
20551 (gnu_libc_has_function): Ditto.
20552 (no_c99_libc_has_function): Ditto.
20553 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20554 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20555 (fold_builtin_sincos): Likewise.
20556 (fold_builtin_cexp): Likewise.
20557 * builtins.def (DEF_C94_BUILTIN): Likewise.
20558 (DEF_C99_BUILTIN): Likewise.
20559 (DEF_C99_C90RES_BUILTIN): Likewise.
20560 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20561 definitions to using this define.
20562 * config/darwin-protos.h (darwin_libc_has_function): New.
20563 * config/darwin.c (darwin_libc_has_function): Ditto.
20564 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20565 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20566 * config/darwin.h: Ditto.
20567 * config/elfos.h: Ditto.
20568 * config/freebsd.h: Ditto.
20569 * config/i386/cygming.h: Ditto.
20570 * config/i386/djgpp.h: Ditto.
20571 * config/i386/i386-interix.h: Ditto.
20572 * config/microblaze/microblaze.h: Ditto.
20573 * config/mmix/mmix.h: Ditto.
20574 * config/gnu-user.h: Ditto.
20575 * config/ia64/hpux.h: Ditto.
20576 * config/pa/pa-hpux.h: Ditto.
20577 * config/pdp11/pdp11.h: Ditto.
20578 * config/picochip/picochip.h: Ditto.
20579 * config/linux.h: Ditto.
20580 * config/netbsd.h: Ditto.
20581 * config/openbsd.h: Ditto.
20582 * config/rs6000/aix43.h: Ditto.
20583 * config/rs6000/aix51.h: Ditto.
20584 * config/rs6000/aix52.h: Ditto.
20585 * config/rs6000/aix53.h: Ditto.
20586 * config/rs6000/aix61.h: Ditto.
20587 * config/rs6000/darwin.h: Ditto.
20588 * config/rs6000/linux.h: Ditto.
20589 * config/rs6000/linux64.h: Ditto.
20590 * config/s390/tpf.h: Ditto.
20591 * config/sol2-10.h: Ditto.
20592 * config/sol2.h: Ditto.
20593 * config/vms/vms.h: Ditto.
20594 * config/vxworks.h: Ditto.
20595 * config/linux-android.c (linux_android_libc_has_function):
20596 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20597 * config/linux-protos.h (linux_android_libc_has_function):
20599 * config/i386/i386.c (ix86_libc_has_function): New.
20600 * config/i386/i386-protos.h
20601 (ix86_libc_has_function): New declaration.
20602 * config/i386/i386.md
20603 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20604 ("isinf<mode>2): Likewise.
20605 * convert.c (convert_to_integer): Using new target hook
20606 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20607 TARGET_C99_FUNCTIONS.
20608 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20609 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20610 * coretypes.h (function_class): New enum for different
20611 classes of functions.
20612 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20613 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20614 (TARGET_HAS_SINCOS): Likewise.
20615 (TARGET_LIBC_HAS_FUNCTION): New.
20616 * doc/tm.texi: Regenerated.
20617 * targhooks.h (default_libc_has_function): New declaration.
20618 (no_c99_libc_has_function): Ditto.
20619 (gnu_libc_has_function): Ditto.
20620 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20621 and TARGET_HAS_SINCOS.
20623 2013-08-18 Jan Hubicka <jh@suse.cz>
20625 * Makeifle-in (ipa-devirt.o): New.
20626 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20627 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20628 (analyze_functions): Look into possible targets of polymorphic call.
20629 * dumpfile.c (dump_files): Add type-inheritance dump.
20630 * dumpfile.h (TDI_inheritance): New.
20631 * ipa-devirt.c: New file.
20632 * ipa-utils.h (odr_type_d): Forward declare.
20633 (odr_type): New type.
20634 (build_type_inheritance_graph): Declare.
20635 (possible_polymorphic_call_targets): Declare and introduce inline
20636 variant when only edge is pased.
20637 (dump_possible_polymorphic_call_targets): Likewise.
20638 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20639 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20640 (types_same_for_odr): ... here.
20641 * tree.h (type_in_anonymous_namespace_p): Declare.
20643 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20645 PR tree-optimization/58006
20646 * tree-parloops.c (take_address_of): Don't ICE if get_name
20648 (eliminate_local_variables_stmt): Remove clobber stmts.
20650 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20652 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20653 error message is issued for an alias to undefined symbol.
20655 2013-08-18 Jan Hubicka <jh@suse.cz>
20657 * cgraph.c (cgraph_create_indirect_edge): Discover
20658 polymorphic calls and record basic info into indirect_info.
20659 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20660 devirtualization, ignore objc function calls.
20661 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20662 call with no parm index info.
20663 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20664 * tree.c (virtual_method_call_p): New function.
20665 * tree.h (virtual_method_call_p): Declare.
20667 2013-08-16 Jan Hubicka <jh@suse.cz>
20669 PR middle-end/58179
20670 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20672 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20674 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20677 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20679 * gengtype.c (type_for_name): Add special-case support for
20680 locating types within the "gcc::" namespace.
20681 (open_base_files): Emit a "using namespace gcc" directive.
20683 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20686 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20687 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20689 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20690 array instead of each individual operand as a separate argument.
20691 (emit_fusion_gpr_load): Likewise.
20692 (expand_fusion_gpr_load): Add new function declaration.
20694 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20695 signature to have the operands passed as an array, instead of as
20696 separate arguments. Allow ZERO_EXTEND to be in the memory
20697 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20698 depend on the register live/dead flags when peepholes are run.
20699 (expand_fusion_gpr_load): New function to be called from the
20700 peephole2 pass, to change the register that addis sets to be the
20702 (emit_fusion_gpr_load): Change the calling signature to have the
20703 operands passed as an array, instead of as separate arguments.
20704 Allow ZERO_EXTEND to be in the memory address, and also
20705 SIGN_EXTEND if -mpower8-fusion-sign.
20707 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20708 unspec enumeration.
20709 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20710 adjust the register addis loads up in the peephole2 pass. Do not
20711 depend on the register live/dead state when the peephole pass is done.
20713 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20715 * gengtype.c (create_user_defined_type): Ensure that the kind
20716 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20717 declaration is seen before the GTY((user)) marking.
20719 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20722 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20724 2013-08-16 Jan Hubicka <jh@suse.cz>
20726 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20727 arugment expected_type.
20728 (gimple_fold_call): Use it.
20729 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20730 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20731 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20732 (try_make_edge_direct_virtual_call): Likewise.
20733 * tree.c (obj_type_ref_class): New.
20734 * tree.h (obj_type_ref_class): Use it.
20736 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20738 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20739 (rtl_slim_pp): Likewise.
20740 (init_rtl_slim_pretty_print): Likewise.
20741 (dump_value_slim): Don't call it. Use local pretty printer.
20742 (dump_insn_slim): Likewise.
20743 (dump_rtl_slim): Likewise.
20744 (str_pattern_slim): Likewise.
20745 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20748 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20750 PR tree-optimization/58164
20751 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20752 walk gimple_goto_dest of GIMPLE_GOTO.
20754 PR tree-optimization/58165
20755 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20756 bi_call must be the last stmt in a bb, don't split_block, instead
20757 use fallthru edge from it and give up if there is none.
20758 Release conds vector when returning early.
20760 2013-08-14 Xinliang David Li <davidxl@google.com>
20762 * config/i386/i386.c (ix86_option_override_internal):
20763 Remove unused variable and field.
20765 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20768 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20769 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20770 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20771 and Linux, correct BLKmode alignment when 128-bit alignment is
20772 required and compatibility flag is not set.
20773 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20774 for zero-size arguments when compatibility flag is not set.
20776 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20778 PR tree-optimization/58145
20779 * tree-sra.c (build_ref_for_offset): If prev_base has
20780 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20782 2013-08-14 Xinliang David Li <davidxl@google.com>
20784 * config/i386/i386.c (ix86_option_override_internal):
20785 Fix uninitialized variable error.
20787 2013-08-14 Xinliang David Li <davidxl@google.com>
20789 * config/i386/i386.opt: Define two new options.
20790 * config/i386/x86-tune.def: Add arch selector field in macros.
20791 * config/i386/i386.h: Adjust macro definition.
20792 * config/i386/i386.c (ix86_option_override_internal):
20794 (parse_mtune_ctrl_str): New function.
20795 (set_ix86_tune_features): New function.
20796 (ix86_function_specific_restore): Call the new helper function.
20798 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20800 PR rtl-optimization/57662
20801 * sel-sched.c (code_motion_process_successors): When the current insn
20802 is removed after the recursive traversal, break from the loop.
20803 Add comments and debug printouts.
20805 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20806 Alexandre Oliva <aoliva@redhat.com>
20809 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20810 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20811 there also UNSPEC_PLTOFF.
20813 2013-08-14 Marek Polacek <polacek@redhat.com>
20815 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20816 NUM_CONDITIONS bit positions.
20818 2013-08-13 Cary Coutant <ccoutant@google.com>
20820 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20821 (attr_checksum): Hash vector contents instead of pointer.
20822 (attr_checksum_ordered): Likewise.
20824 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20826 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20827 when Pmode != word_mode. Add length_address attribute.
20828 (sse3_monitor_<mode>): Merge from sse3_monitor and
20829 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20830 Pmode != word_mode. Update insn length attribute.
20831 * config/i386/i386.c (ix86_option_override_internal): Update
20832 ix86_gen_monitor selection for merged sse3_monitor insn.
20834 2013-08-13 Julian Brown <julian@codesourcery.com>
20836 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20837 perform invalid legitimization on greater-than-word-size modes for
20838 TARGET_E500_DOUBLE.
20840 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20842 * ira.c (setup_class_translate_array): Use aclass instead of cl
20843 for classes not fully covered by allocno classes.
20845 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20847 PR tree-optimization/57661
20848 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20849 * tree-inline.c (tree_function_versioning): Initialize it.
20850 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20851 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20852 that is not being copied.
20855 * asan.c (instrument_strlen_call): Fix typo in comment.
20856 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20858 2013-08-13 Steve Ellcey <sellcey@mips.com>
20860 * config/mips/mips.md (prefetch): Use lw instead of ld on
20861 loongson in 32bit mode.
20863 2013-08-13 Nick Clifton <nickc@redhat.com>
20865 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20867 2013-08-13 Jan Hubicka <jh@suse.cz>
20869 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20870 introduced edge; fix typo in sanity check.
20871 (cgraph_resolve_speculation): Export; improve diagnostic.
20872 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20873 speculation at type mismatch.
20874 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20875 (cgraph_resolve_speculation): Declare.
20876 (symtab_can_be_discarded): New function.
20877 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20878 * ipa-inline-transform.c (speculation_removed): New global var.
20879 (clone_inlined_nodes): See if speculation can be removed.
20880 (inline_call): If speculations was removed, we growths may not match.
20881 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20882 (speculation_useful_p): New function.
20883 (resolve_noninline_speculation): New function.
20884 (inline_small_functions): Resolve useless speculations.
20885 * ipa-inline.h (speculation_useful_p): Declare
20886 * ipa.c (can_replace_by_local_alias): Simplify.
20887 (ipa_profile): Produce speculative calls in non-lto, too;
20888 add simple cost model; produce local aliases.
20890 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20892 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20895 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20897 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20899 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20901 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20902 iterator instead of X87MODEF.
20904 2013-08-12 Perez Read <netfirewall@gmail.com>
20907 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20908 operand 0 for intel asm alternative.
20909 (*movabs<mode>_2): Ditto for operand 1.
20911 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20913 * config/aarch64/arm_none.h
20914 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20916 2013-08-12 Nick Clifton <nickc@redhat.com>
20918 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20920 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20922 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20923 expand for QI/HImode operand to produce more effictive code for
20924 unsigned char(short) --> float(double) conversion.
20926 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20928 * doc/invoke.texi: Mention that -ftls-model does not force the final
20931 2013-08-12 Marek Polacek <polacek@redhat.com>
20932 Marc Glisse <marc.glisse@inria.fr>
20934 PR tree-optimization/57980
20935 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20936 when creating -1 constant.
20938 2013-08-10 Jan Hubicka <jh@suse.cz>
20940 Workaround binutils PR14342.
20941 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20942 (gimple_init_edge_profiler): Likewise.
20943 (gimple_gen_ic_func_profiler): Likewise.
20945 2013-08-09 Jan Hubicka <jh@suse.cz>
20947 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20949 2013-08-09 Xinliang David Li <davidxl@google.com>
20951 * config/i386/stringop.def: New file.
20952 * config/i386/stringop.opt: New file.
20953 * config/i386/i386-opts.h: Include stringopt.def.
20954 * config/i386/i386.opt: Include stringopt.opt.
20955 * config/i386/i386.c (ix86_option_override_internal):
20956 Override default size based stringop inline strategies with options.
20957 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20960 2013-08-09 Jan Hubicka <jh@suse.cz>
20962 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20964 2013-08-09 Jan Hubicka <jh@suse.cz>
20966 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20968 (dump_cgraph_node): Dump profile-id.
20969 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20970 and common_target_probability.
20971 * lto-cgraph.c (lto_output_edge): Stream common targets.
20972 (lto_output_node): Stream profile ids.
20973 (input_node): Stream profile ids.
20974 (input_edge): Stream common targets.
20975 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20976 * ipa.c: Include value-prof.h
20977 (ipa_profile_generate_summary): Turn indirect call statement histograms
20978 into common targets.
20979 (ipa_profile): Turn common targets into speculative edges.
20981 2013-08-09 Jan Hubicka <jh@suse.cz>
20983 * cgraph.h (cgraph_node): Add profile_id.
20984 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20985 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20986 (del_node_map): Update.
20987 (find_func_by_funcdef_no): Replace by ...
20988 (find_func_by_profile_id): ... this one.
20989 (gimple_ic_transform): Do not remove useful histograms when
20990 speculation is not done; dump info when indirect call removal
20992 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20993 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20994 (__gcov_indirect_call_profiler_v2): .. this one.
20995 * profile.h (init_node_map): Update.
20996 * coverage.c (coverage_compute_profile_id): New function.
20997 * coverage.h (coverage_compute_profile_id): Declare.
20998 * tree-profile.c (init_ic_make_global_vars): Make
20999 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21000 (gimple_init_edge_profiler): Update prototype of
21001 __gcov_indirect_call_profiler.
21002 (gimple_gen_ic_func_profiler): Simplify.
21003 (tree_profiling): Use init_node_map
21005 2013-08-09 Jan Hubicka <jh@suse.cz>
21007 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21008 non-speculative refs.
21009 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21010 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21011 (cgraph_set_call_stmt): Likewise.
21012 (cgraph_create_edge_1): Fix release checking compilatoin;
21013 clear lto_stmt_uid.
21014 (cgraph_free_edge): Free indirect info.
21015 (cgraph_turn_edge_to_speculative): New function.
21016 (cgraph_speculative_call_info): New function.
21017 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21018 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21019 (dump_cgraph_node): Dump speculation.
21020 (verify_edge_count_and_frequency): Accept speculative edges.
21021 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21022 (verify_cgraph_node): Handle speculation.
21023 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21024 (cgraph_set_call_stmt): Update prototype.
21025 (cgraph_make_edge_direct): Update prototype.
21026 (cgraph_speculative_call_info): Declare.
21027 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21028 to change; update call of ipa_find_references.
21029 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21030 lto_stmt_uid and speculative flags.
21031 (ipa_dump_references): Dump speculation.
21032 (ipa_clone_references): Clone speculative flag.
21033 (ipa_clone_referring): Likewise.
21034 (ipa_clone_ref): New function.
21035 (ipa_find_reference): Look into lto_stmt_uids
21036 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21037 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21038 (ipa_find_reference): Update declaration.
21039 (ipa_clone_ref): Declare.
21040 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21041 stream speculative flag.
21042 (lto_output_ref): Stream statements uids and speculation.
21043 (input_ref): Likewise.
21044 (input_edge): Stream speuclation.
21045 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21046 (cgraph_set_call_stmt_including_clones): Handle speculation.
21047 * ipa-inline.c (heap_edge_removal_hook): New function.
21048 (inline_small_functions): Register it.
21049 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21050 also initialize refs.
21051 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21053 (try_make_edge_direct_simple_call): Likewise.
21054 (try_make_edge_direct_simple_call): Likewise.
21055 (update_indirect_edges_after_inlining): Likewise.
21056 (remove_described_reference): Look proper lto_stmt_uid.
21057 (propagate_controlled_uses): Likewise.
21058 (propagate_controlled_uses): Liekwise.
21059 * tree-inline.c (copy_bb): Copy speculative edges.
21060 (redirect_all_calls): New function.
21061 (copy_cfg_body): Do redirection after loop info is updated.
21062 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21064 2013-08-09 Jan Hubicka <jh@suse.cz>
21066 * lto-streamer-out.c (output_function): Renumber PHIs.
21067 * lto-streamer-in.c (input_function): Likewise.
21069 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21071 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21072 (get_lane_unsigned): Likewise.
21073 (dup_lane_scalar): Likewise.
21074 (get_lane): enable for VALL.
21075 * config/aarch64/aarch64-simd.md
21076 (aarch64_dup_lane_scalar<mode>): Remove.
21077 (aarch64_get_lane_signed<mode>): Likewise.
21078 (aarch64_get_lane_unsigned<mode>): Likewise.
21079 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21080 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21081 (aarch64_get_lane<mode>): Enable for all vector modes.
21082 (aarch64_get_lanedi): Remove misleading constraints.
21083 * config/aarch64/arm_neon.h
21084 (__aarch64_vget_lane_any): Define.
21085 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21086 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21087 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21088 * config/aarch64/iterators.md (VDQQH): New.
21089 (VDQQHS): Likewise.
21090 (vwcore): Likewise.
21092 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21094 * configure.ac: Add GAS check for LEON instructions on SPARC.
21095 * configure: Regenerate.
21096 * config.in: Likewise.
21097 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21099 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21100 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21102 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21103 (AS_LEON_FLAG): New macro.
21104 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21105 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21106 Deal with LEON and LEON3 for the memory model.
21107 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21108 (atomic_compare_and_swap<mode>_1): Likewise.
21109 (*atomic_compare_and_swap<mode>_1): Likewise.
21111 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21113 * config/arm/neon.md (vcond): Fix floating-point vector
21114 comparisons against 0.
21116 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21118 * lra-constraints.c (emit_spill_move): Remove assert.
21119 (process_alt_operands): Add more debugging
21120 output. Increase reject for spilling into memory. Decrease
21121 reject for reloading scratch.
21122 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21124 2013-08-08 Steve Ellcey <sellcey@mips.com>
21126 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21127 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21128 micromips incompatible. Add nan2008.
21129 (MULTILIB_DIRNAMES): Add nan2008.
21130 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21131 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21132 and micromips incompatible. Add nan2008.
21133 (MULTILIB_DIRNAMES): Add nan2008.
21134 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21136 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21138 PR rtl-optimization/58079
21139 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21140 simplify_comparison has widened a comparison with an integer.
21142 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21144 * config/arm/neon.md (movmisalign<mode>): Disable when we
21145 don't allow unaligned accesses.
21146 (*movmisalign<mode>_neon_store): Likewise.
21147 (*movmisalign<mode>_neon_load): Likewise.
21148 (*movmisalign<mode>_neon_store): Likewise.
21149 (*movmisalign<mode>_neon_load): Likewise.
21151 2013-08-08 Jan Hubicka <jh@suse.cz>
21153 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21154 (make_pass_rebuild_cgraph_edges): Also clear references.
21155 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21156 * ipa-inline-transform.c (inline_transform): Remove all references
21158 * cgraphunit.c (expand_function): Remove all references after
21160 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21161 (ipa_find_reference): Rewrite to iterator.
21162 (remove_stmt_references): Likewise.
21163 (ipa_clear_stmts_in_references): New function.
21164 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21165 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21167 * ipa-split.c (split_function): Remove references in split function.
21169 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21172 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21173 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21175 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21178 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21179 suggested mode for the assignment isn't compatible with the
21180 registers required.
21182 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21185 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21187 2013-08-07 Xinliang David Li <davidxl@google.com>
21189 * config/i386/i386.opt: New option -mtune-ctrl=.
21190 * config/i386/x86-tune.def: New file.
21191 * config/i386/i386.h: include x86-tune.def.
21192 * config/i386/i386.c (ix86_option_override_internal):
21193 Parsing -mtune-ctrl= option and set tune features.
21195 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21198 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21199 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21202 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21204 * rtl.h (update_alignments): Declare.
21205 * final.c (grow_label_align): New function extracted from...
21206 (shorten_branches): ...here. Call it.
21207 (update_alignments): New function.
21208 * reorg.c (sibling_labels): New variable.
21209 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21210 the new label along with it onto the sibling_labels vector.
21211 (fill_simple_delay_slots): Adjust call to get_label_before.
21212 (fill_slots_from_thread): Likewise.
21213 (relax_delay_slots): Likewise.
21214 (make_return_insns): Likewise.
21215 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21217 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21219 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21220 document its semantics.
21221 (diagnostic_report_diagnostic): Adjust accordingly.
21223 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21225 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21226 (sparc_option_override): ...and port to new C++ pass API.
21227 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21229 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21231 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21233 2013-08-06 Caroline Tice <cmtice@google.com>
21235 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21236 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21237 * tree-pass.h: Add pass_vtable_verify.
21238 * varasm.c (assemble_variable): Add code to properly set the comdat
21239 section and name for the .vtable_map_vars section.
21240 (assemble_vtyv_preinit_initializer): New function.
21241 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21243 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21244 * vtable-verify.c: New file.
21245 * vtable-verify.h: New file.
21246 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21247 initialiation levels.
21248 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21249 * passes.def: Insert pass_vtable_verify.
21250 * aclocal.m4: Reorder includes.
21251 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21252 -fvtv-counts options.
21253 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21254 as appropriate, if -fvtable-verify=... is used.
21255 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21256 -fvtable-verify=... is used.
21257 * Makefile.in (OBJS): Add vtable-verify.o to list.
21258 (vtable-verify.o): Add new build rule.
21259 (GTFILES): Add vtable-verify.c to list.
21260 * common.opt (fvtable-verify=): New flag.
21261 (vtv_priority): Values for fvtable-verify= flag.
21262 (fvtv-counts): New flag.
21263 (fvtv-debug): New flag.
21264 * tree.h (save_vtable_map_decl): New extern function decl.
21266 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21268 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21269 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21270 (pass_data_rl78_devirt): ...new pass_data instance and...
21271 (make_pass_rl78_devirt): ...new function.
21272 (rl78_asm_file_start): Port pass registration to new C++ API.
21274 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21276 * coretypes.h (rtl_opt_pass): Add.
21277 (gcc::context): Add.
21278 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21279 (epiphany_init): Port to new C++ pass API.
21280 (epiphany_optimize_mode_switching): Likewise.
21281 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21282 (pass_manager::get_pass_mode_switching): New.
21283 (pass_manager::get_pass_peephole2): New.
21284 * mode-switching.c (pass_mode_switching): Add clone method.
21285 * recog.c (pass_peephole2): Add clone method.
21286 (pass_split_all_insns): Add clone method.
21288 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21290 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21291 (mips_option_override): ...here, porting to new C++ API for passes.
21293 2013-08-06 Jan Hubicka <jh@suse.cz>
21295 * cgraph.c (cgraph_get_body): New function based on lto.c
21297 * cgraph.h (cgraph_get_body): Declare.
21298 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21300 * cgraphunit.c (expand_function): Get body prior expanding.
21301 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21302 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21304 * passes.c (do_per_function_toporder): Get body.
21305 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21306 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21308 2013-08-06 Martin Jambor <mjambor@suse.cz>
21311 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21312 is not re-finalized. Rename second parameter to no_collect.
21314 2013-08-06 Martin Jambor <mjambor@suse.cz>
21316 PR middle-end/58041
21317 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21318 MEM_REF has proper alignment information.
21320 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21323 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21325 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21326 rtx (*) (rtx, ...) with insn_gen_fn.
21327 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21328 insn_gen_fn::stored_funcptr. Add initializer braces.
21330 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21332 Rewrite how instances of passes are cloned to remove assumptions
21333 about their sizes (thus allowing pass subclasses to have
21334 additional data fields, albeit non-GC-managed ones at this point).
21336 * passes.c (make_pass_instance): Now that passes have clone
21337 methods, rewrite this function to eliminate XNEW and memcpy
21338 calls that used hardcoded sizes. Since this function no longer
21339 creates pass instances, rename it to...
21340 (add_pass_instance): ...this. Document the old way that passes were
21341 numbered and flagged, and rework this function to continue using it.
21342 (next_pass_1): Add an initial_pass argument for use by
21344 (position_pass): When adding multiple instances of a pass, use
21345 the pass's clone method, rather than relying on the XNEW/memcpy
21346 within the former make_pass_instance (now add_pass_instance).
21347 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21348 the initial instance of the current pass within the pass manager.
21350 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21352 This is the automated part of the conversion of passes from C
21353 structs to C++ classes.
21355 Patch autogenerated by refactor_passes.py from
21356 https://github.com/davidmalcolm/gcc-refactoring-scripts
21357 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21359 * asan.c (pass_asan): Convert from a global struct to a subclass of
21360 gimple_opt_pass along with...
21361 (pass_data_asan): ...new pass_data instance and...
21362 (make_pass_asan): ...new function.
21363 (pass_asan_O0): Convert from a global struct to a subclass of
21364 gimple_opt_pass along with...
21365 (pass_data_asan_O0): ...new pass_data instance and...
21366 (make_pass_asan_O0): ...new function.
21367 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21368 subclass of rtl_opt_pass along with...
21369 (pass_data_inc_dec): ...new pass_data instance and...
21370 (make_pass_inc_dec): ...new function.
21371 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21372 a subclass of rtl_opt_pass along with...
21373 (pass_data_reorder_blocks): ...new pass_data instance and...
21374 (make_pass_reorder_blocks): ...new function.
21375 (pass_duplicate_computed_gotos): Convert from a global struct to a
21376 subclass of rtl_opt_pass along with...
21377 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21378 (make_pass_duplicate_computed_gotos): ...new function.
21379 (pass_partition_blocks): Convert from a global struct to a subclass of
21380 rtl_opt_pass along with...
21381 (pass_data_partition_blocks): ...new pass_data instance and...
21382 (make_pass_partition_blocks): ...new function.
21383 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21384 struct to a subclass of rtl_opt_pass along with...
21385 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21387 (make_pass_branch_target_load_optimize1): ...new function.
21388 (pass_branch_target_load_optimize2): Convert from a global struct to a
21389 subclass of rtl_opt_pass along with...
21390 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21392 (make_pass_branch_target_load_optimize2): ...new function.
21393 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21394 of rtl_opt_pass along with...
21395 (pass_data_jump): ...new pass_data instance and...
21396 (make_pass_jump): ...new function.
21397 (pass_jump2): Convert from a global struct to a subclass of
21398 rtl_opt_pass along with...
21399 (pass_data_jump2): ...new pass_data instance and...
21400 (make_pass_jump2): ...new function.
21401 * cfgexpand.c (pass_expand): Convert from a global struct to a
21402 subclass of rtl_opt_pass along with...
21403 (pass_data_expand): ...new pass_data instance and...
21404 (make_pass_expand): ...new function.
21405 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21406 of rtl_opt_pass along with...
21407 (pass_data_free_cfg): ...new pass_data instance and...
21408 (make_pass_free_cfg): ...new function.
21409 (pass_into_cfg_layout_mode): Convert from a global struct to a
21410 subclass of rtl_opt_pass along with...
21411 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21412 (make_pass_into_cfg_layout_mode): ...new function.
21413 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21414 subclass of rtl_opt_pass along with...
21415 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21416 (make_pass_outof_cfg_layout_mode): ...new function.
21417 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21418 struct to a subclass of gimple_opt_pass along with...
21419 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21420 (make_pass_build_cgraph_edges): ...new function.
21421 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21422 subclass of gimple_opt_pass along with...
21423 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21424 (make_pass_rebuild_cgraph_edges): ...new function.
21425 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21426 subclass of gimple_opt_pass along with...
21427 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21429 (make_pass_remove_cgraph_callee_edges): ...new function.
21430 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21431 struct to a subclass of rtl_opt_pass along with...
21432 (pass_data_stack_adjustments): ...new pass_data instance and...
21433 (make_pass_stack_adjustments): ...new function.
21434 * combine.c (pass_combine): Convert from a global struct to a subclass
21435 of rtl_opt_pass along with...
21436 (pass_data_combine): ...new pass_data instance and...
21437 (make_pass_combine): ...new function.
21438 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21439 global struct to a subclass of rtl_opt_pass along with...
21440 (pass_data_compare_elim_after_reload): ...new pass_data instance
21442 (make_pass_compare_elim_after_reload): ...new function.
21443 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21444 of rtl_opt_pass along with...
21445 (pass_data_rtl_cprop): ...new pass_data instance and...
21446 (make_pass_rtl_cprop): ...new function.
21447 * cse.c (pass_cse): Convert from a global struct to a subclass of
21448 rtl_opt_pass along with...
21449 (pass_data_cse): ...new pass_data instance and...
21450 (make_pass_cse): ...new function.
21451 (pass_cse2): Convert from a global struct to a subclass of
21452 rtl_opt_pass along with...
21453 (pass_data_cse2): ...new pass_data instance and...
21454 (make_pass_cse2): ...new function.
21455 (pass_cse_after_global_opts): Convert from a global struct to a
21456 subclass of rtl_opt_pass along with...
21457 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21458 (make_pass_cse_after_global_opts): ...new function.
21459 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21460 of rtl_opt_pass along with...
21461 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21462 (make_pass_ud_rtl_dce): ...new function.
21463 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21464 rtl_opt_pass along with...
21465 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21466 (make_pass_fast_rtl_dce): ...new function.
21467 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21468 a subclass of rtl_opt_pass along with...
21469 (pass_data_df_initialize_opt): ...new pass_data instance and...
21470 (make_pass_df_initialize_opt): ...new function.
21471 (pass_df_initialize_no_opt): Convert from a global struct to a
21472 subclass of rtl_opt_pass along with...
21473 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21474 (make_pass_df_initialize_no_opt): ...new function.
21475 (pass_df_finish): Convert from a global struct to a subclass of
21476 rtl_opt_pass along with...
21477 (pass_data_df_finish): ...new pass_data instance and...
21478 (make_pass_df_finish): ...new function.
21479 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21480 rtl_opt_pass along with...
21481 (pass_data_rtl_dse1): ...new pass_data instance and...
21482 (make_pass_rtl_dse1): ...new function.
21483 (pass_rtl_dse2): Convert from a global struct to a subclass of
21484 rtl_opt_pass along with...
21485 (pass_data_rtl_dse2): ...new pass_data instance and...
21486 (make_pass_rtl_dse2): ...new function.
21487 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21488 subclass of rtl_opt_pass along with...
21489 (pass_data_dwarf2_frame): ...new pass_data instance and...
21490 (make_pass_dwarf2_frame): ...new function.
21491 * except.c (pass_set_nothrow_function_flags): Convert from a global
21492 struct to a subclass of rtl_opt_pass along with...
21493 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21495 (make_pass_set_nothrow_function_flags): ...new function.
21496 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21497 subclass of rtl_opt_pass along with...
21498 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21500 (make_pass_convert_to_eh_region_ranges): ...new function.
21501 * final.c (pass_compute_alignments): Convert from a global struct to a
21502 subclass of rtl_opt_pass along with...
21503 (pass_data_compute_alignments): ...new pass_data instance and...
21504 (make_pass_compute_alignments): ...new function.
21505 (pass_final): Convert from a global struct to a subclass of
21506 rtl_opt_pass along with...
21507 (pass_data_final): ...new pass_data instance and...
21508 (make_pass_final): ...new function.
21509 (pass_shorten_branches): Convert from a global struct to a subclass of
21510 rtl_opt_pass along with...
21511 (pass_data_shorten_branches): ...new pass_data instance and...
21512 (make_pass_shorten_branches): ...new function.
21513 (pass_clean_state): Convert from a global struct to a subclass of
21514 rtl_opt_pass along with...
21515 (pass_data_clean_state): ...new pass_data instance and...
21516 (make_pass_clean_state): ...new function.
21517 * function.c (pass_instantiate_virtual_regs): Convert from a global
21518 struct to a subclass of rtl_opt_pass along with...
21519 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21520 (make_pass_instantiate_virtual_regs): ...new function.
21521 (pass_leaf_regs): Convert from a global struct to a subclass of
21522 rtl_opt_pass along with...
21523 (pass_data_leaf_regs): ...new pass_data instance and...
21524 (make_pass_leaf_regs): ...new function.
21525 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21526 subclass of rtl_opt_pass along with...
21527 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21529 (make_pass_thread_prologue_and_epilogue): ...new function.
21530 (pass_match_asm_constraints): Convert from a global struct to a
21531 subclass of rtl_opt_pass along with...
21532 (pass_data_match_asm_constraints): ...new pass_data instance and...
21533 (make_pass_match_asm_constraints): ...new function.
21534 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21535 subclass of rtl_opt_pass along with...
21536 (pass_data_rtl_fwprop): ...new pass_data instance and...
21537 (make_pass_rtl_fwprop): ...new function.
21538 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21539 rtl_opt_pass along with...
21540 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21541 (make_pass_rtl_fwprop_addr): ...new function.
21542 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21543 rtl_opt_pass along with...
21544 (pass_data_rtl_pre): ...new pass_data instance and...
21545 (make_pass_rtl_pre): ...new function.
21546 (pass_rtl_hoist): Convert from a global struct to a subclass of
21547 rtl_opt_pass along with...
21548 (pass_data_rtl_hoist): ...new pass_data instance and...
21549 (make_pass_rtl_hoist): ...new function.
21550 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21551 subclass of gimple_opt_pass along with...
21552 (pass_data_lower_cf): ...new pass_data instance and...
21553 (make_pass_lower_cf): ...new function.
21554 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21555 from a global struct to a subclass of gimple_opt_pass along with...
21556 (pass_data_strength_reduction): ...new pass_data instance and...
21557 (make_pass_strength_reduction): ...new function.
21558 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21559 of rtl_opt_pass along with...
21560 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21561 (make_pass_rtl_ifcvt): ...new function.
21562 (pass_if_after_combine): Convert from a global struct to a subclass of
21563 rtl_opt_pass along with...
21564 (pass_data_if_after_combine): ...new pass_data instance and...
21565 (make_pass_if_after_combine): ...new function.
21566 (pass_if_after_reload): Convert from a global struct to a subclass of
21567 rtl_opt_pass along with...
21568 (pass_data_if_after_reload): ...new pass_data instance and...
21569 (make_pass_if_after_reload): ...new function.
21570 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21571 a subclass of rtl_opt_pass along with...
21572 (pass_data_initialize_regs): ...new pass_data instance and...
21573 (make_pass_initialize_regs): ...new function.
21574 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21575 of ipa_opt_pass_d along with...
21576 (pass_data_ipa_cp): ...new pass_data instance and...
21577 (make_pass_ipa_cp): ...new function.
21578 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21579 global struct to a subclass of gimple_opt_pass along with...
21580 (pass_data_inline_parameters): ...new pass_data instance and...
21581 (make_pass_inline_parameters): ...new function.
21582 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21583 subclass of gimple_opt_pass along with...
21584 (pass_data_early_inline): ...new pass_data instance and...
21585 (make_pass_early_inline): ...new function.
21586 (pass_ipa_inline): Convert from a global struct to a subclass of
21587 ipa_opt_pass_d along with...
21588 (pass_data_ipa_inline): ...new pass_data instance and...
21589 (make_pass_ipa_inline): ...new function.
21590 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21591 struct to a subclass of gimple_opt_pass along with...
21592 (pass_data_local_pure_const): ...new pass_data instance and...
21593 (make_pass_local_pure_const): ...new function.
21594 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21595 ipa_opt_pass_d along with...
21596 (pass_data_ipa_pure_const): ...new pass_data instance and...
21597 (make_pass_ipa_pure_const): ...new function.
21598 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21599 to a subclass of ipa_opt_pass_d along with...
21600 (pass_data_ipa_reference): ...new pass_data instance and...
21601 (make_pass_ipa_reference): ...new function.
21602 * ipa-split.c (pass_split_functions): Convert from a global struct to
21603 a subclass of gimple_opt_pass along with...
21604 (pass_data_split_functions): ...new pass_data instance and...
21605 (make_pass_split_functions): ...new function.
21606 (pass_feedback_split_functions): Convert from a global struct to a
21607 subclass of gimple_opt_pass along with...
21608 (pass_data_feedback_split_functions): ...new pass_data instance and...
21609 (make_pass_feedback_split_functions): ...new function.
21610 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21611 global struct to a subclass of simple_ipa_opt_pass along with...
21612 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21614 (make_pass_ipa_function_and_variable_visibility): ...new function.
21615 (pass_ipa_free_inline_summary): Convert from a global struct to a
21616 subclass of simple_ipa_opt_pass along with...
21617 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21618 (make_pass_ipa_free_inline_summary): ...new function.
21619 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21620 subclass of ipa_opt_pass_d along with...
21621 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21623 (make_pass_ipa_whole_program_visibility): ...new function.
21624 (pass_ipa_profile): Convert from a global struct to a subclass of
21625 ipa_opt_pass_d along with...
21626 (pass_data_ipa_profile): ...new pass_data instance and...
21627 (make_pass_ipa_profile): ...new function.
21628 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21629 ipa_opt_pass_d along with...
21630 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21631 (make_pass_ipa_cdtor_merge): ...new function.
21632 * ira.c (pass_ira): Convert from a global struct to a subclass of
21633 rtl_opt_pass along with...
21634 (pass_data_ira): ...new pass_data instance and...
21635 (make_pass_ira): ...new function.
21636 (pass_reload): Convert from a global struct to a subclass of
21637 rtl_opt_pass along with...
21638 (pass_data_reload): ...new pass_data instance and...
21639 (make_pass_reload): ...new function.
21640 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21641 subclass of rtl_opt_pass along with...
21642 (pass_data_cleanup_barriers): ...new pass_data instance and...
21643 (make_pass_cleanup_barriers): ...new function.
21644 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21645 of rtl_opt_pass along with...
21646 (pass_data_loop2): ...new pass_data instance and...
21647 (make_pass_loop2): ...new function.
21648 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21649 rtl_opt_pass along with...
21650 (pass_data_rtl_loop_init): ...new pass_data instance and...
21651 (make_pass_rtl_loop_init): ...new function.
21652 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21653 rtl_opt_pass along with...
21654 (pass_data_rtl_loop_done): ...new pass_data instance and...
21655 (make_pass_rtl_loop_done): ...new function.
21656 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21657 subclass of rtl_opt_pass along with...
21658 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21659 (make_pass_rtl_move_loop_invariants): ...new function.
21660 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21661 rtl_opt_pass along with...
21662 (pass_data_rtl_unswitch): ...new pass_data instance and...
21663 (make_pass_rtl_unswitch): ...new function.
21664 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21665 subclass of rtl_opt_pass along with...
21666 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21668 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21669 (pass_rtl_doloop): Convert from a global struct to a subclass of
21670 rtl_opt_pass along with...
21671 (pass_data_rtl_doloop): ...new pass_data instance and...
21672 (make_pass_rtl_doloop): ...new function.
21673 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21674 a subclass of rtl_opt_pass along with...
21675 (pass_data_lower_subreg): ...new pass_data instance and...
21676 (make_pass_lower_subreg): ...new function.
21677 (pass_lower_subreg2): Convert from a global struct to a subclass of
21678 rtl_opt_pass along with...
21679 (pass_data_lower_subreg2): ...new pass_data instance and...
21680 (make_pass_lower_subreg2): ...new function.
21681 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21682 struct to a subclass of ipa_opt_pass_d along with...
21683 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21684 (make_pass_ipa_lto_gimple_out): ...new function.
21685 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21686 of ipa_opt_pass_d along with...
21687 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21688 (make_pass_ipa_lto_finish_out): ...new function.
21689 * mode-switching.c (pass_mode_switching): Convert from a global struct
21690 to a subclass of rtl_opt_pass along with...
21691 (pass_data_mode_switching): ...new pass_data instance and...
21692 (make_pass_mode_switching): ...new function.
21693 * modulo-sched.c (pass_sms): Convert from a global struct to a
21694 subclass of rtl_opt_pass along with...
21695 (pass_data_sms): ...new pass_data instance and...
21696 (make_pass_sms): ...new function.
21697 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21698 subclass of gimple_opt_pass along with...
21699 (pass_data_expand_omp): ...new pass_data instance and...
21700 (make_pass_expand_omp): ...new function.
21701 (pass_lower_omp): Convert from a global struct to a subclass of
21702 gimple_opt_pass along with...
21703 (pass_data_lower_omp): ...new pass_data instance and...
21704 (make_pass_lower_omp): ...new function.
21705 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21706 of gimple_opt_pass along with...
21707 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21708 (make_pass_diagnose_omp_blocks): ...new function.
21709 * passes.c (pass_early_local_passes): Convert from a global struct to
21710 a subclass of simple_ipa_opt_pass along with...
21711 (pass_data_early_local_passes): ...new pass_data instance and...
21712 (make_pass_early_local_passes): ...new function.
21713 (pass_all_early_optimizations): Convert from a global struct to a
21714 subclass of gimple_opt_pass along with...
21715 (pass_data_all_early_optimizations): ...new pass_data instance and...
21716 (make_pass_all_early_optimizations): ...new function.
21717 (pass_all_optimizations): Convert from a global struct to a subclass
21718 of gimple_opt_pass along with...
21719 (pass_data_all_optimizations): ...new pass_data instance and...
21720 (make_pass_all_optimizations): ...new function.
21721 (pass_all_optimizations_g): Convert from a global struct to a subclass
21722 of gimple_opt_pass along with...
21723 (pass_data_all_optimizations_g): ...new pass_data instance and...
21724 (make_pass_all_optimizations_g): ...new function.
21725 (pass_rest_of_compilation): Convert from a global struct to a subclass
21726 of rtl_opt_pass along with...
21727 (pass_data_rest_of_compilation): ...new pass_data instance and...
21728 (make_pass_rest_of_compilation): ...new function.
21729 (pass_postreload): Convert from a global struct to a subclass of
21730 rtl_opt_pass along with...
21731 (pass_data_postreload): ...new pass_data instance and...
21732 (make_pass_postreload): ...new function.
21733 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21734 subclass of rtl_opt_pass along with...
21735 (pass_data_gcse2): ...new pass_data instance and...
21736 (make_pass_gcse2): ...new function.
21737 * postreload.c (pass_postreload_cse): Convert from a global struct to
21738 a subclass of rtl_opt_pass along with...
21739 (pass_data_postreload_cse): ...new pass_data instance and...
21740 (make_pass_postreload_cse): ...new function.
21741 * predict.c (pass_profile): Convert from a global struct to a subclass
21742 of gimple_opt_pass along with...
21743 (pass_data_profile): ...new pass_data instance and...
21744 (make_pass_profile): ...new function.
21745 (pass_strip_predict_hints): Convert from a global struct to a subclass
21746 of gimple_opt_pass along with...
21747 (pass_data_strip_predict_hints): ...new pass_data instance and...
21748 (make_pass_strip_predict_hints): ...new function.
21749 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21750 of rtl_opt_pass along with...
21751 (pass_data_peephole2): ...new pass_data instance and...
21752 (make_pass_peephole2): ...new function.
21753 (pass_split_all_insns): Convert from a global struct to a subclass of
21754 rtl_opt_pass along with...
21755 (pass_data_split_all_insns): ...new pass_data instance and...
21756 (make_pass_split_all_insns): ...new function.
21757 (pass_split_after_reload): Convert from a global struct to a subclass
21758 of rtl_opt_pass along with...
21759 (pass_data_split_after_reload): ...new pass_data instance and...
21760 (make_pass_split_after_reload): ...new function.
21761 (pass_split_before_regstack): Convert from a global struct to a
21762 subclass of rtl_opt_pass along with...
21763 (pass_data_split_before_regstack): ...new pass_data instance and...
21764 (make_pass_split_before_regstack): ...new function.
21765 (pass_split_before_sched2): Convert from a global struct to a subclass
21766 of rtl_opt_pass along with...
21767 (pass_data_split_before_sched2): ...new pass_data instance and...
21768 (make_pass_split_before_sched2): ...new function.
21769 (pass_split_for_shorten_branches): Convert from a global struct to a
21770 subclass of rtl_opt_pass along with...
21771 (pass_data_split_for_shorten_branches): ...new pass_data instance
21773 (make_pass_split_for_shorten_branches): ...new function.
21774 * ree.c (pass_ree): Convert from a global struct to a subclass of
21775 rtl_opt_pass along with...
21776 (pass_data_ree): ...new pass_data instance and...
21777 (make_pass_ree): ...new function.
21778 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21779 subclass of rtl_opt_pass along with...
21780 (pass_data_stack_regs): ...new pass_data instance and...
21781 (make_pass_stack_regs): ...new function.
21782 (pass_stack_regs_run): Convert from a global struct to a subclass of
21783 rtl_opt_pass along with...
21784 (pass_data_stack_regs_run): ...new pass_data instance and...
21785 (make_pass_stack_regs_run): ...new function.
21786 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21787 subclass of rtl_opt_pass along with...
21788 (pass_data_cprop_hardreg): ...new pass_data instance and...
21789 (make_pass_cprop_hardreg): ...new function.
21790 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21791 subclass of rtl_opt_pass along with...
21792 (pass_data_reginfo_init): ...new pass_data instance and...
21793 (make_pass_reginfo_init): ...new function.
21794 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21795 of rtl_opt_pass along with...
21796 (pass_data_regmove): ...new pass_data instance and...
21797 (make_pass_regmove): ...new function.
21798 * regrename.c (pass_regrename): Convert from a global struct to a
21799 subclass of rtl_opt_pass along with...
21800 (pass_data_regrename): ...new pass_data instance and...
21801 (make_pass_regrename): ...new function.
21802 * reorg.c (pass_delay_slots): Convert from a global struct to a
21803 subclass of rtl_opt_pass along with...
21804 (pass_data_delay_slots): ...new pass_data instance and...
21805 (make_pass_delay_slots): ...new function.
21806 (pass_machine_reorg): Convert from a global struct to a subclass of
21807 rtl_opt_pass along with...
21808 (pass_data_machine_reorg): ...new pass_data instance and...
21809 (make_pass_machine_reorg): ...new function.
21810 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21811 of rtl_opt_pass along with...
21812 (pass_data_sched): ...new pass_data instance and...
21813 (make_pass_sched): ...new function.
21814 (pass_sched2): Convert from a global struct to a subclass of
21815 rtl_opt_pass along with...
21816 (pass_data_sched2): ...new pass_data instance and...
21817 (make_pass_sched2): ...new function.
21818 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21819 to a subclass of rtl_opt_pass along with...
21820 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21821 (make_pass_stack_ptr_mod): ...new function.
21822 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21823 to a subclass of rtl_opt_pass along with...
21824 (pass_data_rtl_store_motion): ...new pass_data instance and...
21825 (make_pass_rtl_store_motion): ...new function.
21826 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21827 of gimple_opt_pass along with...
21828 (pass_data_tracer): ...new pass_data instance and...
21829 (make_pass_tracer): ...new function.
21830 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21831 to a subclass of gimple_opt_pass along with...
21832 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21833 (make_pass_diagnose_tm_blocks): ...new function.
21834 (pass_lower_tm): Convert from a global struct to a subclass of
21835 gimple_opt_pass along with...
21836 (pass_data_lower_tm): ...new pass_data instance and...
21837 (make_pass_lower_tm): ...new function.
21838 (pass_tm_init): Convert from a global struct to a subclass of
21839 gimple_opt_pass along with...
21840 (pass_data_tm_init): ...new pass_data instance and...
21841 (make_pass_tm_init): ...new function.
21842 (pass_tm_mark): Convert from a global struct to a subclass of
21843 gimple_opt_pass along with...
21844 (pass_data_tm_mark): ...new pass_data instance and...
21845 (make_pass_tm_mark): ...new function.
21846 (pass_tm_edges): Convert from a global struct to a subclass of
21847 gimple_opt_pass along with...
21848 (pass_data_tm_edges): ...new pass_data instance and...
21849 (make_pass_tm_edges): ...new function.
21850 (pass_tm_memopt): Convert from a global struct to a subclass of
21851 gimple_opt_pass along with...
21852 (pass_data_tm_memopt): ...new pass_data instance and...
21853 (make_pass_tm_memopt): ...new function.
21854 (pass_ipa_tm): Convert from a global struct to a subclass of
21855 simple_ipa_opt_pass along with...
21856 (pass_data_ipa_tm): ...new pass_data instance and...
21857 (make_pass_ipa_tm): ...new function.
21858 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21859 subclass of gimple_opt_pass along with...
21860 (pass_data_call_cdce): ...new pass_data instance and...
21861 (make_pass_call_cdce): ...new function.
21862 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21863 subclass of gimple_opt_pass along with...
21864 (pass_data_build_cfg): ...new pass_data instance and...
21865 (make_pass_build_cfg): ...new function.
21866 (pass_split_crit_edges): Convert from a global struct to a subclass of
21867 gimple_opt_pass along with...
21868 (pass_data_split_crit_edges): ...new pass_data instance and...
21869 (make_pass_split_crit_edges): ...new function.
21870 (pass_warn_function_return): Convert from a global struct to a
21871 subclass of gimple_opt_pass along with...
21872 (pass_data_warn_function_return): ...new pass_data instance and...
21873 (make_pass_warn_function_return): ...new function.
21874 (pass_warn_function_noreturn): Convert from a global struct to a
21875 subclass of gimple_opt_pass along with...
21876 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21877 (make_pass_warn_function_noreturn): ...new function.
21878 (pass_warn_unused_result): Convert from a global struct to a subclass
21879 of gimple_opt_pass along with...
21880 (pass_data_warn_unused_result): ...new pass_data instance and...
21881 (make_pass_warn_unused_result): ...new function.
21882 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21883 a subclass of gimple_opt_pass along with...
21884 (pass_data_merge_phi): ...new pass_data instance and...
21885 (make_pass_merge_phi): ...new function.
21886 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21887 a subclass of gimple_opt_pass along with...
21888 (pass_data_lower_complex): ...new pass_data instance and...
21889 (make_pass_lower_complex): ...new function.
21890 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21891 gimple_opt_pass along with...
21892 (pass_data_lower_complex_O0): ...new pass_data instance and...
21893 (make_pass_lower_complex_O0): ...new function.
21894 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21895 subclass of gimple_opt_pass along with...
21896 (pass_data_lower_eh): ...new pass_data instance and...
21897 (make_pass_lower_eh): ...new function.
21898 (pass_refactor_eh): Convert from a global struct to a subclass of
21899 gimple_opt_pass along with...
21900 (pass_data_refactor_eh): ...new pass_data instance and...
21901 (make_pass_refactor_eh): ...new function.
21902 (pass_lower_resx): Convert from a global struct to a subclass of
21903 gimple_opt_pass along with...
21904 (pass_data_lower_resx): ...new pass_data instance and...
21905 (make_pass_lower_resx): ...new function.
21906 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21907 of gimple_opt_pass along with...
21908 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21909 (make_pass_lower_eh_dispatch): ...new function.
21910 (pass_cleanup_eh): Convert from a global struct to a subclass of
21911 gimple_opt_pass along with...
21912 (pass_data_cleanup_eh): ...new pass_data instance and...
21913 (make_pass_cleanup_eh): ...new function.
21914 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21915 to a subclass of simple_ipa_opt_pass along with...
21916 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21917 (make_pass_ipa_lower_emutls): ...new function.
21918 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21919 a subclass of gimple_opt_pass along with...
21920 (pass_data_if_conversion): ...new pass_data instance and...
21921 (make_pass_if_conversion): ...new function.
21922 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21923 subclass of gimple_opt_pass along with...
21924 (pass_data_build_ssa): ...new pass_data instance and...
21925 (make_pass_build_ssa): ...new function.
21926 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21927 global struct to a subclass of gimple_opt_pass along with...
21928 (pass_data_loop_distribution): ...new pass_data instance and...
21929 (make_pass_loop_distribution): ...new function.
21930 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21931 subclass of gimple_opt_pass along with...
21932 (pass_data_mudflap_1): ...new pass_data instance and...
21933 (make_pass_mudflap_1): ...new function.
21934 (pass_mudflap_2): Convert from a global struct to a subclass of
21935 gimple_opt_pass along with...
21936 (pass_data_mudflap_2): ...new pass_data instance and...
21937 (make_pass_mudflap_2): ...new function.
21938 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21939 subclass of gimple_opt_pass along with...
21940 (pass_data_mudflap_1): ...new pass_data instance and...
21941 (make_pass_mudflap_1): ...new function.
21942 (pass_mudflap_2): Convert from a global struct to a subclass of
21943 gimple_opt_pass along with...
21944 (pass_data_mudflap_2): ...new pass_data instance and...
21945 (make_pass_mudflap_2): ...new function.
21946 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21947 gimple_opt_pass along with...
21948 (pass_data_nrv): ...new pass_data instance and...
21949 (make_pass_nrv): ...new function.
21950 (pass_return_slot): Convert from a global struct to a subclass of
21951 gimple_opt_pass along with...
21952 (pass_data_return_slot): ...new pass_data instance and...
21953 (make_pass_return_slot): ...new function.
21954 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21955 to a subclass of gimple_opt_pass along with...
21956 (pass_data_object_sizes): ...new pass_data instance and...
21957 (make_pass_object_sizes): ...new function.
21958 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21959 global struct to a subclass of gimple_opt_pass along with...
21960 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21962 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21963 (pass_fixup_cfg): Convert from a global struct to a subclass of
21964 gimple_opt_pass along with...
21965 (pass_data_fixup_cfg): ...new pass_data instance and...
21966 (make_pass_fixup_cfg): ...new function.
21967 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21968 (make_pass_mudflap_1): ...new function.
21969 (pass_mudflap_2): Replace declaration with that of...
21970 (make_pass_mudflap_2): ...new function.
21971 (pass_asan): Replace declaration with that of...
21972 (make_pass_asan): ...new function.
21973 (pass_asan_O0): Replace declaration with that of...
21974 (make_pass_asan_O0): ...new function.
21975 (pass_tsan): Replace declaration with that of...
21976 (make_pass_tsan): ...new function.
21977 (pass_tsan_O0): Replace declaration with that of...
21978 (make_pass_tsan_O0): ...new function.
21979 (pass_lower_cf): Replace declaration with that of...
21980 (make_pass_lower_cf): ...new function.
21981 (pass_refactor_eh): Replace declaration with that of...
21982 (make_pass_refactor_eh): ...new function.
21983 (pass_lower_eh): Replace declaration with that of...
21984 (make_pass_lower_eh): ...new function.
21985 (pass_lower_eh_dispatch): Replace declaration with that of...
21986 (make_pass_lower_eh_dispatch): ...new function.
21987 (pass_lower_resx): Replace declaration with that of...
21988 (make_pass_lower_resx): ...new function.
21989 (pass_build_cfg): Replace declaration with that of...
21990 (make_pass_build_cfg): ...new function.
21991 (pass_early_tree_profile): Replace declaration with that of...
21992 (make_pass_early_tree_profile): ...new function.
21993 (pass_cleanup_eh): Replace declaration with that of...
21994 (make_pass_cleanup_eh): ...new function.
21995 (pass_sra): Replace declaration with that of...
21996 (make_pass_sra): ...new function.
21997 (pass_sra_early): Replace declaration with that of...
21998 (make_pass_sra_early): ...new function.
21999 (pass_early_ipa_sra): Replace declaration with that of...
22000 (make_pass_early_ipa_sra): ...new function.
22001 (pass_tail_recursion): Replace declaration with that of...
22002 (make_pass_tail_recursion): ...new function.
22003 (pass_tail_calls): Replace declaration with that of...
22004 (make_pass_tail_calls): ...new function.
22005 (pass_tree_loop): Replace declaration with that of...
22006 (make_pass_tree_loop): ...new function.
22007 (pass_tree_loop_init): Replace declaration with that of...
22008 (make_pass_tree_loop_init): ...new function.
22009 (pass_lim): Replace declaration with that of...
22010 (make_pass_lim): ...new function.
22011 (pass_tree_unswitch): Replace declaration with that of...
22012 (make_pass_tree_unswitch): ...new function.
22013 (pass_predcom): Replace declaration with that of...
22014 (make_pass_predcom): ...new function.
22015 (pass_iv_canon): Replace declaration with that of...
22016 (make_pass_iv_canon): ...new function.
22017 (pass_scev_cprop): Replace declaration with that of...
22018 (make_pass_scev_cprop): ...new function.
22019 (pass_empty_loop): Replace declaration with that of...
22020 (make_pass_empty_loop): ...new function.
22021 (pass_record_bounds): Replace declaration with that of...
22022 (make_pass_record_bounds): ...new function.
22023 (pass_graphite): Replace declaration with that of...
22024 (make_pass_graphite): ...new function.
22025 (pass_graphite_transforms): Replace declaration with that of...
22026 (make_pass_graphite_transforms): ...new function.
22027 (pass_if_conversion): Replace declaration with that of...
22028 (make_pass_if_conversion): ...new function.
22029 (pass_loop_distribution): Replace declaration with that of...
22030 (make_pass_loop_distribution): ...new function.
22031 (pass_vectorize): Replace declaration with that of...
22032 (make_pass_vectorize): ...new function.
22033 (pass_slp_vectorize): Replace declaration with that of...
22034 (make_pass_slp_vectorize): ...new function.
22035 (pass_complete_unroll): Replace declaration with that of...
22036 (make_pass_complete_unroll): ...new function.
22037 (pass_complete_unrolli): Replace declaration with that of...
22038 (make_pass_complete_unrolli): ...new function.
22039 (pass_parallelize_loops): Replace declaration with that of...
22040 (make_pass_parallelize_loops): ...new function.
22041 (pass_loop_prefetch): Replace declaration with that of...
22042 (make_pass_loop_prefetch): ...new function.
22043 (pass_iv_optimize): Replace declaration with that of...
22044 (make_pass_iv_optimize): ...new function.
22045 (pass_tree_loop_done): Replace declaration with that of...
22046 (make_pass_tree_loop_done): ...new function.
22047 (pass_ch): Replace declaration with that of...
22048 (make_pass_ch): ...new function.
22049 (pass_ccp): Replace declaration with that of...
22050 (make_pass_ccp): ...new function.
22051 (pass_phi_only_cprop): Replace declaration with that of...
22052 (make_pass_phi_only_cprop): ...new function.
22053 (pass_build_ssa): Replace declaration with that of...
22054 (make_pass_build_ssa): ...new function.
22055 (pass_build_alias): Replace declaration with that of...
22056 (make_pass_build_alias): ...new function.
22057 (pass_build_ealias): Replace declaration with that of...
22058 (make_pass_build_ealias): ...new function.
22059 (pass_dominator): Replace declaration with that of...
22060 (make_pass_dominator): ...new function.
22061 (pass_dce): Replace declaration with that of...
22062 (make_pass_dce): ...new function.
22063 (pass_dce_loop): Replace declaration with that of...
22064 (make_pass_dce_loop): ...new function.
22065 (pass_cd_dce): Replace declaration with that of...
22066 (make_pass_cd_dce): ...new function.
22067 (pass_call_cdce): Replace declaration with that of...
22068 (make_pass_call_cdce): ...new function.
22069 (pass_merge_phi): Replace declaration with that of...
22070 (make_pass_merge_phi): ...new function.
22071 (pass_split_crit_edges): Replace declaration with that of...
22072 (make_pass_split_crit_edges): ...new function.
22073 (pass_pre): Replace declaration with that of...
22074 (make_pass_pre): ...new function.
22075 (pass_profile): Replace declaration with that of...
22076 (make_pass_profile): ...new function.
22077 (pass_strip_predict_hints): Replace declaration with that of...
22078 (make_pass_strip_predict_hints): ...new function.
22079 (pass_lower_complex_O0): Replace declaration with that of...
22080 (make_pass_lower_complex_O0): ...new function.
22081 (pass_lower_complex): Replace declaration with that of...
22082 (make_pass_lower_complex): ...new function.
22083 (pass_lower_vector): Replace declaration with that of...
22084 (make_pass_lower_vector): ...new function.
22085 (pass_lower_vector_ssa): Replace declaration with that of...
22086 (make_pass_lower_vector_ssa): ...new function.
22087 (pass_lower_omp): Replace declaration with that of...
22088 (make_pass_lower_omp): ...new function.
22089 (pass_diagnose_omp_blocks): Replace declaration with that of...
22090 (make_pass_diagnose_omp_blocks): ...new function.
22091 (pass_expand_omp): Replace declaration with that of...
22092 (make_pass_expand_omp): ...new function.
22093 (pass_expand_omp_ssa): Replace declaration with that of...
22094 (make_pass_expand_omp_ssa): ...new function.
22095 (pass_object_sizes): Replace declaration with that of...
22096 (make_pass_object_sizes): ...new function.
22097 (pass_strlen): Replace declaration with that of...
22098 (make_pass_strlen): ...new function.
22099 (pass_fold_builtins): Replace declaration with that of...
22100 (make_pass_fold_builtins): ...new function.
22101 (pass_stdarg): Replace declaration with that of...
22102 (make_pass_stdarg): ...new function.
22103 (pass_early_warn_uninitialized): Replace declaration with that of...
22104 (make_pass_early_warn_uninitialized): ...new function.
22105 (pass_late_warn_uninitialized): Replace declaration with that of...
22106 (make_pass_late_warn_uninitialized): ...new function.
22107 (pass_cse_reciprocals): Replace declaration with that of...
22108 (make_pass_cse_reciprocals): ...new function.
22109 (pass_cse_sincos): Replace declaration with that of...
22110 (make_pass_cse_sincos): ...new function.
22111 (pass_optimize_bswap): Replace declaration with that of...
22112 (make_pass_optimize_bswap): ...new function.
22113 (pass_optimize_widening_mul): Replace declaration with that of...
22114 (make_pass_optimize_widening_mul): ...new function.
22115 (pass_warn_function_return): Replace declaration with that of...
22116 (make_pass_warn_function_return): ...new function.
22117 (pass_warn_function_noreturn): Replace declaration with that of...
22118 (make_pass_warn_function_noreturn): ...new function.
22119 (pass_cselim): Replace declaration with that of...
22120 (make_pass_cselim): ...new function.
22121 (pass_phiopt): Replace declaration with that of...
22122 (make_pass_phiopt): ...new function.
22123 (pass_forwprop): Replace declaration with that of...
22124 (make_pass_forwprop): ...new function.
22125 (pass_phiprop): Replace declaration with that of...
22126 (make_pass_phiprop): ...new function.
22127 (pass_tree_ifcombine): Replace declaration with that of...
22128 (make_pass_tree_ifcombine): ...new function.
22129 (pass_dse): Replace declaration with that of...
22130 (make_pass_dse): ...new function.
22131 (pass_nrv): Replace declaration with that of...
22132 (make_pass_nrv): ...new function.
22133 (pass_rename_ssa_copies): Replace declaration with that of...
22134 (make_pass_rename_ssa_copies): ...new function.
22135 (pass_sink_code): Replace declaration with that of...
22136 (make_pass_sink_code): ...new function.
22137 (pass_fre): Replace declaration with that of...
22138 (make_pass_fre): ...new function.
22139 (pass_check_data_deps): Replace declaration with that of...
22140 (make_pass_check_data_deps): ...new function.
22141 (pass_copy_prop): Replace declaration with that of...
22142 (make_pass_copy_prop): ...new function.
22143 (pass_vrp): Replace declaration with that of...
22144 (make_pass_vrp): ...new function.
22145 (pass_uncprop): Replace declaration with that of...
22146 (make_pass_uncprop): ...new function.
22147 (pass_return_slot): Replace declaration with that of...
22148 (make_pass_return_slot): ...new function.
22149 (pass_reassoc): Replace declaration with that of...
22150 (make_pass_reassoc): ...new function.
22151 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22152 (make_pass_rebuild_cgraph_edges): ...new function.
22153 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22154 (make_pass_remove_cgraph_callee_edges): ...new function.
22155 (pass_build_cgraph_edges): Replace declaration with that of...
22156 (make_pass_build_cgraph_edges): ...new function.
22157 (pass_local_pure_const): Replace declaration with that of...
22158 (make_pass_local_pure_const): ...new function.
22159 (pass_tracer): Replace declaration with that of...
22160 (make_pass_tracer): ...new function.
22161 (pass_warn_unused_result): Replace declaration with that of...
22162 (make_pass_warn_unused_result): ...new function.
22163 (pass_diagnose_tm_blocks): Replace declaration with that of...
22164 (make_pass_diagnose_tm_blocks): ...new function.
22165 (pass_lower_tm): Replace declaration with that of...
22166 (make_pass_lower_tm): ...new function.
22167 (pass_tm_init): Replace declaration with that of...
22168 (make_pass_tm_init): ...new function.
22169 (pass_tm_mark): Replace declaration with that of...
22170 (make_pass_tm_mark): ...new function.
22171 (pass_tm_memopt): Replace declaration with that of...
22172 (make_pass_tm_memopt): ...new function.
22173 (pass_tm_edges): Replace declaration with that of...
22174 (make_pass_tm_edges): ...new function.
22175 (pass_split_functions): Replace declaration with that of...
22176 (make_pass_split_functions): ...new function.
22177 (pass_feedback_split_functions): Replace declaration with that of...
22178 (make_pass_feedback_split_functions): ...new function.
22179 (pass_strength_reduction): Replace declaration with that of...
22180 (make_pass_strength_reduction): ...new function.
22181 (pass_ipa_lower_emutls): Replace declaration with that of...
22182 (make_pass_ipa_lower_emutls): ...new function.
22183 (pass_ipa_function_and_variable_visibility): Replace declaration with
22185 (make_pass_ipa_function_and_variable_visibility): ...new function.
22186 (pass_ipa_tree_profile): Replace declaration with that of...
22187 (make_pass_ipa_tree_profile): ...new function.
22188 (pass_early_local_passes): Replace declaration with that of...
22189 (make_pass_early_local_passes): ...new function.
22190 (pass_ipa_whole_program_visibility): Replace declaration with that
22192 (make_pass_ipa_whole_program_visibility): ...new function.
22193 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22194 (make_pass_ipa_lto_gimple_out): ...new function.
22195 (pass_ipa_increase_alignment): Replace declaration with that of...
22196 (make_pass_ipa_increase_alignment): ...new function.
22197 (pass_ipa_inline): Replace declaration with that of...
22198 (make_pass_ipa_inline): ...new function.
22199 (pass_ipa_free_lang_data): Replace declaration with that of...
22200 (make_pass_ipa_free_lang_data): ...new function.
22201 (pass_ipa_free_inline_summary): Replace declaration with that of...
22202 (make_pass_ipa_free_inline_summary): ...new function.
22203 (pass_ipa_cp): Replace declaration with that of...
22204 (make_pass_ipa_cp): ...new function.
22205 (pass_ipa_reference): Replace declaration with that of...
22206 (make_pass_ipa_reference): ...new function.
22207 (pass_ipa_pure_const): Replace declaration with that of...
22208 (make_pass_ipa_pure_const): ...new function.
22209 (pass_ipa_pta): Replace declaration with that of...
22210 (make_pass_ipa_pta): ...new function.
22211 (pass_ipa_lto_finish_out): Replace declaration with that of...
22212 (make_pass_ipa_lto_finish_out): ...new function.
22213 (pass_ipa_tm): Replace declaration with that of...
22214 (make_pass_ipa_tm): ...new function.
22215 (pass_ipa_profile): Replace declaration with that of...
22216 (make_pass_ipa_profile): ...new function.
22217 (pass_ipa_cdtor_merge): Replace declaration with that of...
22218 (make_pass_ipa_cdtor_merge): ...new function.
22219 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22221 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22222 (pass_init_datastructures): Replace declaration with that of...
22223 (make_pass_init_datastructures): ...new function.
22224 (pass_fixup_cfg): Replace declaration with that of...
22225 (make_pass_fixup_cfg): ...new function.
22226 (pass_expand): Replace declaration with that of...
22227 (make_pass_expand): ...new function.
22228 (pass_instantiate_virtual_regs): Replace declaration with that of...
22229 (make_pass_instantiate_virtual_regs): ...new function.
22230 (pass_rtl_fwprop): Replace declaration with that of...
22231 (make_pass_rtl_fwprop): ...new function.
22232 (pass_rtl_fwprop_addr): Replace declaration with that of...
22233 (make_pass_rtl_fwprop_addr): ...new function.
22234 (pass_jump): Replace declaration with that of...
22235 (make_pass_jump): ...new function.
22236 (pass_jump2): Replace declaration with that of...
22237 (make_pass_jump2): ...new function.
22238 (pass_lower_subreg): Replace declaration with that of...
22239 (make_pass_lower_subreg): ...new function.
22240 (pass_cse): Replace declaration with that of...
22241 (make_pass_cse): ...new function.
22242 (pass_fast_rtl_dce): Replace declaration with that of...
22243 (make_pass_fast_rtl_dce): ...new function.
22244 (pass_ud_rtl_dce): Replace declaration with that of...
22245 (make_pass_ud_rtl_dce): ...new function.
22246 (pass_rtl_dce): Replace declaration with that of...
22247 (make_pass_rtl_dce): ...new function.
22248 (pass_rtl_dse1): Replace declaration with that of...
22249 (make_pass_rtl_dse1): ...new function.
22250 (pass_rtl_dse2): Replace declaration with that of...
22251 (make_pass_rtl_dse2): ...new function.
22252 (pass_rtl_dse3): Replace declaration with that of...
22253 (make_pass_rtl_dse3): ...new function.
22254 (pass_rtl_cprop): Replace declaration with that of...
22255 (make_pass_rtl_cprop): ...new function.
22256 (pass_rtl_pre): Replace declaration with that of...
22257 (make_pass_rtl_pre): ...new function.
22258 (pass_rtl_hoist): Replace declaration with that of...
22259 (make_pass_rtl_hoist): ...new function.
22260 (pass_rtl_store_motion): Replace declaration with that of...
22261 (make_pass_rtl_store_motion): ...new function.
22262 (pass_cse_after_global_opts): Replace declaration with that of...
22263 (make_pass_cse_after_global_opts): ...new function.
22264 (pass_rtl_ifcvt): Replace declaration with that of...
22265 (make_pass_rtl_ifcvt): ...new function.
22266 (pass_into_cfg_layout_mode): Replace declaration with that of...
22267 (make_pass_into_cfg_layout_mode): ...new function.
22268 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22269 (make_pass_outof_cfg_layout_mode): ...new function.
22270 (pass_loop2): Replace declaration with that of...
22271 (make_pass_loop2): ...new function.
22272 (pass_rtl_loop_init): Replace declaration with that of...
22273 (make_pass_rtl_loop_init): ...new function.
22274 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22275 (make_pass_rtl_move_loop_invariants): ...new function.
22276 (pass_rtl_unswitch): Replace declaration with that of...
22277 (make_pass_rtl_unswitch): ...new function.
22278 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22279 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22280 (pass_rtl_doloop): Replace declaration with that of...
22281 (make_pass_rtl_doloop): ...new function.
22282 (pass_rtl_loop_done): Replace declaration with that of...
22283 (make_pass_rtl_loop_done): ...new function.
22284 (pass_web): Replace declaration with that of...
22285 (make_pass_web): ...new function.
22286 (pass_cse2): Replace declaration with that of...
22287 (make_pass_cse2): ...new function.
22288 (pass_df_initialize_opt): Replace declaration with that of...
22289 (make_pass_df_initialize_opt): ...new function.
22290 (pass_df_initialize_no_opt): Replace declaration with that of...
22291 (make_pass_df_initialize_no_opt): ...new function.
22292 (pass_reginfo_init): Replace declaration with that of...
22293 (make_pass_reginfo_init): ...new function.
22294 (pass_inc_dec): Replace declaration with that of...
22295 (make_pass_inc_dec): ...new function.
22296 (pass_stack_ptr_mod): Replace declaration with that of...
22297 (make_pass_stack_ptr_mod): ...new function.
22298 (pass_initialize_regs): Replace declaration with that of...
22299 (make_pass_initialize_regs): ...new function.
22300 (pass_combine): Replace declaration with that of...
22301 (make_pass_combine): ...new function.
22302 (pass_if_after_combine): Replace declaration with that of...
22303 (make_pass_if_after_combine): ...new function.
22304 (pass_ree): Replace declaration with that of...
22305 (make_pass_ree): ...new function.
22306 (pass_partition_blocks): Replace declaration with that of...
22307 (make_pass_partition_blocks): ...new function.
22308 (pass_match_asm_constraints): Replace declaration with that of...
22309 (make_pass_match_asm_constraints): ...new function.
22310 (pass_regmove): Replace declaration with that of...
22311 (make_pass_regmove): ...new function.
22312 (pass_split_all_insns): Replace declaration with that of...
22313 (make_pass_split_all_insns): ...new function.
22314 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22315 (make_pass_fast_rtl_byte_dce): ...new function.
22316 (pass_lower_subreg2): Replace declaration with that of...
22317 (make_pass_lower_subreg2): ...new function.
22318 (pass_mode_switching): Replace declaration with that of...
22319 (make_pass_mode_switching): ...new function.
22320 (pass_sms): Replace declaration with that of...
22321 (make_pass_sms): ...new function.
22322 (pass_sched): Replace declaration with that of...
22323 (make_pass_sched): ...new function.
22324 (pass_ira): Replace declaration with that of...
22325 (make_pass_ira): ...new function.
22326 (pass_reload): Replace declaration with that of...
22327 (make_pass_reload): ...new function.
22328 (pass_clean_state): Replace declaration with that of...
22329 (make_pass_clean_state): ...new function.
22330 (pass_branch_prob): Replace declaration with that of...
22331 (make_pass_branch_prob): ...new function.
22332 (pass_value_profile_transformations): Replace declaration with that
22334 (make_pass_value_profile_transformations): ...new function.
22335 (pass_postreload_cse): Replace declaration with that of...
22336 (make_pass_postreload_cse): ...new function.
22337 (pass_gcse2): Replace declaration with that of...
22338 (make_pass_gcse2): ...new function.
22339 (pass_split_after_reload): Replace declaration with that of...
22340 (make_pass_split_after_reload): ...new function.
22341 (pass_branch_target_load_optimize1): Replace declaration with that
22343 (make_pass_branch_target_load_optimize1): ...new function.
22344 (pass_thread_prologue_and_epilogue): Replace declaration with that
22346 (make_pass_thread_prologue_and_epilogue): ...new function.
22347 (pass_stack_adjustments): Replace declaration with that of...
22348 (make_pass_stack_adjustments): ...new function.
22349 (pass_peephole2): Replace declaration with that of...
22350 (make_pass_peephole2): ...new function.
22351 (pass_if_after_reload): Replace declaration with that of...
22352 (make_pass_if_after_reload): ...new function.
22353 (pass_regrename): Replace declaration with that of...
22354 (make_pass_regrename): ...new function.
22355 (pass_cprop_hardreg): Replace declaration with that of...
22356 (make_pass_cprop_hardreg): ...new function.
22357 (pass_reorder_blocks): Replace declaration with that of...
22358 (make_pass_reorder_blocks): ...new function.
22359 (pass_branch_target_load_optimize2): Replace declaration with that
22361 (make_pass_branch_target_load_optimize2): ...new function.
22362 (pass_leaf_regs): Replace declaration with that of...
22363 (make_pass_leaf_regs): ...new function.
22364 (pass_split_before_sched2): Replace declaration with that of...
22365 (make_pass_split_before_sched2): ...new function.
22366 (pass_compare_elim_after_reload): Replace declaration with that of...
22367 (make_pass_compare_elim_after_reload): ...new function.
22368 (pass_sched2): Replace declaration with that of...
22369 (make_pass_sched2): ...new function.
22370 (pass_stack_regs): Replace declaration with that of...
22371 (make_pass_stack_regs): ...new function.
22372 (pass_stack_regs_run): Replace declaration with that of...
22373 (make_pass_stack_regs_run): ...new function.
22374 (pass_df_finish): Replace declaration with that of...
22375 (make_pass_df_finish): ...new function.
22376 (pass_compute_alignments): Replace declaration with that of...
22377 (make_pass_compute_alignments): ...new function.
22378 (pass_duplicate_computed_gotos): Replace declaration with that of...
22379 (make_pass_duplicate_computed_gotos): ...new function.
22380 (pass_variable_tracking): Replace declaration with that of...
22381 (make_pass_variable_tracking): ...new function.
22382 (pass_free_cfg): Replace declaration with that of...
22383 (make_pass_free_cfg): ...new function.
22384 (pass_machine_reorg): Replace declaration with that of...
22385 (make_pass_machine_reorg): ...new function.
22386 (pass_cleanup_barriers): Replace declaration with that of...
22387 (make_pass_cleanup_barriers): ...new function.
22388 (pass_delay_slots): Replace declaration with that of...
22389 (make_pass_delay_slots): ...new function.
22390 (pass_split_for_shorten_branches): Replace declaration with that of...
22391 (make_pass_split_for_shorten_branches): ...new function.
22392 (pass_split_before_regstack): Replace declaration with that of...
22393 (make_pass_split_before_regstack): ...new function.
22394 (pass_convert_to_eh_region_ranges): Replace declaration with that
22396 (make_pass_convert_to_eh_region_ranges): ...new function.
22397 (pass_shorten_branches): Replace declaration with that of...
22398 (make_pass_shorten_branches): ...new function.
22399 (pass_set_nothrow_function_flags): Replace declaration with that of...
22400 (make_pass_set_nothrow_function_flags): ...new function.
22401 (pass_dwarf2_frame): Replace declaration with that of...
22402 (make_pass_dwarf2_frame): ...new function.
22403 (pass_final): Replace declaration with that of...
22404 (make_pass_final): ...new function.
22405 (pass_rtl_seqabstr): Replace declaration with that of...
22406 (make_pass_rtl_seqabstr): ...new function.
22407 (pass_release_ssa_names): Replace declaration with that of...
22408 (make_pass_release_ssa_names): ...new function.
22409 (pass_early_inline): Replace declaration with that of...
22410 (make_pass_early_inline): ...new function.
22411 (pass_inline_parameters): Replace declaration with that of...
22412 (make_pass_inline_parameters): ...new function.
22413 (pass_update_address_taken): Replace declaration with that of...
22414 (make_pass_update_address_taken): ...new function.
22415 (pass_convert_switch): Replace declaration with that of...
22416 (make_pass_convert_switch): ...new function.
22417 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22418 to a subclass of simple_ipa_opt_pass along with...
22419 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22420 (make_pass_ipa_tree_profile): ...new function.
22421 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22422 subclass of gimple_opt_pass along with...
22423 (pass_data_sra_early): ...new pass_data instance and...
22424 (make_pass_sra_early): ...new function.
22425 (pass_sra): Convert from a global struct to a subclass of
22426 gimple_opt_pass along with...
22427 (pass_data_sra): ...new pass_data instance and...
22428 (make_pass_sra): ...new function.
22429 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22430 gimple_opt_pass along with...
22431 (pass_data_early_ipa_sra): ...new pass_data instance and...
22432 (make_pass_early_ipa_sra): ...new function.
22433 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22434 subclass of gimple_opt_pass along with...
22435 (pass_data_ccp): ...new pass_data instance and...
22436 (make_pass_ccp): ...new function.
22437 (pass_fold_builtins): Convert from a global struct to a subclass of
22438 gimple_opt_pass along with...
22439 (pass_data_fold_builtins): ...new pass_data instance and...
22440 (make_pass_fold_builtins): ...new function.
22441 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22442 subclass of gimple_opt_pass along with...
22443 (pass_data_copy_prop): ...new pass_data instance and...
22444 (make_pass_copy_prop): ...new function.
22445 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22446 global struct to a subclass of gimple_opt_pass along with...
22447 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22448 (make_pass_rename_ssa_copies): ...new function.
22449 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22450 subclass of gimple_opt_pass along with...
22451 (pass_data_dce): ...new pass_data instance and...
22452 (make_pass_dce): ...new function.
22453 (pass_dce_loop): Convert from a global struct to a subclass of
22454 gimple_opt_pass along with...
22455 (pass_data_dce_loop): ...new pass_data instance and...
22456 (make_pass_dce_loop): ...new function.
22457 (pass_cd_dce): Convert from a global struct to a subclass of
22458 gimple_opt_pass along with...
22459 (pass_data_cd_dce): ...new pass_data instance and...
22460 (make_pass_cd_dce): ...new function.
22461 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22462 subclass of gimple_opt_pass along with...
22463 (pass_data_dominator): ...new pass_data instance and...
22464 (make_pass_dominator): ...new function.
22465 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22466 gimple_opt_pass along with...
22467 (pass_data_phi_only_cprop): ...new pass_data instance and...
22468 (make_pass_phi_only_cprop): ...new function.
22469 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22470 subclass of gimple_opt_pass along with...
22471 (pass_data_dse): ...new pass_data instance and...
22472 (make_pass_dse): ...new function.
22473 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22474 a subclass of gimple_opt_pass along with...
22475 (pass_data_forwprop): ...new pass_data instance and...
22476 (make_pass_forwprop): ...new function.
22477 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22478 struct to a subclass of gimple_opt_pass along with...
22479 (pass_data_tree_ifcombine): ...new pass_data instance and...
22480 (make_pass_tree_ifcombine): ...new function.
22481 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22482 subclass of gimple_opt_pass along with...
22483 (pass_data_ch): ...new pass_data instance and...
22484 (make_pass_ch): ...new function.
22485 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22486 subclass of gimple_opt_pass along with...
22487 (pass_data_tree_loop): ...new pass_data instance and...
22488 (make_pass_tree_loop): ...new function.
22489 (pass_tree_loop_init): Convert from a global struct to a subclass of
22490 gimple_opt_pass along with...
22491 (pass_data_tree_loop_init): ...new pass_data instance and...
22492 (make_pass_tree_loop_init): ...new function.
22493 (pass_lim): Convert from a global struct to a subclass of
22494 gimple_opt_pass along with...
22495 (pass_data_lim): ...new pass_data instance and...
22496 (make_pass_lim): ...new function.
22497 (pass_tree_unswitch): Convert from a global struct to a subclass of
22498 gimple_opt_pass along with...
22499 (pass_data_tree_unswitch): ...new pass_data instance and...
22500 (make_pass_tree_unswitch): ...new function.
22501 (pass_predcom): Convert from a global struct to a subclass of
22502 gimple_opt_pass along with...
22503 (pass_data_predcom): ...new pass_data instance and...
22504 (make_pass_predcom): ...new function.
22505 (pass_vectorize): Convert from a global struct to a subclass of
22506 gimple_opt_pass along with...
22507 (pass_data_vectorize): ...new pass_data instance and...
22508 (make_pass_vectorize): ...new function.
22509 (pass_graphite): Convert from a global struct to a subclass of
22510 gimple_opt_pass along with...
22511 (pass_data_graphite): ...new pass_data instance and...
22512 (make_pass_graphite): ...new function.
22513 (pass_graphite_transforms): Convert from a global struct to a subclass
22514 of gimple_opt_pass along with...
22515 (pass_data_graphite_transforms): ...new pass_data instance and...
22516 (make_pass_graphite_transforms): ...new function.
22517 (pass_check_data_deps): Convert from a global struct to a subclass of
22518 gimple_opt_pass along with...
22519 (pass_data_check_data_deps): ...new pass_data instance and...
22520 (make_pass_check_data_deps): ...new function.
22521 (pass_iv_canon): Convert from a global struct to a subclass of
22522 gimple_opt_pass along with...
22523 (pass_data_iv_canon): ...new pass_data instance and...
22524 (make_pass_iv_canon): ...new function.
22525 (pass_scev_cprop): Convert from a global struct to a subclass of
22526 gimple_opt_pass along with...
22527 (pass_data_scev_cprop): ...new pass_data instance and...
22528 (make_pass_scev_cprop): ...new function.
22529 (pass_record_bounds): Convert from a global struct to a subclass of
22530 gimple_opt_pass along with...
22531 (pass_data_record_bounds): ...new pass_data instance and...
22532 (make_pass_record_bounds): ...new function.
22533 (pass_complete_unroll): Convert from a global struct to a subclass of
22534 gimple_opt_pass along with...
22535 (pass_data_complete_unroll): ...new pass_data instance and...
22536 (make_pass_complete_unroll): ...new function.
22537 (pass_complete_unrolli): Convert from a global struct to a subclass of
22538 gimple_opt_pass along with...
22539 (pass_data_complete_unrolli): ...new pass_data instance and...
22540 (make_pass_complete_unrolli): ...new function.
22541 (pass_parallelize_loops): Convert from a global struct to a subclass
22542 of gimple_opt_pass along with...
22543 (pass_data_parallelize_loops): ...new pass_data instance and...
22544 (make_pass_parallelize_loops): ...new function.
22545 (pass_loop_prefetch): Convert from a global struct to a subclass of
22546 gimple_opt_pass along with...
22547 (pass_data_loop_prefetch): ...new pass_data instance and...
22548 (make_pass_loop_prefetch): ...new function.
22549 (pass_iv_optimize): Convert from a global struct to a subclass of
22550 gimple_opt_pass along with...
22551 (pass_data_iv_optimize): ...new pass_data instance and...
22552 (make_pass_iv_optimize): ...new function.
22553 (pass_tree_loop_done): Convert from a global struct to a subclass of
22554 gimple_opt_pass along with...
22555 (pass_data_tree_loop_done): ...new pass_data instance and...
22556 (make_pass_tree_loop_done): ...new function.
22557 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22558 struct to a subclass of gimple_opt_pass along with...
22559 (pass_data_cse_reciprocals): ...new pass_data instance and...
22560 (make_pass_cse_reciprocals): ...new function.
22561 (pass_cse_sincos): Convert from a global struct to a subclass of
22562 gimple_opt_pass along with...
22563 (pass_data_cse_sincos): ...new pass_data instance and...
22564 (make_pass_cse_sincos): ...new function.
22565 (pass_optimize_bswap): Convert from a global struct to a subclass of
22566 gimple_opt_pass along with...
22567 (pass_data_optimize_bswap): ...new pass_data instance and...
22568 (make_pass_optimize_bswap): ...new function.
22569 (pass_optimize_widening_mul): Convert from a global struct to a
22570 subclass of gimple_opt_pass along with...
22571 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22572 (make_pass_optimize_widening_mul): ...new function.
22573 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22574 subclass of gimple_opt_pass along with...
22575 (pass_data_phiopt): ...new pass_data instance and...
22576 (make_pass_phiopt): ...new function.
22577 (pass_cselim): Convert from a global struct to a subclass of
22578 gimple_opt_pass along with...
22579 (pass_data_cselim): ...new pass_data instance and...
22580 (make_pass_cselim): ...new function.
22581 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22582 subclass of gimple_opt_pass along with...
22583 (pass_data_phiprop): ...new pass_data instance and...
22584 (make_pass_phiprop): ...new function.
22585 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22586 subclass of gimple_opt_pass along with...
22587 (pass_data_pre): ...new pass_data instance and...
22588 (make_pass_pre): ...new function.
22589 (pass_fre): Convert from a global struct to a subclass of
22590 gimple_opt_pass along with...
22591 (pass_data_fre): ...new pass_data instance and...
22592 (make_pass_fre): ...new function.
22593 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22594 subclass of gimple_opt_pass along with...
22595 (pass_data_reassoc): ...new pass_data instance and...
22596 (make_pass_reassoc): ...new function.
22597 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22598 subclass of gimple_opt_pass along with...
22599 (pass_data_sink_code): ...new pass_data instance and...
22600 (make_pass_sink_code): ...new function.
22601 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22602 subclass of gimple_opt_pass along with...
22603 (pass_data_strlen): ...new pass_data instance and...
22604 (make_pass_strlen): ...new function.
22605 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22606 struct to a subclass of gimple_opt_pass along with...
22607 (pass_data_build_alias): ...new pass_data instance and...
22608 (make_pass_build_alias): ...new function.
22609 (pass_build_ealias): Convert from a global struct to a subclass of
22610 gimple_opt_pass along with...
22611 (pass_data_build_ealias): ...new pass_data instance and...
22612 (make_pass_build_ealias): ...new function.
22613 (pass_ipa_pta): Convert from a global struct to a subclass of
22614 simple_ipa_opt_pass along with...
22615 (pass_data_ipa_pta): ...new pass_data instance and...
22616 (make_pass_ipa_pta): ...new function.
22617 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22618 subclass of gimple_opt_pass along with...
22619 (pass_data_uncprop): ...new pass_data instance and...
22620 (make_pass_uncprop): ...new function.
22621 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22622 global struct to a subclass of gimple_opt_pass along with...
22623 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22624 (make_pass_late_warn_uninitialized): ...new function.
22625 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22626 to a subclass of gimple_opt_pass along with...
22627 (pass_data_init_datastructures): ...new pass_data instance and...
22628 (make_pass_init_datastructures): ...new function.
22629 (pass_early_warn_uninitialized): Convert from a global struct to a
22630 subclass of gimple_opt_pass along with...
22631 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22632 (make_pass_early_warn_uninitialized): ...new function.
22633 (pass_update_address_taken): Convert from a global struct to a
22634 subclass of gimple_opt_pass along with...
22635 (pass_data_update_address_taken): ...new pass_data instance and...
22636 (make_pass_update_address_taken): ...new function.
22637 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22638 struct to a subclass of gimple_opt_pass along with...
22639 (pass_data_release_ssa_names): ...new pass_data instance and...
22640 (make_pass_release_ssa_names): ...new function.
22641 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22642 subclass of gimple_opt_pass along with...
22643 (pass_data_stdarg): ...new pass_data instance and...
22644 (make_pass_stdarg): ...new function.
22645 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22646 global struct to a subclass of gimple_opt_pass along with...
22647 (pass_data_convert_switch): ...new pass_data instance and...
22648 (make_pass_convert_switch): ...new function.
22649 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22650 to a subclass of gimple_opt_pass along with...
22651 (pass_data_tail_recursion): ...new pass_data instance and...
22652 (make_pass_tail_recursion): ...new function.
22653 (pass_tail_calls): Convert from a global struct to a subclass of
22654 gimple_opt_pass along with...
22655 (pass_data_tail_calls): ...new pass_data instance and...
22656 (make_pass_tail_calls): ...new function.
22657 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22658 struct to a subclass of gimple_opt_pass along with...
22659 (pass_data_lower_vector): ...new pass_data instance and...
22660 (make_pass_lower_vector): ...new function.
22661 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22662 gimple_opt_pass along with...
22663 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22664 (make_pass_lower_vector_ssa): ...new function.
22665 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22666 to a subclass of gimple_opt_pass along with...
22667 (pass_data_slp_vectorize): ...new pass_data instance and...
22668 (make_pass_slp_vectorize): ...new function.
22669 (pass_ipa_increase_alignment): Convert from a global struct to a
22670 subclass of simple_ipa_opt_pass along with...
22671 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22672 (make_pass_ipa_increase_alignment): ...new function.
22673 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22674 gimple_opt_pass along with...
22675 (pass_data_vrp): ...new pass_data instance and...
22676 (make_pass_vrp): ...new function.
22677 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22678 subclass of simple_ipa_opt_pass along with...
22679 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22680 (make_pass_ipa_free_lang_data): ...new function.
22681 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22682 gimple_opt_pass along with...
22683 (pass_data_tsan): ...new pass_data instance and...
22684 (make_pass_tsan): ...new function.
22685 (pass_tsan_O0): Convert from a global struct to a subclass of
22686 gimple_opt_pass along with...
22687 (pass_data_tsan_O0): ...new pass_data instance and...
22688 (make_pass_tsan_O0): ...new function.
22689 * var-tracking.c (pass_variable_tracking): Convert from a global
22690 struct to a subclass of rtl_opt_pass along with...
22691 (pass_data_variable_tracking): ...new pass_data instance and...
22692 (make_pass_variable_tracking): ...new function.
22693 * web.c (pass_web): Convert from a global struct to a subclass of
22694 rtl_opt_pass along with...
22695 (pass_data_web): ...new pass_data instance and...
22696 (make_pass_web): ...new function.
22697 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22698 declaration with that of...
22699 (make_pass_mode_switch_use): ...new function.
22700 (pass_resolve_sw_modes): Replace declaration with that of...
22701 (make_pass_resolve_sw_modes): ...new function.
22702 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22703 from a global struct to a subclass of rtl_opt_pass along with...
22704 (pass_data_mode_switch_use): ...new pass_data instance and...
22705 (make_pass_mode_switch_use): ...new function.
22706 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22707 from a global struct to a subclass of rtl_opt_pass along with...
22708 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22709 (make_pass_resolve_sw_modes): ...new function.
22710 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22711 struct to a subclass of rtl_opt_pass along with...
22712 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22713 (make_pass_insert_vzeroupper): ...new function.
22714 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22715 global struct to a subclass of rtl_opt_pass along with...
22716 (pass_data_work_around_errata): ...new pass_data instance and...
22717 (make_pass_work_around_errata): ...new function.
22718 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22719 struct to a subclass of rtl_opt_pass along with...
22720 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22721 (make_pass_mips_machine_reorg2): ...new function.
22723 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22725 * passes.c (pass_manager::operator new): New.
22727 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22729 Handwritten part of conversion of passes to C++ classes.
22731 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22732 (toplev.o): Add dep on PASS_MANAGER_H.
22733 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22734 of early local pases to reflect this moving from a global to a
22735 member of gcc::pass_manager.
22736 (cgraph_add_new_function): Likewise.
22737 * lto-cgraph.c (lto_output_node): Update for conversion of
22738 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22739 * passes.c (opt_pass::clone): New.
22740 (opt_pass::gate): New.
22741 (opt_pass::execute): New.
22742 (opt_pass::opt_pass): New.
22743 (pass_manager::execute_early_local_passes): New.
22744 (pass_manager::execute_pass_mode_switching): new.
22745 (finish_optimization_passes): Convert to...
22746 (pass_manager::finish_optimization_passes): ...this.
22747 (finish_optimization_passes): Update for conversion of passes to
22749 (register_dump_files_1): Use has_gate since we cannot portably
22750 check a vtable entry against NULL.
22751 (dump_one_pass): Likewise.
22752 (ipa_write_summaries_2): Likewise.
22753 (ipa_write_optimization_summaries_1): Likewise.
22754 (ipa_read_summaries_1): Likewise.
22755 (ipa_read_optimization_summaries_1): Likewise.
22756 (execute_ipa_stmt_fixups): Likewise.
22757 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22758 pass-creation functions rather than wiring up globals, and
22759 storing the results in fields of pass_manager generated using
22760 pass-instances.def.
22761 (pass_manager::dump_profile_report): Update for conversion of
22762 passes to C++ classes.
22763 (pass_manager::execute_ipa_summary_passes): Likewise.
22764 (execute_one_ipa_transform_pass): Likewise.
22765 (execute_one_pass): Use has_gate and has_execute since we cannot
22766 portably check a vtable entry against NULL.
22767 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22768 (pass_manager): Use pass-instances.def to add fields for the
22769 various pass instances.
22770 * toplev.c (finalize): Update for move of
22771 finish_optimization_passes to a method of gcc::pass_manager.
22772 * toplev.h (finish_optimization_passes): Move to method of class
22774 * tree-pass.h (struct pass_data): New.
22775 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22776 (opt_pass::gate): Convert to virtual function.
22777 (opt_pass::~opt_pass): New.
22778 (opt_pass::clone): New.
22779 (opt_pass::execute): Convert to virtual function.
22780 (opt_pass::opt_pass): New.
22781 (opt_pass::ctxt_): new.
22782 (gimple_opt_pass): Convert to subclass of opt_pass.
22783 (gimple_opt_pass::gimple_opt_pass): New.
22784 (rtl_opt_pass): Convert to subclass of opt_pass.
22785 (rtl_opt_pass::rtl_opt_pass): New.
22786 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22787 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22788 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22789 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22790 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22791 invocation of pass_mode_switching to reflect this moving from a
22792 global to a member of gcc::pass_manager.
22793 (ix86_option_override): Rework how pass_insert_vzeroupper is
22794 added to the pass_manager to reflect autogenerated changes.
22795 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22797 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22799 PR rtl-optimization/57708
22800 * recog.c (peep2_find_free_register): Validate all regs in a
22803 2013-08-05 Jan Hubicka <jh@suse.cz>
22806 * cgraph.c (verify_cgraph_node): Accept local flags from other
22808 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22809 (function_and_variable_visibility): Likewise.
22810 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22812 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22814 * graph.c (init_graph_slim_pretty_print): Remove.
22815 (print_graph_cfg): Do not call it. Use local pretty printer.
22816 (start_graph_dump): Likewise.
22818 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22820 * gimple-pretty-print.c (buffer): Remove.
22821 (initialized): Likewise.
22822 (maybe_init_pretty_print): Likewise.
22823 (print_gimple_stmt): Do not call it. Use non-static local
22824 pretty_printer variable.
22825 (print_gimple_expr): Likewise.
22826 (print_gimple_seq): Likewise.
22827 (gimple_dump_bb): Likewise.
22829 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22831 * asan.c (asan_pp): Remove.
22832 (asan_pp_initialized): Likewise.
22833 (asan_pp_initialize): Likewise.
22834 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22835 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22836 (asan_add_global): Likewise.
22838 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22840 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22841 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22842 * pretty-print.c (pp_formatted_text_data): Likewise.
22843 (pp_indent): Rename from pp_base_indent.
22844 (pp_format): Rename from pp_base_format.
22845 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22846 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22847 (pp_flush): Rename from pp_base_flush.
22848 (pp_set_line_maximum_length): Rename from
22849 pp_base_set_line_maximum_length.
22850 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22851 (pp_set_prefix): Rename from pp_base_set_prefix.
22852 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22853 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22854 (pp_append_text): Rename from pp_base_append_text.
22855 (pp_formatted_text): Rename from pp_base_formatted_text.
22856 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22857 (pp_remaining_character_count_for_line): Rename from
22858 pp_base_remaining_character_count_for_line.
22859 (pp_newline): Rename from pp_base_newline.
22860 (pp_character): Rename from pp_base_character.
22861 (pp_string): Rename from pp_base_string.
22862 (pp_maybe_space): Rename from pp_base_maybe_space.
22863 * asan.c (asan_pp_string): Adjust.
22864 (asan_emit_stack_protection): Likewise.
22865 (asan_add_global): Likewise.
22866 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22867 * tree-mudflap.c (mf_varname_tree): Likewise.
22868 * tree-pretty-print.c (pp_tree_identifier): Rename from
22869 pp_base_tree_identifier.
22870 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22871 Declare as function.
22873 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22875 * pretty-print.h (pp_bar_bar): New.
22876 (pp_ampersand_ampersand): Likewise.
22877 (pp_less_equal): Likewise.
22878 (pp_greater_equal): Likewise.
22879 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22880 printer functions instead of pp_string or operators and punctuators.
22881 (dump_gimple_call): Likewise.
22882 (dump_gimple_omp_for): Likewise.
22883 (dump_gimple_transaction): Likewise.
22884 (dump_gimple_phi): Likewise.
22885 (pp_gimple_stmt_1): Likewise.
22886 * sched-vis.c (print_insn): Likewise.
22887 * tree-mudflap.c (mf_varname_tree): Likewise.
22888 * tree-pretty-print.c (dump_block_node): Likewise.
22889 (dump_generic_node): Likewise.
22891 2013-08-02 Jan Hubicka <jh@suse.cz>
22893 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22895 * lto-streamer-out.c (tree_is_indexable): Results decls and
22896 parm decls are not indexable.
22897 (DFS_write_tree_body): Do not follow args and results.
22898 (hash_tree): Likewise.
22899 (output_functions): Rearrange so struct function is needed
22900 only when real body is output; be able to also ouptut abstract
22901 functions; output DECL_ARGUMENTS and DECL_RESULT.
22902 (lto_output): When not in WPA, ale store abstract functions.
22903 (write_symbol): Do not care about RESULT_DECL.
22904 (output_symbol_p): Handle correctly sbtract decls.
22905 * lto-streamer-in.c (input_function): Rearrange so struct
22906 function can be NULL at entry; allow streaming of
22907 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22908 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22909 sanity check during LTO.
22910 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22911 RESULT_DECl and DECL_ARGUMENTS.
22912 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22915 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22917 * pretty-print.h (pp_underscore): New.
22919 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22920 printer functions instead of pp_character.
22921 (dump_binary_rhs): Likewise.
22922 (dump_ternary_rhs): Likewise.
22923 (dump_gimple_call_args): Likewise.
22924 (pp_points_to_solution): Likewise.
22925 (dump_gimple_call): Likewise.
22926 (dump_gimple_switch): Likewise.
22927 (dump_gimple_cond): Likewise.
22928 (dump_gimple_bind): Likewise.
22929 (dump_gimple_try): Likewise.
22930 (dump_gimple_omp_for): Likewise.
22931 (dump_gimple_omp_continue): Likewise.
22932 (dump_gimple_omp_single): Likewise.
22933 (dump_gimple_omp_sections): Likewise.
22934 (dump_gimple_omp_block): Likewise.
22935 (dump_gimple_omp_critical): Likewise.
22936 (dump_gimple_transaction): Likewise.
22937 (dump_gimple_asm): Likewise.
22938 (dump_gimple_phi): Likewise.
22939 (dump_gimple_omp_parallel): Likewise.
22940 (dump_gimple_omp_task): Likewise.
22941 (dump_gimple_omp_atomic_load): Likewise.
22942 (dump_gimple_omp_atomic_store): Likewise.
22943 (dump_gimple_mem_ops): Likewise.
22944 (pp_gimple_stmt_1): Likewise.
22945 (pp_cfg_jump): Likewise.
22946 (dump_implicit_edges): Likewise.
22947 (gimple_dump_bb_for_graph): Likewise.
22948 * graph.c (draw_cfg_node): Likewise.
22949 * langhooks.c (lhd_print_error_function): Likewise.
22950 * sched-vis.c (print_exp): Likewise.
22951 (print_value): Likewise.
22952 (print_pattern): Likewise.
22953 (print_insn): Likewise.
22954 (rtl_dump_bb_for_graph): Likewise.
22955 * tree-pretty-print.c (dump_function_declaration): Likewise.
22956 (dump_array_domain): Likewise.
22957 (dump_omp_clause): Likewise.
22958 (dump_location): Likewise.
22959 (dump_generic_node): Likewise.
22960 (print_struct_decl): Likewise.
22961 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22963 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22965 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22966 candidate table when replacing a candidate statement.
22967 (replace_rhs_if_not_dup): Likewise.
22968 (replace_one_candidate): Likewise.
22970 2013-08-02 Jan Hubicka <jh@suse.cz>
22971 Martin Liska <marxin.liska@gmail.com>
22973 * cgraphunit.c (add_new_function): Fix logic when adding from
22975 (assemble_thunk): Rename to ...
22976 (expand_thunk); .. this one; export; get it working with
22977 general functions; make produced gimple valid.
22978 * cgraph.h (expand_thunk): Declare.
22980 2013-08-02 Jan Hubicka <jh@suse.cz>
22982 * ipa-cp.c (gather_context_independent_values): Use
22983 ipa_get_param_move_cost.
22984 (get_replacement_map): Remove PARAM; move parameter folding
22986 (create_specialized_node): Update.
22987 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22988 assert that we have gimple body; update move_cost.
22989 (count_formal_params): Assert that we have gimple body.
22990 (ipa_dump_param): New function.
22991 (ipa_alloc_node_params): Break out from ...
22992 (ipa_initialize_node_params): ... here.
22993 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22994 (ipa_write_node_info): Stream move costs.
22995 (ipa_read_node_info): Read move costs.
22996 (ipa_update_after_lto_read): Do not recompute node params.
22997 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22998 (ipa_get_param): Check we are not in WPA.
22999 (ipa_get_param_move_cost): New.
23000 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23001 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23002 parm numbers to be present.
23004 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23006 PR rtl-optimization/58048
23007 * lra-constraints.c (process_alt_operands): Don't check asm
23008 operand on register.
23010 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23012 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23013 the implied StoreLoad barrier for atomic operations if before.
23015 2013-08-02 Jan Hubicka <jh@suse.cz>
23016 Martin Liska <marxin.liska@gmail.com>
23018 * cgraph.c (cgraph_function_body_availability): Do not check
23020 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23021 symtab_node_availability): Declare.
23022 * ipa.c (can_replace_by_local_alias): New.
23023 (function_and_variable_visibility): Use it.
23024 * symtab.c (symtab_for_node_and_aliases,
23025 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23027 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23029 PR rtl-optimization/57963
23030 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23031 (lra_constraints): Use them.
23033 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23035 * config/arm/types.md (define_attr "type"): Add "load_acq"
23037 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23039 (cortex_a53_store1): Likewise.
23041 2013-08-01 Jan Hubicka <jh@suse.cz>
23043 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23044 partitions are not needed.
23046 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23048 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23049 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23050 MAYBE_NON_Q_CLASS_P where appropriate.
23052 2013-08-01 Jan Hubicka <jh@suse.cz>
23054 * cgraph.h (release_function_body): Declare.
23055 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23056 of unused delcarations.
23058 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23060 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23061 RTL form when subtracting a constant.
23063 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23065 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23066 Generate canonical plus rtx with negated immediate instead of minus
23068 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23070 2013-08-01 Jan Hubicka <jh@suse.cz>
23072 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23073 (cgraph_release_function_body): Likewise.
23074 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23075 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23076 to used_as_abstract_origin.
23077 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23078 symbols used as abstract origins.
23079 * cgraphunit.c (analyze_functions): Update.
23080 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23081 used_as_abstract_origin.
23082 * tree-inline.c (tree_function_versioning): Update
23083 used_as_abstract_origin; be ready for DECL_RESULT and
23084 DECL_ARGUMENTS to be NULL.
23086 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23087 for abstract functions.
23088 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23091 2013-08-01 Jan Hubicka <jh@suse.cz>
23093 * profile.c (compute_value_histograms): Fix thinko.
23095 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23097 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23098 aarch-common-protos.h to extra_headers.
23099 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23100 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23101 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23103 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23105 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23106 Include "../arm/types.md". Define "type" attribute for all patterns.
23107 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23110 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23112 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23113 to support power8 load fusion.
23114 (fusion_gpr_mem_load): Likewise.
23116 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23118 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23119 declarations for power8 load fusion.
23120 (emit_fusion_gpr_load): Likewise.
23122 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23123 tuning for power8, turn on fusion mode by default. Turn on sign
23124 extending fusion mode if normal fusion mode is on, and we are at
23126 (fusion_gpr_load_p): New function, return true if we can fuse an
23127 addis instruction with a dependent load to a GPR.
23128 (emit_fusion_gpr_load): Emit the instructions for power8 load
23131 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23132 (VSX load fusion peepholes): New peepholes to fuse together an
23133 addi instruction with a VSX load instruction.
23135 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23136 peepholes to fuse an addis instruction with a load to a GPR base
23137 register. If we are supporting sign extending fusions, convert
23138 sign extending loads to zero extending loads and add an explicit
23141 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23143 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23144 aarch-common-protos.h to extra_headers.
23145 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23146 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23147 (arm_early_store_addr_dep): Likewise.
23148 (arm_no_early_alu_shift_dep): Likewise.
23149 (arm_no_early_alu_shift_value_dep): Likewise.
23150 (arm_no_early_mul_dep): Likewise.
23151 (arm_no_early_store_addr_dep): Likewise.
23152 (arm_mac_accumulator_is_mul_result): Likewise.
23153 (arm_mac_accumulator_is_result): Likewise.
23154 * config/arm/aarch-common.c: ... here. New file.
23155 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23157 (arm_early_store_addr_dep): Likewise.
23158 (arm_no_early_alu_shift_dep): Likewise.
23159 (arm_no_early_alu_shift_value_dep): Likewise.
23160 (arm_no_early_mul_dep): Likewise.
23161 (arm_no_early_store_addr_dep): Likewise.
23162 (arm_mac_accumulator_is_mul_result): Likewise.
23163 (arm_mac_accumulator_is_result): Likewise.
23164 * config/arm/aarch-common-protos.h: ... here. New file.
23165 * config/arm/t-arm (aarch-common.o): Define.
23167 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23169 * config/arm/arm.md: Include new file "types.md".
23170 (define_attr "type"): Move from here to ...
23171 (define_attr "mul32"): Likewise.
23172 (define_attr "mul64"): Likewise.
23173 * config/arm/types.md: ... here. New file.
23175 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23177 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23178 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23180 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23182 * gen-pass-instances.awk: Fix offset of substr().
23184 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23186 * Makefile.in (pass-instances.def): New.
23187 (passes.o): Replace dependency on passes.def with one on
23190 * gen-pass-instances.awk: New.
23192 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23193 rather than passes.def, updating local definition of NEXT_PASS
23194 macro to add an extra NUM parameter (currently unused).
23196 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23198 * Makefile.in (PASS_MANAGER_H): New.
23199 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23200 (passes.o): Likewise.
23201 (statistics.o): Likewise.
23202 (cgraphunit.o): Likewise.
23203 (context.o): Depend on PASS_MANAGER_H.
23205 * pass_manager.h: New.
23207 * cgraphunit.c (cgraph_add_new_function): Update for moves
23208 of globals to fields of pass_manager.
23209 (analyze_function): Likewise.
23210 (expand_function): Likewise.
23211 (ipa_passes): Likewise.
23212 (compile): Likewise.
23214 * context.c (context::context): New.
23215 * context.h (context::context): New.
23216 (context::get_passes): New.
23217 (context::passes_): New.
23219 * lto-cgraph.c (input_node): Update for moves of globals to
23220 fields of pass_manager.
23222 * passes.c (all_passes): Remove, in favor of a field of the
23223 same name within the new class pass_manager.
23224 (all_small_ipa_passes): Likewise.
23225 (all_lowering_passes): Likewise.
23226 (all_regular_ipa_passes): Likewise.
23227 (all_late_ipa_passes): Likewise.
23228 (all_lto_gen_passes): Likewise.
23229 (passes_by_id): Likewise.
23230 (passes_by_id_size): Likewise.
23231 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23232 the new class pass_manager.
23233 (set_pass_for_id): Convert to...
23234 (pass_manager::set_pass_for_id): ...method.
23235 (get_pass_for_id): Convert to...
23236 (pass_manager::get_pass_for_id): ...method.
23237 (register_one_dump_file): Move body of implementation into...
23238 (pass_manager::register_one_dump_file): ...here.
23239 (register_dump_files_1): Convert to...
23240 (pass_manager::register_dump_files_1): ...method.
23241 (register_dump_files): Convert to...
23242 (pass_manager::register_dump_files): ...method.
23243 (create_pass_tab): Update for moves of globals to fields of
23245 (dump_passes): Move body of implementation into...
23246 (pass_manager::dump_passes): ...here.
23247 (register_pass): Move body of implementation into...
23248 (pass_manager::register_pass): ...here.
23249 (init_optimization_passes): Convert into...
23250 (pass_manager::pass_manager): ...constructor for new
23251 pass_manager class, and initialize the pass_lists array.
23252 (check_profile_consistency): Update for moves of globals to
23253 fields of pass_manager.
23254 (dump_profile_report): Move body of implementation into...
23255 (pass_manager::dump_profile_report): ...here.
23256 (ipa_write_summaries_1): Update for moves of pass lists from
23257 being globals to fields of pass_manager.
23258 (ipa_write_optimization_summaries): Likewise.
23259 (ipa_read_summaries): Likewise.
23260 (ipa_read_optimization_summaries): Likewise.
23261 (execute_all_ipa_stmt_fixups): Likewise.
23263 * statistics.c (statistics_fini): Update for moves of globals to
23264 fields of pass_manager.
23266 * toplev.c (general_init): Replace call to
23267 init_optimization_passes with construction of the pass_manager
23270 * tree-pass.h (all_passes): Remove, in favor of a field of the
23271 same name within the new class pass_manager.
23272 (all_small_ipa_passes): Likewise.
23273 (all_lowering_passes): Likewise.
23274 (all_regular_ipa_passes): Likewise.
23275 (all_lto_gen_passes): Likewise.
23276 (all_late_ipa_passes): Likewise.
23277 (passes_by_id): Likewise.
23278 (passes_by_id_size): Likewise.
23279 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23280 the new class pass_manager.
23281 (get_pass_for_id): Remove.
23283 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23285 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23288 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23290 * arm.md (mulhi3): New expand pattern.
23292 2013-07-30 Jan Hubicka <jh@suse.cz>
23293 Martin Liska <marxin.liska@gmail.com>
23295 * profile.c (compute_value_histograms): Do not ICE when
23296 there is mismatch only on some counters.
23298 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23300 PR rtl-optimization/57637
23301 * function.c (move_insn_for_shrink_wrap): Also check the
23302 GEN set of the LIVE problem for the liveness analysis
23303 if it exists, otherwise give up.
23305 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23307 PR tree-optimization/57993
23308 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23309 replaced statement in the candidate table.
23310 (phi_add_costs): Return infinite cost when the hidden basis does
23311 not dominate all phis on which the candidate is dependent.
23312 (replace_one_candidate): Record replaced statement in the
23315 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23317 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23318 (ashlv2si3): New expander.
23319 (*ashlv2si3_i): New define_insn_and_split.
23320 * predicates.md (float_operation): Allow patterns with three
23321 basic sub-patterns.
23323 PR rtl-optimization/58021
23324 * mode-switching.c (create_pre_exit): Always split off preceding
23325 insns if we are not at the basic block head.
23327 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23329 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23330 (UCLIBC_DYNAMIC_LINKER): New macro.
23331 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23333 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23334 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23336 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23337 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23338 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23339 for SF and DF modes. Use ieee_quad_format for TF mode.
23340 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23341 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23342 (mips_option_override): Handle `-mnan=legacy'.
23343 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23344 `-mabs=2008' and `-mnan=2008'.
23345 (OPTION_DEFAULT_SPECS): Add "nan" default.
23346 (ASM_SPEC): Handle `-mnan='.
23347 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23348 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23349 comment accordingly.
23350 (neg<mode>2): Likewise.
23351 * config/mips/mips.opt (mabs, mnan): New options.
23352 * doc/install.texi (Configuration): Document `--with-nan=' option.
23353 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23355 (MIPS Options): Document them.
23356 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23357 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23358 * configure: Regenerate.
23359 * config.in: Regenerate.
23361 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23363 * config/i386/i386.md (float post-reload splitters): Do not check
23364 for subregs of SSE registers.
23366 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23367 H.J. Lu <hongjiu.lu@intel.com>
23371 * config/i386/i386.md (post-reload splitter
23372 to avoid partial SSE reg dependency stalls): New pattern.
23374 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23376 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23378 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23380 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23381 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23383 2013-07-26 Cary Coutant <ccoutant@google.com>
23385 * dwarf2out.c (die_checksum_ordered): Don't include template
23386 instantiations in signature.
23387 (is_template_parameter): New function.
23388 (is_template_instantiation): New function.
23389 (generate_skeleton_bottom_up): Don't include template instantiations
23391 (generate_skeleton): Likewise.
23392 (break_out_comdat_types): Move recursive call to break out nested
23394 (prune_unused_types_mark_generic_parms_dies): Call
23395 is_template_parameter.
23397 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23399 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23400 uses vector registers.
23401 * config/aarch64/iterators.md: Add attributes rtn and vas.
23403 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23404 Richard Earnshaw <richard.earnshaw@arm.com>
23406 * combine.c (simplify_comparison): Re-canonicalize operands
23408 * config/arm/arm.md (movcond_addsi): New splitter.
23410 2013-07-25 Sterling Augustine <saugustine@google.com>
23412 * dwarf2out.c (size_of_pubnames): Move code to...
23413 (include_pubname_in_output): ...here. New.
23414 (want_pubnames): Rearrange.
23415 (output_pubnames): Call include_pubname_in_output. Move assertion.
23417 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23419 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23421 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23424 * doc/extend.texi: Remove obsolete builtins. Fix
23425 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23427 2013-07-25 Jan Hubicka <jh@suse.cz>
23429 * cgraph.c (release_function_body): Break out from ...
23430 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23431 and DECL_ARGUMENTS.
23432 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23433 old_tree in the map.
23434 (create_specialized_node): Update.
23435 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23437 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23438 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23439 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23440 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23443 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23445 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23446 addsi3_carryin_alt2_<optab>): Correct output template.
23448 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23450 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23451 Adjust for arm_restrict_it.
23452 Remove trailing whitespace.
23454 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23456 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23457 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23459 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23461 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23463 PR rtl-optimization/57960
23464 * lra-constraints.c (process_alt_operands): Use the right mode
23465 when checking strict_low.
23467 2013-07-25 Jan Hubicka <jh@suse.cz>
23469 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23470 * cgraph.c (cgraph_remove_node): Do not release function body
23471 when in cgraph streaming.
23472 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23473 in other partitions are not considered reachable; fix handling of
23476 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23478 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23480 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23485 * config/arm/arm.md ("*sibcall_insn): Replace use of
23486 Ss with US. Adjust output for v5 and v4t.
23487 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23489 * config/arm/constraints.md ("Ss"): Rename to US.
23491 2013-07-25 Terry Guo <terry.guo@arm.com>
23493 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23494 shift_add/shift_sub0/shift_sub1 RTXs.
23496 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23497 Anton Blanchard <anton@au1.ibm.com>
23499 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23500 (altivec_vpks<VI_char>ss): Likewise.
23501 (altivec_vpks<VI_char>us): Likewise.
23502 (altivec_vpku<VI_char>us): Likewise.
23503 (altivec_vpku<VI_char>um): Likewise.
23505 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23507 Introduce context class.
23509 * Makefile.in (CONTEXT_H): New.
23510 (OBJS): Add context.o.
23511 (toplev.o): Add CONTEXT_H to dependencies.
23514 * toplev.c (general_init): Create the singleton gcc::context instance.
23520 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23522 PR rtl-optimization/57968
23523 * mode-switching.c (create_pre_exit): Allow instructions that
23524 don't set a return register to need a non-exit mode.
23526 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23527 Anton Blanchard <anton@au1.ibm.com>
23529 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23530 operands to vperm for little endian.
23531 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23532 of lvsl to create the control mask for a vperm for little endian.
23534 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23535 Anton Blanchard <anton@au1.ibm.com>
23537 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23538 two operands for little-endian.
23540 2013-07-23 Steve Ellcey <sellcey@mips.com>
23542 * config/mips/mips.c (mips_case_values_threshold): New.
23543 (TARGET_CASE_VALUES_THRESHOLD): Define.
23545 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23546 Anton Blanchard <anton@au1.ibm.com>
23548 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23549 selection of field for vector splat in little endian mode.
23551 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23553 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23554 expanders to rs6000.md.
23555 (ior<mode>3): Likewise.
23556 (and<mode>3): Likewise.
23557 (one_cmpl<mode>2): Likewise.
23558 (nor<mode>3): Likewise.
23559 (andc<mode>3): Likewise.
23560 (eqv<mode>3): Likewise.
23561 (nand<mode>3): Likewise.
23562 (orc<mode>3): Likewise.
23564 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23567 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23568 to split multi-word logical operations.
23569 (rs6000_split_logical_di): Likewise.
23570 (rs6000_split_logical): Likewise.
23572 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23573 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23574 and allow TImode operations in 32-bit.
23575 (vsx_and<mode>3_64bit): Likewise.
23576 (vsx_ior<mode>3_32bit): Likewise.
23577 (vsx_ior<mode>3_64bit): Likewise.
23578 (vsx_xor<mode>3_32bit): Likewise.
23579 (vsx_xor<mode>3_64bit): Likewise.
23580 (vsx_one_cmpl<mode>2_32bit): Likewise.
23581 (vsx_one_cmpl<mode>2_64bit): Likewise.
23582 (vsx_nor<mode>3_32bit): Likewise.
23583 (vsx_nor<mode>3_64bit): Likewise.
23584 (vsx_andc<mode>3_32bit): Likewise.
23585 (vsx_andc<mode>3_64bit): Likewise.
23586 (vsx_eqv<mode>3_32bit): Likewise.
23587 (vsx_eqv<mode>3_64bit): Likewise.
23588 (vsx_nand<mode>3_32bit): Likewise.
23589 (vsx_nand<mode>3_64bit): Likewise.
23590 (vsx_orc<mode>3_32bit): Likewise.
23591 (vsx_orc<mode>3_64bit): Likewise.
23593 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23594 logical types in GPRs.
23596 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23597 logical insns to rs6000.md, and allow TImode operations in
23599 (altivec_ior<mode>3): Likewise.
23600 (altivec_xor<mode>3): Likewise.
23601 (altivec_one_cmpl<mode>2): Likewise.
23602 (altivec_nor<mode>3): Likewise.
23603 (altivec_andc<mode>3): Likewise.
23605 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23606 attributes for moving the 128-bit logical operations into
23608 (BOOL_REGS_OUTPUT): Likewise.
23609 (BOOL_REGS_OP1): Likewise.
23610 (BOOL_REGS_OP2): Likewise.
23611 (BOOL_REGS_UNARY): Likewise.
23612 (BOOL_REGS_AND_CR0): Likewise.
23613 (one_cmpl<mode>2): Add support for DI logical operations on
23614 32-bit, splitting the operations to 32-bit.
23615 (anddi3): Likewise.
23616 (iordi3): Likewise.
23617 (xordi3): Likewise.
23618 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23619 changes to combine the 32/64-bit code, allow logical operations on
23620 TI mode in 32-bit, and to use similar match_operator patterns like
23621 scalar mode uses. Combine the Altivec and VSX code for logical
23622 operations, and move it here.
23623 (ior<mode>3, 128-bit types): Likewise.
23624 (xor<mode>3, 128-bit types): Likewise.
23625 (one_cmpl<mode>3, 128-bit types): Likewise.
23626 (nor<mode>3, 128-bit types): Likewise.
23627 (andc<mode>3, 128-bit types): Likewise.
23628 (eqv<mode>3, 128-bit types): Likewise.
23629 (nand<mode>3, 128-bit types): Likewise.
23630 (orc<mode>3, 128-bit types): Likewise.
23631 (and<mode>3_internal): Likewise.
23632 (bool<mode>3_internal): Likewise.
23633 (boolc<mode>3_internal1): Likewise.
23634 (boolc<mode>3_internal2): Likewise.
23635 (boolcc<mode>3_internal1): Likewise.
23636 (boolcc<mode>3_internal2): Likewise.
23637 (eqv<mode>3_internal1): Likewise.
23638 (eqv<mode>3_internal2): Likewise.
23639 (one_cmpl1<mode>3_internal): Likewise.
23641 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23643 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23644 Rename flag_stack_usage to flag_stack_usage_info.
23646 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23648 * config/microblaze/sync.md: New file.
23649 * config/microblaze/microblaze.md: Include sync.md
23650 * config/microblaze/microblaze.c: Add print_operand 'y'.
23651 * config/microblaze/constraints.md: Add memory_contraint
23652 'Q' which is a single register.
23654 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23656 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23658 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23660 * reload.c (find_reloads): Exit loop once we find this operand
23661 cannot be reloaded somehow for this alternative.
23663 * reload.c (find_reloads): Exit loop once we find a hard register.
23665 * rtlanal.c (computed_jump_p): Exit loop once we find label
23668 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23670 * cfgloopmanip.c (remove_path): Exit loop after setting
23673 * gensupport.c (subst_dup): Avoid loop if code is not
23674 MATCH_DUP nor MATCH_OP_DUP.
23676 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23678 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23680 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23682 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23683 true for SP_REGNUM if mode == ptr_mode.
23684 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23685 with value R0_REGNUM + 31.
23687 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23689 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23690 pad pointer-typed argument downward.
23692 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23694 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23695 and __ILP32__ when the ILP32 model is in use.
23697 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23699 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23700 (aarch64_load_symref_appropriately): In the case of
23701 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23702 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23703 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23704 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23705 if 'mode' doesn't equal to 'ptr_mode'.
23706 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23707 'vcall_offset'; change to call aarch64_emit_move differently depending
23708 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23709 to calculate the upper bound of 'vcall_offset'.
23710 (aarch64_cannot_force_const_mem): Change to also return true if
23712 (aarch64_legitimize_reload_address): In the case of large
23713 displacements, add new local variable 'xmode' and an assertion
23714 based on it; change to use 'xmode' to generate the new rtx and
23716 (aarch64_asm_trampoline_template): Change to generate the template
23717 differently depending on TARGET_ILP32 or not; change to use
23718 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23719 (aarch64_trampoline_size): Removed.
23720 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23721 and replace immediate literals with it. Change to use 'ptr_mode'
23722 instead of 'DImode' and call convert_memory_address if the mode
23723 of 'fnaddr' doesn't equal to 'ptr_mode'.
23724 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23726 (aarch64_elf_asm_destructor): Likewise.
23727 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23728 on TARGET_ILP32 instead of aarch64_trampoline_size.
23729 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23730 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23731 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23732 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23733 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23734 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23735 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23736 depending on the value of 'mode'.
23737 (add_losym_<mode>): New.
23738 (ldr_got_small_<mode>): New, based on ldr_got_small.
23739 (ldr_got_small): Remove.
23740 (ldr_got_small_sidi): New.
23741 * config/aarch64/iterators.md (P): New.
23742 (PTR): Change to 'ptr_mode' in the condition.
23744 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23746 * config.gcc (aarch64*-*-*): Support --with-abi.
23747 (aarch64*-*-elf): Support --with-multilib-list.
23748 (aarch64*-*-linux*): Likewise.
23749 (supported_defaults): Add abi to aarch64*-*-*.
23750 * configure.ac: Mention AArch64 for --with-multilib-list.
23751 * configure: Re-generated.
23752 * config/aarch64/biarchilp32.h: New file.
23753 * config/aarch64/biarchlp64.h: New file.
23754 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23756 (MULTILIB_DEFAULTS): Ditto.
23757 (DRIVER_SELF_SPECS): Ditto.
23758 (ASM_SPEC): Update to also substitute -mabi.
23759 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23760 file whose name depends on -mabi= and -mbig-endian.
23761 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23763 (POINTER_SIZE): New define.
23764 (POINTERS_EXTEND_UNSIGNED): Ditto.
23765 (enum aarch64_abi_type): New enumeration tag.
23766 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23767 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23768 (TARGET_ILP32): New define.
23769 * config/aarch64/aarch64.opt (mabi): New.
23770 (aarch64_abi): New.
23771 (ilp32, lp64): New values for -mabi.
23772 * config/aarch64/t-aarch64 (comma): New define.
23773 (MULTILIB_OPTIONS): Ditto.
23774 (MULTILIB_DIRNAMES): Ditto.
23775 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23776 * doc/invoke.texi: Document -mabi for AArch64.
23778 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23780 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23782 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23783 Anton Blanchard <anton@au1.ibm.com>
23785 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23786 endianness when selecting field to splat.
23788 2013-07-22 Eric Christopher <echristo@gmail.com>
23790 * dwarf2out.c (die_odr_checksum): New function to use
23791 CHECKSUM_ macros and ULEB128 for DIE tag.
23792 (generate_type_signature): Use.
23794 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23796 * config.gcc (sparc*-*-*): Accept leon3 processor.
23797 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23798 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23799 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23800 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23801 (mfix-ut699): Adjust comment.
23802 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23803 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23804 (CPP_CPU_SPEC): Likewise.
23805 (ASM_CPU_SPEC): Likewise.
23806 * config/sparc/sparc.c (leon3_cost): New constant.
23807 (sparc_option_override): Add leon3 support.
23808 (mem_ref): New function.
23809 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23810 (sparc_do_work_around_errata): Look into the instruction in the delay
23811 slot and adjust accordingly. Add fix for the data cache nullify issues
23812 of the UT699. Change insertion position for the NOP.
23813 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23814 (leon3_load): New reservation.
23815 (leon_store): Bump latency to 2.
23816 (grfpu): New automaton.
23817 (grfpu_alu): New unit.
23818 (grfpu_ds): Likewise.
23819 (leon_fp_alu): Adjust.
23820 (leon_fp_mult): Delete.
23821 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23822 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23823 * config/sparc/sparc.md (cpu): Add leon3.
23824 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23825 (swapsi): Likewise.
23826 (atomic_test_and_set): Likewise.
23827 (ldstub): Likewise.
23829 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23831 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23832 default for R5900 targets.
23833 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23834 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23835 * config/mips/mips.c (mips_option_override): Report an error for
23836 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23837 for -march=r5900 -mhard-float.
23839 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23841 * df-problems.c (can_move_insns_across): Exit loop once we
23842 find a non-fixed, non-global register.
23844 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23847 * omega.c (omega_eliminate_red): Break after setting red_found.
23848 (omega_problem_has_red_equations): Similarly after setting found.
23849 (omega_query_variable): Similarly after setting coupled.
23851 2013-07-22 Marek Polacek <polacek@redhat.com>
23853 * gimplify.c: Don't include gimple.h twice.
23855 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23857 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23858 instead of TARGET_THUMB1.
23859 (Pz): New constraint.
23860 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23862 (compare_negsi_si): Likewise.
23863 (compare_addsi2_op0): Likewise.
23864 (compare_addsi2_op1): Likewise.
23865 (addsi3_carryin_<optab>): Likewise.
23866 (addsi3_carryin_alt2_<optab>): Likewise.
23867 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23868 for arm_restrict_it.
23869 (subsi3_carryin): Likewise.
23870 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23871 (minmax_arithsi): Disable for arm_restrict_it.
23872 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23873 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23874 (satsi_<SAT:code>_shift): Likewise.
23875 (arm_shiftsi3): Add alternative for 16-bit encoding.
23876 (arm32_movhf): Disable for arm_restrict_it.
23877 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23878 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23880 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23882 * config/arm/arm.md (attribute "insn"): Delete.
23883 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23884 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23885 (not_shiftsi): Update for attribute change.
23886 (not_shiftsi_compare0): Likewise.
23887 (not_shiftsi_compare0_scratch): Likewise.
23888 (arm_one_cmplsi2): Likewise.
23889 (thumb1_one_cmplsi2): Likewise.
23890 (notsi_compare0): Likewise.
23891 (notsi_compare0_scratch): Likewise.
23892 (thumb1_movdi_insn): Likewise.
23893 (arm_movsi_insn): Likewise.
23894 (movhi_insn_arch4): Likewise.
23895 (movhi_bytes): Likewise.
23896 (arm_movqi_insn): Likewise.
23897 (thumb1_movqi_insn): Likewise.
23898 (arm32_movhf): Likewise.
23899 (thumb1_movhf): Likewise.
23900 (arm_movsf_soft_insn): Likewise.
23901 (thumb1_movsf_insn): Likewise.
23902 (thumb_movdf_insn): Likewise.
23903 (movsicc_insn): Likewise.
23904 (movsfcc_soft_insn): Likewise.
23905 (and_scc): Likewise.
23906 (cond_move): Likewise.
23907 (if_move_not): Likewise.
23908 (if_not_move): Likewise.
23909 (if_shift_move): Likewise.
23910 (if_move_shift): Likewise.
23911 (if_shift_shift): Likewise.
23912 (if_not_arith): Likewise.
23913 (if_arith_not): Likewise.
23914 (cond_move_not): Likewise.
23915 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23916 (neon_mov<mode>): Likewise.
23917 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23918 (thumb2_movsi_vfp): Likewise.
23919 (movsf_vfp): Likewise.
23920 (thumb2_movsf_vfp): Likewise.
23921 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23923 (cortexa7_older_only): Likewise.
23924 (cortexa7_younger): Likewise.
23925 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23926 (1020alu_shift_op): Likewise.
23927 (1020alu_shift_reg_op): Likewise.
23928 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23929 (alu_shift_op): Likewise.
23930 (alu_shift_reg_op): Likewise.
23931 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23932 (11_alu_shift_op): Likewise.
23933 (11_alu_shift_reg_op): Likewise.
23934 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23935 (9_alu_shift_reg_op): Likewise.
23936 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23938 (cortex_a15_alu_shift): Likewise.
23939 (cortex_a15_alu_shift_reg): Likewise.
23940 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23941 (cortex_a5_alu_shift): Likewise.
23942 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23944 (cortex_a53_alu_shift): Likewise.
23945 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23947 (cortex_a7_alu_reg): Likewise.
23948 (cortex_a7_alu_shift): Likewise.
23949 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23950 (cortex_a8_alu_shift): Likewise.
23951 (cortex_a8_alu_shift_reg): Likewise.
23952 (cortex_a8_mov): Likewise.
23953 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23954 (cortex_a9_dp_shift): Likewise.
23955 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23956 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23957 (cortex_r4_mov): Likewise.
23958 (cortex_r4_alu_shift): Likewise.
23959 (cortex_r4_alu_shift_reg): Likewise.
23960 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23961 (526_alu_shift_op): Likewise.
23962 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23963 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23964 (626te_alu_shift_op): Likewise.
23965 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23966 (726te_alu_op): Likewise.
23967 (726te_alu_shift_op): Likewise.
23968 (726te_alu_shift_reg_op): Likewise.
23969 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23970 (mp626_alu_shift_op): Likewise.
23971 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23972 (pj4_alu_e1_conds): Likewise.
23973 (pj4_alu): Likewise.
23974 (pj4_alu_conds): Likewise.
23975 (pj4_shift): Likewise.
23976 (pj4_shift_conds): Likewise.
23977 (pj4_alu_shift): Likewise.
23978 (pj4_alu_shift_conds): Likewise.
23980 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23982 * config/arm/predicates.md (shiftable_operator_strict_it):
23984 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23985 Disable cond_exec version for arm_restrict_it.
23986 (thumb2_smaxsi3): Convert to generate cond_exec.
23987 (thumb2_sminsi3): Likewise.
23988 (thumb32_umaxsi3): Likewise.
23989 (thumb2_uminsi3): Likewise.
23990 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23991 (thumb2_neg_abssi2): Likewise.
23992 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23993 (thumb2_movsicc_insn): Adjust alternatives.
23994 (thumb2_mov_negscc): Disable for arm_restrict_it.
23995 (thumb2_mov_negscc_strict_it): New pattern.
23996 (thumb2_mov_notscc_strict_it): New pattern.
23997 (thumb2_mov_notscc): Disable for arm_restrict_it.
23998 (thumb2_ior_scc): Likewise.
23999 (thumb2_ior_scc_strict_it): New pattern.
24000 (thumb2_cond_move): Adjust for arm_restrict_it.
24001 (thumb2_cond_arith): Disable for arm_restrict_it.
24002 (thumb2_cond_arith_strict_it): New pattern.
24003 (thumb2_cond_sub): Adjust for arm_restrict_it.
24004 (thumb2_movcond): Likewise.
24005 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24006 (thumb2_zero_extendhisi2_v6): Likewise.
24007 (thumb2_zero_extendqisi2_v6): Likewise.
24008 (orsi_notsi_si): Likewise.
24009 (orsi_not_shiftsi_si): Likewise.
24011 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24013 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24014 instruction sequence is 1 byte shorter.
24016 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24018 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24019 it is not needed after split.
24021 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24024 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24025 second label for nonlocal goto receivers. Don't output pic base labels
24026 unless we're producing PIC; mark that action unreachable().
24027 (ix86_save_reg): If the function contains a nonlocal label, save the
24029 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24030 * config/darwin.c (emitted_pic_label_num): New GTY.
24031 (update_pic_label_number_if_needed): New.
24032 (machopic_output_function_base_name): Adjust for nonlocal receiver
24034 (machopic_should_output_picbase_label): New.
24035 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24036 (nonlocal_goto_receiver): New insn and split.
24038 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24040 * config/aarch64/aarch64-builtins.c
24041 (aarch64_fold_builtin): Fold abs in all modes.
24042 * config/aarch64/aarch64-simd-builtins.def
24043 (abs): Enable for all modes.
24044 * config/aarch64/arm_neon.h
24045 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24046 (vabs_f64): Add missing intrinsic.
24048 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24050 * config/aarch64/arm_neon.h (vabs_s64): New function
24052 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24055 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24056 * config/avr/avr.md (adjust_len): Add `round'.
24057 * config/avr/avr-protos.h (avr_out_round): New prototype.
24058 (avr_out_plus): Add `out_label' argument.
24059 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24060 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24061 Handle the case where `insn' is just a pattern.
24062 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24063 (avr_out_round): New function.
24064 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24066 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24068 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24069 Add check for flag_stack_usage to handle -fstack-usage support
24071 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24073 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24074 interaction for new Power8 flags and VSX.
24076 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24078 PR middle-end/57698
24079 * tree-inline.c (expand_call_inline): Emit errors during
24080 early_inlining only if optimization is not turned on.
24082 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24086 * passes.c (init_optimization_passes): Move the construction of
24087 the pass hierarchy into a new passes.def file.
24089 * Makefile.in (passes.o): Add dependency on passes.def.
24091 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24093 * passes.c (init_optimization_passes): Introduce macros for
24094 constructing the tree of passes (INSERT_PASSES_AFTER,
24095 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24096 TERMINATE_PASS_LIST).
24098 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24099 Wei Mi <wmi@google.com>
24101 PR rtl-optimization/57878
24102 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24104 (reload_pseudo_compare_func): Check nregs first for reload
24107 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24109 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24111 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24113 * read-rtl.c (validate_const_int): Once an invalid character is
24114 seen, quit the loop.
24116 * gengtype.c (write_roots): Similarly once we find the "deletable"
24117 or "if_marked" option.
24119 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24121 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24122 "xtab" and "sat". Move value "clz" from here to ...
24123 (attriubte "type"): ... here.
24124 (satsi_<SAT:code>): Delete "insn" attribute.
24125 (satsi_<SAT:code>_shift): Likewise.
24126 (arm_zero_extendqisi2addsi): Likewise.
24127 (arm_extendqisi2addsi): Likewise.
24128 (clzsi2): Update for attribute changes.
24129 (rbitsi2): Likewise.
24130 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24132 (arm_usatsihi): Likewise.
24133 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24135 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24137 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24138 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24139 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24140 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24141 in alphabetical order.
24142 (attribute "core_cycles"): Update for attribute changes.
24143 (arm_addsi3): Likewise.
24144 (addsi3_compare0): Likewise.
24145 (addsi3_compare0_scratch): Likewise.
24146 (addsi3_compare_op1): Likewise.
24147 (addsi3_compare_op2): Likewise.
24148 (compare_addsi2_op0): Likewise.
24149 (compare_addsi2_op1): Likewise.
24150 (addsi3_carryin_shift_<optab>): Likewise.
24151 (subsi3_carryin_shift): Likewise.
24152 (rsbsi3_carryin_shift): Likewise.
24153 (arm_subsi3_insn): Likewise.
24154 (subsi3_compare0): Likewise.
24155 (subsi3_compare): Likewise.
24156 (arm_andsi3_insn): Likewise.
24157 (thumb1_andsi3_insn): Likewise.
24158 (andsi3_compare0): Likewise.
24159 (andsi3_compare0_scratch): Likewise.
24160 (zeroextractsi_compare0_scratch
24161 (andsi_not_shiftsi_si): Likewise.
24162 (iorsi3_insn): Likewise.
24163 (iorsi3_compare0): Likewise.
24164 (iorsi3_compare0_scratch): Likewise.
24165 (arm_xorsi3): Likewise.
24166 (thumb1_xorsi3_insn): Likewise.
24167 (xorsi3_compare0): Likewise.
24168 (xorsi3_compare0_scratch): Likewise.
24169 (satsi_<SAT:code>_shift): Likewise.
24171 (arm_shiftsi3): Likewise.
24172 (shiftsi3_compare0): Likewise.
24173 (not_shiftsi): Likewise.
24174 (not_shiftsi_compare0): Likewise.
24175 (not_shiftsi_compare0_scratch): Likewise.
24176 (arm_one_cmplsi2): Likewise.
24177 (thumb_one_complsi2): Likewise.
24178 (notsi_compare0): Likewise.
24179 (notsi_compare0_scratch): Likewise.
24180 (thumb1_zero_extendhisi2): Likewise.
24181 (arm_zero_extendhisi2): Likewise.
24182 (arm_zero_extendhisi2_v6): Likewise.
24183 (arm_zero_extendhisi2addsi): Likewise.
24184 (thumb1_zero_extendqisi2): Likewise.
24185 (thumb1_zero_extendqisi2_v6): Likewise.
24186 (arm_zero_extendqisi2): Likewise.
24187 (arm_zero_extendqisi2_v6): Likewise.
24188 (arm_zero_extendqisi2addsi): Likewise.
24189 (thumb1_extendhisi2): Likewise.
24190 (arm_extendhisi2): Likewise.
24191 (arm_extendhisi2_v6): Likewise.
24192 (arm_extendqisi): Likewise.
24193 (arm_extendqisi_v6): Likewise.
24194 (arm_extendqisi2addsi): Likewise.
24195 (thumb1_extendqisi2): Likewise.
24196 (thumb1_movdi_insn): Likewise.
24197 (arm_movsi_insn): Likewise.
24198 (movsi_compare0): Likewise.
24199 (movhi_insn_arch4): Likewise.
24200 (movhi_bytes): Likewise.
24201 (arm_movqi_insn): Likewise.
24202 (thumb1_movqi_insn): Likewise.
24203 (arm32_movhf): Likewise.
24204 (thumb1_movhf): Likewise.
24205 (arm_movsf_soft_insn): Likewise.
24206 (thumb1_movsf_insn): Likewise.
24207 (movdf_soft_insn): Likewise.
24208 (thumb_movdf_insn): Likewise.
24209 (arm_cmpsi_insn): Likewise.
24210 (cmpsi_shiftsi): Likewise.
24211 (cmpsi_shiftsi_swp): Likewise.
24212 (arm_cmpsi_negshiftsi_si): Likewise.
24213 (movsicc_insn): Likewise.
24214 (movsfcc_soft_insn): Likewise.
24215 (arith_shiftsi): Likewise.
24216 (arith_shiftsi_compare0
24217 (arith_shiftsi_compare0_scratch
24218 (sub_shiftsi): Likewise.
24219 (sub_shiftsi_compare0
24220 (sub_shiftsi_compare0_scratch
24221 (and_scc): Likewise.
24222 (cond_move): Likewise.
24223 (if_plus_move): Likewise.
24224 (if_move_plus): Likewise.
24225 (if_move_not): Likewise.
24226 (if_not_move): Likewise.
24227 (if_shift_move): Likewise.
24228 (if_move_shift): Likewise.
24229 (if_shift_shift): Likewise.
24230 (if_not_arith): Likewise.
24231 (if_arith_not): Likewise.
24232 (cond_move_not): Likewise.
24233 (thumb1_ashlsi3): Set type attribute.
24234 (thumb1_ashrsi3): Likewise.
24235 (thumb1_lshrsi3): Likewise.
24236 (thumb1_rotrsi3): Likewise.
24237 (shiftsi3_compare0_scratch): Likewise.
24238 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24239 (neon_mov<mode>): Likewise.
24240 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24242 (thumb2_movsi_insn): Likewise.
24243 (thumb2_cmpsi_neg_shiftsi): Likewise.
24244 (thumb2_extendqisi_v6): Likewise.
24245 (thumb2_zero_extendhisi2_v6): Likewise.
24246 (thumb2_zero_extendqisi2_v6): Likewise.
24247 (thumb2_shiftsi3_short): Likewise.
24248 (thumb2_addsi3_compare0_scratch): Likewise.
24249 (orsi_not_shiftsi_si): Likewise.
24250 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24251 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24253 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24254 (1020alu_shift_op): Likewise.
24255 (1020alu_shift_reg_op): Likewise.
24256 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24257 (alu_shift_op): Likewise.
24258 (alu_shift_reg_op): Likewise.
24259 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24260 (11_alu_shift_op): Likewise.
24261 (11_alu_shift_reg_op): Likewise.
24262 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24263 (9_alu_shift_reg_op): Likewise.
24264 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24266 (cortex_a15_alu_shift): Likewise.
24267 (cortex_a15_alu_shift_reg): Likewise.
24268 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24270 (cortex_a5_alu_shift): Likewise.
24271 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24273 (cortex_a53_alu_shift): Likewise.
24274 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24276 (cortex_a7_alu_reg): Likewise.
24277 (cortex_a7_alu_shift): Likewise.
24278 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24280 (cortex_a8_alu_shift): Likewise.
24281 (cortex_a8_alu_shift_reg): Likewise.
24282 (cortex_a8_mov): Likewise.
24283 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24284 (cortex_a9_dp_shift): Likewise.
24285 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24287 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24289 (cortex_r4_mov): Likewise.
24290 (cortex_r4_alu_shift): Likewise.
24291 (cortex_r4_alu_shift_reg): Likewise.
24292 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24293 (526_alu_shift_op): Likewise.
24294 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24295 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24296 (626te_alu_shift_op): Likewise.
24297 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24298 (726te_alu_op): Likewise.
24299 (726te_alu_shift_op): Likewise.
24300 (726te_alu_shift_reg_op): Likewise.
24301 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24302 (mp626_alu_shift_op): Likewise.
24303 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24304 (pj4_alu_e1_conds): Likewise.
24305 (pj4_alu): Likewise.
24306 (pj4_alu_conds): Likewise.
24307 (pj4_shift): Likewise.
24308 (pj4_shift_conds): Likewise.
24309 (pj4_alu_shift): Likewise.
24310 (pj4_alu_shift_conds): Likewise.
24311 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24313 (cortexa7_older_only): Likewise.
24314 (cortexa7_younger): Likewise.
24316 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24318 * ipa-pure-const.c (generate_summary): Rename to...
24319 (pure_const_generate_summary): ... this.
24321 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24323 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24325 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24328 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24331 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24333 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24334 enabled without -march=zEC12.
24335 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24338 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24340 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24341 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24342 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24343 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24344 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24345 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24346 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24348 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24349 and ISA_HAS_NMADD3_NMSUB3.
24350 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24351 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24352 (nmsub4<mode>, nmsub3<mode>): Likewise.
24353 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24355 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24357 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24358 TARGET_MIPS5400 checking.
24360 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24361 Peter Bergner <bergner@vnet.ibm.com>
24363 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24364 registers in the comment.
24365 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24366 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24367 rather than FIRST_PSEUDO_REGISTERS.
24369 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24371 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24372 enable extra ISA flags with TARGET_HTM.
24374 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24376 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24379 2013-07-15 Cong Hou <congh@google.com>
24381 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24382 in compare function for sorting.
24384 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24386 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24387 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24388 * config/rs6000/rs6000.opt: Add -mhtm option.
24389 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24390 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24391 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24392 __HTM__ if the HTM instructions are available.
24393 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24394 htm_spr_reg_operand): New define_predicates.
24395 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24396 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24398 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24399 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24400 HTM builtin functions.
24401 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24402 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24403 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24404 (rs6000_builtin_mask_calculate): Likewise.
24405 (rs6000_option_override_internal): Likewise.
24406 (bdesc_htm): Add new HTM builtin support.
24407 (htm_spr_num): New function.
24408 (htm_spr_regno): Likewise.
24409 (rs6000_htm_spr_icode): Likewise.
24410 (htm_expand_builtin): Likewise.
24411 (htm_init_builtins): Likewise.
24412 (rs6000_expand_builtin): Add support for HTM builtin functions.
24413 (rs6000_init_builtins): Likewise.
24414 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24416 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24417 (TARGET_HTM, MASK_HTM): Define macros.
24418 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24419 (FIXED_REGISTERS): Likewise.
24420 (CALL_USED_REGISTERS): Likewise.
24421 (CALL_REALLY_USED_REGISTERS): Likewise.
24422 (REG_ALLOC_ORDER): Likewise.
24423 (enum reg_class): Likewise.
24424 (REG_CLASS_NAMES): Likewise.
24425 (REG_CLASS_CONTENTS): Likewise.
24426 (REGISTER_NAMES): Likewise.
24427 (ADDITIONAL_REGISTER_NAMES): Likewise.
24428 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24429 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24430 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24431 * config/rs6000/htm.md: New file.
24432 * config/rs6000/htmintrin.h: New file.
24433 * config/rs6000/htmxlintrin.h: New file.
24435 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24437 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24438 Define SYMBOL_TINY_GOT, update comment.
24439 * config/aarch64/aarch64.c
24440 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24441 (aarch64_expand_mov_immediate): Likewise.
24442 (aarch64_print_operand): Likewise.
24443 (aarch64_classify_symbol): Likewise.
24444 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24445 (ldr_got_tiny): Define.
24447 2013-07-13 Tobias Grosser <tobias@grosser.es>
24449 PR tree-optimization/54094
24450 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24451 scheduling dimension for the parallelism check from the polyhedral
24452 information in the AST.
24453 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24456 2013-07-13 Jason Merrill <jason@redhat.com>
24458 * print-tree.c (debug_vec_tree): Use debug_raw.
24459 (debug_raw (vec<tree, va_gc> &)): New.
24460 (debug_raw (vec<tree, va_gc> *)): New.
24461 * tree.h: Declare them.
24463 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24465 * ifcvt.c (ifcvt_after_combine): New static variable.
24466 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24468 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24469 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24470 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24472 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24474 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24476 2013-07-12 Michael Matz <matz@suse.de>
24478 PR middle-end/55771
24479 * convert.c (convert_to_real): Reject non-float inner types.
24481 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24483 * config/aarch64/aarch64-protos.h
24484 (aarch64_simd_immediate_valid_for_move): Remove.
24485 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24486 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24488 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24490 2013-07-11 Steve Ellcey <sellcey@mips.com>
24492 * config/mips/mips.c (mips_conditional_register_usage): Do not
24493 use t[0-7] registers in MIPS16 mode when optimizing for size.
24495 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24497 * config/i386/i386.c (dispatch_function_versions): Fix array
24498 indexing of function_version_info to match actual_versions.
24500 2013-07-11 Teresa Johnson <tejohnson@google.com>
24502 * vec.h (struct va_gc): Move release out-of-line.
24503 (va_gc::release): Call ggc_free on released vec.
24505 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24507 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24508 Require GOT register as additional operand in UNSPEC.
24509 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24510 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24511 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24512 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24513 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24514 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24515 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24517 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24520 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24521 name seen by assembler/linker rather if available.
24523 2013-07-11 Andreas Schwab <schwab@suse.de>
24525 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24527 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24529 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24531 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24533 * doc/tm.texi.in: Move hook documentation to ....
24534 * target.def: ... here.
24536 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24537 text on @hook line.
24538 * doc/tm.texi: Regenerate.
24540 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24543 * doc/invoke.texi: Document -Wconditionally-supported.
24545 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24548 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24551 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24554 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24555 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24556 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24557 Remove duplicate devices.
24558 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24559 * config/avr/t-multilib: Regenerate.
24560 * config/avr/avr-tables.opt: Regenerate.
24561 * doc/avr-mmcu.texi: Regenerate.
24563 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24566 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24568 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24570 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24571 the cost of MULT when optimizing for size.
24573 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24575 * config/cr16/cr16-protos.h: Don't include target.h.
24577 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24579 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24580 adjust register size for TDmode and TFmode for VSX registers.
24582 2013-07-08 Kai Tietz <ktietz@redhat.com>
24585 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24586 hook_bool_const_tree_true.
24588 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24590 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24591 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24592 * config/s390/s390.md: Define FPR*_REGNUM constants.
24593 Fix FPR2_REGNUM constant (18 -> 17).
24594 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24595 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24596 ("trunc<BFP:mode><DFP_ALL:mode>2")
24597 ("trunc<DFP_ALL:mode><BFP:mode>2")
24598 ("*extend<BFP:mode><DFP_ALL:mode>2")
24599 ("*extend<DFP_ALL:mode><BFP:mode>2")
24600 ("extend<BFP:mode><DFP_ALL:mode>2")
24601 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24604 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24606 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24608 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24610 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24611 and cfun_fpr_bit_p to cfun_fpr_save_p.
24612 (s390_frame_area, s390_register_info, s390_frame_info)
24613 (s390_emit_prologue, s390_emit_epilogue)
24614 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24616 * config/s390/s390.h: Define *_REGNUM macros for floating point
24619 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24621 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24623 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24625 PR rtl-optimization/57786
24626 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24627 and break out of the loop when it is set to false.
24629 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24632 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24633 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24634 (const_int 63)) 0)).
24635 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24636 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24637 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24639 PR rtl-optimization/57829
24640 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24641 mask bits outside of mode are just sign-extension from mode to HWI.
24643 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24645 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24646 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24647 adjust_address instead of change_address to keep info about alignment.
24648 (emit_strmov): Remove.
24649 (emit_memmov): New function.
24650 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24651 (expand_movmem_epilogue): Likewise and return updated rtx for
24653 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24654 destination and source.
24655 (decide_alignment): Refactor, handle vector_loop.
24656 (ix86_expand_movmem): Likewise.
24657 (ix86_expand_setmem): Likewise.
24658 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24660 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24662 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24663 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24665 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24667 * config/i386/sse.md (sse_movlhps): Change alternative 3
24668 of operand 2 to "m".
24670 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24673 * config/i386/sse.md (iptr): New mode attribute.
24674 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24675 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24676 (<sse>_vmmul<mode>3): Ditto.
24677 (<sse>_vmdiv<mode>3): Ditto.
24678 (sse_vmrcpv4sf2): Ditto.
24679 (<sse>_vmsqrt<mode>2): Ditto.
24680 (sse_vmrsqrtv4sf2): Ditto.
24681 (<sse>_vm<code><mode>3): Ditto.
24682 (avx_vmcmp<mode>3): Ditto.
24683 (<sse>_vmmaskcmp<mode>3): Ditto.
24684 (<sse>_comi): Ditto.
24685 (<sse>_ucomi): Ditto.
24686 (*xop_vmfrcz_<mode>): Ditto.
24687 (*fmai_fmadd_<mode>): Ditto.
24688 (*fmai_fmsub_<mode>): Ditto.
24689 (*fmai_fnmadd_<mode>): Ditto.
24690 (*fmai_fnmsub_<mode>): Ditto.
24691 (*fma4i_vmfmadd_<mode>): Ditto.
24692 (*fma4i_vmfmsub_<mode>): Ditto.
24693 (*fma4i_vmfnmadd_<mode>): Ditto.
24694 (*fma4i_vmfnmsub_<mode>): Ditto.
24695 (*xop_vmfrcz_<mode>): Ditto.
24696 (sse_cvtps2pi): Ditto.
24697 (sse_cvttps2pi): Ditto.
24698 (sse_cvtss2si): Ditto.
24699 (sse_cvtss2si_2): Ditto.
24700 (sse_cvtss2siq_2): Ditto.
24701 (sse_cvttss2si): Ditto.
24702 (sse_cvttss2siq): Ditto.
24703 (sse_cvtsd2si): Ditto.
24704 (sse_cvtsd2si_2): Ditto.
24705 (sse_cvtsd2siq_2): Ditto.
24706 (sse_cvttsd2si): Ditto.
24707 (sse_cvttsd2siq): Ditto.
24708 (sse_cvtsd2ss): Ditto.
24709 (sse_cvtss2sd): Ditto.
24710 (avx2_pbroadcast<mode>): Ditto.
24711 (avx2_pbroadcast<mode>_1): Ditto.
24712 (*avx_vperm_broadcast_v4sf): Ditto.
24714 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24715 (sse_movlhps): Ditto.
24716 (sse_storehps): Ditto.
24717 (sse_loadhps): Ditto.
24718 (sse_storelps): Ditto.
24719 (sse_loadlps): Ditto.
24720 (*vec_concatv4sf): Ditto.
24721 (*vec_interleave_highv2df): Ditto.
24722 (*vec_interleave_lowv2df): Ditto.
24723 (*vec_extractv2df_1_sse): Ditto.
24724 (*vec_extractv2df_0_sse): Ditto.
24725 (sse2_storelpd): Ditto.
24726 (sse2_loadlpd): Ditto.
24727 (sse2_movsd): Ditto.
24728 (*vec_concatv4si): Ditto.
24729 (vec_concatv2di): Ditto.
24731 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24732 for Intel asm dialect.
24733 (mmx_punpcklwd): Ditto.
24734 (mmx_punpckldq): Ditto.
24736 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24737 for intel assembler dialect.
24739 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24742 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24743 for BUILT_IN_C{LZ,LRSB}*.
24744 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24745 * tree-vrp.c (extract_range_basic): Handle
24746 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24747 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24748 fall thru to code calling set_value*.
24749 * builtins.c (expand_builtin): Remove *IMAX cases.
24750 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24751 if width is bigger than 2*HWI.
24753 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24755 PR rtl-optimization/55342
24756 * lra-int.h (lra_subreg_reload_pseudos): New.
24757 * lra.c: Add undoing optional reloads to the block diagram.
24758 (lra_subreg_reload_pseudos): New.
24759 (lra_optional_reload_pseudos): Change comments.
24760 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24761 lra_optional_reload_pseudos after undo transformations.
24762 * lra-assigns.c (pseudo_prefix_title): New.
24763 (lra_setup_reg_renumber): Use it.
24764 (spill_for): Ditto. Check subreg reload pseudos too.
24765 (assign_by_spills): Consider subreg reload pseudos too.
24766 * lra-constraints.c (simplify_operand_subreg): Use
24767 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24768 (curr_insn_transform): Recognize and do optional reloads.
24769 (undo_optional_reloads): New.
24770 (lra_undo_inheritance): Call undo_optional_reloads.
24772 2013-07-05 Thomas Quinot <quinot@adacore.com>
24774 * tree-complex.c (expand_complex_operations_1): Fix typo.
24776 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24778 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24779 (tune_params): New member 'const vec_costs'.
24780 * config/aarch64/aarch64.c (generic_vector_cost): New.
24781 (generic_tunings): New member 'generic_vector_cost'.
24782 (aarch64_builtin_vectorization_cost): New.
24783 (aarch64_add_stmt_cost): New.
24784 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24785 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24787 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24790 * config/i386/predicates.md (vsib_address_operand): Disallow
24791 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24793 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24795 PR middle-end/55030
24796 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24797 expand_builtin_setjmp_receiver.
24798 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24799 with NULL for the label parameter.
24800 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24801 the frame-pointer. Adjust comments.
24802 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24803 only if LABEL is non-NULL.
24805 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24807 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24808 (ARM_ABI_AAPCS64): Ditto.
24810 (ARM_DEFAULT_ABI): Ditto.
24812 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24814 * config/aarch64/aarch64-builtins.c
24815 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24816 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24818 * config/aarch64/aarch64-simd.md
24819 (aarch64_ld1<VALL:mode>): New.
24820 (aarch64_st1<VALL:mode>): Likewise.
24821 * config/aarch64/arm_neon.h
24822 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24824 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24826 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24828 (ix86_option_override_internal):Turn on all -mavx target flags by
24829 default as they are dependent on AVX anyway.
24831 2013-07-02 Cary Coutant <ccoutant@google.com>
24833 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24834 deterministic hash.
24835 (loc_checksum_ordered): Likewise.
24836 (hash_loc_operands): Remove inline keyword.
24838 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24840 PR tree-optimization/57741
24841 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24842 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24843 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24844 Allow REAL_CST step_exprs if flag_associative_math.
24845 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24847 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24849 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24851 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24853 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24855 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24857 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24859 (iorsi3_insn): Likewise.
24860 (arm_xorsi3): Likewise.
24862 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24864 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24866 (attribute "type"): ... here, and prefix with "wmmx_".
24867 (attribute "core_cycles"): Update for attribute changes.
24868 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24869 (tbcstv4hi): Likewise.
24870 (tbcstv2si): Likewise.
24871 (iwmmxt_iordi3): Likewise.
24872 (iwmmxt_xordi3): Likewise.
24873 (iwmmxt_anddi3): Likewise.
24874 (iwmmxt_nanddi3): Likewise.
24875 (iwmmxt_arm_movdi): Likewise.
24876 (iwmmxt_movsi_insn): Likewise.
24877 (mov<mode>_internal): Likewise.
24878 (and<mode>3_iwmmxt): Likewise.
24879 (ior<mode>3_iwmmxt): Likewise.
24880 (xor<mode>3_iwmmxt): Likewise.
24881 (add<mode>3_iwmmxt): Likewise.
24882 (ssaddv8qi3): Likewise.
24883 (ssaddv4hi3): Likewise.
24884 (ssaddv2si3): Likewise.
24885 (usaddv8qi3): Likewise.
24886 (usaddv4hi3): Likewise.
24887 (usaddv2si3): Likewise.
24888 (sub<mode>3_iwmmxt): Likewise.
24889 (sssubv8qi3): Likewise.
24890 (sssubv4hi3): Likewise.
24891 (sssubv2si3): Likewise.
24892 (ussubv8qi3): Likewise.
24893 (ussubv4hi3): Likewise.
24894 (ussubv2si3): Likewise.
24895 (mulv4hi3_iwmmxt): Likewise.
24896 (smulv4hi3_highpart): Likewise.
24897 (umulv4hi3_highpart): Likewise.
24898 (iwmmxt_wmacs): Likewise.
24899 (iwmmxt_wmacsz): Likewise.
24900 (iwmmxt_wmacu): Likewise.
24901 (iwmmxt_wmacuz): Likewise.
24902 (iwmmxt_clrdi): Likewise.
24903 (iwmmxt_clrv8qi): Likewise.
24904 (iwmmxt_clr4hi): Likewise.
24905 (iwmmxt_clr2si): Likewise.
24906 (iwmmxt_uavgrndv8qi3): Likewise.
24907 (iwmmxt_uavgrndv4hi3): Likewise.
24908 (iwmmxt_uavgv8qi3): Likewise.
24909 (iwmmxt_uavgv4hi3): Likewise.
24910 (iwmmxt_tinsrb): Likewise.
24911 (iwmmxt_tinsrh): Likewise.
24912 (iwmmxt_tinsrw): Likewise.
24913 (iwmmxt_textrmub): Likewise.
24914 (iwmmxt_textrmsb): Likewise.
24915 (iwmmxt_textrmuh): Likewise.
24916 (iwmmxt_textrmsh): Likewise.
24917 (iwmmxt_textrmw): Likewise.
24918 (iwmxxt_wshufh): Likewise.
24919 (eqv8qi3): Likewise.
24920 (eqv4hi3): Likewise.
24921 (eqv2si3): Likewise.
24922 (gtuv8qi3): Likewise.
24923 (gtuv4hi3): Likewise.
24924 (gtuv2si3): Likewise.
24925 (gtv8qi3): Likewise.
24926 (gtv4hi3): Likewise.
24927 (gtv2si3): Likewise.
24928 (smax<mode>3_iwmmxt): Likewise.
24929 (umax<mode>3_iwmmxt): Likewise.
24930 (smin<mode>3_iwmmxt): Likewise.
24931 (umin<mode>3_iwmmxt): Likewise.
24932 (iwmmxt_wpackhss): Likewise.
24933 (iwmmxt_wpackwss): Likewise.
24934 (iwmmxt_wpackdss): Likewise.
24935 (iwmmxt_wpackhus): Likewise.
24936 (iwmmxt_wpackwus): Likewise.
24937 (iwmmxt_wpackdus): Likewise.
24938 (iwmmxt_wunpckihb): Likewise.
24939 (iwmmxt_wunpckihh): Likewise.
24940 (iwmmxt_wunpckihw): Likewise.
24941 (iwmmxt_wunpckilb): Likewise.
24942 (iwmmxt_wunpckilh): Likewise.
24943 (iwmmxt_wunpckilw): Likewise.
24944 (iwmmxt_wunpckehub): Likewise.
24945 (iwmmxt_wunpckehuh): Likewise.
24946 (iwmmxt_wunpckehuw): Likewise.
24947 (iwmmxt_wunpckehsb): Likewise.
24948 (iwmmxt_wunpckehsh): Likewise.
24949 (iwmmxt_wunpckehsw): Likewise.
24950 (iwmmxt_wunpckelub): Likewise.
24951 (iwmmxt_wunpckeluh): Likewise.
24952 (iwmmxt_wunpckeluw): Likewise.
24953 (iwmmxt_wunpckelsb): Likewise.
24954 (iwmmxt_wunpckelsh): Likewise.
24955 (iwmmxt_wunpckelsw): Likewise.
24956 (ror<mode>3): Likewise.
24957 (ashr<mode>3_iwmmxt): Likewise.
24958 (lshr<mode>3_iwmmxt): Likewise.
24959 (ashl<mode>3_iwmmxt): Likewise.
24960 (ror<mode>3_di): Likewise.
24961 (ashr<mode>3_di): Likewise.
24962 (lshr<mode>3_di): Likewise.
24963 (ashl<mode>3_di): Likewise.
24964 (iwmmxt_wmadds): Likewise.
24965 (iwmmxt_wmaddu): Likewise.
24966 (iwmmxt_tmia): Likewise.
24967 (iwmmxt_tmiaph): Likewise.
24968 (iwmmxt_tmiabb): Likewise.
24969 (iwmmxt_tmiatb): Likewise.
24970 (iwmmxt_tmiabt): Likewise.
24971 (iwmmxt_tmiatt): Likewise.
24972 (iwmmxt_tmovmskb): Likewise.
24973 (iwmmxt_tmovmskh): Likewise.
24974 (iwmmxt_tmovmskw): Likewise.
24975 (iwmmxt_waccb): Likewise.
24976 (iwmmxt_wacch): Likewise.
24977 (iwmmxt_waccw): Likewise.
24978 (iwmmxt_waligni): Likewise.
24979 (iwmmxt_walignr): Likewise.
24980 (iwmmxt_walignr0): Likewise.
24981 (iwmmxt_walignr1): Likewise.
24982 (iwmmxt_walignr2): Likewise.
24983 (iwmmxt_walignr3): Likewise.
24984 (iwmmxt_wsadb): Likewise.
24985 (iwmmxt_wsadh): Likewise.
24986 (iwmmxt_wsadbz): Likewise.
24987 (iwmmxt_wsadhz): Likewise.
24988 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24989 (iwmmxt_wabsdiffb): Likewise.
24990 (iwmmxt_wabsdiffh): Likewise.
24991 (iwmmxt_wabsdiffw): Likewise.
24992 (iwmmxt_waddsubhx): Likewise
24993 (iwmmxt_wsubaddhx): Likewise.
24994 (addc<mode>3): Likewise.
24995 (iwmmxt_avg4): Likewise.
24996 (iwmmxt_avg4r): Likewise.
24997 (iwmmxt_wmaddsx): Likewise.
24998 (iwmmxt_wmaddux): Likewise.
24999 (iwmmxt_wmaddsn): Likewise.
25000 (iwmmxt_wmaddun): Likewise.
25001 (iwmmxt_wmulwsm): Likewise.
25002 (iwmmxt_wmulwum): Likewise.
25003 (iwmmxt_wmulsmr): Likewise.
25004 (iwmmxt_wmulumr): Likewise.
25005 (iwmmxt_wmulwsmr): Likewise.
25006 (iwmmxt_wmulwumr): Likewise.
25007 (iwmmxt_wmulwl): Likewise.
25008 (iwmmxt_wqmulm): Likewise.
25009 (iwmmxt_wqmulwm): Likewise.
25010 (iwmmxt_wqmulmr): Likewise.
25011 (iwmmxt_wqmulwmr): Likewise.
25012 (iwmmxt_waddbhusm): Likewise.
25013 (iwmmxt_waddbhusl): Likewise.
25014 (iwmmxt_wqmiabb): Likewise.
25015 (iwmmxt_wqmiabt): Likewise.
25016 (iwmmxt_wqmiatb): Likewise.
25017 (iwmmxt_wqmiatt): Likewise.
25018 (iwmmxt_wqmiabbn): Likewise.
25019 (iwmmxt_wqmiabtn): Likewise.
25020 (iwmmxt_wqmiatbn): Likewise.
25021 (iwmmxt_wqmiattn): Likewise.
25022 (iwmmxt_wmiabb): Likewise.
25023 (iwmmxt_wmiabt): Likewise.
25024 (iwmmxt_wmiatb): Likewise.
25025 (iwmmxt_wmiatt): Likewise.
25026 (iwmmxt_wmiabbn): Likewise.
25027 (iwmmxt_wmiabtn): Likewise.
25028 (iwmmxt_wmiatbn): Likewise.
25029 (iwmmxt_wmiattn): Likewise.
25030 (iwmmxt_wmiawbb): Likewise.
25031 (iwmmxt_wmiawbt): Likewise.
25032 (iwmmxt_wmiawtb): Likewise.
25033 (iwmmxt_wmiawtt): Likewise.
25034 (iwmmxt_wmiawbbn): Likewise.
25035 (iwmmxt_wmiawbtn): Likewise.
25036 (iwmmxt_wmiawtbn): Likewise.
25037 (iwmmxt_wmiawttn): Likewise.
25038 (iwmmxt_wmerge): Likewise.
25039 (iwmmxt_tandc<mode>3): Likewise.
25040 (iwmmxt_torc<mode>3): Likewise.
25041 (iwmmxt_torvsc<mode>3): Likewise.
25042 (iwmmxt_textrc<mode>3): Likewise.
25043 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25044 (wmmxt_pack): Likewise.
25045 (wmmxt_mult_c1): Likewise.
25046 (wmmxt_mult_c2): Likewise.
25047 (wmmxt_alu_c1): Likewise.
25048 (wmmxt_alu_c2): Likewise.
25049 (wmmxt_alu_c3): Likewise.
25050 (wmmxt_transfer_c1): Likewise.
25051 (wmmxt_transfer_c2): Likewise.
25052 (wmmxt_transfer_c3): Likewise.
25053 (marvell_f_iwmmxt_wstr): Likewise.
25054 (marvell_f_iwmmxt_wldr): Likewise.
25056 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25058 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25060 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25063 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25064 * lra-constraints.c (need_for_split_p): Check call used hard regs
25065 living through calls.
25067 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25068 call used regs for call insn.
25070 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25073 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25074 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25076 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25078 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25080 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25082 * lra-constraints.c (need_for_split_p): Check call used hard regs
25083 living through calls.
25085 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25088 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25089 to tie with any other modes. Eliminate Altivec vector mode tests,
25090 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25091 code, to return 0 if testing MODE2 for a condition, if we've
25092 already tested MODE1 for the same condition.
25094 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25096 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25099 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25101 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25102 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25104 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25106 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25108 (aarch64_symbolic_constant_p): Remove.
25109 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25110 static. Fix line length and white space.
25111 (aarch64_symbolic_constant_p): Remove.
25112 * config/aarch64/predicates.md (aarch64_valid_symref):
25113 Use aarch64_classify_symbol_expression.
25115 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25117 * config/arm/constraints.md (Ts): New constraint.
25118 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25120 (compare_scc): Use "Ts" constraint for operand 0.
25121 (ior_scc_scc): Likewise.
25122 (and_scc_scc): Likewise.
25123 (and_scc_scc_nodom): Likewise.
25124 (ior_scc_scc_cmp): Likewise for operand 7.
25125 (and_scc_scc_cmp): Likewise.
25126 * config/arm/thumb2.md (thumb2_movsi_insn):
25127 Add alternatives for 16-bit encodings.
25128 (thumb2_movhi_insn): Likewise.
25129 (thumb2_movsicc_insn): Likewise.
25130 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25131 (thumb2_negscc): Use "Ts" constraint.
25132 Move mvn instruction outside cond_exec block.
25133 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25134 for 16-bit encodings.
25136 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25138 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25140 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25141 (mulsi3subsi): Likewise.
25142 (mulsidi3adddi): Likewise.
25143 (mulsidi3_v6): Likewise.
25144 (umulsidi3_v6): Likewise.
25145 (umulsidi3adddi_v6): Likewise.
25146 (smulsi3_highpart_v6): Likewise.
25147 (umulsi3_highpart_v6): Likewise.
25148 (mulhisi3tb): Likewise.
25149 (mulhisi3bt): Likewise.
25150 (mulhisi3tt): Likewise.
25151 (maddhisi4): Likewise.
25152 (maddhisi4tb): Likewise.
25153 (maddhisi4tt): Likewise.
25154 (maddhidi4): Likewise.
25155 (maddhidi4tb): Likewise.
25156 (maddhidi4tt): Likewise.
25157 (zeroextractsi_compare0_scratch): Likewise.
25158 (insv_zero): Likewise.
25159 (insv_t2): Likewise.
25160 (anddi_notzesidi_di): Likewise.
25161 (anddi_notsesidi_di): Likewise.
25162 (andsi_notsi_si): Likewise.
25163 (iordi_zesidi_di): Likewise.
25164 (xordi_zesidi_di): Likewise.
25165 (andsi_iorsi3_notsi): Likewise.
25166 (smax_0): Likewise.
25167 (smax_m1): Likewise.
25168 (smin_0): Likewise.
25169 (not_shiftsi): Likewise.
25170 (unaligned_loadsi): Likewise.
25171 (unaligned_loadhis): Likewise.
25172 (unaligned_loadhiu): Likewise.
25173 (unaligned_storesi): Likewise.
25174 (unaligned_storehi): Likewise.
25175 (extv_reg): Likewise.
25176 (extzv_t2): Likewise.
25177 (divsi3): Likewise.
25178 (udivsi3): Likewise.
25179 (arm_zero_extendhisi2addsi): Likewise.
25180 (arm_zero_extendqisi2addsi): Likewise.
25181 (compareqi_eq0): Likewise.
25182 (arm_extendhisi2_v6): Likewise.
25183 (arm_extendqisi2addsi): Likewise.
25184 (arm_movt): Likewise.
25185 (thumb2_ldrd): Likewise.
25186 (thumb2_ldrd_base): Likewise.
25187 (thumb2_ldrd_base_neg): Likewise.
25188 (thumb2_strd): Likewise.
25189 (thumb2_strd_base): Likewise.
25190 (thumb2_strd_base_neg): Likewise.
25191 (arm_negsi2): Add alternative for 16-bit encoding.
25192 (arm_one_cmplsi2): Likewise.
25194 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25196 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25197 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25198 (movdfcc): Likewise.
25199 * config/arm/vfp.md (*thumb2_movsf_vfp):
25200 Disable predication for arm_restrict_it.
25201 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25202 (*thumb2_movdfcc_vfp): Likewise.
25203 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25204 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25205 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25206 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25207 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25208 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25209 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25210 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25211 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25212 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25213 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25214 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25215 Disable predication for arm_restrict_it.
25217 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25219 * config/i386/bmiintrin.h (_bextr_u32): New.
25220 (_bextr_u64): Ditto.
25222 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25224 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25225 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25226 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25227 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25228 * config/mips/n32-elf.h: ...this new file.
25230 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25233 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25234 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25236 2013-06-27 Catherine Moore <clm@codesourcery.com>
25238 * config/mips/mips-tables.opt: Regenerate.
25239 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25240 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25241 * doc/invoke.texi: Add -m14kc.
25243 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25246 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25247 constraints of operand 1 and 2.
25250 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25251 to match RTL canonicalization. Swap predicates and
25252 constraints of operand 1 and 2.
25254 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25256 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25257 Process OP_INOUT regs for splitting too.
25259 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25261 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25262 decl before the loop, initialize to NULL.
25263 (vectorizable_load): Initialize ptr_incr to NULL.
25265 2013-06-27 Martin Jambor <mjambor@suse.cz>
25268 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25269 * ipa-ref.c (ipa_maybe_record_reference): New function.
25270 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25271 * ipa-cp.c (create_specialized_node): Record potential references from
25273 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25275 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25277 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25278 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25279 'mode' to force_reg.
25280 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25281 (aarch64_expand_mov_immediate): Likewise.
25283 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25285 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25286 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25288 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25290 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25291 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25292 (struct machine_function): Add tbegin_p.
25293 (s390_canonicalize_comparison): Fold CC mode compares to
25294 conditional jump if possible.
25295 (s390_emit_jump): Return the emitted jump.
25296 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25297 Handle CCRAWmode compares.
25298 (s390_option_override): Default to -mhtm if available.
25299 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25300 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25301 FPRs instead of df_regs_ever_live_p.
25302 (s390_optimize_nonescaping_tx): New function.
25303 (s390_init_frame_layout): Extend clobbered_regs array to cover
25305 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25306 (s390_expand_tbegin): New function.
25307 (enum s390_builtin): New enum definition.
25308 (code_for_builtin): New array definition.
25309 (s390_init_builtins): New function.
25310 (s390_expand_builtin): New function.
25311 (TARGET_INIT_BUILTINS): Define.
25312 (TARGET_EXPAND_BUILTIN): Define.
25313 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25314 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25315 (s390_alc_comparison): Likewise.
25316 * config/s390/s390-modes.def: Add CCRAWmode.
25317 * config/s390/s390.h (processor_flags): Add PF_TX.
25318 (TARGET_CPU_HTM): Define macro.
25319 (TARGET_HTM): Define macro.
25320 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25321 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25322 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25323 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25324 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25325 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25326 ("*cc_to_int"): Move up.
25327 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25328 constants other than 0.
25329 ("*ccraw_to_int"): New insn and splitter definition.
25330 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25331 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25332 ("tx_assist"): New expander.
25333 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25334 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25335 * config/s390/s390.opt: Add -mhtm option.
25336 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25337 * config/s390/htmxlintrin.h: New file.
25338 * config/s390/htmintrin.h: New file.
25339 * config/s390/s390intrin.h: New file.
25340 * doc/extend.texi: Document htm builtins.
25341 * config.gcc: Add the new header files to extra_headers.
25343 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25345 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25346 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25348 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25349 Pat Haugen <pthaugen@us.ibm.com>
25350 Peter Bergner <bergner@vnet.ibm.com>
25352 * config/rs6000/power8.md: New.
25353 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25354 setting for power8 entry.
25355 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25356 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25357 test for Power4/Power5 only.
25358 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25360 (force_new_group): Adjust comment.
25361 * config/rs6000/rs6000.md: Include power8.md.
25363 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25365 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25366 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25368 (tune_params): Update comment.
25369 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25370 (arm_max_conditional_execute): New function.
25371 (thumb2_final_prescan_insn): Use max_insn_skipped and
25372 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25374 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25376 PR tree-optimization/57705
25377 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25378 SSA_NAME step, provided that it is not defined inside the loop.
25379 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25380 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25382 2013-06-25 Martin Jambor <mjambor@suse.cz>
25384 PR middle-end/57670
25385 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25386 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25388 (ipa_note_param_call): Initialize member_ptr flag.
25389 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25390 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25391 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25392 (ipa_read_indirect_edge_info): Likewise.
25394 2013-06-25 Richard Biener <rguenther@suse.de>
25396 PR middle-end/56977
25397 * passes.c (init_optimization_passes): Move pass_fold_builtins
25398 and pass_dce earlier with -Og.
25400 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25402 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25403 <BIT_FIELD_REF>: Remove trailing TAB.
25404 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25407 2013-06-24 Martin Jambor <mjambor@suse.cz>
25409 PR tree-optimization/57358
25410 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25411 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25412 (ipa_analyze_params_uses): Generate pessimistic info when true.
25414 2013-06-24 Martin Jambor <mjambor@suse.cz>
25416 PR tree-optimization/57539
25417 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25418 global.inlined_to of the new node to it. All callers changed.
25419 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25420 inlining_into, pass it to cgraph_clone_node.
25421 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25422 ipa_free_edge_args_substructures.
25423 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25424 rdesc linked list. Do not assert rdesc edges have inlined caller.
25425 Assert we have found an rdesc in the rdesc list.
25427 2013-06-24 Richard Biener <rguenther@suse.de>
25429 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25430 (pointer_set_lookup): Declare.
25431 (class pointer_map): New template class implementing a
25432 generic pointer to T map.
25433 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25434 pointer_map<T>::contains, pointer_map<T>::insert,
25435 pointer_map<T>::traverse): New functions.
25436 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25437 (pointer_set_lookup): New function.
25438 (pointer_set_contains): Use pointer_set_lookup.
25439 (pointer_set_insert): Likewise.
25440 (insert_aux): Remove.
25441 (struct pointer_map_t): Embed a pointer_set_t.
25442 (pointer_map_create): Adjust.
25443 (pointer_map_destroy): Likewise.
25444 (pointer_map_contains): Likewise.
25445 (pointer_map_insert): Likewise.
25446 (pointer_map_traverse): Likewise.
25447 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25448 pointer_map<unsigned> instead of a pointer_map_t.
25449 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25450 (streamer_tree_cache_lookup): Likewise.
25451 (streamer_tree_cache_create): Likewise.
25452 (streamer_tree_cache_delete): Likewise.
25453 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25454 pointer_map<unsigned> instead of a pointer_map_t.
25455 (lto_init_tree_ref_encoder): Adjust.
25456 (lto_destroy_tree_ref_encoder): Likewise.
25457 * lto-section-out.c (lto_output_decl_index): Likewise.
25458 (lto_record_function_out_decl_state): Likewise.
25459 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25461 2013-06-24 Richard Biener <rguenther@suse.de>
25463 PR tree-optimization/57488
25464 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25466 2013-06-24 Alan Modra <amodra@gmail.com>
25468 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25469 (gen_easy_altivec_constant): Likewise.
25470 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25471 easy_vector_constant_msb): Likewise.
25473 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25476 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25477 add missing return true.
25479 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25482 * config/sh/predicates.md (general_extend_operand): Invoke
25483 general_movsrc_operand for memory operands.
25484 (general_movsrc_operand): Allow reg+reg addressing, do not use
25485 general_operand for memory operands.
25487 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25489 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25490 when current target options does not apply.
25491 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25492 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25493 * config/i386/bmiintrin.h: Pass appropriate target
25494 attributes to header.
25495 * config/i386/mmintrin.h: Ditto.
25496 * config/i386/nmmintrin.h: Ditto.
25497 * config/i386/avx2intrin.h: Ditto.
25498 * config/i386/fxsrintrin.h: Ditto.
25499 * config/i386/tbmintrin.h: Ditto.
25500 * config/i386/xsaveintrin.h: Ditto.
25501 * config/i386/f16cintrin.h: Ditto.
25502 * config/i386/xtestintrin.h: Ditto.
25503 * config/i386/xsaveoptintrin.h: Ditto.
25504 * config/i386/bmi2intrin.h: Ditto.
25505 * config/i386/lzcntintrin.h: Ditto.
25506 * config/i386/smmintrin.h: Ditto.
25507 * config/i386/wmmintrin.h: Ditto.
25508 * config/i386/x86intrin.h: Remove all header include guards.
25509 * config/i386/prfchwintrin.h: Ditto.
25510 * config/i386/pmmintrin.h: Ditto.
25511 * config/i386/tmmintrin.h: Ditto.
25512 * config/i386/xmmintrin.h: Ditto.
25513 * config/i386/popcntintrin.h: Ditto.
25514 * config/i386/rdseedintrin.h: Ditto.
25515 * config/i386/ammintrin.h: Ditto.
25516 * config/i386/emmintrin.h: Ditto.
25517 * config/i386/immintrin.h: Remove all header include guards.
25518 * config/i386/fma4intrin.h: Ditto.
25519 * config/i386/lwpintrin.h: Ditto.
25520 * config/i386/xopintrin.h: Ditto.
25521 * config/i386/ia32intrin.h: Ditto.
25522 * config/i386/avxintrin.h: Ditto.
25523 * config/i386/rtmintrin.h: Ditto.
25524 * config/i386/fmaintrin.h: Ditto.
25525 * config/i386/mm3dnow.h: Ditto.
25527 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25529 * common/config/i386/i386-common.c: Handle LZCNT.
25531 2013-06-22 Andi Kleen <ak@linux.intel.com>
25533 * doc/extend.texi: Use __atomic_store_n instead of
25534 __atomic_store in HLE example.
25536 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25538 * config/sh/sh.c: Remove <cstdlib> workaround.
25540 2013-06-21 Andi Kleen <ak@linux.intel.com>
25542 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25544 2013-06-21 Andi Kleen <ak@linux.intel.com>
25546 * doc/extend.texi: Document that __atomic_clear and
25547 __atomic_test_and_set should only be used with bool.
25549 2013-06-20 Jan Hubicka <jh@suse.cz>
25551 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25552 types_same_for_odr.
25553 * tree.c (decls_same_for_odr): New function.
25554 (same_for_edr): New function.
25555 (types_same_for_odr): New function.
25556 (get_binfo_at_offset): Use it.
25557 * tree.h (types_same_for_odr): Declare.
25559 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25560 Jason Merrill <jason@redhat.com>
25562 * system.h: Include <cstdlib> as well as <stdlib.h>.
25564 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25567 * config/i386/i386.c (construct_container): Report error if
25568 long double is used with disabled x87 float returns.
25570 2013-06-20 Jan Hubicka <jh@suse.cz>
25572 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25574 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25576 PR rtl-optimization/57425
25577 PR rtl-optimization/57569
25578 * alias.c (write_dependence_p): Remove parameters mem_mode and
25579 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25580 Changed all callers.
25581 (canon_anti_dependence): Get comments and semantics in sync.
25582 Add parameter mem_canonicalized. Changed all callers.
25583 * rtl.h (canon_anti_dependence): Update prototype.
25585 2013-06-20 Richard Biener <rguenther@suse.de>
25587 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25588 byte case, inline streamer_read_uchar and defer section
25591 2013-06-20 Richard Biener <rguenther@suse.de>
25593 PR tree-optimization/57584
25594 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25595 SSA names into the expanded expression that take part in
25596 abnormal coalescing.
25598 2013-06-19 Sharad Singhai <singhai@google.com>
25600 * gcov.c (print_usage): Handle new option.
25601 (process_args): Ditto.
25602 (get_gcov_intermediate_filename): New function.
25603 (output_intermediate_file): New function.
25604 (output_gcov_file): New function
25605 (generate_results): Handle new option.
25606 (release_function): Relase demangled name.
25607 (read_graph_file): Handle demangled name.
25608 (output_lines): Ditto.
25609 * doc/gcov.texi: Document gcov intermediate format.
25611 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25614 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25615 (lra_emit_add): Use the functions. Add comment about Y as an
25618 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25621 * collect2.c (collect_atexit): New.
25622 (collect_exit): Delete.
25623 (main): Register collect_atexit with atexit.
25624 (collect_wait): Change collect_exit to exit.
25626 * collect2.h (collect_exit): Delete.
25627 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25629 2013-06-19 Wei Mi <wmi@google.com>
25631 PR rtl-optimization/57518
25632 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25633 if regno is used in paradoxical subreg.
25634 (update_equiv_regs): Check pdx_subregs[regno] before
25635 set a reg to be equivalent with a mem.
25637 2013-06-19 Matthias Klose <doko@ubuntu.com>
25640 * file-find.h (find_a_file): Add a mode parameter.
25641 * file-find.c (find_a_file): Likewise.
25642 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25643 with X_OK for the executables.
25644 * collect2.c (main): Call find_a_file with X_OK.
25646 2013-06-19 Steve Ellcey <sellcey@mips.com>
25649 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25650 Use NEXT_INSN instead of next_real_insn.
25652 2013-06-19 Jan Hubicka <jh@suse.cz>
25654 * cgraph.h (const_value_known_p): Replace by ...
25655 (ctor_for_folding): .. this one.
25656 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25657 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25658 * expr.c (expand_expr_real_1): Likewise.
25659 (string_constant): Likewise.
25660 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25661 * ipa.c (process_references): Likewise.
25662 (symtab_remove_unreachable_nodes): Likewise.
25663 * ipa-inline-analysis.c (param_change_prob): Likewise.
25664 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25665 (get_base_constructor): Likwise.
25666 * varpool.c (varpool_remove_node): Likewise.
25667 (varpool_remove_initializer): LIkewise.
25668 (dump_varpool_node): LIkwise.
25669 (const_value_known_p): Rewrite to ...
25670 (ctor_for_folding): ... this one.
25672 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25675 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25676 PERSONALITY in $PATH derived prefixes.
25678 2013-06-19 Jeff Law <law@redhat.com>
25680 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25683 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25684 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25687 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25689 * config/arm/vfp.md: Move VFP instruction classification documentation
25691 * config/arm/arm.md: ... here. Update instruction classification
25694 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25696 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25697 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25698 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25700 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25703 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25704 with NEXT_INSN. Use tablejump_p to check for jump table data
25707 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25710 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25711 that now in C++ the value is correct per the C++ standards.
25713 2013-06-19 Richard Biener <rguenther@suse.de>
25715 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25716 for global context.
25718 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25721 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25724 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25725 with next_active_insn.
25727 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25729 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25730 functions are inlined during failures to flag an error.
25731 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25732 in early inline pass.
25734 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25736 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25739 2013-06-18 Julian Brown <julian@codesourcery.com>
25741 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25742 Permit virtual register pre-reload if !strict.
25743 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25745 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25747 * config/arm/neon.md (movmisalign<mode>): Use
25748 neon_perm_struct_or_reg_operand instead of
25749 neon_struct_or_register_operand.
25750 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25751 neon_permissive_struct_operand instead of neon_struct_operand.
25752 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25753 neon_vector_mem_operand.
25754 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25755 neon_vector_mem_operand.
25756 (neon_permissive_struct_operand): New.
25757 (neon_struct_or_register_operand): Rename to...
25758 (neon_perm_struct_or_reg_operand): This. Adjust call to
25759 neon_vector_mem_operand.
25761 2013-06-18 Richard Biener <rguenther@suse.de>
25763 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25764 * lto-streamer.h: Include pointer-set.h.
25765 (struct lto_decl_slot): Remove.
25766 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25767 Remove next_index entry.
25768 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25769 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25770 (lto_init_tree_ref_encoder): Adjust.
25771 (lto_destroy_tree_ref_encoder): Likewise.
25772 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25773 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25774 (lto_output_decl_index): Adjust.
25775 (lto_new_out_decl_state): Likewise.
25776 (lto_record_function_out_decl_state): Likewise.
25777 * lto-streamer-out.c (copy_function): Likewise.
25779 2013-06-18 Richard Biener <rguenther@suse.de>
25781 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25782 * cgraphunit.c: Include cfgloop.h.
25783 (init_lowered_empty_function): Initialize the loop tree.
25784 (assemble_thunk): Insert new BBs into loops.
25786 2013-06-18 Richard Biener <rguenther@suse.de>
25788 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25789 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25790 the map from cache entry to cache index optional.
25791 (streamer_tree_cache_replace_tree): Adjust accordingly.
25792 (streamer_tree_cache_append): Likewise.
25793 (streamer_tree_cache_delete): Likewise.
25794 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25795 streamer cache map from cache entry to cache index.
25796 * lto-streamer-out.c (create_output_block): Adjust.
25798 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25800 * config/arm/arm.md (attribute "insn"): Move multiplication and
25801 division attributes to...
25802 (attribute "type"): ... here. Remove mult.
25803 (attribute "mul32"): New attribute.
25804 (attribute "mul64"): Add umaal.
25805 (*arm_mulsi3): Update attributes.
25806 (*arm_mulsi3_v6): Likewise.
25807 (*thumb_mulsi3): Likewise.
25808 (*thumb_mulsi3_v6): Likewise.
25809 (*mulsi3_compare0): Likewise.
25810 (*mulsi3_compare0_v6): Likewise.
25811 (*mulsi_compare0_scratch): Likewise.
25812 (*mulsi_compare0_scratch_v6): Likewise.
25813 (*mulsi3addsi): Likewise.
25814 (*mulsi3addsi_v6): Likewise.
25815 (*mulsi3addsi_compare0): Likewise.
25816 (*mulsi3addsi_compare0_v6): Likewise.
25817 (*mulsi3addsi_compare0_scratch): Likewise.
25818 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25819 (*mulsi3subsi): Likewise.
25820 (*mulsidi3adddi): Likewise.
25821 (*mulsi3addsi_v6): Likewise.
25822 (*mulsidi3adddi_v6): Likewise.
25823 (*mulsidi3_nov6): Likewise.
25824 (*mulsidi3_v6): Likewise.
25825 (*umulsidi3_nov6): Likewise.
25826 (*umulsidi3_v6): Likewise.
25827 (*umulsidi3adddi): Likewise.
25828 (*umulsidi3adddi_v6): Likewise.
25829 (*smulsi3_highpart_nov6): Likewise.
25830 (*smulsi3_highpart_v6): Likewise.
25831 (*umulsi3_highpart_nov6): Likewise.
25832 (*umulsi3_highpart_v6): Likewise.
25833 (mulhisi3): Likewise.
25834 (*mulhisi3tb): Likewise.
25835 (*mulhisi3bt): Likewise.
25836 (*mulhisi3tt): Likewise.
25837 (maddhisi4): Likewise.
25838 (*maddhisi4tb): Likewise.
25839 (*maddhisi4tt): Likewise.
25840 (maddhidi4): Likewise.
25841 (*maddhidi4tb): Likewise.
25842 (*maddhidi4tt): Likewise.
25843 (divsi3): Likewise.
25844 (udivsi3): Likewise.
25845 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25846 (thumb2_mulsi_short_compare0): Likewise.
25847 (thumb2_mulsi_short_compare0_scratch): Likewise.
25848 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25849 (1020mult2): Likewise.
25850 (1020mult3): Likewise.
25851 (1020mult4): Likewise.
25852 (1020mult5): Likewise.
25853 (1020mult6): Likewise.
25854 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25856 (cortex_a15_mult64): Likewise.
25857 (cortex_a15_sdiv): Likewise.
25858 (cortex_a15_udiv): Likewise.
25859 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25865 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25866 (pj4_ir_div): Likewise.
25867 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25868 (11_mult2): Likewise.
25869 (11_mult3): Likewise.
25870 (11_mult4): Likewise.
25871 (11_mult5): Likewise.
25872 (11_mult6): Likewise.
25873 (11_mult7): Likewise.
25874 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25875 (cortex_a8_mla): Likewise.
25876 (cortex_a8_mull): Likewise.
25877 (cortex_a8_smulwy): Likewise.
25878 (cortex_a8_smlald): Likewise.
25879 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25880 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25881 (cortex_r4_mul_3): Likewise.
25882 (cortex_r4_mla_4): Likewise.
25883 (cortex_r4_mla_3): Likewise.
25884 (cortex_r4_smlald): Likewise.
25885 (cortex_r4_mull): Likewise.
25886 (cortex_r4_sdiv): Likewise.
25887 (cortex_r4_udiv): Likewise.
25888 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25889 (cortex_a7_idiv): Likewise.
25890 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25891 (9_mult2): Likewise.
25892 (9_mult3): Likewise.
25893 (9_mult4): Likewise.
25894 (9_mult5): Likewise.
25895 (9_mult6): Likewise.
25896 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25897 (cortex_a53_sdiv): Likewise.
25898 (cortex_a53_udiv): Likewise.
25899 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25900 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25901 (mp626_mult2): Likewise.
25902 (mp626_mult3): Likewise.
25903 (mp626_mult4): Likewise.
25904 * config/arm/fa526.md (526_mult1): Update attribute change.
25905 (526_mult2): Likewise.
25906 * config/arm/arm-generic.md (mult): Update attribute change.
25907 (mult_ldsched_strongarm): Likewise.
25908 (mult_ldsched): Likewise.
25909 (multi_cycle): Likewise.
25910 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25911 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25912 (606te_mult2): Likewise.
25913 (606te_mult3): Likewise.
25914 (606te_mult4): Likewise.
25915 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25916 (cortex_a9_mac16): Likewise.
25917 (cortex_a9_multiply): Likewise.
25918 (cortex_a9_mac): Likewise.
25919 (cortex_a9_multiply_long): Likewise.
25920 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25921 (626te_mult2): Likewise.
25922 (626te_mult3): Likewise.
25923 (626te_mult4): Likewise.
25925 2013-06-18 Richard Biener <rguenther@suse.de>
25928 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25930 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25933 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25934 with next_active_insn.
25936 2013-06-18 Alan Modra <amodra@gmail.com>
25938 * config/rs6000/rs6000.h (enum data_align): New.
25939 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25940 (DATA_ABI_ALIGNMENT): Define.
25941 (CONSTANT_ALIGNMENT): Correct comment.
25942 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25943 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25945 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25947 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25948 ATTRIBUTE_UNUSED marking.
25950 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25952 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25953 alternative and update.
25954 (aarch64_dup_lanedi): Delete.
25955 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25956 * config/aarch64/aarch64-simd-builtins.def: Update.
25958 2013-06-17 Richard Biener <rguenther@suse.de>
25960 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25961 (lto_input_scc): Declare.
25962 (lto_input_tree_1): Likewise.
25963 (struct lto_stats_d): Add num_tree_bodies_output and
25964 num_pickle_refs_output.
25965 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25966 (lto_read_tree_1): Split out from ...
25967 (lto_read_tree): ... this.
25968 (lto_input_scc): New function.
25969 (lto_input_tree_1): Split out from ...
25970 (lto_input_tree): ... this. Handle LTO_tree_scc.
25971 (lto_data_in_create): Create the streamer cache without hashes.
25972 * lto-streamer-out.c (create_output_block): Create the streamer
25973 cache with hashes when not doing WPA.
25974 (lto_write_tree_1): Split out from ...
25975 (lto_write_tree): ... this.
25976 (get_symbol_initial_value): New function.
25977 (lto_output_tree_1): Split out from ...
25978 (lto_output_tree): ... this. Write trees as series of SCCs
25979 using a DFS walk via DFS_write_tree.
25980 (struct sccs, struct scc_entry): New types.
25981 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25982 (DFS_write_tree_body): New function.
25983 (DFS_write_tree): Likewise.
25984 (hash_tree): Likewise.
25985 (scc_entry_compare): Likewise.
25986 (hash_scc): Likewise.
25987 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25988 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25989 TREE_CHAIN as regular reference.
25990 (streamer_read_integer_cst): Remove.
25991 (streamer_get_pickled_tree): Adjust.
25992 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25993 of DECL_EXTERNALs in BLOCK_VARS for now.
25994 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25996 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25997 Add hash value argument and record that if hashes are recorded
25999 (streamer_tree_cache_insert_1): Adjust.
26000 (streamer_tree_cache_insert): Likewise.
26001 (streamer_tree_cache_insert_at): Rename to ...
26002 (streamer_tree_cache_replace_tree): ... this and adjust.
26003 (streamer_tree_cache_append): Adjust.
26004 (record_common_node): Likewise.
26005 (streamer_tree_cache_create): Add argument whether to
26006 record hash values together with trees.
26007 (streamer_tree_cache_delete): Adjust.
26008 * tree-streamer.h (struct streamer_tree_cache_d): Add
26010 (streamer_read_integer_cst): Remove.
26011 (streamer_tree_cache_insert): Adjust.
26012 (streamer_tree_cache_append): Likewise.
26013 (streamer_tree_cache_insert_at): Rename to ...
26014 (streamer_tree_cache_replace_tree): ... this and adjust.
26015 (streamer_tree_cache_create): Add argument whether to record hashes.
26016 (streamer_tree_cache_get): Rename to ...
26017 (streamer_tree_cache_get_tree): ... this.
26018 (streamer_tree_cache_get_hash): New function.
26019 * tree.c (cache_integer_cst): New function.
26020 * tree.h (cache_integer_cst): Declare.
26021 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26022 * lto-symtab.c (lto_varpool_replace_node): Only release
26023 DECL_INITIAL of non-prevailing decls.
26024 * varpool.c (varpool_remove_initializer): Do not release
26025 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26027 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26029 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26030 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26031 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26032 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26033 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26034 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26035 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26036 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26037 instead of TARGET_64BIT.
26038 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26039 Require ISA_HAS_<D>DIV.
26041 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26043 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26044 (mips*-*-linux*): Move default with_llsc setting to where other
26046 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26048 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26049 Likewise. Remove default with_tune setting. Move default float
26050 setting to its own block. Handle with_llsc in the same block as above.
26052 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26054 PR rtl-optimization/57425
26055 PR rtl-optimization/57569
26056 * alias.c (write_dependence_p): Add new parameters mem_mode,
26057 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26058 Changed all callers.
26059 (canon_anti_dependence): New function.
26060 * cse.c (check_dependence): Use canon_anti_dependence.
26061 * cselib.c (cselib_invalidate_mem): Likewise.
26062 * rtl.h (canon_anti_dependence): Declare.
26064 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26066 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26067 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26068 ".set mips3" for 64-bit targets.
26070 2013-06-15 Dehao Chen <dehao@google.com>
26072 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26073 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26074 (gimple_check_call_args): Likewise.
26075 * value-prof.c (check_ic_target): Likewise.
26076 * ipa-inline.c (early_inliner): Likewise.
26077 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26078 * cgraph.c (cgraph_create_edge_1): Likewise.
26079 (cgraph_make_edge_direct): Likewise.
26081 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26084 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26085 rs6000_output_move_128bit to handle emitting quad memory
26086 operations. Set attribute length to 8 bytes.
26088 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26090 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26092 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26093 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26094 (aarch64_<su>mlsl<mode>): Likewise.
26096 2013-06-14 Mike Stump <mikestump@comcast.net>
26098 * Makefile.in (TARGET_H): Add insn-codes.h.
26100 2013-06-14 Alan Modra <amodra@gmail.com>
26102 PR middle-end/57134
26103 PR middle-end/57586
26104 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26105 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26106 bitfield expansion when EXPAND_MEMORY.
26107 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26109 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26111 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26112 test for clearing quad memory on 32-bit later.
26114 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26116 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26117 (fold_negate_expr): Likewise.
26118 (fold_real_zero_addition_p): Handle vectors.
26119 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26121 2013-06-14 Alan Modra <amodra@gmail.com>
26123 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26125 2013-06-13 Jan Hubicka <jh@suse.cz>
26127 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26128 Local comdats are not externally visible.
26129 * symtab.c (dump_symtab_base): Dump externally visible.
26130 (verify_symtab_base): Verify back links in the symtab hash.
26132 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26134 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26135 CONVERT_EXPR as equal nodes.
26137 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26139 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26141 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26143 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26144 Generalize to complex and vector.
26145 * tree.c (build_all_ones_cst): New function.
26146 * tree.h (build_all_ones_cst): Declare it.
26148 2013-06-13 Alan Modra <amodra@gmail.com>
26150 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26151 * config/rs6000/rs6000.md (signbittf2): New insn.
26152 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26153 (abstf2_internal, cmptf_internal2): Likewise.
26154 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26156 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26157 Pat Haugen <pthaugen@us.ibm.com>
26158 Peter Bergner <bergner@vnet.ibm.com>
26160 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26161 power8 byte, half-word, and quad-word atomic instructions.
26162 (emit_store_conditional): Likewise.
26163 (rs6000_expand_atomic_compare_and_swap): Likewise.
26164 (rs6000_expand_atomic_op): Likewise.
26166 * config/rs6000/sync.md (larx): Add new modes for power8.
26168 (AINT): New mode iterator to include TImode as well as normal
26169 integer modes on power8.
26170 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26171 that VSX registers are not considered. Use AINT mode iterator
26172 instead of INT1 to allow inclusion of quad word atomic operations
26174 (load_locked<mode>): Likewise.
26175 (store_conditional<mode>): Likewise.
26176 (atomic_compare_and_swap<mode>): Likewise.
26177 (atomic_exchange<mode>): Likewise.
26178 (atomic_nand<mode>): Likewise.
26179 (atomic_fetch_<fetchop_name><mode>): Likewise.
26180 (atomic_nand_fetch<mode>): Likewise.
26181 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26183 (ATOMIC): On power8, add QImode, HImode modes.
26184 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26185 modes that promote to SImode.
26186 (load_lockedti): Convert TImode arguments to PTImode, so that we
26187 get a guaranteed even/odd register pair.
26188 (load_lockedpti): Likewise.
26189 (store_conditionalti): Likewise.
26190 (store_conditionalpti): Likewise.
26192 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26193 atomic load/store instructions.
26196 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26198 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26200 (insn_count): New attribute, with most cases extracted from...
26201 (length): ...here. Redefine most cases in terms of insn_count.
26202 (single_insn): Delete.
26203 (can_delay): Use insn_count to check for single instructions.
26204 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26205 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26206 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26207 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26208 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26209 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26210 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26211 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26212 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26213 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26214 rather than "length".
26215 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26216 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26217 Use "insn_count" rather than "length".
26218 * config/mips/mips-dsp.md
26219 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26220 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26223 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26225 PR tree-optimization/57361
26226 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26228 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26230 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26232 (aarch64_simd_combine<mode>): New instruction expansion.
26233 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26234 function prototype.
26235 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26236 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26238 2013-06-12 Jan Hubicka <jh@suse.cz>
26240 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26241 decl has when in streaming stage.
26242 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26243 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26245 2013-06-12 Roland Stigge <stigge@antcom.de>
26248 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26250 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26252 PR tree-optimization/57537
26253 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26254 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26256 2013-06-12 Richard Biener <rguenther@suse.de>
26258 * data-streamer.h (streamer_write_char_stream): CSE
26259 obs->current_pointer.
26260 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26261 streamer_write_char_stream manually and optimize the resulting loop.
26262 (streamer_write_hwi_stream): Likewise.
26264 2013-06-12 Jan Hubicka <jh@suse.cz>
26266 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26267 * cgraph.h (varpool_create_empty_node): Declare.
26268 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26270 * symtab.c (symtab_unregister_node): Be lax about missin entries
26272 (symtab_get_node): Update comment.
26273 * varpool.c (varpool_create_empty_node): Break out from ...
26274 (varpool_node_for_decl): ... here.
26275 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26277 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26279 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26280 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26281 part. Use straight-line flow at the end.
26282 <COMPONENT_REF>: Remove superfluous else.
26283 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26285 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26288 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26289 target hook even for !TREE_PUBLIC decls. If no resolution info
26290 is available, return false for common and external decls.
26292 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26294 * config/rl78/constraints.md (U): New constraint.
26295 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26298 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26301 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26302 to allow returning address to AT_PLATFORM name.
26304 2013-06-11 Jan Hubicka <jh@suse.cz>
26306 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26307 * cgraph.h (symtab_node_base): Add weakref flag.
26308 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26309 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26310 (output_weakrefs): Use weakref flag.
26311 * fold-const.c (simple_operand_p): Handle WEAK.
26312 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26313 * ipa.c (varpool_externally_visible_p): Drop weakref.
26314 (function_and_variable_visibility): Update comment; fix weakref
26315 sanity checks; do not clear DECL_WEAK on them.
26316 * lto-cgraph.c (lto_output_node): update.
26317 (lto_output_varpool_node): Update.
26318 (input_overwrite_node): Update.
26319 (input_node): Update.
26320 (input_varpool_node): Update.
26321 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26322 (lto_symtab_merge_symbols): Add sanity check.
26323 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26324 * passes.c (rest_of_decl_compilation): Set static flag, too.
26325 * symtab.c (dump_symtab_base): Dump weakref.
26326 (verify_symtab_base): Sanity check weakrefs.
26327 (symtab_make_decl_local): Remove duplicated code.
26328 (symtab_alias_ultimate_target): Simplify.
26329 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26331 2013-06-11 Tom de Vries <tom@codesourcery.com>
26333 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26334 sequence_vect == NULL.
26336 2013-06-11 DJ Delorie <dj@redhat.com>
26338 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26339 (rl78_unwind_word_mode): New.
26341 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26343 * final.c (debug_prefix_maps): Make static.
26345 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26347 * function.c (initial_trampoline): Remove stray copy.
26349 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26351 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26353 2013-06-11 Martin Jambor <mjambor@suse.cz>
26355 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26356 within bounds at the beginning of the function.
26358 2013-06-11 Alan Modra <amodra@gmail.com>
26360 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26362 (get_named_section): Don't NULL !DECL_P decl.
26364 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26366 * doc/invoke.texi (core-avx2): Document.
26368 (atom): Updated with MOVBE.
26370 2013-06-11 Richard Biener <rguenther@suse.de>
26372 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26374 2013-06-11 Anton Blanchard <anton@samba.org>
26376 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26377 correct shift value in little-endian mode.
26379 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26382 * varasm.c (get_variable_align): Move #endif to the right place.
26384 2013-06-10 Cary Coutant <ccoutant@google.com>
26386 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26387 for hash so that hash table traversal order is deterministic.
26389 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26390 Pat Haugen <pthaugen@us.ibm.com>
26391 Peter Bergner <bergner@vnet.ibm.com>
26393 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26394 of vectors in GPRS if they are direct moves or quad word load or
26397 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26399 (direct_move_p): Likewise.
26400 (quad_load_store_p): Likewise.
26402 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26403 classes into bins based on the physical register type.
26404 (reg_class_to_reg_type): Likewise.
26405 (IS_STD_REG_TYPE): Likewise.
26406 (IS_FP_VECT_REG_TYPE): Likewise.
26407 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26408 use direct move instructions.
26409 (reload_gpr_vsx): Likewise.
26410 (reload_vsx_gpr): Likewise.
26411 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26412 information that is a simplification of register classes. Also
26413 precalculate direct move reload helpers.
26414 (direct_move_p): New function to return true if the operation can
26415 be done as a direct move instruciton.
26416 (quad_load_store_p): New function to return true if the operation
26417 is a quad memory operation.
26418 (rs6000_legitimize_address): If quad memory, only allow register
26419 indirect for TImode addresses.
26420 (rs6000_legitimate_address_p): Likewise.
26421 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26422 (rs6000_reload_register_type): Likewise.
26423 (register_to_reg_type): Return register type.
26424 (rs6000_secondary_reload_simple_move): New helper function for
26425 secondary reload and secondary memory needed to identify anything
26426 that is a simple move, and does not need reloading.
26427 (rs6000_secondary_reload_direct_move): New helper function for
26428 secondary reload to identify cases that can be done with several
26429 instructions via the direct move instructions.
26430 (rs6000_secondary_reload_move): New helper function for secondary
26431 reload to identify moves between register types that can be done.
26432 (rs6000_secondary_reload): Add support for quad memory operations
26433 and for direct move.
26434 (rs6000_secondary_memory_needed): Likewise.
26435 (rs6000_debug_secondary_memory_needed): Change argument names.
26436 (rs6000_output_move_128bit): New function to return the move to
26437 use for 128-bit moves, including knowing about the various
26438 limitations of quad memory operations.
26440 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26441 memory operations. call rs6000_output_move_128bit for the actual
26442 instruciton(s) to generate.
26443 (vsx_movti_64bit): Likewise.
26445 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26446 (UNSPEC_P8V_MTVSRWZ): Likewise.
26447 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26448 (UNSPEC_P8V_MTVSRD): Likewise.
26449 (UNSPEC_P8V_XXPERMDI): Likewise.
26450 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26451 (UNSPEC_FUSION_GPR): Likewise.
26452 (FMOVE128_GPR): New iterator for direct move.
26453 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26454 (f32_sv): Likewise.
26455 (f32_dm): Likewise.
26456 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26457 loads and direct move instructions.
26458 (zero_extendsidi2_lfiwzx): Likewise.
26459 (extendsidi2_lfiwax): Likewise.
26460 (extendsidi2_nocell): Likewise.
26461 (floatsi<mode>2_lfiwax): Likewise.
26462 (lfiwax): Likewise.
26463 (floatunssi<mode>2_lfiwzx): Likewise.
26464 (lfiwzx): Likewise.
26465 (fix_trunc<mode>_stfiwx): Likewise.
26466 (fixuns_trunc<mode>_stfiwx): Likewise.
26467 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26468 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26469 (parity<mode>2_cmpb): Set length/type attr.
26470 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26471 for 'mr.' to fast_compare.
26472 (bpermd_<mode>): Change type attr to popcnt.
26473 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26474 (p8_mtvsrwz_1): Likewise.
26475 (p8_mtvsrwz_2): Likewise.
26476 (reload_fpr_from_gpr<mode>): Likewise.
26477 (p8_mtvsrd_1): Likewise.
26478 (p8_mtvsrd_2): Likewise.
26479 (p8_xxpermdi_<mode>): Likewise.
26480 (reload_vsx_from_gpr<mode>): Likewise.
26481 (reload_vsx_from_gprsf): Likewise.
26482 (p8_mfvsrd_3_<mode>): LIkewise.
26483 (reload_gpr_from_vsx<mode>): Likewise.
26484 (reload_gpr_from_vsxsf): Likewise.
26485 (p8_mfvsrd_4_disf): Likewise.
26486 (multi-word GPR splits): Do not split direct moves or quad memory
26489 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26491 * tree-into-ssa.c (interesting_blocks): Make static.
26493 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26496 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26497 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26498 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26499 (get_variable_align): New function.
26500 (get_variable_section, emit_bss, emit_common,
26501 assemble_variable_contents, place_block_symbol): Use
26502 get_variable_align instead of DECL_ALIGN.
26503 (assemble_noswitch_variable): Add align argument, use it
26504 instead of DECL_ALIGN.
26505 (assemble_variable): Adjust caller. Use get_variable_align
26506 instead of DECL_ALIGN.
26507 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26509 (DATA_ABI_ALIGNMENT): Define.
26510 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26511 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26512 opt is false, only return the psABI mandated alignment increase.
26513 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26514 (DATA_ABI_ALIGNMENT): ... this.
26515 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26516 (DATA_ABI_ALIGNMENT): ... this.
26517 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26518 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26519 (DATA_ABI_ALIGNMENT): ... this.
26520 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26521 * doc/tm.texi: Regenerated.
26523 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26525 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26526 cmp_code to construct REG_EQUAL note.
26528 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26531 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26532 that operands[2] doesn't overlap with operands[0].
26534 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26535 Jan Hubicka <jh@suse.cz>
26537 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26538 hack to mark symbols as used.
26540 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26542 PR rtl-optimization/57559
26543 * lra-constraints.c (process_alt_operands): Don't discourage
26544 memory with known offset for offsetable memory constraint.
26545 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26547 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26549 * varasm.c (struct oc_local_state): Reorder fields.
26550 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26551 and adjust accordingly.
26552 (output_constructor): Reorder initialization code and adjust call to
26553 output_constructor_bitfield.
26555 2013-06-07 Jan Hubicka <jh@suse.cz>
26557 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26559 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26561 * tree-object-size.c (unknown): Make const.
26563 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26565 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26566 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26567 for last alternative in the cpu_facility attribute.
26569 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26572 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26573 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26574 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26575 * config/arm/constraints.md (Dg): New constraint.
26576 * config/arm/neon.md (xordi3_neon): Remove.
26577 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26578 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26580 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26582 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26583 Clean up alternatives.
26585 2013-06-07 Alan Modra <amodra@gmail.com>
26587 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26590 2013-06-07 Alan Modra <amodra@gmail.com>
26592 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26594 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26596 * config/arm/constraints.md (Df): New constraint.
26597 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26598 Correct length attribute for last two alternatives.
26600 2013-06-07 Alan Modra <amodra@gmail.com>
26602 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26603 override user -mfp-in-toc.
26604 (offsettable_ok_by_alignment): Consider just the current access
26605 rather than the whole object, unless BLKmode. Handle
26606 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26607 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26608 for -mcmodel=medium.
26609 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26610 override user -mfp-in-toc or -msum-in-toc. Default to
26611 -mno-fp-in-toc for -mcmodel=medium.
26613 2013-06-06 DJ Delorie <dj@redhat.com>
26615 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26616 TARGET_VALID_POINTER_MODE.
26618 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26619 Pat Haugen <pthaugen@us.ibm.com>
26620 Peter Bergner <bergner@vnet.ibm.com>
26622 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26623 Document new power8 builtins.
26625 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26626 condition code register, to allow 128-bit logical operations to be
26627 done in the VSX or GPR registers.
26628 (nor<mode>3): Use the canonical form for nor.
26629 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26630 vclz*, and vpopcnt* vector instructions.
26631 (nand<mode>3): Likewise.
26632 (orc<mode>3): Likewise.
26633 (clz<mode>2): LIkewise.
26634 (popcount<mode>2): Likewise.
26636 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26637 that only the GPRs are recognized.
26639 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26640 support for new power8 builtins.
26642 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26644 (xscvdpspn): Likewise.
26650 (vpopcnt): Likewise.
26651 (vpopcntb): Likewise.
26652 (vpopcnth): Likewise.
26653 (vpopcntw): Likewise.
26654 (vpopcntd): Likewise.
26656 (vmrgew): Likewise.
26657 (vmrgow): Likewise.
26659 (eqv_v16qi3): Likewise.
26660 (eqv_v8hi3): Likewise.
26661 (eqv_v4si3): Likewise.
26662 (eqv_v2di3): Likewise.
26663 (eqv_v4sf3): Likewise.
26664 (eqv_v2df3): Likewise.
26666 (nand_v16qi3): Likewise.
26667 (nand_v8hi3): Likewise.
26668 (nand_v4si3): Likewise.
26669 (nand_v2di3): Likewise.
26670 (nand_v4sf3): Likewise.
26671 (nand_v2df3): Likewise.
26673 (orc_v16qi3): Likewise.
26674 (orc_v8hi3): Likewise.
26675 (orc_v4si3): Likewise.
26676 (orc_v2di3): Likewise.
26677 (orc_v4sf3): Likewise.
26678 (orc_v2df3): Likewise.
26680 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26681 allow power8 quad mode in 64-bit.
26682 (rs6000_builtin_vectorized_function): Add support to vectorize
26683 ISA 2.07 count leading zeros, population count builtins.
26684 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26685 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26686 (builtin_function_type): Add vgbbd builtin function which takes an
26688 (altivec_expand_vec_perm_const): Add support for new power8 merge
26691 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26692 that does not include TImdoe for use with 32-bit.
26693 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26695 (UNSPEC_VSX_CVDPSPN): Likewise.
26696 (vsx_xscvdpspn): Likewise.
26697 (vsx_xscvspdpn): Likewise.
26698 (vsx_xscvdpspn_scalar): Likewise.
26699 (vsx_xscvspdpn_directmove): Likewise.
26700 (vsx_and<mode>3): Split logical operations into 32-bit and
26701 64-bit. Add support to do logical operations on TImode as well as
26702 VSX vector types. Allow logical operations to be done in either
26703 VSX registers or in general purpose registers in 64-bit mode. Add
26704 splitters if GPRs were used. For AND, add clobber of CCmode to
26705 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26707 (vsx_and<mode>3_32bit): Likewise.
26708 (vsx_and<mode>3_64bit): Likewise.
26709 (vsx_ior<mode>3): Likewise.
26710 (vsx_ior<mode>3_32bit): Likewise.
26711 (vsx_ior<mode>3_64bit): Likewise.
26712 (vsx_xor<mode>3): Likewise.
26713 (vsx_xor<mode>3_32bit): Likewise.
26714 (vsx_xor<mode>3_64bit): Likewise.
26715 (vsx_one_cmpl<mode>2): Likewise.
26716 (vsx_one_cmpl<mode>2_32bit): Likewise.
26717 (vsx_one_cmpl<mode>2_64bit): Likewise.
26718 (vsx_nor<mode>3): Likewise.
26719 (vsx_nor<mode>3_32bit): Likewise.
26720 (vsx_nor<mode>3_64bit): Likewise.
26721 (vsx_andc<mode>3): Likewise.
26722 (vsx_andc<mode>3_32bit): Likewise.
26723 (vsx_andc<mode>3_64bit): Likewise.
26724 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26725 and xxlorc instructions.
26726 (vsx_eqv<mode>3_64bit): Likewise.
26727 (vsx_nand<mode>3_32bit): Likewise.
26728 (vsx_nand<mode>3_64bit): Likewise.
26729 (vsx_orc<mode>3_32bit): Likewise.
26730 (vsx_orc<mode>3_64bit): Likewise.
26732 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26734 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26736 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26737 (p8_vmrgow): Likewise.
26738 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26739 GPRs to be split under VSX.
26740 (p8v_clz<mode>2): Add power8 count leading zero support.
26741 (p8v_popcount<mode>2): Add power8 population count support.
26742 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26745 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26748 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26750 (vec_nand): Likewise.
26751 (vec_vclz): Likewise.
26752 (vec_vclzb): Likewise.
26753 (vec_vclzd): Likewise.
26754 (vec_vclzh): Likewise.
26755 (vec_vclzw): Likewise.
26756 (vec_vgbbd): Likewise.
26757 (vec_vmrgew): Likewise.
26758 (vec_vmrgow): Likewise.
26759 (vec_vpopcnt): Likewise.
26760 (vec_vpopcntb): Likewise.
26761 (vec_vpopcntd): Likewise.
26762 (vec_vpopcnth): Likewise.
26763 (vec_vpopcntw): Likewise.
26765 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26767 PR rtl-optimization/57468
26768 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26771 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26773 PR rtl-optimization/57459
26774 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26775 type when setting live regs.
26777 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26779 * config/s390/s390.opt (mlra): New option.
26780 * config/s390/s390.c (s390_decompose_address): Check displacement
26781 for all registers for LRA.
26782 (s390_secondary_reload): Don't used secondary reloads for LRA.
26783 (s390_lra_p): New function.
26784 (TARGET_LRA_P): Define.
26785 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26786 of attribute cpu_facility to zarch for the last alternative.
26787 (*cmpmem_short): Ditto.
26789 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26791 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26792 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26793 (arm_expand_prologue): Likewise.
26795 2013-06-06 Teresa Johnson <tejohnson@google.com>
26798 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26799 as this is now done by redirect_edge_and_branch_force.
26800 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26801 barriers, and fix interaction with splitting.
26802 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26803 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26804 reflect changes made in the routine.
26805 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26806 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26807 since this is called in cfglayout mode, and replace partition fixup
26808 with assert as that is now done by force_nonfallthru_and_redirect.
26809 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26810 already be marked with region crossing note.
26811 (insert_section_boundary_note): Make non-static, gate on flag
26812 has_bb_partition, rewrite to also check for multiple partitions.
26813 (rest_of_handle_reorder_blocks): Remove call to
26814 insert_section_boundary_note, now done later during free_cfg.
26815 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26816 * bb-reorder.h (insert_section_boundary_note): Declare.
26817 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26818 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26819 invoke insert_section_boundary_note.
26820 (try_redirect_by_replacing_jump): Remove unnecessary
26821 check for region crossing note.
26822 (fixup_partition_crossing): New function.
26823 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26824 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26825 in non-cfglayout mode.
26826 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26827 remove old code that tried to do this. Emit barrier correctly
26828 when we are in cfglayout mode.
26829 (last_bb_in_partition): New function.
26830 (rtl_split_edge): Correctly fixup partition boundaries.
26831 (commit_one_edge_insertion): Remove old code that tried to
26832 fixup region crossing edge since this is now handled in
26833 split_block, and set up insertion point correctly since
26834 block may now end in a jump.
26835 (verify_hot_cold_block_grouping): Guard against checking when not in
26836 linearized RTL mode.
26837 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26839 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26840 rtl_verify_flow_info, so not called in cfglayout mode.
26841 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26842 (fixup_reorder_chain): Remove old code that attempted to fixup region
26843 crossing note as this is now handled in force_nonfallthru_and_redirect.
26844 (duplicate_insn_chain): Don't duplicate switch section notes.
26845 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26847 * basic-block.h (emit_barrier_after_bb): Declare.
26849 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26851 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26852 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26853 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26855 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26857 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26859 * config/arm/ldmstm.md: Regenerate.
26861 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26863 * config/arm/sync.md (atomic_loaddi_1):
26864 Disable predication for arm_restrict_it.
26865 (arm_load_exclusive<mode>): Likewise.
26866 (arm_load_exclusivesi): Likewise.
26867 (arm_load_exclusivedi): Likewise.
26868 (arm_load_acquire_exclusive<mode>): Likewise.
26869 (arm_load_acquire_exclusivesi): Likewise.
26870 (arm_load_acquire_exclusivedi): Likewise.
26871 (arm_store_exclusive<mode>): Likewise.
26872 (arm_store_exclusive<mode>): Likewise.
26873 (arm_store_release_exclusivedi): Likewise.
26874 (arm_store_release_exclusive<mode>): Likewise.
26876 2013-06-06 Richard Biener <rguenther@suse.de>
26878 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26880 (lto_tag_is_tree_code_p): Adjust.
26881 (lto_tag_is_gimple_code_p): Likewise.
26882 (lto_gimple_code_to_tag): Likewise.
26883 (lto_tag_to_gimple_code): Likewise.
26884 (lto_tree_code_to_tag): Likewise.
26885 (lto_tag_to_tree_code): Likewise.
26886 * data-streamer.h (streamer_write_hwi_in_range): Use
26887 uhwi streaming to stream the normalized range.
26888 (streamer_read_hwi_in_range): Likewise.
26890 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26892 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26893 (predicable_short_it): Likewise.
26894 (predicated): Likewise.
26895 (enabled): Handle above.
26896 (define_cond_exec): Set predicated attribute to yes.
26898 2013-06-05 Mike Stump <mikestump@comcast.net>
26900 * gdbinit.in (__FUNCTION__): Add.
26902 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26904 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26905 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26907 2013-06-05 Jan Hubicka <jh@suse.cz>
26909 * varasm.c (mark_decl_referenced): Revert the removal until targets
26912 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26914 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26915 instead of mark_decl_referenced.
26917 2013-06-05 Jan Hubicka <jh@suse.cz>
26919 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26920 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26921 and symtab_used_from_object_file_p.
26922 (cgraph_make_node_local_1): Clear forced_by_abi.
26923 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26924 * cgraph.h (symtab_node_base): Add forced_by_abi.
26925 (decide_is_variable_needed): Remove.
26926 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26927 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26928 (decide_is_symbol_needed): ... this one; handle symbols in general;
26929 always analyze virtuals; honnor forced_by_abi.
26930 (cgraph_finalize_function): Update.
26931 (varpool_finalize_decl): Update.
26932 (symbol_defined_and_needed): Remove.
26933 (analyze_functions): Update.
26934 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26935 output_refs, input_overwrite_node): Handle forced_by_abi.
26936 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26937 (address_taken_from_non_vtable_p): ... this one.
26938 (comdat_can_be_unshared_p_1): New function.
26939 (cgraph_comdat_can_be_unshared_p): Rename to ...
26940 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26941 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26942 (function_and_variable_visibility): Clear forced_by_abi as needed.
26943 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26944 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26945 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26946 * varpool.c (decide_is_variable_needed): Remove.
26948 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26950 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26951 (arm_option_override): Override arm_restrict_it where appropriate.
26952 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26953 * config/arm/arm.opt (mrestrict-it): New command-line option.
26954 * doc/invoke.texi: Document -mrestrict-it.
26956 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26958 * tsan.c (tsan_atomic_table): Make const.
26960 2013-06-05 Richard Biener <rguenther@suse.de>
26962 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26963 index associated with the tree we are supposed to replace.
26964 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26965 TREE_ASM_WRITTEN as zero for everything but SSA names.
26967 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26969 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26971 2013-06-04 Jan Hubicka <jh@suse.cz>
26973 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26974 (input_node, input_varpool_node): Handle correctly external same
26976 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26977 nodes at ltrans stage.
26979 2013-06-04 Jan Hubicka <jh@suse.cz>
26981 * ipa-inline.c (update_caller_keys): Fix availability test.
26982 (update_callee_keys): Likewise.
26983 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26984 to follow ELF standard.
26986 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26988 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26989 (mips64r5900el-*-elf*): New configurations.
26990 * config/mips/mips-cpus.def (r5900): New processor.
26991 * config/mips/mips-tables.opt: Regenerate.
26992 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26993 (mips_issue_rate): Handle PROCESSOR_R5900.
26994 (mips_reorg_process_insns): Force reorder mode for the R5900.
26995 * config/mips/mips.h (TARGET_MIPS5900): Define.
26996 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26998 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27000 * config/mips/mips.md (processor): Add r5900.
27001 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27003 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27005 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27006 into function to generate MOVI instruction.
27007 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27008 (aarch64_preferred_simd_mode): Turn into wrapper.
27009 (aarch64_output_scalar_simd_mov_immediate): New function.
27010 * config/aarch64/aarch64-protos.h: Add prototype for above.
27012 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27014 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27015 element_char member.
27016 (sizetochar): Return signed char.
27017 (aarch64_simd_valid_immediate): Remove elchar and other
27018 unnecessary variables.
27019 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27020 Calculate element_char as required.
27021 * config/aarch64/aarch64-protos.h: Update and move prototype
27022 for aarch64_output_simd_mov_immediate.
27023 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27026 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27028 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27029 information completed by aarch64_simd_valid_immediate.
27030 (aarch64_legitimate_constant_p): Update arguments.
27031 (aarch64_simd_valid_immediate): Work with struct rather than many
27033 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27034 (aarch64_simd_make_constant): Update arguments.
27035 (aarch64_output_simd_mov_immediate): Work with struct rather than
27036 many pointers. Output immediate directly rather than as operand.
27037 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27039 * config/aarch64/constraints.md (Dn): Update arguments.
27041 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27043 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27045 (aarch64_simd_immediate_valid_for_move): Remove.
27046 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27047 (aarch64_simd_make_constant): Update call.
27048 (aarch64_output_simd_mov_immediate): Update call.
27049 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27051 * config/aarch64/constraints.md (Dn): Update call.
27053 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27055 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27056 return type to bool for prototype.
27057 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27058 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27059 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27061 2013-06-04 Catherine Moore <clm@codesourcery.com>
27063 * config/mips/mips.opt (meva): New.
27064 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27065 (ASM_SPEC): Handle -meva.
27066 * doc/invoke.texi (meva): Document.
27068 2013-06-04 Alan Modra <amodra@gmail.com>
27070 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27073 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27075 * rtl.def: Add extra fourth optional field to define_cond_exec.
27076 * gensupport.c (process_one_cond_exec): Process attributes from
27078 * doc/md.texi: Document fourth field in define_cond_exec.
27080 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27082 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27083 out the processing order as in store_bit_field_1.
27085 2013-06-04 Jan Hubicka <jh@suse.cz>
27087 PR middle-end/57500
27088 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27089 non-VAR_DECL node if it does not exist yet.
27091 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27093 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27094 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27095 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27096 target_cpu_default setting.
27098 2013-06-03 Teresa Johnson <tejohnson@google.com>
27100 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27101 default to -fopt-info=optimized instead of all.
27102 * doc/invoke.texi: Ditto.
27103 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27104 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27105 (execute_vect_slp): Emit BB vectorization success under
27106 MSG_OPTIMIZED_LOCATIONS.
27107 * tree-vect-slp.c (vect_slp_transform_bb): Change
27108 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27109 * tree-vect-loop.c (vect_transform_loop): Ditto.
27111 2013-06-03 Jason Merrill <jason@redhat.com>
27114 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27115 Use TARGET_EXPR for C++.
27117 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27119 PR rtl-optimization/57268
27120 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27121 if DEBUG_INSN_P (insn).
27124 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27126 PR rtl-optimization/57268
27127 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27128 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27130 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27132 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27133 (ix86_avoid_lea_for_addr): Likewise.
27134 (exact_dependency_1): Likewise.
27135 (ix86_adjust_cost): Likewise.
27136 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27138 (do_reorder_for_imul): Fix typo, formatting and
27139 !reload_completed check removed.
27140 (ix86_sched_reorder): Fix typo and formatting.
27141 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27144 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27146 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27148 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27150 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27151 <STRING_CST>: Likewise.
27152 <VECTOR_CST>: Likewise.
27154 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27155 Mikael Morin <mikael@gcc.gnu.org>
27157 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27158 * config.in: Regenerated.
27159 * configure: Regenerated.
27161 2013-06-01 Jan Hubicka <jh@suse.cz>
27163 PR middle-end/57366
27164 * cgraphunit.c (compile): When weakref is not supported,
27165 set up transparent aliases before final output pass.
27166 * varasm.c (assemble_alias): Do not try to do it here.
27168 2013-06-01 Jan Hubicka <jh@suse.cz>
27170 PR middle-end/57467
27171 * passes.c (for_per_function): Skip unanalyzed functions.
27173 2013-06-01 Jan Hubicka <jh@suse.cz>
27175 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27176 (lto_symtab_merge_symbols_1): ... this one.
27177 (lto_symtab_merge_cgraph_nodes): Rename to ...
27178 (lto_symtab_merge_symbols): ... this one; simplify.
27179 * cgraph.c (same_body_aliases_done): Rename to ...
27180 (cpp_implicit_aliases_done): ... this one.
27181 (cgraph_create_function_alias): Update.
27182 (cgraph_same_body_alias): Update.
27183 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27184 (verify_edge_corresponds_to_fndecl): Simplify.
27185 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27186 (cgraph_node): Remove same_body_alias.
27187 (varpool_node): Remove alias_of and extra_name_alias.
27188 (same_body_aliases_done): Rename to ..
27189 (cpp_implicit_aliases_done): ... this one.
27190 (symtab_alias_ultimate_target): Add default parameter.
27191 (symtab_resolve_alias): New function.
27192 (fixup_same_cpp_alias_visibility): Declare.
27193 (cgraph_function_node): Add default parameter.
27194 (cgraph_node_asm_name): Likewise.
27195 (cgraph_function_or_thunk_node): Add default parameter; do
27196 not ICE when it is NULL.
27197 (varpool_variable_node): Likewise.
27198 * tree-emutls.c (create_emultls_var): Update.
27199 (ipa_lower_emutls): Update.
27200 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27201 (cgraph_reset_node): Reset alias info.
27202 (cgraph_finalize_function): Update.
27203 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27204 (analyze_function): Simplify.
27205 (cgraph_process_same_body_aliases): Simplify.
27206 (analyze_functions): Fixup same body aliases.
27207 (handle_alias_pairs): Simplify.
27208 (assemble_thunk): Update.
27209 (assemble_thunks_and_aliases): Update.
27210 (output_weakrefs): Rewrite.
27211 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27212 (lto_output_varpool_node): Likewise.
27213 (compute_ltrans_boundary): Remve assert.
27214 (get_alias_symbol): New functoin.
27215 (input_node): Rewrite alias handling.
27216 (input_varpool_node): Likewise.
27217 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27218 * ipa.c (process_references): Handle weakrefs correctly.
27219 (symtab_remove_unreachable_nodes): Likewise.
27220 * trans-mem.c (get_cg_data): Update.
27221 (ipa_tm_create_version_alias): Update.
27222 (ipa_tm_execute): Update.
27223 * symtab.c (dump_symtab_base): Dump aliases.
27224 (verify_symtab_base): Verify aliases.
27225 (symtab_node_availability): New function.
27226 (symtab_alias_ultimate_target): Simplify.
27227 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27228 handle all the fixup cases.
27229 (symtab_resolve_alias): New function.
27230 * passes.c (ipa_write_summaries): Handle weakrefs.
27231 * varpool.c (varpool_analyze_node): Simplify.
27232 (assemble_aliases): Update.
27233 (varpool_create_variable_alias): Simplify.
27234 (varpool_extra_name_alias): Simplify.
27235 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27236 (lto_symtab_merge_symbols): ... this one.
27238 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27241 PR rtl-optimization/57268
27242 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27243 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27245 2013-06-01 Tobias Burnus <burnus@net-b.de>
27247 Partially reverted:
27248 2013-05-31 Tobias Burnus <burnus@net-b.de>
27250 PR middle-end/57073
27251 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27254 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27256 PR rtl-optimization/57268
27257 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27258 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27260 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27262 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27263 unordered comparison operators when -fno-trapping-math is in effect
27265 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27266 and implement unordered comparison operators properly on the e500.
27268 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27270 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27271 for constant scalar integers.
27272 (simplify_relational_operation_1): Likewise.
27274 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27276 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27277 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27280 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27281 Igor Zamyatin <igor.zamyatin@intel.com>
27283 Silvermont (SLM) architecture performance tuning.
27284 * config/i386/i386.h (enum ix86_tune_indices): Add
27285 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27286 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27288 * config/i386/i386.c (initial_ix86_tune_features)
27289 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27290 (ix86_lea_outperforms): Handle Silvermont tuning.
27291 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27293 (ix86_use_lea_for_mov): Likewise.
27294 (ix86_avoid_lea_for_addr): Likewise.
27295 (ix86_lea_for_add_ok): Likewise.
27296 (exact_dependency_1): New function.
27297 (exact_store_load_dependency): Likewise.
27298 (ix86_adjust_cost): Handle Silvermont tuning.
27299 (do_reoder_for_imul): Likewise.
27300 (swap_top_of_ready_list): New function.
27301 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27303 * config/i386/i386.md (peepholes that split memory operand in fp
27306 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27308 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27309 Remove un-necessary braces.
27311 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27313 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27314 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27316 2013-05-31 Tobias Burnus <burnus@net-b.de>
27318 PR middle-end/57073
27319 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27321 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27324 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27325 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27326 * config/arm/neon.md (iordi3_neon): Remove.
27327 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27328 * config/arm/predicates.md (imm_for_neon_logic_operand):
27329 Move to earlier in the file.
27330 (neon_logic_op2): Likewise.
27331 (arm_iordi_operand_neon): New predicate.
27333 2013-05-31 Richard Biener <rguenther@suse.de>
27335 PR tree-optimization/57478
27336 PR tree-optimization/57453
27337 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27340 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27342 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27343 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27345 2013-05-30 Tobias Burnus <burnus@net-b.de>
27346 Thomas Koenig <tkoenig@gcc.gnu.org>
27348 PR middle-end/57073
27349 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27350 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27352 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27354 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27356 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27358 * target.def (register_usage_leveling_p): New hook.
27359 * targhooks.c (default_register_usage_leveling_p): New.
27360 * targhooks.h (default_register_usage_leveling_p): New prototype.
27361 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27362 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27363 * doc/tm.texi: Update.
27364 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27366 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27368 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27369 (*insv_reg<mode>): New define_insn.
27371 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27373 PR rtl-optimization/57439
27374 * postreload.c (move2add_valid_value_p): Check that we have
27375 a zero subreg_regno_offset when accessing the register in
27376 the requested mode.
27378 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27379 Igor Zamyatin <igor.zamyatin@intel.com>
27381 Silvermont (SLM) architecture pipeline model, tuning and
27383 * config.gcc: Add slm config options and target.
27385 * config/i386/slm.md: New.
27387 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27389 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27391 (ix86_target_macros_internal): Likewise.
27393 * config/i386/i386.c (slm_cost): New cost.
27394 (m_SLM): New macro flag.
27395 (initial_ix86_tune_features): Set m_SLM.
27396 (x86_accumulate_outgoing_args): Likewise.
27397 (x86_arch_always_fancy_math_387): Likewise.
27398 (processor_target_table): Add slm cost.
27399 (cpu_names): Add slm cpu name.
27400 (x86_option_override_internal): Set SLM ISA.
27401 (ix86_issue_rate): New case PROCESSOR_SLM.
27402 (ia32_multipass_dfa_lookahead): Likewise.
27403 (fold_builtin_cpu): Add slm.
27405 * config/i386/i386.h (TARGET_SLM): New target macro.
27406 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27407 (processor_type): Add PROCESSOR_SLM.
27409 * config/i386/i386.md (cpu): Add new value "slm".
27410 (slm.md): Include slm.md.
27412 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27413 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27415 * config/arm/arm-protos.h: Add and update function protos.
27416 * config/arm/arm.c (use_simple_return_p): New added.
27417 (thumb2_expand_return): Check simple_return flag.
27418 * config/arm/arm.md: Add simple_return and conditional simple_return.
27419 * config/arm/iterators.md: Add iterator for return and simple_return.
27421 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27423 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27424 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27425 (arm_emit_vfp_multi_reg_pop): Likewise.
27426 (thumb2_emit_ldrd_pop): Likewise.
27427 (arm_expand_epilogue): Add misc REG_CFA notes.
27428 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27430 2013-05-29 Lawrence Crowl <crowl@google.com>
27432 * config/arm/t-arm: Update for below.
27434 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27435 Change type to hash_table. Update dependent calls and types.
27437 * config/i386/t-cygming: Update for below.
27439 * config/i386/t-interix: Update for below.
27441 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27442 Change type to hash_table. Update dependent calls and types.
27443 (i386_find_on_wrapper_list::wrappers): Likewise.
27445 * config/ia64/t-ia64: Update for below.
27447 * config/ia64/ia64.c (bundle_state_table):
27448 Change type to hash_table. Update dependent calls and types.
27450 * config/mips/mips.c (mips_reorg_process_insns::htab):
27451 Change type to hash_table. Update dependent calls and types.
27453 * config/sol2.c (solaris_comdat_htab):
27454 Change type to hash_table. Update dependent calls and types.
27456 * config/t-sol2: Update for above.
27458 2013-05-29 Teresa Johnson <tejohnson@google.com>
27460 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27461 functions are not yet marked as defined.
27463 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27464 Pat Haugen <pthaugen@us.ibm.com>
27465 Peter Bergner <bergner@vnet.ibm.com>
27467 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27471 (vrotl<mode>3): Likewise.
27472 (vashl<mode>3): Likewise.
27473 (vlshr<mode>3): Likewise.
27474 (vashr<mode>3): Likewise.
27476 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27477 support for power8 V2DI builtins.
27479 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27480 power8 V2DI builtins.
27481 (vupkhsw): Likewise.
27482 (vupklsw): Likewise.
27483 (vaddudm): Likewise.
27484 (vminsd): Likewise.
27485 (vmaxsd): Likewise.
27486 (vminud): Likewise.
27487 (vmaxud): Likewise.
27488 (vpkudum): Likewise.
27489 (vpksdss): Likewise.
27490 (vpkudus): Likewise.
27491 (vpksdus): Likewise.
27496 (vsubudm): Likewise.
27497 (vcmpequd): Likewise.
27498 (vcmpgtsd): Likewise.
27499 (vcmpgtud): Likewise.
27500 (vcmpequd_p): Likewise.
27501 (vcmpgtsd_p): Likewise.
27502 (vcmpgtud_p): Likewise.
27503 (vupkhsw): Likewise.
27504 (vupklsw): Likewise.
27505 (vaddudm): Likewise.
27506 (vmaxsd): Likewise.
27507 (vmaxud): Likewise.
27508 (vminsd): Likewise.
27509 (vminud): Likewise.
27510 (vpksdss): Likewise.
27511 (vpksdus): Likewise.
27512 (vpkudum): Likewise.
27513 (vpkudus): Likewise.
27518 (vsubudm): Likewise.
27520 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27521 support for power8 V2DI instructions.
27523 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27524 power8 V2DI instructions. Combine pack and unpack insns to use an
27525 iterator for each mode. Check whether a particular mode supports
27526 Altivec instructions instead of just checking TARGET_ALTIVEC.
27527 (UNSPEC_VPKUWUM): Likewise.
27528 (UNSPEC_VPKSHSS): Likewise.
27529 (UNSPEC_VPKSWSS): Likewise.
27530 (UNSPEC_VPKUHUS): Likewise.
27531 (UNSPEC_VPKSHUS): Likewise.
27532 (UNSPEC_VPKUWUS): Likewise.
27533 (UNSPEC_VPKSWUS): Likewise.
27534 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27535 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27536 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27537 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27538 (UNSPEC_VUPKHSB): Likewise.
27539 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27540 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27541 (UNSPEC_VUPKHSH): Likewise.
27542 (UNSPEC_VUPKLSB): Likewise.
27543 (UNSPEC_VUPKLSH): Likewise.
27545 (VI_char): Likewise.
27546 (VI_scalar): Likewise.
27547 (VI_unit): Likewise.
27549 (VP_small): Likewise.
27550 (VP_small_lc): Likewise.
27551 (VU_char): Likewise.
27552 (add<mode>3): Likewise.
27553 (altivec_vaddcuw): Likewise.
27554 (altivec_vaddu<VI_char>s): Likewise.
27555 (altivec_vadds<VI_char>s): Likewise.
27556 (sub<mode>3): Likewise.
27557 (altivec_vsubcuw): Likewise.
27558 (altivec_vsubu<VI_char>s): Likewise.
27559 (altivec_vsubs<VI_char>s): Likewise.
27560 (altivec_vavgs<VI_char>): Likewise.
27561 (altivec_vcmpbfp): Likewise.
27562 (altivec_eq<mode>): Likewise.
27563 (altivec_gt<mode>): Likewise.
27564 (altivec_gtu<mode>): Likewise.
27565 (umax<mode>3): Likewise.
27566 (smax<mode>3): Likewise.
27567 (umin<mode>3): Likewise.
27568 (smin<mode>3): Likewise.
27569 (altivec_vpkuhum): Likewise.
27570 (altivec_vpkuwum): Likewise.
27571 (altivec_vpkshss): Likewise.
27572 (altivec_vpkswss): Likewise.
27573 (altivec_vpkuhus): Likewise.
27574 (altivec_vpkshus): Likewise.
27575 (altivec_vpkuwus): Likewise.
27576 (altivec_vpkswus): Likewise.
27577 (altivec_vpks<VI_char>ss): Likewise.
27578 (altivec_vpks<VI_char>us): Likewise.
27579 (altivec_vpku<VI_char>us): Likewise.
27580 (altivec_vpku<VI_char>um): Likewise.
27581 (altivec_vrl<VI_char>): Likewise.
27582 (altivec_vsl<VI_char>): Likewise.
27583 (altivec_vsr<VI_char>): Likewise.
27584 (altivec_vsra<VI_char>): Likewise.
27585 (altivec_vsldoi_<mode>): Likewise.
27586 (altivec_vupkhsb): Likewise.
27587 (altivec_vupkhs<VU_char>): Likewise.
27588 (altivec_vupkls<VU_char>): Likewise.
27589 (altivec_vupkhsh): Likewise.
27590 (altivec_vupklsb): Likewise.
27591 (altivec_vupklsh): Likewise.
27592 (altivec_vcmpequ<VI_char>_p): Likewise.
27593 (altivec_vcmpgts<VI_char>_p): Likewise.
27594 (altivec_vcmpgtu<VI_char>_p): Likewise.
27595 (abs<mode>2): Likewise.
27596 (vec_unpacks_hi_v16qi): Likewise.
27597 (vec_unpacks_hi_v8hi): Likewise.
27598 (vec_unpacks_lo_v16qi): Likewise.
27599 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27600 (vec_unpacks_lo_v8hi): Likewise.
27601 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27602 (vec_pack_trunc_v8h): Likewise.
27603 (vec_pack_trunc_v4si): Likewise.
27604 (vec_pack_trunc_<mode>): Likewise.
27606 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27608 (vec_vmaxsd): Likewise.
27609 (vec_vmaxud): Likewise.
27610 (vec_vminsd): Likewise.
27611 (vec_vminud): Likewise.
27612 (vec_vpksdss): Likewise.
27613 (vec_vpksdus): Likewise.
27614 (vec_vpkudum): Likewise.
27615 (vec_vpkudus): Likewise.
27616 (vec_vrld): Likewise.
27617 (vec_vsld): Likewise.
27618 (vec_vsrad): Likewise.
27619 (vec_vsrd): Likewise.
27620 (vec_vsubudm): Likewise.
27621 (vec_vupkhsw): Likewise.
27622 (vec_vupklsw): Likewise.
27624 2013-05-29 Jan Hubicka <jh@suse.cz>
27626 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27627 flags; reorder rest of fields in more consistent way.
27628 (varpool_node): Remove analyzed, finalized and alias.
27629 (cgraph_ndoe): Likewise.
27630 (symtab_alias_ultimate_target): New function.
27631 (cgraph_function_node): Move offline.
27632 (cgraph_reset_node): Declare.
27633 (cgraph_comdat_can_be_unshared_p): Remove.
27634 (varpool_remove_initializer): Declare.
27635 (varpool_first_defined_variable, varpool_next_defined_variable
27636 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27637 (cgraph_function_with_gimple_body_p): Update.
27638 (varpool_all_refs_explicit_p): Update.
27639 (symtab_alias_target): New function.
27640 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27641 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27642 (cgraph_function_or_thunk_node): Simplify using
27643 symtab_alias_ultimate_target.
27644 (varpool_variable_node): Likewise.
27645 * cgraph.c (cgraph_create_function_alias): Update.
27646 (cgraph_add_thunk): Update.
27647 (cgraph_remove_node): Update.
27648 (dump_cgraph_node): Do not dump removed flags.
27649 (cgraph_function_body_availability): Update.
27650 (cgraph_propagate_frequency): Update.
27651 (verify_cgraph_node): Check sanity of local flag.
27652 (cgraph_function_node): Move here from cgraph.h; revamp for
27653 cgraph_function_or_thunk_node.
27654 * lto-symtab.c (lto_varpool_replace_node): Update.
27655 (lto_symtab_resolve_can_prevail_p): Update.
27656 (lto_symtab_merge_cgraph_nodes): Update.
27657 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27658 propagate_constants_accross_call, devirtualization_time_bonus,
27659 ipcp_propagate_stage): Update.
27660 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27661 * ipa-inline-transform.c (clone_inlined_nodes,
27662 preserve_function_body_p): Update.
27663 * ipa-reference.c (propagate): Update.
27664 (write_node_summary_p): Update.
27665 * toplev.c (wrapup_global_declaration_2): Update.
27666 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27667 (analyze_function) ... this one.
27668 (cgraph_process_new_functions): Update.
27669 (cgraph_reset_node): Export.
27670 (cgraph_finalize_function): Update.
27671 (cgraph_add_new_function): Update.
27672 (process_function_and_variable_attributes): Update.
27673 (varpool_finalize_decl): Update.
27674 (symbol_finalized): Remove.
27675 (symbol_finalized_and_needed): Rename to ...
27676 (symbol_defined_and_needed): ... update.
27677 (cgraph_analyze_functions): Update.
27678 (handle_alias_pairs): Update.
27679 (mark_functions_to_output): Update.
27680 (assemble_thunk): Update.
27681 (output_in_order): Update.
27682 (output_weakrefs): Update.
27683 (finalize_compilation_unit): Update.
27684 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27685 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27686 input_node, input_varpool_node): Update.
27687 * dbxout.c (dbxout_expand_expr): Update.
27688 * cgraphclones.c (cgraph_clone_node): Update.
27689 (cgraph_copy_node_for_versioning): Update.
27690 (cgraph_materialize_clone): Update.
27691 (cgraph_materialize_all_clones): Update.
27692 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27693 propagate_pure_const, propagate_nothrow): Update.
27694 * lto-streamer-out.c (lto_output, write_symbol): Update.
27695 * ipa-utils.c (ipa_reverse_postorder): Update.
27696 * ipa-inline.c (can_inline_edge_p): Update.
27697 (update_caller_keys, ipa_inline): Update.
27698 * dwarf2out.c (reference_to_unused,
27699 premark_types_used_by_global_vars_helper): Update.
27700 * tree-eh.c (tree_could_trap_p): Update.
27701 * ipa-split.c (consider_split, execute_split_functions): Update.
27702 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27703 has_addr_references_p): Update; move ahead in file for better
27705 (process_references): Simplify.
27706 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27707 bodies are removed.
27708 (cgraph_comdat_can_be_unshared_p): Make static.
27709 (cgraph_externally_visible_p): Update.
27710 (varpool_externally_visible_p): Update.
27711 (function_and_variable_visibility): Update.
27712 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27713 ipa_tm_mark_force_output_node): Update.
27714 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27715 estimate_edge_devirt_benefit, inline_generate_summary,
27716 inline_write_summary): Update.
27717 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27718 * ipa-prop.c (ipa_compute_jump_functions): Update.
27719 (ipa_print_node_params, ipa_prop_read_section,
27720 ipa_update_after_lto_read, read_replacements_section): Update.
27721 * varasm.c (mark_decl_referenced): Update.
27722 (assemble_alias, dump_tm_clone_pairs): Update.
27723 * tree-inline.c (copy_bb): Update.
27724 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27726 * symtab.c (dump_symtab_base): Print new flags.
27727 (verify_symtab_base): Verify new flags.
27728 (symtab_alias_ultimate_target): New function.
27729 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27730 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27732 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27734 * i386.c (ix86_get_function_versions_dispatcher,
27735 ix86_generate_version_dispatcher_body): Update.
27736 (fold_builtin_cpu): Use varpool_add_new_variable.
27737 * varpool.c (varpool_remove_initializer): Break out from ...
27738 (varpool_remove_node): ... this one.
27739 (dump_varpool_node, varpool_node_for_asm,
27740 cgraph_variable_initializer_availability, varpool_analyze_node,
27741 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27742 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27745 2013-05-29 Jan Hubicka <jh@suse.cz>
27747 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27749 2013-05-29 Easwaran Raman <eraman@google.com>
27751 PR tree-optimization/57442
27752 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27753 when control exits the main loop.
27755 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27757 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27759 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27760 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27761 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27764 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27766 PR tree-optimization/57441
27767 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27768 Don't limit size of incr_vec to number of candidates.
27770 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27772 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27773 and mips16 directories.
27774 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27775 (MULTILIB_DIRNAMES): Ditto.
27776 (MULTILIB_EXCEPTIONS): Add new exceptions.
27777 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27778 (MULTILIB_DIRNAMES): Ditto.
27779 (MULTILIB_EXCEPTIONS): Add new exceptions.
27781 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27782 Marcus Shawcroft <marcus.shawcroft@arm.com>
27784 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27785 SYMBOL_TINY_ABSOLUTE.
27786 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27787 SYMBOL_TINY_ABSOLUTE.
27788 (aarch64_expand_mov_immediate): Likewise.
27789 (aarch64_classify_symbol): Likewise.
27790 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27791 Permit SYMBOL_TINY_ABSOLUTE.
27792 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27794 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27795 Marcus Shawcroft <marcus.shawcroft@arm.com>
27797 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27798 Refactor if/switch. Replace gcc_assert with if.
27800 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27802 * config/i386/i386.c (initial_ix86_tune_features): Enable
27803 FP Reassociation for AMD bdver1 and bdver2.
27805 2013-05-29 Martin Jambor <mjambor@suse.cz>
27807 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27808 and IMAGPART_EXPR do not occur within other handled_components.
27810 2013-05-29 Richard Biener <rguenther@suse.de>
27812 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27813 access on whether the use is in the BB we currently try to
27815 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27816 vectorize to vect_bb_slp_scalar_cost.
27818 2013-05-29 Richard Biener <rguenther@suse.de>
27820 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27821 computing scalar cost offsetted by stmts that are kept live
27823 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27824 for computation of scalar cost.
27826 2013-05-28 Steve Ellcey <sellcey@mips.com>
27828 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27830 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27832 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27833 array notation built-in reduction functions.
27834 * doc/passes.texi (Passes): Added documentation about changes done
27836 * doc/invoke.texi (C Dialect Options): Added documentation about
27837 the -fcilkplus flag.
27838 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27839 (BUILTINS_DEF): Depend on cilkplus.def.
27840 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27841 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27842 * cilkplus.def: New file.
27844 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27846 PR rtl-optimization/57439
27847 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27849 2013-05-28 Easwaran Raman <eraman@google.com>
27851 PR tree-optimization/57337
27852 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27853 (find_insert_point): Correctly identify the insertion point
27854 when two statements with the same UID is compared.
27856 2013-05-28 Richard Biener <rguenther@suse.de>
27858 PR tree-optimization/56787
27859 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27860 from the list of data references.
27861 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27863 (vect_analyze_loop_operations): Likewise.
27864 (vect_transform_loop): Remove clobbers.
27866 2013-05-28 Martin Jambor <mjambor@suse.cz>
27868 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27869 and REALPART_EXPRs have scalar type.
27871 2013-05-28 Richard Biener <rguenther@suse.de>
27873 PR tree-optimization/57411
27874 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27876 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27877 virtual operand propagation.
27879 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27881 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27882 destination register for bmasksi_vis.
27883 (vector_init_bshuffle): Likewise.
27884 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27886 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27888 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27889 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27890 mode if the instruction isn't available in the original mode.
27891 * config/sparc/sparc.opt (mfix-ut699): New option.
27892 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27893 (divdf3): Turn into expander.
27894 (divdf3_nofix): New insn.
27895 (divdf3_fix): Likewise.
27896 (divsf3): Disable if -mfix-ut699.
27897 (sqrtdf2): Turn into expander.
27898 (sqrtdf2_nofix): New insn.
27899 (sqrtdf2_fix): Likewise.
27900 (sqrtsf2): Disable if -mfix-ut699.
27902 2013-05-27 Richard Biener <rguenther@suse.de>
27904 PR middle-end/57412
27905 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27906 block for the new loop.
27908 2013-05-27 Richard Biener <rguenther@suse.de>
27910 PR tree-optimization/57343
27911 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27912 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27913 (number_of_iterations_cond): Do not build the folded tree.
27915 2013-05-27 Richard Biener <rguenther@suse.de>
27918 PR middle-end/57381
27919 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27920 OEP_CONSTANT_ADDRESS_OF retained.
27922 PR tree-optimization/57417
27923 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27924 for unchanged base.
27925 (set_ssa_val_to): Compare addresses using
27926 get_addr_base_and_unit_offset.
27928 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27930 PR rtl-optimization/56833
27931 * postreload.c (move2add_record_mode): New function.
27932 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27933 (move2add_use_add2_insn): Use move2add_record_sym_value.
27934 (move2add_use_add3_insn): Likewise.
27935 (reload_cse_move2add): Use move2add_valid_value_p and
27936 move2add_record_mode. Invalidate call-clobbered and REG_INC
27937 affected regs by setting reg_mode to VOIDmode.
27938 (move2add_note_store): Don't pretend the inside of a SUBREG is
27939 the actual destination. Invalidate single/leading registers by
27940 setting reg_mode to VOIDmode.
27941 Use move2add_record_sym_value, move2add_valid_value_p and
27942 move2add_record_mode.
27944 2013-05-27 Richard Biener <rguenther@suse.de>
27946 PR tree-optimization/57396
27947 * tree-affine.c (double_int_constant_multiple_p): Properly
27948 return false for val == 0 and div != 0.
27950 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27952 * config/mips/mips.h: Use #elif in preprocessor conditions.
27954 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27957 * config/mips/constraints.md (kl): New constraint.
27958 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27959 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27960 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27961 from LO for MIPS16.
27962 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27964 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27967 * config/mips/mips.c (mips_can_inline_p): New function.
27968 (TARGET_CAN_INLINE_P): Define.
27970 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27972 * sched-int.h (ds_t, dw_t): Make unsigned int.
27973 Fix documentation that describes how all the ds_t bits are used.
27974 Reserve the last bit for delayed-branch scheduling.
27975 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27976 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27977 (gen_dep_weak_1): Remove prototype.
27978 * sched-deps.c (get_dep_weak_1): Make static.
27979 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27980 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27981 * doc/tm.texi: Regenerate.
27982 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27984 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27987 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27989 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27990 Sandra Loosemore <sandra@codesourcery.com>
27992 * config.gcc (powerpc-*): Allow native for with-cpu.
27994 2013-05-24 Jeff Law <law@redhat.com>
27996 PR tree-optimization/57124
27997 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27998 conversion feeding a condition if the range has an overflow
27999 if -fstrict-overflow. Add warnings for when we do make the
28002 2013-05-24 Dehao Chen <dehao@google.com>
28004 * tree-cfg.c (locus_discrim_map): Fix the typo.
28005 (locus_discrim_hasher): Likewise.
28006 (locus_discrim_hasher::hash): Likewise.
28007 (locus_discrim_hasher::equal): Likewise.
28009 2013-05-24 Martin Jambor <mjambor@suse.cz>
28011 PR tree-optimization/57294
28012 * cgraph.h (ipa_record_stmt_references): Declare.
28013 * cgraphbuild.c (ipa_record_stmt_references): New function.
28014 (build_cgraph_edges): Use ipa_record_stmt_references.
28015 (rebuild_cgraph_edges): Likewise.
28016 (cgraph_rebuild_references): Likewise.
28017 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28018 associated with the old statement and build references from the
28019 newly built statements.
28020 * ipa-ref.c (ipa_remove_stmt_references): New function.
28021 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28023 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28025 * lra-constraints.c (emit_spill_move): Use smaller mode for
28027 (check_and_process_move): Consider mem-reg moves for secondary
28029 (curr_insn_transform): Don't lose insns emitted before for
28030 secondary memory moves.
28031 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28032 reg set up in the current insn.
28034 2013-05-24 Dehao Chen <dehao@google.com>
28036 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28038 (locus_descrim_hasher::equal): Likewise.
28039 (build_gimple_cfg): New discriminator assignment algorithm.
28040 (make_edges): Likewise.
28041 (next_discriminator_for_locus): Likewise.
28042 (same_line_p): Likewise.
28043 (assign_discriminators): Likewise.
28044 (make_cond_expr_edges): Likewise.
28045 (make_gimple_switch_edges): Likewise.
28046 (make_goto_expr_edges): Likewise.
28047 (make_gimple_asm_edges): Likewise.
28049 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28051 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28052 X format specifier to only display bottom 16 bits.
28053 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28054 immediate to match for operand 2, since it will be masked.
28056 2013-05-24 Richard Biener <rguenther@suse.de>
28058 PR tree-optimization/57287
28059 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28060 all SSA names that occur in abnormal PHIs.
28062 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28065 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28066 that index is not negative.
28068 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28070 PR rtl-optimization/55177
28071 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28072 (simplify_byte_swapping_operation): New.
28073 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28074 (simplify_relational_operation_1): Deal with BSWAP.
28076 2013-05-23 Richard Henderson <rth@redhat.com>
28079 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28080 (ix86_reorg): Call it.
28082 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28085 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28086 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28087 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28089 2013-05-23 Christian Bruel <christian.bruel@st.com>
28092 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28094 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28095 Marcus Shawcroft <marcus.shawcroft@arm.com>
28097 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28098 * config/aarch64/constraints.md (Usa): Remove.
28099 * doc/md.texi (AArch64 Usa): Remove.
28101 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28102 Marcus Shawcroft <marcus.shawcroft@arm.com>
28104 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28105 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28106 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28107 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28109 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28111 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28112 instruction (AdvSIMD).
28113 * config/aarch64/aarch64-builtins.c
28114 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28115 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28117 2013-05-23 Martin Jambor <mjambor@suse.cz>
28119 PR middle-end/57347
28120 * tree.h (contains_bitfld_component_ref_p): Declare.
28121 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28122 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28124 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28125 not access a bit-field. Assert all final offsets are byte-aligned.
28127 2013-05-23 Richard Biener <rguenther@suse.de>
28129 PR tree-optimization/57380
28130 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28131 least one invariant or re-used load.
28132 * passes.c (init_optimization_passes): Move pass_phiprop before
28135 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28137 * config/aarch64/aarch64-simd.md
28138 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28140 2013-05-23 Richard Biener <rguenther@suse.de>
28142 PR middle-end/57381
28143 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28144 OEP_CONSTANT_ADDRESS_OF retained.
28146 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28148 PR middle-end/57344
28149 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28150 don't lower unit. Handle unit not being always BITS_PER_WORD.
28152 2013-05-23 Richard Biener <rguenther@suse.de>
28154 PR rtl-optimization/57341
28155 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28156 instead of true_dependence.
28158 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28160 * bb-reorder.c (branch_threshold): Make const.
28161 (exec_threshold): Ditto.
28163 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28164 Pat Haugen <pthaugen@us.ibm.com>
28165 Peter Bergner <bergner@vnet.ibm.com>
28167 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28168 documentation for the power8 crypto builtins.
28170 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28172 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28173 macros for defining power8 builtin functions.
28174 (BU_P8V_AV_2): Likewise.
28175 (BU_P8V_AV_P): Likewise.
28176 (BU_P8V_VSX_1): Likewise.
28177 (BU_P8V_OVERLOAD_1): Likewise.
28178 (BU_P8V_OVERLOAD_2): Likewise.
28179 (BU_CRYPTO_1): Likewise.
28180 (BU_CRYPTO_2): Likewise.
28181 (BU_CRYPTO_3): Likewise.
28182 (BU_CRYPTO_OVERLOAD_1): Likewise.
28183 (BU_CRYPTO_OVERLOAD_2): Likewise.
28184 (XSCVSPDP): Fix typo, point to the correct instruction.
28185 (VCIPHER): Add power8 crypto builtins.
28186 (VCIPHERLAST): Likewise.
28187 (VNCIPHER): Likewise.
28188 (VNCIPHERLAST): Likewise.
28189 (VPMSUMB): Likewise.
28190 (VPMSUMH): Likewise.
28191 (VPMSUMW): Likewise.
28192 (VPERMXOR_V2DI): Likewise.
28193 (VPERMXOR_V4SI: Likewise.
28194 (VPERMXOR_V8HI: Likewise.
28195 (VPERMXOR_V16QI: Likewise.
28196 (VSHASIGMAW): Likewise.
28197 (VSHASIGMAD): Likewise.
28198 (VPMSUM): Likewise.
28199 (VPERMXOR): Likewise.
28200 (VSHASIGMA): Likewise.
28202 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28203 __CRYPTO__ if the crypto instructions are available.
28204 (altivec_overloaded_builtins): Add support for overloaded power8
28207 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28208 support for power8 crypto builtins.
28209 (builtin_function_type): Likewise.
28210 (altivec_init_builtins): Add support for builtins that take vector
28211 long long (V2DI) arguments.
28213 * config/rs6000/crypto.md: New file, define power8 crypto
28216 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28217 Pat Haugen <pthaugen@us.ibm.com>
28218 Peter Bergner <bergner@vnet.ibm.com>
28220 * doc/invoke.texi (Option Summary): Add power8 options.
28221 (RS/6000 and PowerPC Options): Likewise.
28223 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28224 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28225 wm, wn, wr documentation.
28227 * config/rs6000/constraints.md (wm): New constraint for VSX
28228 registers if direct move instructions are enabled.
28229 (wn): New constraint for no registers.
28230 (wq): New constraint for quad word even GPR registers.
28231 (wr): New constraint if 64-bit instructions are enabled.
28232 (wv): New constraint if power8 vector instructions are enabled.
28233 (wQ): New constraint for quad word memory locations.
28235 * config/rs6000/predicates.md (const_0_to_15_operand): New
28236 constraint for 0..15 for crypto instructions.
28237 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28238 as GPR and floating point registers.
28239 (int_reg_operand): New predicate to match only GPR registers.
28240 (base_reg_operand): New predicate to match base registers.
28241 (quad_int_reg_operand): New predicate to match even GPR registers
28242 for quad memory operations.
28243 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28244 operations in both GPR and VSX registers.
28245 (quad_memory_operand): New predicate for quad memory operations.
28246 (reg_or_indexed_operand): New predicate for direct move support.
28248 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28249 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28250 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28251 (POWERPC_MASKS): Add power8 options.
28252 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28255 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28256 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28258 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28259 (-mpower8-fusion): New power8 options.
28260 (-mpower8-fusion-sign): Likewise.
28261 (-mpower8-vector): Likewise.
28262 (-mcrypto): Likewise.
28263 (-mdirect-move): Likewise.
28264 (-mquad-memory): Likewise.
28266 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28267 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28269 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28270 (rs6000_debug_vector_unit): Add p8_vector.
28271 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28272 definitions. Also print fusion state.
28273 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28274 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28275 (rs6000_option_override_internal): Add support for power8.
28276 (rs6000_common_init_builtins): Add debugging for skipped builtins
28277 if -mdebug=builtin.
28278 (rs6000_adjust_cost): Add power8 support.
28279 (rs6000_issue_rate): Likewise.
28280 (insn_must_be_first_in_group): Likewise.
28281 (insn_must_be_last_in_group): Likewise.
28282 (force_new_group): Likewise.
28283 (rs6000_register_move_cost): Likewise.
28284 (rs6000_opt_masks): Likewise.
28286 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28287 power8 capable assembler, default to power7 options.
28288 (TARGET_DIRECT_MOVE): Likewise.
28289 (TARGET_CRYPTO): Likewise.
28290 (TARGET_P8_VECTOR): Likewise.
28291 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28292 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28293 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28294 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28295 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28296 (TARGET_XSCVDPSPN): Likewise.
28297 (TARGET_XSCVSPDPN): Likewsie.
28298 (TARGET_SYNC_HI_QI): Likewise.
28299 (TARGET_SYNC_TI): Likewise.
28300 (MASK_CRYPTO): Likewise.
28301 (MASK_DIRECT_MOVE): Likewise.
28302 (MASK_P8_FUSION): Likewise.
28303 (MASK_P8_VECTOR): Likewise.
28304 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28305 temporary used by some of the direct move instructions to get two FP
28306 temporary registers does not force creation of a stack frame.
28307 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28308 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28309 that any VSX registers are tieable, even if they are also an
28310 Altivec vector mode.
28311 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28312 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28313 (RS6000_BTM_CRYPTO): Likewise.
28314 (RS6000_BTM_COMMON): Likewise.
28316 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28317 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28318 (enum rs6000_vector): Add power8 vector support.
28320 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28324 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28325 (any_sibcall_could_use_r3): this and handle indirect calls.
28326 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28328 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28330 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28332 2013-05-22 Richard Biener <rguenther@suse.de>
28334 PR middle-end/57349
28335 * profile.c (branch_prob): Do not split blocks that are
28336 abnormally receiving from ECF_RETURNS_TWICE functions.
28338 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28340 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28341 address mode. Move pointer mode initialization to the same place.
28343 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28345 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28346 while it has any effect.
28348 2013-05-21 Easwaran Raman <eraman@google.com>
28350 PR tree-optimization/57322
28351 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28352 UID of the statement added to the BB to be 1.
28354 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28356 PR tree-optimization/57331
28357 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28358 of conversion from pointer type to integral type with integer.
28360 2013-05-21 Martin Jambor <mjambor@suse.cz>
28363 * ipa-prop.c (ipa_read_node_info): Process param_used and
28364 controlled_uses in the same order as when writing.
28366 2013-05-21 Magnus Granberg <baldrick@free.fr>
28369 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28371 2013-05-21 Richard Biener <rguenther@suse.de>
28373 PR tree-optimization/57318
28374 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28375 estimate stmts with side-effects as likely eliminated.
28377 2013-05-21 Richard Biener <rguenther@suse.de>
28379 PR tree-optimization/57330
28380 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28381 preserve the call stmts fntype.
28383 2013-05-21 Richard Biener <rguenther@suse.de>
28385 PR tree-optimization/57303
28386 * tree-ssa-sink.c (statement_sink_location): Improve killing
28387 stmt detection and properly handle self-assignments.
28389 2013-05-21 Christian Bruel <christian.bruel@st.com>
28391 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28392 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28393 registers. Set register size out of the PARALLEL loop.
28395 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28398 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28399 (*fmasf4, *fmasf4_media): New insns.
28401 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28403 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28404 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28405 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28406 (mips_idiv_insns): Update the comments to say that the returned
28407 instruction counts are in units of BASE_INSN_LENGTH.
28408 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28409 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28410 using 2 rather than 4 as the length of indirect MIPS16 and
28411 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28412 length of a NOP. Don't divide MIPS16 lengths by 2.
28413 (mips16_split_long_branches): Assume a branch is long if the
28414 length is greater than 4 rather than 8.
28415 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28416 rather than multiplying them by 2. Multiply instruction counts
28417 by BASE_INSN_LENGTH rather than 4.
28418 (*jump_mips16, tls_get_tp_mips16_<mode>)
28419 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28421 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28423 * config/mips/mips.md (extended_mips16): Remove branch case.
28424 (length): Remove duplicated extended_mips16 test.
28426 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28428 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28430 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28432 * recog.h (Recog_data): Rename to...
28433 (recog_data_d): ...this.
28434 (recog_data): Update accordingly.
28435 * recog.c (recog_data): Likewise.
28436 * reload.c (save_recog_data): Likewise.
28437 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28438 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28440 2013-05-17 Julian Brown <julian@codesourcery.com>
28442 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28443 found in a REG_EQUAL note, invalidate it.
28445 2013-05-17 Easwaran Raman <eraman@google.com>
28447 * tree-ssa-reassoc.c (find_insert_point): New function.
28448 (insert_stmt_after): Likewise.
28449 (get_def_stmt): Likewise.
28450 (ensure_ops_are_available): Likewise.
28451 (not_dominated_by): Likewise.
28452 (rewrite_expr_tree): Do not move statements beyond what is
28453 necessary. Remove call to swap_ops_for_binary_stmt...
28454 (reassociate_bb): ... and move it here.
28455 (build_and_add_sum): Assign UIDs for new statements.
28456 (linearize_expr): Likewise.
28457 (do_reassoc): Renumber gimple statement UIDs.
28459 2013-05-17 Jan Hubicka <jh@suse.cz>
28461 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28463 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28464 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28466 (output_weakrefs): Update.
28468 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28469 Martin Jambor <mjambor@suse.cz>
28471 PR middle-end/57276
28472 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28473 value that corresponds to the given aggval is found in values vector.
28475 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28477 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28478 sse, sse2, sse3, ssse3 and sse4a flags to options.
28480 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28482 * gengtype-state.c: (s_expr_writer): New class, to handle
28483 prettifying of output layout of s-expressions.
28484 (state_writer): New class, to write out gtype.state.
28485 (state_written_type_count): Move this variable into member data of
28487 (s_expr_writer::s_expr_writer): New code: constructor for new class
28488 (state_writer::state_writer(): ditto
28489 (s_expr_writer::write_new_line): New function
28490 (s_expr_writer::write_any_indent): ditto
28491 (s_expr_writer::begin_s_expr): ditto
28492 (s_expr_writer::end_s_expr): ditto
28493 (write_state_fileloc): convert to method of state_writer...
28494 (state_writer:: write_state_fileloc): ...and use methods of
28495 s_expr_writer to write indentation into the gtype.state output file
28496 to visually represent the hierarchical structure of the list
28498 (write_state_fields): ditto, renaming to...
28499 (state_writer::write_state_fields)
28500 (write_state_a_string): ditto, renaming to...
28501 (state_writer::write_state_a_string)
28502 (write_state_string_option): ditto, renaming to...
28503 (state_writer::write_state_string_option)
28504 (write_state_type_option): ditto, renaming to...
28505 (state_writer::write_state_type_option)
28506 (write_state_nested_option): ditto, renaming to...
28507 (state_writer::write_state_nested_option)
28508 (write_state_option): ditto, renaming to...
28509 (state_writer::write_state_option)
28510 (write_state_options): ditto, renaming to...
28511 (state_writer::write_state_options)
28512 (write_state_lang_bitmap): ditto, renaming to...
28513 (state_writer::write_state_lang_bitmap)
28514 (write_state_version): ditto, renaming to...
28515 (state_writer::write_state_version)
28516 (write_state_scalar_type): ditto, renaming to...
28517 (state_writer::write_state_scalar_type)
28518 (write_state_string_type): ditto, renaming to...
28519 (state_writer::write_state_string_type)
28520 (write_state_undefined_type): ditto, renaming to...
28521 (state_writer::write_state_undefined_type)
28522 (write_state_struct_union_type): ditto, renaming to...
28523 (state_writer::write_state_struct_union_type)
28524 (write_state_struct_type): ditto, renaming to...
28525 (state_writer::write_state_struct_type)
28526 (write_state_user_struct_type): ditto, renaming to...
28527 (state_writer::write_state_user_struct_type)
28528 (write_state_lang_struct_type): ditto, renaming to...
28529 (state_writer::write_state_lang_struct_type)
28530 (write_state_param_struct_type): ditto, renaming to...
28531 (state_writer::write_state_param_struct_type)
28532 (write_state_pointer_type): ditto, renaming to...
28533 (state_writer::write_state_pointer_type)
28534 (write_state_array_type): ditto, renaming to...
28535 (state_writer::write_state_array_type)
28536 (write_state_gc_used): ditto, renaming to...
28537 (state_writer::write_state_gc_used)
28538 (write_state_common_type_content): ditto, renaming to...
28539 (state_writer::write_state_common_type_content)
28540 (write_state_type): ditto, renaming to...
28541 (state_writer::write_state_type)
28542 (write_state_pair_list): ditto, renaming to...
28543 (state_writer::write_state_pair_list)
28544 (write_state_pair): ditto, renaming to...
28545 (state_writer::write_state_pair)
28546 (write_state_typedefs): ditto, renaming to...
28547 (state_writer::write_state_typedefs)
28548 (write_state_structures): ditto, renaming to...
28549 (state_writer::write_state_structures)
28550 (write_state_param_structs): ditto, renaming to...
28551 (state_writer::write_state_param_structs)
28552 (write_state_variables): ditto, renaming to...
28553 (state_writer::write_state_variables)
28554 (write_state_srcdir): ditto, renaming to...
28555 (state_writer::write_state_srcdir)
28556 (write_state_files_list): ditto, renaming to...
28557 (state_writer::write_state_files_list)
28558 (write_state_languages): ditto, renaming to...
28559 (state_writer::write_state_languages)
28560 (write_state): create a state_writer instance and use it when
28561 writing out the state file
28563 2013-05-17 Mike Stump <mikestump@comcast.net>
28565 PR rtl-optimization/57304
28566 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28567 accessing DF_REF_REAL_LOC.
28569 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28571 PR rtl-optimization/57281
28572 PR rtl-optimization/57300
28573 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28574 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28575 what the other splitter did if the registers are dead.
28577 2013-05-17 Richard Biener <rguenther@suse.de>
28579 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28582 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28584 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28587 2013-05-17 Marek Polacek <polacek@redhat.com>
28589 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28590 length when doing non-zero store of storing '\0' to '\0'.
28592 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28594 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28595 vect_external_def oprnd1 with loop_vinfo, try to emit
28596 optional cast, negation and and stmts on the loop preheader
28597 edge instead of into the pattern def seq.
28599 PR tree-optimization/57051
28600 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28601 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28603 2013-05-16 Nick Clifton <nickc@redhat.com>
28605 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28606 (rl78_is_naked_func): New function.
28607 (rl78_expand_prologue): Skip prologue generation for naked functions.
28608 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28609 * doc/extend.texi (naked): Add RL78 to the list of processors
28610 that supports this attribute.
28612 2013-05-16 Jeff Law <law@redhat.com>
28614 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28616 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28618 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28619 cache parameters using detect_caches_amd also for CYRIX,
28620 NSC and TM2 signatures.
28622 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28623 Dzianis Kahanovich <mahatma@eu.by>
28627 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28628 VIA/Centaur processors and determine their cache parameters
28629 using detect_caches_amd.
28631 2013-05-16 Teresa Johnson <tejohnson@google.com>
28633 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28634 (rtl_verify_edges): New function.
28635 (rtl_verify_bb_insns): Ditto.
28636 (rtl_verify_bb_pointers): Ditto.
28637 (rtl_verify_bb_insn_chain): Ditto.
28638 (rtl_verify_fallthru): Ditto.
28639 (rtl_verify_bb_layout): Ditto.
28640 (rtl_verify_flow_info_1): Outline checks into new functions.
28641 (rtl_verify_flow_info): Ditto.
28643 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28645 * cfghooks.c (copy_bbs): Add update_dominance argument.
28646 * cfghooks.h (copy_bbs): Update prototype.
28647 * tree-cfg.c (gimple_duplicate_sese_region):
28648 Add update_dominance argument.
28649 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28650 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28651 gimple_duplicate_sese_region call.
28652 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28653 Update copy_bbs call.
28654 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28655 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28657 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28659 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28660 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28661 vect_recog_rotate_pattern.
28662 (vect_recog_rotate_pattern): New function.
28664 2013-05-16 Jason Merrill <jason@redhat.com>
28666 * Makefile.in (LLINKER): New variable.
28667 (mostlyclean): Remove link mutex.
28668 * configure.ac: Handle --enable-link-mutex.
28669 * lock-and-run.sh: New script.
28671 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28674 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28677 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28679 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28681 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28683 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28684 * config/arm/arm.c (next_consecutive_mem): New function.
28685 (gen_movmem_ldrd_strd): Likewise.
28686 * config/arm/arm.md (movmemqi): Update condition and code.
28687 (unaligned_loaddi, unaligned_storedi): New patterns.
28689 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28691 * config.gcc: Obsolete *-*-solaris2.9*.
28692 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28694 2013-05-16 Richard Biener <rguenther@suse.de>
28696 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28697 earlier, after GRAPHITE transforms and IV canonicalization.
28699 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28701 * omp-low.c (extract_omp_for_data): For collapsed loops,
28702 if at least one of the loops is known at compile time to
28703 iterate zero times, set count to 0.
28704 (expand_omp_regimplify_p): New function.
28705 (expand_omp_for_generic): For collapsed loops, if at least
28706 one of the loops isn't known to iterate at least once,
28707 add runtime check with setting count to 0.
28708 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28709 For unsigned types if it isn't known at compile time that
28710 the loop will iterate at least once, add runtime check to bypass
28711 the whole loop if initial condition isn't true.
28713 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28715 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28717 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28719 PR middle-end/57286
28720 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28721 transformations to avoid an infinite loop.
28723 2013-05-16 Marek Polacek <polacek@redhat.com>
28725 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28727 2013-05-15 Leif Ekblad <leif@rdos.net>
28729 * config/i386/i386.c (ix86_decompose_address): Use
28730 DEFAULT_TLS_SEG_REG to access TLS segment register.
28731 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28732 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28733 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28735 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28738 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28739 sibling calls to functions that would normally be lazily bound,
28740 unless $gp is call-clobbered.
28742 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28744 * config/i386/i386.c (ix86_option_override_internal): Update
28745 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28746 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28747 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28748 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28750 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28752 2013-05-15 Andreas Schwab <schwab@suse.de>
28754 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28755 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28758 2013-05-15 Teresa Johnson <tejohnson@google.com>
28760 * loop-unroll.c (report_unroll_peel): Check decision before
28761 emitting unroll/peel message.
28763 2013-05-15 Teresa Johnson <tejohnson@google.com>
28765 * function.h (has_bb_partition): New rtl_data flag.
28766 (bb_reorder_complete): Ditto.
28767 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28768 instead of flag_reorder_blocks_and_partition.
28769 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28770 with some enhancements.
28771 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28772 * bb-reorder.c (connect_traces): Check for has_bb_partition
28773 instead of flag_reorder_blocks_and_partition.
28774 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28775 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28776 verify_hot_cold_block_grouping.
28777 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28779 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28782 * config/arm/predicates.md (call_insn_operand): New predicate.
28783 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28784 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28785 if insn is not a tail call.
28786 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28788 * config/arm/arm.h (enum reg_class): New caller save register class.
28789 (REG_CLASS_NAMES): Likewise.
28790 (REG_CLASS_CONTENTS): Likewise.
28791 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28794 2013-05-15 Richard Biener <rguenther@suse.de>
28796 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28797 of MSG_OPTIMIZED_LOCATIONS.
28798 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28799 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28801 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28802 of MSG_OPTIMIZED_LOCATIONS.
28803 (execute_vect_slp): Likewise.
28804 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28805 (vect_create_cond_for_alias_checks): Likewise.
28806 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28807 (vect_recog_widen_mult_pattern): Likewise.
28808 (vect_recog_widen_sum_pattern): Likewise.
28809 (vect_recog_over_widening_pattern): Likewise.
28810 (vect_recog_widen_shift_pattern): Likewise.
28811 (vect_recog_vector_vector_shift_pattern): Likewise.
28812 (vect_recog_divmod_pattern): Likewise.
28813 (vect_recog_mixed_size_cond_pattern): Likewise.
28814 (vect_recog_bool_pattern): Likewise.
28815 (vect_pattern_recog_1): Likewise.
28817 2013-05-15 Martin Jambor <mjambor@suse.cz>
28819 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28820 non-functions to builtin_unreachable.
28821 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28822 correct when new direct edges were discovered.
28824 2013-05-15 Martin Jambor <mjambor@suse.cz>
28826 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28827 header, print symbol order instead of node uid, print more information
28828 about indirect edge targets.
28829 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28831 (ipa_make_edge_direct_to_target): Likewise.
28832 (remove_described_reference): Likewise.
28833 (propagate_controlled_uses): Likewise.
28834 (ipa_print_node_params): Also print symbol order.
28835 (ipcp_transform_function): Print symbol order instead of node uids.
28836 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28837 (cgraph_get_create_real_symbol_node): Likewise.
28838 * ipa-cp.c (print_lattice): Likewise.
28839 (print_all_lattices): Likewise.
28840 (determine_versionability): Likewise.
28841 (initialize_node_lattices): Likewise.
28842 (estimate_local_effects): Likewise.
28843 (update_profiling_info): Likewise.
28844 (create_specialized_node): Likewise.
28845 (perhaps_add_new_callers): Likewise.
28846 (decide_about_value): Likewise.
28847 (decide_whether_version_node): Likewise.
28848 (identify_dead_nodes): Likewise.
28849 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28850 (dump_inline_summary): Likewise.
28851 (estimate_node_size_and_time): Likewise.
28852 (inline_analyze_function): Likewise.
28853 * ipa-inline.c (report_inline_failed_reason): Likewise.
28854 (want_early_inline_function_p): Likewise.
28855 (edge_badness): Likewise.
28856 (update_edge_key): Likewise.
28857 (inline_small_functions): Likewise. Add dumping of order to two other
28859 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28860 instead of node uids.
28861 (propagate_pure_const): Likewise.
28862 (propagate_pure_const): Likewise.
28863 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28864 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28865 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28867 * tree-pretty-print.c (dump_function_header): Likewise.
28868 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28869 Print symbol order instead of node uids.
28871 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28873 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28874 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28876 2013-05-15 Richard Biener <rguenther@suse.de>
28878 PR tree-optimization/57275
28879 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28880 return value for fail to do runtime alias checks for gather loads.
28882 2013-05-15 Jan Hubicka <jh@suse.cz>
28886 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28887 weakrefs are not external.
28888 (lto_symtab_merge_decls): Fix thinko when dealing with
28889 non-lto_symtab decls.
28890 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28891 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28892 * varpool.c (dump_varpool_node): Dump more flags.
28894 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28896 * config/i386/i386.c (processor_alias_table): Add instruction
28897 FSGSBASE for AMD bdver3 architecture.
28899 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28901 * tree.c (warn_deprecated_use): Print file:line using locus color.
28902 * diagnostic.c (diagnostic_report_current_module): Print file:line
28903 and file:line:column using locus color.
28905 2013-05-14 Mike Stump <mikestump@comcast.net>
28907 * gdbinit.in: Add __null.
28909 2013-05-14 Mike Stump <mikestump@comcast.net>
28911 * recog.h: Rename struct recog_data to Recog_data.
28912 * recog.c: Likewise.
28913 * reload.c (can_reload_into): Likewise.
28914 * config/picochip/picochip.c: Likewise.
28916 2013-05-14 Mike Stump <mikestump@comcast.net>
28918 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28920 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28922 * resource.h (struct resources): Remove unch_memory member.
28923 (CLEAR_RESOURCE): Don't clear unch_memory.
28924 * resource.c (mark_referenced_resources): Don't set it.
28925 (mark_set_resources): Likewise.
28926 (mark_target_live_regs): Don't clear it.
28927 (init_resource_info): Likewise.
28928 * reorg.c (resource_conflicts_p): Don't compare it.
28929 (redundant_insn): Don't set it.
28931 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28933 * emit-rtl.c (next_label): Remove unused function.
28934 (skip_consecutive_labels, link_cc0_insns): Move to ...
28935 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28936 only place where these functions are used, and make them static.
28938 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28940 * fold-const.c (fold_negate_expr): Handle vectors.
28941 (fold_truth_not_expr): Make it static.
28942 (fold_invert_truthvalue): New static function.
28943 (invert_truthvalue_loc): Handle vectors. Do not call
28944 fold_truth_not_expr directly.
28945 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28946 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28947 (fold_comparison): Handle vector constants.
28948 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28949 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28950 * tree.h (fold_truth_not_expr): Remove declaration.
28952 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28954 * config/aarch64/aarch64-simd.md
28955 (aarch64_vcond_internal<mode>): Rename to...
28956 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28957 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28958 float modes. Clarify all iterator modes.
28959 (vcond<mode><mode>): Use new name for vcond expanders.
28960 (vcond<v_cmp_result><mode>): Likewise.
28961 (vcondu<mode><mode>: Likewise.
28962 * config/aarch64/iterators.md (VDQF_COND): New.
28964 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28967 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28968 variable for the shift amount. Check that we shift by non-negative
28971 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28974 * config/arm/arm.h (EPILOGUE_USES): Only return true
28975 for LR_REGNUM after epilogue_completed.
28977 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28979 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28980 is error_mark_node.
28982 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28985 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28986 and Solaris 11+/x86 with gld.
28987 * configure: Regenerate.
28989 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28991 * expmed.c (expand_shift_1): Canonicalize rotates by
28992 constant bitsize / 2 to bitsize - 1.
28993 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28994 case ROTATERT>: Likewise.
28997 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28999 * config/i386/i386.md (rotateinv): New code attr.
29000 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29001 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29002 roll $31, %eax, etc.
29004 2013-05-14 Richard Biener <rguenther@suse.de>
29006 PR middle-end/57235
29007 * tree-eh.c (sink_clobbers): Give up for successors with
29008 multiple predecessors and no virtual uses.
29010 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29012 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29013 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29015 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29017 PR middle-end/57251
29018 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29019 the case when both op0 and op1 have VOIDmode.
29021 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29023 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29024 in multiply-accumulate mode.
29026 2013-05-13 Guozhi Wei <carrot@google.com>
29028 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29030 2013-05-13 Kai Tietz <ktietz@redhat.com>
29033 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29034 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29035 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29036 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29037 (ix86_expand_prologue): Likewise.
29038 (ix86_expand_split_stack_prologue): Likewise.
29039 (legitimate_pic_address_disp_p): Likewise.
29040 (legitimize_pic_address): Likewise.
29041 (legitimize_tls_address): Likewise.
29042 (legitimize_pe_coff_symbol): Likewise.
29043 (output_pic_addr_const): Likewise.
29044 (construct_plt_address): Likewise.
29045 (ix86_expand_call): Likewise.
29046 (x86_output_mi_thunk): Likewise.
29047 (x86_function_profiler): Likewise.
29049 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29051 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29052 similar switch cases.
29053 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29054 (aarch64_simd_mov_to_<mode>low): Delete.
29055 (aarch64_simd_mov_to_<mode>high): Delete.
29056 (move_lo_quad_<mode>): Add w<-r alternative.
29057 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29058 (aarch64_simd_mov_from_*): Update type attribute.
29059 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29062 2013-05-13 Jan Hubicka <jh@suse.cz>
29064 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29065 * config/i386/i386.c (ix86_compute_frame_layout,
29066 ix86_expand_epilogue, emit_i387_cw_initialization,
29067 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29068 ix86_local_alignment): Fix use of size/speed predicates.
29070 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29072 PR tree-optimization/45216
29073 PR tree-optimization/57157
29074 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29075 the (-Y) & (B - 1) variant if OP is |.
29076 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29077 return shifted. Use (-op1) & (prec - 1) as other_amount
29078 instead of prec - op1.
29080 2013-05-13 Martin Jambor <mjambor@suse.cz>
29082 PR middle-end/42371
29083 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29084 (ipa_constant_data): New type.
29085 (ipa_jump_func): Use ipa_constant_data to hold information about
29086 constant jump functions.
29087 (ipa_get_jf_constant): Adjust to jump function type changes.
29088 (ipa_get_jf_constant_rdesc): New function.
29089 (ipa_param_descriptor): New field controlled_uses.
29090 (ipa_get_controlled_uses): New function.
29091 (ipa_set_controlled_uses): Likewise.
29092 * ipa-ref.h (ipa_find_reference): Declare.
29093 * ipa-prop.c (ipa_cst_ref_desc): New type.
29094 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29096 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29097 New parameter cs. Adjust all callers.
29098 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29099 (remove_described_reference): New function.
29100 (jfunc_rdesc_usable): Likewise.
29101 (try_make_edge_direct_simple_call): Decrement controlled use count,
29102 attempt to remove reference if it hits zero.
29103 (combine_controlled_uses_counters): New function.
29104 (propagate_controlled_uses): Likewise.
29105 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29106 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29107 (ipa_print_node_params): Print described use counter.
29108 (ipa_write_jump_function): Adjust to jump function type changes.
29109 (ipa_read_jump_function): New parameter CS, pass it to
29110 ipa_set_jf_constant. Adjust caller.
29111 (ipa_write_node_info): Stream controlled use count
29112 (ipa_read_node_info): Likewise.
29113 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29115 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29116 count. Remove cloning-added reference if it reaches zero.
29117 * ipa-ref.c (ipa_find_reference): New function.
29119 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29121 * config/i386/i386.c (processor_target_table): Modified default
29122 alignment values for AMD BD and BT architectures.
29124 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29126 * tree-vect-generic.c (uniform_vector_p): Move ...
29127 * tree.c (uniform_vector_p): ... here.
29128 * tree.h (uniform_vector_p): Declare it.
29129 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29132 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29134 PR tree-optimization/57230
29135 * tree-ssa-strlen.c (handle_char_store): Record length for
29136 array store from STRING_CST.
29138 PR tree-optimization/57230
29139 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29142 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29144 * config/epiphany/epiphany.c (epiphany_init): Check size of
29145 NUM_MODES_FOR_MODE_SWITCHING.
29146 (epiphany_expand_prologue):
29147 Remove CONFIG_REGNUM initial value handling code.
29148 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29149 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29150 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29151 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29152 Don't return 1 for FP_MODE_NONE.
29153 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29154 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29155 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29156 * config/epiphany/epiphany.md (save_config): New pattern.
29158 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29160 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29162 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29164 * config/i386/i386.md (memory): Handle sseishft1.
29165 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29166 (*vec_extractv2di_1): Ditto.
29168 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29170 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29173 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29175 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29176 Add mthumb/march=armv7-a multilib.
29177 Add mthumb/march=armv7-r multilib.
29178 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29180 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29182 * config/v850/t-rtems: Add more multilibs.
29184 2013-05-10 Richard Biener <rguenther@suse.de>
29186 PR tree-optimization/57214
29187 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29188 not propagate from SSA names that occur in abnormal PHI nodes.
29190 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29192 * stor-layout.c (element_precision): New function.
29193 * machmode.h (element_precision): Declare it.
29194 * tree.c (build_minus_one_cst): New function.
29195 (element_precision): Likewise.
29196 * tree.h (build_minus_one_cst): Declare new function.
29197 (element_precision): Likewise.
29198 * fold-const.c (operand_equal_p): Use element_precision.
29199 (fold_binary_loc): Handle vector types.
29200 * convert.c (convert_to_integer): Use element_precision.
29201 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29204 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29206 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29207 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29208 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29209 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29210 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29211 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29212 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29213 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29214 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29215 (Uuw8): New constraints.
29216 (Usb4): Move into alphabetical order.
29217 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29218 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29219 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29220 previously unnamed patterns.
29221 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29222 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29223 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29224 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29225 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29226 of specific lengths.
29228 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29230 * config/i386/i386.md (rotateinv): New code attr.
29231 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29232 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29233 roll $31, %eax, etc.
29235 PR tree-optimization/45216
29236 PR tree-optimization/57157
29237 * tree-ssa-forwprop.c (simplify_rotate): New function.
29238 (ssa_forward_propagate_and_combine): Call it.
29240 2013-05-10 Richard Biener <rguenther@suse.de>
29242 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29243 disable peeling when we version for aliasing.
29244 (vector_alignment_reachable_p): Honor explicit user alignment.
29245 (vect_supportable_dr_alignment): Likewise.
29246 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29247 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29248 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29249 then peeling to arrange for the cost-model check to come first.
29251 2013-05-10 Alan Modra <amodra@gmail.com>
29253 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29254 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29255 * configure: Regenerate.
29257 2013-05-10 Alan Modra <amodra@gmail.com>
29260 * varasm.c (default_elf_select_section): Move !DECL_P check..
29261 (get_named_section): ..to here before calling get_section_name.
29263 (default_section_type_flags): Add DECL_P check.
29264 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29265 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29267 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29269 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29270 When using gen_stack_adjust_str with a register offset, add a
29271 REG_FRAME_RELATED_EXPR note.
29273 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29275 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29276 (*vec_extractv4si_zext_mem): Ditto.
29277 (*vec_extractv2di): Add 0->x and x->x alternatives.
29278 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29279 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29281 2013-05-09 Jason Merrill <jason@redhat.com>
29283 N3639 C++1y VLA support
29284 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29287 * tree.c (build_constructor_va): New.
29288 * tree.h: Declare it.
29290 2013-05-09 Martin Jambor <mjambor@suse.cz>
29293 * gimple-fold.c (canonicalize_constructor_val): Call
29294 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29296 2013-05-09 Jan Hubicka <jh@suse.cz>
29297 Richard Biener <rguenther@suse.de>
29300 * symtab.c (symtab_make_decl_local): Do not add private names.
29302 2013-05-09 Jan Hubicka <jh@suse.cz>
29305 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29306 (unlink_from_assembler_name_hash): Likewise.
29307 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29308 symtab_unregister_node, symtab_initialize_asm_name_hash,
29309 change_decl_assembler_name): Update.
29311 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29313 * config/aarch64/aarch64.md: New movtf split.
29314 (*movtf_aarch64): Update.
29315 (aarch64_movdi_tilow): Handle TF modes and rename to
29316 aarch64_movdi_<mode>low.
29317 (aarch64_movdi_tihigh): Handle TF modes and rename to
29318 aarch64_movdi_<mode>high
29319 (aarch64_movtihigh_di): Handle TF modes and rename to
29320 aarch64_mov<mode>high_di
29321 (aarch64_movtilow_di): Handle TF modes and rename to
29322 aarch64_mov<mode>low_di
29323 (aarch64_movtilow_tilow): Remove spurious whitespace.
29324 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29326 (aarch64_print_operand): Update.
29328 2013-05-09 Alan Modra <amodra@gmail.com>
29330 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29332 * configure: Regenerate.
29334 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29336 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29337 splitter preparation statements.
29338 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29339 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29342 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29344 * gimple-ssa-strength-reduction.c (count_candidates): Change
29345 return value to int.
29346 (analyze_candidates_and_replace): Change type of length to int.
29348 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29350 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29351 (*vec_extract<mode>): Use VI12_128 mode iterator.
29352 (*vec_extract<mode>_mem): Ditto.
29353 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29356 2013-05-08 Diego Novillo <dnovillo@google.com>
29361 2012-08-17 Diego Novillo <dnovillo@google.com>
29364 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29365 * config.in: Regenerate.
29366 * configure: Regenerate.
29367 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29369 2013-05-08 Jan Hubicka <jh@suse.cz>
29372 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29373 * cgraph.h (symtab_node_base): Add unique_name.
29374 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29375 input_overwrite_node, input_varpool_node): Stream unique_name.
29376 * cgraphclones.c (cgraph_create_virtual_clone,
29377 cgraph_function_versioning): Set unique_name.
29378 * ipa.c (function_and_variable_visibility): Set unique_name.
29380 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29382 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29383 (alloc_cand_and_find_basis): Restrict conditional candidate
29384 processing to CAND_MULTs.
29386 2013-05-08 Jan Hubicka <jh@suse.cz>
29389 lto-symtab.c (lto_symtab_symbol_p): New function.
29390 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29391 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29392 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29393 Skip static symbols.
29395 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29397 PR tree-optimization/57200
29398 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29399 Only call inform if the preceding warning_at returns true.
29401 2013-05-07 Han Shen <shenhan@google.com>
29403 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29404 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29405 * common.opt (fstack-protector-strong): New option.
29406 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29407 * doc/invoke.texi (Optimization Options): Document
29408 "-fstack-protector-strong".
29409 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29411 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29413 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29415 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29417 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29418 it is not lhs of the insn.
29419 (setup_reg_equiv): Remove insn having equiv memory which it is not
29421 * lra-constraints.c (process_address): Try to improve generation
29422 code for address base + disp.
29423 (lra_constraints): Make correct the code for checking insn setting
29424 up backward equivalence. Remove insn only if it is in the init
29426 * lra-eliminations.c (update_reg_eliminate): Change return value.
29427 (lra_eliminate): Use the result.
29429 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29431 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29432 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29433 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29434 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29435 register target operands.
29436 (*vec_extractv8hi_sse2): New pattern.
29437 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29438 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29439 (*vec_extract<mode>_mem): New insn and split pattern.
29441 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29443 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29444 (TARGET_ASAN_SHADOW_OFFSET): Define.
29445 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29446 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29448 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29450 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29451 (incr_vec_index): Return -1 if increment not found.
29452 (create_add_on_incoming_edge): Assert if increment not found.
29453 (record_increment): Limit number of increments recorded.
29454 (all_phi_incrs_profitable): Return false if an increment not found.
29455 (replace_profitable_candidates): Don't process increments that were
29457 (analyze_candidates_and_replace): Limit size of incr_vec.
29459 2013-05-07 Richard Biener <rguenther@suse.de>
29461 * calls.c (special_function_p): setjmp-like functions are leaf.
29462 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29463 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29465 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29467 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29468 (aarch64_simd_mov<mode>): New expander.
29469 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29470 (aarch64_simd_mov_to_<mode>high): Likewise.
29471 (aarch64_simd_mov_from_<mode>low): Likewise.
29472 (aarch64_simd_mov_from_<mode>high): Likewise.
29473 (aarch64_dup_lane<mode>): Update.
29474 (aarch64_dup_lanedi): New instruction pattern.
29475 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29476 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29478 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29480 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29481 (replace_mult_candidate): Remove unnecessary argument; remove
29482 unnecessary parameter from call to introduce_cast_before_cand.
29483 (replace_unconditional_candidate): Remove unnecessary parameter
29484 from call to replace_mult_candidate.
29485 (replace_conditional_candidate): Likewise.
29486 (insert_initializers): Use make_temp_ssa_name.
29487 (introduce_cast_before_cand): Remove unnecessary argument; use
29488 make_temp_ssa_name.
29489 (replace_one_candidate): Remove unnecessary argument; remove
29490 unnecessary parameter from calls to introduce_cast_before_cand.
29491 (replace_profitable_candidates): Remove unnecessary parameters
29492 from calls to replace_one_candidate.
29494 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29496 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29497 phi def as possibly hiding a basis for a CAND_ADD whose operands
29498 have been commuted in the analysis.
29499 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29501 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29503 * config/aarch64/aarch64.md
29504 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29505 shift value between 0-4.
29507 2013-05-07 Richard Biener <rguenther@suse.de>
29509 * double-int.h (rshift): New overload.
29510 * double-int.c (rshift): New function.
29511 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29512 (create_reference_ops_from_ref): Remove.
29513 (vn_reference_insert): Use shared ops for constructing the
29514 reference and copy it.
29516 2013-05-07 Richard Biener <rguenther@suse.de>
29518 PR middle-end/57190
29519 * tree-eh.c (sink_clobbers): Properly propagate
29520 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29522 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29524 PR tree-optimization/57149
29525 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29526 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29527 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29528 uninit_undefined_value_p instead of ssa_undefined_value_p.
29531 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29532 for modifier == EXPAND_INITIALIZER.
29534 2013-05-07 Anton Blanchard <anton@samba.org>
29536 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29537 for powerpc64 little endian.
29538 * configure: Regenerate.
29540 2013-05-06 Graham Stott <grahams@btinternet.com>
29542 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29543 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29544 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29545 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29547 2013-05-06 Graham Stott <grahams@btinternet.com>
29549 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29550 codes which allow non-lvalues.
29552 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29554 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29555 components are all 1s.
29556 (integer_minus_onep): New function.
29557 * tree.h (integer_minus_onep): Declare it.
29558 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29559 integer_minus_onep instead of integer_all_onesp.
29561 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29564 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29565 variations of these patterns.
29567 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29569 * config/i386/i386.md (isa): Add x64_sse4 member.
29570 (enabled): Handle x64_sse4.
29571 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29572 instruction for 64bit SSE4_1 targets. Update insn attributes.
29573 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29574 instruction for SSE4_1 targets. Update insn attributes.
29575 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29576 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29577 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29579 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29580 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29581 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29583 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29586 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29588 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29590 * final.c (do_assembler_dialects): Don't handle curly braces and
29591 vertical bar escaped by % as dialect delimiters.
29592 (output_asm_insn): Print curly braces and vertical bar if escaped
29593 by % and ASSEMBLER_DIALECT defined.
29594 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29595 * doc/tm.texi: Regenerated.
29597 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29599 * config/mips/mips.c: Include tree-pass.h.
29600 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29601 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29602 (pass_mips_machine_reorg2): New machine specific pass.
29603 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29604 (mips_option_override): Register the new pass.
29605 * rtl.h (cleanup_barriers): Remove prototype.
29606 (dbr_schedule): Likewise.
29607 * jump.c (cleanup_barriers): Make static.
29608 * reorg.c (dbr_schedule): Likewise.
29610 2013-05-06 Richard Biener <rguenther@suse.de>
29612 PR tree-optimization/57185
29613 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29614 SSA names properly.
29616 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29619 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29620 between "first_arg" and "insn", not "last" and "insn".
29622 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29624 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29625 (find_candidates_in_block): Re-enable slsr_process_phi.
29626 (create_phi_basis): Fix double counting of candidate adjustment.
29628 2013-05-06 Richard Biener <rguenther@suse.de>
29630 PR middle-end/57147
29631 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29632 the edge is also fallthru, preserve it and just clear the
29634 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29635 also complex, preserve that and just clear the fallthru flag.
29636 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29637 update virtual operands.
29639 2013-05-06 Alan Modra <amodra@gmail.com>
29641 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29642 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29643 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29644 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29645 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29646 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29648 2013-05-06 Alan Modra <amodra@gmail.com>
29650 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29651 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29652 (DEFAULT_ASM_ENDIAN): Define.
29653 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29654 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29655 Update -K PIC clause from sysv4.h.
29656 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29657 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29659 2013-05-06 Alan Modra <amodra@gmail.com>
29661 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29662 twice for little-endian.
29663 (ashrdi3_no_power, ashrdi3): Support little-endian.
29665 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29668 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29669 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29671 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29672 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29673 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29676 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29677 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29679 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29680 * config/pa/pa.opt: Make mbig-switch a no-op.
29681 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29682 (CASE_VECTOR_MODE): Always return SImode.
29683 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29684 for the !TARGET_BIG_SWITCH case.
29685 * config/pa/pa-linux.h: Likewise.
29686 * config/pa/pa-openbsd.h: Likewise.
29687 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29688 * config/pa/pa.md (short_jump): Remove define_insn.
29689 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29690 (casesi0): Remove define_insn.
29691 (type): Remove btable_branch.
29692 (pa_combine_type): Likewise.
29693 (in_nullified_branch_delay): Likewise.
29694 (in_call_delay): Likewise.
29695 (define_delay): Likewise.
29696 (define_insn_reservation "Z3"): Likewise.
29697 (define_insn_reservation "Z4"): Likewise.
29698 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29699 (pa_adjust_insn_length): Remove adjustment for btable branches.
29700 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29703 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29705 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29706 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29707 Add m->r,x alternatives.
29708 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29709 splitters using SWI48x mode iterator.
29710 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29711 TARGET_64BIT. Add m->x alternative.
29712 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29713 Add o->x alternative. Enable for TARGET_SSE.
29714 (sse_storeq): Remove expander.
29715 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29716 with memory input operand.
29717 (*vec_extractv2di_1 splitter): New.
29718 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29719 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29721 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29723 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29724 (INT_LOWPART): Delete.
29725 (extract_MB): Adjust.
29726 (extract_ME): Adjust.
29727 (print_operand): Adjust.
29729 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29731 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29732 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29733 (reg_or_logical_cint_operand, easy_fp_constant,
29734 logical_const_operand): Delete "CONST_DOUBLE" case.
29735 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29736 "HOST_BITS_PER_WIDE_INT == 64" test.
29737 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29738 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29739 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29740 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29742 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29743 CONST_DOUBLE DImode/VOIDmode case.
29744 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29745 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29746 CONST_DOUBLE VOIDmode case.
29747 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29748 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29749 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29750 Delete CONST_DOUBLE case.
29751 (splitters for mov FMOVE64 const_double): Delete
29752 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29753 "HOST_BITS_PER_WIDE_INT >= 64" test.
29754 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29756 (mov DI const_double): Delete.
29758 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29760 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29761 on op shows all bits zero in mode of a lowpart subreg, return zero.
29763 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29766 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29767 to save TFmode registers and DImode to save TImode registers for
29768 caller save operations.
29769 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29770 mark being partially clobbered since they only use the first
29773 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29774 and TDmode only use the upper 64-bits of each VSX register.
29776 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29778 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29779 (find_candidates_in_block): Disable slsr_process_phi.
29781 2013-05-03 Guozhi Wei <carrot@google.com>
29783 * coverage.c (coverage_obj_init): Move the construction of gcov
29785 (build_init_ctor): ... here.
29787 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29789 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29790 (slsr_cand_d): Redefine def_phi.
29791 (stride_status, phi_adjust_status, count_phis_status): New enums.
29792 (find_phi_def): New.
29793 (find_basis_for_base_expr): New.
29794 (find_basis_for_candidate): Handle hidden bases.
29795 (alloc_cand_and_find_basis): Handle phi candidates.
29796 (slsr_process_phi): New.
29797 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29798 (create_mul_imm_cand): Likewise.
29799 (create_add_ssa_cand): Exclude phi base candidates.
29800 (create_add_imm_cand): Likewise.
29801 (slsr_process_cast): Likewise.
29802 (slsr_process_copy): Likewise.
29803 (find_candidates_in_block): Handle phi candidates.
29804 (dump_candidate): Likewise.
29805 (unconditional_cands): Delete.
29806 (unconditional_cands_with_known_stride_p): Delete.
29807 (phi_dependent_cand_p): New.
29808 (cand_increment): Handle phi-dependent candidates.
29809 (replace_dependent): Delete.
29810 (replace_mult_candidate): New.
29811 (replace_unconditional_candidate): New.
29812 (incr_vec_index): Move to avoid forward reference.
29813 (create_add_on_incoming_edge): New.
29814 (create_phi_basis): New.
29815 (replace_dependents): Delete.
29816 (replace_conditional_candidate): New.
29817 (phi_add_costs): New.
29818 (replace_uncond_cands_and_profitable_phis): New.
29819 (record_increment): Handle phi adjustments.
29820 (record_phi_increments): New.
29821 (record_increments): Handle phi adjustments.
29822 (phi_incr_cost): New.
29823 (lowest_cost_path): Handle phis.
29824 (total_savings): Likewise.
29825 (analyze_increments): Likewise.
29826 (ncd_with_phi): New.
29827 (ncd_of_cand_and_phis): New.
29828 (nearest_common_dominator_for_cands): Handle phi increments.
29829 (all_phi_incrs_profitable): New.
29830 (replace_profitable_candidates): Handle phi-dependent candidates.
29831 (analyze_candidates_and_replace): Likewise.
29833 2013-05-03 Teresa Johnson <tejohnson@google.com>
29836 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29837 do not exceed REG_BR_PROB_BASE.
29839 2013-05-03 Jeff Law <law@redhat.com>
29841 PR tree-optimization/57144
29842 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29843 operand of the condition will bit into the new type when eliminating
29844 a cast feeding a condition.
29846 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29848 PR rtl-optimization/57130
29849 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29850 of COMPARE as in_code to the recursive call if needed.
29852 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29854 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29855 (enabled): Handle new members.
29856 * config/i386/sse.md (*vec_concatv2si): Merge from
29857 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29858 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29860 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29862 PR tree-optimization/57027
29863 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29864 for fnms opportunity, check we got the prerequisite kind
29865 of tree / gimple before using accessor functions.
29867 2013-05-03 Richard Biener <rguenther@suse.de>
29869 * double-int.h (lshift): New overload without precision
29870 and arith argument.
29871 (operator *=, operator +=, operator -=): Move ...
29872 * double-int.c (operator *=, operator +=, operator -=): ... here
29873 and implement more efficiently.
29874 (mul_double_with_sign): Remove.
29875 (lshift_double): Adjust to take unsinged shift argument, push
29876 dispatching code to callers.
29877 (mul_double_wide_with_sign): Add early out for callers that
29878 are not interested in high parts or overflow.
29879 (lshift): New function.
29880 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29881 dispatch code here.
29882 (lrotate, rrotate): Use logical shifts.
29883 * expr.c (get_inner_reference): Use lshift.
29884 * fixed-value.c (do_fixed_divide): Likewise.
29885 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29886 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29887 (indirect_refs_may_alias_p): Likewise.
29888 (stmt_kills_ref_p_1): Likewise.
29890 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29892 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29894 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29896 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29897 scalar form of FABD instruction.
29899 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29901 * lra-constraints.c (process_alt_operands): Add checking alt
29902 number to choose the best alternative.
29904 2013-05-02 Richard Biener <rguenther@suse.de>
29906 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29907 bitmap and its handling.
29908 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29910 2013-05-02 Richard Biener <rguenther@suse.de>
29912 PR middle-end/57140
29913 * tree-inline.c (copy_loops): Properly handle removed loops.
29914 (copy_cfg_body): Mark destination loops for fixup if source
29915 loops needed fixup.
29917 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29920 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29921 generating simple_return for naked functions.
29923 2013-05-02 Martin Jambor <mjambor@suse.cz>
29925 PR middle-end/56988
29926 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29927 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29929 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29930 ipa_agg_replacement_value structures.
29931 (known_aggs_to_agg_replacement_list): Likewise.
29932 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29933 (read_agg_replacement_chain): Likewise.
29934 (ipcp_transform_function): Also check that by_ref flags match.
29936 2013-05-02 Richard Biener <rguenther@suse.de>
29938 * graphds.h (struct graph): Add obstack member.
29939 * graphds.c (new_graph): Initialize obstack and allocate
29941 (add_edge): Allocate edge from the obstack.
29942 (free_graph): Free the obstack instead of all edges and vertices.
29944 2013-05-02 Teresa Johnson <tejohnson@google.com>
29946 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29948 * cfg.c (update_bb_profile_for_threading): Ditto.
29949 * tree-inline.c (copy_bb): Ditto.
29950 (copy_edges_for_bb): Ditto.
29951 (initialize_cfun): Ditto.
29952 (copy_cfg_body): Ditto.
29953 (expand_call_inline): Ditto.
29954 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29955 (estimate_node_size_and_time): Ditto.
29956 (inline_merge_summary): Ditto.
29957 * cgraphclones.c (cgraph_clone_edge): Ditto.
29958 (cgraph_clone_node): Ditto.
29959 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29960 (compute_trg_info): Ditto.
29962 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29964 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29965 S reg when fp attribute set.
29966 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29968 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29970 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29972 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29973 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29974 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29976 2013-05-02 Richard Biener <rguenther@suse.de>
29978 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29979 (struct instantiate_cache_entry): New type.
29980 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29981 (struct instantiate_cache_type): New type.
29982 (set_instantiated_value, get_instantiated_value): Remove.
29983 (get_instantiated_value_entry): New function.
29984 (instantiate_scev_name): Use the new cache and adjust.
29985 (instantiate_scev_poly): Adjust.
29986 (instantiate_scev_binary): Likewise.
29987 (instantiate_array_ref): Likewise.
29988 (instantiate_scev_convert): Likewise.
29989 (instantiate_scev_not): Likewise.
29990 (instantiate_scev_3): Likewise.
29991 (instantiate_scev_2): Likewise.
29992 (instantiate_scev_r): Likewise.
29993 (instantiate_scev): Likewise.
29994 (resolve_mixers): Likewise.
29996 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29999 * lra-constraints.c (best_small_class_operands_num): Remove.
30000 (process_alt_operands): Remove small_class_operands_num. Take
30001 small classes operands into losers and only if the operand is not
30002 matched. Modify debugging output.
30003 (curr_insn_transform): Remove best_small_class_operands_num.
30006 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30008 * config/aarch64/aarch64-builtins.c
30009 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30010 * config/aarch64/aarch64-simd-builtins.def
30011 (reduc_splus_): Add new modes.
30012 (reduc_uplus_): New.
30013 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30014 (reduc_uplus_v4sf): Likewise.
30015 (reduc_splus_v4sf): Likewise.
30016 (aarch64_addv<mode>): Likewise.
30017 (reduc_uplus_<mode>): Likewise.
30018 (reduc_splus_<mode>): Likewise.
30019 (aarch64_addvv2di): Likewise.
30020 (reduc_uplus_v2di): Likewise.
30021 (reduc_splus_v2di): Likewise.
30022 (aarch64_addvv2si): Likewise.
30023 (reduc_uplus_v2si): Likewise.
30024 (reduc_splus_v2si): Likewise.
30025 (reduc_<sur>plus_<mode>): New.
30026 (reduc_<sur>plus_v2di): Likewise.
30027 (reduc_<sur>plus_v2si): Likewise.
30028 (reduc_<sur>plus_v4sf): Likewise.
30029 (aarch64_addpv4sf): Likewise.
30030 * config/aarch64/arm_neon.h
30031 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30032 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30033 add UNSPEC_SADDV, UNSPEC_UADDV.
30035 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30037 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30039 * config/aarch64/arm_neon.h
30040 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30042 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30044 * config/aarch64/aarch64-builtins
30045 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30047 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30049 * config/aarch64/aarch64-simd-builtins.def
30050 (reduc_smax_): New.
30051 (reduc_smin_): Likewise.
30052 (reduc_umax_): Likewise.
30053 (reduc_umin_): Likewise.
30054 (reduc_smax_nan_): Likewise.
30055 (reduc_smin_nan_): Likewise.
30058 (smax): Update for V2SF, V4SF and V2DF modes.
30061 (smin_nan): Likewise.
30062 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30063 (<su><maxmin><mode>3): ...This, refactor.
30064 (s<maxmin><mode>3): New.
30065 (<maxmin_uns><mode>3): Likewise.
30066 (reduc_<maxmin_uns>_<mode>): Refactor.
30067 (reduc_<maxmin_uns>_v4sf): Likewise.
30068 (reduc_<maxmin_uns>_v2si): Likewise.
30069 (aarch64_<fmaxmin><mode>: Remove.
30070 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30072 (vmin<q>_f<32,64>): Likewise.
30073 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30075 (su): Add mappings for smax, smin, umax, umin.
30077 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30078 (FMAXMIN): Rename as...
30079 (FMAXMIN_UNS): ...This.
30081 (fmaxminv): Likewise.
30082 (fmaxmin): Likewise.
30084 (maxmin_uns_op): Likewise.
30086 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30088 * config/aarch64/arm_neon.h
30089 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30090 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30091 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30093 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30095 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30096 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30098 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30100 * config/aarch64/aarch64-simd.md
30101 (vcond<mode>_internal): Handle special cases for constant masks.
30102 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30103 (vcondu<mode><mode>): Likewise.
30104 (vcond<v_cmp_result><mode>): New.
30106 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30108 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30109 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30110 * config/aarch64/aarch64-simd-builtins.def
30111 (cmeq): Update to BUILTIN_VALLDI.
30116 * config/aarch64/arm_neon.h
30117 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30118 to builtins or C as appropriate.
30120 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30122 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30124 (cmhi): Rename to...
30126 * config/aarch64/aarch64-simd.md
30127 (simd_mode): Add SF.
30128 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30129 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30130 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30131 (cstore<mode>_neg): ...This.
30132 * config/aarch64/iterators.md
30134 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30135 (COMPARISONS): New.
30136 (UCOMPARISONS): Likewise.
30137 (optab): Add missing comparisons.
30143 (VCMP_S): Likewise.
30144 (VCMP_U): Likewise.
30145 (V_cmp_result): Add DF, SF modes.
30146 (v_cmp_result): Likewise.
30148 (vmtype): Likewise.
30149 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30151 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30153 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30154 define_insn to define_insn_and_split.
30155 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30156 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30157 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30158 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30159 (thumb2_negscc): Likewise.
30161 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30163 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30165 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30167 * config/arm/thumb2.md: Remove trailing whitespaces.
30169 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30171 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30172 Use gen_int_mode rather than GEN_INT.
30174 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30176 * value-prof.c (stream_in_histogram_value): Remove the strayed
30179 2013-04-30 Richard Biener <rguenther@suse.de>
30181 PR middle-end/57122
30182 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30184 2013-04-30 Richard Biener <rguenther@suse.de>
30186 PR middle-end/57107
30187 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30189 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30191 PR rtl-optimization/56957
30192 PR rtl-optimization/57105
30193 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30194 variable. Use just INSN_UID for determining whether an insn
30195 should be only disconnected from the insn stream.
30196 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30198 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30200 PR tree-optimization/57104
30201 * tsan.c (instrument_expr): Don't instrument accesses to
30202 DECL_HARD_REGISTER VAR_DECLs.
30204 2013-04-30 Richard Biener <rguenther@suse.de>
30206 * function.h (loops_for_fn): New inline function.
30207 (set_loops_for_fn): Likewise.
30208 * cfgloop.h (place_new_loop): Add struct function parameter.
30209 (get_loop): Likewise.
30210 (get_loops): Likewise.
30211 (number_of_loops): Likewise.
30212 (fel_next): Adjust.
30213 (fel_init): Likewise.
30214 * cfg.c (get_loop_copy): Adjust.
30215 * cfgloop.c (flow_loops_dump): Likewise.
30216 (record_loop_exits): Likewise.
30217 (verify_loop_structure): Likewise.
30218 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30219 (estimate_reg_pressure_cost): Likewise.
30220 (mark_loop_exit_edges): Likewise.
30221 * cfgloopmanip.c (place_new_loop): Likewise.
30222 (add_loop): Likewise.
30223 (duplicate_loop): Likewise.
30224 * graph.c (draw_cfg_nodes): Likewise.
30225 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30226 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30227 (extract_affine_chrec): Likewise.
30228 (build_scop_iteration_domain): Likewise.
30229 * graphite.c (graphite_initialize): Likewise.
30230 * ira-build.c (create_loop_tree_nodes): Likewise.
30231 (more_one_region_p): Likewise.
30232 (rebuild_regno_allocno_maps): Likewise.
30233 (mark_loops_for_removal): Likewise.
30234 (mark_all_loops_for_removal): Likewise.
30235 (remove_unnecessary_regions): Likewise.
30236 (ira_build): Likewise.
30237 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30238 * loop-init.c (fix_loop_structure): Likewise.
30239 (gate_rtl_move_loop_invariants): Likewise.
30240 (gate_rtl_unswitch): Likewise.
30241 (gate_rtl_unroll_and_peel_loops): Likewise.
30242 (rtl_doloop): Likewise.
30243 * lto-streamer-in.c (input_cfg): Likewise.
30244 * lto-streamer-out.c (output_cfg): Likewise.
30245 * modulo-sched.c (sms_schedule): Likewise.
30246 * predict.c (tree_estimate_probability): Likewise.
30247 (tree_estimate_probability_driver): Likewise.
30248 (estimate_loops): Likewise.
30249 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30250 (move_sese_region_to_fn): Likewise.
30251 (debug_loop_num): Likewise.
30252 * tree-chrec.c (chrec_evaluate): Likewise.
30253 (hide_evolution_in_other_loops_than_loop): Likewise.
30254 (chrec_component_in_loop_num): Likewise.
30255 (reset_evolution_in_loop): Likewise.
30256 (evolution_function_is_invariant_rec_p): Likewise.
30257 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30258 * tree-inline.c (copy_loops): Likewise.
30259 (copy_cfg_body): Likewise.
30260 (tree_function_versioning): Likewise.
30261 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30262 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30264 (add_to_evolution_1): Likewise.
30265 (scev_const_prop): Likewise.
30266 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30267 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30268 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30269 (tree_ssa_lim_initialize): Likewise.
30270 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30271 (verify_loop_closed_ssa): Likewise.
30272 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30273 (tree_ssa_loop_im): Likewise.
30274 (tree_ssa_loop_unswitch): Likewise.
30275 (tree_vectorize): Likewise.
30276 (check_data_deps): Likewise.
30277 (tree_ssa_loop_ivcanon): Likewise.
30278 (tree_ssa_loop_bounds): Likewise.
30279 (tree_complete_unroll): Likewise.
30280 (tree_complete_unroll_inner): Likewise.
30281 (tree_parallelize_loops): Likewise.
30282 (tree_ssa_loop_prefetch): Likewise.
30283 (tree_ssa_loop_ivopts): Likewise.
30284 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30285 * tree-vectorizer.c (vectorize_loops): Likewise.
30287 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30289 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30290 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30291 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30292 with EABI_LINK_SPEC.
30294 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30297 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30300 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30303 * lra-constraints.c (process_alt_operands): Discourage a bit more
30304 using memory for pseudos. Print cost dump for alternatives.
30305 Modify cost values for conflicts with early clobbers.
30306 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30308 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30311 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30313 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30315 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30316 from/to S register.
30317 (movdi_aarch64): Support LDR/STR from/to D register.
30319 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30321 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30322 or higher by default.
30324 2013-04-29 Richard Biener <rguenther@suse.de>
30326 PR middle-end/57075
30327 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30328 even if not adding abnormal edges for calls that can make
30331 2013-04-29 Richard Biener <rguenther@suse.de>
30333 PR middle-end/57103
30334 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30336 (move_stmt_r): Remove redundant checking.
30338 2013-04-29 Teresa Johnson <tejohnson@google.com>
30341 * basic-block.h (apply_scale): New function.
30342 (apply_probability): Use apply_scale.
30343 * gimple-streamer-in.c (input_bb): Ditto.
30344 * lto-streamer-in.c (input_cfg): Ditto.
30345 * lto-cgraph.c (merge_profile_summaries): Ditto.
30346 * tree-optimize.c (execute_fixup_cfg): Ditto.
30347 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30348 (copy_edges_for_bb): Ditto.
30349 (copy_cfg_body): Ditto.
30351 2013-04-29 Tom de Vries <tom@codesourcery.com>
30353 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30354 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30355 (tail_merge_optimize): Handle current_loops == NULL.
30357 2013-04-26 Jeff Law <law@redhat.com>
30359 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30360 (simplify_cond_using_ranges): Generalize code to simplify
30361 COND_EXPRs where one argument is a constant and the other
30362 is an SSA_NAME created by an integral type conversion.
30364 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30366 * config/arm/arm.md (store_minmaxsi): Use only when
30367 optimize_insn_for_size_p.
30369 2013-04-29 Christian Bruel <christian.bruel@st.com>
30372 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30374 2013-04-29 Richard Biener <rguenther@suse.de>
30376 PR middle-end/57089
30377 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30378 loop tree make sure to schedule a fixup for the child as well.
30379 (expand_omp_for_generic): Properly add loops.
30380 (expand_omp_for_static_nochunk): Likewise.
30381 (expand_omp_for_static_chunk): Likewise.
30382 (expand_omp_for): For the degenerate case fixup loops.
30383 (expand_omp_sections): Fix default bb placement in loops.
30384 (expand_omp_atomic_pipeline): Properly add loops.
30386 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30388 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30390 2013-04-29 Tom de Vries <tom@codesourcery.com>
30392 * tree-ssa-tail-merge.c: Update header comment.
30394 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30396 * config/aarch64/arm_neon.h
30397 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30398 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30399 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30400 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30401 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30402 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30403 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30404 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30406 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30408 * config/aarch64/aarch64-simd.md
30409 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30410 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30411 fix_trunc, fixuns_trunc.
30412 (ftrunc<VDQF:mode>2): New.
30413 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30414 (fix_trunc_optab): New.
30416 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30418 * config/aarch64/aarch64-builtins.c
30419 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30420 iceilf, lround, iroundf.
30422 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30425 * config/i386/i386.h (enum ix86_tune_indices)
30426 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30427 New, split from X86_TUNE_INTER_UNIT_MOVES.
30428 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30429 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30430 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30431 (TARGET_INTER_UNIT_MOVES): Remove.
30432 * config/i386/i386.c (initial_ix86_tune_features): Update.
30433 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30434 (ix86_expand_convert_uns_didf_sse): Use
30435 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30436 (ix86_expand_vector_init_one_nonzero): Ditto.
30437 (ix86_expand_vector_init_interleave): Ditto.
30438 (inline_secondary_memory_needed): Return true for moves from SSE class
30439 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30440 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30441 * config/i386/constraints.md (Yi, Ym): Depend on
30442 TARGET_INTER_UNIT_MOVES_TO_VEC.
30443 (Yj, Yn): New constraints.
30444 * config/i386/i386.md (*movdi_internal): Change constraints of
30445 operand 1 from Yi to Yj and from Ym to Yn.
30446 (*movsi_internal): Ditto.
30447 (*movdf_internal): Ditto.
30448 (*movsf_internal): Ditto.
30449 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30450 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30451 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30452 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30453 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30454 * config/i386/sse.md (movdi_to_sse): Ditto.
30455 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30456 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30457 TARGET_INTER_UNIT_MOVES.
30458 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30459 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30460 instead of TARGET_INTER_UNIT_MOVES.
30461 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30462 operand 1 from Yi to Yj and from Ym to Yn.
30464 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30466 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30467 (float_truncate_hi_): Likewise.
30468 (float_extend_lo_): Likewise.
30469 (float_truncate_lo_): Likewise.
30470 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30471 (aarch64_float_extend_lo_v2df): Likewise.
30472 (vec_unpacks_hi_v4sf): Likewise.
30473 (aarch64_float_truncate_lo_v2sf): Likewise.
30474 (aarch64_float_truncate_hi_v4sf): Likewise.
30475 (vec_pack_trunc_v2df): Likewise.
30476 (vec_pack_trunc_df): Likewise.
30478 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30480 * config/aarch64/aarch64-builtins.c
30481 (aarch64_fold_builtin): Fold float conversions.
30482 * config/aarch64/aarch64-simd-builtins.def
30483 (floatv2si, floatv4si, floatv2di): New.
30484 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30485 * config/aarch64/aarch64-simd.md
30486 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30487 * config/aarch64/iterators.md (FLOATUORS): New.
30488 (optab): Add float, floatuns.
30489 (su_optab): Likewise.
30491 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30493 * config/aarch64/aarch64-builtins.c
30494 (aarch64_builtin_vectorized_function): Use new names for
30496 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30497 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30498 (fcvtzu): Split as...
30499 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30500 (fcvtas): Split as...
30501 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30502 (fcvtau): Split as...
30503 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30504 (fcvtps): Split as...
30505 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30506 (fcvtpu): Split as...
30507 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30508 (fcvtms): Split as...
30509 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30510 (fcvtmu): Split as...
30511 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30512 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30513 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30514 (lfrintnusf, lfrintnudf): Likewise.
30515 * config/aarch64/aarch64-simd.md
30516 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30518 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30519 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30520 (fcvt_pattern): Likewise.
30522 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30524 * config/aarch64/aarch64-simd.md
30525 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30526 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30528 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30530 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30531 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30532 (vrnd<a,m,n,p>_f32): Implement using builtins.
30533 (vrnd<i,x><q>_f<32, 64>): New.
30535 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30537 * config/aarch64/aarch64-builtins.c
30538 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30539 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30540 (frintz): Rename to...
30542 (frintp): Rename to...
30544 (frintm): Rename to...
30546 (frinti): Rename to...
30547 (nearbyint): ...this.
30548 (frintx): Rename to...
30550 (frinta): Rename to...
30552 * config/aarch64/aarch64-simd.md
30553 (aarch64_frint<frint_suffix><mode>): Delete.
30554 (<frint_pattern><mode>2): Convert to insn.
30555 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30556 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30557 (frint_pattern): Likewise.
30558 (frint_suffix): Likewise.
30560 2013-04-29 Richard Biener <rguenther@suse.de>
30562 PR tree-optimization/57081
30563 * loop-init.c: Include tree-flow.h.
30564 (loop_optimizer_finalize): Free number of iteration estimates.
30565 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30567 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30569 PR tree-optimization/57083
30570 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30571 non-singleton shift count range, zero extend low_bound for uns case.
30573 * config/i386/predicates.md (general_vector_operand): New predicate.
30574 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30575 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30576 if they aren't nonimmediate operands. If their original values
30577 satisfy const_vector_equal_evenodd_p, don't shift them.
30578 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30579 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30580 if not nonimmediate_operand.
30581 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30582 instead of register_operand.
30583 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30585 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30587 * stor-layout.c (finalize_size_functions): Allocate a structure and
30588 reset cfun before dumping the functions.
30590 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30592 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30595 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30596 use xop_pmacsdqh if uns_p.
30597 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30598 the immediate rotate count.
30600 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30602 * rtl.h (struct rtx_def): Add comment for field jump.
30603 (LRA_SUBREG_P): New macro.
30604 * recog.c (register_operand): Check LRA_SUBREG_P.
30605 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30607 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30608 (lra_final_code_change): Skip subreg change for operators.
30609 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30610 if there are no operand changes.
30611 * lra-constraints.c (curr_insn_set): New.
30612 (match_reload): Set LRA_SUBREG_P.
30613 (emit_spill_move): Ditto.
30614 (check_and_process_move): Use curr_insn_set. Process only single
30615 set insns. Don't initialize sec_mem_p and change_p.
30616 (simplify_operand_subreg): Use LRA_SUBREG_P.
30617 (reg_in_class_p): New function.
30618 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30619 of #ifdef. Add code to remove cycling.
30620 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30621 non-null disp. Reload inner instead of disp when base and index
30622 are null. Try to put lo_sum into register.
30623 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30624 (check_and_process_move): Move code for move cost check to
30625 simple_move_p. Remove equiv_substitution.
30626 (simple_move_p): New function.
30627 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30628 curr_insn_set. Call check_and_process_move only for single set
30629 insns. Use the new function. Move call of check_and_process_move
30630 after operand equiv substitution and address process.
30632 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30635 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30636 with nonlocal goto receivers or returns twice calls, ignore
30637 unininitialized values from abnormal edges to nl goto receiver
30638 or returns twice call.
30640 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30642 PR tree-optimization/57051
30643 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30644 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30647 2013-04-26 Richard Biener <rguenther@suse.de>
30649 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30650 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30651 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30652 (fixup_loop_arrays_after_move): New function.
30653 (move_sese_region_to_fn): Properly outline the loop tree parts
30654 of the SESE region.
30656 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30658 * config/i386/i386.md (type, unit): Fix long lines.
30660 2013-04-26 Richard Biener <rguenther@suse.de>
30662 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30663 (lto-streamer-out.o): Likewise.
30664 * cfgloop.c (init_loops_structure): Export, add struct function
30665 argument and adjust.
30666 (flow_loops_find): Adjust.
30667 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30668 (init_loops_structure): Declare.
30669 * lto-streamer-in.c: Include cfgloop.h.
30670 (input_cfg): Input the loop tree.
30671 * lto-streamer-out.c: Include cfgloop.h.
30672 (output_cfg): Output the loop tree.
30673 (output_struct_function_base): Do not drop PROP_loops.
30675 2013-03-26 Richard Biener <rguenther@suse.de>
30677 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30678 (pass_build_cfg): Provide PROP_loops.
30679 (move_sese_region_to_fn): Remove loops that are outlined into fn
30681 * tree-inline.c: Include cfgloop.h.
30682 (initialize_cfun): Do not drop PROP_loops.
30683 (copy_loops): New function.
30684 (copy_cfg_body): Copy loop structure.
30685 (tree_function_versioning): Initialize destination loop tree.
30686 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30687 (pass_parallelize_loops): Do IL verification.
30688 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30689 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30690 the CFG make sure we fixup loops as well.
30691 * tree-ssa-tail-merge.c: Include cfgloop.h.
30692 (replace_block_by): When merging loop latches mark loops for fixup.
30693 * lto-streamer-out.c (output_struct_function_base): Drop
30694 PROP_loops for now.
30695 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30696 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30697 * ipa-split.c: Include cfgloop.h.
30698 (split_function): Add the new return block to the loop tree root.
30699 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30700 whether we have removed the forwarder block.
30701 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30702 * cfgloop.h (place_new_loop): Declare.
30703 * cfgloopmanip.c (place_new_loop): Export.
30704 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30705 (tree-switch-conversion.o): Likewise.
30706 (tree-complex.o): Likewise.
30707 (tree-inline.o): Likewise.
30708 (tree-ssa-tailmerge.o): Likewise.
30709 (ipa-split.o): Likewise.
30710 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30711 (tree-ssa-copy.o): Likewise.
30712 * tree-switch-conversion.c: Include cfgloop.h
30713 (process_switch): If we emit a bit-test cascade, schedule loops
30715 * tree-complex.c: Include cfgloop.h.
30716 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30717 * asan.c: Include cfgloop.h.
30718 (create_cond_insert_point): Properly add new basic-blocks to
30719 loops, schedule loop fixup.
30720 * cfgloop.c (verify_loop_structure): Check that looks are not
30722 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30724 (expand_omp_for_generic): Likewise.
30725 (expand_omp_sections): Likewise.
30726 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30727 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30728 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30729 is initialized, not when loops are present.
30730 * tree-parloops.c (parallelize_loops): Remove checking here.
30731 * passes.c (init_optimization_passes): Schedule a copy-propagation
30732 pass before complete unrolling of inner loops.
30734 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30736 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30737 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30738 (colorize_init): Add argument to _WIN32 version.
30739 * toplev.c: Include diagnostic-color.h.
30740 (process_options): Default to -fdiagnostics-color=auto if
30741 GCC_COLORS env var is in the environment.
30742 * common.opt (fdiagnostics-color=): Add Var and Init.
30743 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30744 env var is in the environment, the default is auto rather than never.
30746 * diagnostic.h (file_name_as_prefix): Add context argument.
30747 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30748 the string as locus.
30749 * langhooks.c (lhd_print_error_function): Adjust caller.
30751 2013-04-25 Lawrence Crowl <crowl@google.com>
30753 * var-tracking.c (shared_hash_def::htab):
30754 Change type to hash_table. Update dependent calls and types.
30756 2013-04-25 Lawrence Crowl <crowl@google.com>
30758 * Makefile.in: Update as needed below.
30760 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30761 Move declaration to after the type's method definitons.
30763 * attribs.c (htab_t scoped_attributes::attribute_hash):
30764 Change type to hash_table. Update dependent calls and types.
30766 * bitmap.c (htab_t bitmap_desc_hash):
30767 Change type to hash_table. Update dependent calls and types.
30769 * cselib.c (htab_t cselib_hash_table):
30770 Change type to hash_table. Update dependent calls and types.
30772 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30773 (hash_string_slot_node): Move implementation into lto-streamer.h
30774 struct string_slot_hasher.
30775 (eq_string_slot_node): Likewise.
30777 * data-streamer-out.c: Update output_block::string_hash_table
30778 dependent calls and types.
30780 * dwarf2cfi.c (htab_t trace_index):
30781 Change type to hash_table. Update dependent calls and types.
30783 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30784 Change type to hash_table. Update dependent calls and types.
30785 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30786 (htab_t optimize_external_refs::map): Likewise.
30787 (htab_t output_comp_unit::extern_map): Likewise.
30788 (htab_t output_comdat_type_unit::extern_map): Likewise.
30789 (htab_t output_macinfo::macinfo_htab): Likewise.
30790 (htab_t optimize_location_lists::htab): Likewise.
30791 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30793 * except.c (htab_t ehspec_hash_type):
30794 Change type to hash_table. Update dependent calls and types.
30795 (assign_filter_values::ttypes): Likewise.
30796 (assign_filter_values::ehspec): Likewise.
30797 (sjlj_assign_call_site_values::ar_hash): Likewise.
30798 (convert_to_eh_region_ranges::ar_hash): Likewise.
30800 * gcse.c (htab_t pre_ldst_table):
30801 Change type to hash_table. Update dependent calls and types.
30803 * ggc-common.c (htab_t saving_htab):
30804 Change type to hash_table. Update dependent calls and types.
30805 (htab_t loc_hash): Likewise.
30806 (htab_t ptr_hash): Likewise.
30807 (call_count): Rename ggc_call_count.
30808 (call_alloc): Rename ggc_call_alloc.
30809 (loc_descriptor): Rename make_loc_descriptor.
30810 (add_statistics): Rename ggc_add_statistics.
30812 * ggc-common.c (saving_htab):
30813 Change type to hash_table. Update dependent calls and types.
30815 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30816 (push_gimplify_context): Likewise.
30817 (pop_gimplify_context): Likewise.
30818 (struct gimple_temp_hash_elt): Added.
30819 (struct gimplify_hasher): Likewise.
30820 (struct gimplify_ctx.temp_htab):
30821 Change type to hash_table. Update dependent calls and types.
30823 * gimple-fold.c: Include gimplify-ctx.h.
30825 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30826 Change type to hash_table. Update dependent calls and types.
30827 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30828 avoid potential global name collision.
30830 * gimplify.c: Include gimplify-ctx.h.
30831 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30832 (htab_t gimplify_ctx::temp_htab):
30833 Update dependent calls and types for new type hash_table.
30834 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30835 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30837 * gimplify-ctx.h: New.
30838 (struct gimple_temp_hash_elt): Move from gimplify.c.
30839 (class gimplify_hasher): New.
30840 (struct gimplify_ctx): Move from gimple.h.
30841 (htab_t gimplify_ctx::temp_htab):
30842 Change type to hash_table. Update dependent calls and types.
30844 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30845 (htab_t ivs_params::newivs_index):
30846 Change type to hash_table. Update dependent calls and types.
30847 (htab_t ivs_params::params_index): Likewise.
30848 (htab_t print_generated_program::params_index): Likewise.
30849 (htab_t gloog::newivs_index): Likewise.
30850 (htab_t gloog::params_index): Likewise.
30852 * graphite.c: Include graphite-htab.h.
30853 4htab_t graphite_transform_loops::bb_pbb_mapping):
30854 Change type to hash_table. Update dependent calls and types.
30856 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30857 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30858 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30860 * graphite-dependences.c: Include graphite-htab.h.
30861 (loop_is_parallel_p): Change hash table type of parameter.
30863 * graphite-htab.h: New.
30864 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30865 (extern find_pbb_via_hash): Move from graphite-poly.h.
30866 (extern loop_is_parallel_p): Move from graphite-poly.h.
30867 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30869 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30870 (extern loop_is_parallel_p): Move to graphite-htab.h.
30871 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30873 * haifa-sched.c (htab_t delay_htab):
30874 Change type to hash_table. Update dependent calls and types.
30875 (htab_t delay_htab_i2): Likewise.
30877 * ira-color.c (htab_t allocno_hard_regs_htab):
30878 Change type to hash_table. Update dependent calls and types.
30880 * ira-costs.c (htab_t cost_classes_htab):
30881 Change type to hash_table. Update dependent calls and types.
30883 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30884 Change type to hash_table. Update dependent calls and types.
30886 * loop-iv.c (htab_t bivs):
30887 Change type to hash_table. Update dependent calls and types.
30889 * loop-unroll.c (htab_t opt_info::insns_to_split):
30890 Change type to hash_table. Update dependent calls and types.
30891 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30893 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30894 (struct string_slot_hasher): New.
30895 (htab_t output_block::string_hash_table):
30896 Change type to hash_table. Update dependent calls and types.
30898 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30899 (htab_t file_name_hash_table):
30900 Change type to hash_table. Update dependent calls and types.
30902 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30905 * lto-streamer.c (htab_t tree_htab):
30906 Change type to hash_table. Update dependent calls and types.
30908 * omp-low.c: Include gimplify-ctx.h.
30910 * passes.c (htab_t name_to_pass_map):
30911 Change type to hash_table. Update dependent calls and types.
30912 (pass_traverse): Rename to passes_pass_traverse.
30914 * plugin.c (htab_t event_tab):
30915 Change type to hash_table. Update dependent calls and types.
30917 * postreload-gcse.c (htab_t expr_table):
30918 Change type to hash_table. Update dependent calls and types.
30919 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30921 * sese.c (debug_rename_map_1): Make extern.
30922 (htab_t copy_bb_and_scalar_dependences::rename_map):
30923 Change type to hash_table. Update dependent calls and types.
30925 * sese.h (extern debug_rename_map): Move to .c file.
30927 * store-motion.c (htab_t store_motion_mems_table):
30928 Change type to hash_table. Update dependent calls and types.
30930 * trans-mem.c (htab_t tm_new_mem_hash):
30931 Change type to hash_table. Update dependent calls and types.
30933 * tree-browser.c (htab_t TB_up_ht):
30934 Change type to hash_table. Update dependent calls and types.
30936 * tree-cfg.c (htab_t discriminator_per_locus):
30937 Change type to hash_table. Update dependent calls and types.
30939 * tree-complex.c: Include tree-hasher.h
30940 (htab_t complex_variable_components):
30941 Change type to hash_table. Update dependent calls and types.
30943 * tree-eh.c (htab_t finally_tree):
30944 Change type to hash_table. Update dependent calls and types.
30946 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30947 struct int_tree_hasher.
30948 (extern int_tree_map_eq): Likewise.
30949 (uid_decl_map_hash): Removed.
30950 (extern decl_tree_map_eq): Likewise.
30952 * tree-hasher.h: New.
30953 (struct int_tree_hasher): New.
30954 (typedef int_tree_htab_type): New.
30956 * tree-inline.c: Include gimplify-ctx.h.
30958 * tree-mudflap.c: Include gimplify-ctx.h.
30960 * tree-parloops.c: Include tree-hasher.h.
30961 (htab_t eliminate_local_variables_stmt::decl_address):
30962 Change type to hash_table. Update dependent calls and types.
30963 (htab_t separate_decls_in_region::decl_copies): Likewise.
30965 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30966 Change type to hash_table. Update dependent calls and types.
30968 * tree-sra.c (candidates):
30969 Change type to hash_table. Update dependent calls and types.
30971 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30973 (int_tree_map_hash): Likewise.
30975 * tree-ssa-dom.c (htab_t avail_exprs):
30976 Change type to hash_table. Update dependent calls and types.
30978 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30979 Change type to hash_table. Update dependent calls and types.
30981 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30982 Change type to hash_table. Update dependent calls and types.
30984 * tree-ssa-phiopt.c (seen_ssa_names):
30985 Change type to hash_table. Update dependent calls and types.
30987 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30988 Change type to hash_table. Update dependent calls and types.
30990 * tree-ssa-uncprop.c (equiv):
30991 Change type to hash_table. Update dependent calls and types.
30993 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30995 PR rtl-optimization/57003
30996 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30997 call note_stores with kill_clobbered_value callback again after
30998 killing regs_invalidated_by_call.
31000 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31002 * config/aarch64/aarch64-simd.md
31003 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31004 (aarch64_simd_bsl<mode>): Likewise.
31005 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31007 2013-04-25 Marek Polacek <polacek@redhat.com>
31009 PR tree-optimization/57066
31010 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31012 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31014 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31016 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31018 * config/aarch64/aarch64-builtins.c
31019 (aarch64_fold_builtin): New.
31020 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31021 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31022 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31023 * config/aarch64/arm_neon.h
31024 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31026 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31027 Tejas Belagod <tejas.belagod@arm.com>
31029 * config/aarch64/aarch64-builtins.c
31030 (aarch64_gimple_fold_builtin): New.
31031 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31032 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31033 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31034 (addvv4sf): Update.
31035 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31037 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31039 * config/aarch64/aarch64.md
31040 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31042 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31044 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31045 (*ngcsi_uxtw): New pattern.
31047 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31048 Julian Brown <julian@codesourcery.com>
31050 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31051 (TB_DREG): Add T_V4HF.
31052 (v4hf_UP): New macro.
31053 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31054 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31055 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31057 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31058 (arm_vector_mode_supported_p): Handle V4HF.
31059 (arm_mangle_map): Handle V4HFmode.
31060 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31061 * config/arm/arm_neon_builtins.def: Add entries for
31062 vcvtv4hfv4sf, vcvtv4sfv4hf.
31063 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31064 (neon_vcvtv4hfv4sf): Likewise.
31065 * config/arm/neon-gen.ml: Handle half-precision floating point
31067 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31068 * config/arm/arm_neon.h: Regenerate.
31069 * config/arm/neon.ml (type elts): Add F16.
31070 (type vectype): Add T_float16x4, T_floatHF.
31071 (type vecmode): Add V4HF.
31072 (type features): Add Requires_FP_bit feature.
31073 (elt_width): Handle F16.
31074 (elt_class): Likewise.
31075 (elt_of_class_width): Likewise.
31076 (mode_of_elt): Refactor.
31077 (type_for_elt): Handle F16, fix error messages.
31078 (vectype_size): Handle T_float16x4.
31079 (vcvt_sh): New function.
31080 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31081 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31082 (string_of_mode): Handle V4HF.
31083 * doc/arm-neon-intrinsics.texi: Regenerate.
31085 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31087 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31088 format specifier in 'X' case.
31090 2013-04-25 Alan Modra <amodra@gmail.com>
31093 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31094 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31095 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31096 Repeat for many other rotate/shift and mask patterns using subregs.
31097 Name lshiftrt insns.
31098 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31099 on WORDS_BIG_ENDIAN.
31101 2013-04-25 Alan Modra <amodra@gmail.com>
31103 * config.gcc: Support little-endian powerpc-linux targets.
31104 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31105 (LINK_OS_LINUX_SPEC): Define.
31106 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31107 Preserve MASK_LITTLE_ENDIAN.
31108 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31109 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31110 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31111 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31112 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31113 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31114 Correct fp word order for little-endian. Don't shift toc entries
31115 smaller than a word for little-endian.
31116 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31117 (bswapdi2 splits): Correct low-part subreg for little-endian.
31118 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31119 low/high where such is correct only for be.
31120 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31121 little-endian for -mcall-aixdesc.
31123 2013-04-25 Alan Modra <amodra@gmail.com>
31125 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31126 replace_equiv_address_nv.
31128 2013-04-25 Alan Modra <amodra@gmail.com>
31130 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31132 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31135 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31136 * rtl.h (struct rtx_def): ...
31138 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31140 PR rtl-optimizations/57046
31141 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31142 for multi-reg splits.
31144 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31146 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31148 2013-04-24 Sterling Augustine <saugustine@google.com>
31150 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31151 (comp_dir_string, debug_str_dwo_section): New.
31152 (DEBUG_STR_DWO_SECTION): Rename to ...
31153 (DEBUG_DWO_STR_SECTION): ... this.
31154 (DEBUG_NORM_STR_SECTION): Delete.
31155 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31156 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31157 (find_AT_string): Move most logic to ...
31158 (find_AT_string_in_table): ... here. New.
31159 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31160 add_skeleton_AT_string. Delete logic.
31161 (output_skeleton_debug_sections): Remove call to
31162 add_top_level_skeleton_die_attrs.
31163 (add_comp_dir_attribute): Move logic to comp_dir_string.
31164 (dwarf2out_init): Initialize debug_str_dwo_section.
31165 (output_indirect_string): Call find_string_form.
31166 (output_indirect_strings): Rewrite.
31167 (prune_unused_types): Empty skeleton_debug_str_hash.
31168 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31169 (dwarf2out_finish): Call output_indirect_strings.
31171 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31173 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31175 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31177 * rtl.h (struct rtx_def): Add comment for field jump.
31178 (LRA_SUBREG_P): New macro.
31179 * recog.c (register_operand): Check LRA_SUBREG_P.
31180 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31182 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31183 (lra_final_code_change): Skip subreg change for operators.
31184 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31185 if there are no operand changes.
31186 * lra-constraints.c (curr_insn_set): New.
31187 (match_reload): Set LRA_SUBREG_P.
31188 (emit_spill_move): Ditto.
31189 (check_and_process_move): Use curr_insn_set. Process only single
31190 set insns. Don't initialize sec_mem_p and change_p.
31191 (simplify_operand_subreg): Use LRA_SUBREG_P.
31192 (reg_in_class_p): New function.
31193 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31194 of #ifdef. Add code to remove cycling.
31195 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31196 non-null disp. Reload inner instead of disp when base and index
31197 are null. Try to put lo_sum into register.
31198 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31199 (check_and_process_move): Move code for move cost check to
31200 simple_move_p. Remove equiv_substitution.
31201 (simple_move_p): New function.
31202 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31203 curr_insn_set. Call check_and_process_move only for single set
31204 insns. Use the new function. Move call of check_and_process_move
31205 after operand equiv substitution and address process.
31207 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31209 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31210 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31211 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31213 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31215 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31217 2013-04-24 Marek Polacek <polacek@redhat.com>
31219 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31220 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31221 (select_loops_exit_conditions): Likewise.
31222 (number_of_iterations_for_all_loops): Likewise.
31223 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31224 (scev_analysis): Likewise.
31226 2013-04-02 Catherine Moore <clm@codesourcery.com>
31227 Chao-ying Fu <fu@mips.com>
31229 * config/mips/micromips.md (jraddiusp): New pattern.
31230 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31231 instruction if possible.
31233 2013-04-24 Alan Modra <amodra@gmail.com>
31235 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31237 2013-04-24 Julian Brown <julian@codesourcery.com>
31238 Chung-Lin Tang <cltang@codesourcery.com>
31240 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31241 dependency behavior in enumeration type DIE generation. Add TODO note
31242 to comments about future DW_FORM_sdata/udata re-work of related code.
31244 2013-04-23 Lawrence Crowl <crowl@google.com>
31246 * Makefile.in: Update as needed below.
31248 * hash-table.h (class hash_table):
31249 Correct many methods with parameter types compare_type to the correct
31250 value_type. (Correct code was unlikely to notice the change.)
31251 (hash_table::elements_with_deleted) New.
31252 (class hashtable::iterator): New.
31253 (hashtable::begin()): New.
31254 (hashtable::end()): New.
31255 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31257 * statistics.c (statistics_hashes):
31258 Change type to hash_table. Update dependent calls and types.
31260 * tree-into-ssa.c (var_infos):
31261 Change type to hash_table. Update dependent calls and types.
31263 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31264 Change type to hash_table. Update dependent calls and types.
31266 * tree-ssa-loop-im.c (struct mem_ref.refs):
31267 Change type to hash_table. Update dependent calls and types.
31269 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31270 Change type to hash_table. Update dependent calls and types.
31272 * tree-ssa-sccvn.c (vn_tables_s::nary):
31273 Change type to hash_table. Update dependent calls and types.
31274 (vn_tables_s::phis): Likewise.
31275 (vn_tables_s::references): Likewise.
31277 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31278 (vn_reference_eq): Update parameter and return types.
31280 * tree-ssa-structalias.c (pointer_equiv_class_table):
31281 Change type to hash_table. Update dependent calls and types.
31282 (location_equiv_class_table): Likewise.
31284 * tree-vect-data-refs.c: Consequential changes for making
31285 peeling a hash_table.
31287 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31288 (destroy_loop_vec_info): Dependent hash_table update.
31290 * tree-vectorizer.h (peeling_htab):
31291 Change type to hash_table. Update dependent calls and types.
31293 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31295 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31296 to check the register content is equal or not.
31297 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31298 to assign register content record.
31299 * lra-eliminations.c (update_reg_eliminate): Use
31300 lra_update_reg_val_offset to update register content offset.
31301 * lra-int.h (struct lra_reg): Add offset member.
31302 (lra_reg_val_equal_p): New static inline function.
31303 (lra_update_reg_val_offset): New static inline function.
31304 (lra_assign_reg_val): New static inline function.
31305 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31306 to assign register content record.
31307 (initialize_lra_reg_info_element): Initial offset to zero.
31309 2013-04-23 Catherine Moore <clm@codesourcery.com>
31311 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31312 operands. Record compression.
31314 2013-04-23 Xinliang David Li <davidxl@google.com>
31316 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31318 2013-04-23 Richard Biener <rguenther@suse.de>
31320 PR middle-end/57036
31321 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31322 parameter, only add abnormal goto edges from the copied body
31323 if the call could perform abnormal gotos.
31324 (copy_cfg_body): Adjust.
31326 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31328 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31330 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31332 * coretypes.h (gimple_stmt_iterator): Add struct to make
31335 2013-04-23 Richard Biener <rguenther@suse.de>
31337 PR tree-optimization/57026
31338 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31339 from SSA names occuring in abnormal PHI nodes.
31341 2013-04-22 Andi Kleen <ak@linux.intel.com>
31343 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31345 2013-04-22 Andi Kleen <ak@linux.intel.com>
31347 * lto/lto.c (print_lto_report_1): Declare early.
31348 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31350 2013-04-22 Andi Kleen <ak@linux.intel.com>
31352 * common.opt (-flto-report-wpa): Add.
31353 * doc/invoke.texi (-flto-report-wpa): Add.
31354 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31357 2013-04-22 Xinliang David Li <davidxl@google.com>
31359 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31360 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31361 * Makefile.in: New dependency
31363 David Daney <ddaney.cavm@gmail.com>
31365 * configure.ac (gcc_cv_as_micromips_support): Use the
31366 --fatal-warnings option.
31367 * configure: Regenerate.
31369 2013-04-22 Marek Polacek <polacek@redhat.com>
31372 * tsan.c (instrument_expr): Don't instrument expression
31373 in case its size is zero.
31375 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31379 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31381 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31383 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31385 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31386 (gimple_stmt_iterator): New typedef.
31387 * gimple.h (gimple_stmt_iterator): Rename to...
31388 (gimple_stmt_iterator_d): ... This.
31389 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31390 trees be valid for GIMPLE and GENERIC.
31391 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31392 * gimple-fold.c (gimple_fold_call): Call target hook
31393 gimple_fold_builtin.
31394 * hooks.c (hook_bool_gsiptr_false): New.
31395 * hooks.h (hook_bool_gsiptr_false): New.
31396 * target.def (fold_stmt): New.
31397 * doc/tm.texi: Regenerate.
31399 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31402 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31403 a set sp if no stack realignment.
31405 2013-04-22 Nick Clifton <nickc@redhat.com>
31407 * config.gcc (tilegx-linux): Extend extra_objs rather than
31409 (tilepro-linux): Likewise.
31411 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31413 * config/aarch64/aarch64-builtins.c
31415 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31416 (VAR<1-12>): Add MAP parameter.
31417 (BUILTIN_*): Likewise.
31418 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31419 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31420 (aarch64_ushl_n<mode>): Likewise.
31421 (aarch64_sshr_n<mode>): Likewise.
31422 (aarch64_ushr_n<mode>): Likewise.
31423 (aarch64_<maxmin><mode>): Likewise.
31424 (aarch64_sqrt<mode>): Likewise.
31425 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31426 (vshr<q>_n_*): Likewise.
31428 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31430 * config/aarch64/aarch64-builtins.c
31431 (aarch64_simd_builtin_type_mode): Handle SF types.
31433 (BUILTIN_GPF): Define.
31434 (aarch64_init_simd_builtins): Handle SF types.
31435 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31436 (frecps): Likewise.
31437 (frecpx): Likewise.
31438 * config/aarch64/aarch64-simd.md
31439 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31440 (aarch64_frecpe<mode>): New.
31441 (aarch64_frecps<mode>): Likewise.
31442 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31443 (v8type): Add frecp<esx>.
31444 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31445 (aarch64_frecps<mode>): Likewise.
31446 * config/aarch64/iterators.md (FRECP): New.
31447 (frecp_suffix): Likewise.
31448 * config/aarch64/arm_neon.h
31449 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31451 2013-04-22 Christian Bruel <christian.bruel@st.com>
31454 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31455 (REG_CLASS_NAMES): Idem.
31456 (REG_CLASS_CONTENTS): Idem.
31457 (REGCLASS_HAS_FP_REG): Idem.
31458 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31459 (sh_conditional_register_usage): Idem.
31461 2013-04-21 Jeff Law <law@redhat.com>
31463 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31464 (ssa_forward_propagate_and_combine): Use it.
31466 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31468 * lra.c: Update the flow chart diagram.
31470 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31472 PR rtl-optimization/56847
31473 * lra-constraints.c (process_alt_operands): Discourage alternative
31474 with non-matche doffsettable memory constraint fro memory with
31477 2013-04-19 Richard Biener <rguenther@suse.de>
31479 PR tree-optimization/56982
31480 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31482 * gimplify.c (gimplify_call_expr): Notice special calls.
31483 (gimplify_modify_expr): Likewise.
31484 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31485 abnormal control flow receivers.
31486 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31487 in the same way as cfun->has_nonlocal_labels.
31488 (gimple_purge_dead_abnormal_call_edges): Likewise.
31489 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31490 receivers start a basic-block.
31492 2013-04-19 Richard Biener <rguenther@suse.de>
31494 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31496 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31497 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31498 (SLP_TREE_LOAD_PERMUTATION): Add.
31499 (vect_transform_slp_perm_load): Adjust prototype.
31500 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31501 (vect_free_slp_instance): Likewise.
31502 (vect_create_new_slp_node): Likewise.
31503 (vect_supported_slp_permutation_p): Remove.
31504 (vect_slp_rearrange_stmts): Adjust.
31505 (vect_supported_load_permutation_p): Likewise. Inline
31506 vect_supported_slp_permutation_p here.
31507 (vect_analyze_slp_instance): Compute load permutations per
31508 slp node instead of per instance.
31509 (vect_get_slp_defs): Adjust.
31510 (vect_transform_slp_perm_load): Likewise.
31511 (vect_schedule_slp_instance): Remove redundant code.
31512 (vect_schedule_slp): Remove hack for PR56270, add it ...
31513 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31514 CSE loads for SLP. Adjust.
31516 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31518 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31519 spelling in two comments.
31521 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31524 * config/arm/arm.c (load_multiple_sequence): Require SP
31525 as base register for loads if SP is in the register list.
31527 2013-04-19 Martin Jambor <mjambor@suse.cz>
31529 PR tree-optimization/56718
31530 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31531 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31532 and made public. Adjusted all callers.
31533 (ipa_intraprocedural_devirtualization): New function.
31534 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31535 (ipa_intraprocedural_devirtualization): Likewise.
31536 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31538 2013-04-19 Richard Biener <rguenther@suse.de>
31540 PR tree-optimization/57000
31541 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31543 2013-04-19 Terry Guo <terry.guo@arm.com>
31545 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31547 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31548 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31549 (cortex_m4_fmacs): Use new reservations.
31550 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31552 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31554 PR rtl-optimization/56999
31555 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31557 (lra_coalesce): Remove split_origin_bitmap and related code.
31558 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31559 ranges if necessary.
31561 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31563 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31565 (ix86_expand_call): Remove clobbered_registers array and use
31566 x86_64_ms_sysv_extra_clobbered_registers instead.
31567 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31569 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31571 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31572 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31573 (*call_value_rex64_ms_sysv): Ditto.
31575 2013-04-18 Cary Coutant <ccoutant@google.com>
31577 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31578 parent instead of die_mark.
31580 2013-04-18 Diego Novillo <dnovillo@google.com>
31582 * gimple.c (create_gimple_tmp): New.
31583 (get_expr_type): New.
31584 (build_assign): New.
31585 (build_type_cast): New.
31586 * gimple.h (enum ssa_mode): Define.
31587 (gimple_seq_set_location): New.
31588 * asan.c (build_check_stmt): Change some gimple_build_* calls
31589 to use build_assign and build_type_cast.
31591 2013-04-18 Richard Biener <rguenther@suse.de>
31593 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31594 handle negative step. Remove redundant checks.
31595 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31596 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31597 for negative step and grouped loads fail to vectorize.
31599 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31601 * emit-rtl.c (reset_insn_used_flags): New function.
31602 (reset_all_used_flags): Use it.
31603 (verify_insn_sharing): New function.
31604 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31606 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31608 PR tree-optimization/56984
31609 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31610 and (x >> M) >= N don't register any assertion if N << M is the
31613 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31615 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31616 do not delete_insn insns that have not yet been emitted, only
31617 unlink them with remove_insn.
31618 * df-scan.c (df_insn_delete): Revert r197492.
31620 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31622 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31623 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31625 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31627 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31628 define_insn_and_split.
31629 (and_scc,ior_scc,negscc): Likewise.
31630 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31632 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31634 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31635 can benefit from using a sequence of LDRD instructions in epilogue
31636 instead of a single LDM instruction.
31638 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31641 * doc/extend.texi: Fix typo.
31643 2013-04-17 Richard Biener <rguenther@suse.de>
31645 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31646 (vect_build_slp_tree): ... here.
31647 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31648 match. Remove special-casing of mismatched complex loads.
31649 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31650 re-try the match with swapped commutative operands.
31651 (vect_supported_load_permutation_p): Remove special-casing of
31652 mismatched complex loads.
31653 (vect_analyze_slp_instance): Adjust.
31655 2013-04-17 Richard Biener <rguenther@suse.de>
31657 PR rtl-optimization/56921
31658 * cfgloop.h (struct loop): Add simple_loop_desc member.
31659 (struct niter_desc): Mark with GTY(()).
31660 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31661 * loop-iv.c (get_simple_loop_desc): Likewise.
31662 (free_simple_loop_desc): Likewise.
31665 2013-04-16 Richard Biener <rguenther@suse.de>
31667 PR rtl-optimization/56921
31668 * loop-init.c (pass_rtl_move_loop_invariants): Add
31669 TODO_do_not_ggc_collect to todo_flags_finish.
31670 (pass_rtl_unswitch): Same.
31671 (pass_rtl_unroll_and_peel_loops): Same.
31672 (pass_rtl_doloop): Same.
31674 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31676 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31677 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31678 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31680 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31681 * tree-streamer.c (record_common_node): Adjust reference in comment.
31683 2013-04-17 Terry Guo <terry.guo@arm.com>
31685 * config/arm/cortex-m4.md: Add a new bypass.
31687 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31689 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31691 (*subs_<optab><mode>_multp2): New pattern.
31692 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31693 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31695 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31697 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31698 (*subs_mul_imm_<mode>): New pattern.
31700 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31703 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31704 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31705 (vsx_movti_32bit): Change j->wa to O->wa.
31707 2013-04-16 Richard Biener <rguenther@suse.de>
31709 PR rtl-optimization/56921
31710 * loop-init.c (pass_rtl_move_loop_invariants): Add
31711 TODO_do_not_ggc_collect to todo_flags_finish.
31712 (pass_rtl_unswitch): Same.
31713 (pass_rtl_unroll_and_peel_loops): Same.
31714 (pass_rtl_doloop): Same.
31716 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31718 * config/arm/arm.c (emit_multi_reg_push): New declaration
31719 for an existing function.
31720 (arm_emit_strd_push): New function.
31721 (arm_expand_prologue): Used here.
31722 (arm_emit_ldrd_pop): New function.
31723 (arm_expand_epilogue): Used here.
31724 (arm_get_frame_offsets): Update condition.
31725 (arm_emit_multi_reg_pop): Add a special case for load of a single
31726 register with writeback.
31728 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31730 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31733 2013-04-16 Richard Biener <rguenther@suse.de>
31735 PR tree-optimization/56756
31736 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31737 (first_mem_ref_loc): New.
31738 (execute_sm): Place the load temporarily before a previous
31739 access instead of in the latch edge to ensure its SSA dependencies
31740 are defined at points dominating the load.
31742 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31744 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31745 correct fix by moving header and footer insn to the footer of
31746 the merged basic block. Clear BB_END of the merged-away block.
31748 PR middle-end/43631
31749 * emit-rtl.c (make_note_raw): New function.
31750 (link_insn_into_chain): New static inline function.
31751 (add_insn): Use it.
31752 (add_insn_before, add_insn_after): Factor insn chain linking code...
31753 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31754 using link_insn_into_chain.
31755 (note_outside_basic_block_p): New helper function for emit_note_after
31756 and emit_note_before.
31757 (emit_note_after): Use nobb variant of add_insn_after if the note
31758 should not be contained in a basic block.
31759 (emit_note_before): Use nobb variant of add_insn_before if the note
31760 should not be contained in a basic block.
31761 (emit_note_copy): Use make_note_raw.
31762 (emit_note): Likewise.
31763 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31764 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31765 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31766 the moved barrier the tail of the basic block it follows.
31767 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31769 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31771 PR tree-optimization/56962
31772 * gimple-ssa-strength-reduction.c (record_increment): Only set
31773 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31774 either rhs1 or rhs2 is equal to c->base_expr.
31776 2013-04-15 Richard Biener <rguenther@suse.de>
31778 PR tree-optimization/56933
31779 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31781 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31782 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31783 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31784 dependence check ...
31785 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31787 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31788 GROUP_READ_WRITE_DEPENDENCE.
31790 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31792 * emit-rtl.c (reset_all_used_flags): New function.
31793 (verify_rtl_sharing): Call reset_all_used_flags before and after
31794 performing the checks.
31796 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31798 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31799 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31800 * config/arm/constraints.md (De): New constraint.
31801 * config/arm/neon.md (anddi3_neon): Delete.
31802 (neon_vand<mode>): Expand to standard anddi3 pattern.
31803 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31804 Move earlier in the file.
31805 (neon_inv_logic_op2): Likewise.
31806 (arm_anddi_operand_neon): New predicate.
31808 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31810 * configure.ac (gcc_cv_ld_as_needed): Set
31811 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31812 Use -z ignore, -z record on *-*-solaris2*.
31813 (HAVE_LD_AS_NEEDED): Update comment.
31814 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31815 * configure: Regenerate.
31816 * config.in: Regenerate.
31817 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31818 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31819 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31820 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31821 equivalents. Fix markup.
31822 * doc/tm.texi: Regenerate.
31824 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31826 * config/i386/i386.opt: New option mstack-protector-guard=.
31827 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31828 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31829 TARGET_SSP_TLS_GUARD.
31830 * config/i386/i386.c (ix86_option_override_internal): Set
31831 ix86_stack_protector_guard.
31832 * config/i386/i386.md (stack_protect_set): Enable for
31833 TARGET_SSP_TLS_GUARD only.
31834 (stack_protect_set_<mode>): Ditto.
31835 (stack_protect_test): Ditto.
31836 (stack_protect_test_<mode>): Ditto.
31837 * doc/invoke.texi (i386 Option): Document.
31839 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31842 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31843 (S_MODES): Set H_MODE bit.
31844 (SF_MODES): Set only S_MODE and SF_MODE bits.
31845 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31846 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31847 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31848 <MODE_FLOAT>: Likewise.
31850 2013-04-15 Joey Ye <joey.ye@arm.com>
31852 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31854 2013-04-15 Joey Ye <joey.ye@arm.com>
31856 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31858 (thumb_far_jump_used_p): Count instruction size and set
31861 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31863 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31864 * resource.c (mark_target_live_regs): Reformat conditional block.
31866 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31868 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31869 notes, they are emitted only just before final.
31870 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31872 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31874 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31875 * cfgrtl.c (delete_insn): Call it here instead.
31876 * lra-spills.c (lra_final_code_change): Use delete_insn.
31877 * haifa-sched.c (sched_remove_insn): Likewise.
31878 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31879 returning to the nop pool.
31880 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31881 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31883 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31885 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31886 * doc/tm.texi: Regenerated.
31888 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31890 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31893 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31895 * df-core.c (df_find_def): Compare register numbers.
31896 (df_find_use): Likewise.
31898 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31901 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31902 lra_in_progress for return.
31904 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31906 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31907 define_insn into define_insn_and_split and emit movsicc patterns.
31909 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31911 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31913 2013-04-12 Richard Biener <rguenther@suse.de>
31915 * tree-pass.h (TODO_do_not_ggc_collect): New.
31916 * passes.c (execute_one_ipa_transform_pass): Honor
31917 TODO_do_not_ggc_collect.
31918 (execute_one_pass): Likewise.
31921 2013-04-10 Richard Biener <rguenther@suse.de>
31923 * passes.c (init_optimization_passes): Remove reload pass.
31924 * ira.c (do_reload): Merge into ...
31926 (rest_of_handle_reload): Remove.
31927 (pass_reload): Likewise.
31928 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31929 of reload for vzeroupper pass placement.
31931 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31933 PR tree-optimization/56918
31934 PR tree-optimization/56920
31935 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31936 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31937 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31938 use wide_mul_with_sign method.
31940 2013-04-12 Richard Biener <rguenther@suse.de>
31942 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31943 not be considered a gimple constant.
31945 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31947 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31948 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31951 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31952 Jakub Jelinek <jakub@redhat.com>
31954 * opts.c: Include diagnostic-color.h.
31955 (common_handle_option): Handle OPT_fdiagnostics_color_.
31956 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31957 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31958 (diagnostic-color.o): New.
31959 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31960 (diagnostic_color_rule): New enum.
31961 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31962 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31963 the location string.
31964 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31965 either NULL, or color kind.
31966 * diagnostic-color.c: New file.
31967 * diagnostic-color.h: New file.
31968 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31970 * doc/invoke.texi (-fdiagnostics-color): Document.
31971 * pretty-print.h (pp_show_color): Define.
31972 (struct pretty_print_info): Add show_color field.
31973 * diagnostic.c: Include diagnostic-color.h.
31974 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31975 macros. Colorize error:, warning: etc. strings and also the location
31977 (diagnostic_show_locus): Colorize the caret line.
31978 * pretty-print.c: Include diagnostic-color.h.
31979 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31980 inside of %< %> quotes or quoted through q format modifier.
31982 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31984 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31986 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31988 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31989 code in CC_NZ mode.
31990 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31993 2013-04-11 Marek Polacek <polacek@redhat.com>
31995 PR tree-optimization/48184
31996 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31998 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32000 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32001 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32002 (skip_simple_arithmetic): Tidy up.
32003 * tree.h (skip_simple_constant_arithmetic): Declare.
32005 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32007 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32009 2013-04-11 Richard Biener <rguenther@suse.de>
32011 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32012 generate vector constants.
32014 2013-04-11 Richard Biener <rguenther@suse.de>
32016 PR tree-optimization/56878
32017 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32018 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32020 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32021 Prefer to align the DR with the most invariant base address.
32023 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32025 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32028 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32030 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32031 floating-point vector comparisons against 0.
32033 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32035 PR tree-optimization/56899
32036 * fold-const.c (extract_muldiv_1): Apply distributive law
32037 only if TYPE_OVERFLOW_WRAPS (ctype).
32039 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32042 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32043 loading has side effect.
32045 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32047 * config/sparc/sparc.c: Include tree-pass.h.
32048 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32049 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32050 head of file. Change return type. Split off gate function.
32051 (sparc_gate_work_around_errata): New function.
32052 (pass_work_around_errata): New pass definition.
32053 (insert_pass_work_around_errata) New pass insert definition to
32054 insert pass_work_around_errata just after delayed-branch scheduling.
32055 (sparc_option_override): Insert the pass.
32056 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32058 2013-04-10 David S. Miller <davem@davemloft.net>
32060 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32061 or -mcpu=hypersparc.
32063 * target.def (cstore_mode): New hook.
32064 * target.h: Include insn-codes.h
32065 * targhooks.c: Likewise.
32066 (default_cstore_mode): New function.
32067 * targhooks.h: Declare it.
32068 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32069 * doc/tm.texi: Rebuild.
32070 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32071 target hook, rather than inspecting the insn_data.
32072 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32073 (TARGET_CSTORE_MODE): Redefine.
32074 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32076 * config/sparc/predicates.md (cstore_result_operand): New special
32078 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32079 Use it for operand 0.
32080 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32081 (*snesi_special): Likewise.
32082 (*snesi_zero): Likewise.
32083 (*seqsi_zero): Likewise.
32084 (*sltu_insn): Likewise.
32085 (*sgeu_insn): Likewise.
32086 (*seqdi_special): Make operand 0 and comparison operation be of
32088 (*snedi_special): Likewise.
32089 (*snedi_special_vis3): Likewise.
32090 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32091 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32092 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32093 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32094 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32095 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32096 (*sltu_extend_sp64): Likewise.
32097 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32098 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32099 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32100 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32101 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32103 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32105 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32106 (aarch64_start_file): Use the new function.
32108 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32109 Jason Merrill <jason@redhat.com>
32111 * common.opt: Add -gdwarf.
32112 * opts.c (common_handle_option): Handle it.
32113 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32115 2013-04-10 Richard Biener <rguenther@suse.de>
32117 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32118 (execute_one_ipa_transform_pass): But unconditionally here.
32119 (execute_one_pass): And here.
32120 (init_optimization_passes): Remove reload pass.
32121 * tree-pass.h (TODO_ggc_collect): Remove.
32122 (pass_reload): Likewise.
32123 * ira.c (do_reload): Merge into ...
32125 (rest_of_handle_reload): Remove.
32126 (pass_reload): Likewise.
32127 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32128 of reload for vzeroupper pass placement.
32129 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32130 and todo_flags_finish of all passes.
32132 2013-04-10 Richard Biener <rguenther@suse.de>
32134 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32135 first_const_oprnd field, rename first_def_type to first_op_type.
32136 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32137 (vect_get_and_check_slp_defs): Always use the type of the
32138 operand. Allow mixed vect_external_def, vect_constant_def types.
32139 (vect_get_constant_vectors): Handle mixed vect_external_def,
32140 vect_constant_def types.
32142 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32144 PR tree-optimization/55524
32145 * tree-ssa-math-opts.c
32146 (convert_mult_to_fma): Don't use an fms construct
32147 when we don't have an fms operation, but fnma, and it looks
32148 likely that we'll be able to use the latter.
32150 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32152 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32154 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32155 inline fail caused by overwritable functions.
32157 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32159 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32160 unnecessary bits in the constant power of two case.
32162 2013-04-10 Richard Biener <rguenther@suse.de>
32164 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32165 broken code swapping operands.
32166 (vect_build_slp_tree): Do not compute load permutations here.
32167 (vect_analyze_slp_instance): Compute load permutations here,
32168 after building the SLP tree.
32170 2013-04-09 Christian Bruel <christian.bruel@st.com>
32172 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32173 of next/prev_real_insn.
32175 2013-04-09 Jan Hubicka <jh@suse.cz>
32177 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32178 Drop aliased parameter.
32179 (function_and_variable_visibility): Do not handle alias pairs.
32180 * cgraph.c (varpool_externally_visible_p): Update prototype.
32181 * varpool.c (varpool_add_new_variable): Update.
32183 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32185 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32187 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32189 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32191 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32193 2013-04-09 Marek Polacek <polacek@redhat.com>
32195 PR tree-optimization/48762
32196 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32198 2013-04-09 Richard Biener <rguenther@suse.de>
32200 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32202 (vect_build_slp_tree): Likewise.
32203 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32204 calculating the cost of a SLP instance.
32205 (vect_analyze_slp_instance): Use it from here, after building
32208 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32210 PR middle-end/56883
32211 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32212 expand_omp_for_static_chunk): Use simple_p = true in
32213 force_gimple_operand_gsi calls when assigning to addressable decls.
32215 2013-04-09 Jeff Law <law@redhat.com>
32217 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32218 when the boolean was created by converting a wider object which
32219 had a boolean range.
32221 2013-04-09 Richard Biener <rguenther@suse.de>
32223 * tree-vectorizer.h (slp_void_p): Remove.
32224 (slp_tree): Typedef before _slp_tree declaration.
32225 (struct _slp_tree): Use a vector of slp_tree as children.
32226 (vect_get_place_in_interleaving_chain): Remove.
32227 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32229 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32231 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32232 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32233 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32234 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32235 Use slp_node instead of slp_void_p and adjust.
32237 2013-04-09 Richard Biener <rguenther@suse.de>
32239 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32240 work that is not necessary.
32242 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32244 PR tree-optimization/56854
32245 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32246 forward into clobber stmts if it would change MEM_REF lhs into
32249 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32251 * tree.c (type_hash_lookup, type_hash_add): Make static.
32252 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32254 2013-04-09 Richard Biener <rguenther@suse.de>
32256 * tree.h (unsave_expr_now): Remove.
32257 * tree-inline.c (mark_local_for_remap_r): Remove.
32258 (unsave_expr_1): Likewise.
32259 (unsave_r): Likewise.
32260 (unsave_expr_now): Likewise.
32261 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32262 (propagate_tree_value): Likewise.
32264 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32266 * doc/rtl.texi (sequence): Rewrite documentation to match the
32267 current use of SEQUENCE rtl objects.
32268 * rtl.def (SEQUENCE): Likewise.
32270 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32271 Update documentation.
32272 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32273 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32275 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32277 2013-04-08 Teresa Johnson <tejohnson@google.com>
32279 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32280 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32282 (estimate_edge_size_and_time): Add comment to suggest using rounding
32284 (estimate_node_size_and_time): Ditto.
32285 (remap_edge_change_prob): Use helper rounding divide methods.
32286 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32287 (gimple_mod_pow2_value_transform): Ditto.
32288 (gimple_mod_subtract_transform): Ditto.
32289 (gimple_ic_transform): Ditto.
32290 (gimple_stringops_transform): Ditto.
32291 * stmt.c (conditional_probability): Ditto.
32292 (emit_case_dispatch_table): Ditto.
32293 * lto-cgraph.c (merge_profile_summaries): Ditto.
32294 * tree-optimize.c (execute_fixup_cfg): Ditto.
32295 * cfgcleanup.c (try_forward_edges): Ditto.
32296 * cfgloopmanip.c (scale_loop_profile): Ditto.
32298 (duplicate_loop_to_header_edge): Ditto.
32299 (lv_adjust_loop_entry_edge): Ditto.
32300 * tree-vect-loop.c (vect_transform_loop): Ditto.
32301 * profile.c (compute_branch_probabilities): Ditto.
32302 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32303 * lto-streamer-in.c (input_cfg): Ditto.
32304 * gimple-streamer-in.c (input_bb): Ditto.
32305 * ipa-cp.c (update_profiling_info): Ditto.
32306 (update_specialized_profile): Ditto.
32307 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32308 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32310 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32311 (compute_trg_info): Ditto.
32312 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32313 (purge_dead_edges): Ditto.
32314 * loop-unswitch.c (unswitch_loop): Ditto.
32315 * cgraphclones.c (cgraph_clone_edge): Ditto.
32316 (cgraph_clone_node): Ditto.
32317 * tree-inline.c (copy_bb): Ditto.
32318 (copy_edges_for_bb): Ditto.
32319 (initialize_cfun): Ditto.
32320 (copy_cfg_body): Ditto.
32321 (expand_call_inline): Ditto.
32323 2013-04-08 Kai Tietz <ktietz@redhat.com>
32325 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32326 TARGET_CYGWIN64 by TARGET_64BIT.
32328 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32330 * config/epiphany/epiphany.md (GPR_1): New constant.
32331 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32332 * config/epiphany/epiphany.c (gen_compare_reg):
32333 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32334 is already in place.
32335 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32336 Don't require being called during rtl expansion; If y operlaps r0,
32338 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32339 (epiphany_expand_epilogue): Likewise.
32341 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32342 Don't use CC_FPmode for ORDERED / UNORDERED.
32343 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32345 * config/epiphany/constraints.md (CnL): New constraint.
32346 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32347 * config/epiphany/predicates.md (add_operand): Allow 1024.
32349 * config/epiphany/epiphany.md (logical_op): New code iterator.
32350 (op_mnc): New code attribute.
32351 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32352 (mov_f+1, mov_f+2): New peephole2 patterns.
32354 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32355 (cstoresi4): Also allow re-use of zero result when doing a NE
32356 comparison to a non-zero operand.
32357 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32359 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32360 Use gen_addsi3_i / gen_subsi3_i.
32362 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32366 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32367 contain anything but clobbers, at most one __builtin_stack_restore,
32368 optionally debug stmts and final resx, and if it has at least one
32369 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32370 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32371 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32372 which isn't defaut definition, remove them.
32373 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32374 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32375 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32376 with MEM_REF LHS with SSA_NAME address.
32378 2013-04-08 Jeff Law <law@redhat.com>
32380 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32382 2013-04-08 Richard Biener <rguenther@suse.de>
32384 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32386 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32387 determined vector type.
32388 (vect_analyze_data_refs): Likewise.
32389 (vect_get_new_vect_var): Adjust.
32390 (vect_create_destination_var): Preserve SSA name versions.
32391 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32392 not dump anything here.
32394 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32396 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32397 Add member lr_slot_known.
32398 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32400 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32401 Remove code that sets lr_slot_offset according to what a previous
32402 version of epiphany_emit_save_restore used to do.
32403 (epiphany_emit_save_restore): When doing an lr save or restore,
32404 set/verify lr_slot_known and lr_slot_offset.
32406 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32409 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32412 2013-04-08 Richard Biener <rguenther@suse.de>
32414 * alias.c (find_base_term): Fix thinko in previous change.
32416 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32418 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32419 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32420 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32421 if possible to compute val.
32422 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32423 For QImode integers don't require anything about precision. Use
32424 const_with_all_bytes_same to find out if the constant doesn't have
32425 repeated bytes in it.
32427 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32429 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32432 2013-04-08 Marek Polacek <polacek@redhat.com>
32434 PR rtl-optimization/48182
32435 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32438 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32441 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32442 nuses, make sure we have a label.
32444 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32447 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32448 (rs6000_emit_swdiv_low_precision): Remove.
32449 (rs6000_emit_swdiv): Rewrite to handle between one and four
32450 iterations of Newton-Raphson generally; modify required number of
32451 iterations for some cases.
32452 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32454 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32456 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32457 set-but-unused variable.
32459 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32460 basic blocks of released function bodies garbage-collectable.
32462 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32463 (struct rtl_opt_pass): Add TODO_df_finish.
32465 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32467 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32469 * config/arm/constraints.md (q): New constraint.
32470 * config/arm/ldrdstrd.md: New file.
32471 * config/arm/arm.md (ldrdstrd.md) New include.
32472 (arm_movdi): Use "q" instead of "r" constraint
32473 for double-word memory access.
32474 (movdf_soft_insn): Likewise.
32475 * config/arm/vfp.md (movdi_vfp): Likewise.
32476 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32477 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32478 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32479 (mem_ok_for_ldrd_strd): Likewise.
32480 (output_move_double): Update assertion.
32482 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32484 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32486 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32488 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32489 define_insn_and_split.
32490 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32492 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32494 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32495 define_insn_and_split.
32496 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32497 (shiftsi3_compare): New pattern.
32498 (rrx): New pattern.
32499 * config/arm/unspecs.md (UNSPEC_RRX): New.
32501 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32503 * config/arm/arm.md (negdi_extendsidi): New pattern.
32504 (negdi_zero_extendsidi): Likewise.
32506 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32508 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32509 define_insn_and_split.
32510 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32511 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32513 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32515 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32516 define_insn_and_split.
32517 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32518 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32520 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32522 * config/arm/arm.md (subsi3_carryin): New pattern.
32523 (subsi3_carryin_const): Likewise.
32524 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32525 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32527 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32529 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32531 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32533 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32534 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32536 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32538 * config/arm/arm.c (arm_expand_builtin): Change fcode
32539 type to unsigned int.
32541 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32543 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32545 2013-04-04 Ian Lance Taylor <iant@google.com>
32547 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32550 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32552 PR middle-end/56729
32553 * df-scan.c (df_insn_delete): Disable failing assert.
32555 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32557 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32558 New function prototype.
32559 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32560 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32561 (arm_builtin_vectorized_function): New function.
32563 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32565 * config/arm/arm_neon_builtins.def: New file.
32566 * config/arm/arm.c (neon_builtin_data): Move contents to
32567 arm_neon_builtins.def.
32568 (enum arm_builtins): Include neon builtin definitions.
32569 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32570 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32572 2013-04-04 Marek Polacek <polacek@redhat.com>
32574 PR tree-optimization/48186
32575 * predict.c (maybe_hot_frequency_p): Return false if
32576 HOT_BB_FREQUENCY_FRACTION is 0.
32577 (cgraph_maybe_hot_edge_p): Likewise.
32579 2013-04-04 Richard Biener <rguenther@suse.de>
32581 PR tree-optimization/56826
32582 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32585 2013-04-04 Richard Biener <rguenther@suse.de>
32587 PR tree-optimization/56213
32588 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32589 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32591 2013-04-04 Richard Biener <rguenther@suse.de>
32593 PR tree-optimization/56837
32594 * tree-loop-distribution.c (classify_partition): For non-zero
32595 values require that the value has the same precision as its
32596 mode to be useful as memset value.
32598 2013-04-03 Nick Clifton <nickc@redhat.com>
32600 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32601 (fmssf4): Use fmsf.s on E3V5 architectures.
32602 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32603 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32605 2013-04-03 Jeff Law <law@redhat.com>
32607 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32608 (lra-eliminations.o): Likewise.
32610 2013-04-03 Teresa Johnson <tejohnson@google.com>
32612 * gcov-io.c (compute_working_sets): Moved most of body of old
32613 compute_working_sets here from profile.c.
32614 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32615 (gcov_working_set_t): Moved typedef here from basic-block.h
32616 (compute_working_set): Declare.
32617 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32618 (get_working_sets): Renamed from compute_working_set,
32619 replace most of body with call to new compute_working_sets.
32620 (get_exec_counts): Replace call to compute_working_sets
32621 to get_working_sets.
32622 * profile.h (get_working_sets): Renamed from compute_working_set.
32623 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32624 to get_working_sets.
32625 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32626 * gcov-dump.c (dump_working_sets): New function.
32628 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32630 * hwint.c (sext_hwi, zext_hwi): New functions.
32631 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32632 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32633 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32634 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32635 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32636 (sext_hwi, zext_hwi): New functions.
32638 2013-04-03 Jeff Law <law@redhat.com>
32640 PR tree-optimization/56799
32641 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32642 back test for widening conversion erroneously dropped in prior change.
32644 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32647 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32648 instead of next_real_insn.
32650 2013-04-03 Marek Polacek <polacek@redhat.com>
32653 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32655 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32658 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32660 (thumb1_output_casesi): Likewise.
32661 (thumb2_output_casesi): Likewise.
32663 2013-04-03 Richard Biener <rguenther@suse.de>
32665 PR tree-optimization/56817
32666 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32668 (tree_unroll_loops_completely_1): ... new function to manually
32669 walk the loop tree, properly defering outer loops of unrolled
32670 loops to later iterations.
32672 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32674 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32675 (vectorizable_load): Likewise.
32676 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32677 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32679 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32681 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32684 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32686 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32688 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32690 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32692 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32694 PR tree-optimization/56790
32695 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32698 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32700 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32702 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32703 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32706 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32709 * tree.h (force_folding_builtin_constant_p): New decl.
32710 * builtins.c (force_folding_builtin_constant_p): New variable.
32711 (fold_builtin_constant_p): Fold immediately also if
32712 force_folding_builtin_constant_p.
32714 2013-04-03 Richard Biener <rguenther@suse.de>
32716 PR tree-optimization/56812
32717 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32718 DRs of the same interleaving chain are independent.
32720 2013-04-02 Jason Merrill <jason@redhat.com>
32722 * gdbinit.in (pbb): Use debug fn.
32724 2013-04-02 Lawrence Crowl <crowl@google.com>
32726 * sese.h (struct ivtype_map_elt_s): Remove unused.
32727 (extern debug_ivtype_map): Remove unused.
32728 (extern eq_ivtype_map_elts): Remove unused.
32729 * sese.c (debug_ivtype_map): Removed unused.
32730 (debug_ivtype_map_1): Removed unused.
32731 (debug_ivtype_elt): Remove unused.
32732 (eq_ivtype_map_elts): Remove unused.
32734 2013-04-02 Kai Tietz <ktietz@redhat.com>
32737 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32738 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32739 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32741 (legitimize_pe_coff_symbol): Likewise.
32742 (is_imported_p): New helper-function.
32743 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32744 for Windows x64 targets.
32745 (ix86_expand_prologue): Optimize for pe-coff targets.
32746 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32747 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32748 medium/large code-model.
32749 (legitimize_pic_address): Likewise.
32750 (legitimize_tls_address): Likewise.
32751 (ix86_expand_call): Likewise.
32752 (x86_output_mi_thunk): Likewise.
32753 (get_dllimport_decl): Add new beimport argument.
32754 (construct_plt_address): Don't assert for x64 pe-coff targets.
32755 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32757 (SYMBOL_FLAG_STUBVAR): New macro.
32758 (SYMBOL_REF_STUBVAR_P): Likewise.
32759 * config/i386/winnt.c (stub_list): New structure.
32760 (stub_head): New local variable.
32761 (i386_pe_record_stub): New function.
32762 (i386_pe_file_end): Emit refptr-stubs.
32764 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32766 PR rtl-optimization/56745
32767 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32768 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32771 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32772 and both of them are MEM_REFs, just compare first argument for
32773 equality and attempt to deal even with differing offsets.
32776 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32777 of gimple_clobber_p to be MEM_REF.
32778 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32779 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32780 after gimplification.
32781 * asan.c (get_mem_ref_of_assignment): Don't instrument
32782 gimple_clobber_p stmts.
32783 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32784 gimple_clobber_p stmt if they have MEM_REF lhs and
32785 are dead because of another gimple_clobber_p stmt.
32786 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32787 gimple_clobber_p stmts like debug stmts.
32788 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32789 that refer to unused VAR_DECLs or uninitialized values.
32790 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32791 gimple_clobber_p stmts if they refer to removed parameters.
32792 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32795 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32797 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32798 using SWI48 mode attribute.
32800 2013-04-02 Wei Mi <wmi@google.com>
32802 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32803 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32804 *<rotate_insn><mode>3_mask in i386.md.
32806 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32808 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32810 2013-04-02 Richard Biener <rguenther@suse.de>
32812 PR tree-optimization/56778
32813 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32814 Runtime alias tests are not supported for gather loads.
32815 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32816 stmts referenced from SSA operands before updating SSA form.
32818 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32819 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32821 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32822 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32823 * config/arm/cortex-a53.md: New file.
32824 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32825 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32826 * config/arm/arm.c (arm_issue_rate): Likewise.
32827 * config/arm/arm-tune.md: Regenerate
32828 * config/arm/arm-tables.opt: Regenerate.
32829 * config/arm/arm-cores.def: Add cortex-a53.
32831 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32833 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32836 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32838 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32839 scalar load/store operations using B/H registers.
32840 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32842 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32844 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32846 * config/aarch64/aarch64.c
32847 (aarch64_simd_scalar_immediate_valid_for_move): New.
32848 * config/aarch64/aarch64-protos.h
32849 (aarch64_simd_scalar_immediate_valid_for_move): New.
32850 * config/aarch64/constraints.md (Dh, Dq): New.
32851 * config/aarch64/iterators.md (hq): New.
32853 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32855 * reorg.c (get_branch_condition): Deal with conditional returns.
32856 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32858 2013-04-01 Wei Mi <wmi@google.com>
32860 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32861 Truncate operand 2 using %b asm operand modifier.
32862 (*<shift_insn><mode>3_mask): Ditto.
32863 (*<rotate_insn><mode>3_mask): Ditto.
32865 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32867 PR middle-end/56798
32868 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32870 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32872 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32874 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32876 2013-03-30 Lawrence Crowl <crowl@google.com>
32878 * dse.c (clear_alias_sets): Remove never set.
32879 (disqualified_clear_alias_sets): Remove never set.
32880 (clear_alias_mode_pool): Remove never set.
32881 (dse_step0): Remove condition that is never true.
32882 (canon_address): Remove condition that is never true.
32883 (dse_step7): Remove condition that is never true.
32884 (rest_of_handle_dse): Remove condition that is never true.
32885 (rest_of_handle_dse::did_global): Remove never read from above.
32886 (dse_step2_spill): Remove never called from above.
32887 (dse_step5_spill): Remove never called from above.
32889 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32891 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32892 JUMP_TABLE_DATA changes.
32893 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32894 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32895 (Insns) <jump_table_data>: New entry.
32896 * doc/tm.texi: Regenerate.
32898 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32900 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32901 for table jump at the end of a basic block using tablejump_p.
32902 * targhooks.c (default_invalid_within_doloop): Likewise.
32903 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32904 target hook implementation that is identical to the default hook.
32905 (rs6000_invalid_within_doloop): Remove.
32907 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32908 unused variable from tablejump_p call.
32910 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32911 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32912 (INSN_DELETED_P): Likewise.
32913 (emit_jump_table_data): New prototype.
32914 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32915 after 4th as unused.
32916 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32917 * sched-vis.c (print_insn): Likewise.
32918 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32919 insn for compatibility with back ends that use next_active_insn to
32920 identify jump table data.
32921 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32922 (remove_insn): Likewise.
32923 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32925 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32926 (emit_jump_table_data): New function.
32928 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32929 basic block, a JUMP_TABLE_DATA never is.
32930 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32931 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32932 off from code handling real insns.
32933 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32934 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32935 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32936 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32937 is not a NONDEBUG_INSN_P.
32938 * ira-costs.c (scan_one_insn): Likewise.
32939 * jump.c (mark_all_labels): Likewise.
32940 (mark_jump_label_1): Likewise.
32941 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32942 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32944 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32945 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32946 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32947 JUMP_TABLE_DATA_P insns.
32948 (calculate_elim_costs_all_insns): Likewise.
32949 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32950 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32951 (delete_output_reload): Code style fixups.
32952 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32953 insn flags on this non-insn.
32954 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32955 as scheduling barriers, for pre-change compatibility.
32956 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32957 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32959 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32960 redundant JUMP_TABLE_DATA_P test.
32961 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32962 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32963 (frv_for_each_packet): Likewise.
32964 * config/i386/i386.c (min_insn_size): Likewise.
32965 (ix86_avoid_jump_mispredicts): Likewise.
32966 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32967 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32968 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32969 (mips16_insn_length): Robustify.
32970 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32971 (mips16_split_long_branches): Likewise.
32972 * config/pa/pa.c (pa_combine_instructions): Likewise.
32973 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32974 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32975 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32976 as contributing to pool range lengths.
32977 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32978 Remove redundant JUMP_TABLE_DATA_P test.
32979 (sh_loop_align): Likewise.
32980 (split_branches): Likewise.
32981 (sh_insn_length_adjustment): Likewise.
32982 * config/spu/spu.c (get_branch_target): Likewise.
32984 2013-03-29 Jan Hubicka <jh@suse.cz>
32986 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32987 gcov streaming; stream hot bb threshold to ltrans.
32988 * predict.c (get_hot_bb_threshold): Break out from ....
32989 (maybe_hot_count_p): ... here.
32990 (set_hot_bb_threshold): New function.
32991 * lto-section-in.c (lto_section_name): Add profile.
32992 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32993 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32994 and data-streamer.h
32995 (histogram_entry): New structure.
32996 (histogram, histogram_pool): New global vars.
32997 (histogram_hash): New structure.
32998 (histogram_hash::hash): New method.
32999 (histogram_hash::equal): Likewise.
33000 (account_time_size): New function.
33001 (cmp_counts): New function.
33002 (dump_histogram): New function.
33003 (ipa_profile_generate_summary): New function.
33004 (ipa_profile_write_summary): New function.
33005 (ipa_profile_read_summary): New function.
33006 (ipa_profile): Decide on threshold.
33007 (pass_ipa_profile): Add ipa_profile_write_summary and
33008 ipa_profile_read_summary.
33009 * Makefile.in (ipa.o): Update dependencies.
33010 * lto-streamer.h (LTO_section_ipa_profile): New section.
33012 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33014 * tree.h (VAR_P): New.
33016 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33019 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33021 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33023 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33024 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33025 (control_flow_insn_p): Likewise.
33026 * cfgrtl.c (duplicate_insn_chain): Likewise.
33027 * final.c (get_attr_length_1): Likewise.
33028 (shorten_branches): Likewise.
33029 (final_scan_insn): Likewise.
33030 * function.c (instantiate_virtual_regs): Likewise.
33031 * gcse.c (insert_insn_end_basic_block): Likewise.
33032 * ira-costs.c (scan_one_insn): Likewise.
33033 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33034 * lra.c (check_rtl): Likewise.
33035 * reload1.c (elimination_costs_in_insn): Likewise.
33036 * reorg.c (follow_jumps): Likewise.
33038 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33039 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33040 (thumb_far_jump_used_p): Likewise.
33041 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33042 (workaround_speculation): Likewise.
33043 (add_sched_insns_for_speculation): Likewise.
33044 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33045 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33046 (frv_for_each_packet): Likewise.
33047 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33048 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33049 (final_emit_insn_group_barriers): Likewise.
33050 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33051 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33052 (mips16_insn_length): Likewise.
33053 * config/pa/pa.c (pa_reorg): Likewise.
33054 (pa_combine_instructions): Likewise.
33055 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33056 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33057 (sh_reorg): Likewise.
33058 (split_branches): Likewise.
33059 * config/spu/spu.c (get_branch_target): Likewise.
33061 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33064 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33066 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33067 Fix declaration name.
33069 2013-03-28 Lawrence Crowl <crowl@google.com>
33071 * graphds.h (struct graph.indicies): Remove unused.
33072 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33073 (SCOP_ORIGINAL_PDDRS): Remove unused.
33074 * sese.h (extern insert_loop_close_phis): Removed unused.
33075 (extern insert_guard_phis): Removed unused.
33076 (extern ivtype_map_elt_info): Removed unused.
33077 (new_ivtype_map_elt): Removed unused.
33078 * sese.c (ivtype_map_elt_info): Removed unused.
33080 2013-03-28 Lawrence Crowl <crowl@google.com>
33082 * Makefile.in: Add several missing include dependences.
33084 (test-dump.o): New. This object is not added to any executable,
33085 but is present for ad-hoc testing.
33087 (debug (const bitmap_head_def &)): New.
33088 (debug (const bitmap_head_def *)): New.
33090 (extern debug (const bitmap_head_def &)): New.
33091 (extern debug (const bitmap_head_def *)): New.
33093 (debug (edge_def &)): New.
33094 (debug (edge_def *)): New.
33096 (debug (basic_block_def &)): New.
33097 (debug (basic_block_def *)): New.
33099 (dump_node (const_tree, int, FILE *)): Correct source file.
33101 (debug (die_struct &)): New.
33102 (debug (die_struct *)): New.
33104 (extern debug (die_struct &)): New.
33105 (extern debug (die_struct *)): New.
33106 * gimple-pretty-print.c
33107 (debug (gimple_statement_d &)): New.
33108 (debug (gimple_statement_d *)): New.
33109 * gimple-pretty-print.h
33110 (extern debug (gimple_statement_d &)): New.
33111 (extern debug (gimple_statement_d *)): New.
33113 (debug (ira_allocno_copy &)): New.
33114 (debug (ira_allocno_copy *)): New.
33115 (debug (ira_allocno &)): New.
33116 (debug (ira_allocno *)): New.
33118 (extern debug (ira_allocno_copy &)): New.
33119 (extern debug (ira_allocno_copy *)): New.
33120 (extern debug (ira_allocno &)): New.
33121 (extern debug (ira_allocno *)): New.
33123 (debug (live_range &)): New.
33124 (debug (live_range *)): New.
33126 (debug (lra_live_range &)): New.
33127 (debug (lra_live_range *)): New.
33129 (debug (lra_live_range &)): New.
33130 (debug (lra_live_range *)): New.
33132 (debug (omega_pb_d &)): New.
33133 (debug (omega_pb_d *)): New.
33135 (extern debug (omega_pb_d &)): New.
33136 (extern debug (omega_pb_d *)): New.
33138 (debug (const rtx_def &)): New.
33139 (debug (const rtx_def *)): New.
33141 (debug_tree (tree): Move within file.
33142 (debug_raw (const tree_node &)): New.
33143 (debug_raw (const tree_node *)): New.
33144 (dump_tree_via_hooks (const tree_node *, int)): New.
33145 (debug (const tree_node &)): New.
33146 (debug (const tree_node *)): New.
33147 (debug_verbose (const tree_node &)): New.
33148 (debug_verbose (const tree_node *)): New.
33149 (debug_head (const tree_node &)): New.
33150 (debug_head (const tree_node *)): New.
33151 (debug_body (const tree_node &)): New.
33152 (debug_body (const tree_node *)): New.
33153 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33154 (debug (vec<tree, va_gc> &)): New.
33155 (debug (vec<tree, va_gc> *)): New.
33157 (extern debug (const rtx_def &)): New.
33158 (extern debug (const rtx_def *)): New.
33160 (debug_raw (simple_bitmap_def &)): New.
33161 (debug_raw (simple_bitmap_def *)): New.
33162 (debug (simple_bitmap_def &)): New.
33163 (debug (simple_bitmap_def *)): New.
33165 (extern debug (simple_bitmap_def &)): New.
33166 (extern debug (simple_bitmap_def *)): New.
33167 (extern debug_raw (simple_bitmap_def &)): New.
33168 (extern debug_raw (simple_bitmap_def *)): New.
33170 (debug (vinsn_def &)): New.
33171 (debug (vinsn_def *)): New.
33172 (debug_verbose (vinsn_def &)): New.
33173 (debug_verbose (vinsn_def *)): New.
33174 (debug (expr_def &)): New.
33175 (debug (expr_def *)): New.
33176 (debug_verbose (expr_def &)): New.
33177 (debug_verbose (expr_def *)): New.
33178 (debug (vec<rtx> &)): New.
33179 (debug (vec<rtx> *)): New.
33181 (extern debug (vinsn_def &)): New.
33182 (extern debug (vinsn_def *)): New.
33183 (extern debug_verbose (vinsn_def &)): New.
33184 (extern debug_verbose (vinsn_def *)): New.
33185 (extern debug (expr_def &)): New.
33186 (extern debug (expr_def *)): New.
33187 (extern debug_verbose (expr_def &)): New.
33188 (extern debug_verbose (expr_def *)): New.
33189 (extern debug (vec<rtx> &)): New.
33190 (extern debug (vec<rtx> *)): New.
33192 (_list_iter_cond_expr): Make inline instead of static.
33194 (debug (sreal &)): New.
33195 (debug (sreal *)): New.
33197 (extern debug (sreal &)): New.
33198 (extern debug (sreal *)): New.
33200 (extern debug_raw (const tree_node &)): New.
33201 (extern debug_raw (const tree_node *)): New.
33202 (extern debug (const tree_node &)): New.
33203 (extern debug (const tree_node *)): New.
33204 (extern debug_verbose (const tree_node &)): New.
33205 (extern debug_verbose (const tree_node *)): New.
33206 (extern debug_head (const tree_node &)): New.
33207 (extern debug_head (const tree_node *)): New.
33208 (extern debug_body (const tree_node &)): New.
33209 (extern debug_body (const tree_node *)): New.
33210 (extern debug (vec<tree, va_gc> &)): New.
33211 (extern debug (vec<tree, va_gc> *)): New.
33213 (debug (struct loop &)): New.
33214 (debug (struct loop *)): New.
33215 (debug_verbose (struct loop &)): New.
33216 (debug_verbose (struct loop *)): New.
33217 * tree-dump.c: Add header dependence.
33219 (extern debug (struct loop &)): New.
33220 (extern debug (struct loop *)): New.
33221 (extern debug_verbose (struct loop &)): New.
33222 (extern debug_verbose (struct loop *)): New.
33224 (debug (data_reference &)): New.
33225 (debug (data_reference *)): New.
33226 (debug (vec<data_reference_p> &)): New.
33227 (debug (vec<data_reference_p> *)): New.
33228 (debug (vec<ddr_p> &)): New.
33229 (debug (vec<ddr_p> *)): New.
33231 (extern debug (data_reference &)): New.
33232 (extern debug (data_reference *)): New.
33233 (extern debug (vec<data_reference_p> &)): New.
33234 (extern debug (vec<data_reference_p> *)): New.
33235 (extern debug (vec<ddr_p> &)): New.
33236 (extern debug (vec<ddr_p> *)): New.
33238 (debug (pt_solution &)): New.
33239 (debug (pt_solution *)): New.
33241 (extern debug (pt_solution &)): New.
33242 (extern debug (pt_solution *)): New.
33244 (debug (_var_map &)): New.
33245 (debug (_var_map *)): New.
33246 (debug (tree_live_info_d &)): New.
33247 (debug (tree_live_info_d *)): New.
33249 (extern debug (_var_map &)): New.
33250 (extern debug (_var_map *)): New.
33251 (extern debug (tree_live_info_d &)): New.
33252 (extern debug (tree_live_info_d *)): New.
33254 2013-03-28 Jan Hubicka <jh@suse.cz>
33256 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33258 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33260 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33261 record only when desired or required.
33263 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33265 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33266 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33268 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33270 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33271 (*andsi3_compare0_uxtw): New pattern.
33272 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33273 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33275 2013-03-28 Jan Hubicka <jh@suse.cz>
33277 * data-streamer-in.c (streamer_read_gcov_count): New function.
33278 * gimple-streamer-out.c: Include value-prof.h.
33279 (output_gimple_stmt): Output histogram.
33280 (output_bb): Use streamer_write_gcov_count.
33281 * value-prof.c: Include data-streamer.h
33282 (dump_histogram_value): Add HIST_TYPE_MAX.
33283 (stream_out_histogram_value): New function.
33284 (stream_in_histogram_value): New function.
33285 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33286 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33287 * data-streamer-out.c (streamer_write_gcov_count): New function.
33288 (streamer_write_gcov_count_stream): New function.
33289 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33290 (lto_output_node): Likewise.
33291 (input_node, input_edge): Likewise.
33292 * lto-streamer-out.c (output_cfg): Update streaming.
33293 * lto-streamer-in.c (input_cfg): Likewise.
33294 * data-streamer.h (streamer_write_gcov_count,
33295 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33296 * gimple-streamer-in.c: Include value-prof.h
33297 (input_gimple_stmt): Input histograms.
33298 (input_bb): Update profile streaming.
33300 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33302 * genmodes.c (emit_max_int): New function.
33303 (emit_insn_modes_h): Added call to emit_max_function.
33304 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33306 * machmode.def: Fixed comment.
33308 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33310 * combine.c (try_combine): Removed useless assert.
33311 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33313 2013-03-28 Marek Polacek <polacek@redhat.com>
33314 Richard Biener <rguenther@suse.de>
33316 PR tree-optimization/56695
33317 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33318 build signed result of a vector comparison.
33319 * tree-cfg.c (verify_gimple_comparison): Check that a result
33320 of a vector comparison has signed type.
33322 2013-03-28 Richard Biener <rguenther@suse.de>
33324 PR tree-optimization/37021
33325 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33326 do not restrict gaps between groups.
33327 * tree-vect-stmts.c (vectorizable_load): Properly account for
33328 a gap between groups.
33330 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33332 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33333 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33336 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33338 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33339 * doc/extend.texi (Named Address Spaces): Ditto.
33340 (Variable Attributes): Ditto.
33342 2013-03-27 Kai Tietz <ktietz@redhat.com>
33344 * config.build: Add support for cygwin x64 target.
33345 * config.gcc: Likewise.
33346 * config.host: Likewise.
33347 * configure.ac: Likewise
33348 * configure: Regenerated.
33350 2013-03-27 Kai Tietz <ktietz@redhat.com>
33352 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33353 * config/i386/t-cygwin-w64: New file.
33354 * config/i386/cygwin-w64.h: New file.
33355 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33356 and add support for x64-cygwin target.
33357 (CPP_SPEC): Likewise.
33358 (CXX_WRAP_SPEC_LIST): Undefine before define.
33359 (LIBGCJ_SONAME): Use 15 as version.
33361 2013-03-27 Richard Biener <rguenther@suse.de>
33363 PR tree-optimization/56716
33364 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33365 dumping for ref nodes.
33367 2013-03-27 Martin Jambor <mjambor@suse.cz>
33369 PR tree-optimization/55334
33370 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33371 restricted pointers to arrays.
33373 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33375 * Makefile.in (.SUFFIXES): Add .cc.
33376 (.c.o): Apply same recipe for implicit rule .cc.o.
33378 2013-03-27 Richard Biener <rguenther@suse.de>
33380 PR tree-optimization/37021
33381 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33382 REALPART/IMAGPART_EXPRs around the supported refs.
33383 * tree-ssa-structalias.c (find_func_aliases): Assume that
33384 floating-point values are not used to transfer pointers.
33386 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33388 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33389 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33390 * doc/tm.texi: Regenerate.
33391 * targhooks.h (default_has_ifunc_p): New.
33392 * targhooks.c (default_has_ifunc_p): Ditto.
33393 * config/linux-protos.h: New file.
33394 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33395 hook for linux which disables support of indirect functions in android.
33396 * config/linux-android.c: New file.
33397 * config/t-linux-android.c: Ditto.
33398 * config.gcc: Added new object file linux-android.o.
33399 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33400 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33401 * varasm.c (do_assemble_alias): Likewise.
33402 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33403 doesn't support indirect functions.
33404 * configure: Regenerate.
33406 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33409 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33410 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33413 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33415 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33417 2013-03-27 Terry Guo <terry.guo@arm.com>
33419 * config/arm/arm-cores.def: Added core cortex-r7.
33420 * config/arm/arm-tune.md: Regenerated.
33421 * config/arm/arm-tables.opt: Regenerated.
33422 * doc/invoke.texi: Added entry for core cortex-r7.
33424 2013-03-27 Walter Lee <walt@tilera.com>
33426 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33427 double-decrement of next_scratch_regno.
33429 2013-03-27 Walter Lee <walt@tilera.com>
33431 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33433 (insn_v1mulus): Ditto.
33434 (insn_v2muls): Ditto.
33436 2013-03-27 Walter Lee <walt@tilera.com>
33438 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33439 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33441 2013-03-27 Walter Lee <walt@tilera.com>
33443 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33444 (*sibcall_value): Ditto.
33446 2013-03-27 Walter Lee <walt@tilera.com>
33448 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33449 (insn_mnz_v8qi): ... this ...
33450 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33452 (insn_v<n>mnz): Replaced by ...
33453 (insn_v1mnz): ... this ...
33454 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33456 (insn_mz_<mode>): Replaced by ...
33457 (insn_mz_v8qi): ... this ...
33458 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33460 (insn_v<n>mz): Replaced by ...
33461 (insn_v1mz): ... this ...
33462 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33465 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33467 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33469 2013-03-26 Roland McGrath <mcgrathr@google.com>
33471 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33472 than fprintf with a non-constant, non-format string.
33474 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33476 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33477 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33478 operand 0 predicate.
33479 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33480 attribute. Use general_x64nomem_operand as operand 1 predicate.
33481 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33482 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33483 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33484 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33485 (mov<mode>_insv_1): Remove expander. Merge insn with
33486 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33487 Use general_x64nomem_operand as operand 1 predicate.
33488 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33489 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33490 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33491 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33492 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33493 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33494 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33495 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33496 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33497 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33498 (general_x64nomem_operand): Ditto.
33500 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33502 * config/rtems.opt: Add -pthread option.
33504 2013-03-26 Richard Biener <rguenther@suse.de>
33506 * alias.c (find_base_term): Avoid redundant and not used recursion.
33507 (base_alias_check): Get the initial base term from the caller.
33508 (true_dependence_1): Compute and pass base terms to base_alias_check.
33509 (write_dependence_p): Likewise.
33510 (may_alias_p): Likewise.
33512 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33514 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33515 PC-relative load in SI modes and above only.
33517 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33519 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33520 * config/arm/iwmmxt.md (WCGR0): Update.
33521 (WCGR1, WCGR2, WCGR3): Likewise.
33523 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33525 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33526 Use x64 and nox64 isa attributes.
33528 2013-03-26 Richard Biener <rguenther@suse.de>
33530 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33531 alignment computations and rely on get_object_alignment_1
33532 for the !TYPE_P case.
33533 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33535 2013-03-26 Walter Lee <walt@tilera.com>
33537 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33538 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33540 2013-03-25 Jeff Law <law@redhat.com>
33542 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33543 check for INTEGRAL_TYPE_P that was missing due to checking in
33544 wrong version of prior patch.
33546 2013-03-25 Walter Lee <walt@tilera.com>
33548 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33549 TILEGX_INSN_SHUFFLEBYTES1.
33550 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33552 (tilegx_builtins): Ditto.
33553 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33555 2013-03-25 Walter Lee <walt@tilera.com>
33557 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33558 (floatunssisf2): New pattern.
33559 (floatsidf2): New pattern.
33560 (floatunssidf2): New pattern.
33562 2013-03-25 Walter Lee <walt@tilera.com>
33564 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33565 tests for constraint J, K, N, P.
33567 2013-03-25 Walter Lee <walt@tilera.com>
33569 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33570 Use indirect/pcrel encoding.
33571 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33574 2013-03-25 Steve Ellcey <sellcey@mips.com>
33576 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33577 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33578 * config/mips/mips.c (mips_option_override): Set IMADD default.
33579 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33580 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33581 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33582 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33583 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33585 2013-03-25 Jeff Law <law@redhat.com>
33587 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33588 slightly to avoid creating and folding useless trees. Simplify
33589 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33591 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33593 * config/i386/i386.md (*zero_extendsidi2): Merge with
33594 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33595 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33596 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33597 targets. Clarify comment.
33599 2013-03-25 Martin Jambor <mjambor@suse.cz>
33601 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33602 pass-through jump functions differently.
33603 (ipa_read_jump_function): Likewise. Also use setter functions to set
33606 2013-03-25 Martin Jambor <mjambor@suse.cz>
33608 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33609 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33611 (ipa_get_indirect_edge_target): New function.
33612 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33613 ipa_get_indirect_edge_target. Update all callers.
33614 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33615 ipa_get_indirect_edge_target_1 instead of calling
33616 ipa_get_indirect_edge_target.
33617 (create_specialized_node): Pass aggvlas to
33618 ipcp_discover_new_direct_edges.
33620 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33622 * config/arm/arm.md (f_sels, f_seld): New types.
33623 (*cmov<mode>): New pattern.
33624 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33627 2013-03-25 Kai Tietz <ktietz@redhat.com>
33629 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33630 POSIX-printf for mingw-hosted builds.
33632 2013-03-25 Richard Biener <rguenther@suse.de>
33634 PR middle-end/56694
33635 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33636 must-not-throw stmt location.
33638 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33640 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33641 Emit load-acquire versions when acq is true.
33642 (arm_emit_store_exclusive): Add rel parameter.
33643 Emit store-release versions when rel is true.
33644 (arm_split_compare_and_swap): Use acquire-release instructions
33646 of barriers when appropriate.
33647 (arm_split_atomic_op): Likewise.
33648 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33649 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33650 (VUNSPEC_SLX): Likewise.
33651 (VUNSPEC_LDA): Likewise.
33652 (VUNSPEC_STL): Likewise.
33653 * config/arm/sync.md (atomic_load<mode>): New pattern.
33654 (atomic_store<mode>): Likewise.
33655 (arm_load_acquire_exclusive<mode>): Likewise.
33656 (arm_load_acquire_exclusivesi): Likewise.
33657 (arm_load_acquire_exclusivedi): Likewise.
33658 (arm_store_release_exclusive<mode>): Likewise.
33660 2013-03-25 Catherine Moore <clm@codesourcery.com>
33662 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33663 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33664 * config/mip/predicates.md (lwsp_swsp_operand,
33665 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33666 sb16_operand, db4_operand, db7_operand, ib3_operand,
33667 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33668 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33669 andi16_operand): New predicates.
33670 * config/mips/mips.md (compression): New attribute.
33671 (enabled): New attribute.
33672 (length): Consider compression in computing length.
33673 (shift_compression): New code attribute.
33674 (*add<mode>3): New operands. Record compression.
33675 (sub<mode>3): Likewise.
33676 (one_cmpl<mode>2): Likewise.
33677 (*and<mode>3): Likewise.
33678 (*ior<mode>3): Likewise.
33679 (unnamed pattern for xor): Likewise.
33680 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33681 (*<optab><mode>3): Likewise.
33682 (*mov<mode>_internal: Likewise.
33683 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33684 (mips_unsigned_immediate_p): New.
33685 (umips_lwsp_swsp_address_p): New.
33686 (m16_based_address_p): New.
33687 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33688 (mips_unsigned_immediate_p): New prototype.
33689 (lwsp_swsp_address_p): New prototype.
33690 (m16_based_address_p): New prototype.
33691 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33692 (mips_signed_immediate_p): New function.
33693 (m16_based_address_p): New function.
33694 (lwsp_swsp_address_p): New function.
33695 (mips_print_operand_punctuation): Recognize short delay slot insns
33696 for microMIPS.add<mode>3"
33698 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33701 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33702 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33704 2013-03-25 Richard Biener <rguenther@suse.de>
33706 PR tree-optimization/56689
33707 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33710 2013-03-25 Richard Biener <rguenther@suse.de>
33712 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33714 (memory_references): Likewise.
33715 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33716 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33717 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33718 (gather_mem_refs_in_loops): Fold into ...
33719 (analyze_memory_references): ... this. Move initialization
33720 to tree_ssa_lim_initialize.
33721 (fill_always_executed_in): Rename to ...
33722 (fill_always_executed_in_1): ... this.
33723 (fill_always_executed_in): Move contains_call computation to
33724 this new function from ...
33725 (tree_ssa_lim_initialize): ... here.
33726 (tree_ssa_lim): Call fill_always_executed_in.
33728 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33730 * postreload.c (reload_combine): Fix code detecting returns.
33732 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33734 * function.c (emit_use_return_register_into_block): On cc0 targets,
33735 do not emit the sequence between cc0 setter and user.
33737 2013-03-25 Kai Tietz <ktietz@redhat.com>
33739 * config/i386/predicates.md (local_symbolic_operand): Interpret
33740 dll-imported symbols as none-local.
33742 2013-03-25 Richard Biener <rguenther@suse.de>
33744 * tree-ssa-loop-im.c (struct depend): Remove.
33745 (struct lim_aux_data): Make depends a vec of gimples.
33746 (free_lim_aux_data): Adjust.
33747 (add_dependency): Likewise.
33748 (set_level): Likewise.
33750 2013-03-25 Richard Biener <rguenther@suse.de>
33752 PR middle-end/56434
33753 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33754 the pointer returned by calls with ECF_MALLOC set.
33756 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33758 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33760 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33762 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33763 using MMXMODE mode iterator.
33764 (*move<mode>_internal): Merge with *movv2sf_internal and
33765 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33767 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33769 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33770 (record_last_mem_set_info): Likewise.
33772 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33773 of XNEWVEC followed by memset.
33774 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33776 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33778 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33779 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33780 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33781 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33782 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33783 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33784 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33785 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33786 BARRIER_P instead of GET_CODE.
33788 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33790 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33791 inaccuracy in the probing code.
33793 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33794 (ctrapdi4): Likewise.
33796 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33798 * calls.c (expand_call): Add missing guard to code handling return
33799 of non-BLKmode structures in MSB.
33800 * function.c (expand_function_end): Likewise.
33802 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33804 * combine.c (try_combine): Adjust comment. Do not add the set of
33805 insn #0 if the destination indirectly is set or dies in insn #2.
33806 Tidy up code to distribute a new note.
33808 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33810 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33811 also for alternatives 16 and 17.
33813 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33815 * config/i386/sse.md (*mov<mode>_internal): Merge with
33816 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33817 Emit insn template depending on type attribute. Use
33818 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33819 movd instead of movq mnemonic for interunit moves. Rewrite mode
33820 attribute calculation. Remove unit attribute calculation.
33821 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33822 Set prefix_data16 attribute for DImode ssemov types.
33823 Use Ym instead of y for SSE-MMX conversion alternatives.
33824 Reorder operand constraints.
33826 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33828 * df.h (df_insn_delete): Adjust prototype.
33829 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33830 and let it decide whether mark the basic block dirty.
33831 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33832 * df-scan.c (df_insn_info_delete): New helper function, split
33833 off from df_insn_delete.
33834 (df_scan_free_bb_info): Use it.
33835 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33837 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33838 that the insn is actually an insn and it has a non-NULL basic block.
33839 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33841 2013-03-22 Richard Biener <rguenther@suse.de>
33843 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33845 (mem_ref_alloc): Do not allocate them.
33846 (refs_independent_p): Do not query or maintain a cache.
33848 2013-03-22 Richard Biener <rguenther@suse.de>
33850 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33851 (gather_mem_refs_in_loops): Do not compute it.
33852 (analyze_memory_references): Do not allocate it.
33853 (tree_ssa_lim_finalize): Do not free it.
33854 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33856 2013-03-22 Richard Biener <rguenther@suse.de>
33858 * is-a.h (as_a): Use gcc_checking_assert.
33860 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33862 * config/aarch64/aarch64.c (aarch64_print_operand): New
33863 format specifier for printing a constant in hex.
33864 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33865 format specifier for printing second operand.
33867 2013-03-22 Richard Biener <rguenther@suse.de>
33869 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33871 (gather_mem_refs_in_loops): Perform store accumulation here.
33872 (create_vop_ref_mapping_loop): Remove.
33873 (create_vop_ref_mapping): Likewise.
33874 (analyze_memory_references): Initialize refs_stored_in_loop.
33875 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33876 (record_indep_loop): Remove.
33877 (record_dep_loop): New function.
33878 (ref_indep_loop_p_1): Adjust to only walk over references
33879 in the loop, not its subloops.
33880 (ref_indep_loop_p): Rename to ...
33881 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33882 maintaining a more fine-grained cache.
33883 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33884 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33886 2013-03-22 Richard Biener <rguenther@suse.de>
33888 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33889 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33890 aggregate mem_ref_loc.
33891 (free_mem_ref_locs): Inline into ...
33892 (memref_free): ... this and adjust.
33893 (mem_ref_alloc): Adjust.
33894 (mem_ref_locs_alloc): Remove.
33895 (record_mem_ref_loc): Adjust.
33896 (get_all_locs_in_loop): Rewrite into ...
33897 (for_all_locs_in_loop): ... this iterator.
33898 (rewrite_mem_ref_loc): New functor.
33899 (rewrite_mem_refs): Use for_all_locs_in_loop.
33900 (sm_set_flag_if_changed): New functor.
33901 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33902 (ref_always_accessed): New functor.
33903 (ref_always_accessed_p): Use for_all_locs_in_loop.
33905 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33907 * tree-pass.h (PROP_gimple_lvec): New.
33908 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33909 (init_optimization_passes): Move pass_lower_vector.
33910 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33912 (pass_lower_vector): Provide PROP_gimple_lvec.
33913 (pass_lower_vector_ssa): Likewise.
33914 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33916 2013-03-21 Mark Wielaard <mjw@redhat.com>
33918 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33920 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33922 * config/i386/i386.md (*movdi_internal): Disparage slightly
33923 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33924 conversion alternatives.
33926 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33928 PR middle-end/48087
33929 * diagnostic.def (DK_WERROR): New kind.
33930 * diagnostic.h (werrorcount): Define.
33931 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33932 promoted to DK_ERROR, increment DK_WERROR counter instead of
33934 * toplev.c (toplev_main): Call print_ignored_options even if
33935 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33936 even if just werrorcount is non-zero.
33939 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33941 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33942 (string_cst_pool_decl): New function.
33943 (optimize_one_addr_into_implicit_ptr): New function.
33944 (resolve_addr_in_expr): Optimize DWARF location expression
33945 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33946 which doesn't live in memory, but has DW_AT_location or
33947 DW_AT_const_value, or refers to a string literal, into
33948 DW_OP_GNU_implicit_pointer.
33949 (optimize_location_into_implicit_ptr): New function.
33950 (resolve_addr): If removing DW_AT_location of a variable because
33951 it was DW_OP_addr of address of the variable, but the variable doesn't
33952 live in memory, try to emit const value attribute for the initializer.
33954 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33956 * tree.h (VECTOR_TYPE_P): New macro.
33957 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33958 TYPE_MODE): Use it.
33959 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33960 VEC_COND_EXPR cannot be lvalues.
33961 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33963 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33965 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33966 Restrict the transformation to equal modes.
33968 2013-03-21 Richard Biener <rguenther@suse.de>
33970 PR tree-optimization/39326
33971 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33972 (MEM_ANALYZABLE): Adjust.
33973 (record_mem_ref_loc): Move bitmap ops ...
33974 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33975 unanalyzable refs, do not record locations for it.
33976 (analyze_memory_references): Allocate ref zero as shared
33978 (refs_independent_p): Do not test for unanalyzed mems here.
33979 (ref_indep_loop_p_1): Special-case disambiguation against
33980 the unanalyzed ref.
33981 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33983 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33985 * config/arm/arm-protos.h (tune_params): Add
33986 prefer_neon_for_64bits field.
33987 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33988 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33989 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33990 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33991 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33992 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33993 (arm_option_override): Handle -mneon-for-64bits new option.
33994 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33995 (prefer_neon_for_64bits): Declare new variable.
33996 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33997 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33998 (arch_enabled): Handle new arch types. Remove support for onlya8
34000 (one_cmpldi2): Use new arch names.
34001 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34002 * config/arm/arm.opt (mneon-for-64bits): Add option.
34003 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34004 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34005 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34007 * doc/invoke.texi (-mneon-for-64bits): Document.
34009 2013-03-21 Richard Biener <rguenther@suse.de>
34011 PR tree-optimization/39326
34012 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34013 (sort_bbs_in_loop_postorder_cmp): New function.
34014 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34016 2013-03-21 Richard Biener <rguenther@suse.de>
34018 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34019 (vect_insert_into_interleaving_chain): Likewise.
34020 (vect_drs_dependent_in_basic_block): Inline ...
34021 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34023 (vect_analyze_data_ref_dependence): ... here. Simplify.
34024 (vect_check_interleaving): Simplify.
34025 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34026 (vect_slp_analyze_data_ref_dependences): ... this new function.
34027 (dr_group_sort_cmp): New function.
34028 (vect_analyze_data_ref_accesses): Compute data-reference groups
34029 here instead of in vect_analyze_data_ref_dependence. Use
34030 a more efficient algorithm.
34031 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34032 vect_slp_analyze_data_ref_dependences. Call
34033 vect_analyze_data_ref_accesses earlier.
34034 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34035 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34036 (vect_slp_analyze_data_ref_dependences): New prototype.
34038 2013-03-21 Richard Biener <rguenther@suse.de>
34040 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34041 ref is stored in the loop.
34042 (find_refs_for_sm): Walk only over all stores.
34043 (store_motion_loop): Allocate from lim_bitmap_obstack.
34044 (store_motion): Likewise.
34046 2013-03-21 Richard Biener <rguenther@suse.de>
34048 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34049 Update virtual SSA form.
34051 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34053 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34054 * configure: Regenerate.
34055 * config.in: Regenerate.
34056 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34057 if !HAVE_LD_EH_FRAME_CIEV3.
34059 2013-03-21 Richard Biener <rguenther@suse.de>
34061 * tree-cfg.c (verify_expr_no_block): New function.
34062 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34063 nor DECL_VALUE_EXPR have locations with associated blocks.
34064 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34065 (clear_unused_block_pointer): Remove code dealing with
34066 blocks in DECL_DEBUG_EXPR locations.
34068 2013-03-21 Richard Biener <rguenther@suse.de>
34070 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34071 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34072 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34073 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34074 instead of DECL_DEBUG_EXPR_IS_FROM.
34075 * gimplify.c (gimplify_modify_expr): Likewise.
34076 * tree-cfg.c (verify_expr_location_1): Likewise.
34077 * tree-complex.c (create_one_component_var): Likewise.
34078 * tree-sra.c (create_access_replacement): Likewise.
34079 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34080 (clear_unused_block_pointer): Likewise.
34081 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34082 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34083 * var-tracking.c (var_debug_decl): Likewise.
34084 (track_expr_p): Likewise.
34085 * tree-inline.c (add_local_variables): Likewise. Set
34086 DECL_HAS_DEBUG_EXPR_P after copying it.
34087 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34088 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34090 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34093 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34094 * configure: Regenerate.
34095 * config.in: Regenerate.
34096 * config/i386/i386.md (*movdf_internal): Use
34097 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34098 movd instead of movq mnemonic for interunit moves.
34099 (*movdi_internal): Ditto.
34101 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34103 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34104 (abd<mode>_3): New pattern.
34105 (aba<mode>_3): New pattern.
34106 (fabd<mode>_3): New pattern.
34108 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34110 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34111 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34112 occurrence of REGISTER_PREFIX as its empty string.
34114 2013-03-20 Jeff Law <law@redhat.com>
34116 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34117 addititional equivalences for equality comparisons between an SSA_NAME
34118 and a constant where the SSA_NAME was set from a widening conversion.
34120 2013-03-20 Walter Lee <walt@tilera.com>
34122 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34124 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34126 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34127 depending on type attribute.
34128 (*movti_internal): Ditto.
34129 (*movtf_internal): Ditto.
34130 (*movxf_internal): Ditto.
34131 (*movdf_internal): Ditto.
34132 (*movsf_internal): Ditto.
34134 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34136 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34137 maybe_vex for sselog1 and ssemov types.
34138 (*movdi_internal): Reorder operand constraints.
34139 (*movsi_internal): Ditto. Set prefix attribute to
34140 maybe_vex for sselog1 and ssemov types.
34141 (*movtf_internal): Set prefix attribute to maybe_vex
34142 for sselog1 and ssemov types.
34143 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34144 DImode ssemov types. Reorder operand constraints.
34145 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34146 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34147 attribute for SImode ssemov types. Reorder operand constraints.
34149 2013-03-20 Martin Jambor <mjambor@suse.cz>
34151 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34152 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34154 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34156 * config/rs6000/predicates.md (indexed_address, update_address_mem
34157 update_indexed_address_mem): New predicates.
34158 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34159 attribute for load/store instructions.
34160 * config/rs6000/dfp.md (movsd_store): Likewise.
34161 (movsd_load): Likewise.
34162 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34163 (unnamed HI->DI extend define_insn): Likewise.
34164 (unnamed SI->DI extend define_insn): Likewise.
34165 (unnamed QI->SI extend define_insn): Likewise.
34166 (unnamed QI->HI extend define_insn): Likewise.
34167 (unnamed HI->SI extend define_insn): Likewise.
34168 (unnamed HI->SI extend define_insn): Likewise.
34169 (extendsfdf2_fpr): Likewise.
34170 (movsi_internal1): Likewise.
34171 (movsi_internal1_single): Likewise.
34172 (movhi_internal): Likewise.
34173 (movqi_internal): Likewise.
34174 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34175 attribute for load/store instructions.
34176 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34178 (mov<mode>_softfloat): Likewise.
34179 (mov<mode>_hardfloat32): Likewise.
34180 (mov<mode>_hardfloat64): Likewise.
34181 (mov<mode>_softfloat64): Likewise.
34182 (movdi_internal32): Likewise.
34183 (movdi_internal64): Likewise.
34184 (probe_stack_<mode>): Likewise.
34186 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34188 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34189 floating point, and decimal floating point to reload iterator.
34191 * config/rs6000/constraints.md (wl constraint): New constraints to
34192 return FLOAT_REGS if certain options are used to reduce the number
34193 of separate patterns that exist in the file.
34194 (wx constraint): Likewise.
34195 (wz constraint): Likewise.
34197 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34198 -mdebug=reg, print wg, wl, wx, and wz constraints.
34199 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34200 Initialize the reload functions for 64-bit binary/decimal floating
34202 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34203 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34204 create the buffer on the stack to overcome not having a 32-bit
34206 (rs6000_emit_move): Likewise.
34207 (rs6000_secondary_memory_needed_rtx): Likewise.
34208 (rs6000_alloc_sdmode_stack_slot): Likewise.
34209 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34210 via xxlxor, just like DFmode 0.0.
34212 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34213 define as 1 if we are running on a power7 or newer.
34214 (enum r6000_reg_class_enum): Add new constraints.
34216 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34217 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34218 with other moves by using conditional constraits (wg). Use LFIWZX
34219 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34220 (movsd splitter): Likewise.
34221 (movsd_hardfloat): Likewise.
34222 (movsd_softfloat): Likewise.
34224 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34225 binary and decimal floating point moves.
34226 (fmove_ok): New attributes to combine binary and decimal floating
34227 point moves, and to combine power6x (mfpgpr) moves along normal
34229 (real_value_to_target): Likewise.
34230 (f32_lr): Likewise.
34231 (f32_lm): Likewise.
34232 (f32_li): Likewise.
34233 (f32_sr): Likewise.
34234 (f32_sm): Likewise.
34235 (f32_si): Likewise.
34236 (movsf): Combine binary and decimal floating point moves. Combine
34237 power6x (mfpgpr) moves with other moves by using conditional
34238 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34239 (mov<mode> for SFmode/SDmode); Likewise.
34240 (SFmode/SDmode splitters): Likewise.
34241 (movsf_hardfloat): Likewise.
34242 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34243 (movsf_softfloat): Likewise.
34244 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34246 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34247 wx and wz constraints.
34249 * config/rs6000/constraints.md (wg constraint): New constraint to
34250 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34252 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34256 -mdebug=reg, print wg, wl, wx, and wz constraints.
34257 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34258 Initialize the reload functions for 64-bit binary/decimal floating
34260 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34261 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34262 create the buffer on the stack to overcome not having a 32-bit
34264 (rs6000_emit_move): Likewise.
34265 (rs6000_secondary_memory_needed_rtx): Likewise.
34266 (rs6000_alloc_sdmode_stack_slot): Likewise.
34267 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34268 via xxlxor, just like DFmode 0.0.
34270 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34271 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34272 with other moves by using conditional constraits (wg). Use LFIWZX
34273 and STFIWX for loading SDmode on power7.
34274 (movdd splitters): Likewise.
34275 (movdd_hardfloat32): Likewise.
34276 (movdd_softfloat32): Likewise.
34277 (movdd_hardfloat64_mfpgpr): Likewise.
34278 (movdd_hardfloat64): Likewise.
34279 (movdd_softfloat64): Likewise.
34281 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34282 64-bit binary and decimal floating point moves.
34283 (FMOVE64X): Likewise.
34284 (movdf): Combine 64-bit binary and decimal floating point moves.
34285 Combine power6x (mfpgpr) moves with other moves by using
34286 conditional constraits (wg).
34287 (mov<mode> for DFmode/DDmode): Likewise.
34288 (DFmode/DDmode splitters): Likewise.
34289 (movdf_hardfloat32): Likewise.
34290 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34291 (movdf_softfloat32): Likewise.
34292 (movdf_hardfloat64_mfpgpr): Likewise.
34293 (movdf_hardfloat64): Likewise.
34294 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34295 (movdf_softfloat64): Likewise.
34296 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34297 (reload_<mode>_load): Move to later in the file so they aren't in
34298 the middle of the floating point move insns.
34299 (reload_<mode>_store): Likewise.
34301 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34305 constraint if -mdebug=reg.
34306 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34307 Enable using dd reload support if needed.
34309 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34310 binary and decimal floating point moves in rs6000.md.
34311 (movtd_internal): Likewise.
34313 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34314 decimal floating point moves.
34316 (movtf_internal): Likewise.
34317 (mov<mode>_internal, TDmode/TFmode): Likewise.
34318 (movtf_softfloat): Likewise.
34319 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34321 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34322 movdi_internal64, using wg constraint for move direct operations.
34323 (movdi_internal64): Likewise.
34325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34326 MODES_TIEABLE_P for selected modes. Print the numerical value of
34327 the various virtual registers. Use GPR/FPR first/last values,
34328 instead of hard coding the register numbers. Print which modes
34329 have reload functions registered.
34330 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34331 settings before/after setting cpu, target and subtarget settings.
34332 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34333 and for secondary reload failures in rs6000_secondary_reload_inner.
34334 (rs6000_secondary_reload_fail): Likewise.
34335 (rs6000_secondary_reload_inner): Likewise.
34337 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34338 macros for first/last GPR and FPR registers.
34339 (LAST_GPR_REGNO): Likewise.
34340 (FIRST_FPR_REGNO): Likewise.
34341 (LAST_FPR_REGNO): Likewise.
34343 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34344 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34345 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34346 (vcond<mode><mode>): Likewise.
34347 (vcondu<mode><mode>): Likewise.
34348 (vector_gtu<mode>): Likewise.
34349 (vector_gte<mode>): Likewise.
34350 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34351 to prevent the compiler from converting DImode operations to TImode.
34352 (ior<mode>3): Likewise.
34353 (and<mode>3): Likewise.
34354 (one_cmpl<mode>2): Likewise.
34355 (nor<mode>3): Likewise.
34356 (andc<mode>3): Likewise.
34358 * config/rs6000/constraints.md (wt constraint): New constraint
34359 that returns VSX_REGS if TImode is allowed in VSX registers.
34361 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34362 constant under VSX.
34364 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34365 similar to TImode, but it is restricted to being in the GPRs.
34367 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34368 TImode to occupy a single VSX register.
34370 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34371 -mvsx-timode for power7/power8.
34372 (power7 cpu): Likewise.
34373 (power8 cpu): Likewise.
34375 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34376 sure that TFmode/TDmode take up two registers if they are ever
34377 allowed in the upper VSX registers.
34378 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34380 (rs6000_init_hard_regno_mode_ok): Likewise.
34381 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34382 constraint. Print if LRA is turned on.
34383 (rs6000_option_override_internal): Give an error if -mvsx-timode
34384 and VSX is not enabled.
34385 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34386 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34387 to reg+offset addressing. Use PTImode when checking offset
34388 addresses for validity.
34389 (reg_offset_addressing_ok_p): Likewise.
34390 (rs6000_legitimate_offset_address_p): Likewise.
34391 (rs6000_legitimize_address): Likewise.
34392 (rs6000_legitimize_reload_address): Likewise.
34393 (rs6000_legitimate_address_p): Likewise.
34394 (rs6000_eliminate_indexed_memrefs): Likewise.
34395 (rs6000_emit_move): Likewise.
34396 (rs6000_secondary_reload): Likewise.
34397 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34398 reloads to fpr registers to continue to use reg+offset addressing,
34399 but 64-bit reloads to altivec registers need reg+reg addressing.
34400 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34401 it. Treat LO_SUM like a PLUS operation.
34402 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34403 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34404 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34405 registers to share a register with a smaller sized type, since VSX
34406 puts scalars in the upper 64-bits.
34407 (print_operand): Add support for PTImode.
34408 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34409 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34410 registers, but don't have arithmetic support.
34411 (rs6000_memory_move_cost): Add test for VSX.
34412 (rs6000_opt_masks): Add -mvsx-timode.
34414 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34417 (VSr): Use wt constraint for TImode.
34418 (VSv): Drop TImode support.
34419 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34420 (vsx_movti_64bit): Likewise.
34421 (vsx_movti_32bit): Likewise.
34422 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34423 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34424 one '?' on the appropriate output constraint. Do not allow TImode
34425 logical operations on 32-bit systems.
34426 (vsx_ior<mode>3): Likewise.
34427 (vsx_xor<mode>3): Likewise.
34428 (vsx_one_cmpl<mode>2): Likewise.
34429 (vsx_nor<mode>3): Likewise.
34430 (vsx_andc<mode>3): Likewise.
34431 (vsx_concat_<mode>): Likewise.
34432 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34434 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34435 OPTION_MASK_VSX_TIMODE.
34436 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34437 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34439 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34440 (TI2 iterator): New iterator for TImode, PTImode.
34441 (wd mode attribute): Add values for vector types.
34442 (movti_string): Replace TI move operations with operations for TImode
34443 and PTImode. Add support for TImode being allowed in VSX registers.
34444 (mov<mode>_string, TImode/PTImode): Likewise.
34445 (movti_ppc64): Likewise.
34446 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34447 (TI mode splitters): Likewise.
34449 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34452 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34454 PR tree-optimization/56355
34455 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34456 Also handle integers with undefined overflow.
34458 2013-03-20 Catherine Moore <clm@codesourcery.com>
34459 Maciej W. Rozycki <macro@codesourcery.com>
34460 Tom de Vries <tom@codesourcery.com>
34461 Nathan Sidwell <nathan@codesourcery.com>
34462 Iain Sandoe <iain@codesourcery.com>
34463 Nathan Froyd <froydnj@codesourcery.com>
34464 Chao-ying Fu <fu@mips.com>
34466 * doc/extend.texi: (micromips, nomicromips, nocompression):
34467 Document new function attributes.
34468 * doc/invoke.texi (minterlink-compressed, mmicromips,
34469 m14k, m14ke, m14kec): Document new options.
34470 (minterlink-mips16): Update documentation.
34471 * doc/md.texi (ZC, ZD): Document new constraints.
34472 * configure.ac (gcc_cv_as_micromips): Check if linker
34473 supports the .set micromips directive.
34474 * configure: Regenerate.
34475 * config.in: Regenerate.
34476 * config/mips/mips-tables.opt: Regenerate.
34477 * config/mips/micromips.md: New file.
34478 * constraints.md (ZC, ZD): New constraints.
34479 * config/mips/predicates.md (movep_src_register): New predicate.
34480 (movep_src_operand): New predicate.
34481 (non_volatile_mem_operand): New predicate.
34482 * config/mips/mips.md (multimem): New type.
34483 (length): Differentiate between 17-bit and 18-bit branch offsets.
34484 (MOVEP1, MOVEP2): New mode iterator.
34485 (mov_<load>l): Use ZC constraint.
34486 (mov_<load>r): Likewise.
34487 (mov_<store>l): Likewise.
34488 (mov_<store>r): Likewise.
34489 (*branch_equality<mode>_inverted): Add microMIPS support.
34490 (*branch_equality<mode>): Likewise.
34491 (*jump_absolute): Likewise.
34492 (indirect_jump_<mode>): Likewise.
34493 (tablejump_<mode>): Likewise.
34494 (<optab>_internal): Likewise.
34495 (sibcall_internal): Likewise.
34496 (sibcall_value_internal): Likewise.
34497 (prefetch): Use constraint ZD.
34498 * config/mips/mips.opt (minterlink-compressed): New option.
34499 (minterlink-mips16): Now an alias for minterlink-compressed.
34500 (mmicromips): New option.
34501 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34502 (compare_and_swap_12): Likewise.
34503 (sync_add<mode>): Likewise.
34504 (sync_<optab>_12): Likewise.
34505 (sync_old_<optab>_12): Likewise.
34506 (sync_new_<optab>_12): Likewise.
34507 (sync_nand_12): Likewise.
34508 (sync_old_nand_12): Likewise.
34509 (sync_new_nand_12): Likewise.
34510 (sync_sub<mode>): Likewise.
34511 (sync_old_add<mode>): Likewise.
34512 (sync_old_sub<mode>): Likewise.
34513 (sync_new_add<mode>): Likewise.
34514 (sync_new_sub<mode>): Likewise.
34515 (sync_<optab><mode>): Likewise.
34516 (sync_old_<optab><mode>): Likewise.
34517 (sync_new_<optab><mode>): Likewise.
34518 (sync_nand<mode>): Likewise.
34519 (sync_old_nand<mode>): Likewise.
34520 (sync_new_nand<mode>): Likewise.
34521 (sync_lock_test_and_set<mode>): Likewise.
34522 (test_and_set_12): Likewise.
34523 (atomic_compare_and_swap<mode>): Likewise.
34524 (atomic_exchange<mode>_llsc): Likewise.
34525 (atomic_fetch_add<mode>_llsc): Likewise.
34526 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34527 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34528 (umips_save_restore_pattern_p): Likewise.
34529 (umips_load_store_pair_p): Likewise.
34530 (umips_output_load_store_pair): Likewise.
34531 (umips_movep_target_p): Likewise.
34532 (umips_12bit_offset_address_p): Likewise.
34533 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34534 (mips_base_mips16): Rename this...
34535 (mips_base_compression_flags): ...to this. Update all uses.
34536 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34537 (mips_mips16_decl_p): Delete.
34538 (mips_nomips16_decl_p): Delete.
34539 (mips_get_compress_on_flags): New function.
34540 (mips_get_compress_off_flags): New function.
34541 (mips_get_compress_mode): New function.
34542 (mips_get_compress_on_name): New function.
34543 (mips_get_compress_off_name): New function.
34544 (mips_insert_attributes): Support multiple compression types.
34545 (mips_merge_decl_attributes): Likewise.
34546 (umips_12bit_offset_address_p): New function.
34547 (mips_start_function_definition): Emit .set micromips directive.
34548 (mips_call_may_need_jalx_p): New function.
34549 (mips_function_ok_for_sibcall): Add microMIPS support.
34550 (mips_print_operand_punctuation): Support short delay slots and
34552 (umips_swm_mask, umips_swm_encoding): New.
34553 (umips_build_save_restore): New function.
34554 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34555 (was_mips16_p): Remove.
34556 (old_compression_mode): New.
34557 (mips_set_compression_mode): New function.
34558 (mips_set_current_function): Add microMIPS support.
34559 (mips_option_override): Likewise.
34560 (umips_save_restore_pattern_p): New function.
34561 (umips_output_save_restore): New function.
34562 (umips_load_store_pair_p_1): New function.
34563 (umips_load_store_pair_p): New function.
34564 (umips_output_load_store_pair_1): New function.
34565 (umips_output_load_store_pair): New function.
34566 (umips_movep_target_p) New function.
34567 (mips_prepare_pch_save): Add microMIPS support.
34568 * config/mips/mips.h (TARGET_COMPRESSION): New.
34569 (TARGET_CPU_CPP_BUILTINS): Update macro
34570 to use new compression flags and to support microMIPS.
34571 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34572 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34573 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34574 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34575 (ASM_SPEC): Support mmicromips and mno-micromips.
34576 (M16STORE_REG_P): New macro.
34577 (MIPS_CALL): Support TARGET_MICROMIPS.
34578 (MICROMIPS_J): New macro.
34579 (mips_base_mips16): Rename this...
34580 (mips_base_compression_flags): ...to this.
34581 (UMIPS_12BIT_OFFSET_P): New macro.
34582 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34583 (MULTILIB_DIRNAMES): Likewise.
34584 2013-03-20 Richard Biener <rguenther@suse.de>
34586 PR tree-optimization/56661
34587 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34588 the result does not have to be distinct.
34590 2013-03-20 Richard Biener <rguenther@suse.de>
34592 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34595 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34596 Steven Bosscher <steven@gcc.gnu.org>
34598 PR rtl-optimization/56605
34599 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34601 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34604 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34605 that require movd instead of movq.
34607 2013-03-20 Richard Biener <rguenther@suse.de>
34609 * tree-ssa-structalias.c (struct variable_info): Add pointer
34610 to the first field of an aggregate with sub-vars. Make
34611 this and the pointer to the next subfield its ID.
34612 (vi_next): New function.
34613 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34614 storedanything_id, integer_id): Increment by one.
34615 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34616 get_call_clobber_vi): Adjust.
34617 (solution_set_expand): Simplify and speedup.
34618 (solution_set_add): Inline into ...
34619 (set_union_with_increment): ... this. Adjust accordingly.
34620 (do_sd_constraint): Likewise.
34621 (do_ds_constraint): Likewise.
34622 (do_complex_constraint): Simplify.
34623 (build_pred_graph): Adjust.
34624 (solve_graph): Likewise. Simplify and speedup.
34625 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34626 get_constraint_for_component_ref, get_constraint_for_1,
34627 first_vi_for_offset, first_or_preceding_vi_for_offset,
34628 create_function_info_for, create_variable_info_for_1,
34629 create_variable_info_for, intra_create_variable_infos): Adjust.
34630 (init_base_vars): Push NULL for ID zero.
34631 (compute_points_to_sets): Adjust.
34633 2013-03-20 Richard Biener <rguenther@suse.de>
34635 * cfgloop.c (verify_loop_structure): Streamline and avoid
34636 ICEing on corrupt loop tree.
34637 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34640 2013-03-20 Richard Biener <rguenther@suse.de>
34642 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34643 check whether an SSA update is needed.
34645 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34647 * config/mips/constraints.md (T): Rename to...
34651 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34652 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34654 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34656 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34657 (*subsi3_carryin_uxtw): Likewise.
34659 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34661 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34662 (*rorsi3_insn_uxtw): Likewise.
34664 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34666 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34667 (*extrsi5_insn_uxtw): Likewise.
34669 2013-03-19 Richard Biener <rguenther@suse.de>
34671 PR tree-optimization/56273
34672 * passes.c (init_optimization_passes): Move second VRP after DOM.
34674 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34676 * config/i386/i386.md (*movti_internal): Merge from
34677 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34678 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34679 nox64 isa attributes.
34681 2013-03-18 Richard Biener <rguenther@suse.de>
34683 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34685 (merge_node_constraints): Likewise.
34686 (build_succ_graph): Likewise.
34687 (valid_graph_edge): Inline into single caller.
34688 (unify_nodes): Likewise. Use bitmap_set_bit return value
34690 (scc_visit): Fix formatting and variable use.
34691 (do_sd_constraint): Use gcc_checking_assert.
34692 (do_ds_constraint): Likewise.
34693 (do_complex_constraint): Likewise.
34694 (condense_visit): Likewise. Cleanup.
34695 (dump_pred_graph): New function.
34696 (perform_var_substitution): Dump the pred-graph before
34697 variable substitution.
34698 (find_equivalent_node): Use gcc_checking_assert.
34699 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34701 2013-03-18 Richard Biener <rguenther@suse.de>
34703 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34704 Remove cond_expr_stmt_list argument and do not gimplify the
34706 (vect_loop_versioning): Adjust.
34707 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34708 Cleanup to use less temporaries.
34709 (vect_create_data_ref_ptr): Cleanup.
34711 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34713 PR tree-optimization/56635
34714 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34715 require types_compatible_p types.
34717 2013-03-18 Nick Clifton <nickc@redhat.com>
34719 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34720 spurious backslash.
34722 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34723 Add missing line to comment describing function.
34725 2013-03-18 Richard Biener <rguenther@suse.de>
34727 PR tree-optimization/56210
34728 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34729 Handle string / character search functions.
34730 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34732 2013-03-18 Richard Biener <rguenther@suse.de>
34734 PR middle-end/56483
34735 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34736 and implement properly.
34737 * gimple.h (gimple_cond_single_var_p): Remove.
34739 2013-03-18 Richard Biener <rguenther@suse.de>
34741 * tree-data-ref.h (find_data_references_in_loop): Declare.
34742 * tree-data-ref.c (get_references_in_stmt): Use a stack
34743 vector pre-allocated in the callers.
34744 (find_data_references_in_stmt): Adjust.
34745 (graphite_find_data_references_in_stmt): Likewise.
34746 (create_rdg_vertices): Likewise.
34747 (find_data_references_in_loop): Export.
34748 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34749 Compute dependences here...
34750 (vect_analyze_data_refs): ...not here. When we encounter
34751 a non-vectorizable data reference in basic-block vectorization
34752 truncate the data reference vector. Do not bother to
34753 fixup data-dependence information for gather loads.
34754 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34755 of data references, as reported.
34757 2013-03-18 Richard Biener <rguenther@suse.de>
34759 PR tree-optimization/3713
34760 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34761 has_constants and expr.
34762 (stmt_has_constants): Properly valueize SSA names when deciding
34763 whether the stmt has constants.
34765 2013-03-18 Richard Biener <rguenther@suse.de>
34767 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34768 whole function when there is nothing to do.
34769 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34770 * tree-vectorizer.c (vectorize_loops): Update virtual and
34771 loop-closed SSA once.
34772 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34774 2013-03-18 Richard Biener <rguenther@suse.de>
34776 PR middle-end/56113
34777 * domwalk.c (bb_postorder): New global static.
34778 (cmp_bb_postorder): New function.
34779 (walk_dominator_tree): Replace scheme imposing an order for
34780 visiting dominator sons by one sorting them at the time they
34781 are pushed on the stack.
34783 2013-03-18 Richard Biener <rguenther@suse.de>
34785 PR tree-optimization/39326
34786 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34787 (struct mem_ref): Replace mem member with ao_ref typed member.
34788 (MEM_ANALYZABLE): Adjust.
34789 (memref_eq): Likewise.
34790 (mem_ref_alloc): Likewise.
34791 (gather_mem_refs_stmt): Likewise.
34792 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34793 (execute_sm_if_changed_flag_set): Adjust.
34794 (execute_sm): Likewise.
34795 (ref_always_accessed_p): Likewise.
34796 (refs_independent_p): Likewise.
34797 (can_sm_ref_p): Likewise.
34799 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34802 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34803 return 1 even for !unsignedp.
34805 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34807 * config/i386/i386.md (isa): Add x64 and nox64.
34808 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34809 (*pushtf): Enable *roF alternative for x64 isa only.
34810 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34811 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34812 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34813 (*movtf_internal): Merge from *movtf_internal_rex64 and
34814 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34815 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34816 nox64 isa attributes.
34817 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34818 nox64 isa attributes.
34819 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34821 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34823 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34825 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34828 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34829 class names. Remove trailing comma after "ALL_REGS".
34831 2013-03-16 Jan Hubicka <jh@suse.cz>
34833 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34834 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34835 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34836 of cgraph_get_create_node.
34837 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34839 2013-03-16 Jason Merrill <jason@redhat.com>
34842 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34843 with DW_AT_default_value.
34845 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34847 * BASE-VER: Set to 4.9.0.
34849 2013-03-14 Andi Kleen <ak@linux.intel.com>
34852 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34853 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34854 Document _x* TSX intrinsics.
34856 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34857 David Holsgrove <david.holsgrove@xilinx.com>
34859 * configure.ac: Add MicroBlaze TLS support detection.
34860 * configure: Regenerate.
34861 * config/microblaze/microblaze-protos.h
34862 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34863 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34864 * config/microblaze/microblaze.c (microblaze_address_type): Add
34865 ADDRESS_TLS and tls_reloc address types.
34866 (microblaze_address_info): Add tls_reloc.
34867 (TARGET_HAVE_TLS): Define.
34868 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34869 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34870 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34871 load_tls_operand, microblaze_call_tls_get_addr,
34872 microblaze_legitimize_tls_address): New functions.
34873 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34874 (get_base_reg): Use microblaze_tls_symbol_p.
34875 (microblaze_classify_address): Handle TLS.
34876 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34877 label_mentioned_p and microblaze_tls_referenced_p.
34878 (microblaze_legitimize_address): Handle TLS.
34879 (microblaze_address_insns): Handle ADDRESS_TLS.
34880 (pic_address_needs_scratch): Handle TLS.
34881 (print_operand_address): Handle TLS.
34882 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34883 (microblaze_expand_move): Handle TLS.
34884 (microblaze_legitimate_constant_p): Check
34885 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34886 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34887 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34888 (PIC_OFFSET_TABLE_REGNUM): Set.
34889 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34890 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34891 (addsi3, movsi_internal2, movdf_internal): Update constraints
34892 * config/microblaze/predicates.md (arith_plus_operand): Define
34893 (move_operand): Redefine as move_src_operand,
34894 check microblaze_tls_referenced_p.
34896 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34898 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34899 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34901 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34903 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34906 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34908 PR tree-optimization/53265
34909 * common.opt (Waggressive-loop-optimizations): New option.
34910 * tree-ssa-loop-niter.c: Include tree-pass.h.
34911 (do_warn_aggressive_loop_optimizations): New function.
34912 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34913 if number_of_latch_executions returned constant.
34914 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34915 early. If number_of_latch_executions returned constant, set
34916 nb_iterations_upper_bound back to it.
34917 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34919 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34920 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34922 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34923 (MULTILIB_OSDIRNAMES): Set.
34924 * genmultilib: If defaultosdirname doesn't start with :: , set
34925 defaultosdirname2 instead, clear it and emit two . multilib_raw
34926 entries instead of just one.
34928 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34930 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34931 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34932 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34933 (SUBTARGET_OVERRIDE_OPTIONS): New.
34935 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34938 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34939 (musermode): Convert to Var(TARGET_USERMODE).
34940 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34941 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34942 * config/sh/sh.c (sh_option_override): Use
34943 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34944 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34946 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34948 (udivsi3_i4_single, divsi3_i4_single): Use
34949 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34951 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34953 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34956 2013-03-13 Richard Biener <rguenther@suse.de>
34958 PR tree-optimization/56608
34959 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34960 calls when vectorizing basic-blocks.
34962 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34965 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34968 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34970 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34972 2013-03-11 Jan Hubicka <jh@suse.cz>
34975 * lto-streamer-out.c (output_symbol_p): Skip references from
34976 constructors of external variables.
34978 2013-03-11 Jan Hubicka <jh@suse.cz>
34980 PR middle-end/56571
34981 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34983 * emit-rtl.c (verify_rtx_sharing): Likewise.
34984 (copy_insn_1): Likewise.
34985 * rtl.c (copy_rtx): Likewise.
34987 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34990 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34991 output_operand_lossage message.
34993 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34996 * arm.c (shift_op): Validate RTL pattern on the fly.
34997 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35000 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35003 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35004 new call patterns that clobber %fr12.
35005 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35006 split and postreload patterns.
35007 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35008 registers %fr12 and %fr12R as call used.
35010 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35012 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35013 (canon_address, record_store, replace_read, check_mem_read_rtx,
35014 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35015 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35016 rest_of_handle_dse): Likewise.
35018 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35020 PR middle-end/56524
35021 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35023 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35024 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35025 (save_optabs_if_changed): Replace with...
35026 (init_tree_optimization_optabs): ...this.
35027 * optabs.c (save_optabs_if_changed): Rename to...
35028 (init_tree_optimization_optabs): ...this. Take the optimization node
35029 as argument. Do nothing if the base optabs are already correct.
35030 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35031 to recompute optabs.
35032 * function.h (function): Remove optabs field.
35033 * function.c (invoke_set_current_function_hook): Call
35034 init_tree_optimization_optabs. Use the result to initialize
35037 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35039 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35040 if GTMA_HAS_NO_INSTRUMENTATION.
35041 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35042 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35043 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35044 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35045 GTMA_HAS_NO_INSTRUMENTATION.
35047 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35049 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35052 2013-03-08 Marek Polacek <polacek@redhat.com>
35053 Jakub Jelinek <jakub@redhat.com>
35055 PR tree-optimization/56478
35056 * predict.c (is_comparison_with_loop_invariant_p): Change the
35057 type of loop_step to tree.
35058 (predict_loops): Adjust.
35059 (predict_iv_comparison): Perform the computations on double_ints.
35061 2013-03-08 Richard Biener <rguenther@suse.de>
35063 PR tree-optimization/56570
35064 * tree-cfg.c (verify_expr_location_1): Verify locations for
35066 * tree-sra.c (create_access_replacement): Strip locations
35067 from DECL_DEBUG_EXPRs.
35069 2013-03-08 Richard Biener <rguenther@suse.de>
35071 * tree-inline.c (expand_call_inline): Do not associate
35072 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35073 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35075 2013-03-08 Richard Biener <rguenther@suse.de>
35077 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35078 or block changes with -Og. Fix for location / block encoding
35079 changes and PHI arguments with locations.
35081 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35083 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35085 (struct output_info): Likewise.
35086 (register_overhead): Remove bad gcc_assert.
35087 (bitmap_find_bit): If there is only a single bitmap element, do not
35088 count a miss as a search.
35089 (print_statistics): Update for counter type changes.
35090 (dump_bitmap_statistics): Likewise. Print headers such that they
35091 are properly lined up with the printed counters.
35093 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35095 PR tree-optimization/56559
35096 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35097 check that it has only a single use.
35099 2013-03-07 Richard Biener <rguenther@suse.de>
35101 * doc/invoke.texi (fwhole-program): Discourage use in combination
35104 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35106 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35108 PR tree-optimization/56539
35109 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35110 instead of GSI_CONTINUE_LINKING as last argument to
35111 force_gimple_operand_gsi. Adjust function comment.
35113 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35116 PR middle-end/56548
35117 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35118 promoted mode, convert the result back to the original mode.
35120 2013-03-06 Richard Biener <rguenther@suse.de>
35122 PR middle-end/56294
35123 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35124 (insert_updated_phi_nodes_compare_uids): New function.
35125 (update_ssa): Sort symbols_to_rename after UID before
35126 traversing it to insert PHI nodes.
35128 2013-03-06 Richard Biener <rguenther@suse.de>
35130 PR middle-end/50494
35131 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35132 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35135 2013-02-13 Richard Biener <rguenther@suse.de>
35138 * varasm.c (output_constant_def_1): Get the decl representing
35139 the constant as argument.
35140 (output_constant_def): Wrap output_constant_def_1.
35141 (make_decl_rtl): Use output_constant_def_1 with the decl
35142 representing the constant.
35143 (build_constant_desc): Optionally re-use a decl already
35144 representing the constant.
35145 (tree_output_constant_def): Adjust.
35147 2013-03-06 Joey Ye <joey.ye@arm.com>
35150 * gcc.c (convert_white_space): New function.
35151 (main): Handles white space in function name.
35153 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35156 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35157 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35158 to SH_DIV_CALL_TABLE for TARGET_SH2.
35159 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35161 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35162 call-table options.
35164 2013-03-05 Sterling Augustine <saugustine@google.com>
35165 Cary Coutant <ccoutant@google.com>
35168 * dwarf2out.c (resolve_addr): Don't call
35169 remove_loc_list_addr_table_entries a second time for the same
35172 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35175 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35176 (avoid_complex_debug_insns): New function.
35177 (expand_debug_locations): Call it.
35179 PR rtl-optimization/56484
35180 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35181 lifetimes of hard registers on small register class machines.
35183 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35185 * config/microblaze/microblaze-protos.h: Rename
35186 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35187 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35189 (microblaze_fast_interrupt_function_p): New function.
35190 (microblaze_is_interrupt_handler): Rename to
35191 microblaze_is_interrupt_variant and add fast_interrupt check.
35192 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35193 (save_restore_insns): Likewise.
35194 (compute_frame_size): Likewise.
35195 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35196 (microblaze_globalize_label): Likewise.
35197 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35198 * config/microblaze/microblaze.md: Use wrapper
35199 microblaze_is_interrupt_variant.
35201 2013-03-05 Kai Tietz <ktietz@redhat.com>
35203 * sdbout.c (sdbout_one_type): Switch to current function's section
35204 supporting cold/hot.
35206 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35208 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35211 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35213 PR middle-end/56461
35214 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35215 if VALGRIND_GET_VBITS is defined, temporarily make object
35216 memory all defined, and restore previous valgrind addressability
35217 and definability afterwards. Free this_object at the end.
35219 PR middle-end/56461
35220 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35221 right before calling lra_create_live_ranges, also call it
35222 when clearing live_p. Only call lra_clear_live_ranges
35223 at the end if live_p.
35225 PR middle-end/56461
35226 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35228 2013-03-05 Richard Biener <rguenther@suse.de>
35230 PR tree-optimization/56521
35231 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35234 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35237 * except.h (remove_unreachable_eh_regions): New prototype.
35238 * except.c (remove_eh_handler_splicer): New function, split out
35239 of remove_eh_handler.
35240 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35241 warning about running it on many EH regions one at a time.
35242 (remove_unreachable_eh_regions_worker): New function, walk the
35243 EH tree in depth-first order and remove non-marked regions.
35244 (remove_unreachable_eh_regions): New function.
35245 * tree-eh.c (mark_reachable_handlers): New function, split out
35246 from remove_unreachable_handlers.
35247 (remove_unreachable_handlers): Use mark_reachable_handlers and
35248 remove_unreachable_eh_regions.
35249 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35250 and remove_unreachable_eh_regions.
35252 2013-03-05 Richard Biener <rguenther@suse.de>
35254 PR middle-end/56525
35255 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35256 not freeing them until the end.
35258 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35260 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35262 2013-03-05 Richard Biener <rguenther@suse.de>
35264 PR tree-optimization/56270
35265 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35266 of loads after scheduling an SLP instance.
35268 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35270 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35272 (check_gcc_parallelize): Run guality.exp as a separate job from
35273 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35274 struct-layout-1.exp with stackalign.exp.
35276 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35278 PR middle-end/56461
35279 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35280 load_index sbitmap even if some bit in it isn't set.
35282 PR middle-end/56461
35283 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35284 (discover_iteration_bound_by_body_walk): Change queues to
35285 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35286 spelling in comment. Call safe_push on queues[bound_index] directly.
35287 Release queues[queue_index] in every iteration unconditionally.
35288 Release bounds vector.
35290 PR middle-end/56461
35291 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35292 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35293 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35296 2013-03-05 Richard Biener <rguenther@suse.de>
35299 * tree-inline.c (remap_blocks_to_null): New function.
35300 (expand_call_inline): When expanding a call stmt without
35301 an associated block inline remap all callee blocks to NULL.
35303 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35305 PR rtl-optimization/56494
35306 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35307 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35308 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35310 PR middle-end/56461
35311 * sel-sched-ir.c (free_sched_pools): Release
35312 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35313 if succs_info_pool.max_top isn't -1.
35316 * opts.c (opts_obstack, opts_concat): Moved to...
35317 * opts-common.c (opts_obstack, opts_concat): ... here.
35319 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35321 PR middle-end/56461
35322 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35324 2013-03-04 Martin Jambor <mjambor@suse.cz>
35326 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35327 all appropriate places.
35329 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35331 PR tree-optimization/56424
35332 * ipa-split.c (split_function): Do not set the RSO flag if result is
35333 not by reference and its type is a register type.
35335 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35337 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35338 (microblaze_legitimate_pic_operand): Likewise
35339 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35340 new function microblaze_legitimate_pic_operand
35341 * config/microblaze/microblaze-protos.h
35342 (microblaze_legitimate_pic_operand): Declare.
35344 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35346 * config/microblaze/predicates.md (call_insn_simple_operand):
35347 New predicate for supported rtx code types.
35348 * config/microblaze/microblaze.md (call_internal1): Use
35349 call_insn_simple_operand predicate.
35351 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35353 PR middle-end/56461
35354 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35355 partitions.ordered_remove.
35357 PR middle-end/56461
35358 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35359 vec_oprnds0.create (1) for modifier == NONE.
35361 PR middle-end/56461
35362 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35363 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35364 vec_oprnds1 right before pushing anything to it for
35367 PR middle-end/56461
35368 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35369 set nbbs to 0 instead of having separate code path.
35370 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35371 instead of false as last argument if returning NULL.
35373 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35375 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35376 the attribute is now called "target" instead of "option".
35377 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35378 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35379 attribute/pragma name for TARGET_OPTION_VALID_P and
35380 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35381 * doc/tm.texi: Regenerated.
35383 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35385 * config/microblaze/microblaze.c:
35386 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35387 * config/microblaze/microblaze.h: Add -mxl-reorder to
35389 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35390 instructions emitted if TARGET_REORDER.
35391 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35392 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35395 2013-03-01 Xinliang David Li <davidxl@google.com>
35397 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35400 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35402 PR middle-end/56461
35403 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35404 vector even when returning true. Fix up function comment formatting.
35406 PR middle-end/56461
35407 * ira-build.c (ira_loop_nodes_count): New variable.
35408 (create_loop_tree_nodes): Initialize it.
35409 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35411 PR middle-end/56461
35412 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35413 method on dr_chain and result_chain.
35414 * tree-vect-stmts.c (vectorizable_store): Only call
35415 result_chain.create if j == 0.
35417 PR middle-end/56461
35418 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35419 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35420 before overwriting it.
35422 2013-03-01 Tobias Burnus <burnus@net-b.de>
35424 * doc/extended.texi (C Extensions): Change order in @menu
35426 (Other MIPS Built-in Functions): Move last MIPS entry before
35427 "picoChip Built-in Functions".
35428 (SH Built-in Functions): Move after RX Built-in Functions.
35429 * doc/gcc.texi (Introduction): Change order in @menu
35431 * doc/md.texi (Constraints): Ditto.
35432 * gty.texi (Type Information): Ditto.
35433 (User-provided marking routines for template types): Make
35435 * doc/invoke.texi (AArch64 Options): Move before
35436 "Adapteva Epiphany Options".
35438 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35439 Jakub Jelinek <jakub@redhat.com>
35442 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35443 no_address_safety_analysis attribute.
35444 * doc/extend.texi (no_address_safety_attribute): Rename to
35445 no_sanitize_address attribute, mention no_address_safety_analysis
35446 attribute as deprecated alias.
35448 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35450 PR middle-end/56461
35451 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35452 type to vec<vec<tree> > *.
35453 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35454 to be vec<tree> instead of vec<tree> *, set vec_defs
35455 to vNULL and call vec_defs.create (number_of_vects), adjust other
35457 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35458 vectorizable_condition): Adjust vect_get_slp_defs callers.
35460 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35462 * config/aarch64/aarch64.c
35463 (aarch64_float_const_representable): Remove unused variable.
35465 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35467 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35469 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35471 * config/aarch64/aarch64-builtins.c
35472 (aarch64_init_simd_builtins): Make static.
35474 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35476 * config/aarch64/aarch64.c
35477 (aarch64_simd_make_constant): Make static.
35479 2013-02-28 Martin Jambor <mjambor@suse.cz>
35481 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35482 with no initialization to the RHS of debug statements.
35484 2013-02-28 Martin Jambor <mjambor@suse.cz>
35486 PR tree-optimization/56294
35487 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35489 (get_access_replacement): Do not call create_access_replacement.
35490 Assert a replacement exists.
35491 (get_repl_default_def_ssa_name): Create the replacement declaration
35494 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35496 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35497 final_end_function.
35499 2013-02-28 Marek Polacek <polacek@redhat.com>
35501 PR rtl-optimization/56466
35502 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35503 if we're changing a loop.
35504 (peel_loops_completely): Likewise.
35506 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35509 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35511 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35514 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35515 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35516 INTX_FTYPE_FX, FX_FTYPE_INTX.
35517 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35519 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35521 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35522 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35523 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35524 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35525 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35526 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35527 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35528 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35529 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35530 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35531 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35532 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35533 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35534 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35535 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35536 (avrxmega6): Increase max flash segments from 5 to 6.
35537 * config/avr/t-multilib: Regenerate.
35538 * config/avr/avr-tables.opt: Regenerate.
35539 * doc/avr-mmcu.texi: Regenerate.
35541 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35543 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35544 (avr_device_to_arch): Rename to avr_device_to_ld.
35545 (avr_device_to_as): New prototype.
35546 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35547 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35548 * config/avr/driver-avr.c (avr_device_to_as): New.
35549 (avr_device_to_arch): Rename to avr_device_to_ld.
35551 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35553 PR middle-end/56461
35554 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35555 method on dr_chain and result_chain.
35557 PR middle-end/56461
35558 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35559 pointer_set_destroy on not_executed_last_iteration.
35561 PR middle-end/56461
35562 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35564 PR middle-end/56461
35565 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35566 FOR_EACH_DEFINED_FUNCTION when freeing state.
35568 PR middle-end/56461
35569 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35571 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35574 PR middle-end/56461
35575 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35576 known_aggs[i].items and release known_aggs vector.
35578 PR middle-end/56461
35579 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35581 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35583 * config/microblaze/microblaze.c (microblaze_emit_compare):
35584 Use xor for EQ/NE comparisions.
35585 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35586 (cbranchsf4): Adjust operator to comparison_operator.
35588 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35590 PR middle-end/56461
35591 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35593 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35594 vec_safe_push, always update *slot.
35595 (redirect_edge_var_map_clear): Use vec_free.
35596 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35597 (free_var_map_entry): Use vec_free.
35598 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35599 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35601 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35603 PR middle-end/45472
35604 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35605 when the may_trap_p bit of the exprs being merged differs.
35606 Reorder tests for speculativeness in the logical and operator.
35608 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35610 * incpath.c (add_standard_paths): Use reconcat instead of concat
35611 where appropriate and avoid leaking memory.
35613 * opts.h: Include obstack.h.
35614 (opts_concat): New prototype.
35615 (opts_obstack): New declaration.
35616 * opts.c (opts_concat): New function.
35617 (opts_obstack): New variable.
35618 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35619 (finish_options): Use opts_concat instead of concat
35620 and XOBNEWVEC instead of XNEWVEC.
35621 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35622 generate_option): Likewise.
35623 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35624 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35627 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35628 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35630 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35632 PR middle-end/56461
35633 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35635 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35637 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35638 (arm_block_move_unaligned_straight): Likewise.
35639 (arm_adjust_block_mem): Likewise.
35641 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35644 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35645 temp, cond and label.
35646 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35649 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35650 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35653 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35654 of prologue/epilogue functions.
35657 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35658 Remove unused variable cfa_offset.
35659 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35662 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35663 type promotion to unsigned.
35666 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35667 for HOST_WIDE_INT of 32 bit / same size as int.
35668 (arm_block_move_unaligned_straight): Likewise.
35669 (arm_adjust_block_mem): Likewise.
35672 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35675 2013-02-26 Marek Polacek <polacek@redhat.com>
35677 PR tree-optimization/56426
35678 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35680 2013-02-26 Richard Biener <rguenther@suse.de>
35683 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35684 unused variable loops.
35686 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35688 PR tree-optimization/56448
35689 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35690 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35691 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35692 later operands of the references, or even first operand for
35693 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35695 PR tree-optimization/56443
35696 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35697 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35698 to type_for_mode langhook.
35700 2013-02-25 Matt Turner <mattst88@gmail.com>
35702 * doc/invoke.texi: Document r4700.
35704 2013-02-25 Richard Biener <rguenther@suse.de>
35706 PR tree-optimization/56175
35707 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35709 (simplify_bitwise_binary): ... here. Also guard the conversion
35710 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35712 2013-02-25 Catherine Moore <clm@codesourcery.com>
35715 2013-02-24 Catherine Moore <clm@codesourcery.com>
35716 Maciej W. Rozycki <macro@codesourcery.com>
35717 Tom de Vries <tom@codesourcery.com>
35718 Nathan Sidwell <nathan@codesourcery.com>
35719 Iain Sandoe <iain@codesourcery.com>
35720 Nathan Froyd <froydnj@codesourcery.com>
35721 Chao-ying Fu <fu@mips.com>
35723 * doc/extend.texi: (micromips, nomicromips, nocompression):
35724 Document new function attributes.
35725 * doc/invoke.texi (minterlink-compressed, mmicromips,
35726 m14k, m14ke, m14kec): Document new options.
35727 (minterlink-mips16): Update documentation.
35728 * doc/md.texi (ZC, ZD): Document new constraints.
35729 * configure.ac (gcc_cv_as_micromips): Check if linker
35730 supports the .set micromips directive.
35731 * configure: Regenerate.
35732 * config.in: Regenerate.
35733 * config/mips/mips-tables.opt: Regenerate.
35734 * config/mips/micromips.md: New file.
35735 * constraints.md (ZC, AD): New constraints.
35736 * config/mips/predicates.md (movep_src_register): New predicate.
35737 (movep_src_operand): New predicate.
35738 (non_volatile_mem_operand): New predicate.
35739 * config/mips/mips.md (multimem): New type.
35740 (length): Differentiate between 17-bit and 18-bit branch offsets.
35741 (MOVEP1, MOVEP2): New mode iterator.
35742 (mov_<load>l): Use ZC constraint.
35743 (mov_<load>r): Likewise.
35744 (mov_<store>l): Likewise.
35745 (mov_<store>r): Likewise.
35746 (*branch_equality<mode>_inverted): Add microMIPS support.
35747 (*branch_equality<mode>): Likewise.
35748 (*jump_absolute): Likewise.
35749 (indirect_jump_<mode>): Likewise.
35750 (tablejump_<mode>): Likewise.
35751 (<optab>_internal): Likewise.
35752 (sibcall_internal): Likewise.
35753 (sibcall_value_internal): Likewise.
35754 (prefetch): Use constraint ZD.
35755 * config/mips/mips.opt (minterlink-compressed): New option.
35756 (minterlink-mips16): Now an alias for minterlink-compressed.
35757 (mmicromips): New option.
35758 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35759 (compare_and_swap_12): Likewise.
35760 (sync_add<mode>): Likewise.
35761 (sync_<optab>_12): Likewise.
35762 (sync_old_<optab>_12): Likewise.
35763 (sync_new_<optab>_12): Likewise.
35764 (sync_nand_12): Likewise.
35765 (sync_old_nand_12): Likewise.
35766 (sync_new_nand_12): Likewise.
35767 (sync_sub<mode>): Likewise.
35768 (sync_old_add<mode>): Likewise.
35769 (sync_old_sub<mode>): Likewise.
35770 (sync_new_add<mode>): Likewise.
35771 (sync_new_sub<mode>): Likewise.
35772 (sync_<optab><mode>): Likewise.
35773 (sync_old_<optab><mode>): Likewise.
35774 (sync_new_<optab><mode>): Likewise.
35775 (sync_nand<mode>): Likewise.
35776 (sync_old_nand<mode>): Likewise.
35777 (sync_new_nand<mode>): Likewise.
35778 (sync_lock_test_and_set<mode>): Likewise.
35779 (test_and_set_12): Likewise.
35780 (atomic_compare_and_swap<mode>): Likewise.
35781 (atomic_exchange<mode>_llsc): Likewise.
35782 (atomic_fetch_add<mode>_llsc): Likewise.
35783 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35784 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35785 (umips_save_restore_pattern_p): Likewise.
35786 (umips_load_store_pair_p): Likewise.
35787 (umips_output_load_store_pair): Likewise.
35788 (umips_movep_target_p): Likewise.
35789 (umips_12bit_offset_address_p): Likewise.
35790 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35791 (mips_base_mips16): Rename this...
35792 (mips_base_compression_flags): ...to this. Update all uses.
35793 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35794 (mips_mips16_decl_p): Delete.
35795 (mips_nomips16_decl_p): Delete.
35796 (mips_get_compress_on_flags): New function.
35797 (mips_get_compress_off_flags): New function.
35798 (mips_get_compress_mode): New function.
35799 (mips_get_compress_on_name): New function.
35800 (mips_get_compress_off_name): New function.
35801 (mips_insert_attributes): Support multiple compression types.
35802 (mips_merge_decl_attributes): Likewise.
35803 (umips_12bit_offset_address_p): New function.
35804 (mips_start_function_definition): Emit .set micromips directive.
35805 (mips_call_may_need_jalx_p): New function.
35806 (mips_function_ok_for_sibcall): Add microMIPS support.
35807 (mips_print_operand_punctuation): Support short delay slots and
35809 (umips_swm_mask, umips_swm_encoding): New.
35810 (umips_build_save_restore): New function.
35811 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35812 (was_mips16_p): Remove.
35813 (old_compression_mode): New.
35814 (mips_set_compression_mode): New function.
35815 (mips_set_current_function): Add microMIPS support.
35816 (mips_option_override): Likewise.
35817 (umips_save_restore_pattern_p): New function.
35818 (umips_output_save_restore): New function.
35819 (umips_load_store_pair_p_1): New function.
35820 (umips_load_store_pair_p): New function.
35821 (umips_output_load_store_pair_1): New function.
35822 (umips_output_load_store_pair): New function.
35823 (umips_movep_target_p) New function.
35824 (mips_prepare_pch_save): Add microMIPS support.
35825 * config/mips/mips.h (TARGET_COMPRESSION): New.
35826 (TARGET_CPU_CPP_BUILTINS): Update macro
35827 to use new compression flags and to support microMIPS.
35828 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35829 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35830 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35831 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35832 (ASM_SPEC): Support mmicromips and mno-micromips.
35833 (M16STORE_REG_P): New macro.
35834 (MIPS_CALL): Support TARGET_MICROMIPS.
35835 (MICROMIPS_J): New macro.
35836 (mips_base_mips16): Rename this...
35837 (mips_base_compression_flags): ...to this.
35838 (UMIPS_12BIT_OFFSET_P): New macro.
35839 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35840 (MULTILIB_DIRNAMES): Likewise.
35842 2013-02-25 Tom de Vries <tom@codesourcery.com>
35844 PR rtl-optimization/56131
35845 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35846 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35847 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35849 2013-02-25 Tobias Burnus <burnus@net-b.de>
35851 * doc/invoke.texi (-fsanitize=): Move from optimization
35852 to debugging options.
35854 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35856 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35858 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35859 Alexander Monakov <amonakov@ispras.ru>
35861 PR middle-end/56077
35862 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35863 flush pending lists also on non-jumps. Adjust comment.
35865 2013-02-24 Catherine Moore <clm@codesourcery.com>
35866 Maciej W. Rozycki <macro@codesourcery.com>
35867 Tom de Vries <tom@codesourcery.com>
35868 Nathan Sidwell <nathan@codesourcery.com>
35869 Iain Sandoe <iain@codesourcery.com>
35870 Nathan Froyd <froydnj@codesourcery.com>
35871 Chao-ying Fu <fu@mips.com>
35873 * doc/extend.texi: (micromips, nomicromips, nocompression):
35874 Document new function attributes.
35875 * doc/invoke.texi (minterlink-compressed, mmicromips,
35876 m14k, m14ke, m14kec): Document new options.
35877 (minterlink-mips16): Update documentation.
35878 * doc/md.texi (ZC, ZD): Document new constraints.
35879 * configure.ac (gcc_cv_as_micromips): Check if linker
35880 supports the .set micromips directive.
35881 * configure: Regenerate.
35882 * config.in: Regenerate.
35883 * config/mips/mips-tables.opt: Regenerate.
35884 * config/mips/micromips.md: New file.
35885 * constraints.md (ZC, AD): New constraints.
35886 * config/mips/predicates.md (movep_src_register): New predicate.
35887 (movep_src_operand): New predicate.
35888 (non_volatile_mem_operand): New predicate.
35889 * config/mips/mips.md (multimem): New type.
35890 (length): Differentiate between 17-bit and 18-bit branch offsets.
35891 (MOVEP1, MOVEP2): New mode iterator.
35892 (mov_<load>l): Use ZC constraint.
35893 (mov_<load>r): Likewise.
35894 (mov_<store>l): Likewise.
35895 (mov_<store>r): Likewise.
35896 (*branch_equality<mode>_inverted): Add microMIPS support.
35897 (*branch_equality<mode>): Likewise.
35898 (*jump_absolute): Likewise.
35899 (indirect_jump_<mode>): Likewise.
35900 (tablejump_<mode>): Likewise.
35901 (<optab>_internal): Likewise.
35902 (sibcall_internal): Likewise.
35903 (sibcall_value_internal): Likewise.
35904 (prefetch): Use constraint ZD.
35905 * config/mips/mips.opt (minterlink-compressed): New option.
35906 (minterlink-mips16): Now an alias for minterlink-compressed.
35907 (mmicromips): New option.
35908 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35909 (compare_and_swap_12): Likewise.
35910 (sync_add<mode>): Likewise.
35911 (sync_<optab>_12): Likewise.
35912 (sync_old_<optab>_12): Likewise.
35913 (sync_new_<optab>_12): Likewise.
35914 (sync_nand_12): Likewise.
35915 (sync_old_nand_12): Likewise.
35916 (sync_new_nand_12): Likewise.
35917 (sync_sub<mode>): Likewise.
35918 (sync_old_add<mode>): Likewise.
35919 (sync_old_sub<mode>): Likewise.
35920 (sync_new_add<mode>): Likewise.
35921 (sync_new_sub<mode>): Likewise.
35922 (sync_<optab><mode>): Likewise.
35923 (sync_old_<optab><mode>): Likewise.
35924 (sync_new_<optab><mode>): Likewise.
35925 (sync_nand<mode>): Likewise.
35926 (sync_old_nand<mode>): Likewise.
35927 (sync_new_nand<mode>): Likewise.
35928 (sync_lock_test_and_set<mode>): Likewise.
35929 (test_and_set_12): Likewise.
35930 (atomic_compare_and_swap<mode>): Likewise.
35931 (atomic_exchange<mode>_llsc): Likewise.
35932 (atomic_fetch_add<mode>_llsc): Likewise.
35933 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35934 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35935 (umips_save_restore_pattern_p): Likewise.
35936 (umips_load_store_pair_p): Likewise.
35937 (umips_output_load_store_pair): Likewise.
35938 (umips_movep_target_p): Likewise.
35939 (umips_12bit_offset_address_p): Likewise.
35940 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35941 (mips_base_mips16): Rename this...
35942 (mips_base_compression_flags): ...to this. Update all uses.
35943 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35944 (mips_mips16_decl_p): Delete.
35945 (mips_nomips16_decl_p): Delete.
35946 (mips_get_compress_on_flags): New function.
35947 (mips_get_compress_off_flags): New function.
35948 (mips_get_compress_mode): New function.
35949 (mips_get_compress_on_name): New function.
35950 (mips_get_compress_off_name): New function.
35951 (mips_insert_attributes): Support multiple compression types.
35952 (mips_merge_decl_attributes): Likewise.
35953 (umips_12bit_offset_address_p): New function.
35954 (mips_start_function_definition): Emit .set micromips directive.
35955 (mips_call_may_need_jalx_p): New function.
35956 (mips_function_ok_for_sibcall): Add microMIPS support.
35957 (mips_print_operand_punctuation): Support short delay slots and
35959 (umips_swm_mask, umips_swm_encoding): New.
35960 (umips_build_save_restore): New function.
35961 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35962 (was_mips16_p): Remove.
35963 (old_compression_mode): New.
35964 (mips_set_compression_mode): New function.
35965 (mips_set_current_function): Add microMIPS support.
35966 (mips_option_override): Likewise.
35967 (umips_save_restore_pattern_p): New function.
35968 (umips_output_save_restore): New function.
35969 (umips_load_store_pair_p_1): New function.
35970 (umips_load_store_pair_p): New function.
35971 (umips_output_load_store_pair_1): New function.
35972 (umips_output_load_store_pair): New function.
35973 (umips_movep_target_p) New function.
35974 (mips_prepare_pch_save): Add microMIPS support.
35975 * config/mips/mips.h (TARGET_COMPRESSION): New.
35976 (TARGET_CPU_CPP_BUILTINS): Update macro
35977 to use new compression flags and to support microMIPS.
35978 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35979 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35980 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35981 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35982 (ASM_SPEC): Support mmicromips and mno-micromips.
35983 (M16STORE_REG_P): New macro.
35984 (MIPS_CALL): Support TARGET_MICROMIPS.
35985 (MICROMIPS_J): New macro.
35986 (mips_base_mips16): Rename this...
35987 (mips_base_compression_flags): ...to this.
35988 (UMIPS_12BIT_OFFSET_P): New macro.
35989 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35990 (MULTILIB_DIRNAMES): Likewise.
35992 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35995 * target-globals.c (save_target_globals): For init_reg_sets and
35996 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35998 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36000 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36001 * config/aarch64/t-aarch64
36002 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36004 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36006 PR inline-asm/56148
36007 * lra-constraints.c (process_alt_operands): Reload operand
36008 conflicting with earlier clobber only if no more other conflicting
36011 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36014 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36015 if not linking a shared library.
36017 2013-02-22 Seth LaForge <sethml@google.com>
36019 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36021 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36023 * config/arm/arm.md (split for extendsidi): Update condition.
36024 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36025 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36026 (qhs_zextenddi_cstr): Likewise.
36028 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36030 PR middle-end/56420
36031 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36032 avoid signed wrapping.
36033 (expand_mult): Handle properly multiplication by
36034 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36035 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36036 in the compiler if coeff is HOST_WIDE_INT_MIN.
36037 (expand_divmod): Don't make ext_op1 static, change it's type to
36038 uhwi. Avoid undefined behavior in -INTVAL (op1).
36040 PR rtl-optimization/50339
36041 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36043 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36044 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36045 into splitting_ashiftrt field.
36046 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36048 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36051 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36053 PR middle-end/56108
36054 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36055 are sure to go irrevocable.
36057 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36059 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36060 scalars are valid operands.
36062 2013-02-21 Martin Jambor <mjambor@suse.cz>
36064 PR tree-optimization/56310
36065 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36066 only matching indices and non-negative final offsets.
36067 (intersect_aggregates_with_edge): Pass src_idx to
36068 agg_replacements_to_vector. Pass src_idx insstead of index to
36069 intersect_with_agg_replacements.
36071 2013-02-21 Martin Jambor <mjambor@suse.cz>
36073 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36074 instead of hard-wired defaults.
36076 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36078 * doc/invoke.texi (MIPS Options): Update documentation of the
36079 floating-point multiply-accumulate instruction restrictions.
36081 2013-02-21 Kostya Serebryany <kcc@google.com>
36083 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36084 asan_shadow_offset on x86_64 linux.
36086 2013-02-21 Richard Biener <rguenther@suse.de>
36088 PR tree-optimization/56415
36090 2013-02-11 Richard Biener <rguenther@suse.de>
36092 PR tree-optimization/56273
36093 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36096 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36099 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36102 PR inline-asm/56405
36103 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36104 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36106 2013-02-20 Jan Hubicka <jh@suse.cz>
36108 PR tree-optimization/56265
36109 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36110 when target is referenced for first time.
36112 2013-02-20 Richard Biener <rguenther@suse.de>
36114 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36115 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36116 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36117 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36118 not return anything.
36119 (rename_ssa_copies): Do not remove unused locals.
36120 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36121 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36122 * passes.c (execute_function_todo): Do not schedule unused locals
36123 removal if cleanup_tree_cfg did something.
36124 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36125 about the number of removed locals.
36127 2013-02-20 Richard Biener <rguenther@suse.de>
36129 PR tree-optimization/56398
36130 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36132 2013-02-20 Martin Jambor <mjambor@suse.cz>
36134 PR tree-optimization/55334
36135 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36136 restricted pointers to arrays.
36138 2013-02-20 Richard Biener <rguenther@suse.de>
36139 Jakub Jelinek <jakub@redhat.com>
36141 PR tree-optimization/56396
36142 * tree-ssa-ccp.c (n_const_val): New static variable.
36143 (get_value): Return NULL for SSA names we don't have a lattice
36145 (ccp_initialize): Initialize n_const_val.
36146 * tree-ssa-copy.c (n_copy_of): New static variable.
36147 (init_copy_prop): Initialize n_copy_of.
36148 (get_value): Return NULL_TREE for SSA names we don't have a
36151 2013-02-20 Martin Jambor <mjambor@suse.cz>
36153 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36155 2013-02-20 Richard Biener <rguenther@suse.de>
36157 * genpreds.c (write_lookup_constraint): Do not compare first
36158 letter of the constraint again.
36160 2013-02-20 Richard Biener <rguenther@suse.de>
36162 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36164 (get_use_iv_cost): Terminate hashtable walk when coming across
36167 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36169 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36170 reassociation for avx2 targets.
36172 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36174 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36175 Add version check for v8.10.a to enable microblaze_has_clz
36176 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36177 version and TARGET_PATTERN_COMPARE check
36178 * config/microblaze/microblaze.md: New clzsi2 instruction
36180 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36182 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36183 function before branching.
36185 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36187 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36189 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36191 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36193 PR middle-end/55889
36194 * sel-sched.c: Include ira.h.
36195 (implicit_clobber_conflict_p): New function.
36196 (moveup_expr): Use it.
36197 * Makefile.in (sel-sched.o): Depend on ira.h.
36199 2013-02-19 Richard Biener <rguenther@suse.de>
36201 PR tree-optimization/56384
36202 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36203 (vn_hash_type): Split out from ...
36204 (vn_hash_constant_with_type): ... here.
36205 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36206 (vn_phi_eq): Compare types from vn_phi_s structure.
36207 (vn_phi_lookup): Populate vn_phi_s type.
36208 (vn_phi_insert): Likewise.
36210 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36212 PR tree-optimization/56350
36213 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36214 if haven't found reduction or nested cycle operand, rather than
36215 asserting we must find it.
36217 PR tree-optimization/56381
36218 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36221 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36222 Jakub Jelinek <jakub@redhat.com>
36225 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36226 (swap_optab_enable): Same.
36227 (init_all_optabs): Use argument instead of global.
36228 * tree.h (struct tree_optimization_option): New field target_optabs.
36229 * expr.h (init_all_optabs): Add argument to prototype.
36230 (TREE_OPTIMIZATION_OPTABS): New.
36231 (save_optabs_if_changed): Protoize.
36232 * optabs.h: Declare this_fn_optabs.
36233 * optabs.c (save_optabs_if_changed): New.
36234 Declare this_fn_optabs.
36235 (init_optabs): Add argument to init_all_optabs() call.
36236 * function.c (invoke_set_current_function_hook): Handle per
36238 * function.h (struct function): New field optabs.
36239 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36240 optimization_current_node has changed.
36241 * target-globals.h (save_target_globals_default_opts): Protoize.
36242 * target-globals.c (save_target_globals_default_opts): New.
36244 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36247 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36248 registers %fr12 and %fr12R as call used.
36251 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36252 and HImode, require all displacements to be an integer multiple of
36254 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36255 only allow QImode and HImode when reload is in progress and strict is
36256 true. Likewise for symbolic addresses. Use base14_operand to check
36257 displacements in REG+BASE addresses.
36259 2013-02-18 Richard Biener <rguenther@suse.de>
36261 PR tree-optimization/56366
36262 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36263 handle sign-conversion of outer-loop initial induction value.
36265 2013-02-18 Richard Biener <rguenther@suse.de>
36267 PR middle-end/56349
36268 * cfghooks.c (merge_blocks): If we merge a latch into another
36269 block adjust references to it.
36270 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36271 (verify_loop_structure): Verify that a recorded latch is in fact
36274 2013-02-18 Richard Biener <rguenther@suse.de>
36276 PR tree-optimization/56321
36277 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36278 order SSA name release and virtual operand unlinking.
36280 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36282 * config/microblaze/microblaze.md (save_stack_block): Define.
36283 (restore_stack_block): Likewise.
36285 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36287 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36288 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36289 * config/microblaze/microblaze.c (microblaze_option_override):
36290 Bail out early for PIC modes when target does not support PIC.
36292 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36294 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36295 Replace with a microblaze version.
36296 (microblaze_trampoline_init): Adapt for microblaze.
36297 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36300 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36301 Dodji Seketeli <dodji@redhat.com>
36304 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36305 (instrument_mem_region_access): Do not forget to always put
36306 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36307 0) statement, even for cases where either 'base' or 'base + len'
36308 are not instrumented -- because they have been previously
36309 instrumented. Simplify the logic by putting all the statements
36310 instrument 'base + len' inside a sequence, and then insert that
36311 sequence right before the current insertion point. Then, to
36312 instrument 'base + len', just get an iterator on that statement.
36313 And do not forget to update the pointer to iterator the function
36314 received as argument.
36316 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36318 PR rtl-optimization/56348
36319 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36321 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36323 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36324 (clean_graph_dump_file): Pass base to start_graph_dump.
36326 2013-02-14 Richard Henderson <rth@redhat.com>
36329 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36331 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36333 * collect2-aix.h: Define F_LOADONLY.
36335 2013-02-14 Richard Biener <rguenther@suse.de>
36338 * varasm.c (output_constant_def_1): Get the decl representing
36339 the constant as argument.
36340 (output_constant_def): Wrap output_constant_def_1.
36341 (make_decl_rtl): Use output_constant_def_1 with the decl
36342 representing the constant.
36343 (build_constant_desc): Optionally re-use a decl already
36344 representing the constant.
36345 (tree_output_constant_def): Adjust.
36347 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36350 * asan.c (instrument_builtin_call): Really put the length of the
36351 second source argument into src1_len.
36353 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36355 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36356 argument. If it is false, don't create edge from then_bb to
36358 (insert_if_then_before_iter): Pass true to it.
36359 (build_check_stmt): Pass false to it.
36360 (transform_statements): Flush hash table only on extended basic
36361 block boundaries, rather than at the beginning of every bb.
36362 Don't flush hash table on nonfreeing_call_p calls.
36363 * tree-flow.h (nonfreeing_call_p): New prototype.
36364 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36366 2013-02-13 David S. Miller <davem@davemloft.net>
36368 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36370 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36373 * ira.c (max_regno_before_ira): Move from ...
36375 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36378 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36380 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36382 2013-02-13 Richard Biener <rguenther@suse.de>
36385 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36386 globals in MEM_REFs.
36388 2013-02-13 Richard Biener <rguenther@suse.de>
36390 * loop-init.c (loop_optimizer_init): Clear loop state when
36391 re-initializing preserved loops.
36392 * loop-unswitch.c (unswitch_single_loop): Return whether
36393 we unswitched the loop. Do not verify loop state here.
36394 (unswitch_loops): When we unswitched a loop discover new loops.
36396 2013-02-13 Kostya Serebryany <kcc@google.com>
36398 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36400 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36402 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36404 Avoid instrumenting duplicated memory access in the same basic block
36405 * Makefile.in (asan.o): Add new dependency on hash-table.h
36406 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36407 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36408 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36409 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36410 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36411 (get_mem_ref_of_assignment): New functions.
36412 (get_mem_refs_of_builtin_call): Extract from
36413 instrument_builtin_call and tweak a little bit to make it fit with
36415 (instrument_builtin_call): Use the new
36416 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36417 of is_gimple_builtin_call.
36418 (instrument_derefs, instrument_mem_region_access): Insert the
36419 instrumented memory reference into the hash table.
36420 (maybe_instrument_assignment): Renamed instrument_assignment into
36421 this, and change it to advance the iterator when instrumentation
36422 actually happened and return true in that case. This makes it
36423 homogeneous with maybe_instrument_assignment, and thus give a
36424 chance to callers to be more 'regular'.
36425 (transform_statements): Clear the memory reference hash table
36426 whenever we enter a new BB, when we cross a function call, or when
36427 we are done transforming statements. Use
36428 maybe_instrument_assignment instead of instrumentation. No more
36429 need to special case maybe_instrument_assignment and advance the
36430 iterator after calling it; it's now handled just like
36431 maybe_instrument_call. Update comment.
36433 2013-02-13 Richard Biener <rguenther@suse.de>
36435 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36436 Fix loop discovery code.
36438 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36440 PR inline-asm/56148
36441 * lra-constraints.c (process_alt_operands): Match early clobber
36442 operand with itself. Check conflicts with earlyclobber only if
36443 the operand is not reloaded. Prefer to reload conflicting operand
36444 if earlyclobber and matching operands are the same.
36446 2013-02-12 Richard Biener <rguenther@suse.de>
36449 * lto-streamer-out.c (write_symbol): Do not output symbols
36450 for hard register variables.
36452 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36455 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36456 (umulsidi3_insn, mulsidi3_insn): New insns.
36458 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36460 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36461 (struct tune_params): Add vec_costs field.
36462 * config/arm/arm.c (arm_builtin_vectorization_cost)
36463 (arm_add_stmt_cost): New functions.
36464 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36465 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36466 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36467 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36468 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36469 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36470 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36472 2013-02-12 Richard Biener <rguenther@suse.de>
36475 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36476 decls again if possible.
36478 2013-02-12 Richard Biener <rguenther@suse.de>
36480 PR middle-end/56288
36481 * tree-ssa.c (verify_ssa_name): Fix check, move
36482 SSA_NAME_IN_FREE_LIST check up.
36484 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36485 Steven Bosscher <steven@gcc.gnu.org>
36487 PR rtl-optimization/56151
36488 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36489 equal to op0 or op1, and last_insn pattern is CODE operation
36490 with MEM dest and one of the operands matches that MEM.
36492 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36494 * doc/extend.texi: Document Function Multiversioning and "default"
36495 parameter string to target attribute.
36496 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36497 target attribute parameter is "default".
36498 (ix86_compare_version_priority): Remove checks for target attribute.
36499 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36500 Remove check for target attribute equal to NULL. Add assert.
36501 (ix86_generate_version_dispatcher_body): Change error to sorry.
36503 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36504 Jack Howarth <howarth@bromo.med.uc.edu>
36505 Patrick Marlier <patrick.marlier@gmail.com>
36508 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36509 define ENDFILE_SPEC as TM_DESTRUCTOR.
36510 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36512 2013-02-11 Alexander Potapenko <glider@google.com>
36513 Jack Howarth <howarth@bromo.med.uc.edu>
36514 Jakub Jelinek <jakub@redhat.com>
36517 * config/darwin.c (cdtor_record): Rename ctor_record.
36518 (sort_cdtor_records): Rename sort_ctor_records.
36519 (finalize_dtors): New routine to sort destructors by
36520 priority before use in assemble_integer.
36521 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36523 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36525 PR rtl-optimization/56275
36526 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36527 offset is non-negative and less than cmode size before
36528 calling simplify_subreg.
36530 2013-02-11 Richard Biener <rguenther@suse.de>
36532 PR tree-optimization/56264
36533 * cfgloop.h (fix_loop_structure): Adjust prototype.
36534 * loop-init.c (fix_loop_structure): Return the number of
36535 newly discovered loops.
36536 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36537 are discovered, do a full loop-closed SSA rewrite.
36539 2013-02-11 Richard Biener <rguenther@suse.de>
36541 PR tree-optimization/56273
36542 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36544 (check_array_ref): Fix missing newline in dumps.
36545 (search_for_addr_array): Likewise.
36547 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36549 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36551 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36554 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36556 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36558 PR rtl-optimization/56246
36559 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36561 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36562 constraints are satisfied.
36564 2013-02-08 Jeff Law <law@redhat.com>
36567 * emit-rtl.c (reg_is_parm_p): New function.
36568 * regs.h (reg_is_parm_p): New prototype.
36569 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36570 callee-clobbered registers.
36572 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36575 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36576 If there is no implicit builtin declaration, just return NULL.
36578 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36580 * config/i386/sse.md (FMAMODEM): New mode iterator.
36581 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36582 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36584 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36586 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36587 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36588 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36590 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36592 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36593 (microblaze*-*-elf): Likewise.
36594 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36596 * config/microblaze/microblaze-c.c: Add builtin defines for
36597 _LITTLE_ENDIAN and _BIG_ENDIAN.
36598 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36599 add to TARGET_DEFAULT flags.
36600 Expand ASM_SPEC and LINK_SPEC.
36601 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36602 * config/microblaze/microblaze.md: Update extendsidi2 and
36603 movdi_internal instructions to use low-order / high-order reg
36605 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36606 options and inversemask / mask of LITTLE_ENDIAN.
36607 * config/microblaze/t-microblaze: Expand multilib options to
36608 include mlittle-endian (le) and update exceptions patterns.
36610 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36612 PR rtl-optimization/56195
36613 * lra-constraints.c (get_reload_reg): Don't reuse regs
36614 if they have smaller mode than requested, if they have
36615 wider mode than requested, try to return a SUBREG.
36617 PR tree-optimization/56250
36618 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36619 if type is unsigned and code isn't MULT_EXPR.
36621 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36623 PR tree-optimization/56064
36624 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36625 bits according to mode.
36626 * fixed-value.h (fixed_from_double_int)
36627 (const_fixed_from_double_int): Adjust comments.
36629 2013-02-08 Richard Biener <rguenther@suse.de>
36632 * lto-streamer.h (struct data_in): Remove current_file, current_line
36633 and current_col members.
36634 * lto-streamer-out.c (lto_output_location): Stream changed bits
36635 en-block for efficiency.
36636 * lto-streamer-in.c (clear_line_info): Remove.
36637 (lto_input_location): Cache current file, line and column
36638 globally via local statics. Read changed bits en-block.
36639 (input_function): Do not call clear_line_info.
36640 (lto_read_body): Likewise.
36641 (lto_input_toplevel_asms): Likewise.
36643 2013-02-08 Michael Matz <matz@suse.de>
36645 PR tree-optimization/52448
36646 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36647 (nt_call_phase): New static.
36648 (add_or_mark_expr): Only mark accesses with newer phase than any
36650 (nonfreeing_call_p): New.
36651 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36652 (nt_fini_block): Keep blocks marked as visited.
36653 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36655 2013-02-08 Richard Biener <rguenther@suse.de>
36657 * ira.c (ira): Free broken dominator information.
36659 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36661 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36663 2013-02-08 Marek Polacek <polacek@redhat.com>
36665 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36667 2013-02-08 Richard Biener <rguenther@suse.de>
36669 PR middle-end/56181
36670 * cfgloop.h (flow_loops_find): Adjust.
36671 (bb_loop_header_p): Declare.
36672 * cfgloop.c (bb_loop_header_p): New function split out from ...
36673 (flow_loops_find): ... here. Adjust function signature,
36674 support incremental loop structure update.
36675 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36676 * cfgloopmanip.c (fix_loop_structure): Move ...
36677 * loop-init.c (fix_loop_structure): ... here.
36678 (apply_loop_flags): Split out from ...
36679 (loop_optimizer_init): ... here.
36680 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36681 in incremental mode, only remove dead loops here.
36683 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36686 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36687 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36688 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36689 (*round<mode>3.libgcc): New insns for fixed-modes.
36690 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36691 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36692 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36693 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36694 implementations. Define to __builtin_avr_absFX,
36695 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36696 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36697 __builtin_avr_countlsFX, respectively.
36698 * config/avr/avr-c.c (target.h): Include it.
36699 (enum avr_builtin_id): New enum.
36700 (avr_resolve_overloaded_builtin): New static function.
36701 (avr_register_target_pragmas): Use it to set
36702 targetm.resolve_overloaded_builtin.
36703 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36704 tree nodes used by DEF_BUILTIN.
36705 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36706 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36707 <AVR_BUILTIN_xxBITS>: Same.
36709 2013-02-08 Richard Biener <rguenther@suse.de>
36711 * cfgloop.c (verify_loop_structure): Properly handle
36712 a loop exiting to another loop header.
36713 * ira-int.h (ira_loops): Remove.
36714 * ira.c (ira_loops): Remove.
36715 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36716 (do_reload): Use loop_optimizer_finalize.
36717 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36718 number_of_loops to access the loop tree.
36719 (more_one_region_p): Likewise.
36720 (finish_loop_tree_nodes): Likewise.
36721 (rebuild_regno_allocno_maps): Likewise.
36722 (mark_loops_for_removal): Likewise.
36723 (mark_all_loops_for_removal): Likewise.
36724 (remove_unnecessary_regions): Likewise.
36725 (ira_build): Likewise.
36726 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36728 2013-02-08 Richard Biener <rguenther@suse.de>
36730 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36731 * ipa-pure-const.c (analyze_function): Avoid calling
36732 mark_irreducible_loops twice.
36733 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36735 2013-02-07 David S. Miller <davem@davemloft.net>
36737 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36739 * var-tracking.c (vt_add_function_parameter): Test the presence of
36740 HAVE_window_save properly and do not remap argument registers when
36741 we have a leaf function.
36743 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36746 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36748 * config/i386/i386.c (ix86_print_operand): Ditto.
36750 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36752 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36754 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36756 PR rtl-optimization/56225
36757 * lra-constraints.c (process_alt_operands): Check that reload hard
36758 reg can hold value for strict_low_part.
36760 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36763 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36764 dwarf2out_end_function.
36765 (in_first_function_p, maybe_at_text_label_p,
36766 first_loclabel_num_not_at_text_label): New variables.
36767 (dwarf2out_var_location): In the first function find out
36768 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36769 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36772 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36774 PR rtl-optimization/56178
36775 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36776 SUBREG of a register. Tidy up related block of code.
36777 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36778 note if the source is a register or a SUBREG of a register.
36780 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36783 * config/rs6000/rs6000.md (ptrm): New mode attr.
36784 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36785 call_value_indirect_aix<pttrsize>,
36786 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36789 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36791 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36792 if -bnortl. Convert to strcmp and strncmp.
36794 2013-02-07 Alan Modra <amodra@gmail.com>
36797 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36798 addresses won't wrap when offsetting.
36799 (rs6000_secondary_reload): Provide secondary reloads needed for
36800 wrapping LO_SUM addresses.
36802 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36804 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36805 MACH, just __MACH__.
36807 2013-02-06 Richard Biener <rguenther@suse.de>
36809 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36810 instead of calling fix_loop_structure.
36812 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36814 PR middle-end/56217
36815 * omp-low.c (use_pointer_for_field): Return false if
36816 lower_send_shared_vars doesn't generate any copy-out code.
36818 2013-02-06 Tom de Vries <tom@codesourcery.com>
36820 PR rtl-optimization/56131
36821 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36822 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36823 of the label is NULL. Add comment.
36825 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36827 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36830 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36831 (STATIC_LIBTSAN_LIBS): Likewise.
36832 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36833 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36834 is defined, don't add anything else beyond that.
36835 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36836 (LINK_COMMAND_SPEC): Use them.
36838 PR tree-optimization/56205
36839 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36840 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36841 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36843 2013-02-05 Richard Biener <rguenther@suse.de>
36845 PR tree-optimization/53342
36846 PR tree-optimization/53185
36847 * tree-vectorizer.h (vect_check_strided_load): Remove.
36848 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36849 not disallow peeling for vectorized strided loads.
36850 (vect_check_strided_load): Make static and simplify.
36851 (vect_analyze_data_refs): Adjust.
36852 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36853 correctly when vectorizing strided loads.
36855 2013-02-05 Richard Biener <rguenther@suse.de>
36857 * doc/install.texi: Refer to ISL, not PPL.
36859 2013-02-05 Jan Hubicka <jh@suse.cz>
36861 PR tree-optimization/55789
36862 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36864 2013-02-05 Jan Hubicka <jh@suse.cz>
36866 PR tree-optimization/55789
36867 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36868 the dead call anyway.
36870 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36873 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36875 2013-02-04 Alexander Potapenko <glider@google.com>
36876 Jack Howarth <howarth@bromo.med.uc.edu>
36877 Jakub Jelinek <jakub@redhat.com>
36880 * config/darwin.c (sort_ctor_records): Stabilized qsort
36881 on constructor priority by using original position.
36882 (finalize_ctors): New routine to sort constructors by
36883 priority before use in assemble_integer.
36884 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36886 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36889 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36890 about visibility on artificial decls.
36891 * config/sol2.c (solaris_assemble_visibility): Likewise.
36893 2013-02-04 Kai Tietz <ktietz@redhat.com>
36896 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36897 argument and improve checking of return-argument types for 16-byte
36899 (ix86_function_value_1): Add additional valtype argument on call
36900 of function_value_64.
36901 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36902 handling infunction_value_64 function.
36904 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36906 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36908 2013-02-04 Richard Biener <rguenther@suse.de>
36910 PR tree-optimization/56188
36911 * tree-ssa-structalias.c (label_visit): Consider case with
36912 initially non-empty points-to set.
36913 (perform_var_substitution): Dump node mapping and clean up.
36915 2013-02-04 Richard Guenther <rguenther@suse.de>
36918 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36919 node prevail as last resort.
36920 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36921 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36923 2013-02-04 Richard Biener <rguenther@suse.de>
36925 PR tree-optimization/56113
36926 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36928 (equiv_class_lookup_or_add): ... this.
36929 (label_visit): Adjust and fix error in previous patch.
36930 (perform_var_substitution): Adjust.
36932 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36934 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36935 * config/sh/sh4-300.md: Likewise.
36936 * config/sh/sh4a.md: Likewise.
36937 * config/sh/constraints.md: Likewise.
36938 * config/sh/sh.md: Likewise.
36939 * config/sh/netbsd-elf.h: Likewise.
36940 * config/sh/predicates.md: Likewise.
36941 * config/sh/sh-protos.h: Likewise.
36942 * config/sh/ushmedia.h: Likewise.
36943 * config/sh/linux.h: Likewise.
36944 * config/sh/sh.c: Likewise.
36945 * config/sh/superh.h: Likewise.
36946 * config/sh/elf.h: Likewise.
36947 * config/sh/sh4.md: Likewise.
36948 * config/sh/sh.h: Likewise.
36950 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36952 * config/pa/constraints.md: Adjust unused letters. Change "T"
36953 constraint to match_test floating_point_store_memory_operand().
36954 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36955 (base14_operand): New.
36956 (floating_point_store_memory_operand): New.
36957 (integer_store_memory_operand): Revise to use base14_operand and
36958 reg_plus_base_memory_operand.
36959 (move_dest_operand): Allow symbolic_memory_operands.
36960 (symbolic_memory_operand): Check for LO_SOM.
36961 (symbolic_operand): Change default case to break.
36962 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36963 CONST_DOUBLE values to be reloaded by putting them into memory when
36964 the destination is a floating point register.
36965 (movdf): Remove code to handle CONST_DOUBLE.
36967 (reload_indf_r1): New.
36968 (reload_insf_r1): New.
36969 Consistently use "Q" and "T" constraints with integer and floating
36970 point move instructions, respectively.
36971 (movdi): Remove FAIL.
36972 Change predicate for source operand unamed DImode move from
36973 general_operand to move_src_operand.
36974 (umulsidi3): Change predicate for destination operand to
36976 Likewise for similar unamed patterns.
36977 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36978 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36979 (hppa_legitimize_address): Simplify mask calculation.
36980 (pa_emit_move_sequence): Revised handling of secondary reloads from
36981 REG+D addresses for floating point loads and stores. Directly handle
36982 loading CONST0_RTX (mode) to a floating point register.
36983 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36984 to floating point registers. Don't restrict secondary reloads to
36985 floating point registers to integer modes. Revise some comments and
36987 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36988 (pa_legitimate_address_p): New.
36989 (pa_legitimize_reload_address): New.
36990 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36991 (STRICT_REG_OK_FOR_BASE_P): New.
36992 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36993 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36995 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36996 Andrew Dixie <andrewd@gentrack.com>
36998 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37001 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37003 * expmed.c (extract_bit_field_1): Pass the full width of the
37004 structure to get_best_reg_extraction_insn.
37006 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37009 * configure.ac (use_cxa_atexit): Add AIX.
37010 * configure: Regenerate.
37012 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37014 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37017 * final.c (need_profile_function): New variable.
37018 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37019 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37020 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37021 notes, targetm.asm_out.function_prologue doesn't emit anything,
37022 HAVE_prologue and profiler should be emitted before prologue,
37023 set need_profile_function instead of emitting it.
37024 (final_scan_insn): If need_profile_function, emit
37025 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37026 NOTE_INSN_FUNCTION_BEG note.
37028 2013-02-01 Richard Henderson <rth@redhat.com>
37030 * config/rs6000/rs6000.md (smulditi3): New.
37033 * config/alpha/alpha.md (umulditi3): New.
37035 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37037 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37038 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37040 2013-02-01 Richard Biener <rguenther@suse.de>
37042 PR tree-optimization/56113
37043 * tree-ssa-structalias.c (label_visit): Reduce work for
37044 single-predecessor nodes.
37046 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37048 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37049 range isn't testing for zero.
37051 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37053 PR middle-end/56113
37054 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37056 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37057 Nick Clifton <nickc@redhat.com>
37059 * config/v850/constraints.md (Q): Define as a memory constraint.
37060 * config/v850/predicates.md (label_ref_operand): New predicate.
37061 (e3v5_shift_operand): New predicate.
37062 (ior_operator): New predicate.
37063 * config/v850/t-v850: Add e3v5 multilib.
37064 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37065 (v850_gen_movdi): Prototype.
37066 * config/v850/v850.c: Add support for e3v5 architecture.
37067 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37069 (construct_save_jarl): Add e3v5 long JARL support.
37070 (v850_adjust_insn_length): New function. Adjust length of call
37071 insns when using e3v5 instructions.
37072 (v850_gen_movdi): New function: Generate instructions to move a
37074 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37075 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37076 (TARGET_USE_FPU): Enable for e3v5.
37077 (CONST_OK_FOR_W): New macro.
37078 (ADJUST_INSN_LENGTH): Define.
37079 * config/v850/v850.md (UNSPEC_LOOP): Define.
37080 (attr cpu): Add v850e3v5.
37081 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37082 (movdi): New pattern.
37083 (movdi_internal): New pattern.
37084 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37085 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37086 (cstoresf4): Likewise.
37087 (cstoredf4): Likewise.
37088 (insv): New pattern.
37089 (rotlso3_a): New pattern.
37090 (rotlsi3_b): New pattern
37091 (rotlsi3_v850e3v5): New pattern.
37092 (doloop_begin): New pattern.
37093 (fix_loop_counter): New pattern.
37094 (doloop_end): New pattern.
37095 (branch_normal): Add e3v5 long branch support.
37096 (branch_invert): Likewise.
37097 (branch_z_normal): Likewise.
37098 (branch_z_invert): Likewise.
37099 (branch_nz_normal): Likewise.
37100 (branch_nz_invert): Likewise.
37101 (call_internal_short): Add e3v5 register-indirect JARL support.
37102 (call_internal_long): Likewise.
37103 (call_value_internal_short): Likewise.
37104 (call_value_internal_long): Likewise.
37105 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37106 (mloop): New option.
37107 * config.gcc: Add support for configuring v840e3v5 target.
37108 * doc/invoke.texi: Document new v850 specific command line options.
37110 2013-01-31 Paul Koning <ni1d@arrl.net>
37114 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37115 children if parent is a class.
37116 (prune_unused_types_prune): Don't add DW_AT_declaration.
37118 2013-01-31 Richard Biener <rguenther@suse.de>
37120 PR tree-optimization/56157
37121 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37122 match up operand with SLP child.
37124 2013-01-31 Jason Merrill <jason@redhat.com>
37127 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37128 parameters the first time.
37129 (gen_scheduled_generic_parms_dies): Check completeness here.
37131 2013-01-31 Richard Biener <rguenther@suse.de>
37133 PR middle-end/53073
37134 * common.opt (faggressive-loop-optimizations): New flag,
37135 enabled by default.
37136 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37137 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37138 infer_loop_bounds_from_undefined by it.
37140 2013-01-31 Richard Biener <rguenther@suse.de>
37142 PR tree-optimization/56150
37143 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37144 visit virtual operands.
37145 (find_uses_to_rename_bb): Likewise.
37147 2013-01-31 Richard Biener <rguenther@suse.de>
37149 PR tree-optimization/56150
37150 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37151 mixed store non-store stmts.
37153 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37156 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37157 LIBASAN_EARLY_SPEC is defined.
37158 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37159 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37161 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37164 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37165 invalid args instead of ICEing on it.
37166 (ix86_valid_target_attribute_tree): Return error_mark_node if
37167 ix86_valid_target_attribute_inner_p failed.
37168 (ix86_valid_target_attribute_p): Return false only if
37169 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37170 target("default") attribute.
37171 (sorted_attr_string): Change argument from const char * to tree,
37172 merge in all target attribute arguments rather than just one.
37173 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37174 instead of free. Avoid using strcat.
37175 (ix86_mangle_function_version_assembler_name): Mangle
37176 target("default") as if no target attribute is present. Adjust
37177 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37178 instead of xmalloc and XDELETEVEC instead of free.
37179 (ix86_function_versions): Don't return true if one of the decls
37180 doesn't have target attribute. If they don't and one of the decls
37181 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37182 sorted_attr_string caller. Use XDELETEVEC instead of free.
37183 (ix86_supports_function_versions): Remove.
37184 (make_name): Fix up formatting.
37185 (make_dispatcher_decl): Remove resolver_name and its initialization.
37186 Avoid leaking memory.
37187 (is_function_default_version): Return true if there is
37188 target("default") attribute rather than no target attribute at all.
37189 (make_resolver_func): Avoid leaking memory.
37190 (ix86_generate_version_dispatcher_body): Likewise.
37191 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37192 * target.def (supports_function_versions): Remove.
37193 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37194 * doc/tm.texi: Regenerated.
37196 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37198 PR rtl-optimization/56144
37199 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37200 for values with side effects.
37202 2013-01-30 Richard Biener <rguenther@suse.de>
37204 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37205 (sparseset_pop): Likewise.
37206 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37207 to be able to use quick_push in the worker loop.
37209 2013-01-30 Marek Polacek <polacek@redhat.com>
37211 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37213 2013-01-30 Richard Biener <rguenther@suse.de>
37216 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37218 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37220 PR tree-optimization/56064
37221 * fixed-value.c (fixed_from_double_int): New function.
37222 * fixed-value.h (fixed_from_double_int): New prototype.
37223 (const_fixed_from_double_int): New static inline function.
37224 * fold-const.c (native_interpret_fixed): New static function.
37225 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37226 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37227 (native_encode_fixed): New static function.
37228 (native_encode_expr) <FIXED_CST>: Use it.
37229 (native_interpret_int): Move double_int worker code to...
37230 * double-int.c (double_int::from_buffer): ...this new static method.
37231 * double-int.h (double_int::from_buffer): Prototype it.
37233 2013-01-30 Richard Biener <rguenther@suse.de>
37235 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37236 New pointer-map and obstack.
37237 (init_alias_vars): Allocate pointer-map and obstack.
37238 (delete_points_to_sets): Free them.
37239 (find_what_var_points_to): Cache result.
37240 (find_what_p_points_to): Adjust for changed interface of
37241 find_what_var_points_to.
37242 (compute_points_to_sets): Likewise.
37243 (ipa_pta_execute): Likewise.
37245 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37247 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37248 * configure: Regenerate.
37249 * config.in: Regenerate.
37250 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37251 #nobits/#progbits if supported.
37253 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37256 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37257 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37258 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37260 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37262 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37263 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37265 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37267 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37268 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37270 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37272 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37274 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37275 * config/arm/cortex-a7.md: New bypasses using
37276 arm_mac_accumulator_is_result.
37278 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37280 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37281 (cortex_a7_neon_mla): Likewise.
37282 (cortex_a7_fpfmad): New reservation.
37283 (cortex_a7_fpmacs): Use ffmas and update required units.
37284 (cortex_a7_fpmuld): Update required units and latency.
37285 (cortex_a7_fpmacd): Likewise.
37286 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37287 (cortex_a7_neon). Likewise.
37288 (bypass) Update participating units.
37290 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37292 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37293 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37295 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37296 (vfp_fmul): Use ffmad.
37297 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37298 (cortex_r4_fmacd): Use ffmad.
37299 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37300 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37301 (cortex_a9_fmacd): Use ffmad.
37302 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37303 (cortex_a8_vfp_macd): Use ffmad.
37304 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37305 (cortex_a5_fpmacd): Use ffmad.
37306 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37307 (cortex_a15_vfp_macd): Use ffmad.
37308 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37310 2013-01-29 Jason Merrill <jason@redhat.com>
37313 * varasm.c (default_assemble_visibility): Don't warn about
37314 visibility on artificial decls.
37316 2013-01-29 Richard Biener <rguenther@suse.de>
37318 PR tree-optimization/56113
37319 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37321 (label_visit): Free duplicate bitmaps and record the leader instead.
37322 (perform_var_substitution): Adjust.
37324 2013-01-29 Richard Biener <rguenther@suse.de>
37326 PR tree-optimization/55270
37327 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37328 the CFG, schedule loops for fixup.
37330 2013-01-29 Nick Clifton <nickc@redhat.com>
37332 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37335 2013-01-28 Leif Ekblad <leif@rdos.net>
37337 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37338 * config/i386/i386.h (TARGET_RDOS): New macro.
37339 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37340 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37341 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37342 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37343 DEFAULT_LARGE_SECTION_THRESHOLD.
37344 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37345 * config/i386/rdos.h: New file.
37346 * config/i386/rdos64.h: New file.
37348 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37351 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37354 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37356 PR rtl-optimization/56117
37357 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37358 call cselib_lookup_from_insn on the MEM before calling
37359 add_insn_mem_dependence.
37361 2013-01-28 Richard Biener <rguenther@suse.de>
37363 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37364 to a stmt that didn't have one.
37365 (copy_phis_for_bb): Likewise for PHI arguments.
37366 (copy_debug_stmt): Likewise for debug stmts.
37368 2013-01-28 Richard Biener <rguenther@suse.de>
37370 PR tree-optimization/56034
37371 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37372 (partition_builtin_p): Adjust.
37373 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37374 it is the last partition.
37375 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37376 up the vertex for the definition.
37377 (classify_partition): Classify whether a partition is a
37378 PKIND_REDUCTION, thus has uses outside of the loop.
37379 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37380 Merge all PKIND_REDUCTION partitions into the last partition.
37381 (tree_loop_distribution): Seed partitions from reductions as well.
37383 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37385 PR tree-optimization/56125
37386 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37387 pow(x,c) into sqrt(x) * powi(x, n/2) or
37388 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37389 optimizing for size.
37390 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37391 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37394 PR tree-optimization/56094
37395 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37396 to UNKNOWN_LOCATION while gimplifying expr.
37398 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37401 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37402 operand 0 in movabs insn template for -masm=intel asm alternative.
37403 (*movabs<mode>_2): Ditto for operand 1.
37405 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37408 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37411 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37413 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37416 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37418 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37419 Undef to avoid warning.
37421 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37423 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37424 * configure: Regenerate.
37426 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37428 PR tree-optimization/56098
37429 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37430 for stmts with volatile ops.
37431 (cond_store_replacement): Don't optimize if assign has volatile ops.
37432 (cond_if_else_store_replacement_1): Don't optimize if either
37433 then_assign or else_assign have volatile ops.
37434 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37437 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37439 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37441 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37443 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37444 missing ':' in asm example.
37446 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37448 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37449 entries into lane and laneq entries.
37450 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37451 Remove AdvSIMD scalar modes.
37452 (aarch64_sq<r>dmulh_laneq<mode>): New.
37453 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37455 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37456 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37457 * config/aarch64/iterators.md (VCOND): New.
37460 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37463 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37464 Add NULL LIBNAME argument to existing definitions.
37465 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37466 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37467 * config/avr/avr.c (DEF_BUILTIN): Same.
37468 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37469 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37470 implementation is available (DECL_ASSEMBLER_NAME is set).
37471 (avr_fold_absfx): New static function.
37472 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37473 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37474 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37475 AVR_BUILTIN_ABSLLK.
37476 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37477 (abshk, absk, abslk, absllk): Provide as static inline functions.
37479 2013-01-25 Marek Polacek <polacek@redhat.com>
37481 PR tree-optimization/56035
37482 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37484 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37486 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37487 (*movtf_internal_rex64): Add (!o,C) alternative
37488 (*movxf_internal_rex64): Ditto.
37489 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37491 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37493 * doc/invoke.texi: fix typo.
37494 * doc/objc.texi: fix typo.
37496 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37498 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37499 for the first two alternatives.
37501 2013-01-24 Diego Novillo <dnovillo@google.com>
37503 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37504 (ggc-zone.o): Remove.
37505 * configure.ac: Remove option --with-gc.
37506 * configure: Re-generate.
37507 * doc/install.texi: Remove documentation for --with-gc.
37508 * gengtype.c (write_enum_defn): Remove. Update all users.
37509 (write_Types_process_field): Remove generation of gt_e_* argument.
37510 (output_type_enum): Remove. Update all users.
37511 (write_enum_defn): Remove. Update all users.
37512 (enum alloc_zone): Remove. Update all users.
37513 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37514 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37515 Update all callers.
37516 (struct ptr_data): Remove field TYPE. Update all users.
37517 (gt_pch_note_object): Remove argument TYPE. Update all users.
37518 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37520 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37521 (struct alloc_zone): Remove.
37522 (ggc_internal_alloc_zone_stat): Remove.
37523 (ggc_internal_cleared_alloc_zone_stat): Remove.
37524 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37525 (ggc_pch_count_object): Remove last argument. Update all users.
37526 (ggc_pch_alloc_object): Remove last argument. Update all users.
37527 (struct alloc_zone): Remove.
37528 * ggc-zone.c: Remove.
37529 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37530 (struct alloc_zone): Remove.
37531 (ggc_alloc_typed_stat): Remove.
37532 (ggc_alloc_typed): Remove.
37533 (ggc_splay_alloc): Remove first argument.
37534 (rtl_zone): Remove. Update all users.
37535 (tree_zone): Remove. Update all users.
37536 (tree_id_zone): Remove. Update all users.
37537 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37538 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37539 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37540 * tree-ssanames.c: Remove references to zone allocator in comments.
37542 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37544 * config/avr/avr.c (avr_out_fract): Make register numbers that
37545 might be outside of source operand signed.
37547 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37549 * config/i386/constraints.md (Yf): New constraint.
37550 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37551 of f constraint to conditionaly disable x87 register preferences.
37552 (*movdf_internal): Ditto.
37553 (*movsf_internal): Ditto.
37555 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37557 PR inline-asm/55934
37558 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37559 that have operands with impossible constraints.
37560 Add a FIXME for a speed-up opportunity.
37561 * lra-constraints.c (process_alt_operands): Verify that a class
37562 selected from constraints on asms is valid for the operand mode.
37563 (curr_insn_transform): Remove incorrect comment.
37565 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37567 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37568 TOC operand is a valid symbol ref in the constant pool.
37570 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37572 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37574 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37577 * config/avr/stdfix.h: New file.
37578 * t-avr (stdfix-gcc.h): New rule to build it.
37579 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37581 2013-01-23 Kostya Serebryany <kcc@google.com>
37583 * config/darwin.h: remove dependency on
37584 CoreFoundation (asan on Mac OS).
37586 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37589 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37590 instead of cmpdi_operand for first comparison operand.
37591 Don't assert that comparison operands aren't both constants.
37593 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37595 * doc/install.texi (Downloading the Source): Update references to
37596 downloading separate components.
37598 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37600 * doc/extend.texi (__int128): Improve grammar.
37602 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37605 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37606 alternative to (o,r).
37607 (*movdi_internal_rex64): Remove (!o,n) alternative.
37608 (DImode immediate->memory splitter): Remove.
37609 (DImode immediate->memory peephole2): Remove.
37610 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37611 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37612 alternative to (!o,*r).
37613 (*movtf_internal_sse): New pattern.
37614 (*movxf_internal_rex64): New pattern.
37615 (*movxf_internal): Disable for TARGET_64BIT.
37616 (*movdf_internal_rex64): Remove (!o,F) alternative.
37618 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37620 PR middle-end/56074
37621 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37622 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37623 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37624 stmt locations where LOCATION_LOCUS of the stmt location is
37625 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37628 * config/i386/i386.md (UNSPEC_STOS): New.
37629 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37630 *strsetqi_1): Add UNSPEC_STOS.
37632 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37635 * doc/invoke.texi: Remove left over -Wsynth example.
37637 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37639 PR tree-optimization/56051
37640 * fold-const.c (fold_binary_loc): Don't fold
37641 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37642 a narrowing conversion, or widening conversion from signed
37645 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37647 PR rtl-optimization/56023
37648 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37649 dependent on debug instruction.
37651 2013-01-21 Martin Jambor <mjambor@suse.cz>
37653 PR middle-end/56022
37654 * function.c (allocate_struct_function): Call
37655 invoke_set_current_function_hook earlier.
37657 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37659 * reload1.c (init_reload): Only initialize reload_obstack
37660 during the first call.
37662 2013-01-21 Marek Polacek <polacek@redhat.com>
37664 * cfgloop.c (verify_loop_structure): Fix up grammar.
37666 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37668 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37669 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37671 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37674 * config/arm/marvell-pj4.md: Update copyright year.
37675 Fix up use of alu to alu_reg and simple_alu_imm.
37677 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37679 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37681 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37684 * lra-constraints.c (curr_insn_transform): Don't reuse original
37685 insn for secondary memory move when memory mode should be different.
37687 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37689 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37690 atomic_storedi_1): New patterns.
37692 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37694 btver2 pipeline descriptions.
37695 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37697 * config/i386/i386.md (btver2_decode): New type attributes.
37698 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37700 * config/i386/btver2.md: New file describing btver2 pipelines.
37702 2013-01-19 Andrew Pinski <apinski@cavium.com>
37704 PR tree-optimization/52631
37705 * tree-ssa-sccvn (visit_use): Before looking up the original
37706 statement, try looking up the simplified expression.
37708 2013-01-19 Anthony Green <green@moxielogic.com>
37710 * config/moxie/moxie.c (moxie_expand_prologue): Set
37711 current_function_static_stack_size.
37713 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37715 PR tree-optimization/56029
37716 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37717 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37719 2013-01-18 Sharad Singhai <singhai@google.com>
37721 PR tree-optimization/55995
37722 * dumpfile.c (dump_loc): Print location only if available.
37723 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37725 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37728 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37729 secondary memory move.
37730 (inherit_reload_reg): Use rclass instead of cl for
37731 check_secondary_memory_needed_p.
37733 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37735 PR middle-end/56015
37736 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37737 the case where writing real complex part of target modifies op1.
37739 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37741 * config/aarch64/aarch64-simd.md
37742 (aarch64_vcond_internal<mode>): Handle unordered cases.
37743 * config/aarch64/iterators.md (v_cmp_result): New.
37745 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37746 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37748 * config/arm/marvell-pj4.md: New file.
37749 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37750 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37751 (generic_vfp): Likewise.
37752 * config/arm/arm-cores.def: Add marvell-pj4.
37753 * config/arm/arm-tune.md: Regenerate.
37754 * config/arm/arm-tables.opt: Regenerate.
37755 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37756 * doc/invoke.texi: Document marvell-pj4.
37758 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37760 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37762 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37767 * var-tracking.c (negative_power_of_two_p): New.
37768 (global_get_addr_cache, local_get_addr_cache): New.
37769 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37770 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37772 (vt_stack_offset_p): Remove.
37773 (vt_canon_true_dep): Always canonicalize loc's address.
37774 (clobber_overlapping_mems): Make sure we have a MEM.
37775 (local_get_addr_clear_given_value): New.
37776 (val_reset): Clear local cached entries.
37777 (compute_bb_dataflow): Create and release the local cache.
37778 Disable duplicate MEMs clobbering.
37779 (emit_notes_in_bb): Clobber MEMs likewise.
37780 (vt_emit_notes): Create and release the local cache.
37781 (vt_initialize, vt_finalize): Create and release the global
37782 cache, respectively.
37783 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37785 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37787 PR libmudflap/53359
37788 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37789 not found in the symtab.
37791 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37794 PR rtl-optimization/55547
37795 PR rtl-optimization/53827
37798 * alias.c (offset_overlap_p): New, factored out of...
37799 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37800 the conservative special case for symbolic constants. Don't
37801 adjust zero sizes on alignment.
37803 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37805 PR rtl-optimization/52573
37806 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37807 REG_UNUSED for the same register.
37809 2013-01-17 Richard Biener <rguenther@suse.de>
37810 Marek Polacek <polacek@redhat.com>
37812 PR rtl-optimization/55833
37813 * loop-unswitch.c (unswitch_loops): Move loop verification...
37814 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37815 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37816 Set it to true when we're removing a loop from hierarchy tree in
37817 an irreducible region.
37818 (fix_bb_placements): Adjust caller.
37819 (fix_loop_placements): Likewise.
37821 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37823 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37824 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37825 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37826 Remove ID. Adjust comments.
37827 * config/avr/avr-c.c (avr_builtin_name): Remove.
37828 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37829 * config/avr/avr.c (avr_tolower): New static function.
37830 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37831 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37832 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37835 2013-01-17 Jan Hubicka <jh@suse.cz>
37837 PR tree-optimization/55273
37838 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37840 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37843 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37844 store through atomic_store<mode>_1.
37845 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37847 2013-01-17 Martin Jambor <mjambor@suse.cz>
37849 PR tree-optimizations/55264
37850 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37851 for virtual methods.
37852 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37853 virtual methods before inlining is over.
37854 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37856 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37859 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37861 PR rtl-optimization/56005
37862 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37863 pending reads for prefetch.
37865 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37867 * config/aarch64/aarch64.md
37868 (*cstoresi_neg_uxtw): New pattern.
37869 (*cmovsi_insn_uxtw): New pattern.
37870 (*<optab>si3_uxtw): New pattern.
37871 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37872 (*<optab>si3_insn_uxtw): New pattern.
37873 (*bswapsi2_uxtw): New pattern.
37875 2013-01-16 Richard Biener <rguenther@suse.de>
37877 * tree-inline.c (tree_function_versioning): Remove set but
37878 never used variable.
37880 2013-01-16 Richard Biener <rguenther@suse.de>
37882 PR tree-optimization/55964
37883 * tree-flow.h (rename_variables_in_loop): Remove.
37884 (rename_variables_in_bb): Likewise.
37885 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37886 (copy_loop_before): Adjust and delete update-ssa status.
37887 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37888 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37889 (rename_variables_in_loop): Remove.
37890 (slpeel_update_phis_for_duplicate_loop): Likewise.
37891 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37892 use available cfg machinery instead of duplicating it.
37893 Update PHI nodes and perform poor-mans SSA update here.
37894 (slpeel_tree_peel_loop_to_edge): Adjust.
37896 2013-01-16 Richard Biener <rguenther@suse.de>
37898 PR tree-optimization/54767
37899 PR tree-optimization/53465
37900 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37901 (vrp_visit_phi_node): For PHI arguments coming via backedges
37902 drop all symbolical range information.
37903 (execute_vrp): Compute backedges.
37905 2013-01-16 Richard Biener <rguenther@suse.de>
37907 * doc/install.texi: Update CLooG and ISL requirements to
37910 2013-01-16 Christian Bruel <christian.bruel@st.com>
37913 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37914 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37915 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37917 2013-01-16 DJ Delorie <dj@redhat.com>
37919 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37920 (UNSPECV_SP_SWITCH_E): New.
37921 (sp_switch_1): Change to an unspec.
37922 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37925 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37927 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37928 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37929 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37930 (expand_mem_thread_fence): Ditto.
37931 (expand_mem_signal_fence): Ditto.
37932 (expand_atomic_load): Ditto.
37933 (expand_atomic_store): Ditto.
37935 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37937 PR rtl-optimization/55547
37938 PR rtl-optimization/53827
37941 * alias.c (memrefs_conflict_p): Set sizes to negative after
37944 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37947 * function.c (thread_prologue_and_epilogue_insns): Always
37948 add crtl->drap_reg to set_up_by_prologue.set, even if
37949 stack_realign_drap is false.
37951 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37953 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37954 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37955 *call): Fix indention.
37957 2013-01-15 Tom de Vries <tom@codesourcery.com>
37960 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37963 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37965 PR rtl-optimization/55153
37966 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37968 2013-01-15 Martin Jambor <mjambor@suse.cz>
37970 PR tree-optimization/55920
37971 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37972 accesses as grp_to_be_debug_replaced.
37974 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37976 PR tree-optimization/55920
37977 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37978 there is non-useless type conversion needed from debug rhs to lhs,
37979 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37981 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37982 Mikael Pettersson <mikpe@it.uu.se>
37985 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37987 (ASM_OUTPUT_CASE_LABEL): Remove.
37988 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37989 * final.c (shorten_branches): Update alignment of labels before
37990 jump tables if CASE_VECTOR_SHORTEN_MODE.
37992 2013-01-15 Richard Biener <rguenther@suse.de>
37995 * system.h: Do not include gmp.h for building host tools.
37997 2013-01-15 Richard Biener <rguenther@suse.de>
37999 PR middle-end/55882
38000 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38001 account for bitpos when computing alignment.
38003 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38005 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38006 (ix86_target_macros_internal): Likewise.
38008 * config/i386/i386.c (m_CORE2I7): Removed.
38009 (m_CORE_HASWELL): New macro.
38010 (m_CORE_ALL): Likewise.
38011 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38012 (initial_ix86_arch_features): Likewise.
38013 (processor_target_table): Initializations for Core avx2.
38014 (cpu_names): New names "core-avx2".
38015 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38016 PROCESSOR_CORE_HASWELL.
38017 (ix86_issue_rate): New case.
38018 (ia32_multipass_dfa_lookahead): Likewise.
38019 (ix86_sched_init_global): Likewise.
38021 * config/i386/i386.h (TARGET_HASWELL): New macro.
38022 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38023 (processor_type): New PROCESSOR_HASWELL.
38025 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38027 PR tree-optimization/55955
38028 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38029 *SHIFT_EXPR and *ROTATE_EXPR codes.
38031 PR tree-optimization/48766
38032 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38033 -ftrapv disable -fwrapv.
38035 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38038 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38039 etc. to 1 and not to __flash.
38040 Use LL suffix for __INT24_MAX__ with -mint8.
38041 Use ULL suffix for __UINT24_MAX__ with -mint8.
38043 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38045 * config/avr/avr-arch.h
38046 (struct base_arch_s): Use typedef avr_arch_t instead.
38047 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38048 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38049 * config/avr/avr.c: Same.
38050 * config/avr/avr-devices.c: Same.
38051 * config/avr/driver-avr.c: Same.
38052 * config/avr/gen-avr-mmcu-texi.c: Same.
38053 * config/avr/avr-mcus.def: Adjust comment.
38055 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38057 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38058 * config/aarch64/iterators.md (VALLDI): New.
38060 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38061 Andi Kleen <ak@linux.intel.com>
38064 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38065 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38068 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38070 * config/avr/avr-stdint.h: Remove trailing blanks.
38071 * config/avr/avr-log.h: Same.
38072 * config/avr/avr-arch.h: Same.
38073 * config/avr/avr-devices.c: Same.
38074 * config/avr/avr-dimode.md: Same.
38075 * config/avr/predicates.md: Same.
38076 * config/avr/avr-c.c: Same. And fix typo.
38078 * config/avr/avr-protos.h: Same. And:
38079 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38080 (init_cumulative_args): Rename to avr_init_cumulative_args.
38081 (expand_prologue): Rename to avr_expand_prologue.
38082 (expand_epilogue): Rename to avr_expand_epilogue.
38083 (adjust_insn_length): Rename to avr_adjust_insn_length.
38084 (notice_update_cc): Rename to avr_notice_update_cc.
38085 (final_prescan_insn): Rename to avr_final_prescan_insn.
38086 * config/avr/avr.c: Same.
38087 * config/avr/avr.h: Same.
38088 * config/avr/avr.md: Remove trailing blanks.
38089 (prologue): Use avr_expand_prologue.
38090 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38092 2013-01-14 Richard Biener <rguenther@suse.de>
38094 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38095 verify_location, collect_subblocks): New functions.
38096 (verify_gimple_in_cfg): Verify that locations only reference
38097 BLOCKs in the functions BLOCK tree.
38099 2013-01-14 Richard Biener <rguenther@suse.de>
38101 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38103 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38105 (insert_out_of_ssa_copy_on_edge): Likewise.
38106 (rewrite_close_phi_out_of_ssa): Likewise.
38107 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38109 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38110 propagated constants.
38111 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38114 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38116 * config/avr/avr-modes.def: Add GPL copyright notice.
38118 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38120 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38121 MEMMODEL_MASK to determine memory model.
38122 (atomic_store<mode>): Ditto from operands[2].
38123 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38125 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38128 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38129 (fold_gimple_assign): Don't call unshare_expr here.
38130 (fold_ctor_reference): Call unshare_expr.
38132 2013-01-13 Terry Guo <terry.guo@arm.com>
38134 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38135 * doc/fragments.texi: Document MULTILIB_REUSE.
38136 * gcc.c (multilib_reuse): New internal spec.
38137 (set_multilib_dir): Also search multilib from multilib_reuse.
38138 * genmultilib (tmpmultilib3): Refactor code.
38139 (tmpmultilib4): Ditto.
38140 (multilib_reuse): New multilib argument.
38142 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38144 * Makefile.in: Update copyright.
38146 2013-01-12 Tom de Vries <tom@codesourcery.com>
38148 PR middle-end/55890
38149 * calls.c (expand_call): Check if arg_nr is valid.
38151 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38153 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38154 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38155 documentation. Add missing '__' in front of
38156 __builtin_ia32_packssdw256.
38158 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38161 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38162 NO_REGS for larl operands.
38163 (s390_reload_larl_operand): Use s390_load_address instead of
38166 2013-01-11 Richard Biener <rguenther@suse.de>
38168 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38169 (verify_node_sharing): ... here.
38170 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38172 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38174 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38175 Substitute TREECHECKING.
38176 * configure: Regenerate.
38177 * Makefile.in (TREECHECKING): New.
38179 2013-01-11 Richard Guenther <rguenther@suse.de>
38181 PR tree-optimization/44061
38182 * tree-vrp.c (extract_range_basic): Compute zero as
38183 value-range for __builtin_constant_p of function parameters.
38185 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38187 Update copyright years.
38189 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38191 PR rtl-optimization/55672
38192 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38193 const to be eliminable.
38195 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38197 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38198 * configure: Regenerate.
38200 2013-01-10 Richard Biener <rguenther@suse.de>
38202 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38204 2013-01-10 Richard Biener <rguenther@suse.de>
38207 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38208 locations for virtual PHI arguments.
38209 (rewrite_update_phi_arguments): Likewise.
38211 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38213 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38216 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38218 PR tree-optimization/55921
38219 * tree-complex.c (expand_complex_asm): New function.
38220 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38222 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38225 * config/s390/s390.c (s390_symref_operand_p)
38226 (s390_loadrelative_operand_p): Merge the two functions.
38227 (s390_check_qrst_address, print_operand_address): Add parameters
38228 to s390_loadrelative_operand_p invokation.
38229 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38230 (s390_reload_larl_operand, s390_secondary_reload): Use
38231 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38232 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38234 2013-01-09 Mike Stump <mikestump@comcast.net>
38236 * dse.c (record_store): Remove unnecessary assert.
38238 2013-01-09 Jan Hubicka <jh@suse.cz>
38240 PR tree-optimization/55569
38241 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38242 * cfgloop.h (scale_loop_profile): Likewise.
38244 2013-01-09 Jan Hubicka <jh@suse.cz>
38247 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38249 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38251 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38253 PR middle-end/55114
38254 * expr.h (maybe_emit_group_store): Declare.
38255 * expr.c (maybe_emit_group_store): New function.
38256 * builtins.c (expand_builtin_int_roundingfn): Call it.
38257 (expand_builtin_int_roundingfn_2): Likewise.
38259 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38261 PR rtl-optimization/55829
38262 * lra-constraints.c (match_reload): Add code for absent output.
38263 (curr_insn_transform): Add code for reloads of matched inputs
38266 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38268 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38269 attribute of movddup insn to DF.
38270 (*vec_interleave_lowv2df): Ditto.
38271 (vec_dupv2df): Ditto.
38273 2013-01-09 Jan Hubicka <jh@suse.cz>
38275 PR tree-optimiation/55875
38276 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38277 EVERY_ITERATION parameter.
38278 (number_of_iterations_exit): Check if exit is executed every iteration.
38279 (idx_infer_loop_bounds): Similarly here.
38280 (n_of_executions_at_most): Simplify
38281 to only test for cases where statement is dominated by the
38282 particular bound; handle correctly the "postdominance" test.
38283 (scev_probably_wraps_p): Use max loop iterations info
38284 as a global bound first.
38286 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38287 Nick Clifton <nickc@redhat.com>
38289 * config/v850/v850.md (cbranchsf4): New pattern.
38290 (cstoresf4): New pattern.
38291 (cbranchdf4): New pattern.
38292 (cstoredf4): New pattern.
38293 (movsicc): Disallow floating point comparisons.
38294 (cmpsf_le_insn): Fix order of operators.
38295 (cmpsf_lt_insn): Likewise.
38296 (cmpsf_eq_insn): Likewise.
38297 (cmpdf_le_insn): Likewise.
38298 (cmpdf_lt_insn): Likewise.
38299 (cmpdf_eq_insn): Likewise.
38300 (cmpsf_ge_insn): Use LE comparison.
38301 (cmpdf_ge_insn): Likewise.
38302 (cmpsf_gt_insn): Use LT comparison.
38303 (cmpdf_gt_insn): Likewise.
38304 (cmpsf_ne_insn): Delete pattern.
38305 (cmpdf_ne_insn): Delete pattern.
38306 * config/v850/v850.c (v850_gen_float_compare): Use
38307 gen_cmpdf_eq_insn for NE comparison.
38308 (v850_float_z_comparison_operator)
38309 (v850_float_nz_comparison_operator): Move from here ...
38310 * config/v850/predicates.md: ... to here. Move GT and GE
38311 comparisons into v850_float_z_comparison_operator.
38312 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38314 (v850_float_nz_comparison_operator): Likewise.
38316 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38318 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38319 with calls to gen_insvsi/gen_insvdi.
38321 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38323 * config/i386/i386.c (initial_ix86_tune_features): Set up
38324 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38326 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38327 Jakub Jelinek <jakub@redhat.com>
38329 PR tree-optimization/48189
38330 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38331 If nitercst is 0, don't predict the exit edge.
38333 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38335 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38336 in asm_fprintf with reg_names.
38337 (aarch64_print_operand_address): Likewise.
38338 (aarch64_return_addr): Likewise.
38339 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38341 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38343 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38344 (INT_U6_BITS): Likewise.
38345 * config/pa/predicates.md (uint6_operand): New predicate.
38346 (shift5_operand, shift6_operand): Likewise.
38347 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38349 (lshrdi3): Use shift6_operand.
38350 (shrpsi4, shrpdi4): New insn patterns.
38351 (extzv): Delete expander.
38352 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38353 predicates in unamed zero extract patterns. Tighten common constraint.
38354 (extv): Delete expander.
38355 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38356 predicates in unamed sign extract patterns. Tighten common constraint.
38357 (insv): Delete expander.
38358 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38359 predicates in unamed insert patterns. Tighten common constraint.
38360 Change uint32_operand predicate to uint6_operand predicate in unamed
38361 DImode pattern to insert constant values of type 1...1xxxx.
38363 2013-01-04 Jan Hubicka <jh@suse.cz>
38365 PR tree-optimization/55823
38366 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38369 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38370 Uros Bizjak <ubizjak@gmail.com>
38372 PR rtl-optimization/55845
38373 * df-problems.c (can_move_insns_across): Stop scanning at
38374 volatile_insn_p source instruction or give up if
38375 across_from .. across_to range contains any volatile_insn_p
38378 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38380 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38381 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38383 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38384 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38386 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38389 * asan.c (asan_clear_shadow): New function.
38390 (asan_emit_stack_protection): Use it.
38392 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38394 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38395 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38396 with tab instead of space.
38398 2013-01-08 Nick Clifton <nickc@redhat.com>
38400 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38401 register bank 0 at the start of an interrupt handler.
38402 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38405 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38407 * config/aarch64/aarch64-simd.md
38408 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38409 (aarch64_simd_bsl): Likewise.
38410 (aarch64_vcond_internal<mode>): Likewise.
38411 (vcond<mode><mode>): Likewise.
38412 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38413 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38415 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38417 * config/aarch64/aarch64-builtins.c
38418 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38420 2013-01-08 Martin Jambor <mjambor@suse.cz>
38423 * tree-sra.c (analyze_access_subtree): Return true also after
38424 potentially creating a debug-only replacement.
38426 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38428 PR middle-end/55890
38429 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38431 PR tree-optimization/54120
38432 * tree-vrp.c (range_fits_type_p): Don't allow
38433 src_precision < precision from signed vr to unsigned_p
38434 if vr->min or vr->max is negative.
38435 (simplify_float_conversion_using_ranges): Test can_float_p
38436 against CODE_FOR_nothing.
38438 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38439 Richard Biener <rguenther@suse.de>
38441 PR middle-end/55851
38442 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38443 types instead of just INTEGER_TYPE types.
38445 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38447 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38450 2013-01-07 Steve Ellcey <sellcey@mips.com>
38453 * config/mips/mips.opt: Change mad to mmad to match documentation.
38455 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38458 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38459 .progmemx.data now.
38461 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38464 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38465 (avr_addrspace_t): Add .section_name field.
38466 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38468 (avr_addrspace): Same. Initialize .section_name. Remove last
38469 NULL entry. Put __memx into .progmemx.data.
38470 (progmem_section_prefix): Remove.
38471 (avr_asm_init_sections): No need to initialize progmem_section.
38472 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38473 section name prefix.
38474 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38475 retrieve the progmem section.
38476 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38477 boundary to run over avr_addrspace[].
38478 (avr_register_target_pragmas): Ditto.
38480 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38482 * varasm.c (output_constant_def_contents): For asan_protect_global
38483 protected strings, adjust DECL_ALIGN if needed, before testing for
38485 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38486 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38488 (output_object_block): For asan protected decls, emit asan padding
38489 after their contents.
38490 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38491 (asan_finish_file): Test it here instead.
38493 2013-01-07 Nick Clifton <nickc@redhat.com>
38494 Matthias Klose <doko@debian.org>
38495 Doug Kwan <dougkwan@google.com>
38496 H.J. Lu <hongjiu.lu@intel.com>
38499 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38501 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38503 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38505 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38507 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38509 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38512 * doc/install.texi (Cross-Compiler-Specific Options): Document
38515 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38517 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38518 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38519 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38520 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38521 vqmovun_high_s64): Fix source operand number and update copyright.
38523 2013-01-07 Richard Biener <rguenther@suse.de>
38525 PR middle-end/55890
38526 * gimple.h (gimple_call_builtin_p): New overload.
38527 * gimple.c (validate_call): New function.
38528 (gimple_call_builtin_p): Likewise.
38529 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38530 Use gimple_call_builtin_p.
38531 (find_func_clobbers): Likewise.
38532 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38533 (strlen_optimize_stmt): Likewise.
38535 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38537 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38538 (vld1q_dup_*): Likewise.
38539 (vld1_*): Likewise.
38540 (vld1q_*): Likewise.
38541 (vld1_lane_*): Likewise.
38542 (vld1q_lane_*): Likewise.
38544 2013-01-07 Richard Biener <rguenther@suse.de>
38546 * lto-streamer.h (LTO_minor_version): Bump to 2.
38548 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38550 * config/aarch64/aarch64-protos.h
38551 (aarch64_const_double_zero_rtx_p): Rename to...
38552 (aarch64_float_const_zero_rtx_p): ...this.
38553 (aarch64_float_const_representable_p): New.
38554 (aarch64_output_simd_mov_immediate): Likewise.
38555 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38556 move immediate case.
38557 * config/aarch64/aarch64.c
38558 (aarch64_const_double_zero_rtx_p): Rename to...
38559 (aarch64_float_const_zero_rtx_p): ...this.
38560 (aarch64_print_operand): Allow printing of new constants.
38561 (aarch64_valid_floating_const): New.
38562 (aarch64_legitimate_constant_p): Check for valid floating-point
38564 (aarch64_simd_valid_immediate): Likewise.
38565 (aarch64_vect_float_const_representable_p): New.
38566 (aarch64_float_const_representable_p): Likewise.
38567 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38568 (aarch64_output_simd_mov_immediate): New.
38569 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38570 (*movdf_aarch64): Likewise.
38571 * config/aarch64/constraints.md (Ufc): New.
38572 (Y): call aarch64_float_const_zero_rtx.
38573 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38575 2013-01-07 Richard Biener <rguenther@suse.de>
38577 PR tree-optimization/55888
38578 PR tree-optimization/55862
38579 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38580 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38581 not if it is contained therein.
38583 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38585 * config/avr/t-avr: Typo.
38587 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38590 * config/avr/t-avr: Don't automatically rebuild
38591 $(srcdir)/config/avr/t-multilib
38592 $(srcdir)/config/avr/avr-tables.opt
38593 $(srcdir)/doc/avr-mmcu.texi
38594 (avr-mcus): New phony target to build them on request.
38595 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38596 * avr/avr-mcus.def: Adjust comments.
38598 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38600 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38602 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38604 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38606 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38608 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38610 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38612 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38613 to generate profiling.
38614 * config/rs6000/aix64.h (LIB_SPEC): Same.
38616 2013-01-04 Andrew Pinski <apinski@cavium.com>
38618 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38620 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38622 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38624 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38626 (ix86_expand_move): Ditto.
38627 (ix86_zero_extend_to_Pmode): Ditto.
38628 (ix86_expand_call): Ditto.
38629 (ix86_expand_special_args_builtin): Ditto.
38630 (ix86_expand_builtin): Ditto.
38632 2013-01-04 Richard Biener <rguenther@suse.de>
38634 PR tree-optimization/55862
38635 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38636 translating them through PHI nodes.
38638 2013-01-04 Martin Jambor <mjambor@suse.cz>
38640 PR tree-optimization/55755
38641 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38642 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38644 2013-01-04 Marek Polacek <polacek@redhat.com>
38646 PR middle-end/55859
38647 * opts.c (default_options_optimization): Clarify error message.
38649 2013-01-04 Richard Biener <rguenther@suse.de>
38651 PR middle-end/55863
38652 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38655 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38658 * config/pa/pa.md (movsi): Revert previous change.
38659 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38662 2013-01-03 Richard Henderson <rth@redhat.com>
38664 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38665 after eliminating TLS symbols.
38667 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38670 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38671 * graphite-poly.c (debug_gmp_value): Likewise.
38673 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38676 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38677 selected code model, define __code_mode_small__, __code_model_medium__,
38678 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38679 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38680 xchg temporary register with %k. Declare temporary register as
38682 [__x86_64__]: For medium and large code models, preserve %rbx register.
38684 2013-01-03 Richard Biener <rguenther@suse.de>
38686 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38687 (dump_subscript): Adjust.
38688 (finalize_ddr_dependent): Do not dump redundant info.
38689 (analyze_siv_subscript): Adjust.
38690 (subscript_dependence_tester): Likewise.
38691 (compute_affine_dependence): Likewise.
38693 2013-01-03 Richard Biener <rguenther@suse.de>
38696 2013-01-03 Richard Biener <rguenther@suse.de>
38698 PR tree-optimization/55857
38699 * tree-vect-stmts.c (vectorizable_load): Do not setup
38700 re-alignment for invariant loads.
38702 2013-01-02 Richard Biener <rguenther@suse.de>
38704 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38705 invariant load do not generate a vector load from the scalar location.
38707 2013-01-03 Richard Biener <rguenther@suse.de>
38709 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38710 for not vectorizing.
38711 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38712 not build INDIRECT_REFs, call get_name once only.
38713 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38714 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38716 2013-01-03 Richard Biener <rguenther@suse.de>
38718 PR tree-optimization/55857
38719 * tree-vect-stmts.c (vectorizable_load): Do not setup
38720 re-alignment for invariant loads.
38722 2013-01-03 Richard Biener <rguenther@suse.de>
38725 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38726 prefer a built-in decl.
38728 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38730 * gcc.c (process_command): Update copyright notice dates.
38731 * gcov.c (print_version): Likewise.
38732 * gcov-dump.c (print_version): Likewise.
38734 PR rtl-optimization/55838
38735 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38736 iv0.step, iv1.step and step.
38738 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38739 Marc Glisse <marc.glisse@inria.fr>
38741 PR tree-optimization/55832
38742 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38743 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38744 integer_{one,zero}_node.
38746 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38749 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38750 * var-tracking.c (reverse_op): Don't add reverse ops to
38751 VALUEs that have already
38752 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38754 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38756 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38758 2013-01-02 Teresa Johnson <tejohnson@google.com>
38760 * dumpfile.c (dump_loc): Print filename with location.
38761 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38762 new location_t parameter to emit complete unroll message with
38763 new dump framework.
38764 (canonicalize_loop_induction_variables): Compute loops location
38765 and pass to try_unroll_loop_completely.
38766 * loop-unroll.c (report_unroll_peel): New function.
38767 (peel_loops_completely): Use new dump format with location
38768 for main dumpfile message, and invoke report_unroll_peel on success.
38769 (decide_unrolling_and_peeling): Ditto.
38770 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38771 by report_unroll_peel.
38772 (decide_peel_completely): Ditto.
38773 (decide_unroll_constant_iterations): Ditto.
38774 (decide_unroll_runtime_iterations): Ditto.
38775 (decide_peel_simple): Ditto.
38776 (decide_unroll_stupid): Ditto.
38777 * cfgloop.c (get_loop_location): New function.
38778 * cfgloop.h (get_loop_location): Declare.
38780 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38782 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38785 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38787 PR middle-end/55198
38788 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38789 BLKmode objects when EXPAND_MEMORY is specified.
38791 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38793 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38795 (fold_builtin_cpu): Do not share cpu model decls across statements.
38797 2013-01-02 Jason Merrill <jason@redhat.com>
38800 * tree.c (build_array_type_1): Revert earlier change.
38802 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38804 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38806 * config/aarch64/aarch64-tune.md: Re-generate.
38808 2013-01-02 Richard Biener <rguenther@suse.de>
38810 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38811 invariant load do not generate a vector load from the scalar location.
38813 2013-01-02 Richard Biener <rguenther@suse.de>
38816 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38817 * configure: Regenerate.
38819 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38821 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38822 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38823 (expand_builtin_int_roundingfn_2): Keep the original target around
38824 for the fallback case.
38826 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38828 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38829 to be clear for sign changes.
38831 2013-01-01 Jan Hubicka <jh@suse.cz>
38833 * ipa-inline-analysis.c: Fix formatting.
38835 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38837 PR tree-optimization/55831
38838 * tree-vect-loop.c (get_initial_def_for_induction): Use
38839 gsi_after_labels instead of gsi_start_bb.
38841 Copyright (C) 2013 Free Software Foundation, Inc.
38843 Copying and distribution of this file, with or without modification,
38844 are permitted in any medium without royalty provided the copyright
38845 notice and this notice are preserved.