1 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
4 in contains_type_p query.
6 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
8 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
11 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
14 * omp-low.c: Remove leftover comment.
16 * omp-low.c (check_combined_parallel): Reflect reality in comment.
18 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
20 * doc/passes.texi (Pass manager): Refer to passes.def.
22 * doc/gccint.texi (Top): Fix inclusion order.
24 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
27 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
28 * config/arm/arm.md (generic_vfp): Remove cortexa12.
30 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
32 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
33 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
34 * config/arm/arm-tables.opt: Regenerate.
35 * config/arm/arm-tune.md: Regenerate.
37 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
39 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
41 * config/arm/arm-cores.def (cortex-a57): New.
42 * doc/invoke.texi: Document -mcpu=cortex-a57.
43 * config/arm/arm-tables.opt: Regenerate.
44 * config/arm/arm-tune.md: Regenerate.
45 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
47 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
49 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
50 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
51 * config/arm/arm-tables.opt: Regenerate.
52 * config/arm/arm-tune.md: Regenerate.
54 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
56 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
58 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
59 * config/arm/genopt.sh: Improve layout.
60 * config/arm/arm-tune.md: Regenerate.
61 * config/arm/arm-tables.opt: Regenerate.
62 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
63 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
64 (arm_option_override): When a CPU is chosen, that should also
66 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
68 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
70 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
71 (arm_rewrite_mcpu): Likewise.
72 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
73 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
74 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
75 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
76 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
77 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
79 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
81 * expmed.c (lowpart_bit_field_p): Fix comment.
82 (store_bit_field_using_insv): Fix formatting.
83 (store_bit_field): Likewise.
84 (store_fixed_bit_field): More declaration and remove return.
85 (store_fixed_bit_field_1): Fix formatting.
86 (extract_fixed_bit_field): Move declaration.
87 (extract_fixed_bit_field_1): Simplify.
89 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
91 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
93 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
95 2013-12-17 Jakub Jelinek <jakub@redhat.com>
97 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
98 instead of x as last gen_lowpart argument.
100 2013-12-16 Jakub Jelinek <jakub@redhat.com>
102 * predict.h (PROB_LIKELY): Fix the value.
103 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
104 for overflow checking for modes without 2xwider supported mode,
105 if the mode has 2xnarrower mode.
107 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
108 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
109 try to improve generated code if one of the arguments is constant
110 or get_range_info says that one of the argument is always
111 negative or always non-negative.
112 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
113 (simplify_stmt_using_ranges): Call it.
115 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
117 PR rtl-optimization/59466
118 * emit-rtl.c (change_address_1): Don't validate address for LRA.
119 * recog.c (general_operand): Accept any memory for LRA.
120 * lra.c (lra_set_insn_recog_data): Add an assert.
122 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
124 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
126 2013-12-14 Jan Hubicka <jh@suse.cz>
127 Markus Trippelsdorf <octoploid@yandex.com>
130 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
131 call is already devirtualized.
133 2013-12-16 Jakub Jelinek <jakub@redhat.com>
135 * Makefile.in (version.o): Restore dependencies on
136 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
138 2013-12-14 Jan Hubicka <jh@suse.cz>
141 * ipa-devirt.c (get_class_context): Do not ICE when type is found
144 2013-12-16 Jakub Jelinek <jakub@redhat.com>
147 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
148 reductions without placeholder if is_simd, but when not using
149 GOMP_SIMD* internal calls, also perform the reduction operation
150 on the outer var rather than simple assignment.
152 2013-12-16 Jakub Jelinek <jakub@redhat.com>
156 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
157 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
159 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
160 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
161 calls to supply the gimple operand containing the base tree
162 as an extra argument.
163 * tree-ssa-ter.c: Include gimple-walk.h.
164 (find_ssaname, find_ssaname_in_store): New helper functions.
165 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
166 same_root_var if USE is used somewhere in the stores of the stmt.
167 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
168 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
169 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
170 check_ipa_store): Likewise.
171 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
172 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
173 (verify_non_ssa_vars, visit_bb): Adjust their callers.
174 * cfgexpand.c (add_scope_conflicts_1): Use
175 walk_stmt_load_store_addr_fn type for visit variable.
176 (visit_op, visit_conflict): Remove name of the stmt
177 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
178 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
179 argument and ATTRIBUTE_UNUSED.
180 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
181 unnamed tree argument.
182 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
183 ATTRIBUTE_UNUSED from stmt parameter.
185 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
187 * opts-common.c (integral_argument): Add support for
188 hexadecimal command option integer arguments. Update comments.
190 2013-12-14 Jan Hubicka <jh@suse.cz>
193 * ipa-prop.c (ipa_analyze_call_uses): Skip already
196 2013-12-14 Jan Hubicka <jh@suse.cz>
198 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
200 2013-12-14 Jan Hubicka <jh@suse.cz>
203 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
205 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
208 * config/i386/i386.c (ix86_function_specific_restore): Don't
211 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
213 * var-tracking.c (add_stores): Fix oversight in latest commit.
215 2013-12-14 Marek Polacek <polacek@redhat.com>
218 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
219 expand_binop with correct optab depending on code.
221 2013-12-14 Tom de Vries <tom@codesourcery.com>
223 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
225 2013-12-13 DJ Delorie <dj@redhat.com>
227 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
229 * config/msp430/msp430.md (movqi): replace general_operand with
230 msp_general_operand and nonimmediate_operand with
231 msp_nonimmediate_operand to allow volatile operands.
236 (addhi3_cy): Likewise.
237 (addchi4_cy): Likewise.
238 (xor<mode>3): Likewise.
239 (ome_cmpl<mode>2): Likewise.
240 (extendqihi2): Likewise.
241 (zero_extendqihi2): Likewise.
242 (zero_extendhipsi2): Likewise.
243 (truncpsihi2): Likewise.
246 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
248 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
250 * lra-int.h (lra_init_equiv): New prototype.
251 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
252 (loc_equivalence_callback): Use the 3rd arg.
253 (lra_constraints): Update equivalences. Pass curr_insn to
254 simplify_replace_fn_rtx.
255 * lra.c (lra): Call lra_init_equiv.
257 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
259 * genmodes.c (emit_max_int): Fixed missing parens.
261 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
263 PR tree-optimization/59149
264 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
265 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
268 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
270 * config/arc/arc.h (BITS_PER_UNIT): Removed.
271 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
272 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
273 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
274 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
275 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
276 * config/spu/spu.h (BITS_PER_UNIT): Removed.
277 * defaults.h (BITS_PER_UNIT): Removed.
278 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
279 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
280 (MAX_BITSIZE_MODE_ANY_INT): Updated.
281 * doc/tm.texi (BITS_PER_UNIT): Removed.
282 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
283 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
284 (create_modes): Added code to set bits_per_unit and
285 max_bitsize_mode_any_int.
286 (emit_max_int): Changed code generation.
287 * mkconfig.sh: Added insn-modes.h.
289 2013-12-13 Jeff Law <law@redhat.com>
291 PR tree-optimization/45685
292 * tree-ssa-phiopt.c (neg_replacement): New function.
293 (tree_ssa_phiopt_worker): Call it.
295 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
297 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
299 2013-12-13 Bin Cheng <bin.cheng@arm.com>
301 PR tree-optimization/58296
302 PR tree-optimization/41488
303 * tree-scalar-evolution.c: Include necessary header files.
304 (simplify_peeled_chrec): New function.
305 (analyze_evolution_in_loop): New static variable.
306 Call simplify_peeled_chrec.
307 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
308 (add_old_iv_candidates): Don't add candidate for peeled IV.
309 * tree-affine.h (aff_combination_zero_p): New function.
311 2013-12-13 Nick Clifton <nickc@redhat.com>
313 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
314 true if the current function has the wakeup attribute.
315 (msp430_start_function): Note if the function has the wakeup
317 (msp430_attribute_table): Add wakeup attribute.
318 (msp430_expand_epilogue): Add support for wakeup functions.
319 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
320 the DINT instruction.
321 * doc/extend.texi: Document the wakeup attribute.
323 2013-12-13 Kai Tietz <kitetz@redhat.com>
326 * config/i386/i386.c (ix86_option_override_internal): Set for
327 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
330 2013-12-12 Jeff Law <law@redhat.com>
332 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
333 for zero-extended MULT simple LEA pattern.
335 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
338 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
341 2013-12-12 Jakub Jelinek <jakub@redhat.com>
344 * gimplify.c (omp_check_private): Add copyprivate argument, if it
345 is true, don't check omp_privatize_by_reference.
346 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
347 decl is private in outer context. Adjust omp_check_private caller.
349 2013-12-11 Jeff Law <law@redhat.com>
351 PR rtl-optimization/59446
352 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
353 test for crossing a loop header.
355 2013-12-11 Sriraman Tallam <tmsriram@google.com>
358 * config/i386/i386.c (get_builtin): New function.
359 (ix86_builtin_vectorized_function): Replace all instances of
360 ix86_builtins[...] with get_builtin(...).
361 (ix86_builtin_reciprocal): Ditto.
363 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
365 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
366 (lang_hooks_for_cilkplus): Remove.
367 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
368 (lhd_install_body_with_frame_cleanup): Likewise.
369 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
370 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
371 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
372 (LANG_HOOKS_CILKPLUS): Likewise.
373 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
374 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
375 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
376 (gimplify_call_expr): Likewise.
378 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
380 * expr.c (expand_assignment): Remove dependency on
381 flag_strict_volatile_bitfields. Always set the memory
383 (expand_expr_real_1): Likewise.
385 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
388 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
389 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
390 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
392 (store_fixed_bit_field_1): New function.
393 (store_split_bit_field): Limit the unit size to the memory mode size,
394 to prevent recursion.
396 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
397 Sandra Loosemore <sandra@codesourcery.com>
403 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
404 and bitregion_end parameters. Test for compliance with C++
406 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
407 Add fallback logic for cases where -fstrict-volatile-bitfields
408 is supposed to apply, but cannot.
409 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
410 extract_fixed_bit_field_1 to do the extraction.
411 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
412 Call extract_fixed_bit_field_1 to do the real work.
413 (extract_fixed_bit_field_1): New function.
415 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
421 * expmed.c (strict_volatile_bitfield_p): New function.
422 (store_bit_field_1): Don't special-case strict volatile
424 (store_bit_field): Handle strict volatile bitfields here instead.
425 (store_fixed_bit_field): Don't special-case strict volatile
427 (extract_bit_field_1): Don't special-case strict volatile
429 (extract_bit_field): Handle strict volatile bitfields here instead.
430 (extract_fixed_bit_field): Don't special-case strict volatile
431 bitfields here. Simplify surrounding code to resemble that in
432 store_fixed_bit_field.
433 * doc/invoke.texi (Code Gen Options): Update
434 -fstrict-volatile-bitfields description.
436 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
438 * configure.ac: Add check for aarch64 assembler -mabi support.
439 * configure: Regenerate.
440 * config.in: Regenerate.
441 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
442 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
443 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
444 if assembler does not support -mabi and option ilp32 is selected.
445 * doc/install.texi: Added note that building gcc 4.9 and after
446 with pre 2.24 binutils will not support -mabi=ilp32.
448 2013-12-11 Marek Polacek <polacek@redhat.com>
451 * expr.c (expand_expr_real_1): Remove assert dealing with
452 internal calls and turn that into a condition instead.
454 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
456 * config/arm/arm.opt (mlra): Enable LRA by default.
458 2013-12-11 Jakub Jelinek <jakub@redhat.com>
460 PR tree-optimization/59417
461 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
462 in a different bb rhan var, only duplicate points-to info and
463 not alignment info and don't duplicate range info.
464 * tree-ssa-loop-niter.c (determine_value_range): Instead of
465 assertion failure handle inconsistencies in range info by only
466 using var's range info and not PHI result range infos.
468 PR tree-optimization/59386
469 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
470 unshare_expr (id->retval) before passing it to gimple_build_assign.
472 2013-12-11 Bin Cheng <bin.cheng@arm.com>
475 2013-12-10 Bin Cheng <bin.cheng@arm.com>
476 PR tree-optimization/41488
477 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
478 for PEELED_CHREC kind IV.
479 * tree-scalar-evolution.c: Include necessary header files.
480 (peeled_chrec_map, simplify_peeled_chrec): New.
481 (analyze_evolution_in_loop): New static variable.
482 Call simplify_peeled_chrec.
483 (scev_initialize): Initialize peeled_chrec_map.
484 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
486 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
489 * config/i386/i386.md (*movsf_internal): Set mode to SI for
492 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
494 PR rtl-optimization/58295
495 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
496 WORD_REGISTER_OPERATIONS targets.
498 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
500 * genrecog.c (validate_pattern): Treat all messages except missing
502 * config/epiphany/epiphany.md: Remove constraints from
504 * config/h8300/h8300.md: Remove constraints from define_splits.
505 * config/msp430/msp430.md: Likewise.
506 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
507 nonimmediate_operand rather than general_operand for operand 0.
508 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
509 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
510 Use match_operator rather than match_test to invoke general_operand.
511 * config/v850/v850.md (*movqi_internal, *movhi_internal)
512 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
514 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
516 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
517 register_operand rather than pointer_operand. Add modes to the
519 (insn_ldna_add<bitsuffix>): Likewise.
520 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
521 (insn_ldnt_add<bitsuffix>): Likewise.
522 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
523 (insn_ld_add_L2<bitsuffix>): Likewise.
524 (insn_ldna_add_L2<bitsuffix>): Likewise.
525 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
526 (insn_ldnt_add_L2<bitsuffix>): Likewise.
527 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
528 (insn_ld_add_miss<bitsuffix>): Likewise.
529 (insn_ldna_add_miss<bitsuffix>): Likewise.
530 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
531 (insn_ldnt_add_miss<bitsuffix>): Likewise.
532 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
533 (insn_st_add<bitsuffix>): Likewise.
534 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
535 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
536 (insn_stnt_add<bitsuffix>): Likewise.
537 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
538 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
539 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
540 reg_or_0_operand for operand 0.
541 (insn_v2<pack_insn>): Likewise.
542 (vec_pack_hipart_v4hi): Likewise.
543 (insn_v2packh): Likewise.
544 (vec_pack_ssat_v2si): Likewise.
545 (insn_v4packsc): Likewise.
547 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
549 * basic-block.h (gcov_working_set_t): Put back typedef.
550 * gcov-io.h (gcov_bucket_type): Likewise.
551 (gcov_working_set_info, gcov_working_set_t): Likewise.
553 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
555 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
557 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
558 rename to cgraph_inline_failed_t.
559 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
561 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
563 * conditions.h (CC_STATUS): Remove typedef.
564 * bitmap.h (bitmap_obstack): Remove typedef.
565 (bitmap_element_def, bitmap_element): Remove typedef and rename to
567 (bitmap_head_def, bitmap_head): Remove typedef and rename to
569 (bitmap_iterator): Remove typedef.
570 * target.h (cumulative_args_t, print_switch_type,
571 secondary_reload_info): Remove typedef.
572 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
573 dw_cfi_oprnd_struct alias.
574 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
575 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
576 (cfa_loc, dw_cfa_location): Remove typedef and rename to
578 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
580 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
581 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
583 * params.h (param_info, compiler_param): Remove typedef.
584 * opts.h (cl_deferred_param): Remove typedef.
585 * sreal.h (sreal): Remove typedef.
586 * ddg.h (dep_type, dep_data_type): Remove typedef.
587 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
589 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
590 lto_symtab_encoder_iterator, res_pair): Remove typedef.
591 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
592 and rename to aff_tree.
593 * sched-int.h (region): Remove typedef.
594 * diagnostic.h (diagnostic_info,
595 diagnostic_classification_change_t): Remove typedef.
596 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
598 * sbitmap.h (sbitmap_iterator): Remove typedef.
599 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
600 Remove typedef and rename to imm_use_iterator.
601 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
603 * ggc-internal.h (ggc_statistics): Remove typedef.
604 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
605 rename to cselib_val.
606 * tree-core.h (alias_pair): Remove typedef.
607 (constructor_elt_d, constructor_elt): Remove typedef and rename to
609 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
611 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
612 * tree-data-ref.h (conflict_function): Remove typedef.
613 * tree-inline.h (copy_body_data): Remove typedef.
614 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
615 edge_growth_cache_entry): Remove typedef.
616 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
617 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
618 Remove typedef and rename to gimple_stmt_iterator.
619 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
620 rename to ce_if_block.
621 (edge_iterator): Remove typedef.
622 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
623 and rename to ipa_agg_jf_item.
624 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
625 ipa_parm_adjustment_t): Remove typedef.
626 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
628 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
630 * gcov-io.h (gcov_bucket_type): Remove typedef.
631 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
632 to gcov_working_set_t.
633 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
634 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
635 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
636 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
637 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
638 replace_label_data): Remove typedef.
639 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
640 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
641 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
642 sel_region_bb_info_def, succ_iterator): Remove typedef.
643 (deps_where_def, deps_where_t): Remove typedef and rename to
645 * coretypes.h: Adapt forward declarations.
646 * tree-scalar-evolution.h: Likewise.
647 * tree-ssa-address.h: Likewise.
648 * tree-ssa-operands.h: Likewise.
649 * function.h: Likewise.
650 * config/frv/frv-protos.h: Likewise.
651 * targhooks.h: Likewise.
652 * basic_block.h: Likewise.
653 * rtl.def: Adapt documentation.
654 * doc/tm.texi: Likewise.
655 * ipa-cp.c: Adapt uses.
656 * bitmap.c: Likewise.
657 * dwarf2out.c: Likewise.
658 * target.def: Likewise.
659 * ipa-inline-analysis.c: Likewise.
660 * dwarf2cfi.c: Likewise.
661 * tree-ssa-loop-ivopts.c: Likewise.
662 * lto-cgraph.c: Likewise.
663 * config/frv/frv.c: Likewise.
665 * ipa-prop.c: Likewise.
667 2013-12-10 Kai Tietz <ktietz@redhat.com>
670 * config/i386/i386.c (ix86_expand_prologue): Address saved
671 registers stack-relative, not via frame-pointer.
673 2013-12-10 Richard Biener <rguenther@suse.de>
676 * tree-ssa-structalias.c (solution_set_expand): Expand into
677 a different possibly cached bitmap and return the result.
678 (set_union_with_increment): Pass in a shared expanded bitmap
680 (do_sd_constraint): Likewise.
681 (do_ds_constraint): Likewise.
682 (do_complex_constraint): Likewise.
683 (solve_graph): Manage the shared expanded bitmap.
685 2013-12-10 Jakub Jelinek <jakub@redhat.com>
687 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
688 (LOOP_VINFO_SCALAR_LOOP): Define.
689 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
690 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
691 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
693 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
695 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
697 (release_bb_predicate): New function.
698 (free_bb_predicate): Use it.
699 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
700 just to immediately allocate it again.
701 (add_to_predicate_list): Add loop argument. If basic blocks that
702 dominate loop->latch don't insert any predicate.
703 (add_to_dst_predicate_list): Adjust caller.
704 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
705 handle it like flag_tree_loop_if_convert_stores.
706 (insert_gimplified_predicates): Likewise.
707 (ifcvt_can_use_mask_load_store): New function.
708 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
709 argument, check if some conditional loads or stores can't be
710 converted into MASK_LOAD or MASK_STORE.
711 (if_convertible_stmt_p): Add any_mask_load_store argument,
712 pass it down to if_convertible_gimple_assign_stmt_p.
713 (predicate_bbs): Don't return bool, only check if the last stmt
714 of a basic block is GIMPLE_COND and handle that. Adjust
715 add_to_predicate_list caller.
716 (if_convertible_loop_p_1): Only call predicate_bbs if
717 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
718 afterwards, check gimple_code of stmts here. Replace is_predicated
719 check with dominance check. Add any_mask_load_store argument,
720 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
721 call if_convertible_phi_p only after all if_convertible_stmt_p
723 (if_convertible_loop_p): Add any_mask_load_store argument,
724 pass it down to if_convertible_loop_p_1.
725 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
726 (combine_blocks): Add any_mask_load_store argument, pass
727 it down to insert_gimplified_predicates and call predicate_mem_writes
728 if it is set. Call predicate_bbs.
729 (version_loop_for_if_conversion): New function.
730 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
731 calls. Return todo flags instead of bool, call
732 version_loop_for_if_conversion if if-conversion should be just
733 for the vectorized loops and nothing else.
734 (main_tree_if_conversion): Adjust caller. Don't call
735 tree_if_conversion for dont_vectorize loops if if-conversion
736 isn't explicitly enabled.
737 * tree-vect-data-refs.c (vect_check_gather): Handle
738 MASK_LOAD/MASK_STORE.
739 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
740 * gimple.h (gimple_expr_type): Handle MASK_STORE.
741 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
742 expand_MASK_STORE): New functions.
743 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
744 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
745 (vectorize_loops): Don't try to vectorize loops with
746 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
747 loops, fold LOOP_VECTORIZED internal call depending on if loop
748 has been vectorized or not.
749 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
751 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
752 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
753 still to loop's entry or exit edge.
754 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
755 down to slpeel_tree_duplicate_loop_to_edge_cfg.
756 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
758 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
759 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
760 right place in the CFG afterwards.
761 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
763 * cfgloop.h (struct loop): Add dont_vectorize field.
764 * tree-loop-distribution.c (copy_loop_before): Adjust
765 slpeel_tree_duplicate_loop_to_edge_cfg caller.
766 * optabs.def (maskload_optab, maskstore_optab): New optabs.
767 * passes.def: Add a note that pass_vectorize must immediately follow
769 * tree-predcom.c (split_data_refs_to_components): Give up if
771 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
773 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
775 (vectorizable_mask_load_store): New function.
776 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
777 (vect_transform_stmt): Handle MASK_STORE.
778 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
779 DR_STMT where lhs is NULL.
780 * optabs.h (can_vec_perm_p): Fix up comment typo.
781 (can_vec_mask_load_store_p): New prototype.
782 * optabs.c (can_vec_mask_load_store_p): New function.
784 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
786 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
787 the extraction of a bit-field of null size.
789 2013-12-10 Marek Polacek <polacek@redhat.com>
792 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
793 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
794 instead of gimple_code.
796 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
798 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
799 Add android definitions.
800 (s390x-*-linux*): Use linux-protos.h.
802 2013-12-10 Bin Cheng <bin.cheng@arm.com>
804 PR tree-optimization/41488
805 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
806 for PEELED_CHREC kind IV.
807 * tree-scalar-evolution.c: Include necessary header files.
808 (peeled_chrec_map, simplify_peeled_chrec): New.
809 (analyze_evolution_in_loop): New static variable.
810 Call simplify_peeled_chrec.
811 (scev_initialize): Initialize peeled_chrec_map.
812 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
814 2013-12-09 Andrew Pinski <apinski@cavium.com>
816 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
817 that options are conflicting ones.
819 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
821 * optabs.c (gen_int_libfunc): Do not compare modes directly.
823 2013-12-09 David Malcolm <dmalcolm@redhat.com>
825 * basic-block.h (FOR_ALL_BB): Eliminate macro.
827 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
828 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
830 * cfganal.c (inverted_post_order_compute): Likewise.
831 * cfgcleanup.c (try_optimize_cfg): Likewise.
832 * cfgexpand.c (add_scope_conflicts): Likewise.
833 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
834 * cfgrtl.c (relink_block_chain): Likewise.
835 * dce.c (mark_artificial_uses): Likewise.
836 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
837 * df-problems.c (df_lr_verify_solution_start,
838 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
839 df_live_verify_solution_start, df_live_verify_solution_end,
840 df_live_set_all_dirty, df_live_verify_transfer_functions,
841 df_md_local_comput): Likewise.
842 * df-scan.c (df_scan_free_internal, df_scan_alloc)
843 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
844 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
845 free_dominance_info): Likewise.
846 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
847 * graph.c (draw_cfg_edges): Likewise.
848 * graphite-scop-detection.c (print_graphite_scop_statistics,
849 dot_all_scops_1): Likewise.
850 * graphite.c (print_global_statistics,
851 print_graphite_scop_statistics): Likewise.
852 * ira.c (do_reload): Likewise.
853 * loop-init.c (loop_optimizer_finalize): Likewise.
854 * lto-streamer-in.c (input_function): Likewise.
855 * lto-streamer-out.c (output_function): Likewise.
856 * mcf.c (adjust_cfg_counts): Likewise.
857 * predict.c (estimate_loops): Likewise.
858 * sched-rgn.c (haifa_find_rgns): Likewise.
859 * tree-cfg.c (split_critical_edges): Likewise.
860 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
861 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
862 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
863 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
864 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
865 * vtable-verify.c (vtable_verify_main): Likewise.
866 * web.c (web_main): Likewise.
868 2013-12-09 David Malcolm <dmalcolm@redhat.com>
870 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
872 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
873 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
874 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
875 rtl_verify_bb_insns, rtl_verify_bb_pointers,
876 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
877 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
878 * config/sh/sh.c (sh_md_init_global): Likewise.
879 * config/sh/sh_optimize_sett_clrt.cc
880 (sh_optimize_sett_clrt::execute): Likewise.
881 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
883 * dominance.c (calc_dfs_tree): Likewise.
884 * final.c (final): Likewise.
885 * function.c (thread_prologue_and_epilogue_insns): Likewise.
886 * gcse.c (compute_code_hoist_vbeinout): Likewise.
887 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
888 * lcm.c (compute_antinout_edge): Likewise.
889 * mode-switching.c (optimize_mode_switching): Likewise.
890 * postreload.c (reload_combine): Likewise.
891 * recog.c (split_all_insns, peephole2_optimize): Likewise.
892 * tree-ssa-live.c (live_worklist): Likewise.
894 2013-12-09 David Malcolm <dmalcolm@redhat.com>
896 * basic-block.h (FOR_EACH_BB): Eliminate macro.
898 * asan.c (transform_statements, execute_sanopt): Eliminate
899 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
901 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
902 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
903 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
904 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
905 insert_section_boundary_note, rest_of_handle_reorder_blocks,
906 duplicate_computed_gotos): Likewise.
907 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
908 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
909 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
910 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
911 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
912 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
914 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
915 verify_loop_structure): Likewise.
916 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
917 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
918 verify_hot_cold_block_grouping, purge_all_dead_edges,
919 fixup_abnormal_edges, record_effective_endpoints,
920 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
921 break_superblocks): Likewise.
922 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
923 cgraph_rebuild_references): Likewise.
924 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
925 * combine.c (delete_noop_moves, create_log_links,
926 combine_instructions): Likewise.
927 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
928 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
930 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
931 c6x_reorg): Likewise.
932 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
933 * config/frv/frv.c (frv_optimize_membar): Likewise.
934 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
935 * config/ia64/ia64.c (ia64_reorg): Likewise.
936 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
937 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
938 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
939 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
940 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
941 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
942 * config/tilegx/tilegx.c (tilegx_gen_bundles,
943 reorder_var_tracking_notes): Likewise.
944 * config/tilepro/tilepro.c (tilepro_gen_bundles,
945 reorder_var_tracking_notes): Likewise.
946 * coverage.c (coverage_compute_cfg_checksum): Likewise.
947 * cprop.c (compute_hash_table_work, compute_cprop_data,
948 local_cprop_pass, find_implicit_sets): Likewise.
949 * cse.c (cse_condition_code_reg): Likewise.
950 * dce.c (prescan_insns_for_dce): Likewise.
951 * df-core.c (df_compact_blocks): Likewise.
952 * df-problems.c (df_word_lr_alloc): Likewise.
953 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
954 df_update_entry_exit_and_calls): Likewise.
955 * dominance.c (calculate_dominance_info, verify_dominators,
956 debug_dominance_info): Likewise.
957 * dse.c (dse_step5_nospill): Likewise.
958 * except.c (finish_eh_generation): Likewise.
959 * final.c (compute_alignments): Likewise.
960 * function.c (thread_prologue_and_epilogue_insns,
961 rest_of_match_asm_constraints): Likewise.
962 * gcse.c (compute_hash_table_work, prune_expressions,
963 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
964 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
965 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
966 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
967 find_explicit_erroneous_behaviour): Likewise.
968 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
969 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
970 * haifa-sched.c (haifa_sched_init): Likewise.
971 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
973 * ifcvt.c (if_convert): Likewise.
974 * init-regs.c (initialize_uninitialized_regs): Likewise.
975 * ipa-prop.c (ipcp_transform_function): Likewise.
976 * ipa-pure-const.c (analyze_function): Likewise.
977 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
978 * ira-build.c (form_loop_tree): Likewise.
979 * ira-costs.c (find_costs_and_classes): Likewise.
980 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
981 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
982 mark_elimination, update_equiv_regs, find_moveable_pseudos,
983 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
984 * jump.c (mark_all_labels): Likewise.
985 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
986 compute_nearerout, compute_rev_insert_delete): Likewise.
987 * loop-init.c (fix_loop_structure): Likewise.
988 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
989 * lower-subreg.c (decompose_multiword_subregs,
990 decompose_multiword_subregs): Likewise.
991 * lra-assigns.c (assign_by_spills): Likewise.
992 * lra-coalesce.c (lra_coalesce): Likewise.
993 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
995 * lra-eliminations.c (lra_init_elimination): Likewise.
996 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
997 lra_final_code_change): Likewise.
998 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
999 update_inc_notes): Likewise.
1000 * mcf.c (adjust_cfg_counts): Likewise.
1001 * mode-switching.c (optimize_mode_switching): Likewise.
1002 * modulo-sched.c (rest_of_handle_sms): Likewise.
1003 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1004 expand_omp_target): Likewise.
1005 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1006 * postreload.c (reload_cse_regs_1): Likewise.
1007 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1008 tree_estimate_probability, expensive_function_p,
1009 estimate_bb_frequencies, compute_function_frequency): Likewise.
1010 * profile.c (is_inconsistent, compute_branch_probabilities,
1011 branch_prob): Likewise.
1012 * ree.c (find_removable_extensions): Likewise.
1013 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1014 * regcprop.c (copyprop_hardreg_forward): Likewise.
1015 * reginfo.c (init_subregs_of_mode): Likewise.
1016 * regrename.c (regrename_analyze): Likewise.
1017 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1019 * reload1.c (has_nonexceptional_receiver, reload,
1020 calculate_elim_costs_all_insns): Likewise.
1021 * resource.c (init_resource_info, free_resource_info): Likewise.
1022 * sched-ebb.c (schedule_ebbs): Likewise.
1023 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1024 haifa_find_rgns, sched_rgn_local_init): Likewise.
1025 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1026 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1027 make_regions_from_the_rest): Likewise.
1028 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1029 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1030 * store-motion.c (compute_store_table, build_store_vectors,
1031 one_store_motion_pass): Likewise.
1032 * tracer.c (tail_duplicate): Likewise.
1033 * trans-mem.c (compute_transaction_bits): Likewise.
1034 * tree-call-cdce.c (tree_call_cdce): Likewise.
1035 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1036 fold_cond_expr_cond, make_edges, assign_discriminators,
1037 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1038 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1039 execute_fixup_cfg): Likewise.
1040 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1041 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1043 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1044 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1045 mark_reachable_handlers): Likewise.
1046 * tree-emutls.c (lower_emutls_function_body): Likewise.
1047 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1048 * tree-inline.c (optimize_inline_calls): Likewise.
1049 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1050 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1051 * tree-object-size.c (compute_object_sizes): Likewise.
1052 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1053 insert_backedge_copies, tree_profiling): Likewise.
1054 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1055 * tree-sra.c (scan_function, sra_modify_function_body,
1056 propagate_dereference_distances, ipa_sra_modify_function_body,
1057 convert_callers): Likewise.
1058 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1059 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1060 create_outofssa_var_map, coalesce_partitions): Likewise.
1061 * tree-ssa-copy.c (init_copy_prop): Likewise.
1062 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1063 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1064 eliminate_unnecessary_stmts): Likewise.
1065 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1067 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1068 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1069 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1070 analyze_memory_references, fill_always_executed_in,
1071 tree_ssa_lim_finalize): Likewise.
1072 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1074 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1075 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1076 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1077 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1078 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1080 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1081 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1082 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1083 tree_ssa_uncprop): Likewise.
1084 * tree-ssa-uninit.c (warn_uninitialized_vars,
1085 execute_late_warn_uninitialized): Likewise.
1086 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1087 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1089 * tree-switch-conversion.c (do_switchconv): Likewise.
1090 * tree-vect-generic.c (expand_vector_operations): Likewise.
1091 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1092 execute_vect_slp): Likewise.
1093 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1094 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1096 * ubsan.c (ubsan_pass): Likewise.
1097 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1098 gimple_find_values_to_profile): Likewise.
1099 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1100 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1102 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1104 * basic-block.h (last_basic_block): Eliminate macro.
1106 * asan.c (transform_statements): Eliminate use of last_basic_block
1107 in favor of last_basic_block_for_fn, in order to make use of cfun
1109 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1110 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1111 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1112 * cfg.c (compact_blocks): Likewise.
1113 * cfganal.c (mark_dfs_back_edges,
1114 control_dependences::control_dependences, post_order_compute,
1115 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1116 single_pred_before_succ_order): Likewise.
1117 * cfgbuild.c (make_edges): Likewise.
1118 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1119 * cfghooks.c (verify_flow_info): Likewise.
1120 * cfgloop.c (verify_loop_structure): Likewise.
1121 * cfgloopanal.c (just_once_each_iteration_p,
1122 mark_irreducible_loops): Likewise.
1123 * cfgloopmanip.c (fix_bb_placements, remove_path,
1124 update_dominators_in_loop): Likewise.
1125 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1126 break_superblocks, rtl_flow_call_edges_add): Likewise.
1127 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1128 * config/frv/frv.c (frv_optimize_membar): Likewise.
1129 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1130 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1131 * cprop.c (compute_local_properties, find_implicit_sets,
1132 bypass_conditional_jumps, one_cprop_pass): Likewise.
1133 * cse.c (cse_main): Likewise.
1134 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1135 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1136 * df-problems.c (df_lr_verify_solution_start,
1137 df_live_verify_solution_start, df_md_local_compute): Likewise.
1138 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1139 calc_idoms): Likewise.
1140 * domwalk.c (dom_walker::walk): Likewise.
1141 * dse.c (dse_step0, dse_step3): Likewise.
1142 * function.c (epilogue_done): Likewise.
1143 * gcse.c (alloc_gcse_mem, compute_local_properties,
1144 prune_insertions_deletions, compute_pre_data,
1145 pre_expr_reaches_here_p, one_pre_gcse_pass,
1146 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1147 one_code_hoisting_pass): Likewise.
1148 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1149 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1150 * haifa-sched.c (unlink_bb_notes): Likewise.
1151 * ipa-split.c (execute_split_functions): Likewise.
1152 * ira-build.c (create_loop_tree_nodes,
1153 remove_unnecessary_regions): Likewise.
1154 * ira-emit.c (ira_emit): Likewise.
1155 * ira.c (find_moveable_pseudos, ira): Likewise.
1156 * lcm.c (compute_antinout_edge, compute_laterin,
1157 compute_insert_delete, pre_edge_lcm, compute_available,
1158 compute_nearerout, compute_rev_insert_delete,
1159 pre_edge_rev_lcm): Likewise.
1160 * loop-unroll.c (opt_info_start_duplication,
1161 apply_opt_in_copies): Likewise.
1162 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1163 * lra-lives.c (lra_create_live_ranges): Likewise.
1164 * lra.c (lra): Likewise.
1165 * mode-switching.c (optimize_mode_switching): Likewise.
1166 * recog.c (split_all_insns): Likewise.
1167 * regcprop.c (copyprop_hardreg_forward): Likewise.
1168 * regrename.c (regrename_analyze): Likewise.
1169 * reload1.c (reload): Likewise.
1170 * resource.c (init_resource_info): Likewise.
1171 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1172 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1173 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1174 recompute_rev_top_order, sel_init_pipelining,
1175 make_regions_from_the_rest): Likewise.
1176 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1178 * tracer.c (tail_duplicate): Likewise.
1179 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1180 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1181 gimple_flow_call_edges_add): Likewise.
1182 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1183 cleanup_tree_cfg_1): Likewise.
1184 * tree-complex.c (tree_lower_complex): Likewise.
1185 * tree-inline.c (copy_cfg_body): Likewise.
1186 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1187 prepare_def_site_for, update_ssa): Likewise.
1188 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1189 * tree-ssa-dom.c (record_edge_info): Likewise.
1190 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1191 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1192 * tree-ssa-loop-manip.c (copy_phi_node_args
1193 gimple_duplicate_loop_to_header_edge): Likewise.
1194 * tree-ssa-pre.c (compute_antic): Likewise.
1195 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1196 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1197 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1198 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1199 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1200 * tree-stdarg.c (reachable_at_most_once): Likewise.
1201 * tree-vrp.c (find_assert_locations): Likewise.
1202 * var-tracking.c (vt_find_locations): Likewise.
1204 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1206 * basic-block.h (profile_status): Eliminate macro.
1208 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1209 profile_status macro in favor of profile_status_for_fn, making
1210 use of cfun explicit.
1211 * cfghooks.c (account_profile_record): Likewise.
1212 * cfgloopanal.c (single_likely_exit):
1213 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1214 * graphite.c (graphite_finalize):
1215 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1216 ubsan_expand_si_overflow_neg_check,
1217 ubsan_expand_si_overflow_mul_check): Likewise.
1218 * ipa-split.c (consider_split, execute_split_functions):
1219 * loop-unroll.c (decide_peel_simple):
1220 * optabs.c (emit_cmp_and_jump_insn_1):
1221 * predict.c (maybe_hot_edge_p, probably_never_executed,
1222 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1223 tree_estimate_probability_driver, estimate_bb_frequencies,
1224 compute_function_frequency, rebuild_frequencies): Likewise.
1225 * profile.c (compute_branch_probabilities): Likewise.
1226 * tree-cfg.c (gimple_account_profile_record): Likewise.
1227 * tree-inline.c (optimize_inline_calls): Likewise.
1229 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1231 * basic-block.h (label_to_block_map): Eliminate macro.
1233 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1234 with uses of label_to_block_map_for_fn, making uses of cfun be
1236 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1237 (verify_gimple_label): Likewise.
1239 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1241 * basic-block.h (basic_block_info): Eliminate macro.
1243 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1244 basic_block_info with basic_block_info_for_fn, making uses
1245 of cfun be explicit.
1246 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1248 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1250 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1252 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1253 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1254 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1255 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1256 * caller-save.c (insert_one_insn): Likewise.
1257 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1258 * cfgexpand.c (add_scope_conflicts): Likewise.
1259 * cfghooks.c (verify_flow_info): Likewise.
1260 * cfgloop.c (flow_loops_find): Likewise.
1261 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1262 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1263 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1264 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1265 * cse.c (cse_main): Likewise.
1266 * dce.c (fast_dce): Likewise.
1267 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1268 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1269 df_bb_replace, df_dump_region): Likewise.
1270 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1271 df_live_bb_local_compute, df_chain_remove_problem)
1272 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1273 df_md_bb_local_compute, df_md_local_compute,
1274 df_md_transfer_function): Likewise.
1275 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1276 df_reorganize_refs_by_insn, df_bb_refs_collect,
1277 df_record_entry_block_defs, df_update_entry_block_defs,
1278 df_record_exit_block_uses): Likewise.
1279 * dominance.c (nearest_common_dominator_for_set): Likewise.
1280 * gcse.c (hoist_code): Likewise.
1281 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1282 * ipa-inline-analysis.c (param_change_prob,
1283 estimate_function_body_sizes): Likewise.
1284 * ipa-split.c (dominated_by_forbidden): Likewise.
1285 * loop-unroll.c (apply_opt_in_copies): Likewise.
1286 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1287 * lra-lives.c (lra_create_live_ranges): Likewise.
1288 * predict.c (propagate_freq): Likewise.
1289 * regrename.c (regrename_analyze): Likewise.
1290 * regstat.c (regstat_bb_compute_ri,
1291 regstat_bb_compute_calls_crossed): Likewise.
1292 * resource.c (mark_target_live_regs): Likewise.
1293 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1294 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1295 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1296 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1297 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1298 * sched-vis.c (debug_bb_n_slim): Likewise.
1299 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1300 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1301 * sel-sched.c (remove_insns_that_need_bookkeeping)
1302 (current_region_empty_p, sel_region_init,
1303 simplify_changed_insns): Likewise.
1304 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1305 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1306 * tree-cfg.c (make_edges, end_recording_case_labels,
1307 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1308 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1309 gimple_purge_all_dead_eh_edges,
1310 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1311 * tree-cfgcleanup.c (fixup_noreturn_call,
1312 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1313 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1314 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1315 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1316 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1317 * tree-ssa-live.c (live_worklist): Likewise.
1318 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1319 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1320 * tree-ssa-pre.c (compute_antic): Likewise.
1321 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1322 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1323 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1324 same_succ_flush_bbs, update_worklist, set_cluster,
1325 same_phi_alternatives, find_clusters_1, apply_clusters,
1326 update_debug_stmts): Likewise.
1327 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1328 thread_through_all_blocks): Likewise.
1329 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1330 * tree-vrp.c (find_assert_locations): Likewise.
1332 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1334 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1336 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1337 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1338 (expunge_block): Likewise.
1339 * cfgrtl.c (create_basic_block_structure): Likewise.
1340 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1341 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1342 * tree-cfg.c (create_bb): Likewise.
1344 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1346 * basic-block.h (profile_status_for_function): Rename to...
1347 (profile_status_for_fn): ...this.
1349 * cfg.c (check_bb_profile): Update for renaming.
1350 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1351 * lto-streamer-in.c (input_cfg): Likewise.
1352 * lto-streamer-out.c (output_cfg): Likewise.
1353 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1354 maybe_hot_bb_p, probably_never_executed)
1355 (handle_missing_profiles): Likewise.
1356 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1357 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1359 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1361 * basic-block.h (label_to_block_map_for_function): Rename to...
1362 (label_to_block_map_for_fn): ...this.
1364 * lto-streamer-in.c (input_cfg): Update for renaming.
1365 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1367 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1369 * basic-block.h (last_basic_block_for_function): Rename to...
1370 (last_basic_block_for_fn): ...this.
1372 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1373 last_basic_block_for_function to last_basic_block_for_fn.
1374 * lto-streamer-in.c (input_cfg): Likewise.
1375 * lto-streamer-out.c (output_cfg): Likewise.
1376 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1377 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1380 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1382 * basic-block.h (basic_block_info_for_function): Rename to...
1383 (basic_block_info_for_fn): ...this.
1384 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1385 (BASIC_BLOCK_FOR_FN): ...this.
1386 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1387 (SET_BASIC_BLOCK_FOR_FN): ...this.
1389 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1390 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1391 * ipa-utils.c (ipa_merge_profiles): Likewise.
1392 * lto-streamer-in.c (make_new_block): Update for renaming of
1393 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1394 (input_cfg): Update for renamings.
1395 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1396 (dump_function_to_file): Update for renaming of
1397 basic_block_info_for_function to basic_block_info_for_fn.
1399 2013-12-09 Richard Biener <rguenther@suse.de>
1402 * tree-ssa-structalias.c (set_union_with_increment): Remove
1404 (do_complex_constraint): Call set_union_with_increment with
1405 the solution delta, not the full solution.
1406 (make_transitive_closure_constraints): Merge the two
1409 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1411 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1412 more address validation checks.
1414 2013-12-09 Marek Polacek <polacek@redhat.com>
1417 * vtable-verify.c (verify_bb_vtables): Check the return value
1418 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1420 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1422 * config/arm/arm.md (generic_sched): Add cortexa12.
1423 (generic_vfp): Likewise.
1424 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1425 (arm_cortex_a12_tune): New tuning struct.
1426 * config/arm/arm-cores.def: Add cortex-a12.
1427 * config/arm/arm-tables.opt: Regenerate.
1428 * config/arm/arm-tune.md: Likewise.
1429 * config/arm/bpabi.h: Add cortex-a12.
1430 * doc/invoke.texi: Document -mcpu=cortex-a12.
1432 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1434 * doc/install.texi (Prerequisites): Explicitly mention C library
1435 and its headers for multilib builds.
1437 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1441 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1442 OPT_mcbranchdi entry.
1443 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1445 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1446 and TARGET_CMPEQDI_T variables.
1447 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1449 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1451 * config/linux.h: Fix typo in a comment.
1453 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1455 * config.gcc (*linux*): Split libc selection from Android support.
1456 Add libc selection to all *linux* targets. Add Android support to
1457 architectures that support it.
1458 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1459 (mips*-*-linux*): Add Android support.
1461 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1462 Maxim Kuvyrkov <maxim@kugelworks.com>
1464 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1465 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1466 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1468 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1470 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1471 Define appropriately for Linux and uClinux targets.
1473 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1475 * config/linux.c (linux_has_ifunc_p): Use correct test.
1477 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1479 * config/linux.c (linux_android_has_ifunc_p): Rename to
1481 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1482 * config/linux-protos.h (linux_android_has_ifunc_p,)
1483 (linux_android_libc_has_function): Update declarations.
1484 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1485 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1487 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1489 * linux-android.c: Rename to linux.c.
1490 * t-linux-android: Rename to t-linux. Update references
1492 * config.gcc: Update references to t-linux-android and linux-android.o.
1494 2013-12-07 Alan Modra <amodra@gmail.com>
1496 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1499 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1501 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1503 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1505 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1508 2013-12-06 Caroline Tice <cmtice@google.com>
1510 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1511 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1512 vtable pointer with the results of the verification call, rather than
1513 only the uses in the next statement.
1515 2013-12-06 Andrew Pinski <apinski@cavium.com>
1518 * config/aarch64/aarch64.md (trap): New pattern.
1520 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1522 PR tree-optimization/59388
1523 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1524 gimplify tem after stmt rather than before it.
1526 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1527 (get_references_in_stmt): Don't record operand addresses, but
1528 operands themselves.
1529 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1530 Adjust for the pos -> ref change.
1532 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1534 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1536 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1537 (processor_alias_table): Likewise.
1538 (ix86_option_override_internal): Likewise.
1539 * config/i386/i386.h (target_cpu_default): Replace
1540 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1542 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1544 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1547 * config/i386/i386.c (type_natural_mode): Properly handle
1548 size 8 for !TARGET_64BIT.
1550 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1552 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1555 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1556 Mark Mitchell <mark@codesourcery.com>
1559 * config/arm/arm.md (trap): New pattern.
1560 * config/arm/types.md: Added a type for trap.
1562 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1564 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1566 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1569 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1570 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1571 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1572 (TARGET_BUILTIN_DECL): Define.
1573 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1574 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1575 (enum sparc_builtins): New enumeral type.
1576 (sparc_builtins): New static array.
1577 (sparc_builtins_icode): Likewise.
1578 (def_builtin): Accept a separate icode and save the result.
1579 (def_builtin_const): Likewise.
1580 (sparc_fpu_init_builtins): New function.
1581 (sparc_vis_init_builtins): Pass the builtin code.
1582 (sparc_init_builtins): Call it if TARGET_FPU.
1583 (sparc_builtin_decl): New function.
1584 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1585 (sparc_handle_vis_mul8x16): Use the builtin code.
1586 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1587 and SPARC_BUILTIN_PDISTN.
1588 (compound_expr): New helper function.
1589 (sparc_atomic_assign_expand_fenv): New function.
1590 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1592 (flush, flushdi): Merge into single pattern.
1593 (ldfsr): New instruction.
1596 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1598 * asan.c: Remove struct tags when referring to class varpool_node.
1599 * cgraph.h: Likewise.
1600 * cgraphbuild.c: Likewise.
1601 * cgraphunit.c: Likewise.
1602 * dbxout.c: Likewise.
1603 * dwarf2out.c: Likewise.
1604 * gimple-fold.c: Likewise.
1605 * ipa-devirt.c: Likewise.
1606 * ipa-ref-inline.h: Likewise.
1607 * ipa-ref.h: Likewise.
1608 * ipa-reference.c: Likewise.
1609 * ipa-utils.c: Likewise.
1611 * lto-cgraph.c: Likewise.
1612 * lto-streamer-out.c: Likewise.
1613 * lto-streamer.h: Likewise.
1614 * passes.c: Likewise.
1615 * toplev.c: Likewise.
1616 * tree-eh.c: Likewise.
1617 * tree-emutls.c: Likewise.
1618 * tree-pass.h: Likewise.
1619 * tree-ssa-structalias.c: Likewise.
1620 * tree-vectorizer.c: Likewise.
1622 * varasm.c: Likewise.
1623 * varpool.c: Likewise.
1625 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1627 * cgraphunit.c: Remove struct tags when referring to class
1628 ipa_opt_pass_d or class opt_pass.
1629 * function.h: Likewise.
1630 * lto-cgraph.c: Likewise.
1631 * pass_manager.h: Likewise.
1632 * passes.c: Likewise.
1633 * tree-pass.h: Likewise.
1635 2013-12-06 Richard Biener <rguenther@suse.de>
1637 PR tree-optimization/59058
1638 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1639 (LOOP_VINFO_NITERSM1): New macro.
1640 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1641 the vector loop entry test in terms of scalar latch executions.
1642 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1643 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1644 number of latch executions.
1645 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1646 (vect_analyze_loop_form): Likewise.
1647 (vect_generate_tmps_on_preheader): Compute the number of
1648 vectorized iterations differently.
1650 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1652 * config/score/score.c (score_force_temporary): Delete function.
1653 (score_split_symbol): Ditto.
1654 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1655 parentheses to silence ambiguity warning and reindent.
1657 2013-12-05 Marek Polacek <polacek@redhat.com>
1659 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1661 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1663 * config.gcc: Support --with-cpu=ia.
1665 * config/i386/i386.c (cpu_names): Add "ia".
1666 (processor_alias_table): Likewise.
1667 (ix86_option_override_internal): Disallow -march=ia.
1668 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1670 * doc/invoke.texi: Document -mtune=ia.
1672 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1674 PR rtl-optimization/59317
1675 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1678 2013-12-05 Martin Jambor <mjambor@suse.cz>
1681 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1682 non-BLKmode in their naturally aligned type.
1684 2013-12-05 Marek Polacek <polacek@redhat.com>
1688 * ubsan.c: Include rtl.h and expr.h.
1689 (ubsan_encode_value): Add new parameter. If expanding, assign
1690 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1691 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1692 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1693 * ubsan.h (ubsan_encode_value): Adjust declaration.
1694 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1695 ubsan_build_overflow_builtin above expand_normal call. Surround
1696 this call with push_temp_slots and pop_temp_slots.
1697 (ubsan_expand_si_overflow_neg_check): Likewise.
1698 (ubsan_expand_si_overflow_mul_check): Likewise.
1700 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1702 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1703 the get_alternative_base call with flag_expensive_optimizations.
1704 (alloc_cand_and_find_basis): Likewise.
1706 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1708 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1709 vec_select for overlapping register lanes.
1711 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1713 * config/i386/i386.c (ix86_expand_builtin): Generate
1714 reg for readflags built-in when optimizing.
1715 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1716 (pushfl<mode>2): This. Fix iterator.
1717 (*popfl<mode>): Rename to ...
1718 (*popfl<mode>1): This. Fix iterator.
1720 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1722 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1723 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1724 (ix86_init_mmx_sse_builtins): Define
1725 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1726 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1727 (ix86_expand_builtin): Expand them.
1728 * config/i386/ia32intrin.h (__readeflags): New.
1729 (__writeeflags): Ditto.
1730 * config/i386/i386.md (*pushfl<mode>): Ditto.
1731 (*popfl<mode>1): Ditto.
1733 2013-12-05 Richard Biener <rguenther@suse.de>
1735 PR tree-optimization/59374
1736 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1737 Commonize known and unknown dependence case fixing the allowed
1738 read-write dependence case and dropping code that should not matter.
1740 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1742 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1743 generation of predicated version.
1744 (epilogue_deallocate_stack): Ditto.
1745 (prologue_allocate_stack_pr): Add explicit predicated version.
1746 (epilogue_deallocate_stack_pr): Ditto.
1747 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1749 2013-12-05 Alan Modra <amodra@gmail.com>
1751 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1753 <recursive call for build != host>: Clear GMPINC. Don't bother
1756 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1757 Marek Polacek <polacek@redhat.com>
1759 * opts.c (common_handle_option): Handle
1760 -fsanitize=signed-integer-overflow.
1761 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1762 negv<mode>3, negv<mode>3_1): Define expands.
1763 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1764 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1765 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1766 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1767 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1768 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1769 PROB_ALWAYS): Define.
1770 (ubsan_build_overflow_builtin): Declare.
1771 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1773 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1774 (ubsan_build_overflow_builtin): New function.
1775 (instrument_si_overflow): Likewise.
1776 (ubsan_pass): Add signed integer overflow checking.
1777 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1778 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1779 * internal-fn.c: Include ubsan.h and target.h.
1780 (ubsan_expand_si_overflow_addsub_check): New function.
1781 (ubsan_expand_si_overflow_neg_check): Likewise.
1782 (ubsan_expand_si_overflow_mul_check): Likewise.
1783 (expand_UBSAN_CHECK_ADD): Likewise.
1784 (expand_UBSAN_CHECK_SUB): Likewise.
1785 (expand_UBSAN_CHECK_MUL): Likewise.
1786 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1787 (-A) + B -> B - A when doing the signed integer overflow checking.
1788 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1790 * tree-vrp.c (extract_range_basic): Handle internal calls.
1791 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1793 * asan.c: Include predict.h.
1794 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1795 * predict.c: Move the PROB_* macros...
1796 * predict.h (enum br_predictor): ...here.
1797 (PROB_LIKELY, PROB_UNLIKELY): Define.
1798 * trans-mem.c: Include predict.h.
1799 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1800 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1802 2013-12-04 Jeff Law <law@redhat.com>
1804 * common.opt: Split up -fisolate-erroneous-paths into
1805 -fisolate-erroneous-paths-dereference and
1806 -fisolate-erroneous-paths-attribute.
1807 * invoke.texi: Corresponding changes.
1808 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1809 what kind of statements can be used to infer a non-null range.
1810 * gimple.h (infer_nonnull_range): Update prototype.
1811 * tree-vrp.c (infer_value_range): Corresponding changes.
1812 * opts.c (default_options_table): Update due to option split.
1813 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1814 (find_implicit_erroneous_behaviour): Pass additional arguments
1815 to infer_nonnull_range.
1816 (find_explicit_erroneous_behaviour): Similarly.
1817 (gate_isolate_erroneous_paths): Check both of the new options.
1819 2013-12-04 Jeff Law <law@redhat.com>
1821 * expr.c (expand_assignment): Update comments.
1823 2013-12-04 Tobias Burnus <burnus@net-b.de>
1826 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1827 * tree.def (NAMELIST_DECL): Add.
1828 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1829 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1830 * dwarf2out.c (gen_namelist_decl): New function.
1831 (gen_decl_die, dwarf2out_decl): Call it.
1832 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1833 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1834 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1836 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1838 2013-12-03 Xinliang David Li <davidxl@google.com>
1840 * tree-ssa-structalias.c (constraint_set_union): Change return type
1842 (merge_node_constraints): Ditto.
1843 (unify_nodes): Update changed set when constraints set changes.
1845 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1847 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1849 * configure: Regenerated.
1851 * gdbasan.in: New file.
1853 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1855 PR rtl-optimization/58726
1856 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1857 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1859 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1860 Uros Bizjak <ubizjak@gmail.com>
1863 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1864 !TARGET_AVX there is misaligned MEM operand with vector mode
1865 and get_attr_ssememalign is 0, return false.
1866 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1867 computed alignment and for non-temporal loads/stores also
1868 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1869 * config/i386/sse.md
1870 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1871 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1872 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
1873 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
1874 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1875 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1876 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1877 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
1878 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
1879 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
1880 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
1881 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
1882 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
1883 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
1884 * config/i386/i386.md (ssememalign): New define_attr.
1886 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1888 PR tree-optimization/59355
1889 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
1890 * opts.c (common_handle_option): Fix comment spelling.
1892 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
1894 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
1895 (name_expansions): New static variable.
1896 (alt_base_map): Ditto.
1897 (get_alternative_base): New function.
1898 (find_basis_for_candidate): For CAND_REF, optionally call
1899 find_basis_for_base_expr with the returned value from
1900 get_alternative_base.
1901 (record_potential_basis): Add new parameter 'base' of type 'tree';
1902 add an assertion of non-NULL base; use base to set node->base_expr.
1903 (alloc_cand_and_find_basis): Update; call record_potential_basis
1904 for CAND_REF with the returned value from get_alternative_base.
1905 (replace_refs): Dump details on the replacing.
1906 (execute_strength_reduction): Call pointer_map_create for
1907 alt_base_map; call free_affine_expand_cache with &name_expansions.
1909 2013-12-03 Wei Mi <wmi@google.com>
1911 PR rtl-optimization/59020
1912 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
1913 (sched_analyze_insn): Call try_group_insn.
1914 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
1915 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
1916 (group_insns_for_macro_fusion): Removed.
1917 (sched_init): Remove calling group_insns_for_macro_fusion.
1919 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
1921 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
1923 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
1925 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
1927 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
1929 (aarch64_can_eliminate): Don't check elimination source when
1930 frame_pointer_required is false.
1932 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1934 * config/avr/avr.c (avr_option_override): Warn if asked to generate
1935 position independent code.
1936 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
1938 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
1941 * config/i386/i386.c (emit_memset): Adjust destination address
1943 (expand_setmem_epilogue): Likewise.
1945 2013-12-03 Marek Polacek <polacek@redhat.com>
1948 * calls.c (expand_call): Disallow passing huge arguments by value.
1950 2013-12-03 Jakub Jelinek <jakub@redhat.com>
1952 PR tree-optimization/59362
1953 * tree-object-size.c (object_sizes): Change into array of
1954 vec<unsigned HOST_WIDE_INT>.
1955 (compute_builtin_object_size): Check computed bitmap for
1956 non-NULL instead of object_sizes. Call safe_grow on object_sizes
1957 vector if new SSA_NAMEs appeared.
1958 (init_object_sizes): Check computed bitmap for non-NULL.
1959 Call safe_grow on object_sizes elements instead of initializing
1961 (fini_object_sizes): Call release on object_sizes elements, don't
1965 * gimplify.c (nonlocal_vla_vars): New variable.
1966 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
1967 nonlocal_vla_vars chain.
1968 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
1969 if outer_bind has DECL_INITIAL (current_function_decl) block.
1972 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
1974 * expr.h (struct saved_pending_stack_adjust): New type.
1975 (save_pending_stack_adjust, restore_pending_stack_adjust): New
1977 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
1978 and get_last_insn before do_pending_stack_adjust, call
1979 restore_pending_stack_adjust after delete_insns_since.
1980 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
1981 before calling emit_conditional_move.
1982 * expmed.c (expand_sdiv_pow2): Likewise.
1983 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
1985 2013-12-02 Jeff Law <law@redhat.com>
1987 PR tree-optimization/59322
1988 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
1989 Remove code which copied jump threading paths.
1991 2013-12-02 Sriraman Tallam <tmsriram@google.com>
1994 * config/i386/i386.opt (ix86_arch_string): Mark this variable
1995 for saving in cl_target_option.
1996 (ix86_tune_string): Ditto.
1997 (ix86_cmodel): Ditto.
1999 (ix86_asm_dialect): Ditto.
2000 (ix86_branch_cost): Ditto.
2001 (ix86_dump_tunes): Ditto.
2002 (ix86_force_align_arg_pointer): Ditto.
2003 (ix86_force_drap): Ditto.
2004 (ix86_incoming_stack_boundary_arg): Ditto.
2005 (ix86_pmode): Ditto.
2006 (ix86_preferred_stack_boundary_arg): Ditto.
2007 (ix86_recip_name): Ditto.
2008 (ix86_regparm): Ditto.
2009 (ix86_section_threshold): Ditto.
2010 (ix86_sse2avx): Ditto.
2011 (ix86_stack_protector_guard): Ditto.
2012 (ix86_stringop_alg): Ditto.
2013 (ix86_tls_dialect): Ditto.
2014 (ix86_tune_ctrl_string): Ditto.
2015 (ix86_tune_memcpy_strategy): Ditto.
2016 (ix86_tune_memset_strategy): Ditto.
2017 (ix86_tune_no_default): Ditto.
2018 (ix86_veclibabi_type): Ditto.
2019 * config/i386/i386.c (function_specific_save): Save the above
2020 variables in gcc_options to cl_target_option.
2021 (function_specific_restore): Do the reverse done in
2022 function_specific_save.
2023 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2024 and ix86_tune_string to use the opts structure.
2025 (ix86_option_override_internal):Change
2026 ix86_incoming_stack_boundary_arg to
2027 opts->x_ix86_incoming_stack_boundary_arg
2029 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2031 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2032 in #ifndef IN_LIBGCC2 / #endif.
2034 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2036 PR tree-optimization/59358
2037 * tree-vrp.c (union_ranges): To check for the partially overlapping
2038 ranges or adjacent ranges, also compare *vr0max with vr1max.
2040 2013-12-02 Sterling Augustine  <saugustine@google.com>
2042 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2043 when there isn't a skeleton die.
2045 2013-12-02 Marek Polacek <polacek@redhat.com>
2048 * doc/invoke.texi: Document -fsanitize=return.
2050 2013-12-02 Tobias Burnus <burnus@net-b.de>
2051 Manuel López-Ibáñez <manu@gcc.gnu.org>
2054 * doc/invoke.texi: Add missing @opindex.
2055 (-fsanitize=): Use @gcctabopt instead of @itemize.
2057 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2059 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2060 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2061 targets like arm-none-eabi.
2062 * expr.c (expand_assignment): Handle normal fields like bit regions.
2064 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2067 * function.c (invoke_set_current_function_hook): Call
2068 targetm.set_current_function after setting this_fn_optabs.
2070 2013-12-02 Richard Biener <rguenther@suse.de>
2072 PR tree-optimization/59139
2073 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2074 code in get_val_for.
2075 (get_val_for): Use gcc_checking_asserts.
2077 2013-12-02 Richard Biener <rguenther@suse.de>
2080 * tree-ssa-operands.c (opf_implicit): Remove.
2081 (opf_address_taken): New flag.
2082 (get_expr_operands): Remove early out, pass down opf_address_taken for
2083 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2084 (get_indirect_ref_operands): Rename to ...
2085 (get_mem_ref_operands): ... this.
2086 (get_asm_expr_operands): Rename to ...
2087 (get_asm_stmt_operands): ... this.
2089 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2091 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2093 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2095 PR tree-optimization/59356
2096 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2097 offset computation using the precision of the index type.
2099 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2102 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2103 when rclass is GENERAL_REGS.
2105 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2107 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2108 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2110 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2112 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2115 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2117 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2119 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2120 Eric Botcazou <ebotcazou@adacore.com>
2122 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2123 as applied to nonzero_sign_valid when last_set_mode has less precision
2126 2013-11-30 Tobias Burnus <burnus@net-b.de>
2129 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2130 environment variable and link to a list with flags.
2131 (-fsanitize=thread): Ditto and update link.
2133 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2135 PR rtl-optimization/59340
2136 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2139 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2141 * lra.c (lra): Set lra_in_progress before check_rtl call.
2142 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2143 adding clobber regs when LRA is running.
2145 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2148 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2150 2013-11-29 Richard Biener <rguenther@suse.de>
2153 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2154 free_stmt_operands, update_stmt_operands): Add struct function
2156 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2157 function argument from fini_ssa_operands, verify_ssa_operands,
2158 free_stmt_operands and update_stmt_operands everywhere.
2159 * tree-ssanames.h (release_ssa_name_fn): New.
2160 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2161 * tree-ssanames.c (release_ssa_name): Rename to ...
2162 (release_ssa_name_fn): ... this and add struct function argument.
2163 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2164 (update_stmt_fn): New function.
2165 * tree-cfg.c (move_block_to_fn): Adjust.
2166 * tree-if-conv.c (free_bb_predicate): Likewise.
2167 * tree-ssa.c (verify_ssa): Likewise.
2168 (delete_tree_ssa): Likewise.
2169 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2170 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2171 update_stmt_fn instead of update_stmt.
2173 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2175 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2178 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2180 * config/arm/arm.md (store_minmaxsi): Use only when
2181 optimize_function_for_size_p.
2183 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2184 Yury Gribov <y.gribov@samsung.com>
2187 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2188 * gcc.c: Using libsanitizer spec instead of explicit libs.
2190 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2193 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2194 * cgraph.h (varpool_node): Add need_bounds_init field.
2195 * lto-cgraph.c (lto_output_varpool_node): Output
2196 need_bounds_init value.
2197 (input_varpool_node): Read need_bounds_init value.
2198 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2201 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2202 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2203 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2204 (gen_type_die_with_usage): Skip pointer bounds.
2205 (dwarf2out_global_decl): Likewise.
2208 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2209 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2210 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2211 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2212 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2213 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2214 (gimple_call_with_bounds_p): New.
2215 (gimple_call_set_with_bounds): New.
2216 (gimple_call_num_nobnd_args): Remove.
2217 (gimple_call_nobnd_arg): Remove.
2218 * tree.h (CALL_WITH_BOUNDS_P): New.
2219 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2222 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2223 * common.opt (fcheck-pointer-bounds): Move to ...
2224 * c-family/c.opt: ... here.
2225 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2226 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2227 * langhooks.h (lang_hooks): Remove chkp_supported field.
2228 * toplev.c (process_options): Remove chkp_supported check.
2231 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2232 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2233 * tree.h (POINTER_BOUNDS_P): New.
2234 (BOUNDED_TYPE_P): New.
2236 (pointer_bounds_type_node): New.
2237 * tree.c (build_common_tree_nodes): Initialize
2238 pointer_bounds_type_node.
2239 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2240 (gimple_call_num_nobnd_args): New.
2241 (gimple_call_nobnd_arg): New.
2242 (gimple_return_retbnd): New.
2243 (gimple_return_set_retbnd): New
2244 * gimple.c (gimple_build_return): Increase number of ops
2245 for return statement.
2246 (gimple_call_get_nobnd_arg_index): New.
2247 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2250 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2251 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2252 with "chkp ctor" and "bnd_legacy" attributes.
2253 * gimplify.c (gimplify_init_constructor): Avoid infinite
2254 loop during gimplification of bounds initializer.
2257 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2258 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2259 (handle_bnd_legacy): New.
2260 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2261 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2265 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2266 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2267 (BT_FN_PTR_CONST_PTR): New.
2268 (BT_FN_CONST_PTR_CONST_PTR): New.
2269 (BT_FN_PTR_CONST_PTR_SIZE): New.
2270 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2271 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2272 (BT_FN_VOID_CONST_PTR_SIZE): New.
2273 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2274 * chkp-builtins.def: New.
2275 * builtins.def: include chkp-builtins.def.
2276 (DEF_CHKP_BUILTIN): New.
2277 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2278 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2279 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2280 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2281 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2282 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2283 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2284 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2285 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2286 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2287 * common.opt (fcheck-pointer-bounds): New.
2288 * toplev.c (process_options): Check Pointer Bounds Checker is
2290 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2293 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2294 * target.def (builtin_chkp_function): New.
2295 (chkp_bound_type): New.
2296 (chkp_bound_mode): New.
2297 (fn_abi_va_list_bounds_size): New.
2298 (load_bounds_for_arg): New.
2299 (store_bounds_for_arg): New.
2300 * targhooks.h (default_load_bounds_for_arg): New.
2301 (default_store_bounds_for_arg): New.
2302 (default_fn_abi_va_list_bounds_size): New.
2303 (default_chkp_bound_type): New.
2304 (default_chkp_bound_mode): New.
2305 (default_builtin_chkp_function): New.
2306 * targhooks.c (default_load_bounds_for_arg): New.
2307 (default_store_bounds_for_arg): New.
2308 (default_fn_abi_va_list_bounds_size): New.
2309 (default_chkp_bound_type): New.
2310 (default_chkp_bound_mode); New.
2311 (default_builtin_chkp_function): New.
2312 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2313 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2314 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2315 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2316 (TARGET_CHKP_BOUND_TYPE): New.
2317 (TARGET_CHKP_BOUND_MODE): New.
2318 * doc/tm.texi: Regenerated.
2319 * langhooks.h (lang_hooks): Add chkp_supported field.
2320 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2321 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2324 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2325 * config/i386/constraints.md (B): New.
2328 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2329 * config/i386/i386-modes.def (BND32): New.
2331 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2332 * config/i386/i386.c (isa_opts): Add mmpx.
2333 (regclass_map): Add bound registers.
2334 (dbx_register_map): Likewise.
2335 (dbx64_register_map): Likewise.
2336 (svr4_dbx_register_map): Likewise.
2338 (ix86_option_override_internal): Support MPX ISA.
2339 (ix86_conditional_register_usage): Support bound registers.
2340 (print_reg): Likewise.
2341 (ix86_code_end): Add MPX bnd prefix.
2342 (output_set_got): Likewise.
2343 (ix86_output_call_insn): Likewise.
2344 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2345 (ix86_print_operand_punct_valid_p): Likewise.
2346 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2348 (ix86_class_likely_spilled_p): Add bound regs support.
2349 (ix86_hard_regno_mode_ok): Likewise.
2350 (x86_order_regs_for_local_alloc): Likewise.
2351 (ix86_bnd_prefixed_insn_p): New.
2352 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2353 (FIXED_REGISTERS): Add bound registers.
2354 (CALL_USED_REGISTERS): Likewise.
2355 (REG_ALLOC_ORDER): Likewise.
2356 (HARD_REGNO_NREGS): Likewise.
2358 (VALID_BND_REG_MODE): New.
2359 (FIRST_BND_REG): New.
2360 (LAST_BND_REG): New.
2361 (reg_class): Add BND_REGS.
2362 (REG_CLASS_NAMES): Likewise.
2363 (REG_CLASS_CONTENTS): Likewise.
2365 (ANY_BND_REG_P): New.
2367 (HI_REGISTER_NAMES): Add bound registers.
2368 * config/i386/i386.md (UNSPEC_BNDMK): New.
2369 (UNSPEC_BNDMK_ADDR): New.
2370 (UNSPEC_BNDSTX): New.
2371 (UNSPEC_BNDLDX): New.
2372 (UNSPEC_BNDLDX_ADDR): New.
2373 (UNSPEC_BNDCL): New.
2374 (UNSPEC_BNDCU): New.
2375 (UNSPEC_BNDCN): New.
2376 (UNSPEC_MPX_FENCE): New.
2379 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2380 (length_immediate): Likewise.
2381 (prefix_0f): Likewise.
2383 (prefix_rep): Check for bnd prefix.
2384 (length_nobnd): New.
2385 (length): Use length_nobnd if specified.
2390 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2393 (simple_return_internal): Likewise.
2394 (simple_return_pop_internal): Likewise.
2395 (*indirect_jump): Add MPX bnd prefix.
2396 (*tablejump_1): Likewise.
2397 (simple_return_internal_long): Likewise.
2398 (simple_return_indirect_internal): Likewise.
2402 (*mov<mode>_internal_mpx): New.
2403 (<mode>_<bndcheck>): New.
2404 (*<mode>_<bndcheck>): New.
2409 * config/i386/predicates.md (lea_address_operand): Rename to...
2410 (address_no_seg_operand): ... this.
2411 (address_mpx_no_base_operand): New.
2412 (address_mpx_no_index_operand): New.
2413 (bnd_mem_operator): New.
2414 * config/i386/i386.opt (mmpx): New.
2415 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2416 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2419 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2420 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2421 * tree.def (POINTER_BOUNDS_TYPE): New.
2422 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2423 (POINTER_BOUNDS_MODE): New.
2424 (make_pointer_bounds_mode): New.
2425 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2426 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2427 (layout_type): Support POINTER_BOUNDS_TYPE.
2428 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2429 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2430 (type_contains_placeholder_1): Likewise.
2431 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2432 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2433 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2435 2013-11-29 Richard Biener <rguenther@suse.de>
2438 * tree-cfg.c (verify_expr): Restrict bounds verification of
2439 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2441 2013-11-29 Richard Biener <rguenther@suse.de>
2443 PR tree-optimization/59334
2444 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2447 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2448 Richard Biener <rguenther@suse.de>
2451 * omp-low.c (simd_clone_create): Return NULL if for definition
2452 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2453 before calling cgraph_function_versioning.
2454 (expand_simd_clones): Look for "omp declare simd" attribute first.
2455 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2456 Punt if node->global.inlined_to.
2457 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2458 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2459 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2461 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2464 * tree-core.h (enum omp_clause_schedule_kind): Add
2465 OMP_CLAUSE_SCHEDULE_LAST.
2466 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2467 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2468 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2469 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2470 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2471 (DFS_write_tree_body): Handle OMP_CLAUSE.
2472 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2473 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2474 (write_ts_omp_clause_tree_pointers): New function.
2475 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2476 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2477 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2478 (unpack_value_fields): Call it for OMP_CLAUSE.
2479 (streamer_alloc_tree): Handle OMP_CLAUSE.
2480 (lto_input_ts_omp_clause_tree_pointers): New function.
2481 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2483 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2485 * doc/implement-c.texi: Document C11 implementation-defined
2486 behavior. Refer to -ffp-contract=fast for contraction behavior.
2487 * doc/invoke.texi (-std=c99, std=c11): Update description of
2489 (-std=gnu99): Don't mention as future default.
2490 (-std=gnu11): Mention as intended future default.
2491 * doc/standards.texi: Update descriptions of C99 and C11 support.
2492 Limit statement about C99 facilities for freestanding
2493 implementations to some platforms only.
2495 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2498 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2500 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2503 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2504 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2505 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2506 Don't call lra_init_elimination.
2507 (ira): Call ira_setup_eliminable_regset without arguments.
2508 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2509 from ira_setup_eliminable_regset call.
2510 * gcse.c (calculate_bb_reg_pressure): Ditto.
2511 * haifa-sched.c (sched_init): Ditto.
2512 * lra.h (lra_init_elimination): Remove the prototype.
2513 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2514 used_insn_alternative upper.
2515 (lra_eliminate_regs_1): Add one more parameter.
2516 (lra-eliminate): Ditto.
2517 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2518 (setup_sp_offset): New.
2519 (lra_process_new_insns): Call setup_sp_offset.
2520 (lra): Add argument to lra_eliminate calls.
2521 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2522 (get_equiv_with_elimination): New.
2523 (process_addr_reg): Call get_equiv_with_elimination instead of
2524 get_equiv_substitution.
2525 (equiv_address_substitution): Ditto.
2526 (loc_equivalence_change_p): Ditto.
2527 (loc_equivalence_callback, lra_constraints): Ditto.
2528 (curr_insn_transform): Ditto. Print the sp offset
2529 (process_alt_operands): Prevent stack pointer reloads.
2530 (lra_constraints): Remove one argument from lra_eliminate call.
2531 Move it up. Mark used hard regs bfore it. Use
2532 get_equiv_with_elimination instead of get_equiv_substitution.
2533 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2534 assert for param values combination. Use sp offset. Add argument
2535 to lra_eliminate_regs_1 calls.
2536 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2537 (curr_sp_change): New static var.
2538 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2539 Don't prevent elimination to sp if we can calculate its change.
2540 Pass the argument to mark_not_eliminable calls.
2541 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2542 argument to lra_eliminate_regs_1 call.
2543 (update_reg_eliminate): Move calculation of hard regs for spill
2544 lower. Switch off lra_in_progress temporarily to generate regs
2545 involved into elimination.
2546 (lra_init_elimination): Rename to init_elimination. Make it
2547 static. Set up insn sp offset, check the offsets at the end of BBs.
2548 (process_insn_for_elimination): Add parameter. Pass its value to
2549 eliminate_regs_in_insn.
2550 (lra_eliminate): : Add parameter. Pass its value to
2551 process_insn_for_elimination. Add assert for param values
2552 combination. Call init_elimination. Don't update offsets in
2553 equivalence substitutions.
2554 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2555 for created stack slot.
2556 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2559 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2561 * config/arm/iterators.md (vrint_conds): New int attribute.
2562 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2563 (smax<mode>3): Likewise.
2564 (smin<mode>3): Likewise.
2566 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2568 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2569 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2570 * tree-ssanames.h (set_range_info): Add range_type argument.
2571 (duplicate_ssa_name_range_info): Likewise.
2572 * tree-ssanames.c (set_range_info): Take the range type as argument
2573 and store it in SSA_NAME_ANTI_RANGE_P.
2574 (duplicate_ssa_name_range_info): Likewise.
2575 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2576 (set_nonzero_bits): Update call to set_range_info.
2577 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2578 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2579 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2580 (vrp_finalize): Likewise, passing anti-ranges directly.
2582 2013-11-28 Richard Biener <rguenther@suse.de>
2584 PR tree-optimization/59330
2585 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2586 and fix delayed marking of free calls not necessary.
2588 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2590 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2592 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2594 2013-11-28 Terry Guo <terry.guo@arm.com>
2596 * config/arm/arm.c (v7m_extra_costs): New table.
2597 (arm_v7m_tune): Use it.
2599 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2601 * config/sol2.h (TIME_LIBRARY): Define.
2603 2013-11-28 Richard Biener <rguenther@suse.de>
2606 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2607 CONST_DECLs in function context are not indexable.
2609 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2611 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2612 not optimized for size.
2614 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2616 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2618 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2619 data->asan_base as base for vars and update asan_alignb.
2620 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2621 Pass them to asan_emit_stack_protection.
2622 * asan.c (asan_detect_stack_use_after_return): New variable.
2623 (asan_emit_stack_protection): Add pbase and alignb arguments.
2624 Implement use after return sanitization.
2625 * asan.h (asan_emit_stack_protection): Adjust prototype.
2626 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2628 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2630 * common.opt: Introduced a new option -fsimd-cost-model.
2631 * doc/invoke.texi: Introduced a new openmp-simd warning and
2632 a new -fsimd-cost-model option.
2633 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2634 to rely on the particular loop info.
2635 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2636 (vect_peeling_hash_choose_best_peeling): Ditto.
2637 (vect_enhance_data_refs_alignment): Ditto.
2638 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2639 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2640 plus added openmp-simd warining.
2642 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2644 PR rtl-optimization/59311
2645 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2646 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2648 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2650 * var-tracking.c (track_expr_p): Do not track declarations for parts
2651 of tracked parameters.
2652 (add_stores): Do not track values for tracked parameters passed in
2654 (vt_get_decl_and_offset): Handle PARALLEL.
2655 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2657 2013-11-27 Jeff Law <law@redhat.com>
2659 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2660 clobber the loop structure thread_block was unsuccessful. If
2661 thread_block was unsuccessful, cleanup appropriately.
2663 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2665 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2666 (score_char_to_class): Likewise.
2668 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2670 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2671 the overflow bit set.
2673 2013-11-27 Richard Biener <rguenther@suse.de>
2676 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2678 (rebuild_cgraph_edges): Likewise.
2679 * ipa-inline-analysis.c (estimate_function_body_sizes):
2680 Skip internal calls.
2681 * tree-inline.c (estimate_num_insns): Estimate size of internal
2683 (gimple_expand_calls_inline): Do not try inline-expanding
2685 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2686 force_vect and simduid.
2687 (input_struct_function_base): Stream has_force_vect_loops
2688 and has_simduid_loops.
2689 (input_function): Adjust.
2690 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2691 force_vect and simduid.
2692 (output_struct_function_base): Stream has_force_vect_loops
2693 and has_simduid_loops.
2695 2013-11-27 Kai Tietz <ktietz@redhat.com>
2697 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2700 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2702 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2703 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2705 2013-11-27 Marek Polacek <polacek@redhat.com>
2708 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2709 instead of walk_gimple_op.
2710 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2712 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2713 Jakub Jelinek <jakub@redhat.com>
2715 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2716 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2717 (struct cgraph_node): Add simdclone and simd_clones fields.
2718 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2719 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2720 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2721 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2722 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2723 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2724 * doc/tm.texi: Regenerated.
2725 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2726 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2727 attribute is present.
2728 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2729 (simd_clone_vector_of_formal_parm_types): New function.
2730 (simd_clone_struct_alloc, simd_clone_struct_copy,
2731 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2732 simd_clone_compute_base_data_type, simd_clone_mangle,
2733 simd_clone_create, simd_clone_adjust_return_type,
2734 create_tmp_simd_array, simd_clone_adjust_argument_types,
2735 simd_clone_init_simd_arrays): New functions.
2736 (struct modify_stmt_info): New type.
2737 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2738 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2740 (pass_data_omp_simd_clone): New variable.
2741 (pass_omp_simd_clone): New class.
2742 (make_pass_omp_simd_clone): New function.
2743 * passes.def (pass_omp_simd_clone): New.
2744 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2745 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2746 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2747 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2748 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2749 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2750 * tree-vect-data-refs.c: Include cgraph.h.
2751 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2752 and find_data_references_in_bb, if find_data_references_in_stmt
2753 fails, still allow calls to #pragma omp declare simd functions
2754 in #pragma omp simd loops unless they contain data references among
2755 the call arguments or in lhs.
2756 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2758 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2760 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2761 call_simd_clone_vec_info_type.
2762 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2763 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2764 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2765 tree-scalar-evolution.h and cgraph.h.
2766 (vectorizable_call): Handle calls without lhs. Assert
2767 !stmt_can_throw_internal instead of failing for it. Don't update
2769 (struct simd_call_arg_info): New.
2770 (vectorizable_simd_clone_call): New function.
2771 (vect_transform_stmt): Call it.
2772 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2774 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2775 if cgraph_function_with_gimple_body_p is true.
2777 2013-11-27 Tom de Vries <tom@codesourcery.com>
2778 Marc Glisse <marc.glisse@inria.fr>
2781 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2783 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2784 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2787 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2790 * expr.c (emit_group_store): Don't write past the end of the structure.
2791 (store_bit_field): Fix formatting.
2793 2013-11-27 Richard Biener <rguenther@suse.de>
2795 PR tree-optimization/59288
2796 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2797 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2799 2013-11-27 Marek Polacek <polacek@redhat.com>
2801 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2802 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2803 rather than ADDR_EXPRs.
2805 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2807 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2809 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2811 * gengtype.c (struct seen_tag): New.
2812 (already_seen_tag): New.
2813 (mark_tag_as_seen): New.
2814 (walk_subclasses): Support having multiple subclasses using the
2815 same tag by tracking which tags have already been seen, and using
2816 this to avoid adding duplicate cases to the "switch" statement.
2817 The call to already_seen_tag introduces an O(N^2) when running
2818 gengtype on N, the number of tags, due to the repeated linear
2819 search, but currently max(N) is relatively small (the number of
2820 GSS codes, which is 26).
2821 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2824 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2825 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2826 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2827 GIMPLE_OMP_RETURN happens to share the data layout of
2828 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2829 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2830 underlying GSS value from GSS_OMP_PARALLEL to
2831 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2832 not directly related; they merely share in-memory layout.
2833 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2834 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2836 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2838 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2840 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2841 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2842 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2843 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2846 * gimple.h (gimple_statement_resx): New subclass of
2847 gimple_statement_eh_ctrl, with the invariant that
2848 stmt->code == GIMPLE_RESX.
2849 (gimple_statement_eh_dispatch): New subclass of
2850 gimple_statement_eh_ctrl, with the invariant that
2851 stmt->code == GIMPLE_EH_DISPATH.
2853 (gimple_statement_omp_parallel): The existing class expressed
2854 a layout (GSS_OMP_PARALLEL), but the codes with that layout
2855 are not all related, so it makes more sense for this class to
2856 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
2857 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
2858 rename the existing gimple_statement_omp_parallel class to...
2859 (gimple_statement_omp_parallel_layout): ...this, expressing
2860 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
2861 (gimple_statement_omp_taskreg): New subclass of
2862 gimple_statement_omp_parallel_layout, expressing the invariant
2863 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
2864 as used by the various gimple_omp_taskreg_ accessors.
2865 (gimple_statement_omp_parallel): Reintroduce this class, this time
2866 as a subclass of gimple_statement_omp_taskreg to express the
2867 invariant stmt->code == GIMPLE_OMP_PARALLEL.
2868 (gimple_statement_omp_target) New class, subclassing
2869 gimple_statement_omp_parallel_layout, to express the invariant
2870 stmt->code == GIMPLE_OMP_TARGET.
2871 (gimple_statement_omp_task): Update to inherit from
2872 gimple_statement_omp_taskreg rather than
2873 gimple_statement_omp_parallel.
2875 (gimple_statement_omp_single): Rename to...
2876 (gimple_statement_omp_single_layout): ...this, expressing the
2877 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
2878 (gimple_statement_omp_single): ...and reintroduce this name as
2879 a subclass of gimple_statement_omp_single_layout, expressing
2880 the invariant that code == GIMPLE_OMP_SINGLE.
2881 (gimple_statement_omp_teams): New class, subclassing
2882 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
2884 (gimple_statement_omp_atomic_store): Rename to...
2885 (gimple_statement_omp_atomic_store_layout): ...this, expressing
2886 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
2887 (gimple_statement_omp_atomic_store): ...and reintroduce this
2888 name as a subclass of gimple_statement_omp_atomic_store_layout
2889 with code == GIMPLE_OMP_ATOMIC_STORE.
2890 (gimple_statement_omp_return): New class, subclassing
2891 gimple_statement_omp_atomic_store_layout for the code
2894 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
2895 (is_a_helper <gimple_statement_resx>::test): New.
2896 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
2897 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
2898 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2899 (is_a_helper <gimple_statement_omp_return>::test): New.
2900 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
2901 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
2902 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2904 (is_a_helper <gimple_statement_omp_target>::test): New.
2905 (is_a_helper <gimple_statement_omp_single>::test): Only check
2906 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2907 (is_a_helper <gimple_statement_omp_teams>::test): New.
2909 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
2910 (is_a_helper <const gimple_statement_resx>::test): New.
2911 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
2912 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
2913 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2914 (is_a_helper <const gimple_statement_omp_return>::test): New.
2915 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
2916 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
2917 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2919 (is_a_helper <const gimple_statement_omp_target>::test): New.
2920 (is_a_helper <const gimple_statement_omp_single>::test): Only
2921 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2922 (is_a_helper <const gimple_statement_omp_teams>::test): New.
2924 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2925 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
2926 gimple_statement_omp_atomic_store with downcasts to
2927 gimple_statement_omp_return, thus requiring that the code be
2929 (gimple_resx_region, gimple_resx_set_region): Replace bogus
2930 downcasts to gimple_statement_eh_ctrl with downcasts to
2931 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
2932 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
2933 Replace bogus downcasts to const gimple_statement_eh_ctrl with
2934 downcasts to gimple_statement_eh_dispatch, thus requiring that
2935 the code be GIMPLE_EH_DISPATCH.
2936 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
2937 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
2938 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
2939 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
2940 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
2941 gimple_statement_omp_parallel with downcasts to
2942 gimple_statement_omp_taskreg, thus requiring that the code be
2943 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
2944 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
2945 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
2946 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
2947 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
2948 gimple_omp_target_set_data_arg): Replace bogus downcasts to
2949 gimple_statement_omp_parallel with downcasts to
2950 gimple_statement_omp_target, thus requiring that the code be
2952 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
2953 gimple_omp_teams_set_clauses): Replace bogus downcasts to
2954 gimple_statement_omp_single with downcasts to
2955 gimple_statement_omp_teams, thus requiring that the code be
2958 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
2959 gimple_statement_resx.
2960 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
2961 gimple_statement_eh_dispatch.
2963 2013-11-26 Jakub Jelinek <jakub@redhat.com>
2965 PR tree-optimization/59014
2966 * tree-vrp.c (register_edge_assert_for_1): Don't look
2967 through conversions from non-integral types or through
2968 narrowing conversions.
2971 * config/i386/i386.c (device_alg): Fix up formatting.
2972 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
2973 similarly to count && count < epilogue_size_needed. Fix up
2975 * builtins.c (determine_block_size): Fix comment typo.
2978 * ubsan.c (ubsan_source_location): Don't add any location
2979 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
2980 (ubsan_create_data): Strip block info from LOC.
2983 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
2984 if there isn't optab handler for the corresponding vector PLUS_EXPR.
2986 PR rtl-optimization/59166
2987 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
2988 DF_REF_LOC in validate_change call.
2989 (split_live_ranges_for_shrink_wrap): Likewise.
2992 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
2993 of references to constant size types in simd loops, defer emitting
2994 initializer for the new_var, emit it later on only if not using
2998 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
2999 for the inner loop if collapse_bb is non-NULL.
3000 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3002 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3004 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3005 a constant immediate before force_reg.
3007 2013-11-26 Richard Biener <rguenther@suse.de>
3009 PR tree-optimization/59245
3010 * tree-vrp.c (set_value_range): Assert that we don't have
3011 overflowed constants (but our infinities).
3012 (set_value_range_to_value): Drop all overflow flags.
3013 (vrp_visit_phi_node): Likewise.
3014 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3015 to set a constant range.
3017 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3020 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3021 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3022 for zero_extend case.
3024 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3027 * configure.ac (install_gold_as_default): New. Set to yes for
3028 --disable-ld or --enable-gold=default.
3029 (gcc_cv_ld_gold_srcdir): New.
3030 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3031 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3032 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3033 * configure: Regenerated.
3035 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3036 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3037 (original) [collect-ld && -fuse-ld=bfd]: Set to
3038 $ORIGINAL_LD_BFD_FOR_TARGET.
3039 (original) [collect-ld && -fuse-ld=gold]: Set to
3040 $ORIGINAL_LD_GOLD_FOR_TARGET.
3041 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3042 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3044 2013-11-26 Terry Guo <terry.guo@arm.com>
3046 * config/arm/arm.c (require_pic_register): Handle high pic base
3047 register for thumb-1.
3048 (arm_load_pic_register): Also initialize high pic base register.
3049 * doc/invoke.texi: Update documentation for option -mpic-register.
3051 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3055 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3056 Prefix function names with 'sh_'. Make them non-static.
3057 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3058 sh_max_mov_insn_displacement): Add declarations.
3059 * config/sh/constraints.md (Q): Reject QImode.
3060 (Sdd): Use match_code "mem".
3061 (Snd): Fix erroneous matching of non-memory operands.
3062 * config/sh/predicates.md (short_displacement_mem_operand): New
3064 (general_movsrc_operand): Disallow PC relative QImode loads.
3065 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3066 (*movqi, *movhi): Merge both insns into...
3067 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3068 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3069 on the operand types.
3071 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3073 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3074 Remove unused variable save_config.
3075 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3078 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3080 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3081 using other intrinsics.
3082 (vtbx3_<psu>8): Likewise.
3084 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3086 * config/aarch64/aarch64-builtins.c
3087 (aarch64_types_bsl_p_qualifiers): New.
3088 (aarch64_types_bsl_s_qualifiers): Likewise.
3089 (aarch64_types_bsl_u_qualifiers): Likewise.
3090 (TYPES_BSL_P): Likewise.
3091 (TYPES_BSL_S): Likewise.
3092 (TYPES_BSL_U): Likewise.
3093 (BUILTIN_VALLDIF): Likewise.
3094 (BUILTIN_VDQQH): Likewise.
3095 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3096 * config/aarch64/aarch64-simd.md
3097 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3098 (aarch64_simd_bsl<mode>): Likewise.
3099 * config/aarch64/arm_neon.h
3100 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3101 * config/aarch64/iterators.md (VALLDIF): New.
3102 (Vbtype): Handle more modes.
3104 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3106 * config/aarch64/aarch64-builtins.c
3107 (aarch64_type_qualifiers): Add qualifier_poly.
3108 (aarch64_build_scalar_type): Also build Poly types.
3109 (aarch64_build_vector_type): Likewise.
3110 (aarch64_build_type): Likewise.
3111 (aarch64_build_signed_type): New.
3112 (aarch64_build_unsigned_type): Likewise.
3113 (aarch64_build_poly_type): Likewise.
3114 (aarch64_init_simd_builtins): Also handle Poly types.
3116 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3118 * config/aarch64/aarch64-builtins.c
3119 (VAR1): Use new naming scheme for aarch64_builtins.
3120 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3122 2013-11-26 Richard Biener <rguenther@suse.de>
3124 PR tree-optimization/59287
3125 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3126 Remove no longer necessary special-casing of union accesses.
3128 2013-11-26 Richard Biener <rguenther@suse.de>
3130 * pretty-print.c (output_buffer::~output_buffer): Really
3133 2013-11-25 Jeff Law <law@redhat.com>
3135 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3136 invalidate loop information.
3138 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3140 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3142 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3146 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3148 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3149 previously visited basic blocks before recursing instead of only one
3152 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3154 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3155 * config/aarch64/aarch64-cores.def (cortex-a53):
3156 Use cortexa53 tuning struct.
3158 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3161 * fold-const.c: Include hash-table.h.
3163 2013-11-25 Marek Polacek <polacek@redhat.com>
3166 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3168 2013-11-25 Richard Biener <rguenther@suse.de>
3170 * tree-dfa.c: Remove unused convert.h include.
3172 2013-11-25 Terry Guo <terry.guo@arm.com>
3174 * doc/invoke.texi (-mslow-flash-data): Document new option.
3175 * config/arm/arm.opt (mslow-flash-data): New option.
3176 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3178 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3180 (arm_disable_literal_pool): Declare it.
3181 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3182 (arm_option_override): Handle new option.
3183 (thumb2_legitimate_address_p): Don't allow symbol references when
3184 literal pools are disabled.
3185 (arm_max_const_double_inline_cost): New function.
3186 * config/arm/arm.md (types.md): Include it before ...
3187 (use_literal_pool): New attribute.
3188 (enabled): Use new attribute.
3189 (split pattern): Replace symbol+offset with MOVW/MOVT.
3191 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3194 Revert previous commit.
3196 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3198 * jump.c (reset_insn_reg_label_operand_notes): New function,
3200 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3201 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3203 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3204 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3205 expensive CFG cleanup is called for.
3206 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3207 (cfg_layout_finalize): Delete dead jump tables before re-building
3209 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3210 basic blocks, not before.
3211 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3213 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3214 insns chain of a scheduling extended basic block, they cannot appear
3215 there in cfglayout mode.
3217 2013-11-24 Tobias Burnus <burnus@net-b.de>
3219 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3221 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3223 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3226 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3228 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3230 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3232 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3234 2013-11-23 David Edelson <dje.gcc@gmail.com>
3235 Andrew Dixie <andrewd@gentrack.com>
3238 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3239 (COLLECT_SHARED_FINI_FUNC): Define.
3241 * collect2.c (aix_shared_initname): Declare.
3242 (aix_shared_fininame): Declare.
3243 (symkind): Add SYM_AIXI and SYM_AIXD.
3244 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3245 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3246 (aixlazy_flag): Parse.
3247 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3248 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3250 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3252 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3253 (rs6000_xcoff_select_section): Place decls with stricter alignment
3254 into named sections.
3255 (rs6000_xcoff_unique_section): Allow unique sections for
3256 uninitialized data with strict alignment.
3258 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3260 PR tree-optimization/59154
3261 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3262 rhs1 of a cast and new_op is invariant, fold_convert it.
3263 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3264 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3266 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3269 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3270 Declare as MULTI_ARG_1_SF instruction.
3271 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3272 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3273 from *xop_vmfrcz_<mode>.
3274 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3275 to merge scalar result with __A.
3276 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3279 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3281 * gimplify.h (recalculate_side_effects): Delete.
3282 * gimplify.c (recalculate_side_effects): Make static and add comment.
3284 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3286 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3287 for the destination of a define_peephole2. Likewise register_operand
3288 rather than arith_reg_operand. Remove constraints from
3291 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3293 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3295 (mn10300_store_multiple_operation_p): Declare.
3296 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3298 (mn10300_store_multiple_operation_p): ...this and remove mode
3300 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3303 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3305 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3306 (pop_multiple_operation): Delete.
3307 (analyze_push_multiple_operation): Declare.
3308 (analyze_pop_multiple_operation): Declare.
3309 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3310 (analyze_push_multiple_operation): ...this and remove mode argument.
3311 (pop_multiple_operation): Rename to...
3312 (analyze_pop_multiple_operation): ...this and remove mode argument.
3313 * config/bfin/predicates.md (push_multiple_operation): Define.
3314 (pop_multiple_operation): Likewise.
3316 2013-11-23 Alan Modra <amodra@gmail.com>
3318 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3320 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3323 * common.opt (static-liblsan): Add.
3324 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3326 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3327 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3329 * opts.c (common_handle_option): Handle -fsanitize=leak.
3330 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3331 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3332 (LIBUBSAN_EARLY_SPEC): Remove.
3333 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3334 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3335 (sanitize_spec_function): Handle %sanitize(leak).
3336 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3338 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3339 Jakub Jelinek <jakub@redhat.com>
3341 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3342 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3343 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3344 (ipa_modify_formal_parameters): Adjust caller. Remove
3345 synth_parm_prefix argument. Use operator enum instead of bit fields.
3346 Add assert for properly handling vector of references. Handle
3347 creating brand new parameters.
3348 (ipa_modify_call_arguments): Use operator enum instead of bit
3350 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3352 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3354 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3355 Use operator enum instead of bit fields.
3356 * ipa-prop.h (enum ipa_parm_op): New.
3357 (struct ipa_parm_adjustment): New field op. Rename reduction
3358 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3360 (ipa_modify_formal_parameters): Remove last argument.
3361 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3362 ipa_get_adjustment_candidate): New prototypes.
3363 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3364 enum. Set arg_prefix.
3365 (get_adjustment_for_base): Use operator enum.
3366 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3368 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3369 (ipa_sra_modify_function_body): Same. No longer static.
3370 (sra_ipa_reset_debug_stmts): Use operator enum.
3371 (modify_function): Do not pass prefix argument.
3373 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3375 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3376 (ubsan_pass): Ignore clobber stmts.
3378 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3379 * opts.c (common_handle_option): Add -fsanitize=return.
3380 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3381 or it into SANITIZE_UNDEFINED.
3383 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3384 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3385 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3386 Don't instrument accesses to VAR_DECLs which are known to fit
3387 into their bounds and the vars are known to have shadow bytes
3388 indicating allowed access.
3389 (asan_dynamic_init_call): New function.
3390 (asan_add_global): If vnode->dynamically_initialized,
3391 set __has_dynamic_init to 1 instead of 0.
3392 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3393 * asan.h (asan_dynamic_init_call): New prototype.
3394 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3396 2013-11-22 Martin Jambor <mjambor@suse.cz>
3398 PR rtl-optimization/10474
3399 * ira.c (interesting_dest_for_shprep_1): New function.
3400 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3401 also check parallels.
3403 2013-11-22 Jeff Law <law@redhat.com>
3405 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3406 NULL for RHS, which we used to invalidate equivalences.
3407 (record_temporary_equivalences_from_phis): New bitmap arguments
3408 and a boolean indicating if we have passed a backedge. If we
3409 have passed a backedge, then set the appropriate bit in the
3410 bitmaps for the SRC & DEST of PHIs creating equivalences.
3411 (invalidate_equivalences, dummy_simplify): New functions.
3412 (cond_arg_set_in_b): Remove.
3413 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3414 arguments and a boolean indicating if we have passed a backedge.
3415 If we have passed a backedge, then perform invalidations as needed.
3416 (thread_around_empty_blocks): If we have seen a backedge, then
3417 use the dummy simplify routine.
3418 (thread_through_normal_block): Likewise. Pass bitmaps and
3419 backedge status to children. Do not pessimize so much when
3420 traversing backedges in the CFG.
3421 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3422 If we have seen a backedge, then use the dummy simplify routine.
3423 Do not pessimize so much when traversing backedges.
3425 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3427 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3428 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3430 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3432 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3433 PTA_PCLMUL and PTA_RDRND for Silvermont.
3434 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3437 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3439 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3441 * hooks.h (hook_uint_mode_0): Add Prototype.
3442 * hooks.c (hook_uint_mode_0): New default function.
3443 * target.def (atomic_align_for_mode): New target hook.
3444 * tree.c (build_atomic_base): Add alignment override parameter.
3445 (build_common_tree_nodes): Use atomic alignment override.
3446 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3447 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3449 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3451 * gimple.h: Remove all includes.
3452 (recalculate_side_effects): Move prototype to gimplify.h.
3453 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3454 * gengtype.c (open_base_files): Add gimple.h include list.
3455 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3456 * gimple.c: Adjust include list.
3457 (recalculate_side_effects): Move to gimplify.c.
3458 * gimplify.c: Adjust include list.
3459 (recalculate_side_effects): Relocate from gimple.c.
3460 * alias.c: Add required include files removed from gimple.h.
3462 * builtins.c: Likewise.
3463 * calls.c: Likewise.
3464 * cfgexpand.c: Likewise.
3465 * cfgloop.c: Likewise.
3466 * cfgloopmanip.c: Likewise.
3467 * cgraphbuild.c: Likewise.
3468 * cgraph.c: Likewise.
3469 * cgraphclones.c: Likewise.
3470 * cgraphunit.c: Likewise.
3471 * cilk-common.c: Likewise.
3472 * data-streamer.c: Likewise.
3473 * data-streamer-in.c: Likewise.
3474 * data-streamer-out.c: Likewise.
3476 * dwarf2out.c: Likewise.
3477 * emit-rtl.c: Likewise.
3478 * except.c: Likewise.
3480 * fold-const.c: Likewise.
3481 * function.c: Likewise.
3482 * gimple-builder.c: Likewise.
3483 * gimple-expr.c: Likewise.
3484 * gimple-fold.c: Likewise.
3485 * gimple-iterator.c: Likewise.
3486 * gimple-low.c: Likewise.
3487 * gimple-pretty-print.c: Likewise.
3488 * gimple-ssa-isolate-paths.c: Likewise.
3489 * gimple-ssa-strength-reduction.c: Likewise.
3490 * gimple-streamer-in.c: Likewise.
3491 * gimple-streamer-out.c: Likewise.
3492 * gimple-walk.c: Likewise.
3493 * gimplify-me.c: Likewise.
3494 * graphite-blocking.c: Likewise.
3495 * graphite.c: Likewise.
3496 * graphite-clast-to-gimple.c: Likewise.
3497 * graphite-dependences.c: Likewise.
3498 * graphite-interchange.c: Likewise.
3499 * graphite-optimize-isl.c: Likewise.
3500 * graphite-poly.c: Likewise.
3501 * graphite-scop-detection.c: Likewise.
3502 * graphite-sese-to-poly.c: Likewise.
3503 * internal-fn.c: Likewise.
3505 * ipa-cp.c: Likewise.
3506 * ipa-devirt.c: Likewise.
3507 * ipa-inline-analysis.c: Likewise.
3508 * ipa-inline.c: Likewise.
3509 * ipa-profile.c: Likewise.
3510 * ipa-prop.c: Likewise.
3511 * ipa-pure-const.c: Likewise.
3512 * ipa-reference.c: Likewise.
3513 * ipa-split.c: Likewise.
3514 * ipa-utils.c: Likewise.
3515 * langhooks.c: Likewise.
3516 * lto-cgraph.c: Likewise.
3517 * lto-compress.c: Likewise.
3518 * lto-opts.c: Likewise.
3519 * lto-section-in.c: Likewise.
3520 * lto-section-out.c: Likewise.
3521 * lto-streamer.c: Likewise.
3522 * lto-streamer-in.c: Likewise.
3523 * lto-streamer-out.c: Likewise.
3524 * omp-low.c: Likewise.
3525 * opts-global.c: Likewise.
3526 * passes.c: Likewise.
3527 * predict.c: Likewise.
3528 * profile.c: Likewise.
3531 * stor-layout.c: Likewise.
3532 * symtab.c: Likewise.
3533 * targhooks.c: Likewise.
3534 * toplev.c: Likewise.
3535 * tracer.c: Likewise.
3536 * trans-mem.c: Likewise.
3537 * tree-affine.c: Likewise.
3539 * tree-call-cdce.c: Likewise.
3540 * tree-cfg.c: Likewise.
3541 * tree-cfgcleanup.c: Likewise.
3542 * tree-chrec.c: Likewise.
3543 * tree-complex.c: Likewise.
3544 * tree-data-ref.c: Likewise.
3545 * tree-dfa.c: Likewise.
3546 * tree-eh.c: Likewise.
3547 * tree-emutls.c: Likewise.
3548 * tree-if-conv.c: Likewise.
3549 * tree-inline.c: Likewise.
3550 * tree-into-ssa.c: Likewise.
3551 * tree-loop-distribution.c: Likewise.
3552 * tree-nested.c: Likewise.
3553 * tree-nrv.c: Likewise.
3554 * tree-object-size.c: Likewise.
3555 * tree-outof-ssa.c: Likewise.
3556 * tree-parloops.c: Likewise.
3557 * tree-phinodes.c: Likewise.
3558 * tree-predcom.c: Likewise.
3559 * tree-pretty-print.c: Likewise.
3560 * tree-profile.c: Likewise.
3561 * tree-scalar-evolution.c: Likewise.
3562 * tree-sra.c: Likewise.
3563 * tree-ssa-address.c: Likewise.
3564 * tree-ssa-alias.c: Likewise.
3565 * tree-ssa.c: Likewise.
3566 * tree-ssa-ccp.c: Likewise.
3567 * tree-ssa-coalesce.c: Likewise.
3568 * tree-ssa-copy.c: Likewise.
3569 * tree-ssa-copyrename.c: Likewise.
3570 * tree-ssa-dce.c: Likewise.
3571 * tree-ssa-dom.c: Likewise.
3572 * tree-ssa-dse.c: Likewise.
3573 * tree-ssa-forwprop.c: Likewise.
3574 * tree-ssa-ifcombine.c: Likewise.
3575 * tree-ssa-live.c: Likewise.
3576 * tree-ssa-loop.c: Likewise.
3577 * tree-ssa-loop-ch.c: Likewise.
3578 * tree-ssa-loop-im.c: Likewise.
3579 * tree-ssa-loop-ivcanon.c: Likewise.
3580 * tree-ssa-loop-ivopts.c: Likewise.
3581 * tree-ssa-loop-manip.c: Likewise.
3582 * tree-ssa-loop-niter.c: Likewise.
3583 * tree-ssa-loop-prefetch.c: Likewise.
3584 * tree-ssa-loop-unswitch.c: Likewise.
3585 * tree-ssa-math-opts.c: Likewise.
3586 * tree-ssanames.c: Likewise.
3587 * tree-ssa-operands.c: Likewise.
3588 * tree-ssa-phiopt.c: Likewise.
3589 * tree-ssa-phiprop.c: Likewise.
3590 * tree-ssa-pre.c: Likewise.
3591 * tree-ssa-propagate.c: Likewise.
3592 * tree-ssa-reassoc.c: Likewise.
3593 * tree-ssa-sccvn.c: Likewise.
3594 * tree-ssa-sink.c: Likewise.
3595 * tree-ssa-strlen.c: Likewise.
3596 * tree-ssa-structalias.c: Likewise.
3597 * tree-ssa-tail-merge.c: Likewise.
3598 * tree-ssa-ter.c: Likewise.
3599 * tree-ssa-threadedge.c: Likewise.
3600 * tree-ssa-threadupdate.c: Likewise.
3601 * tree-ssa-uncprop.c: Likewise.
3602 * tree-ssa-uninit.c: Likewise.
3603 * tree-stdarg.c: Likewise.
3604 * tree-streamer.c: Likewise.
3605 * tree-streamer-in.c: Likewise.
3606 * tree-streamer-out.c: Likewise.
3607 * tree-switch-conversion.c: Likewise.
3608 * tree-tailcall.c: Likewise.
3609 * tree-vect-data-refs.c: Likewise.
3610 * tree-vect-generic.c: Likewise.
3611 * tree-vect-loop.c: Likewise.
3612 * tree-vect-loop-manip.c: Likewise.
3613 * tree-vectorizer.c: Likewise.
3614 * tree-vect-patterns.c: Likewise.
3615 * tree-vect-slp.c: Likewise.
3616 * tree-vect-stmts.c: Likewise.
3617 * tree-vrp.c: Likewise.
3619 * ubsan.c: Likewise.
3620 * value-prof.c: Likewise.
3621 * varpool.c: Likewise.
3622 * var-tracking.c: Likewise.
3623 * vtable-verify.c: Likewise.
3624 * config/darwin.c: Likewise.
3625 * config/aarch64/aarch64-builtins.c: Likewise.
3626 * config/aarch64/aarch64.c: Likewise.
3627 * config/alpha/alpha.c: Likewise.
3628 * config/i386/i386.c: Likewise.
3629 * config/i386/winnt.c: Likewise.
3630 * config/ia64/ia64.c: Likewise.
3631 * config/m32c/m32c.c: Likewise.
3632 * config/mep/mep.c: Likewise.
3633 * config/mips/mips.c: Likewise.
3634 * config/rs6000/rs6000.c: Likewise.
3635 * config/s390/s390.c: Likewise.
3636 * config/sh/sh.c: Likewise.
3637 * config/sparc/sparc.c: Likewise.
3638 * config/spu/spu.c: Likewise.
3639 * config/stormy16/stormy16.c: Likewise.
3640 * config/tilegx/tilegx.c: Likewise.
3641 * config/tilepro/tilepro.c: Likewise.
3642 * config/xtensa/xtensa.c: Likewise.
3644 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3647 * arm.md (negdi_extendsidi): Fix invalid split.
3649 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3651 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3652 (vmov_n_f64): Likewise.
3653 (vmov_n_p8): Likewise.
3654 (vmov_n_p16): Likewise.
3655 (vmov_n_s8): Likewise.
3656 (vmov_n_s16): Likewise.
3657 (vmov_n_s32): Likewise.
3658 (vmov_n_s64): Likewise.
3659 (vmov_n_u8): Likewise.
3660 (vmov_n_u16): Likewise.
3661 (vmov_n_u32): Likewise.
3662 (vmov_n_u64): Likewise.
3663 (vmovq_n_f32): Likewise.
3664 (vmovq_n_f64): Likewise.
3665 (vmovq_n_p8): Likewise.
3666 (vmovq_n_p16): Likewise.
3667 (vmovq_n_s8): Likewise.
3668 (vmovq_n_s16): Likewise.
3669 (vmovq_n_s32): Likewise.
3670 (vmovq_n_s64): Likewise.
3671 (vmovq_n_u8): Likewise.
3672 (vmovq_n_u16): Likewise.
3673 (vmovq_n_u32): Likewise.
3674 (vmovq_n_u64): Likewise.
3676 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3678 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3679 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3680 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3681 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3682 and also change to float UNSPEC.
3683 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3684 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3685 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3686 result access for big-endian.
3687 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3688 intrinsics for big-endian.
3689 * config/aarch64/iterators.md (VDQV): Add V2DI.
3691 (vp): New mode attribute.
3693 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3695 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3696 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3699 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3701 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3702 for big-endian element order.
3703 (aarch64_simd_vec_setv2di): Likewise.
3704 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3705 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3706 (vec_extract): Expand using aarch64_get_lane.
3707 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3709 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3711 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3712 and stores to be ABI compliant.
3714 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3716 * input.h (input_line): Remove.
3717 (input_filename): Likewise.
3718 (in_system_header): Likewise.
3719 * tree.h (EXPR_LOC_OR_HERE): Remove.
3720 * config/bfin/bfin.c (output_file_start): Remove use of
3721 input_filename macro.
3722 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3723 * gimplify.c (internal_get_tmp_var): Likewise.
3724 EXPR_LOC_OR_HERE macro.
3725 (shortcut_cond_expr): Likewise.
3726 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3727 use of input_filename macro.
3728 * tree.c (get_file_function_name): Likewise.
3730 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3732 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3734 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3736 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3737 (same sized) elements even if the type of the CONSTRUCTOR has
3738 vector mode and target is a REG.
3740 2013-11-22 Richard Biener <rguenther@suse.de>
3743 2013-11-21 Richard Biener <rguenther@suse.de>
3745 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3746 nb_iterations_upper_bound by one.
3748 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3750 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3753 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3754 core-avx-i, core-avx2 and slm.
3756 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3758 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3760 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3762 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3763 (stzx_24_<mode>): Likewise mra_operand.
3765 2013-11-22 Jeff Law <law@redhat.com>
3767 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3768 (thread_block_1): Do not cancel jump threads which go from
3769 inside a loop, through the header, then back inside the loop.
3770 (bb_ends_with_multiway_branch): New function.
3771 (thread_through_all_blocks): Handle threading cases which start
3772 in a loop through the loop header to a point in the loop.
3774 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3775 jump thread path properly.
3777 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3779 * vec.h (auto_vec): New class.
3780 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3781 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3782 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3783 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3784 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3785 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3786 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3787 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3788 appropriate instead of vec for local variables.
3790 2013-11-21 Teresa Johnson <tejohnson@google.com>
3793 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3794 not understood by old_insns_match_p.
3796 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3798 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3799 little endian change.
3800 (vec_pack_sfix_trunc_v2df): Likewise.
3801 (vec_pack_ufix_trunc_v2df): Likewise.
3802 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3803 double checking of endianness.
3805 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3807 * tree-vect-generic.c (optimize_vector_constructor): New function.
3808 (expand_vector_operations_1): Call it.
3810 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3812 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3813 ix86_zero_extend_to_Pmode where appropriate.
3814 (ix86_expand_builtin): Ditto.
3816 2013-11-21 Cary Coutant <ccoutant@google.com>
3818 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3819 (add_linkage_name): Don't add linkage name for -g1.
3820 (decls_for_scope): Process subblocks for -g1.
3821 (dwarf2out_source_line): Output line tables for -g1.
3822 (dwarf2out_finish): Likewise.
3823 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3824 unused scopes for -g1.
3825 * opts.c (common_handle_option): Handle -g same as -g2.
3826 * doc/invoke.texi: Update description for -g1.
3828 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3830 * doc/extend.texi: Document htm builtins.
3832 2013-11-21 Jeff Law <law@redhat.com>
3834 PR tree-optimization/59221
3835 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3836 temporary equivalences when threading through joiner blocks.
3838 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3840 PR rtl-optimization/55950
3841 * real.c (real_sqrt): Remove function.
3842 * real.h (real_sqrt): Remove prototype.
3843 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3844 SQRT using real_sqrt.
3846 2013-11-21 Richard Biener <rguenther@suse.de>
3848 PR tree-optimization/59058
3849 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3850 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3851 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3852 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3853 (NITERS_KNOWN_P): Fold into ...
3854 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
3855 (LOOP_VINFO_PEELING_FOR_NITER): Add.
3856 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3857 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3858 (vect_do_peeling_for_alignment): Re-use precomputed niter
3859 instead of re-emitting it.
3860 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3861 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3862 * tree-vect-loop.c (vect_get_loop_niters): Use
3863 number_of_latch_executions.
3864 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
3865 (vect_analyze_loop_form): Simplify.
3866 (vect_analyze_loop_operations): Move epilogue peeling code ...
3867 (vect_analyze_loop_2): ... here and adjust it to compute
3868 LOOP_VINFO_PEELING_FOR_NITER.
3869 (vect_estimate_min_profitable_iters): Use
3870 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3871 (vect_build_loop_niters): Emit on the preheader.
3872 (vect_generate_tmps_on_preheader): Likewise.
3873 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
3874 of recomputing it. Adjust.
3876 2013-11-21 Richard Biener <rguenther@suse.de>
3878 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3879 LOC_LINE): Remove wrappers and fix all users.
3880 (struct _loop_vec_info): Remove loop_line_number member.
3881 (LOOP_VINFO_LOC): Remove.
3882 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
3883 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
3886 2013-11-21 Richard Biener <rguenther@suse.de>
3888 * tree-ssa-forwprop.c (simplify_vce): New function.
3889 (ssa_forward_propagate_and_combine): Call it.
3891 2013-11-21 Richard Biener <rguenther@suse.de>
3893 * tree-vect-loop-manip.c (vect_build_loop_niters,
3894 vect_generate_tmps_on_preheader): Move ...
3895 * tree-vect-loop.c (vect_build_loop_niters,
3896 vect_generate_tmps_on_preheader): ... here and simplify.
3897 (vect_transform_loop): Call them here and pass down results
3899 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
3900 Get niter variables from caller.
3901 (vect_do_peeling_for_alignment): Likewise.
3902 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
3903 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3906 2013-11-21 Richard Biener <rguenther@suse.de>
3908 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3909 nb_iterations_upper_bound by one.
3911 2013-11-21 Richard Biener <rguenther@suse.de>
3913 PR tree-optimization/59058
3914 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
3915 (build_size_arg_loc): Apply niter adjustment here.
3916 (generate_memset_builtin): Adjust.
3917 (generate_memcpy_builtin): Likewise.
3918 (classify_partition): Do not use number_of_exit_cond_executions
3919 but record whether niter needs to be adjusted.
3921 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
3923 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
3926 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
3929 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
3930 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
3931 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
3932 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
3933 sh_optimize_sett_clrt pass.o to extra_objs.
3935 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3937 * cfg.c (dump_edge_info): Remove redundant comment.
3938 * cfgcleanup.c (outgoing_edges_match): Reword reference to
3939 EXIT_BLOCK_PTR in comment.
3940 (try_optimize_cfg): Likewise.
3941 * cfgrtl.c (last_bb_in_partition): Likewise.
3942 * cgraph.c (cgraph_node_cannot_return): Likewise.
3943 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3944 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
3945 * ipa-split.c (consider_split): Likewise.
3946 * profile.c (find_spanning_tree): Likewise.
3947 * sched-int.h (common_sched_info_def.add_block): Likewise.
3948 * dominance.c (calc_dfs_tree_nonrec): Reword references in
3949 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
3950 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
3951 in comments to now removed ENTRY_BLOCK_PTR macro.
3952 (tree_forwarder_block_p): Reword reference in comment to
3954 * tree-inline.c (copy_cfg_body): Reword references in comments to
3955 now removed ENTRY_BLOCK_PTR macro.
3956 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3957 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
3958 a comma to the comment to clarify the meaning.
3960 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
3962 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
3964 (free_gimplify_stack): Add prototype.
3965 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
3966 (struct gimplify_ctx): Relocate here.
3967 (gimplify_ctxp): Make static.
3968 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
3969 list of struct gimplify_ctx.
3970 (push_gimplify_context): Add default parameters and allocate a struct
3972 (pop_gimplify_context): Free a struct back to the pool.
3973 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3974 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
3975 use a local 'struct gimplify_ctx'.
3976 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
3977 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
3979 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3980 lower_omp_ordered, lower_omp_critical, lower_omp_for,
3981 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
3982 lower_omp_teams, execute_lower_omp): Likewise.
3983 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3984 * tree-inline.c (optimize_inline_calls): Likewise.
3986 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3988 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
3989 (vsx_extract_<mode>): Likewise.
3990 (*vsx_extract_<mode>_one_le): New LE variant on
3991 *vsx_extract_<mode>_zero.
3992 (vsx_extract_v4sf): Adjust for little endian.
3994 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
3996 PR rtl-optimization/59133
3997 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
3999 (lra_create_new_reg_with_unique_value): Pass new argument value.
4000 (lra_emit_add, lra_emit_move): Ditto.
4001 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4002 (change_class): Rename to lra_change_class. Move to lra-int.h.
4003 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4005 (process_addr_reg, process_addr): Ditto.
4006 (curr_insn_transform): Ditto. Add check on old pseudo for
4008 * lra-int.h (lra_get_regno_hard_regno): Move below.
4009 (lra_change_class): Renamed change_class from lra.c.
4011 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4013 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4014 the children of a NULL pointer.
4016 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4018 * lra.c (lra): Set lra_in_progress before check_rtl call.
4019 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4020 adding clobber regs when LRA is running.
4022 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4024 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4025 restriction for ISA_MIPS32R2.
4026 (ISA_HAS_LXC1_SXC1): New macro.
4027 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4028 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4029 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4030 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4031 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4032 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4033 (*<ANYF:storex>_<P:mode>): Likewise.
4035 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4037 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4038 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4039 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4040 * config/mips/mips.md (recip_condition): Remove mode attribute.
4041 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4043 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4045 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4048 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4049 Make sure neg2_ovf is set before being used.
4051 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4053 * plugin.def: Add comment about register_callback and
4054 invoke_plugin_callbacks_full.
4056 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4057 Handle PLUGIN_INCLUDE_FILE event.
4059 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4061 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4062 allow subregs of TDmode in FPRs of smaller size in little-endian.
4063 (rs6000_split_multireg_move): When splitting an access to TDmode
4064 in FPRs, do not use simplify_gen_subreg.
4066 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4069 * real.c: Remove comment about decimal string conversion and
4071 (real_from_string): Use MPFR to convert nonzero decimal constant
4074 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4076 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4077 endianness of the D registers for the legacy encodings.
4079 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4081 PR rtl-optimization/54300
4082 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4083 outputs in a single-set are killed from the value chains.
4085 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4087 * cgraph.h (varpool_node): Add need_bounds_init field.
4088 * lto-cgraph.c (lto_output_varpool_node): Output
4089 need_bounds_init value.
4090 (input_varpool_node): Read need_bounds_init value.
4091 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4093 2013-11-20 Jan Hubicka <jh@suse.cz>
4095 * opts.c (finish_options): Imply -ffat-lto-objects with
4096 -fno-use-linker-plugin.
4097 * common.opt (fuse-linker-plugin): Add var.
4099 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4101 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4102 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4103 (gen_type_die_with_usage): Skip pointer bounds.
4104 (dwarf2out_global_decl): Likewise.
4106 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4108 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4111 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4114 * config/i386/i386.c (ix86_option_override_internal): Add missed
4115 argument prefix for 'ix86_fpmath'.
4116 * config/i386/ssemath.h: Add missed definition of
4117 TARGET_FPMATH_DEFAULT_P macros.
4119 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4120 Mike Stump <mikestump@comcast.net>
4121 Richard Sandiford <rdsandiford@googlemail.com>
4123 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4124 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4125 tree_fits_shwi_p or tree_fits_uhwi_p.
4126 * builtins.c (fold_builtin_powi): Likewise.
4127 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4129 * dbxout.c (dbxout_symbol): Likewise.
4130 * expr.c (expand_expr_real_1): Likewise.
4131 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4132 (fold_binary_loc): Likewise.
4133 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4134 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4135 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4136 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4137 * stor-layout.c (compute_record_mode): Likewise.
4138 * tree-cfg.c (verify_expr): Likewise.
4139 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4140 * tree-pretty-print.c (dump_array_domain): Likewise.
4141 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4142 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4143 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4144 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4145 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4146 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4147 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4148 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4149 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4150 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4151 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4152 (create_variable_info_for_1): Likewise.
4153 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4154 (vect_verify_datarefs_alignment): Likewise.
4155 (vect_analyze_data_ref_accesses): Likewise.
4156 (vect_prune_runtime_alias_test_list): Likewise.
4157 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4159 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4161 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4162 overflow. Use tree_to_shwi.
4164 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4166 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4167 HOST_WIDE_INTs when folding (x >> c) << c.
4169 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4170 Dominik Vogt <vogt@linux.vnet.ibm.com>
4172 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4173 int comparisons with an out of range condition code.
4174 (s390_optimize_nonescaping_tx): Skip empty BBs.
4175 Generate the new tbegin RTX when removing the FPR clobbers (with
4177 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4178 result before doing the retry calculations.
4179 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4181 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4182 the TDB setting part of an tbegin.
4183 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4184 ("tx_assist"): Set unused argument to an immediate zero instead of
4185 loading zero into a GPR and pass it as argument.
4186 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4187 Remove inline and related attributes.
4188 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4189 (__TM_is_illegal, __TM_is_footprint_exceeded)
4190 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4192 2013-11-20 Richard Biener <rguenther@suse.de>
4195 * lto-opts.c (lto_write_options): Write defaults only if
4196 they were not explicitely specified. Also write
4197 -ffp-contract default.
4198 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4200 (run_gcc): Pass through -ffp-contract.
4202 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4204 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4206 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4208 * config/aarch64/aarch64-builtins.c
4209 (aarch64_simd_itype): Remove.
4210 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4211 (VAR1): Use qualifiers.
4212 (aarch64_build_scalar_type): New.
4213 (aarch64_build_vector_type): Likewise.
4214 (aarch64_build_type): Likewise.
4215 (aarch64_init_simd_builtins): Refactor, remove special cases,
4216 consolidate main loop.
4217 (aarch64_simd_expand_args): Likewise.
4219 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4222 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4224 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4226 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4228 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4230 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4231 to "vec<>" instances.
4232 (build_pretty_printer): Register the vec<>* prettyprinter.
4234 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4236 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4237 (GdbSubprinter.handles_type): New.
4238 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4239 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4240 (GdbPrettyPrinters.add_printer): Remove in favor of...
4241 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4242 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4243 (GdbPrettyPrinters.__call__): Update search for subprinter
4244 to use handles_type method.
4245 (build_pretty_printer): Update registration of subprinters to
4246 use the new API above, supporting multiple spelling of each type,
4247 and allowing for future regex-based subprinters.
4249 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4251 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4252 V16QI vector splat case for little endian.
4254 2013-11-19 Jeff Law <law@redhat.com>
4256 * tree-ssa-threadedge.c (thread_across_edge): After threading
4257 through a joiner, allow threading a normal block requiring duplication.
4259 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4260 jump threading requests that would muck up the loop structures.
4262 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4263 * tree-ssa-threadupdate.h: Likewise.
4265 2013-11-19 Mike Stump <mikestump@comcast.net>
4267 * gdbinit.in: Add pmz to print out mpz values.
4269 2013-11-20 Jan Hubicka <jh@suse.cz>
4271 * common.opt (ffat-lto-objects): Disable by default.
4272 * doc/invoke.texi (fat-lto-objects): Update documentation.
4273 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4275 2013-11-19 Martin Jambor <mjambor@suse.cz>
4277 PR rtl-optimization/59099
4278 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4280 (ira): Move init_reg_equiv and call to
4281 split_live_ranges_for_shrink_wrap up, remove analyses around call
4282 to find_moveable_pseudos.
4284 2013-11-20 Alan Modra <amodra@gmail.com>
4286 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4287 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4288 to strict alignment on older processors when little-endian.
4289 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4292 2013-11-19 Teresa Johnson <tejohnson@google.com>
4294 * common/config/i386/i386-common.c: Enable
4295 -freorder-blocks-and-partition at -O2 and up for x86.
4296 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4297 * opts.c (finish_options): Only warn if
4298 -freorder-blocks-and-partition was set on command line.
4300 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4302 * final.c (final_scan_insn): Emit a label for the split
4303 cold function part. Label name is formed by suffixing
4304 the original function name with "cold".
4306 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4308 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4309 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4310 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4311 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4312 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4314 (EXIT_BLOCK_PTR): Likewise.
4315 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4316 (FOR_ALL_BB_FN): Update for renaming of
4317 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4319 * cfg.c (init_flow): Likewise.
4320 (check_bb_profile): Likewise.
4321 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4322 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4323 * cfghooks.c (account_profile_record): Likewise.
4324 * cfgloop.c (init_loops_structure): Likewise.
4325 * cgraphbuild.c (record_eh_tables): Likewise.
4326 (compute_call_stmt_bb_frequency): Likewise.
4327 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4328 * lto-streamer-in.c (input_cfg): Likewise.
4329 * predict.c (maybe_hot_frequency_p): Likewise.
4330 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4331 * tree-inline.c (initialize_cfun): Likewise.
4332 (copy_cfg_body): Likewise.
4333 (copy_body): Likewise.
4334 (tree_function_versioning): Likewise.
4336 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4337 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4338 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4339 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4340 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4341 (connect_traces): Likewise.
4342 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4343 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4344 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4346 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4348 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4349 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4350 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4351 (rotate_loop): Likewise.
4352 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4353 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4355 (alloc_aux_for_edges): Likewise.
4356 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4357 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4359 (compact_blocks): Likewise.
4360 (clear_edges): Likewise.
4361 * cfganal.c (single_pred_before_succ_order): Remove usage of
4362 ENTRY_BLOCK_PTR macro.
4363 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4364 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4365 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4366 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4367 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4369 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4370 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4372 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4373 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4374 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4375 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4376 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4377 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4379 (print_edge_list): Likewise.
4380 (create_edge_list): Likewise.
4381 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4382 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4384 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4386 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4387 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4388 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4389 (try_optimize_cfg): Likewise.
4390 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4391 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4392 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4393 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4394 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4395 (try_forward_edges): Likewise.
4396 (try_simplify_condjump): Likewise.
4397 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4398 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4399 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4400 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4402 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4403 (expand_gimple_tailcall): Likewise.
4404 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4405 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4406 (tidy_fallthru_edges): Likewise.
4407 (verify_flow_info): Likewise.
4408 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4409 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4410 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4411 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4412 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4413 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4414 (get_loop_body_in_dom_order): Likewise.
4415 (get_loop_body): Likewise.
4416 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4417 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4418 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4420 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4421 (fix_bb_placement): Likewise.
4422 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4423 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4424 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4425 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4427 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4428 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4429 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4430 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4432 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4433 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4434 (fixup_reorder_chain): Likewise.
4435 (relink_block_chain): Likewise.
4436 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4437 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4438 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4439 (force_one_exit_fallthru): Likewise.
4440 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4442 (rtl_verify_edges): Likewise.
4443 (commit_edge_insertions): Likewise.
4444 (commit_one_edge_insertion): Likewise.
4445 (rtl_split_edge): Likewise.
4446 (force_nonfallthru_and_redirect): Likewise.
4447 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4448 (skip_insns_after_block): Likewise.
4449 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4451 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4452 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4454 (contains_no_active_insn_p): Likewise.
4455 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4456 (entry_of_function): Likewise.
4457 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4458 (fixup_new_cold_bb): Likewise.
4459 (patch_jump_insn): Likewise.
4460 (try_redirect_by_replacing_jump): Likewise.
4461 (block_label): Likewise.
4462 (could_fall_through): Likewise.
4463 (can_fallthru): Likewise.
4464 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4465 ENTRY_BLOCK_PTR macro.
4466 (rebuild_cgraph_edges): Likewise.
4467 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4468 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4469 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4470 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4471 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4472 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4473 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4474 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4476 (reg_nonzero_bits_for_combine): Likewise.
4477 (set_nonzero_bits_and_sign_copies): Likewise.
4478 (combine_instructions): Likewise.
4479 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4481 (bypass_conditional_jumps): Likewise.
4482 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4483 (find_implicit_sets): Likewise.
4484 (cprop_jump): Likewise.
4485 * cse.c (cse_cc_succs): Likewise.
4486 (cse_find_path): Likewise.
4487 * df-problems.c (df_lr_confluence_0): Likewise.
4488 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4489 ENTRY_BLOCK_PTR macro.
4490 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4491 * dominance.c (iterate_fix_dominators): Remove usage of
4492 ENTRY_BLOCK_PTR macro.
4493 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4494 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4495 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4497 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4499 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4501 * domwalk.c (cmp_bb_postorder): Likewise.
4502 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4503 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4505 (sjlj_emit_function_enter): Likewise.
4506 * final.c (compute_alignments): Likewise.
4507 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4508 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4509 (reposition_prologue_and_epilogue_notes): Remove usage of
4510 EXIT_BLOCK_PTR macro.
4511 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4513 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4514 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4515 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4516 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4517 (compute_code_hoist_vbeinout): Likewise.
4518 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4519 (pre_expr_reaches_here_p_work): Likewise.
4520 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4521 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4523 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4524 ENTRY_BLOCK_PTR macro.
4525 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4527 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4528 ENTRY_BLOCK_PTR macro.
4529 * graphite-scop-detection.c (build_scops): Likewise.
4530 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4531 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4532 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4534 (unlink_bb_notes): Likewise.
4535 (create_check_block_twin): Likewise.
4536 (init_before_recovery): Likewise.
4537 (sched_extend_bb): Likewise.
4538 (priority): Likewise.
4539 * hw-doloop.c (reorder_loops): Likewise.
4540 (discover_loop): Likewise.
4541 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4542 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4543 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4544 (block_has_only_trap): Likewise.
4545 (cond_exec_find_if_block): Likewise.
4546 (merge_if_block): Likewise.
4547 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4548 ENTRY_BLOCK_PTR macro.
4549 (record_modified): Likewise.
4550 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4551 EXIT_BLOCK_PTR macro.
4552 (local_pure_const): Likewise.
4553 * ipa-split.c (split_function): Remove uses of macros:
4554 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4555 (find_split_points): Likewise.
4556 (consider_split): Likewise.
4557 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4558 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4559 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4560 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4561 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4562 ENTRY_BLOCK_PTR macro.
4563 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4564 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4565 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4566 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4567 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4569 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4571 (compute_farthest): Likewise.
4572 (compute_available): Likewise.
4573 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4574 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4576 (compute_earliest): Likewise.
4577 (compute_antinout_edge): Likewise.
4578 * loop-iv.c (simplify_using_initial_values): Remove usage of
4579 ENTRY_BLOCK_PTR macro.
4580 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4582 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4584 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4586 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4587 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4588 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4590 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4592 * lto-streamer-out.c (output_cfg): Likewise.
4593 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4595 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4596 * mode-switching.c (optimize_mode_switching): Likewise.
4597 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4598 * modulo-sched.c (rest_of_handle_sms): Likewise.
4599 (canon_loop): Likewise.
4600 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4601 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4602 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4603 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4605 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4606 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4607 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4608 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4609 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4610 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4611 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4612 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4613 (gimple_predict_edge): Likewise.
4614 (probably_never_executed): Likewise.
4615 * profile.c (find_spanning_tree): Remove uses of macros:
4616 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4617 (branch_prob): Likewise.
4618 (compute_branch_probabilities): Likewise.
4619 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4620 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4621 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4622 (set_bb_counts): Likewise.
4623 (correct_negative_edge_counts): Likewise.
4624 (get_exec_counts): Likewise.
4625 (instrument_values): Likewise.
4626 (instrument_edges): Likewise.
4627 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4629 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4630 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4631 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4632 (reg_to_stack): Likewise.
4633 * regs.h (REG_N_SETS): Likewise.
4634 * reload.c (find_dummy_reload): Likewise.
4635 (combine_reloads): Likewise.
4636 (push_reload): Likewise.
4637 * reload1.c (has_nonexceptional_receiver): Remove usage of
4638 EXIT_BLOCK_PTR macro.
4639 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4641 (find_basic_block): Likewise.
4642 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4643 (schedule_ebbs): Likewise.
4644 * sched-int.h (sel_sched_p): Likewise.
4645 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4647 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4648 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4650 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4651 (extend_rgns): Likewise.
4652 (find_single_block_region): Likewise.
4653 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4654 ENTRY_BLOCK_PTR macro.
4655 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4656 (sel_create_recovery_block): Likewise.
4657 (bb_ends_ebb_p): Likewise.
4658 (sel_bb_end): Likewise.
4659 (sel_bb_head): Likewise.
4660 (free_lv_sets): Likewise.
4661 (init_lv_sets): Likewise.
4662 (tidy_control_flow): Likewise.
4663 (maybe_tidy_empty_bb): Likewise.
4664 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4665 (_succ_iter_start): Likewise.
4666 (sel_bb_empty_or_nop_p): Likewise.
4667 (get_loop_exit_edges_unique_dests): Likewise.
4668 (inner_loop_header_p): Likewise.
4669 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4670 (find_block_for_bookkeeping): Likewise.
4671 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4672 (insert_store): Likewise.
4673 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4674 ENTRY_BLOCK_PTR macro.
4675 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4676 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4677 (gate_tm_init): Likewise.
4678 (tm_region_init): Likewise.
4679 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4680 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4681 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4682 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4684 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4685 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4687 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4689 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4691 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4693 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4694 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4695 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4696 (build_gimple_cfg): Likewise.
4697 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4698 (gimple_can_merge_blocks_p): Likewise.
4699 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4700 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4701 * tree-complex.c (update_parameter_components): Remove usage of
4702 ENTRY_BLOCK_PTR macro.
4703 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4704 EXIT_BLOCK_PTR macro.
4705 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4706 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4707 (delete_unreachable_blocks_update_callgraph): Likewise.
4708 (initialize_cfun): Likewise.
4709 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4710 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4711 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4712 * tree-into-ssa.c (update_ssa): Likewise.
4713 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4714 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4715 (rewrite_into_ssa): Likewise.
4716 (rewrite_debug_stmt_uses): Likewise.
4717 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4718 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4719 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4720 ENTRY_BLOCK_PTR macro.
4721 * tree-scalar-evolution.h (block_before_loop): Likewise.
4722 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4723 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4725 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4727 (propagate_dereference_distances): Remove uses of macros:
4728 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4729 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4731 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4732 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4733 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4734 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4735 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4736 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4737 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4738 (mark_control_dependent_edges_necessary): Remove uses of macros:
4739 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4740 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4741 ENTRY_BLOCK_PTR macro.
4742 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4743 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4744 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4745 (calculate_live_on_exit): Likewise.
4746 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4747 (loe_visit_block): Likewise.
4748 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4749 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4750 (live_on_entry): Likewise.
4751 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4752 EXIT_BLOCK_PTR macro.
4753 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4754 ENTRY_BLOCK_PTR macro.
4755 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4756 (bound_difference): Likewise.
4757 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4758 of EXIT_BLOCK_PTR macro.
4759 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4760 of ENTRY_BLOCK_PTR macro.
4761 * tree-ssa-math-opts.c (register_division_in): Likewise.
4762 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4763 * tree-ssa-pre.c (compute_avail): Likewise.
4764 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4765 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4766 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4767 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4768 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4770 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4771 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4772 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4773 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4774 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4775 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4776 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4777 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4778 (find_pdom): Likewise.
4779 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4780 * tree-stdarg.c (reachable_at_most_once): Likewise.
4781 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4782 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4783 (eliminate_tail_call): Likewise.
4784 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4786 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4787 * var-tracking.c (vt_initialize): Remove uses of macros:
4788 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4789 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4790 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4791 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4793 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4795 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4796 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4797 of EXIT_BLOCK_PTR macro.
4798 * config/arm/arm.c (require_pic_register): Remove usage of
4799 ENTRY_BLOCK_PTR macro.
4800 (arm_r3_live_at_start_p): Likewise.
4801 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4802 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4803 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4804 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4805 ENTRY_BLOCK_PTR macro.
4806 * config/i386/i386.c (ix86_count_insn): Likewise.
4807 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4808 (ix86_pad_short_function): Likewise.
4809 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4810 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4811 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4812 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4813 (ix86_expand_epilogue): Likewise.
4814 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4815 (ia64_expand_prologue): Likewise.
4817 2013-11-19 Catherine Moore <clm@codesourcery.com>
4819 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4820 * config/mips/mips.opt (mfix-rm7000): New option.
4821 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4822 * config/mips/mips.c (mips_reorg_process_insns): Disable
4823 noreorder for TARGET_FIX_RM7000.
4825 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4827 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4829 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4831 * config/arm/arm.c (arm_new_rtx_costs):
4832 Handle narrow mode add-shifts properly.
4833 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4834 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4837 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4839 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4841 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4843 * config/rs6000/vector.md ("mov<mode>"): Do not call
4844 rs6000_emit_le_vsx_move to move into or out of GPRs.
4845 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4846 source and destination are not GPR hard regs.
4848 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4850 * basic-block.h (n_edges_for_function): Rename macro to...
4851 (n_edges_for_fn): ...this.
4852 (n_edges): Eliminate macro as work towards making uses of
4855 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
4856 to "n_edges_for_fn".
4858 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
4859 (clear_edges): Likewise.
4860 (free_edge): Likewise.
4861 * cfghooks.c (dump_flow_info): Likewise.
4862 * cprop.c (is_too_expensive): Likewise.
4863 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4864 * gcse.c (is_too_expensive): Likewise.
4865 (prune_insertions_deletions): Likewise.
4866 * mcf.c (create_fixup_graph): Likewise.
4867 * sched-rgn.c (haifa_find_rgns): Likewise.
4868 * tree-cfg.c (gimple_dump_cfg): Likewise.
4869 * var-tracking.c (variable_tracking_main_1): Likewise.
4871 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4873 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
4876 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4878 * config/aarch64/aarch64.md
4879 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
4881 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4883 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
4885 2013-11-19 Joseph Myers <joseph@codesourcery.com>
4887 * varasm.c (align_variable): Give error instead of warning for
4888 unsupported alignment.
4889 (assemble_noswitch_variable): Likewise.
4891 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4893 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
4896 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
4898 * loop-doloop.c (doloop_optimize_loops): Remove unused
4899 loop iterator argument from FOR_EACH_LOOP.
4901 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4903 Convert gimple types from a union to C++ inheritance.
4904 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
4905 * coretypes.h (union gimple_statement_d): Remove declaration.
4906 (gimple): Convert from being a "union gimple_statement_d *"
4907 to a "struct gimple_statement_base *".
4908 (const_gimple): Likewise (with "const").
4909 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
4910 (ggc_alloc_cleared_gimple_statement_stat): ...this.
4911 * gimple-pretty-print.c (debug): Change parameter from a
4912 "gimple_statement_d &" to a "gimple_statement_base &".
4913 (debug): Change parameter from a "gimple_statement_d *" to
4914 a "gimple_statement_base *".
4915 * gimple-pretty-print.h (debug): Update declarations as above.
4916 * gimple.c (gimple_alloc_stat): Update for renaming of
4917 ggc_alloc_cleared_gimple_statement_d_stat to
4918 ggc_alloc_cleared_gimple_statement_stat.
4919 * gimple.h: Include "is-a.h" for use by is_a_helper
4920 specializations in followup autogenerated patch.
4921 (struct gimple statement_base): Make this type usable as a base
4922 class by adding "desc", "tag" and "variable_size" to GTY, thus
4923 using opting-in to gengtype's support for simple inheritance.
4924 (gimple_statement_with_ops_base): Convert to a subclass of
4925 gimple_statement_base, dropping initial "gsbase" field. Note that
4926 this type is abstract, with no GSS_ value, and thus no GTY tag value.
4927 (gimple_statement_with_ops): Convert to a subclass of
4928 gimple_statement_with_ops_base, dropping initial "opbase" field.
4929 Add tag value to GTY marking. Update marking of op field to
4930 reflect how num_ops field is accessed via inheritance.
4931 (gimple_statement_with_memory_ops_base): Convert to a subclass of
4932 gimple_statement_with_ops_base, dropping initial "opbase" field.
4933 Add tag value to GTY marking.
4934 (gimple_statement_with_memory_ops): Convert to a subclass of
4935 public gimple_statement_with_memory_ops_base, dropping initial
4936 "membase" field. Add tag value to GTY marking. Update marking
4937 of op field to reflect how num_ops field is accessed via inheritance.
4938 (gimple_statement_call): Analogous changes that also update the
4939 marking of the "u" union.
4940 (gimple_statement_omp): Convert to a subclass of
4941 gimple_statement_base, dropping initial "gsbase" field, adding
4942 tag value to GTY marking.
4943 (gimple_statement_bind): Likewise.
4944 (gimple_statement_catch): Likewise.
4945 (gimple_statement_eh_filter): Likewise.
4946 (gimple_statement_eh_else): Likewise.
4947 (gimple_statement_eh_mnt): Likewise.
4948 (gimple_statement_phi): Likewise.
4949 (gimple_statement_eh_ctrl): Likewise.
4950 (gimple_statement_try): Likewise.
4951 (gimple_statement_wce): Likewise.
4952 (gimple_statement_asm): Convert to a subclass of
4953 gimple_statement_with_memory_ops_base, dropping initial
4954 "membase" field, adding tag value to GTY marking, and updating
4955 marking of op field.
4956 (gimple_statement_omp_critical): Convert to a subclass of
4957 gimple_statement_omp, dropping initial "omp" field, adding tag
4958 value to GTY marking.
4959 (gimple_statement_omp_for): Likewise.
4960 (gimple_statement_omp_parallel): Likewise.
4961 (gimple_statement_omp_task): Convert to a subclass of
4962 gimple_statement_omp_parallel, dropping initial "par" field,
4963 adding tag value to GTY marking.
4964 (gimple_statement_omp_sections): Convert to a subclass of
4965 gimple_statement_omp, dropping initial "omp" field, adding
4966 tag value to GTY marking.
4967 (gimple_statement_omp_continue): Convert to a subclass of
4968 gimple_statement_base, dropping initial "gsbase" field, adding
4969 tag value to GTY marking.
4970 (gimple_statement_omp_single): Convert to a subclass of
4971 gimple_statement_omp, dropping initial "omp" field, adding
4972 tag value to GTY marking.
4973 (gimple_statement_omp_atomic_load): Convert to a subclass of
4974 gimple_statement_base, dropping initial "gsbase" field, adding
4975 tag value to GTY marking.
4976 (gimple_statement_omp_atomic_store): Convert to a subclass of
4977 gimple_statement_base, dropping initial "gsbase" field, adding
4978 tag value to GTY marking.
4979 (gimple_statement_transaction): Convert to a subclass of
4980 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
4981 field, adding tag value to GTY marking.
4982 (union gimple_statement_d): Remove.
4983 * system.h (CONST_CAST_GIMPLE): Update to use
4984 "struct gimple_statement_base *" rather than
4985 "union gimple_statement_d *".
4986 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
4987 gimple_statement_d to gimple_statement_base.
4989 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
4990 (gimple_set_use_ops): Port from union to usage of as_a.
4991 (gimple_set_vuse): Likewise.
4992 (gimple_set_vdef): Likewise.
4993 (gimple_call_internal_fn): Port from union to a static_cast,
4994 given that the type has already been asserted.
4995 (gimple_omp_body_ptr): Port from unchecked union usage to
4997 (gimple_omp_set_body): Likewise.
4999 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5000 gimple types to a true class hierarchy.
5001 (update_call_edge_frequencies): Likewise.
5002 (gsi_insert_seq_nodes_before): Likewise.
5003 (gsi_insert_seq_nodes_after): Likewise.
5004 (gsi_split_seq_after): Likewise.
5005 (gsi_set_stmt): Likewise.
5006 (gsi_split_seq_before): Likewise.
5007 (gsi_remove): Likewise.
5008 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5009 (gsi_next): Likewise.
5010 (gsi_prev): Likewise.
5011 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5012 * gimple-ssa.h (gimple_vuse_op): Likewise.
5013 (gimple_vdef_op): Likewise.
5014 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5015 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5016 * gimple.c (gimple_set_code): Likewise.
5017 (gimple_alloc_stat): Likewise.
5018 (gimple_set_subcode): Likewise.
5019 (gimple_build_call_internal_1): Likewise.
5020 (gimple_check_failed): Likewise.
5021 (gimple_call_flags): Likewise.
5022 (gimple_set_bb): Likewise.
5023 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5024 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5025 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5026 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5027 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5028 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5029 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5030 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5031 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5032 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5033 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5034 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5035 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5036 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5037 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5038 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5039 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5040 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5041 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5042 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5043 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5044 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5045 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5046 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5047 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5048 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5050 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5052 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5054 (is_a_helper <const gimple_statement_omp_atomic_store>
5055 (const_gimple)): Likewise.
5056 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5058 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5060 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5062 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5064 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5066 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5068 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5070 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5071 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5073 (gimple_seq_last): Update for conversion of gimple types to a true
5075 (gimple_seq_set_last): Likewise.
5076 (gimple_code): Likewise.
5077 (gimple_bb): Likewise.
5078 (gimple_block): Likewise.
5079 (gimple_set_block): Likewise.
5080 (gimple_location): Likewise.
5081 (gimple_location_ptr): Likewise.
5082 (gimple_set_location): Likewise.
5083 (gimple_no_warning_p): Likewise.
5084 (gimple_set_no_warning): Likewise.
5085 (gimple_set_visited): Likewise.
5086 (gimple_visited_p): Likewise.
5087 (gimple_set_plf): Likewise.
5088 (gimple_plf): Likewise.
5089 (gimple_set_uid): Likewise.
5090 (gimple_uid): Likewise.
5091 (gimple_init_singleton): Likewise.
5092 (gimple_modified_p): Likewise.
5093 (gimple_set_modified): Likewise.
5094 (gimple_expr_code): Likewise.
5095 (gimple_has_volatile_ops): Likewise.
5096 (gimple_set_has_volatile_ops): Likewise.
5097 (gimple_omp_subcode): Likewise.
5098 (gimple_omp_set_subcode): Likewise.
5099 (gimple_omp_return_set_nowait): Likewise.
5100 (gimple_omp_section_set_last): Likewise.
5101 (gimple_omp_parallel_set_combined_p): Likewise.
5102 (gimple_omp_atomic_set_need_value): Likewise.
5103 (gimple_omp_atomic_set_seq_cst): Likewise.
5104 (gimple_num_ops): Likewise.
5105 (gimple_set_num_ops): Likewise.
5106 (gimple_assign_nontemporal_move_p): Likewise.
5107 (gimple_assign_set_nontemporal_move): Likewise.
5108 (gimple_assign_rhs_code): Likewise.
5109 (gimple_assign_set_rhs_code): Likewise.
5110 (gimple_call_internal_p): Likewise.
5111 (gimple_call_with_bounds_p): Likewise.
5112 (gimple_call_set_with_bounds): Likewise.
5113 (gimple_call_set_tail): Likewise.
5114 (gimple_call_tail_p): Likewise.
5115 (gimple_call_set_return_slot_opt): Likewise.
5116 (gimple_call_return_slot_opt_p): Likewise.
5117 (gimple_call_set_from_thunk): Likewise.
5118 (gimple_call_from_thunk_p): Likewise.
5119 (gimple_call_set_va_arg_pack): Likewise.
5120 (gimple_call_va_arg_pack_p): Likewise.
5121 (gimple_call_set_nothrow): Likewise.
5122 (gimple_call_set_alloca_for_var): Likewise.
5123 (gimple_call_alloca_for_var_p): Likewise.
5124 (gimple_call_copy_flags): Likewise.
5125 (gimple_cond_code): Likewise.
5126 (gimple_cond_set_code): Likewise.
5127 (gimple_cond_make_false): Likewise.
5128 (gimple_cond_make_true): Likewise.
5129 (gimple_asm_volatile_p): Likewise.
5130 (gimple_asm_set_volatile): Likewise.
5131 (gimple_asm_set_input): Likewise.
5132 (gimple_asm_input_p): Likewise.
5133 (gimple_try_kind): Likewise.
5134 (gimple_try_set_kind): Likewise.
5135 (gimple_try_catch_is_cleanup): Likewise.
5136 (gimple_try_set_catch_is_cleanup): Likewise.
5137 (gimple_wce_cleanup_eh_only): Likewise.
5138 (gimple_wce_set_cleanup_eh_only): Likewise.
5139 (gimple_debug_bind_p): Likewise.
5140 (gimple_debug_source_bind_p): Likewise.
5141 (gimple_omp_for_set_kind): Likewise.
5142 (gimple_omp_for_set_combined_p): Likewise.
5143 (gimple_omp_for_set_combined_into_p): Likewise.
5144 (gimple_omp_target_set_kind): Likewise.
5145 (gimple_transaction_subcode): Likewise.
5146 (gimple_transaction_set_subcode): Likewise.
5147 (gimple_predict_predictor): Likewise.
5148 (gimple_predict_set_predictor): Likewise.
5149 (gimple_predict_outcome): Likewise.
5150 (gimple_predict_set_outcome): Likewise.
5151 (gimple_transaction_set_label): Likewise.
5152 (gimple_transaction_set_body): Likewise.
5153 (gimple_transaction_label_ptr): Likewise.
5154 (gimple_transaction_label): Likewise.
5155 (gimple_transaction_body_ptr): Likewise.
5156 (gimple_omp_continue_set_control_use): Likewise.
5157 (gimple_omp_continue_control_use_ptr): Likewise.
5158 (gimple_omp_continue_control_use): Likewise.
5159 (gimple_omp_continue_set_control_def): Likewise.
5160 (gimple_omp_continue_control_def_ptr): Likewise.
5161 (gimple_omp_continue_control_def): Likewise.
5162 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5163 (gimple_omp_atomic_load_rhs): Likewise.
5164 (gimple_omp_atomic_load_set_rhs): Likewise.
5165 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5166 (gimple_omp_atomic_load_lhs): Likewise.
5167 (gimple_omp_atomic_load_set_lhs): Likewise.
5168 (gimple_omp_atomic_store_val_ptr): Likewise.
5169 (gimple_omp_atomic_store_val): Likewise.
5170 (gimple_omp_atomic_store_set_val): Likewise.
5171 (gimple_omp_for_cond): Likewise.
5172 (gimple_omp_for_set_cond): Likewise.
5173 (gimple_omp_sections_set_control): Likewise.
5174 (gimple_omp_sections_control_ptr): Likewise.
5175 (gimple_omp_sections_control): Likewise.
5176 (gimple_omp_sections_set_clauses): Likewise.
5177 (gimple_omp_sections_clauses_ptr): Likewise.
5178 (gimple_omp_sections_clauses): Likewise.
5179 (gimple_omp_teams_set_clauses): Likewise.
5180 (gimple_omp_teams_clauses_ptr): Likewise.
5181 (gimple_omp_teams_clauses): Likewise.
5182 (gimple_omp_target_set_data_arg): Likewise.
5183 (gimple_omp_target_data_arg_ptr): Likewise.
5184 (gimple_omp_target_data_arg): Likewise.
5185 (gimple_omp_target_set_child_fn): Likewise.
5186 (gimple_omp_target_child_fn_ptr): Likewise.
5187 (gimple_omp_target_child_fn): Likewise.
5188 (gimple_omp_target_set_clauses): Likewise.
5189 (gimple_omp_target_clauses_ptr): Likewise.
5190 (gimple_omp_target_clauses): Likewise.
5191 (gimple_omp_single_set_clauses): Likewise.
5192 (gimple_omp_single_clauses_ptr): Likewise.
5193 (gimple_omp_single_clauses): Likewise.
5194 (gimple_omp_task_set_arg_align): Likewise.
5195 (gimple_omp_task_arg_align_ptr): Likewise.
5196 (gimple_omp_task_arg_align): Likewise.
5197 (gimple_omp_task_set_arg_size): Likewise.
5198 (gimple_omp_task_arg_size_ptr): Likewise.
5199 (gimple_omp_task_arg_size): Likewise.
5200 (gimple_omp_task_set_copy_fn): Likewise.
5201 (gimple_omp_task_copy_fn_ptr): Likewise.
5202 (gimple_omp_task_copy_fn): Likewise.
5203 (gimple_omp_task_set_data_arg): Likewise.
5204 (gimple_omp_task_data_arg_ptr): Likewise.
5205 (gimple_omp_task_data_arg): Likewise.
5206 (gimple_omp_task_set_child_fn): Likewise.
5207 (gimple_omp_task_child_fn_ptr): Likewise.
5208 (gimple_omp_task_child_fn): Likewise.
5209 (gimple_omp_task_set_clauses): Likewise.
5210 (gimple_omp_task_clauses_ptr): Likewise.
5211 (gimple_omp_task_clauses): Likewise.
5212 (gimple_omp_parallel_set_data_arg): Likewise.
5213 (gimple_omp_parallel_data_arg_ptr): Likewise.
5214 (gimple_omp_parallel_data_arg): Likewise.
5215 (gimple_omp_parallel_set_child_fn): Likewise.
5216 (gimple_omp_parallel_child_fn_ptr): Likewise.
5217 (gimple_omp_parallel_child_fn): Likewise.
5218 (gimple_omp_parallel_set_clauses): Likewise.
5219 (gimple_omp_parallel_clauses_ptr): Likewise.
5220 (gimple_omp_parallel_clauses): Likewise.
5221 (gimple_omp_for_set_pre_body): Likewise.
5222 (gimple_omp_for_pre_body_ptr): Likewise.
5223 (gimple_omp_for_set_incr): Likewise.
5224 (gimple_omp_for_incr_ptr): Likewise.
5225 (gimple_omp_for_incr): Likewise.
5226 (gimple_omp_for_set_final): Likewise.
5227 (gimple_omp_for_final_ptr): Likewise.
5228 (gimple_omp_for_final): Likewise.
5229 (gimple_omp_for_set_initial): Likewise.
5230 (gimple_omp_for_initial_ptr): Likewise.
5231 (gimple_omp_for_initial): Likewise.
5232 (gimple_omp_for_set_index): Likewise.
5233 (gimple_omp_for_index_ptr): Likewise.
5234 (gimple_omp_for_index): Likewise.
5235 (gimple_omp_for_collapse): Likewise.
5236 (gimple_omp_for_set_clauses): Likewise.
5237 (gimple_omp_for_clauses_ptr): Likewise.
5238 (gimple_omp_for_clauses): Likewise.
5239 (gimple_omp_critical_set_name): Likewise.
5240 (gimple_omp_critical_name_ptr): Likewise.
5241 (gimple_omp_critical_name): Likewise.
5242 (gimple_eh_dispatch_set_region): Likewise.
5243 (gimple_eh_dispatch_region): Likewise.
5244 (gimple_resx_set_region): Likewise.
5245 (gimple_resx_region): Likewise.
5246 (gimple_phi_set_arg): Likewise.
5247 (gimple_phi_arg): Likewise.
5248 (gimple_phi_set_result): Likewise.
5249 (gimple_phi_result_ptr): Likewise.
5250 (gimple_phi_result): Likewise.
5251 (gimple_phi_num_args): Likewise.
5252 (gimple_phi_capacity): Likewise.
5253 (gimple_wce_set_cleanup): Likewise.
5254 (gimple_wce_cleanup_ptr): Likewise.
5255 (gimple_try_set_cleanup): Likewise.
5256 (gimple_try_set_eval): Likewise.
5257 (gimple_try_cleanup_ptr): Likewise.
5258 (gimple_try_eval_ptr): Likewise.
5259 (gimple_eh_else_set_e_body): Likewise.
5260 (gimple_eh_else_set_n_body): Likewise.
5261 (gimple_eh_else_e_body_ptr): Likewise.
5262 (gimple_eh_else_n_body_ptr): Likewise.
5263 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5264 (gimple_eh_must_not_throw_fndecl): Likewise.
5265 (gimple_eh_filter_set_failure): Likewise.
5266 (gimple_eh_filter_set_types): Likewise.
5267 (gimple_eh_filter_failure_ptr): Likewise.
5268 (gimple_eh_filter_types_ptr): Likewise.
5269 (gimple_eh_filter_types): Likewise.
5270 (gimple_catch_set_handler): Likewise.
5271 (gimple_catch_set_types): Likewise.
5272 (gimple_catch_handler_ptr): Likewise.
5273 (gimple_catch_types_ptr): Likewise.
5274 (gimple_catch_types): Likewise.
5275 (gimple_asm_string): Likewise.
5276 (gimple_asm_set_label_op): Likewise.
5277 (gimple_asm_label_op): Likewise.
5278 (gimple_asm_set_clobber_op): Likewise.
5279 (gimple_asm_clobber_op): Likewise.
5280 (gimple_asm_set_output_op): Likewise.
5281 (gimple_asm_output_op_ptr): Likewise.
5282 (gimple_asm_output_op): Likewise.
5283 (gimple_asm_set_input_op): Likewise.
5284 (gimple_asm_input_op_ptr): Likewise.
5285 (gimple_asm_input_op): Likewise.
5286 (gimple_asm_nlabels): Likewise.
5287 (gimple_asm_nclobbers): Likewise.
5288 (gimple_asm_noutputs): Likewise.
5289 (gimple_asm_ninputs): Likewise.
5290 (gimple_bind_set_block): Likewise.
5291 (gimple_bind_block): Likewise.
5292 (gimple_bind_add_seq): Likewise.
5293 (gimple_bind_add_stmt): Likewise.
5294 (gimple_bind_set_body): Likewise.
5295 (gimple_bind_body_ptr): Likewise.
5296 (gimple_bind_append_vars): Likewise.
5297 (gimple_bind_set_vars): Likewise.
5298 (gimple_bind_vars): Likewise.
5299 (gimple_call_clobber_set): Likewise.
5300 (gimple_call_use_set): Likewise.
5301 (gimple_call_set_internal_fn): Likewise.
5302 (gimple_call_set_fntype): Likewise.
5303 (gimple_call_fntype): Likewise.
5304 (gimple_omp_return_lhs_ptr): Likewise.
5305 (gimple_omp_return_lhs): Likewise.
5306 (gimple_omp_return_set_lhs): Likewise.
5307 (gimple_omp_taskreg_set_data_arg): Likewise.
5308 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5309 (gimple_omp_taskreg_data_arg): Likewise.
5310 (gimple_omp_taskreg_set_child_fn): Likewise.
5311 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5312 (gimple_omp_taskreg_child_fn): Likewise.
5313 (gimple_omp_taskreg_set_clauses): Likewise.
5314 (gimple_omp_taskreg_clauses_ptr): Likewise.
5315 (gimple_omp_taskreg_clauses): Likewise.
5316 (gimple_vuse): Likewise.
5317 (gimple_vdef): Likewise.
5318 (gimple_vuse_ptr): Likewise.
5319 (gimple_vdef_ptr): Likewise.
5320 * tree-inline.c (copy_debug_stmt): Likewise.
5321 * tree-phinodes.c (make_phi_node): Likewise.
5323 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5324 (is_a_helper <gimple_statement_with_ops>::test): New.
5325 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5326 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5328 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5329 access to use of as_a.
5330 * gimple.c (gimple_build_asm_1): Likewise.
5331 (gimple_build_try): Likewise. Also, return a specific subclass
5332 rather than just gimple.
5333 (gimple_build_resx): Port from union access to use of as_a.
5334 (gimple_build_eh_dispatch): Likewise.
5335 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5336 now that gengtype no longer provides a typed allocator function.
5337 (gimple_copy): Likewise.
5338 * gimple.h (gimple_build_try): Return a specific subclass rather
5340 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5341 with subclass access by making use of new return type of
5343 * tree-phinodes.c: (allocate_phi_node): Return a
5344 "gimple_statement_phi *" rather than just a gimple.
5345 (resize_phi_node): Likewise.
5346 (make_phi_node): Replace union access with subclass access by
5347 making use of new return type of allocate_phi_node.
5348 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5349 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5351 (remove_phi_args): Update for change to remove_phi_arg_num.
5353 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5354 code field to reflect inheritance, rather than embedding of
5355 the base gimple type.
5357 2013-11-19 Richard Biener <rguenther@suse.de>
5359 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5360 and destructor and make fel_next a member function.
5361 (fel_next): Transform into ...
5362 (loop_iterator::next): ... this.
5363 (fel_init): Transform into ...
5364 (loop_iterator::loop_iterator): ... this.
5365 (loop_iterator::~loop_iterator): New.
5366 (FOR_EACH_LOOP): Remove loop-iterator argument.
5367 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5368 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5369 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5370 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5371 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5372 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5373 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5374 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5375 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5376 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5377 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5378 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5379 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5380 FOR_EACH_LOOP_BREAK with break.
5382 2013-11-19 Richard Biener <rguenther@suse.de>
5384 PR tree-optimization/59164
5385 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5387 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5388 whether we can create an epilogue loop to reflect thecases where
5391 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5393 * graphite-sese-to-poly.c: Include expr.h.
5395 2013-11-19 Richard Biener <rguenther@suse.de>
5398 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5399 loads into stmts that may clobber it.
5401 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5403 * cgraphunit.c (symtab_terminator): New variable.
5404 (queued_nodes): Renamed from first. Use symtab_terminator as
5406 (analyze_functions): Adjust accordingly.
5407 (cgraph_process_new_functions): Return void.
5408 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5410 2013-11-19 Marek Polacek <polacek@redhat.com>
5412 * opts.c (common_handle_option): Add -fsanitize=null option.
5413 Turn off -fdelete-null-pointer-checks option when doing the
5414 NULL pointer checking.
5415 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5416 * tree-pass.h (make_pass_ubsan): Declare.
5417 (make_pass_sanopt): Declare.
5418 * timevar.def (TV_TREE_UBSAN): New timevar.
5419 * passes.def: Add pass_sanopt and pass_ubsan.
5420 * ubsan.h (ubsan_null_ckind): New enum.
5421 (ubsan_mismatch_data): New struct.
5422 (ubsan_expand_null_ifn): Declare.
5423 (ubsan_create_data): Adjust declaration.
5424 (ubsan_type_descriptor): Likewise.
5425 * asan.c: Include "ubsan.h".
5426 (pass_data_sanopt): New pass.
5427 (execute_sanopt): New function.
5428 (gate_sanopt): Likewise.
5429 (make_pass_sanopt): Likewise.
5430 (class pass_sanopt): New class.
5431 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5432 gimple-iterator.h and cfgloop.h.
5433 (PROB_VERY_UNLIKELY): Define.
5434 (tree_type_map_hash): New function.
5435 (ubsan_type_descriptor): Add new parameter.
5436 Improve type name generation.
5437 (ubsan_create_data): Add new parameter. Add pointer data into
5439 (ubsan_expand_null_ifn): New function.
5440 (instrument_member_call): Likewise.
5441 (instrument_mem_ref): Likewise.
5442 (instrument_null): Likewise.
5443 (ubsan_pass): Likewise.
5444 (gate_ubsan): Likewise.
5445 (make_pass_ubsan): Likewise.
5446 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5447 (class pass_ubsan): New class.
5448 (pass_data_ubsan): New pass.
5449 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5450 * internal-fn.c (expand_UBSAN_NULL): New function.
5451 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5452 even when !flag_toplevel_reorder.
5453 * internal-fn.def (UBSAN_NULL): New.
5455 2013-11-19 Jan Hubicka <jh@suse.cz>
5457 * cgraph.c (cgraph_create_indirect_edge): Use
5458 get_polymorphic_call_info.
5459 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5460 maybe_in_construction and maybe_derived_type.
5461 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5462 (ipa_dummy_polymorphic_call_context): New global var.
5463 (possible_polymorphic_call_targets): Add context paramter.
5464 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5465 (possible_polymorphic_call_target_p): Likewise.
5466 (get_polymorphic_call_info): New function.
5467 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5468 (add_type_duplicate): Remove forgotten debug output.
5469 (method_class_type): Add sanity check.
5470 (maybe_record_node): Add FINALP parameter.
5471 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5472 by info by get_binfo_at_offset.
5473 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5474 parameters; pass them to record-binfo.
5475 (polymorphic_call_target_d): Add context and FINAL.
5476 (polymorphic_call_target_hasher::hash): Hash context.
5477 (polymorphic_call_target_hasher::equal): Compare context.
5478 (free_polymorphic_call_targets_hash):
5479 (get_class_context): New function.
5480 (contains_type_p): New function.
5481 (get_polymorphic_call_info): New function.
5482 (walk_bases): New function.
5483 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5484 (dump_possible_polymorphic_call_targets): Dump context.
5485 (possible_polymorphic_call_target_p): Add context.
5486 (update_type_inheritance_graph): Update comment.s
5487 (ipa_set_jf_known_type): Assert that compoentn type is known.
5488 (ipa_note_param_call): Do not tamper with offsets.
5489 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5491 (update_indirect_edges_after_inlining): Likewise.
5492 (ipa_write_indirect_edge_info): Stream new fields.
5493 (ipa_read_indirect_edge_info): Stream in new fields.
5495 2013-11-19 Jan Hubicka <jh@suse.cz>
5497 * tree-pretty-print.c (dump_generic_node): Print class type of
5500 2013-11-19 Joey Ye <joey.ye@arm.com>
5502 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5503 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5505 * config/arm/arm.c (arm_option_override): By default disable
5506 -marm-pic-data-is-text-relative.
5507 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5508 (arm_assemble_integer): Likewise.
5509 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5510 New macro to initialize -marm-pic-data-is-text-relative.
5512 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5514 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5515 (address_cost_data): New field.
5516 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5517 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5519 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5521 * config/aarch64/aarch64.md: Remove v8type from all insns.
5523 2013-11-19 Richard Biener <rguenther@suse.de>
5525 PR tree-optimization/57517
5526 * tree-predcom.c (combinable_refs_p): Verify the combination
5527 is always executed when the refs are.
5529 2013-11-19 Jeff Law <law@redhat.com>
5531 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5532 (copy_phi_arg_into_existing_phi): New function.
5533 (any_remaining_duplicated_blocks): Likewise.
5534 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5535 blocks on a jump threading path.
5537 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5538 thread through a joiner which has the latch edge.
5540 2013-11-19 Jan Hubicka <jh@suse.cz>
5542 * md.texi (setmem): Document new parameter.
5543 * optabs.c (maybe_gen_insn): Support 9 operands.
5544 * builtins.c (determine_block_size): Add probable_max_size;
5545 support anti-ranges.
5546 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5548 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5549 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5551 * expr.h (emit_block_move_hints, clear_storage_hints,
5552 set_storage_via_setmem): Update prototype.
5553 * i386.md (setmem, movmem patterns): Add 9th operand.
5554 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5555 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5556 argument; pass it to decide_alg.
5558 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5560 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5561 (n_basic_blocks_for_fn): ...this.
5563 (n_basic_blocks): Eliminate macro as work towards making uses of
5566 * cfgloop.c (init_loops_structure): Update for renaming of
5567 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5568 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5569 * ipa-utils.c (ipa_merge_profiles): Likewise.
5570 * lto-streamer-in.c (make_new_block): Likewise.
5571 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5572 (dump_function_to_file): Likewise.
5574 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5575 macro with "n_basic_blocks_for_fn (cfun)".
5576 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5577 (duplicate_computed_gotos): Likewise.
5578 (reorder_basic_blocks): Likewise.
5579 * bt-load.c (augment_live_range): Likewise.
5580 * cfg.c (expunge_block): Likewise.
5581 (compact_blocks): Likewise.
5582 * cfganal.c (single_pred_before_succ_order): Likewise.
5583 (compute_idf): Likewise.
5584 (flow_dfs_compute_reverse_init): Likewise.
5585 (pre_and_rev_post_order_compute): Likewise.
5586 (pre_and_rev_post_order_compute_fn): Likewise.
5587 (inverted_post_order_compute): Likewise.
5588 (post_order_compute): Likewise.
5589 (print_edge_list): Likewise.
5590 (find_unreachable_blocks): Likewise.
5591 (mark_dfs_back_edges): Likewise.
5592 * cfgcleanup.c (try_optimize_cfg): Likewise.
5593 (try_forward_edges): Likewise.
5594 * cfghooks.c (dump_flow_info): Likewise.
5595 * cfgloop.c (verify_loop_structure): Likewise.
5596 (get_loop_body): Likewise.
5597 (flow_loops_find): Likewise.
5598 * cfgloopmanip.c (add_loop): Likewise.
5599 (remove_path): Likewise.
5600 (find_path): Likewise.
5601 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5602 (rtl_verify_bb_layout): Likewise.
5603 (entry_of_function): Likewise.
5604 (rtl_create_basic_block): Likewise.
5605 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5606 * cprop.c (one_cprop_pass): Likewise.
5607 (is_too_expensive): Likewise.
5608 * df-core.c (df_compute_cfg_image): Likewise.
5609 (df_compact_blocks): Likewise.
5610 (df_worklist_dataflow_doublequeue): Likewise.
5611 * dominance.c (calculate_dominance_info): Likewise.
5612 (calc_dfs_tree): Likewise.
5613 (calc_dfs_tree_nonrec): Likewise.
5614 (init_dom_info): Likewise.
5615 * domwalk.c (cmp_bb_postorder): Likewise.
5616 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5617 (generate_setjmp_warnings): Likewise.
5618 * fwprop.c (build_single_def_use_links): Likewise.
5619 * gcse.c (is_too_expensive): Likewise.
5620 (one_code_hoisting_pass): Likewise.
5621 (one_pre_gcse_pass): Likewise.
5622 * graphite.c (graphite_initialize): Likewise.
5623 * haifa-sched.c (haifa_sched_init): Likewise.
5624 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5625 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5626 * ira-build.c (ira_build): Likewise.
5627 * lcm.c (compute_nearerout): Likewise.
5628 (compute_available): Likewise.
5629 (compute_laterin): Likewise.
5630 (compute_antinout_edge): Likewise.
5631 * lra-lives.c (lra_create_live_ranges): Likewise.
5632 * lra.c (has_nonexceptional_receiver): Likewise.
5633 * mcf.c (create_fixup_graph): Likewise.
5634 * profile.c (branch_prob): Likewise.
5635 * reg-stack.c (convert_regs_2): Likewise.
5636 * regrename.c (regrename_analyze): Likewise.
5637 * reload1.c (has_nonexceptional_receiver): Likewise.
5638 * reorg.c (dbr_schedule): Likewise.
5639 * sched-deps.c (sched_deps_init): Likewise.
5640 * sched-ebb.c (schedule_ebbs): Likewise.
5641 * sched-rgn.c (extend_regions): Likewise.
5642 (schedule_insns): Likewise.
5643 (sched_rgn_init): Likewise.
5644 (extend_rgns): Likewise.
5645 (haifa_find_rgns): Likewise.
5646 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5647 (sel_recompute_toporder): Likewise.
5648 * sel-sched.c (run_selective_scheduling): Likewise.
5649 * store-motion.c (one_store_motion_pass): Likewise.
5650 (remove_reachable_equiv_notes): Likewise.
5651 * tracer.c (tracer): Likewise.
5652 (tail_duplicate): Likewise.
5653 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5654 (dump_cfg_stats): Likewise.
5655 (gimple_dump_cfg): Likewise.
5656 (create_bb): Likewise.
5657 (build_gimple_cfg): Likewise.
5658 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5659 * tree-inline.c (optimize_inline_calls): Likewise.
5660 (fold_marked_statements): Likewise.
5661 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5662 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5663 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5664 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5665 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5666 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5667 * tree-ssa-pre.c (do_pre): Likewise.
5668 (init_pre): Likewise.
5669 (compute_avail): Likewise.
5670 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5671 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5672 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5673 (init_worklist): Likewise.
5674 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5675 * var-tracking.c (variable_tracking_main_1): Likewise.
5676 (vt_find_locations): Likewise.
5677 (vt_stack_adjustments): Likewise.
5678 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5679 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5681 2013-11-18 Jan Hubicka <jh@suse.cz>
5683 * profile.c (compute_branch_probabilities): Do not sanity check
5686 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5688 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5690 * fold-const.c (fold_single_bit_test_into_sign_test)
5691 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5693 2013-11-18 Teresa Johnson <tejohnson@google.com>
5695 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5696 cfglayout after bb reordering.
5697 * passes.def: Move compgotos before bb reordering since it goes into
5700 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5702 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5703 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5705 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5706 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5707 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5708 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5709 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5710 Remove all_lto_gen_passes.
5711 * passes.c (pass_manager::dump_passes): Remove its use.
5712 (pass_manager::register_pass): Likewise.
5713 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5714 (pass_manager::pass_manager): Don't initialize or use it.
5715 (write_lto): New static function.
5716 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5717 instead of using all_lto_gen_passes.
5718 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5719 pass_ipa_lto_finish_out): Delete.
5720 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5721 make_pass_ipa_lto_finish_out): Don't declare.
5723 2013-11-18 Jeff Law <law@redhat.com>
5725 * tree-ssa-threadupdate.c (redirection_data): Record two
5726 duplicated blocks instead of just one.
5727 (local_info): Explain why we don't create a template for the
5728 second duplicated block in a thread path.
5729 (create_block_for_threading): Accept argument indicating array
5730 index into redirection_data to store its result.
5731 (lookup_redirection_data): Initialize both duplicate blocks.
5732 (ssa_create_duplicates): If a jump threading path needs multiple
5733 blocks duplicated, then duplicate them.
5734 (ssa_fix_duplicate_block_edges): Corresponding changes.
5735 (ssa_fixup_template_block, thread_single_edge): Likewise.
5737 2013-11-18 Marek Polacek <polacek@redhat.com>
5739 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5741 2013-11-18 Andrew Pinski <apinski@cavium.com>
5742 Steve Ellcey <sellcey@mips.com>
5745 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5746 type restriction from equality_operator on conditonal move.
5747 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5748 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5750 2013-11-18 Jeff Law <law@redhat.com>
5752 * tree-ssa-threadupdate.c: Fix file block comment.
5753 Fix minor indention issue.
5755 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5757 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5758 ix86_address_subreg_operand. Move subreg checks to
5759 ix86_validate_address_register. Move address override check to
5760 ix86_legitimate_address_p.
5761 (ix86_validate_address_register): New function.
5762 (ix86_legitimate_address_p): Call ix86_validate_address_register
5763 to validate base and index registers. Add address override check
5764 from ix86_decompose_address.
5765 (ix86_decompose_address): Remove.
5767 2013-11-18 Richard Biener <rguenther@suse.de>
5769 PR tree-optimization/59125
5770 PR tree-optimization/54570
5771 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5772 is not complete do not treat component-references with offset zero
5773 but different fields as equal.
5774 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5775 (compute_object_sizes): Apply TLC. Propagate the constant
5776 results into all uses and fold their stmts.
5777 * passes.def (pass_all_optimizations): Move pass_object_sizes
5778 after the first pass_forwprop and before pass_fre.
5780 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5782 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5783 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5784 (tree_ctz): Remove cast to unsigned type.
5785 * builtins.c (fold_builtin_memory_op): Likewise.
5786 * dwarf2out.c (descr_info_loc): Likewise.
5787 * godump.c (go_output_typedef): Likewise.
5788 * omp-low.c (expand_omp_simd): Likewise.
5789 * stor-layout.c (excess_unit_span): Likewise.
5790 * tree-object-size.c (addr_object_size): Likewise.
5791 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5792 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5793 (simplify_rotate): Likewise.
5794 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5795 (handle_pointer_plus): Likewise.
5796 * tree-switch-conversion.c (check_range): Likewise.
5797 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5798 * tsan.c (instrument_builtin_call): Likewise.
5799 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5800 * trans-mem.c (tm_log_add): Likewise.
5801 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5802 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5803 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5804 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5806 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5808 * tree.h (host_integerp, tree_low_cst): Delete.
5809 * tree.c (host_integerp, tree_low_cst): Delete.
5811 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5813 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5815 * fold-const.c (fold_binary_loc): Likewise.
5816 * expr.c (store_constructor): Use tree_to_uhwi rather than
5818 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5819 * stmt.c (emit_case_dispatch_table): Likewise.
5820 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5822 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5824 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5825 config/aarch64/aarch64.c, config/alpha/predicates.md,
5826 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5827 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5828 config/mep/mep-pragma.c, config/mips/mips.c,
5829 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5830 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5831 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5832 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5833 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5834 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5835 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5836 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5837 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5838 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5840 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5842 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5843 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5844 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5845 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5846 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5847 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5848 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5849 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5850 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5851 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5852 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
5854 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5856 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
5857 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
5859 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5861 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
5864 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5866 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
5867 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
5868 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
5869 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
5870 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5871 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
5872 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
5873 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
5874 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
5875 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
5876 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
5877 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
5878 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
5879 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
5880 tree_fits_uhwi_p throughout.
5882 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5884 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
5885 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
5886 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
5887 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
5888 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
5889 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
5890 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
5891 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
5892 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
5893 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5894 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
5895 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
5896 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
5899 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5901 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
5902 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
5904 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
5906 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
5907 flag if it kills its address, not its post-increment.
5909 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
5911 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
5912 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
5913 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
5914 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
5915 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
5916 (gimple_call_with_bounds_p): New.
5917 (gimple_call_set_with_bounds): New.
5918 (gimple_call_num_nobnd_args): Remove.
5919 (gimple_call_nobnd_arg): Remove.
5920 * tree.h (CALL_WITH_BOUNDS_P): New.
5921 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
5923 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
5925 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
5926 (symtab_node_name): Rename to symtab_node::name.
5927 (cgraph_node_asm_name): Remove.
5928 (varpool_node_asm_name): Remove.
5929 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
5930 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
5931 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
5932 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
5933 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
5935 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5937 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
5938 * config/arm/arm.c (arm_cortex_a53_tune): New.
5939 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
5941 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5943 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
5944 (case ${target}): Add bdver4.
5945 * config/i386/bdver3.md: Add bdver4.
5946 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5947 -march=native recognize bdver4 processors.
5948 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5949 bdver4 def_and_undef
5950 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
5951 (m_BDVER4): New definition.
5952 (m_AMD_MULTIPLE): Includes m_BDVER4.
5953 (processor_target_table): Add bdver4 entry.
5954 (static const char *const cpu_names): Add bdver4 entry.
5955 (software_prefetching_beneficial_p): Add bdver3.
5956 (ix86_option_override_internal): Add bdver4 instruction sets.
5957 (ix86_issue_rate): Add bdver4.
5958 (ix86_adjust_cost): Add bdver4.
5959 (ia32_multipass_dfa_lookahead): Add bdver4.
5960 (enum processor_model): Add M_AMDFAM15H_BDVER4.
5961 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
5962 (has_dispatch): Add bdver4.
5963 * config/i386/i386.h (TARGET_BDVER4): New definition.
5964 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
5965 (enum processor_type): Add PROCESSOR_BDVER4.
5966 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
5967 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
5968 * doc/extend.texi: Add details about bdver4.
5969 * doc/invoke.texi: Add details about bdver4. Add
5970 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
5972 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5974 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
5975 sdmode_stack_slot also in little-endian mode.
5977 2013-11-17 Jan Hubicka <jh@suse.cz>
5979 * doc/md.texi (setmem, movstr): Update documentation.
5980 * builtins.c (determine_block_size): New function.
5981 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
5982 (expand_builtin_memset_args): Use it and pass it to
5983 set_storage_via_setmem.
5984 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
5985 parameters; update call to expander.
5986 (emit_block_move_hints): Add min_size/max_size parameters.
5987 (clear_storage_hints): Likewise.
5988 (set_storage_via_setmem): Likewise.
5989 (clear_storage): Update.
5990 * expr.h (emit_block_move_hints, clear_storage_hints,
5991 set_storage_via_setmem): Update prototypes.
5992 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
5993 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5994 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5995 * i386.md (movmem, setmem): Pass parameters.
5997 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6000 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6001 reject non-integer subregs.
6002 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6003 Move check for invalid x32 constant addresses ...
6004 (ix86_legitimate_address_p): ... here.
6006 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6008 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6009 parameter and use it in REG_FRAME_RELATED_EXPR note.
6010 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6012 (rs6000_emit_prologue): Likewise, but for little endian VSX
6013 stores, pass the source register of the store instead.
6015 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6017 * gimple.h: Reorder prototypes to match .c declaration order, and
6018 remove protyotypes for functions not in gimple.c.
6019 (LABEL): Move to tree-into-ssa.c.
6020 * gimple.c: Remove unused prototypes.
6021 (get_base_address): Move to tree.c.
6022 * tree.c (get_base_address): Relocate from gimple.c.
6023 * builtins.h (validate_gimple_arglist): Add prototype.
6024 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6025 * cfgexpand.h: New File.
6026 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6027 * tree.h (build_addr): Move to tree-nested.h.
6028 * tree-nested.h: New File.
6029 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6031 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6032 * ipa-inline-analysis.c: Include cfgexpand.h.
6033 * cgraphunit.c: Include tree-nested.h.
6034 * omp-low.c: Likewise.
6035 * tree-parloops.c: Likewise.
6036 * gimple-low.h: Likewise.
6037 * tree-profile.h: Likewise.
6038 * expr.c: Include cfgexpand.h.
6039 * tree-affine.c: Likewise.
6040 * tree-ssa.c: Likewise.
6041 * tree-ssa-loop-im.c: Include trans-mem.h.
6042 * tree-ssa-tail-merge.c: Likewise.
6043 * value-prof.c: Include builtins.h and tree-nested.h.
6044 * tree-into-ssa.c (LABEL): Define here.
6046 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6048 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6049 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6050 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6051 (make_pass_arc_predicate_delay_insns): New function.
6052 (arc_init): Register pass_arc_predicate_delay_insns if
6053 flag_delayed_branch is active.
6055 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6057 * config/arc/constraints.md (Rcq): Simplify register number test.
6059 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6061 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6063 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6065 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6068 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6070 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6071 * gimple-pretty-print.c (dump_omp_for): Add case for
6072 GF_OMP_FOR_KIND_CILKSIMD.
6073 * gimple.h (enum gf_mask): Restructure entries to add
6074 GF_OMP_FOR_KIND_CILKSIMD.
6075 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6076 (gimplify_omp_for): Handle CILK_SIMD.
6077 (gimplify_expr): Add ccase for CILK_SIMD.
6078 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6079 (build_outer_var_ref): Same.
6080 (check_omp_nesting_restrictions): Same.
6081 (lower_rec_input_clauses): Same.
6082 (lower_lastprivate_clauses): Same.
6083 (expand_omp_for): Same.
6084 (execute_expand_omp): Check flag_enable_cilkplus.
6085 (execute_lower_omp): Same.
6086 (diagnose_sb_0): Handle CILK_SIMD.
6087 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6088 (setjmp_or_longjmp_p): New.
6089 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6090 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6091 * tree.def: Add tree code for CILK_SIMD.
6093 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6095 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6097 (altivec_vperm_<mode>): Revert earlier little endian change.
6098 (*altivec_vperm_<mode>_internal): Remove.
6099 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6100 (*altivec_vperm_<mode>_uns_internal): Remove.
6101 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6103 2013-11-15 Jeff Law <law@redhat.com>
6105 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6106 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6107 * gimple-ssa-isolate-paths.c
6108 (find_implicit_erroneous_behaviour): Corresponding changes.
6109 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6110 (find_explicit_erroneous_behaviour): Likewise.
6112 2013-11-15 Jeff Law <law@redhat.com>
6114 * ifcvt.c (find_cond_trap): Properly handle case where
6117 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6119 * configure: Regenerate.
6121 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6123 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6124 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6125 where it is incorrect or missing.
6127 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6129 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6131 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6132 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6134 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6135 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6136 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6138 2013-11-15 Richard Biener <rguenther@suse.de>
6140 PR tree-optimization/50262
6141 * tree-ssa-alias.h (struct pt_solution): Split
6142 vars_contains_global into vars_contains_nonlocal,
6143 vars_contains_escaped and vars_contains_escaped_heap.
6144 * tree-ssa-structalias.c (label_visit): Expand comment.
6145 (handle_lhs_call): Adjust comment.
6146 (set_uids_in_ptset): Set the new flags appropriately.
6147 (pt_solution_set): Adjust.
6148 (pt_solution_set_var): Likewise.
6149 (pt_solution_ior_into): Likewise.
6150 (pt_solution_includes_global): Likewise.
6151 (pt_solutions_intersect_1): Optimize escaped handling.
6152 (compute_points_to_sets): Remove heap variable globalization.
6153 (ipa_escaped_pt): Adjust initializer.
6154 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6155 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6156 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6158 2013-11-15 Richard Biener <rguenther@suse.de>
6160 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6161 to distribute all stores.
6163 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6165 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6167 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6169 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6170 * configure.ac: Determine target_header_dir earlier.
6171 (--with-glibc-version): New configure option.
6172 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6173 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6174 * configure: Regenerate.
6175 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6176 native toolchains for default.
6177 (--with-glibc-version): Document.
6179 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6181 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6183 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6185 * lto-streamer-in.c (input function): Call cgraph_create_node if
6186 cgraph_get_node failed.
6188 2013-11-14 Olivier Hainque <hainque@adacore.com>
6190 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6191 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6192 small. Factorize size threshold computation from the existing one.
6193 (expand_used_vars): Refine comment.
6195 2013-11-14 Cong Hou <congh@google.com>
6197 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6198 address field as it can be obtained from dr. Rename the struct.
6199 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6200 steps of data references during sort.
6201 (vect_prune_runtime_alias_test_list): Adjust with the change to
6202 struct dr_with_seg_len.
6203 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6204 Adjust with the change to struct dr_with_seg_len.
6206 2013-11-14 Jeff Law <law@redhat.com>
6209 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6210 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6211 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6212 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6213 edges, then ignore it. If the statement exhibiting erroneous
6214 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6215 then we can not optimize.
6216 (find_explicit_erroneous_behaviour): Likewise.
6218 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6220 * gimplify-me.h: New file. Add prototypes.
6221 * gimplify.h: Don't include gimple.h.
6222 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6223 Relocate from gimple.h.
6224 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6225 is_gimple_sizepos): Move to gimplify.h.
6226 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6227 (enum gsi_iterator_update): Move to gimple-iterator.h.
6228 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6229 * gimplify-me.c: New File.
6230 (force_gimple_operand_1, force_gimple_operand,
6231 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6232 gimple_regimplify_operands): Relocate from gimplify.c.
6233 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6234 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6235 gimple_regimplify_operands): Move to gimplify-me.c.
6236 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6238 * Makefile.in (OBJS): Add gimplify-me.o
6239 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6241 * cfgloopmanip.c: Likewise.
6242 * cgraphunit.c: Likewise.
6243 * cilk-common.c: Likewise.
6244 * fold-const.c: Likewise.
6245 * function.c: Likewise.
6246 * gimple-expr.c: Likewise.
6247 * gimple-fold.c: Likewise.
6248 * gimple-ssa-strength-reduction.c: Likewise.
6249 * gimple.c: Likewise.
6250 * graphite-clast-to-gimple.c: Likewise.
6251 * graphite-sese-to-poly.c: Likewise.
6252 * ipa-prop.c: Likewise.
6253 * ipa-split.c: Likewise.
6255 * langhooks.c: Likewise.
6256 * omp-low.c: Likewise.
6258 * stor-layout.c: Likewise.
6259 * targhooks.c: Likewise.
6260 * trans-mem.c: Likewise.
6261 * tree-affine.c: Likewise.
6262 * tree-cfg.c: Likewise.
6263 * tree-cfgcleanup.c: Likewise.
6264 * tree-complex.c: Likewise.
6265 * tree-if-conv.c: Likewise.
6266 * tree-inline.c: Likewise.
6267 * tree-loop-distribution.c: Likewise.
6268 * tree-nested.c: Likewise.
6269 * tree-parloops.c: Likewise.
6270 * tree-predcom.c: Likewise.
6271 * tree-profile.c: Likewise.
6272 * tree-scalar-evolution.c: Likewise.
6273 * tree-sra.c: Likewise.
6274 * tree-ssa-address.c: Likewise.
6275 * tree-ssa-ccp.c: Likewise.
6276 * tree-ssa-dce.c: Likewise.
6277 * tree-ssa-forwprop.c: Likewise.
6278 * tree-ssa-ifcombine.c: Likewise.
6279 * tree-ssa-loop-im.c: Likewise.
6280 * tree-ssa-loop-ivopts.c: Likewise.
6281 * tree-ssa-loop-manip.c: Likewise.
6282 * tree-ssa-loop-niter.c: Likewise.
6283 * tree-ssa-loop-prefetch.c: Likewise.
6284 * tree-ssa-loop-unswitch.c: Likewise.
6285 * tree-ssa-math-opts.c: Likewise.
6286 * tree-ssa-phiopt.c: Likewise.
6287 * tree-ssa-phiprop.c: Likewise.
6288 * tree-ssa-pre.c: Likewise.
6289 * tree-ssa-propagate.c: Likewise.
6290 * tree-ssa-reassoc.c: Likewise.
6291 * tree-ssa-sccvn.c: Likewise.
6292 * tree-ssa-strlen.c: Likewise.
6293 * tree-ssa.c: Likewise.
6294 * tree-switch-conversion.c: Likewise.
6295 * tree-tailcall.c: Likewise.
6296 * tree-vect-data-refs.c: Likewise.
6297 * tree-vect-generic.c: Likewise.
6298 * tree-vect-loop-manip.c: Likewise.
6299 * tree-vect-loop.c: Likewise.
6300 * tree-vect-patterns.c: Likewise.
6301 * tree-vect-stmts.c: Likewise.
6304 * value-prof.c: Likewise.
6305 * config/aarch64/aarch64.c: Likewise.
6306 * config/alpha/alpha.c: Likewise.
6307 * config/darwin.c: Likewise.
6308 * config/i386/i386.c: Likewise.
6309 * config/ia64/ia64.c: Likewise.
6310 * config/mep/mep.c: Likewise.
6311 * config/mips/mips.c: Likewise.
6312 * config/rs6000/rs6000.c: Likewise.
6313 * config/s390/s390.c: Likewise.
6314 * config/sh/sh.c: Likewise.
6315 * config/sparc/sparc.c: Likewise.
6316 * config/spu/spu.c: Likewise.
6317 * config/stormy16/stormy16.c: Likewise.
6318 * config/tilegx/tilegx.c: Likewise.
6319 * config/tilepro/tilepro.c: Likewise.
6320 * config/xtensa/xtensa.c: Likewise.
6322 2013-11-14 Diego Novillo <dnovillo@google.com>
6324 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6326 2013-11-14 Diego Novillo <dnovillo@google.com>
6328 * tree.h: Include fold-const.h.
6329 (aggregate_value_p): Moved to function.h.
6330 (alloca_call_p): Moved to calls.h.
6331 (allocate_struct_function): Moved to function.h.
6332 (apply_tm_attr): Moved to attribs.h.
6333 (array_at_struct_end_p): Moved to expr.h.
6334 (array_ref_element_size): Moved to tree-dfa.h.
6335 (array_ref_low_bound): Moved to tree-dfa.h.
6336 (array_ref_up_bound): Moved to tree.h.
6337 (assemble_alias): Moved to cgraph.h.
6338 (bit_from_pos): Moved to stor-layout.h.
6339 (build_addr): Moved to tree-nested.h.
6340 (build_duplicate_type): Moved to tree-inline.h.
6341 (build_fold_addr_expr): Moved to fold-const.h.
6342 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6343 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6344 (build_fold_indirect_ref): Moved to fold-const.h.
6345 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6346 (build_personality_function): Moved to tree.h.
6347 (build_range_check): Moved to fold-const.h.
6348 (build_simple_mem_ref): Moved to fold-const.h.
6349 (build_simple_mem_ref_loc): Moved to fold-const.h.
6350 (build_tm_abort_call): Moved to trans-mem.h.
6351 (byte_from_pos): Moved to stor-layout.h.
6352 (call_expr_flags): Moved to calls.h.
6353 (can_move_by_pieces): Moved to expr.h.
6354 (categorize_ctor_elements): Moved to expr.h.
6355 (change_decl_assembler_name): Moved to gcc-symtab.h.
6356 (combine_comparisons): Moved to fold-const.h.
6357 (complete_ctor_at_level_p): Moved to tree.h.
6358 (component_ref_field_offset): Moved to tree-dfa.h.
6359 (compute_builtin_object_size): Moved to tree-object-size.h.
6360 (compute_record_mode): Moved to stor-layout.h.
6361 (constant_boolean_node): Moved to fold-const.h.
6362 (constructor_static_from_elts_p): Moved to varasm.h.
6363 (cxx11_attribute_p): Moved to attribs.h.
6364 (debug_body): Moved to print-tree.h.
6365 (debug_find_tree): Moved to tree-inline.h.
6366 (debug_fold_checksum): Moved to fold-const.h.
6367 (debug_head): Moved to print-tree.h.
6368 (debug_head): Moved to print-tree.h.
6369 (debug_raw): Moved to print-tree.h.
6370 (debug_tree): Moved to print-tree.h.
6371 (debug_vec_tree): Moved to print-tree.h.
6372 (debug_verbose): Moved to print-tree.h.
6373 (debug_verbose): Moved to print-tree.h.
6374 (decl_attributes): Moved to attribs.h.
6375 (decl_binds_to_current_def_p): Moved to varasm.h.
6376 (decl_default_tls_model): Moved to varasm.h.
6377 (decl_replaceable_p): Moved to varasm.h.
6378 (div_if_zero_remainder): Moved to fold-const.h.
6379 (double_int mem_ref_offset): Moved to fold-const.h.
6380 (dump_addr): Moved to print-tree.h.
6381 (element_precision): Moved to machmode.h.
6382 (expand_dummy_function_end): Moved to function.h.
6383 (expand_function_end): Moved to function.h.
6384 (expand_function_start): Moved to function.h.
6385 (expand_label): Moved to stmt.h.
6386 (expr_first): Moved to tree-iterator.h.
6387 (expr_last): Moved to tree-iterator.h.
6388 (finalize_size_functions): Moved to stor-layout.h.
6389 (finish_builtin_struct): Moved to stor-layout.h.
6390 (finish_record_layout): Moved to stor-layout.h.
6391 (fixup_signed_type): Moved to stor-layout.h.
6392 (fixup_unsigned_type): Moved to stor-layout.h.
6393 (flags_from_decl_or_type): Moved to calls.h.
6394 (fold): Moved to fold-const.h.
6395 (fold_abs_const): Moved to fold-const.h.
6396 (fold_binary): Moved to fold-const.h.
6397 (fold_binary_loc): Moved to fold-const.h.
6398 (fold_binary_to_constant): Moved to fold-const.h.
6399 (fold_build1): Moved to fold-const.h.
6400 (fold_build1_initializer_loc): Moved to fold-const.h.
6401 (fold_build1_loc): Moved to fold-const.h.
6402 (fold_build1_stat_loc): Moved to fold-const.h.
6403 (fold_build2): Moved to fold-const.h.
6404 (fold_build2_initializer_loc): Moved to fold-const.h.
6405 (fold_build2_loc): Moved to fold-const.h.
6406 (fold_build2_stat_loc): Moved to fold-const.h.
6407 (fold_build3): Moved to fold-const.h.
6408 (fold_build3_loc): Moved to fold-const.h.
6409 (fold_build3_stat_loc): Moved to fold-const.h.
6410 (fold_build_call_array): Moved to fold-const.h.
6411 (fold_build_call_array_initializer): Moved to fold-const.h.
6412 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6413 (fold_build_call_array_loc): Moved to fold-const.h.
6414 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6415 (fold_convert): Moved to fold-const.h.
6416 (fold_convert_loc): Moved to fold-const.h.
6417 (fold_convertible_p): Moved to fold-const.h.
6418 (fold_defer_overflow_warnings): Moved to fold-const.h.
6419 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6420 (fold_fma): Moved to fold-const.h.
6421 (fold_ignored_result): Moved to fold-const.h.
6422 (fold_indirect_ref): Moved to fold-const.h.
6423 (fold_indirect_ref_1): Moved to fold-const.h.
6424 (fold_indirect_ref_loc): Moved to fold-const.h.
6425 (fold_read_from_constant_string): Moved to fold-const.h.
6426 (fold_real_zero_addition_p): Moved to fold-const.h.
6427 (fold_single_bit_test): Moved to fold-const.h.
6428 (fold_strip_sign_ops): Moved to fold-const.h.
6429 (fold_ternary): Moved to fold-const.h.
6430 (fold_ternary_loc): Moved to fold-const.h.
6431 (fold_unary): Moved to tree-data-ref.h.
6432 (fold_unary_ignore_overflow): Moved to fold-const.h.
6433 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6434 (fold_unary_loc): Moved to fold-const.h.
6435 (fold_unary_to_constant): Moved to fold-const.h.
6436 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6437 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6438 (folding_initializer): Moved to fold-const.h.
6439 (free_temp_slots): Moved to function.h.
6440 (generate_setjmp_warnings): Moved to function.h.
6441 (get_attribute_name): Moved to attribs.h.
6442 (get_identifier): Moved to stringpool.h.
6443 (get_identifier_with_length): Moved to stringpool.h.
6444 (get_inner_reference): Moved to tree.h.
6445 (gimple_alloca_call_p): Moved to calls.h.
6446 (gimplify_parameters): Moved to function.h.
6447 (highest_pow2_factor): Moved to expr.h.
6448 (indent_to): Moved to print-tree.h.
6449 (init_attributes): Moved to attribs.h.
6450 (init_dummy_function_start): Moved to function.h.
6451 (init_function_start): Moved to function.h.
6452 (init_inline_once): Moved to tree-inline.h.
6453 (init_object_sizes): Moved to tree-object-size.h.
6454 (init_temp_slots): Moved to function.h.
6455 (init_tree_optimization_optabs): Moved to optabs.h.
6456 (initialize_sizetypes): Moved to stor-layout.h.
6457 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6458 (initializer_constant_valid_p): Moved to varasm.h.
6459 (int_const_binop): Moved to fold-const.h.
6460 (internal_reference_types): Moved to stor-layout.h.
6461 (invert_tree_comparison): Moved to fold-const.h.
6462 (invert_truthvalue): Moved to fold-const.h.
6463 (invert_truthvalue_loc): Moved to fold-const.h.
6464 (is_tm_ending_fndecl): Moved to trans-mem.h.
6465 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6466 (is_tm_pure): Moved to trans-mem.h.
6467 (is_tm_safe): Moved to trans-mem.h.
6468 (layout_decl): Moved to stor-layout.h.
6469 (layout_type): Moved to stor-layout.h.
6470 (lookup_attribute_spec): Moved to attribs.h.
6471 (make_accum_type): Moved to stor-layout.h.
6472 (make_decl_one_only): Moved to varasm.h.
6473 (make_decl_rtl): Moved to tree.h.
6474 (make_decl_rtl_for_debug): Moved to varasm.h.
6475 (make_fract_type): Moved to stor-layout.h.
6476 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6477 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6478 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6479 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6480 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6481 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6482 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6483 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6484 (make_range): Moved to fold-const.h.
6485 (make_range_step): Moved to fold-const.h.
6486 (make_sat_signed_accum_type): Moved to stor-layout.h.
6487 (make_sat_signed_fract_type): Moved to stor-layout.h.
6488 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6489 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6490 (make_signed_accum_type): Moved to stor-layout.h.
6491 (make_signed_fract_type): Moved to stor-layout.h.
6492 (make_signed_type): Moved to stor-layout.h.
6493 (make_unsigned_accum_type): Moved to stor-layout.h.
6494 (make_unsigned_fract_type): Moved to stor-layout.h.
6495 (make_unsigned_type): Moved to stor-layout.h.
6496 (mark_decl_referenced): Moved to varasm.h.
6497 (mark_referenced): Moved to varasm.h.
6498 (may_negate_without_overflow_p): Moved to fold-const.h.
6499 (maybe_get_identifier): Moved to stringpool.h.
6500 (merge_ranges): Moved to fold-const.h.
6501 (merge_weak): Moved to varasm.h.
6502 (mode_for_size_tree): Moved to stor-layout.h.
6503 (multiple_of_p): Moved to fold-const.h.
6504 (must_pass_in_stack_var_size): Moved to calls.h.
6505 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6506 (native_encode_expr): Moved to fold-const.h.
6507 (native_interpret_expr): Moved to fold-const.h.
6508 (non_lvalue): Moved to fold-const.h.
6509 (non_lvalue_loc): Moved to fold-const.h.
6510 (normalize_offset): Moved to stor-layout.h.
6511 (normalize_rli): Moved to stor-layout.h.
6512 (notice_global_symbol): Moved to varasm.h.
6513 (omit_one_operand): Moved to fold-const.h.
6514 (omit_one_operand_loc): Moved to fold-const.h.
6515 (omit_two_operands): Moved to fold-const.h.
6516 (omit_two_operands_loc): Moved to fold-const.h.
6517 (operand_equal_p): Moved to tree-data-ref.h.
6518 (parse_input_constraint): Moved to stmt.h.
6519 (parse_output_constraint): Moved to stmt.h.
6520 (place_field): Moved to stor-layout.h.
6521 (pop_function_context): Moved to function.h.
6522 (pop_temp_slots): Moved to function.h.
6523 (pos_from_bit): Moved to stor-layout.h.
6524 (preserve_temp_slots): Moved to function.h.
6525 (print_node): Moved to print-tree.h.
6526 (print_node_brief): Moved to print-tree.h.
6527 (print_rtl): Moved to rtl.h.
6528 (process_pending_assemble_externals): Moved to varasm.h.
6529 (ptr_difference_const): Moved to fold-const.h.
6530 (push_function_context): Moved to function.h.
6531 (push_struct_function): Moved to function.h.
6532 (push_temp_slots): Moved to function.h.
6533 (record_tm_replacement): Moved to trans-mem.h.
6534 (relayout_decl): Moved to stor-layout.h.
6535 (resolve_asm_operand_names): Moved to stmt.h.
6536 (resolve_unique_section): Moved to varasm.h.
6537 (rli_size_so_far): Moved to stor-layout.h.
6538 (rli_size_unit_so_far): Moved to stor-layout.h.
6539 (round_down): Moved to fold-const.h.
6540 (round_down_loc): Moved to fold-const.h.
6541 (round_up): Moved to fold-const.h.
6542 (round_up_loc): Moved to fold-const.h.
6543 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6544 (set_decl_rtl): Moved to tree.h.
6545 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6546 (set_user_assembler_name): Moved to varasm.h.
6547 (setjmp_call_p): Moved to calls.h.
6548 (size_binop): Moved to fold-const.h.
6549 (size_binop_loc): Moved to fold-const.h.
6550 (size_diffop): Moved to fold-const.h.
6551 (size_diffop_loc): Moved to fold-const.h.
6552 (size_int_kind): Moved to fold-const.h.
6553 (stack_protect_epilogue): Moved to function.h.
6554 (start_record_layout): Moved to stor-layout.h.
6555 (supports_one_only): Moved to varasm.h.
6556 (swap_tree_comparison): Moved to fold-const.h.
6557 (tm_malloc_replacement): Moved to trans-mem.h.
6558 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6559 (tree build_invariant_address): Moved to fold-const.h.
6560 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6561 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6562 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6563 (tree_expr_nonnegative_p): Moved to fold-const.h.
6564 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6565 (tree_output_constant_def): Moved to varasm.h.
6566 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6567 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6568 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6569 (tree_swap_operands_p): Moved to fold-const.h.
6570 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6571 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6572 (update_alignment_for_field): Moved to stor-layout.h.
6573 (use_register_for_decl): Moved to function.h.
6574 (variable_size): Moved to rtl.h.
6575 (vector_type_mode): Moved to stor-layout.h.
6576 * cgraph.h: Corresponding changes.
6577 * emit-rtl.h: Corresponding changes.
6578 * expr.h: Corresponding changes.
6579 * function.h: Corresponding changes.
6580 * optabs.h: Corresponding changes.
6581 * trans-mem.h: Corresponding changes.
6582 Protect against multiple inclusion.
6583 * tree-inline.h: Corresponding changes.
6584 * tree-iterator.h: Corresponding changes.
6585 * tree-dfa.h: Include expr.h.
6586 * tree-ssanames.h: Include stringpool.h.
6587 * attribs.h: New file.
6588 * calls.h: New file.
6589 * fold-const.h: New file.
6590 * gcc-symtab.h: New file.
6591 * print-rtl.h: New file.
6592 * print-tree.h: New file.
6594 * stor-layout.h: New file.
6595 * strinpool.h: New file.
6596 * tree-nested.h: New file
6597 * tree-object-size.h: New file.
6598 * varasm.h: New file.
6600 2013-11-14 Diego Novillo <dnovillo@google.com>
6602 * alias.c: Include varasm.h.
6604 * asan.c: Include calls.h.
6605 Include stor-layout.h.
6607 * attribs.c: Include stringpool.h.
6609 Include stor-layout.h.
6610 * builtins.c: Include stringpool.h.
6611 Include stor-layout.h.
6614 Include tree-object-size.h.
6615 * calls.c: Include stor-layout.h.
6617 Include stringpool.h.
6619 * cfgexpand.c: Include stringpool.h.
6621 Include stor-layout.h.
6623 Include print-tree.h.
6624 * cgraph.c: Include varasm.h.
6626 Include print-tree.h.
6627 * cgraphclones.c: Include stringpool.h.
6630 Move inclusion of rtl.h earlier in the file.
6631 * cgraphunit.c: Include varasm.h.
6632 Include stor-layout.h.
6633 Include stringpool.h.
6634 * cilk-common.c: Include stringpool.h.
6635 Include stor-layout.h.
6636 * combine.c: Include stor-layout.h.
6637 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6638 Include stringpool.h.
6640 * config/aarch64/aarch64.c: Include stringpool.h.
6641 Include stor-layout.h.
6644 * config/alpha/alpha.c: Include stor-layout.h.
6647 * config/arc/arc.c: Include varasm.h.
6648 Include stor-layout.h.
6649 Include stringpool.h.
6651 * config/arm/arm.c: Include stringpool.h.
6652 Include stor-layout.h.
6655 * config/avr/avr-c.c: Include stor-layout.h.
6656 * config/avr/avr-log.c: Include print-tree.h.
6657 * config/avr/avr.c: Include print-tree.h.
6659 Include stor-layout.h.
6660 Include stringpool.h.
6661 * config/bfin/bfin.c: Include varasm.h.
6663 * config/c6x/c6x.c: Include stor-layout.h.
6666 Include stringpool.h.
6667 * config/cr16/cr16.c: Include stor-layout.h.
6669 * config/cris/cris.c: Include varasm.h.
6670 Include stor-layout.h.
6673 * config/darwin.c: Include stringpool.h.
6675 Include stor-layout.h.
6676 * config/epiphany/epiphany.c: Include stor-layout.h.
6679 Include stringpool.h.
6680 * config/fr30/fr30.c: Include stor-layout.h.
6682 * config/frv/frv.c: Include varasm.h.
6683 Include stor-layout.h.
6684 Include stringpool.h.
6685 * config/h8300/h8300.c: Include stor-layout.h.
6688 Include stringpool.h.
6689 * config/i386/i386.c: Include stringpool.h.
6692 Include stor-layout.h.
6694 * config/i386/winnt-cxx.c: Include stringpool.h.
6696 * config/i386/winnt.c: Include stringpool.h.
6698 * config/ia64/ia64-c.c: Include stringpool.h.
6699 * config/ia64/ia64.c: Include stringpool.h.
6700 Include stor-layout.h.
6703 * config/iq2000/iq2000.c: Include stor-layout.h.
6706 * config/lm32/lm32.c: Include calls.h.
6707 * config/m32c/m32c.c: Include stor-layout.h.
6710 * config/m32r/m32r.c: Include stor-layout.h.
6712 Include stringpool.h.
6714 * config/m68k/m68k.c: Include calls.h.
6715 Include stor-layout.h.
6717 * config/mcore/mcore.c: Include stor-layout.h.
6719 Include stringpool.h.
6721 * config/mep/mep.c: Include varasm.h.
6723 Include stringpool.h.
6724 Include stor-layout.h.
6725 * config/microblaze/microblaze.c: Include varasm.h.
6726 Include stor-layout.h.
6728 * config/mips/mips.c: Include varasm.h.
6729 Include stringpool.h.
6730 Include stor-layout.h.
6732 * config/mmix/mmix.c: Include varasm.h.
6733 Include stor-layout.h.
6735 * config/mn10300/mn10300.c: Include stor-layout.h.
6738 * config/moxie/moxie.c: Include stor-layout.h.
6741 * config/msp430/msp430.c: Include stor-layout.h.
6743 * config/nds32/nds32.c: Include stor-layout.h.
6746 * config/pa/pa.c: Include stor-layout.h.
6747 Include stringpool.h.
6750 * config/pdp11/pdp11.c: Include stor-layout.h.
6753 * config/picochip/picochip.c: Include calls.h.
6754 Include stor-layout.h.
6755 Include stringpool.h.
6757 * config/rl78/rl78.c: Include varasm.h.
6758 Include stor-layout.h.
6760 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6761 Include stringpool.h.
6762 * config/rs6000/rs6000.c: Include stringpool.h.
6763 Include stor-layout.h.
6765 Include print-tree.h.
6767 * config/rx/rx.c: Include varasm.h.
6768 Include stor-layout.h.
6770 * config/s390/s390.c: Include print-tree.h.
6771 Include stringpool.h.
6772 Include stor-layout.h.
6775 * config/score/score.c: Include stringpool.h.
6778 Include stor-layout.h.
6779 * config/sh/sh-c.c: Include stringpool.h.
6780 Include attribs.h.h.
6781 * config/sh/sh.c: Include stringpool.h.
6782 Include stor-layout.h.
6785 * config/sol2-c.c: Include stringpool.h.
6787 * config/sol2-cxx.c: Include stringpool.h.
6788 * config/sol2.c: Include stringpool.h.
6790 * config/sparc/sparc.c: Include stringpool.h.
6791 Include stor-layout.h.
6794 * config/spu/spu-c.c: Include stringpool.h.
6795 * config/spu/spu.c: Include stringpool.h.
6796 Include stor-layout.h.
6799 * config/stormy16/stormy16.c: Include stringpool.h.
6800 Include stor-layout.h.
6803 * config/tilegx/tilegx.c: Include stringpool.h.
6804 Include stor-layout.h.
6807 * config/tilepro/tilepro.c: Include stringpool.h.
6808 Include stor-layout.h.
6811 * config/v850/v850-c.c: Include stringpool.h.
6813 * config/v850/v850.c: Include stringpool.h.
6814 Include stor-layout.h.
6817 * config/vax/vax.c: Include calls.h.
6819 * config/vms/vms.c: Include stringpool.h.
6820 * config/vxworks.c: Include stringpool.h.
6821 * config/xtensa/xtensa.c: Include stringpool.h.
6822 Include stor-layout.h.
6825 * convert.c: Include stor-layout.h.
6826 * coverage.c: Include stringpool.h.
6827 Include stor-layout.h.
6828 * dbxout.c: Include varasm.h.
6829 Include stor-layout.h.
6830 * dojump.c: Include stor-layout.h.
6831 * dse.c: Include stor-layout.h.
6832 * dwarf2asm.c: Include stringpool.h.
6834 * dwarf2cfi.c: Include stor-layout.h.
6835 * dwarf2out.c: Include rtl.h.
6836 Include stringpool.h.
6837 Include stor-layout.h.
6841 Move inclusion of rtl.h earlier in the file.
6842 * emit-rtl.c: Include varasm.h.
6843 * except.c: Include stringpool.h.
6844 Include stor-layout.h.
6845 * explow.c: Include stor-layout.h.
6846 * expmed.c: Include stor-layout.h.
6847 * expr.c: Include stringpool.h.
6848 Include stor-layout.h.
6851 * final.c: Include varasm.h.
6852 * fold-const.c: Include stor-layout.h.
6854 Include tree-iterator.h.
6855 * function.c: Include stor-layout.h.
6857 Include stringpool.h.
6858 * genattrtab.c (write_header): Emit includes for varasm.h,
6859 stor-layout.h and calls.h.
6860 * genautomata.c (main): Likewise.
6861 * genemit.c: Likewise.
6862 * genopinit.c: Likewise.
6863 * genoutput.c (output_prologue): Likewise.
6864 * genpeep.c: Likewise.
6865 * genpreds.c (write_insn_preds_c): Likewise.
6866 * gengtype.c (open_base_files): Add stringpool.h.
6867 * gimple-expr.c: Include stringpool.h.
6868 Include stor-layout.h.
6869 * gimple-fold.c: Include stringpool.h.
6872 Include stor-layout.h.
6873 * gimple-low.c: Include tree-nested.h.
6875 * gimple-pretty-print.c: Include stringpool.h.
6876 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
6878 * gimple-walk.c: Include stmt.h.
6879 * gimple.c: Include calls.h.
6881 Include stor-layout.h.
6882 * gimplify.c: Include stringpool.h.
6885 Include stor-layout.h.
6887 Include print-tree.h.
6889 * gimplify-me.c: Include stmt.h
6890 Include stor-layout.h
6891 * internal-fn.c: Include stor-layout.h.
6892 * ipa-devirt.c: Include print-tree.h.
6894 * ipa-inline-analysis.c: Include stor-layout.h.
6895 Include stringpool.h.
6896 Include print-tree.h.
6897 * ipa-inline.c: Include trans-mem.h.
6899 * ipa-prop.c: Include expr.h.
6900 Include stor-layout.h.
6901 Include print-tree.h.
6902 * ipa-pure-const.c: Include print-tree.h.
6904 * ipa-reference.c: Include calls.h.
6905 * ipa-split.c: Include stringpool.h.
6908 * ipa.c: Include calls.h.
6909 Include stringpool.h.
6910 * langhooks.c: Include stringpool.h.
6912 * lto-cgraph.c: Include stringpool.h.
6913 * lto-streamer-in.c: Include stringpool.h.
6914 * lto-streamer-out.c: Include stor-layout.h.
6915 Include stringpool.h.
6916 * omp-low.c: Include stringpool.h.
6917 Include stor-layout.h.
6919 * optabs.c: Include stor-layout.h.
6920 Include stringpool.h.
6922 * passes.c: Include varasm.h.
6923 * predict.c: Include calls.h.
6924 * print-rtl.c: Include print-tree.h.
6925 * print-tree.c: Include varasm.h.
6926 Include print-rtl.h.
6927 Include stor-layout.h.
6928 * realmpfr.c: Include stor-layout.h.
6929 * reg-stack.c: Include varasm.h.
6930 * sdbout.c: Include varasm.h.
6931 Include stor-layout.h.
6932 * simplify-rtx.c: Include varasm.h.
6933 * stmt.c: Include varasm.h.
6934 Include stor-layout.h.
6935 * stor-layout.c: Include stor-layout.h.
6936 Include stringpool.h.
6938 Include print-tree.h.
6939 * symtab.c: Include rtl.h.
6940 Include print-tree.h.
6944 * targhooks.c: Include stor-layout.h.
6946 * toplev.c: Include varasm.h.
6947 Include tree-inline.h.
6948 * trans-mem.c: Include calls.h.
6952 * tree-affine.c: Include expr.h.
6953 * tree-browser.c: Include print-tree.h.
6954 * tree-call-cdce.c: Include stor-layout.h.
6955 * tree-cfg.c: Include trans-mem.h.
6956 Include stor-layout.h.
6957 Include print-tree.h.
6958 * tree-complex.c: Include stor-layout.h.
6959 * tree-data-ref.c: Include expr.h.
6960 * tree-dfa.c: Include stor-layout.h.
6961 * tree-eh.c: Include expr.h.
6963 * tree-emutls.c: Include stor-layout.h.
6965 * tree-if-conv.c: Include stor-layout.h.
6966 * tree-inline.c: Include stor-layout.h.
6968 * tree-loop-distribution.c: Include stor-layout.h.
6969 * tree-nested.c: Include stringpool.h.
6970 Include stor-layout.h.
6971 * tree-object-size.c: Include tree-object-size.h.
6972 * tree-outof-ssa.c: Include stor-layout.h.
6973 * tree-parloops.c: Include stor-layout.h.
6974 Include tree-nested.h.
6975 * tree-pretty-print.c: Include stor-layout.h.
6977 * tree-profile.c: Include varasm.h.
6978 Include tree-nested.h.
6979 * tree-scalar-evolution.c: Include expr.h.
6980 * tree-sra.c: Include stor-layout.h.
6981 * tree-ssa-address.c: Include stor-layout.h.
6982 * tree-ssa-ccp.c: Include stor-layout.h.
6983 * tree-ssa-dce.c: Include calls.h.
6984 * tree-ssa-dom.c: Include stor-layout.h.
6985 * tree-ssa-forwprop.c: Include stor-layout.h.
6986 * tree-ssa-ifcombine.c: Include stor-layout.h.
6987 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
6988 * tree-ssa-loop-niter.c: Include calls.h.
6990 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
6991 * tree-ssa-math-opts.c: Include stor-layout.h.
6992 * tree-ssa-operands.c: Include stmt.h.
6993 Include print-tree.h.
6994 * tree-ssa-phiopt.c: Include stor-layout.h.
6995 * tree-ssa-reassoc.c: Include stor-layout.h.
6996 * tree-ssa-sccvn.c: Include stor-layout.h.
6997 * tree-ssa-sink.c: Include stor-layout.h.
6998 * tree-ssa-strlen.c: Include stor-layout.h.
6999 * tree-ssa-structalias.c: Include stor-layout.h.
7001 * tree-ssa-tail-merge.c: Include stor-layout.h.
7002 Include trans-mem.h.
7003 * tree-ssa-uncprop.c: Include stor-layout.h.
7004 * tree-ssa.c: Include stor-layout.h.
7005 * tree-ssanames.c: Include stor-layout.h.
7006 * tree-streamer-in.c: Include stringpool.h.
7007 * tree-streamer-out.c: Include stor-layout.h.
7008 * tree-switch-conversion.c: Include varasm.h.
7009 Include stor-layout.h.
7010 * tree-tailcall.c: Include stor-layout.h.
7011 * tree-vect-data-refs.c: Include stor-layout.h.
7012 * tree-vect-generic.c: Include stor-layout.h.
7013 * tree-vect-loop.c: Include stor-layout.h.
7014 * tree-vect-patterns.c: Include stor-layout.h.
7015 * tree-vect-slp.c: Include stor-layout.h.
7016 * tree-vect-stmts.c: Include stor-layout.h.
7017 * tree-vectorizer.c: Include stor-layout.h.
7018 * tree-vrp.c: Include stor-layout.h.
7020 * tree.c: Include stor-layout.h.
7024 * tsan.c: Include expr.h.
7025 * ubsan.c: Include stor-layout.h.
7026 Include stringpool.h.
7027 * value-prof.c: Include tree-nested.h.
7029 * var-tracking.c: Include varasm.h.
7030 Include stor-layout.h.
7031 * varasm.c: Include stor-layout.h.
7032 Include stringpool.h.
7033 Include gcc-symtab.h.
7035 * varpool.c: Include varasm.h.
7036 * vmsdbgout.c: Include varasm.h.
7037 * xcoffout.c: Include varasm.h.
7039 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7041 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7044 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7046 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7048 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7049 Alan Modra <amodra@gmail.com>
7051 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7052 (RS6000_SAVE_TOC): Remove.
7053 (RS6000_TOC_SAVE_SLOT): New macro.
7054 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7055 (rs6000_parm_start): Use it.
7056 (rs6000_function_arg_advance_1): Likewise.
7057 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7058 (rs6000_emit_epilogue): Likewise.
7059 (rs6000_call_aix): Likewise.
7060 (rs6000_output_function_prologue): Do not save/restore r11
7061 around calling _mcount for ABI_ELFv2.
7063 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7064 Alan Modra <amodra@gmail.com>
7066 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7068 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7069 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7070 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7071 (rs6000_function_parms_need_stack): Likewise.
7072 (rs6000_reg_parm_stack_space): Likewise.
7073 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7074 returning a register argument.
7076 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7077 Michael Gschwind <mkg@us.ibm.com>
7079 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7080 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7081 (FUNCTION_VALUE_REGNO_P): Use them.
7082 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7083 (rs6000_return_in_msb): New function.
7084 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7085 Handle aggregates of up to 16 bytes for ELFv2.
7086 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7088 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7089 Michael Gschwind <mkg@us.ibm.com>
7091 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7092 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7093 (rs6000_discover_homogeneous_aggregate): Likewise.
7094 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7095 (rs6000_function_arg_advance_1): Likewise.
7096 (rs6000_function_arg): Likewise.
7097 (rs6000_arg_partial_bytes): Likewise.
7098 (rs6000_psave_function_arg): Handle BLKmode arguments.
7100 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7101 Michael Gschwind <mkg@us.ibm.com>
7103 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7104 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7105 (rs6000_discover_homogeneous_aggregate): Likewise.
7106 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7107 (rs6000_function_arg_advance_1): Likewise.
7108 (rs6000_function_arg): Likewise.
7109 (rs6000_arg_partial_bytes): Likewise.
7110 (rs6000_psave_function_arg): Handle BLKmode arguments.
7112 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7114 * config/rs6000/rs6000.c (machine_function): New member
7116 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7117 (rs6000_output_mi_thunk): Set r2_setup_needed.
7118 (rs6000_output_function_prologue): Output global entry point
7119 prologue and local entry point marker if needed for ABI_ELFv2.
7120 Output -mprofile-kernel code here.
7121 (output_function_profiler): Do not output -mprofile-kernel
7122 code here; moved to rs6000_output_function_prologue.
7123 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7125 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7126 (rs6000_output_function_entry): Likewise.
7127 (rs6000_assemble_integer): Likewise.
7128 (rs6000_elf_encode_section_info): Likewise.
7129 (rs6000_elf_declare_function_name): Do not create dot symbols
7130 or .opd section for ABI_ELFv2.
7132 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7133 (rs6000_trampoline_init): Likewise.
7134 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7136 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7137 for function descriptors in ABI_ELFv2.
7139 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7140 on ABI_AIX only, not ABI_ELFv2.
7141 ("*call_value_indirect_aix<mode>"): Likewise.
7142 ("*call_indirect_elfv2<mode>"): New pattern.
7143 ("*call_value_indirect_elfv2<mode>"): Likewise.
7145 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7146 check for function descriptors in ABI_ELFv2.
7147 ("current_file_function_operand"): Likewise.
7149 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7151 (FUNC_NAME): Define ELFv2 variant.
7152 (JUMP_TARGET): Likewise.
7153 (FUNC_START): Likewise.
7154 (HIDDEN_FUNC): Likewise.
7155 (FUNC_END): Likeiwse.
7157 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7159 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7160 and --with-abi=elfv2.
7161 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7162 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7163 (mabi=elfv2): Likewise.
7164 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7165 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7167 (ELFv2_ABI_CHECK): New macro.
7168 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7169 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7170 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7171 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7172 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7175 (debug_stack_info): Likewise.
7176 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7177 (rs6000_legitimize_tls_address): Likewise.
7178 (rs6000_conditional_register_usage): Likewise.
7179 (rs6000_emit_move): Likewise.
7180 (init_cumulative_args): Likewise.
7181 (rs6000_function_arg_advance_1): Likewise.
7182 (rs6000_function_arg): Likewise.
7183 (rs6000_arg_partial_bytes): Likewise.
7184 (rs6000_output_function_entry): Likewise.
7185 (rs6000_assemble_integer): Likewise.
7186 (rs6000_savres_strategy): Likewise.
7187 (rs6000_stack_info): Likewise.
7188 (rs6000_function_ok_for_sibcall): Likewise.
7189 (rs6000_emit_load_toc_table): Likewise.
7190 (rs6000_savres_routine_name): Likewise.
7191 (ptr_regno_for_savres): Likewise.
7192 (rs6000_emit_prologue): Likewise.
7193 (rs6000_emit_epilogue): Likewise.
7194 (rs6000_output_function_epilogue): Likewise.
7195 (output_profile_hook): Likewise.
7196 (output_function_profiler): Likewise.
7197 (rs6000_trampoline_size): Likewise.
7198 (rs6000_trampoline_init): Likewise.
7199 (rs6000_elf_output_toc_section_asm_op): Likewise.
7200 (rs6000_elf_encode_section_info): Likewise.
7201 (rs6000_elf_reloc_rw_mask): Likewise.
7202 (rs6000_elf_declare_function_name): Likewise.
7203 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7204 except that rs6000_compat_align_parm is always assumed false.
7205 (rs6000_gimplify_va_arg): Likewise.
7206 (rs6000_call_aix): Update comment.
7207 (rs6000_sibcall_aix): Likewise.
7208 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7209 Treat ABI_ELFv2 the same as ABI_AIX.
7210 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7211 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7212 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7213 ("load_toc_aix_si"): Likewise.
7214 ("load_toc_aix_di"): Likewise.
7216 ("call_value"): Likewise.
7217 ("*call_local_aix<mode>"): Likewise.
7218 ("*call_value_local_aix<mode>"): Likewise.
7219 ("*call_nonlocal_aix<mode>"): Likewise.
7220 ("*call_value_nonlocal_aix<mode>"): Likewise.
7221 ("*call_indirect_aix<mode>"): Likewise.
7222 ("*call_value_indirect_aix<mode>"): Likewise.
7223 ("sibcall"): Likewise.
7224 ("sibcall_value"): Likewise.
7225 ("*sibcall_aix<mode>"): Likewise.
7226 ("*sibcall_value_aix<mode>"): Likewise.
7227 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7228 ("current_file_function_operand"): Likewise.
7230 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7232 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7233 by making use of the fact that for vector / floating point arguments
7234 passed both in VRs/FPRs and in the fixed parameter area, the partial
7235 bytes mechanism is in fact not used.
7237 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7239 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7240 (rs6000_finish_function_arg): Likewise.
7241 (rs6000_function_arg): Use rs6000_psave_function_arg and
7242 rs6000_finish_function_arg to handle both vector and floating
7243 point arguments that are also passed in GPRs / the stack.
7245 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7247 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7248 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7249 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7250 (rs6000_function_arg_advance_1):Likewise.
7251 (rs6000_darwin64_record_arg_recurse): Likewise.
7252 (rs6000_function_arg): Likewise.
7253 (rs6000_arg_partial_bytes): Likewise.
7255 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7257 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7258 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7259 (rs6000_savres_strategy): Likewise.
7260 (rs6000_return_addr): Likewise.
7261 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7262 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7263 (rs6000_emit_prologue): Likewise.
7264 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7265 (rs6000_elf_declare_function_name): Remove duplicated test.
7266 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7267 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7268 ("load_toc_v4_PIC_1_normal"): Likewise.
7269 ("load_toc_v4_PIC_1_476"): Likewise.
7270 ("load_toc_v4_PIC_1b"): Likewise.
7271 ("load_toc_v4_PIC_1b_normal"): Likewise.
7272 ("load_toc_v4_PIC_1b_476"): Likewise.
7273 ("load_toc_v4_PIC_2"): Likewise.
7274 ("load_toc_v4_PIC_3b"): Likewise.
7275 ("load_toc_v4_PIC_3c"): Likewise.
7276 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7277 (RS6000_SAVE_AREA): Likewise.
7278 (FP_ARG_MAX_REG): Likewise.
7279 (RETURN_ADDRESS_OFFSET): Likewise.
7280 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7282 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7283 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7285 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7287 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7288 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7289 Create call insn directly instead of via various gen_... routines.
7290 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7291 (rs6000_sibcall_aix): New function.
7292 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7293 (TOC_SAVE_OFFSET_64BIT): Likewise.
7294 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7295 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7296 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7297 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7298 ("call" expander): Call rs6000_call_aix.
7299 ("call_value" expander): Likewise.
7300 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7301 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7302 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7303 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7304 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7305 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7306 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7307 ("*call_nonlocal_aix<mode>"): ... this pattern.
7308 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7309 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7310 ("*call_local_aix<mode>"): New insn pattern.
7311 ("*call_value_local_aix<mode>"): Likewise.
7312 ("sibcall" expander): Call rs6000_sibcall_aix.
7313 ("sibcall_value" expander): Likewise. Move earlier in file.
7314 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7315 ("*sibcall_aix<mode>"): ... this pattern.
7316 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7317 ("*sibcall_value_aix<mode>"): ... this pattern.
7318 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7319 (rs6000_call_aix): Add prototype.
7320 (rs6000_sibcall_aix): Likewise.
7322 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7325 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7326 isn't confused by the artificial decl.
7328 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7330 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7331 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7332 Instead, add USEs of all modified call-saved CR fields to the
7333 insn storing the result to the stack slot, and provide an
7334 appropriate REG_FRAME_RELATED_EXPR for that insn.
7335 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7336 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7338 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7339 Alan Modra <amodra@gmail.com>
7341 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7342 of re-evaluating REG_PARM_STACK_SPACE target macro.
7343 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7344 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7345 (assign_parm_find_entry_rtl): Update call.
7346 * calls.c (initialize_argument_information): Update call.
7347 (emit_library_call_value_1): Likewise.
7348 * expr.h (locate_and_pad_parm): Update prototype.
7350 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7352 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7355 2013-11-14 DJ Delorie <dj@redhat.com>
7357 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7360 2013-11-14 Jeff Law <law@redhat.com>
7362 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7363 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7365 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7367 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7370 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7372 * config/aarch64/aarch64-cores.def (example-1): Remove.
7373 (example-2): Likewise.
7374 * config/aarch64/aarch64-tune.md: Regenerate.
7375 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7376 (generic_sched): Remove "large", "small".
7377 * config/aarch64/large.md: Delete.
7378 * config/aarch64/small.md: Delete.
7380 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7382 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7383 * config/aarch64/aarch64-tune.md: Regenerate.
7384 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7385 (generic_sched): "no" if we are tuning for cortexa15.
7386 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7389 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7391 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7392 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7393 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7394 (all_cores): Use cortexa53 when tuning for "generic".
7395 (aarch64_override_options): Fix comment.
7396 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7397 * config/aarch64/aarch64-generic.md: Delete.
7399 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7401 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7403 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7405 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7406 (generic_rtx_cost_table): Remove.
7407 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7408 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7410 (cpu_rtx_cost_table): Remove.
7412 2013-11-14 Julian Brown <julian@codesourcery.com>
7413 Joey Ye <joey.ye@arm.com>
7415 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7416 (arm_v7m_tune): New.
7417 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7418 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7419 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7420 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7422 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7425 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7428 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7429 Uros Bizjak <ubizjak@gmail.com>
7432 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7433 operands[2] satisfies_constraint_Z that might have bit 31 set.
7435 2013-11-13 Jeff Law <law@redhat.com>
7437 PR tree-optimization/59102
7438 * gimple-ssa-isolate-paths.c
7439 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7440 gimple assignment before looking at gimple_assign_lhs.
7442 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7444 * ira.c: Add comment about threads at the top of file.
7446 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7448 * ira-color.c (coalesce_allocnos): Don't allocate and free
7451 2013-11-14 Tom de Vries <tom@codesourcery.com>
7453 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7454 equality for GIMPLE_ASSIGN.
7456 2013-11-14 Tom de Vries <tom@codesourcery.com>
7458 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7460 (gimple_equal_p): ... here.
7462 2013-11-14 Tom de Vries <tom@codesourcery.com>
7464 * trans-mem.c (is_tm_ending): New function.
7465 * gimple.h (is_tm_ending): Declare.
7466 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7468 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7470 2013-11-14 Tom de Vries <tom@codesourcery.com>
7472 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7474 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7476 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7477 (struct walk_stmt_info): Relocate here from gimple.h.
7478 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7479 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7480 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7481 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7482 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7483 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7484 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7485 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7486 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7487 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7488 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7489 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7490 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7491 (struct walk_stmt_info): Move to gimple-walk.h.
7492 (gimple_seq_set_location): Move to gimple.c
7493 * gimple-walk.c: New File.
7494 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7495 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7496 walk_stmt_load_store_ops): Relocate here from gimple.c.
7497 * gimple-iterator.c: Include gimple-iterator.h.
7498 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7499 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7500 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7502 (gimple_seq_set_location): Relocate from gimple.h.
7503 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7504 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7505 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7506 * Makefile.in (OBJS): Add gimple-walk.o
7507 * asan.c: Update Include list as required for gimple-iterator.h and
7509 * cfgexpand.c: Likewise.
7510 * cfgloop.c: Likewise.
7511 * cfgloopmanip.c: Likewise.
7512 * cgraph.c: Likewise.
7513 * cgraphbuild.c: Likewise.
7514 * cgraphunit.c: Likewise.
7515 * gimple-fold.c: Likewise.
7516 * gimple-low.c: Likewise.
7517 * gimple-pretty-print.c: Likewise.
7518 * gimple-ssa-isolate-paths.c: Likewise.
7519 * gimple-ssa-strength-reduction.c: Likewise.
7520 * gimple-streamer-in.c: Likewise.
7521 * gimple-streamer-out.c: Likewise.
7522 * gimplify.c: Likewise.
7523 * graphite-blocking.c: Likewise.
7524 * graphite-clast-to-gimple.c: Likewise.
7525 * graphite-dependences.c: Likewise.
7526 * graphite-interchange.c: Likewise.
7527 * graphite-optimize-isl.c: Likewise.
7528 * graphite-poly.c: Likewise.
7529 * graphite-scop-detection.c: Likewise.
7530 * graphite-sese-to-poly.c: Likewise.
7531 * graphite.c: Likewise.
7532 * ipa-inline-analysis.c: Likewise.
7533 * ipa-profile.c: Likewise.
7534 * ipa-prop.c: Likewise.
7535 * ipa-pure-const.c: Likewise.
7536 * ipa-split.c: Likewise.
7537 * lto-streamer-in.c: Likewise.
7538 * lto-streamer-out.c: Likewise.
7539 * omp-low.c: Likewise.
7540 * predict.c: Likewise.
7541 * profile.c: Likewise.
7543 * tracer.c: Likewise.
7544 * trans-mem.c: Likewise.
7545 * tree-call-cdce.c: Likewise.
7546 * tree-cfg.c: Likewise.
7547 * tree-cfgcleanup.c: Likewise.
7548 * tree-complex.c: Likewise.
7549 * tree-data-ref.c: Likewise.
7550 * tree-dfa.c: Likewise.
7551 * tree-eh.c: Likewise.
7552 * tree-emutls.c: Likewise.
7553 * tree-if-conv.c: Likewise.
7554 * tree-inline.c: Likewise.
7555 * tree-into-ssa.c: Likewise.
7556 * tree-loop-distribution.c: Likewise.
7557 * tree-nested.c: Likewise.
7558 * tree-nrv.c: Likewise.
7559 * tree-object-size.c: Likewise.
7560 * tree-outof-ssa.c: Likewise.
7561 * tree-parloops.c: Likewise.
7562 * tree-predcom.c: Likewise.
7563 * tree-profile.c: Likewise.
7564 * tree-scalar-evolution.c: Likewise.
7565 * tree-sra.c: Likewise.
7566 * tree-ssa-ccp.c: Likewise.
7567 * tree-ssa-coalesce.c: Likewise.
7568 * tree-ssa-copy.c: Likewise.
7569 * tree-ssa-copyrename.c: Likewise.
7570 * tree-ssa-dce.c: Likewise.
7571 * tree-ssa-dom.c: Likewise.
7572 * tree-ssa-dse.c: Likewise.
7573 * tree-ssa-forwprop.c: Likewise.
7574 * tree-ssa-ifcombine.c: Likewise.
7575 * tree-ssa-live.c: Likewise.
7576 * tree-ssa-loop-ch.c: Likewise.
7577 * tree-ssa-loop-im.c: Likewise.
7578 * tree-ssa-loop-ivcanon.c: Likewise.
7579 * tree-ssa-loop-ivopts.c: Likewise.
7580 * tree-ssa-loop-manip.c: Likewise.
7581 * tree-ssa-loop-niter.c: Likewise.
7582 * tree-ssa-loop-prefetch.c: Likewise.
7583 * tree-ssa-loop.c: Likewise.
7584 * tree-ssa-math-opts.c: Likewise.
7585 * tree-ssa-phiopt.c: Likewise.
7586 * tree-ssa-phiprop.c: Likewise.
7587 * tree-ssa-pre.c: Likewise.
7588 * tree-ssa-propagate.c: Likewise.
7589 * tree-ssa-reassoc.c: Likewise.
7590 * tree-ssa-sink.c: Likewise.
7591 * tree-ssa-strlen.c: Likewise.
7592 * tree-ssa-structalias.c: Likewise.
7593 * tree-ssa-tail-merge.c: Likewise.
7594 * tree-ssa-ter.c: Likewise.
7595 * tree-ssa-threadedge.c: Likewise.
7596 * tree-ssa-threadupdate.c: Likewise.
7597 * tree-ssa-uncprop.c: Likewise.
7598 * tree-ssa-uninit.c: Likewise.
7599 * tree-ssa.c: Likewise.
7600 * tree-stdarg.c: Likewise.
7601 * tree-switch-conversion.c: Likewise.
7602 * tree-tailcall.c: Likewise.
7603 * tree-vect-data-refs.c: Likewise.
7604 * tree-vect-generic.c: Likewise.
7605 * tree-vect-loop-manip.c: Likewise.
7606 * tree-vect-loop.c: Likewise.
7607 * tree-vect-patterns.c: Likewise.
7608 * tree-vect-slp.c: Likewise.
7609 * tree-vect-stmts.c: Likewise.
7610 * tree-vectorizer.c: Likewise.
7611 * tree-vrp.c: Likewise.
7614 * value-prof.c: Likewise.
7615 * vtable-verify.c: Likewise.
7617 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7619 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7622 2013-11-13 Jeff Law <law@redhat.com>
7624 * PR middle-end/59119
7625 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7626 function, extracted from gimple_ssa_isolate_erroneous_paths.
7627 (find_explicit_erroneous_behaviour): Similarly.
7628 (insert_trap_and_remove_trailing_statements): Remove statements
7631 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7633 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7634 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7635 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7636 looking at INSN_CODE.
7637 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7638 active_insn_p object, respect basic block boundaries.
7639 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7640 follows immediately after the jump table data label.
7641 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7642 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7643 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7645 2013-11-13 Teresa Johnson <tejohnson@google.com>
7648 * predict.c (drop_profile): Error is currently too strict.
7649 (handle_missing_profiles): Pass call_count to drop_profile.
7651 2013-11-13 Teresa Johnson <tejohnson@google.com>
7654 * ipa-inline.c (edge_badness): Fix overflow.
7656 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7658 PR rtl-optimization/59036
7659 * ira-color.c (struct allocno_color_data): Add new members
7660 first_thread_allocno, next_thread_allocno, thread_freq.
7661 (sorted_copies): New static var.
7662 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7663 (allocno_thread_conflict_p, merge_threads)
7664 (form_threads_from_copies, form_threads_from_bucket)
7665 (form_threads_from_colorable_allocno, init_allocno_threads): New
7667 (bucket_allocno_compare_func): Add comparison by thread frequency
7669 (add_allocno_to_ordered_bucket): Rename to
7670 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7671 (push_only_colorable): Call form_threads_from_bucket.
7672 (color_pass): Call init_allocno_threads. Use
7673 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7674 for nuillify allocno color data.
7675 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7676 (coalesce_allocnos): Use static sorted copies.
7678 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7680 * passes.c (execute_todo): Don't call do_per_function if
7682 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7683 execute_function_dump if dump_file is NULL.
7685 2013-11-13 Martin Jambor <mjambor@suse.cz>
7687 * cgraph.c (cgraph_get_create_node): Do what
7688 cgraph_get_create_real_symbol_node used to do.
7689 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7690 call cgraph_get_create_node.
7691 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7692 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7693 cgraph_get_create_node. Assert we get a node.
7695 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7697 * config/aarch64/aarch64-simd.md (vec_extract): New.
7699 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7701 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7704 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7706 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7707 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7708 or if optimization is enabled.
7709 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7710 require that all the names based on a PARM_DECL or a RESULT_DECL that
7711 isn't ignored for debug info be coalesced.
7713 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7715 * config/c6x/c6x.c: Include "gimple-expr.h".
7717 2013-11-13 Richard Biener <rguenther@suse.de>
7719 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7720 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7721 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7722 dealing with type mismatches inside component reference chains.
7724 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7726 PR tree-optimization/59077
7727 * ipa-pure-const.c (better_state): Update *state.
7729 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7731 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7732 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7733 Update offset calculations.
7735 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7738 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7739 for fields. Do not add the attribute if the size is negative.
7741 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7743 * config/arm/arm.c: Include aarch-cost-tables.h.
7744 (generic_extra_costs): Move from here...
7745 * config/arm/aarch-cost-tables.h: ... To here. New file.
7747 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7748 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7749 Sergey Lega <sergey.s.lega@intel.com>
7750 Anna Tikhonova <anna.tikhonova@intel.com>
7751 Ilya Tocar <ilya.tocar@intel.com>
7752 Andrey Turetskiy <andrey.turetskiy@intel.com>
7753 Ilya Verbin <ilya.verbin@intel.com>
7754 Kirill Yukhin <kirill.yukhin@intel.com>
7755 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7757 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7758 * config/i386/predicate.md (const_0_to_4_operand): New.
7759 (const_0_to_5_operand): Ditto.
7760 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7761 (UNSPEC_COMPRESS_STORE): Ditto.
7762 (UNSPEC_EXPAND): Ditto.
7763 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7764 (define_mode_attr ssescalarsize): Ditto.
7765 (avx512f_load<mode>_mask): Ditto.
7766 (avx512f_store<mode>_mask): Ditto.
7767 (avx512f_storedqu<mode>_mask): Ditto.
7768 (avx512f_vmcmp<mode>3_mask): Ditto.
7769 (avx512f_fmadd_<mode>_mask): Ditto.
7770 (avx512f_fmadd_<mode>_mask3): Ditto.
7771 (avx512f_fmsub_<mode>_mask): Ditto.
7772 (avx512f_fmsub_<mode>_mask3): Ditto.
7773 (avx512f_fnmadd_<mode>_mask): Ditto.
7774 (avx512f_fnmadd_<mode>_mask3): Ditto.
7775 (avx512f_fnmsub_<mode>_mask): Ditto.
7776 (avx512f_fnmsub_<mode>_mask3): Ditto.
7777 (avx512f_fmaddsub_<mode>_mask): Ditto.
7778 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7779 (avx512f_fmsubadd_<mode>_mask): Ditto.
7780 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7781 (vec_unpacku_float_lo_v16si): Ditto.
7782 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7783 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7784 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7785 (vec_extract_lo_<mode>_maskm): Ditto.
7786 (vec_extract_hi_<mode>_maskm): Ditto.
7787 (avx512f_vternlog<mode>_mask): Ditto.
7788 (avx512f_shufps512_mask): Ditto.
7789 (avx512f_fixupimm<mode>_mask): Ditto.
7790 (avx512f_shufpd512_mask): Ditto.
7791 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7792 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7793 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7794 (ashr<mode>3<mask_name>): Ditto.
7795 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7796 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7797 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7798 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7799 (avx512f_pshufdv3_mask): Ditto.
7800 (avx512f_perm<mode>_mask): Ditto.
7801 (avx512f_vpermi2var<mode>3_mask): Ditto.
7802 (avx512f_vpermt2var<mode>3_mask): Ditto.
7803 (avx512f_compress<mode>_mask): Ditto.
7804 (avx512f_compressstore<mode>_mask): Ditto.
7805 (avx512f_expand<mode>_mask): Ditto.
7806 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7808 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7809 (<plusminus_insn><mode>3<mask_name>): Ditto.
7810 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7811 (mul<mode>3<mask_name>): Ditto.
7812 (*mul<mode>3<mask_name>): Ditto.
7813 (<sse>_div<mode>3<mask_name>): Ditto.
7814 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7815 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7816 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7817 (<code><mode>3<mask_name>/smaxmin): Ditto.
7818 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7819 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7820 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7821 (ufloatv16siv16sf2<mask_name>): Ditto.
7822 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7823 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7824 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7825 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7826 (ufloatv8siv8df<mask_name>): Ditto.
7827 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7828 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7829 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7830 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7831 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7832 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7833 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7834 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7835 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7836 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7837 (vec_extract_lo_<mode><mask_name>): Ditto.
7838 (vec_extract_hi_<mode><mask_name>): Ditto.
7839 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7840 (avx512f_movddup512<mask_name>): Ditto.
7841 (avx512f_unpcklpd512<mask_name>): Ditto.
7842 (*avx512f_unpcklpd512<mask_name>): Ditto.
7843 (*avx512f_vmscalef<mode>): Ditto.
7844 (avx512f_scalef<mode><mask_name>): Ditto.
7845 (avx512f_getexp<mode><mask_name>): Ditto.
7846 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7847 (avx512f_rndscale<mode><mask_name>): Ditto.
7848 (avx512f_shufps512_1<mask_name>): Ditto.
7849 (avx512f_shufpd512_1<mask_name>): Ditto.
7850 (<plusminus_insn><mode>3<mask_name>): Ditto.
7851 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7852 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7853 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
7854 (vec_widen_smult_even_v16si<mask_name>): Ditto.
7855 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
7856 (mul<mode>3<mask_name>): Ditto.
7857 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
7858 (<shift_insn><mode>3<mask_name>): Ditto.
7859 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
7860 (avx512f_<rotate><mode><mask_name>): Ditto.
7861 (<code><mode>3<mask_name>/maxmin): Ditto.
7862 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
7863 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
7864 (*andnot<mode>3<mask_name>): Ditto.
7865 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
7866 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
7867 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
7868 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
7869 (vec_set_lo_<mode><mask_name>): Ditto.
7870 (vec_set_hi_<mode><mask_name>): Ditto.
7871 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
7872 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
7873 (avx512f_pshufd_1<mask_name>): Ditto.
7874 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
7875 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
7876 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
7877 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
7878 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
7879 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
7880 (avx512er_exp2<mode><mask_name>): Ditto.
7881 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
7882 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
7883 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
7884 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
7885 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
7886 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
7887 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
7888 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
7889 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
7890 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
7891 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
7892 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
7893 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
7894 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
7895 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
7896 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
7897 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
7898 (avx512f_getmant<mode><mask_name>): Ditto.
7899 (clz<mode>2<mask_name>): Ditto.
7900 (<mask_codefor>conflict<mode><mask_name>): Ditto.
7901 (*srcp14<mode>): Remove visibility.
7902 (*rsqrt14<mode>): Ditto.
7903 (*fma_fmsub_<mode>): Ditto.
7904 (*fma_fnmadd_<mode>): Ditto.
7905 (*avx512f_rndscale<mode>): Ditto.
7906 * config/i386/subst.md: New file.
7908 2013-11-13 Joseph Myers <joseph@codesourcery.com>
7910 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
7911 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
7912 (atomic_load_explicit, atomic_exchange_explicit)
7913 (atomic_compare_exchange_strong_explicit)
7914 (atomic_compare_exchange_weak_explicit): Use __auto_type to
7915 declare variable initialized with PTR argument.
7917 2013-11-12 Jeff Law <law@redhat.com>
7919 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
7920 backedge_seen_p. Set, use and pass it to children appropriately.
7921 (thread_through_normal_block): Similarly.
7922 (thread_across_edge): Similarly.
7924 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
7925 memory references as volatile.
7926 (insert_trap_and_remove_trailing_statements): Fix comment.
7928 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
7931 * ira-costs.c (record_operand_costs): Check operands number for
7934 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7937 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
7938 constraints that would allow DImode into the traditional Altivec
7939 registers, but cause undesirable code generation when loading 0 as
7941 (movdi_internal64): Likewise.
7942 (cmp<mode>_fpr): Do not use %x for CR register output.
7943 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
7944 -mallow-upper-sf debug switches are used.
7946 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
7948 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
7949 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
7950 Relocate prototypes from gimple.h.
7951 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
7952 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
7954 * gimple.h: Move some prototypes to gimplify.h.
7955 (gimple_predicate, enum fallback, enum gimplify_status): Move to
7957 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
7958 Relocate from gimpify.c.
7959 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7960 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
7961 is_gimple_reg_rhs) Relocate from gimplify.c.
7962 * gimplify.c (mark_addressable): Move to gimple-expr.c.
7963 (gimple_seq_add_stmt_without_update): Move to gimple.c.
7964 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7965 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
7966 is_gimple_reg_rhs): Move to gimple-expr.c.
7967 (should_carry_location_p): Move to gimple.c.
7968 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
7970 (annotate_one_with_location, annotate_all_with_location_after,
7971 annotate_all_with_location): Move to gimple.c.
7972 (compare_case_labels, sort_case_labels,
7973 preprocess_case_label_vec_for_gimple): Move to gimple.c.
7974 (rhs_predicate_for): Make static.
7975 (gimplify_assign): Relocate from gimple.c.
7976 * gimple.c (gimplify_assign): Move to gimplify.c.
7977 (gimple_seq_add_stmt_without_update, should_carry_location_p,
7978 annotate_one_with_location, annotate_all_with_location_after,
7979 annotate_all_with_location, compare_case_labels, sort_case_labels,
7980 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
7981 * tree.h (unshare_expr, unshare_expr_without_location,
7982 mark_addressable): Move prototypes to gimplify.h.
7983 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
7985 * asan.c: Include gimplify.h rather than gimple.h.
7986 * cfgloopmanip.c: Likewise.
7987 * cgraphunit.c: Likewise.
7988 * cilk-common.c: Likewise.
7989 * dwarf2out.c: Dont include gimple.h.
7990 * fold-const.c: Include gimplify.h rather than gimple.h.
7991 * function.c: Likewise.
7992 * gimple-fold.c: Likewise.
7993 * gimple-ssa-strength-reduction.c: Likewise.
7994 * graphite-clast-to-gimple.c: Likewise.
7995 * graphite-sese-to-poly.c: Likewise.
7996 * ipa-prop.c: Likewise.
7997 * ipa-split.c: Likewise.
7999 * langhooks.c: Dont include gimple.h.
8000 * loop-init.c: Include gimplify.h rather than gimple.h.
8001 * omp-low.c: Likewise.
8003 * stor-layout.c: Likewise.
8004 * targhooks.c: Likewise.
8005 * trans-mem.c: Likewise.
8006 * tree-affine.c: Likewise.
8007 * tree-cfg.c: Likewise.
8008 * tree-cfgcleanup.c: Likewise.
8009 * tree-complex.c: Likewise.
8010 * tree-if-conv.c: Likewise.
8011 * tree-inline.c: Likewise.
8012 * tree-iterator.c: Likewise.
8013 * tree-loop-distribution.c: Likewise.
8014 * tree-nested.c: Likewise.
8015 * tree-parloops.c: Likewise.
8016 * tree-predcom.c: Likewise.
8017 * tree-profile.c: Likewise.
8018 * tree-scalar-evolution.c: Likewise.
8019 * tree-sra.c: Likewise.
8020 * tree-ssa-address.c: Likewise.
8021 * tree-ssa-ccp.c: Likewise.
8022 * tree-ssa-dce.c: Likewise.
8023 * tree-ssa-forwprop.c: Likewise.
8024 * tree-ssa-ifcombine.c: Likewise.
8025 * tree-ssa-loop-im.c: Likewise.
8026 * tree-ssa-loop-ivopts.c: Likewise.
8027 * tree-ssa-loop-manip.c: Likewise.
8028 * tree-ssa-loop-niter.c: Likewise.
8029 * tree-ssa-loop-prefetch.c: Likewise.
8030 * tree-ssa-loop-unswitch.c: Likewise.
8031 * tree-ssa-math-opts.c: Likewise.
8032 * tree-ssa-phiopt.c: Likewise.
8033 * tree-ssa-phiprop.c: Likewise.
8034 * tree-ssa-pre.c: Likewise.
8035 * tree-ssa-propagate.c: Likewise.
8036 * tree-ssa-reassoc.c: Likewise.
8037 * tree-ssa-sccvn.c: Likewise.
8038 * tree-ssa-strlen.c: Likewise.
8039 * tree-ssa.c: Likewise.
8040 * tree-switch-conversio: Likewise.n.c
8041 * tree-tailcall.c: Likewise.
8042 * tree-vect-data-refs.c: Likewise.
8043 * tree-vect-generic.c: Likewise.
8044 * tree-vect-loop-manip.c: Likewise.
8045 * tree-vect-loop.c: Likewise.
8046 * tree-vect-patterns.c: Likewise.
8047 * tree-vect-stmts.c: Likewise.
8049 * value-prof.c: Likewise.
8050 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8051 * config/alpha/alpha.c: Likewise.
8052 * config/darwin.c: Likewise.
8053 * config/i386/i386.c: Likewise.
8054 * config/ia64/ia64.c: Likewise.
8055 * config/mep/mep.c: Likewise.
8056 * config/mips/mips.c: Likewise.
8057 * config/rs6000/rs6000.c: Likewise.
8058 * config/s390/s390.c: Likewise.
8059 * config/sh/sh.c: Likewise.
8060 * config/sparc/sparc.c: Likewise.
8061 * config/spu/spu.c: Likewise.
8062 * config/stormy16/stormy16.c: Likewise.
8063 * config/tilegx/tilegx.c: Likewise.
8064 * config/tilepro/tilepro.c: Likewise.
8065 * config/xtensa/xtensa.c: Likewise.
8067 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8069 * tree.c (grow_tree_vec_stat): New function ...
8070 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8071 and macro front-end.
8073 2013-11-12 Marek Polacek <polacek@redhat.com>
8075 * final.c (update_alignments): Initialize label to NULL_RTX.
8077 2013-11-12 Jeff Law <law@redhat.com>
8079 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8080 (insert_trap_and_remove_trailing_statements): New argument OP which
8081 is the NULL pointer. Emit the trap after the load/store through
8082 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8083 when trivial to do so.
8084 (isolate_path): Corresponding changes.
8085 (gimple_ssa_isolate_erroneous_path): Likewise.
8087 2013-11-12 Teresa Johnson <tejohnson@google.com>
8088 Jan Hubicka <jh@suse.cz>
8090 * predict.c (drop_profile): New function.
8091 (handle_missing_profiles): Ditto.
8092 (counts_to_freqs): Don't overwrite estimated frequencies
8093 when function has no profile counts.
8094 * predict.h (handle_missing_profiles): Declare.
8095 * tree-inline.c (freqs_to_counts): New function.
8096 (copy_cfg_body): Invoke freqs_to_counts as needed.
8097 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8099 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8102 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8104 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8106 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8109 * config/i386/i386.c (ix86_option_override_internal): Check
8110 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8111 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8112 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8113 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8115 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8116 Clear m_COREI7_AVX and update comments.
8117 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8119 2013-11-12 Martin Jambor <mjambor@suse.cz>
8121 PR rtl-optimization/10474
8122 * ira.c (interesting_dest_for_shprep): New function.
8123 (split_live_ranges_for_shrink_wrap): Likewise.
8124 (find_moveable_pseudos): Move calculation of dominance info,
8125 df_analysios and the final anlyses to...
8126 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8128 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8130 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8131 Handle type conversion.
8133 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8134 Jan Hubicka <jh@suse.cz>
8136 * cgraph.c (dump_cgraph_node): Profile dump added.
8137 * cgraph.h (struct cgraph_node): New time profile variable added.
8138 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8139 * gcov-io.h (gcov_type): New profiler type introduced.
8140 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8141 (input_node): Time profiler is read from LTO stream.
8142 * predict.c (maybe_hot_count_p): Hot prediction changed.
8143 * profile.c (instrument_values): New case for time profiler added.
8144 (compute_value_histograms): Read of time profile.
8145 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8146 * tree-profile.c (init_ic_make_global_vars): Time profiler
8148 (gimple_init_edge_profiler): TP function instrumentation.
8149 (gimple_gen_time_profiler): New.
8150 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8152 (dump_histogram_value): TP type added to dumps.
8153 (visit_hist): More sensitive check that takes TP into account.
8154 (gimple_find_values_to_profile): TP instrumentation.
8155 * value-prof.h (hist_type): New histogram type added.
8156 (struct histogram_value_t): Pointer to struct function added.
8157 * libgcc/Makefile.in: New GCOV merge function for TP added.
8158 * libgcov.c: function_counter variable introduced.
8159 (_gcov_merge_time_profile): New.
8160 (_gcov_time_profiler): New.
8162 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8163 Jeff Law <law@redhat.com>
8165 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8166 ao_ref_init_from_ptr_and_size for builtins.
8168 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8169 H.J. Lu <hongjiu.lu@intel.com>
8172 * config/i386/x86-tune.def
8173 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8174 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8175 * config/i386/i386.h
8176 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8177 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8178 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8179 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8180 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8181 misaligned_prologue_used. Check that
8182 desired_aling <= epilogue_size_needed.
8184 2013-11-11 Cong Hou <congh@google.com>
8186 PR tree-optimization/59050
8187 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8189 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8192 * expmed.c (emit_store_flag): Fail for const-const comparison.
8194 2013-11-11 Tristan Gingold <gingold@adacore.com>
8195 Eric Botcazou <ebotcazou@adacore.com>
8197 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8198 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8199 * tree.def (CONSTRUCTOR): Likewise.
8200 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8201 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8202 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8204 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8206 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8209 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8211 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8214 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8216 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8218 2013-11-08 Jeff Law <law@redhat.com>
8220 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8221 threading paths first, then perform PHI node checks if applicable.
8223 2013-11-10 Karlson2k <k2k@narod.ru>
8224 Kai Tietz <ktietz@redhat.com>
8227 * configure.ac: Adding for exported symbols check
8228 and for rdynamic-check executable-extension.
8229 * configure: Regenerated.
8231 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8233 * mode-switching.c (optimize_mode_switching): Mark block as
8234 nontransparent, if last_mode at block exit is different from no_mode.
8236 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8238 * function.c (NAME__MAIN): Move to...
8239 * cfgexpand.c (NAME__MAIN): ...here.
8241 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8243 * target.def (can_use_doloop_p): New hook.
8244 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8245 * doc/tm.texi: Regenerate.
8246 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8247 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8248 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8249 * targhooks.h (can_use_doloop_if_innermost): Declare.
8250 * targhooks.c (can_use_doloop_if_innermost): New function.
8251 * target.h: Include double-int.h.
8252 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8253 Remove iteration count, maximum iteration count, loop depth and
8254 enter-at-top inputs from doloop_begin and doloop_end.
8255 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8257 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8258 (TARGET_CAN_USE_DOLOOP_P): Define.
8259 * config/arm/thumb2.md (doloop_end): Update for new interface.
8260 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8261 * config/bfin/bfin.md (doloop_end): Update for new interface.
8262 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8263 (TARGET_CAN_USE_DOLOOP_P): Define.
8264 * config/c6x/c6x.md (doloop_end): Update for new interface.
8265 * config/ia64/ia64.md (doloop_end): Update for new interface.
8266 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8267 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8269 * config/mep/mep.c (mep_emit_doloop): Likewise.
8270 (TARGET_CAN_USE_DOLOOP_P): Define.
8271 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8272 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8273 * config/s390/s390.md (doloop_end): Update for new interface.
8274 * config/sh/sh.md (doloop_end): Likewise.
8275 * config/spu/spu.md (doloop_end): Likewise.
8276 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8277 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8278 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8279 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8280 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8281 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8283 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8285 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8288 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8291 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8292 Joseph Myers <joseph@codesourcery.com>
8294 * ginclude/stdatomic.h: New file.
8295 * Makefile.in (USER_H): Add stdatomic.h.
8297 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8299 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8302 2013-11-08 Jeff Law <law@redhat.com>
8304 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8305 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8306 (ssa_redirect_edges, thread_block_1): Use it.
8307 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8308 (thread_through_all_blocks, register_jump_thread): Likewise.
8309 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8311 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8313 * config/arm/aarch-common.c
8314 (search_term): New typedef.
8315 (shift_rtx_costs): New array.
8316 (arm_rtx_shift_left_p): New.
8317 (arm_find_sub_rtx_with_search_term): Likewise.
8318 (arm_find_sub_rtx_with_code): Likewise.
8319 (arm_early_load_addr_dep): Add sanity checking.
8320 (arm_no_early_alu_shift_dep): Likewise.
8321 (arm_no_early_alu_shift_value_dep): Likewise.
8322 (arm_no_early_mul_dep): Likewise.
8323 (arm_no_early_store_addr_dep): Likewise.
8325 2013-11-08 Richard Biener <rguenther@suse.de>
8327 PR tree-optimization/59047
8328 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8330 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8332 * common.opt (fcheck-pointer-bounds): Move to ...
8333 * c-family/c.opt: ... here.
8334 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8335 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8336 * langhooks.h (lang_hooks): Remove chkp_supported field.
8337 * toplev.c (process_options): Remove chkp_supported check.
8339 2013-11-08 Richard Biener <rguenther@suse.de>
8341 PR tree-optimization/59038
8342 PR tree-optimization/58955
8343 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8344 previous change. Handle known dependences correctly.
8346 2013-11-08 Tom de Vries <tom@codesourcery.com>
8348 * config/rs6000/t-xilinx: Remove duplicate contents.
8350 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8351 Joseph Myers <joseph@codesourcery.com>
8353 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8354 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8355 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8356 (struct tree_base): Add atomic_flag field.
8357 * tree.h (TYPE_ATOMIC): New accessor macro.
8358 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8359 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8360 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8361 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8362 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8363 (find_atomic_core_type): New function.
8364 (build_qualified_type): Adjust alignment for qualified types.
8365 (build_atomic_base): New function
8366 (build_common_tree_nodes): Build atomicQI_type_node,
8367 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8369 * print-tree.c (print_node): Print atomic qualifier.
8370 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8371 * target.def (atomic_assign_expand_fenv): New hook.
8372 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8373 * doc/tm.texi: Regenerate.
8374 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8375 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8376 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8377 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8379 * config/i386/i386.c (enum ix86_builtins): Add
8380 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8381 IX86_BUILTIN_FNCLEX.
8382 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8383 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8384 (ix86_expand_builtin): Handle the new built-in functions.
8385 (ix86_atomic_assign_expand_fenv): New function.
8386 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8387 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8388 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8389 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8391 2013-11-07 Steve Ellcey <sellcey@mips.com>
8393 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8394 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8395 (MULTILIB_DIRNAMES): Add fp64 directory.
8396 (MULTILIB_EXCEPTIONS): Add new exclusions.
8398 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8400 * gimplify.c (gimple_regimplify_operands): Do not set
8402 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8403 (rewrite_close_phi_out_of_ssa): Same.
8404 (rewrite_phi_out_of_ssa): Same.
8405 (rewrite_degenerate_phi): Same.
8406 (handle_scalar_deps_crossing_scop_limits): Same.
8407 * tree-if-conv.c (predicate_scalar_phi): Same.
8408 * tree-parloops.c (create_loads_for_reductions): Same.
8409 (create_final_loads_for_reduction): Same.
8410 (create_loads_and_stores_for_name): Same.
8411 (transform_to_exit_first_loop): Same.
8412 (create_parallel_loop): Same.
8413 * tree-ssa-loop-im.c
8414 (move_computations_dom_walker::before_dom_children): Same.
8415 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8416 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8417 * tree-ssa-propagate.c (substitute_and_fold): Same.
8418 * tree-vect-loop.c (vect_finalize_reduction): Same.
8419 * tree-vect-stmts.c (vectorizable_call): Same.
8421 2013-11-07 Mike Stump <mikestump@comcast.net>
8423 * config/pdp11/pdp11.c: Include dbxout.h.
8424 * config/picochip/picochip.c: Likewise.
8426 2013-11-07 Cong Hou <congh@google.com>
8428 PR tree-optimization/56764
8429 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8430 Combine alias checks if it is possible to amortize the runtime
8431 overhead. Return the number of alias checks after merging.
8432 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8433 Use the function vect_create_cond_for_alias_checks () to check
8434 the number of alias checks.
8436 2013-11-07 Jeff Law <law@redhat.com>
8438 * varpool.c (ctor_for_folding): Fix typo in comment.
8440 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8442 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8443 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8445 2013-11-07 Jeff Law <law@redhat.com>
8447 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8449 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8450 No longer check if we have __builtin_trap, assume it's available.
8452 2013-11-07 Diego Novillo <dnovillo@google.com>
8454 * attribs.c (lookup_scoped_attribute_spec): Make static.
8455 (get_attribute_namespace): Likewise.
8456 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8457 (validate_arglist): Move earlier in the file. Make static.
8458 (expand_stack_restore): Move from stmt.c
8459 (expand_stack_save): Move from stmt.c
8460 (rewrite_call_expr_array): Move earlier in the file.
8461 (rewrite_call_expr_valist): Likewise.
8462 * cfgexpand.c: Include hard-reg-set.h before tree.h
8465 (expand_asm_loc): Move from stmt.c.
8466 (n_occurrences): Move from stmt.c.
8467 (check_operand_nalternatives): Move from stmt.c.
8468 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8469 (expand_asm_operands): Move from stmt.c
8470 (expand_asm_stmt): Move from stmt.c
8471 (expand_computed_goto): Move from stmt.c
8472 (expand_goto): Move from stmt.c
8473 (expand_null_return_1): Move from stmt.c
8474 (expand_null_return): Move from stmt.c
8475 (expand_value_return): Move from stmt.c
8476 (expand_return): Move from stmt.c
8477 (expand_main_function): Move from function.c
8478 (stack_protect_prologue): Move from function.c
8479 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8480 (build_function_decl_skip_args): Move from tree.c.
8481 * explow.c (tree_expr_size): Move from tree.c.
8482 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8483 (fields_length): Move from tree.c.
8484 * fold-const.c (size_low_cst): Move from tree.c.
8485 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8486 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8487 (fold_build3_initializer_loc): Remove.
8488 (tree_invalid_nonnegative_warnv_p): Make static.
8489 * function.c (expand_main_function): Move to cfgexpand.c.
8490 (stack_protect_prologue): Move to cfgexpand.c.
8491 (set_insn_locations): Move earlier in the file.
8492 * gimple-fold.c: Include langhooks.h.
8493 (truth_type_for): Move from tree.c.
8494 * print-tree.c (print_vec_tree): Remove.
8495 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8496 (expand_goto): Move to cfgexpand.c.
8497 (n_occurrences): Move to cfgexpand.c.
8498 (expand_asm_loc): Move to cfgexpand.c
8499 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8500 (expand_asm_operands): Move to cfgexpand.c.
8501 (expand_asm_stmt): Move to cfgexpand.c.
8502 (check_operand_nalternatives): Move to cfgexpand.c
8503 (expand_null_return): Move to cfgexpand.c.
8504 (expand_value_return): Move to cfgexpand.c.
8505 (expand_null_return_1): Move to cfgexpand.c.
8506 (expand_return): Move to cfgexpand.c.
8507 (expand_stack_save): Move to builtins.c.
8508 (expand_stack_restore): Move to builtins.c
8509 * symtab.c: Include output.h.
8510 (decl_assembler_name_hash): Move from tree.c.
8511 (decl_assembler_name_equal): Move from tree.c.
8512 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8513 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8514 (range_in_array_bounds_p): Move from tree.c.
8515 * tree-object-size.c (fini_object_sizes): Make static.
8516 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8517 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8518 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8519 (tree_expr_size): Move to explow.c.
8520 (decl_assembler_name_hash): Move to symtab.c.
8521 (real_twop): Remove.
8522 (tree_expr_size): Move to explow.c.
8523 (stabilize_reference_1): Move earlier in the file. Make static.
8524 (omp_remove_redundant_declare_simd_attrs): Remove.
8525 (simple_cst_list_equal): Move earlier in the file. Make static.
8526 (size_low_cst): Move to fold-const.c.
8527 (build_type_no_quals): Remove.
8528 (build_function_type_skip_args): Move to cgraphclones.c.
8529 (build_function_decl_skip_args): Move to cgraphclones.c.
8530 (in_array_bounds_p): Move to tree-eh.c.
8531 (range_in_array_bounds_p): Move to tree-eh.c.
8532 (truth_type_for): Move to gimple-fold.c.
8533 (list_equal_p): Remove.
8534 * tree.h (decl_assembler_name_equal): Remove.
8535 (decl_assembler_name_hash): Remove.
8536 (truth_type_for): Remove.
8537 (build_type_no_quals): Remove.
8538 (build_function_decl_skip_args): Remove.
8539 (in_array_bounds_p): Remove.
8540 (range_in_array_bounds_p): Remove.
8541 (size_low_cst): Remove.
8542 (omp_remove_redundant_declare_simd_attrs): Remove.
8543 (tree_expr_size): Remove.
8544 (fields_length): Remove.
8545 (stabilize_reference_1): Remove.
8546 (expand_goto): Remove.
8547 (expand_stack_save): Remove.
8548 (expand_stack_restore): Remove.
8549 (expand_return): Remove.
8550 (fold_build3_initializer_loc): Remove.
8551 (tree_expr_nonzero_p): Remove.
8552 (tree_invalid_nonnegative_warnv_p): Remove.
8553 (tree_expr_nonzero_warnv_p): Remove.
8554 (fold_builtin_snprintf_chk): Remove.
8555 (validate_arglist): Remove.
8556 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8557 (simple_cst_list_equal): Remove.
8558 (real_twop): Remove.
8559 (expand_main_function): Remove.
8560 (stack_protect_prologue): Remove.
8561 (print_vec_tree): Remove.
8562 (lookup_scoped_attribute_spec): Remove.
8563 (get_attribute_namespace): Remove.
8564 (expand_computed_goto): Remove.
8565 (expand_asm_stmt): Remove.
8566 (list_equal_p): Remove.
8567 (ssa_name_nonnegative_p): Remove.
8568 (fini_object_sizes): Remove.
8569 (addr_expr_of_non_mem_decl_p): Remove.
8570 (is_tm_safe_or_pure): Move to trans-mem.c.
8571 (more_const_call_expr_args_p): Remove.
8572 (save_vtable_map_decl): Remove.
8574 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8576 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8577 linker plugins, too.
8579 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8580 link to libgomp and its dependencies.
8581 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8582 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8583 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8584 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8586 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8588 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8589 (determine_value_range): Add loop argument. Use get_range_info to
8591 (bound_difference): Adjust caller.
8593 2013-11-07 Richard Biener <rguenther@suse.de>
8594 Jakub Jelinek <jakub@redhat.com>
8596 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8597 latches from header PHI arguments from the latch edge.
8599 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8602 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8604 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8606 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8607 misaligned_prologue_used when it has been set.
8609 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8610 Jakub Jelinek <jakub@redhat.com>
8613 * asan.c (get_mem_refs_of_builtin_call): Allow
8614 integer literals as addresses in instrumented builtins.
8616 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8618 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8619 Explain why plus_constant is not used.
8621 2013-11-07 Richard Biener <rguenther@suse.de>
8623 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8624 (canonicalize_value): ... this. Also handle stripping of
8626 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8627 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8628 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8630 2013-11-07 Richard Biener <rguenther@suse.de>
8632 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8634 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8637 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8638 with stack_pointer_rtx.
8640 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8642 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8643 using operand_equal_p.
8645 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8647 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8648 * tree-affine.c (get_inner_reference_aff): Return base.
8649 * tree-affine.h (get_inner_reference_aff): Change prototype.
8651 2013-11-06 Tobias Burnus <burnus@net-b.de>
8653 * doc/invoke.texi (Wdate-time): Fix typo.
8655 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8657 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8658 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8659 fp_arith_reg_operand instead of arith_reg_operand.
8661 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8663 * config/sh/sh.md (adddi3): Remove empty constraints.
8664 Remove can_create_pseudo_p and arith_reg_operand check.
8665 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8666 Split before reload.
8668 2013-11-06 Jeff Law <law@redhat.com>
8669 Tom Tromey <tromey@redhat.com>
8671 * gdbinit.in: Disable strict type checking.
8673 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8675 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8676 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8677 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8678 (rest_of_handle_live_range_shrinkage): Ditto
8679 (class pass_live_range_shrinkage): Ditto.
8680 (pass_data_live_range_shrinkage): Ditto.
8681 (make_pass_live_range_shrinkage): Ditto.
8682 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8683 (finish_live_range_shrinkage): Ditto.
8684 * sched-deps.c (create_insn_reg_set): Make void return value.
8685 * passes.def: Add pass_live_range_shrinkage.
8686 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8687 * haifa-sched.c (live_range_shrinkage_p): New.
8688 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8690 (rank_for_schedule): Add code for pressure relief through live
8692 (schedule_insn): Print more debug info.
8693 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8694 through live range shrinkage.
8695 * doc/invoke.texi (-flive-range-shrinkage): New.
8696 * common.opt (flive-range-shrinkage): New.
8698 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8701 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8702 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8703 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8704 RTXes that return in AVX256 register.
8706 2013-11-06 Richard Biener <rguenther@suse.de>
8708 PR tree-optimization/58653
8709 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8710 (prepare_initializers_chain): Adjust.
8712 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8714 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8715 (gimple_in_transaction): Use bb_in_transaction.
8716 * basic-block.h (bb_in_transaction): Relocate here and rename.
8717 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8719 2013-11-06 Richard Biener <rguenther@suse.de>
8721 * tree.c (drop_tree_overflow): New function.
8722 * tree.h (drop_tree_overflow): Declare.
8723 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8724 * tree-vrp.c (range_int_cst_singleton_p): Use
8725 is_overflow_infinity instead of testing TREE_OVERFLOW.
8726 (extract_range_from_assert): Likewise.
8727 (zero_nonzero_bits_from_vr): Likewise.
8728 (extract_range_basic): Likewise.
8729 (register_new_assert_for): Use drop_tree_overflow.
8730 (vrp_visit_phi_node): Likewise.
8732 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8734 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8735 checking for leaf functions without dynamic stack allocation.
8736 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8737 (ia64_expand_prologue): Likewise.
8738 * config/mips/mips.c (mips_expand_prologue): Likewise.
8739 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8740 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8741 (sparc_flat_expand_prologue): Likewise.
8743 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8745 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8746 (__ST3_LANE_FUNC): Likewise.
8747 (__ST4_LANE_FUNC): Likewise.
8749 2013-11-06 Nick Clifton <nickc@redhat.com>
8751 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8752 name returned by msp430_mcu_name.
8753 (LIB_SPEC): If a -T option has not been specified then set a
8754 default, mcu-specific, linker script.
8755 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8756 * config/msp430/msp430.c (msp430x_names): Likewise.
8757 Alpha sort the names for ease of comparison.
8758 (msp430_mcu_name): New function: Returns a string suitable for
8759 use as a C preprocessor symbol based upon the name of the MCU
8761 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8763 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8765 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8766 unless it is the last part of a spec substring.
8767 * doc/invoke.texi (Spec Files): Document space insertion
8770 2013-11-06 Christian Bruel <christian.bruel@st.com>
8772 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8773 Factorize probabilities, Use adjust_address instead of
8774 adjust_automodify_address when possible. Enable for optimize.
8775 (sh_expand_strlen): New function.
8776 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8777 * config/sh/sh.md (strlensi): New pattern.
8778 (UNSPEC_BUILTIN_STRLEN): Define.
8780 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8783 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8784 (expand_assignment): If *bitpos is negative, set *offset
8785 and adjust *bitpos, so that it is not negative.
8787 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8789 * config/i386/bdver3.md : Added two additional decoder units
8790 to support issue rate of 4 and remodeled vector unit.
8791 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8792 architectures is set to 4.
8793 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8794 lookahead is set to 4 for BD architectures.
8796 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8798 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8799 Remove restriction against use of VSX instructions when generating
8800 code for little endian mode.
8802 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8804 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8805 for both big and little endian.
8806 (mulv8hi3): Swap input operands for merge high and merge low
8807 instructions for little endian.
8809 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8811 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8812 define_insn to define_expand that uses even patterns for big
8813 endian and odd patterns for little endian.
8814 (vec_widen_smult_even_v16qi): Likewise.
8815 (vec_widen_umult_even_v8hi): Likewise.
8816 (vec_widen_smult_even_v8hi): Likewise.
8817 (vec_widen_umult_odd_v16qi): Likewise.
8818 (vec_widen_smult_odd_v16qi): Likewise.
8819 (vec_widen_umult_odd_v8hi): Likewise.
8820 (vec_widen_smult_odd_v8hi): Likewise.
8821 (altivec_vmuleub): New define_insn.
8822 (altivec_vmuloub): Likewise.
8823 (altivec_vmulesb): Likewise.
8824 (altivec_vmulosb): Likewise.
8825 (altivec_vmuleuh): Likewise.
8826 (altivec_vmulouh): Likewise.
8827 (altivec_vmulesh): Likewise.
8828 (altivec_vmulosh): Likewise.
8830 2013-11-05 Mike Stump <mikestump@comcast.net>
8832 * Makefile.in (mostlyclean): Remove c-family objects.
8834 2013-11-05 Ian Lance Taylor <iant@google.com>
8836 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8837 If possible, add .cfi directives to record change to bx.
8838 * config/i386/i386.c (ix86_emit_cfi): New function.
8839 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8841 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8843 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8844 immediately after a label for a tablejump pattern.
8846 * config/arm/arm.c (is_jump_table): Remove.
8847 (create_fix_barrier): Use tablejump_p instead.
8848 (arm_reorg): Likewise.
8849 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8850 (thumb2_output_casesi): Likewise.
8851 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8852 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8853 casesi_shift_media, casesi_load_media): Likewise.
8854 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
8855 * config/microblaze/microblaze.md: Likewise.
8857 2013-11-05 Tobias Burnus <burnus@net-b.de>
8859 * doc/invoke.texi (-Wdate-time): Document.
8861 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
8863 * double-int.c (lshift_double, rshift_double): Remove
8864 SHIFT_COUNT_TRUNCATED handling.
8866 2013-11-05 Jeff Law <law@redhat.com>
8868 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
8869 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
8870 * gimple-ssa-isolate-paths.c: New file.
8871 * gimple.c (check_loadstore): New function.
8872 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
8873 Verify OP is in the argument list and the argument corresponding
8874 to OP is a pointer type. Use operand_equal_p rather than
8875 pointer equality when testing if OP is on the nonnull list.
8876 Use check_loadstore rather than count_ptr_derefs. Handle
8877 GIMPLE_RETURN statements.
8878 * tree-vrp.c (infer_nonnull_range): Remove.
8879 * gimple.h (infer_nonnull_range): Declare.
8880 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
8881 * passes.def: Add pass_isolate_erroneous_paths.
8882 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
8883 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
8884 * tree-ssa.c (struct count_ptr_d): Remove.
8885 (count_ptr_derefs, count_uses_and_derefs): Remove.
8886 * tree-ssa.h (count_uses_and_derefs): Remove.
8888 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8890 PR rtl-optimization/58997
8891 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
8892 get_iv_value to be in iv->mode rather than iv->extend_mode.
8893 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
8894 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
8895 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
8898 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8900 * gimple.h: Move some prototypes to gimple-expr.h and add to include
8902 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
8903 Move to gimple-expr.h.
8904 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
8905 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
8906 is_gimple_id, virtual_operand_p, is_gimple_addressable,
8907 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
8909 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
8910 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
8911 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
8912 is_gimple_address, is_gimple_invariant_address,
8913 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8914 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
8915 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
8916 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
8917 gimple_decl_printable_name, useless_type_conversion_p,
8918 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
8920 * gimple-expr.c: New File.
8921 (useless_type_conversion_p, gimple_set_body, gimple_body,
8922 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
8923 gimple_can_coalesce_p, extract_ops_from_tree_1,
8924 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
8925 is_gimple_address, is_gimple_invariant_address,
8926 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8927 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
8928 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
8929 is_gimple_mem_ref_addr): Relocate here.
8930 * Makefile.in (OBJS): Add gimple-expr.o.
8932 2013-11-05 David Malcolm <dmalcolm@redhat.com>
8934 * gengtype-parse.c (struct_field_seq): Support empty structs.
8936 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8938 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
8940 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8942 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
8944 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
8946 (LONG_DOUBLE_TYPE_SIZE): New define.
8947 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
8949 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
8952 * doc/extend.texi [visibility ("visibility_type")]: Add example
8953 about visibility attribute on namespace declaration.
8955 2013-11-05 Richard Biener <rguenther@suse.de>
8958 * passes.def (all_passes): Start with pass_fixup_cfg again.
8960 2013-11-05 Richard Biener <rguenther@suse.de>
8962 PR tree-optimization/58955
8963 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
8966 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8968 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
8970 (vec_pack_ufix_trunc_v2df): Likewise.
8972 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
8975 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
8976 pattern, instead of word_mode.
8978 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
8980 (set_storage_via_setmem): Likewise.
8982 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8984 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
8985 gimple.h and the rest of the condition in eliminate_build.
8986 (eliminate_build): Call new routine.
8987 * gimple.h (phi_ssa_name_p): Delete.
8989 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
8991 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
8992 case of no prefix and reserving zero slots, because when that's the
8993 case we'll never get here.
8994 * vec.h (va_heap::reserve): Don't try and handle
8995 vec_prefix::calculate_allocation returning zero because that should
8998 2013-11-05 Richard Biener <rguenther@suse.de>
9001 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9002 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9003 process trailing array detection before diving into the
9004 view-converted object (and possibly apply some extra offset).
9006 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9008 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9010 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9012 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9014 PR tree-optimization/58958
9015 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9016 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9018 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9020 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9021 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9023 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9025 PR tree-optimization/58984
9026 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9027 set *SIZE_P if non-NULL on success.
9028 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9030 (ipcp_transform_function): Likewise. Punt if size of access
9031 is different from TYPE_SIZE on v->value's type.
9033 2013-11-05 Tobias Burnus <burnus@net-b.de>
9035 * doc/invoke.texi (-fopenmp-simd): Document new option.
9036 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9037 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9038 * tree.c (attribute_value_equal): Ditto.
9040 2013-11-04 Wei Mi <wmi@google.com>
9042 * sched-rgn.c (add_branch_dependences): Keep insns in
9043 a SCHED_GROUP at the end of BB to remain their location.
9045 2013-11-04 Wei Mi <wmi@google.com>
9047 * config/i386/i386.c (memory_address_length): Extract a part
9048 of code to rip_relative_addr_p.
9049 (rip_relative_addr_p): New Function.
9050 (ix86_macro_fusion_p): Ditto.
9051 (ix86_macro_fusion_pair_p): Ditto.
9052 * config/i386/i386.h: Add new tune features about macro-fusion.
9053 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9054 * doc/tm.texi: Generated.
9055 * doc/tm.texi.in: Ditto.
9056 * haifa-sched.c (try_group_insn): New Function.
9057 (group_insns_for_macro_fusion): Ditto.
9058 (sched_init): Call group_insns_for_macro_fusion.
9059 * target.def: Add two hooks: macro_fusion_p and
9060 macro_fusion_pair_p.
9062 2013-11-04 Kostya Serebryany <kcc@google.com>
9064 Update to match the changed asan API.
9065 * asan.c (asan_function_start): New function.
9066 (asan_emit_stack_protection): Update the string stored in the
9067 stack red zone to match new API. Store the PC of the current
9068 function in the red zone.
9069 (asan_global_struct): Update the __asan_global definition to match
9071 (asan_add_global): Ditto.
9072 * asan.h (asan_function_start): New prototype.
9073 * final.c (final_start_function): Call asan_function_start.
9074 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9077 2013-11-04 Wei Mi <wmi@google.com>
9079 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9080 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9081 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9082 (ix86_issue_rate): Ditto.
9083 (ix86_adjust_cost): Ditto.
9084 (ia32_multipass_dfa_lookahead): Ditto.
9085 (ix86_sched_init_global): Ditto.
9086 (get_builtin_code_for_version): Ditto.
9087 * config/i386/i386.h (enum target_cpu_default): Ditto.
9088 (enum processor_type): Ditto.
9089 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9091 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9093 PR rtl-optimization/58967
9094 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9095 !lra_in_progress for mode sizes bigger word.
9097 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9099 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9100 arguments to merge instruction for little endian.
9101 (vec_widen_umult_lo_v16qi): Likewise.
9102 (vec_widen_smult_hi_v16qi): Likewise.
9103 (vec_widen_smult_lo_v16qi): Likewise.
9104 (vec_widen_umult_hi_v8hi): Likewise.
9105 (vec_widen_umult_lo_v8hi): Likewise.
9106 (vec_widen_smult_hi_v8hi): Likewise.
9107 (vec_widen_smult_lo_v8hi): Likewise.
9109 2013-11-04 Ian Lance Taylor <iant@google.com>
9111 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9112 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9113 builtins that take pointers.
9114 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9115 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9116 (run_gcc): Pass -fnon-call-exceptions.
9118 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9120 * optabs.c (expand_vec_perm): Revert one incorrect line from
9123 PR tree-optimization/58978
9124 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9125 use_stmt by single_imm_use directly. Only call single_imm_use
9128 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9130 PR rtl-optimization/58968
9131 * lra-spills.c (return_regno_p): New function.
9132 (lra_final_code_change): Use it.
9134 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9136 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9137 * target.def (float_exceptions_rounding_supported_p): New hook.
9138 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9140 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9141 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9143 * doc/tm.texi: Regenerate.
9144 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9145 * config/rs6000/rs6000-linux.c: New file.
9146 * config/rs6000/rs6000-protos.h
9147 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9148 * config/rs6000/linux.h
9149 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9150 * config/rs6000/linux64.h
9151 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9152 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9153 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9155 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9157 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9158 Replace the define_insn_and_split with a define_insn and two
9159 define_splits, with the split after reload re-permuting the source
9160 register to its original value.
9161 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9162 (*vsx_le_perm_store_v8hi): Likewise.
9163 (*vsx_le_perm_store_v16qi): Likewise.
9165 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9167 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9170 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9172 PR tree-optimization/58946
9173 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9174 bbs with bbinfo[idx].op != NULL before all blocks with
9175 bbinfo[idx].op == NULL.
9177 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9179 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9180 (avr_dump_double_int_hex): Likewise.
9181 (avr_log_vadump): Remove %D and %X handling.
9182 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9183 (avr_map_op_t): Change map from double_int to unsigned int.
9184 (avr_map_op): Update accordingly.
9185 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9186 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9187 unsigned ints rather than double_ints.
9189 2013-11-03 Marek Polacek <polacek@redhat.com>
9191 Implement -fsanitize=vla-bound.
9192 * opts.c (common_handle_option): Handle vla-bound.
9193 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9194 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9195 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9197 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9199 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9202 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9204 * config/i386/constraints.md (Ts, Tv): New address constrains.
9205 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9206 constraint for address_no_seg_operand.
9207 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9208 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9209 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9210 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9211 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9212 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9213 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9214 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9215 constraint for vsib_address_operand.
9217 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9219 * gcse.c (pre_delete): Remove references to regmove from comments.
9220 * recog.c: (validate_replace_rtx_1): Likewise.
9221 * config/rl78/rl78.c: Likewise.
9222 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9223 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9224 * common/config/mmix/mmix-common.c: Likewise.
9226 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9228 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9229 * gimplify.c (gimplify_compound_lval): Likewise.
9230 * graphite-clast-to-gimple.c (gloog): Likewise.
9231 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9232 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9233 (limit_scop); Likewise.
9234 (build_scops): Likewise.
9235 (dot_scop): Likewise.
9236 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9237 (build_scop_drs): Likewise.
9238 (insert_stmts): Likewise.
9239 (insert_out_of_ssa_copy): Likewise.
9240 (remove_phi): Likewise.
9241 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9242 * hw-doloop.c (discover_loop): Likewise.
9243 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9244 * tree-dfa.c (dump_enumerated_decls): Likewise.
9245 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9246 * tree-inline.c (tree_function_versioning): Likewise.
9247 * tree-loop-distribution.c (build_rdg): Likewise.
9248 (rdg_flag_vertex_and_dependent): Likewise.
9249 (distribute_loop): Likewise.
9250 * tree-parloops.c (loop_parallel_p): Likewise.
9251 (eliminate_local_variables): Likewise.
9252 (separate_decls_in_region): Likewise.
9253 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9254 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9255 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9256 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9257 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9258 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9259 (vectorizable_condition): Likewise.
9261 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9263 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9264 * configure: Regenerate.
9265 * config/i386/i386.md (*movdi_internal): Change
9266 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9267 (*movdf_internal): Ditto.
9268 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9269 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9270 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9272 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9274 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9277 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9279 Automated part of renaming of symtab_node_base to symtab_node.
9281 Patch autogenerated by rename_symtab.py from
9282 https://github.com/davidmalcolm/gcc-refactoring-scripts
9283 revision 58bb219cc090b2f4516a9297d868c245495ee622
9284 with ChangeLog entry fixed up by hand.
9286 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9288 (cgraph_node_for_asm): Likewise.
9289 * cgraph.h (symtab_node_base): Likewise.
9290 (cgraph_node): Likewise.
9291 (varpool_node): Likewise.
9292 (is_a_helper <cgraph_node>::test): Likewise.
9293 (is_a_helper <varpool_node>::test): Likewise.
9294 (symtab_nodes): Likewise.
9295 (symtab_register_node): Likewise.
9296 (symtab_unregister_node): Likewise.
9297 (symtab_remove_node): Likewise.
9298 (symtab_get_node): Likewise.
9299 (symtab_node_for_asm): Likewise.
9300 (symtab_node_asm_name): Likewise.
9301 (symtab_node_name): Likewise.
9302 (symtab_insert_node_to_hashtable): Likewise.
9303 (symtab_add_to_same_comdat_group): Likewise.
9304 (symtab_dissolve_same_comdat_group_list): Likewise.
9305 (dump_symtab_node): Likewise.
9306 (debug_symtab_node): Likewise.
9307 (dump_symtab_base): Likewise.
9308 (verify_symtab_node): Likewise.
9309 (verify_symtab_base): Likewise.
9310 (symtab_used_from_object_file_p): Likewise.
9311 (symtab_alias_ultimate_target): Likewise.
9312 (symtab_resolve_alias): Likewise.
9313 (fixup_same_cpp_alias_visibility): Likewise.
9314 (symtab_for_node_and_aliases): Likewise.
9315 (symtab_nonoverwritable_alias): Likewise.
9316 (availability symtab_node_availability): Likewise.
9317 (symtab_semantically_equivalent_p): Likewise.
9318 (fixup_same_cpp_alias_visibility): Likewise.
9319 (symtab_prevail_in_asm_name_hash): Likewise.
9321 (varpool): Likewise.
9322 (varpool_first_variable): Likewise.
9323 (varpool_next_variable): Likewise.
9324 (varpool_first_static_initializer): Likewise.
9325 (varpool_next_static_initializer): Likewise.
9326 (varpool_first_defined_variable): Likewise.
9327 (varpool_next_defined_variable): Likewise.
9328 (cgraph_first_defined_function): Likewise.
9329 (cgraph_next_defined_function): Likewise.
9330 (cgraph_first_function): Likewise.
9331 (cgraph_next_function): Likewise.
9332 (cgraph_first_function_with_gimple_body): Likewise.
9333 (cgraph_next_function_with_gimple_body): Likewise.
9334 (symtab_alias_target): Likewise.
9335 (symtab_real_symbol_p): Likewise.
9336 (symtab_can_be_discarded): Likewise.
9337 * cgraphbuild.c (mark_address): Likewise.
9338 (mark_load): Likewise.
9339 (mark_store): Likewise.
9340 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9342 (enqueue_node): Likewise.
9343 (referred_to_p): Likewise.
9344 (cgraph_process_same_body_aliases): Likewise.
9345 (analyze_functions): Likewise.
9346 (handle_alias_pairs): Likewise.
9347 (output_weakrefs): Likewise.
9348 (compile): Likewise.
9349 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9350 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9351 * ipa-prop.c (remove_described_reference): Likewise.
9352 (try_decrement_rdesc_refcount): Likewise.
9353 (ipa_edge_duplication_hook): Likewise.
9354 * ipa-ref.c (ipa_record_reference): Likewise.
9355 (ipa_maybe_record_reference): Likewise.
9356 (ipa_clone_ref): Likewise.
9357 (ipa_clone_references): Likewise.
9358 (ipa_clone_referring): Likewise.
9359 (ipa_find_reference): Likewise.
9360 (ipa_remove_stmt_references): Likewise.
9361 (ipa_clear_stmts_in_references): Likewise.
9362 * ipa-ref.h (symtab_node_base): Likewise.
9363 (ipa_ref): Likewise.
9364 (ipa_record_reference): Likewise.
9365 (ipa_maybe_record_reference): Likewise.
9366 (ipa_clone_references): Likewise.
9367 (ipa_clone_referring): Likewise.
9368 (ipa_clone_ref): Likewise.
9369 (ipa_find_reference): Likewise.
9370 (ipa_remove_stmt_references): Likewise.
9371 (ipa_clear_stmts_in_references): Likewise.
9372 * ipa-reference.c (ipa_reference_write_optimization_summary):
9374 * ipa.c (enqueue_node): Likewise.
9375 (process_references): Likewise.
9376 (walk_polymorphic_call_targets): Likewise.
9377 (symtab_remove_unreachable_nodes): Likewise.
9378 (address_taken_from_non_vtable_p): Likewise.
9379 (comdat_can_be_unshared_p_1): Likewise.
9380 (comdat_can_be_unshared_p): Likewise.
9381 (can_replace_by_local_alias): Likewise.
9382 (function_and_variable_visibility): Likewise.
9383 * is-a.h: Likewise (within example in comment).
9384 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9385 (lto_symtab_encoder_encode): Likewise.
9386 (lto_symtab_encoder_delete_node): Likewise.
9387 (lto_symtab_encoder_in_partition_p): Likewise.
9388 (lto_set_symtab_encoder_in_partition): Likewise.
9389 (output_refs): Likewise.
9390 (compute_ltrans_boundary): Likewise.
9391 (output_symtab): Likewise.
9392 (input_node): Likewise.
9393 (input_ref): Likewise.
9394 (input_edge): Likewise.
9395 (input_cgraph_1): Likewise.
9396 (input_refs): Likewise.
9397 (output_cgraph_opt_summary): Likewise.
9398 (input_node_opt_summary): Likewise.
9399 (input_cgraph_opt_section): Likewise.
9400 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9402 * lto-streamer-out.c (lto_output): Likewise.
9403 (output_symbol_p): Likewise.
9404 (produce_symtab): Likewise.
9405 * lto-streamer.h (lto_encoder_entry): Likewise.
9406 (lto_free_function_in_decl_state_for_node): Likewise.
9407 (lto_symtab_encoder_encode): Likewise.
9408 (lto_symtab_encoder_delete_node): Likewise.
9409 (lto_symtab_encoder_in_partition_p): Likewise.
9410 (lto_set_symtab_encoder_in_partition): Likewise.
9411 (lto_symtab_encoder_lookup): Likewise.
9412 (lsei_node): Likewise.
9413 (lto_symtab_encoder_deref): Likewise.
9414 * symtab.c (symtab_hash): Likewise.
9415 (assembler_name_hash): Likewise.
9416 (symtab_nodes): Likewise.
9417 (hash_node): Likewise.
9418 (eq_node): Likewise.
9419 (hash_node_by_assembler_name): Likewise.
9420 (eq_assembler_name): Likewise.
9421 (insert_to_assembler_name_hash): Likewise.
9422 (unlink_from_assembler_name_hash): Likewise.
9423 (symtab_prevail_in_asm_name_hash): Likewise.
9424 (symtab_register_node): Likewise.
9425 (symtab_insert_node_to_hashtable): Likewise.
9426 (symtab_unregister_node): Likewise.
9427 (symtab_get_node): Likewise.
9428 (symtab_remove_node): Likewise.
9429 (symtab_initialize_asm_name_hash): Likewise.
9430 (symtab_node_for_asm): Likewise.
9431 (symtab_add_to_same_comdat_group): Likewise.
9432 (symtab_dissolve_same_comdat_group_list): Likewise.
9433 (symtab_node_asm_name): Likewise.
9434 (symtab_node_name): Likewise.
9435 (dump_symtab_base): Likewise.
9436 (dump_symtab_node): Likewise.
9437 (dump_symtab): Likewise.
9438 (debug_symtab_node): Likewise.
9439 (verify_symtab_base): Likewise.
9440 (verify_symtab_node): Likewise.
9441 (verify_symtab): Likewise.
9442 (symtab_used_from_object_file_p): Likewise.
9443 (symtab_node_availability): Likewise.
9444 (symtab_alias_ultimate_target): Likewise.
9445 (fixup_same_cpp_alias_visibility): Likewise.
9446 (symtab_resolve_alias): Likewise.
9447 (symtab_for_node_and_aliases): Likewise.
9448 (symtab_for_node_and_aliases): Likewise.
9449 (symtab_nonoverwritable_alias_1): Likewise.
9450 (symtab_nonoverwritable_alias): Likewise.
9451 (symtab_semantically_equivalent_p): Likewise.
9452 * value-prof.c (init_node_map): Likewise.
9453 * varasm.c (find_decl): Likewise.
9454 * varpool.c (varpool_node_for_asm): Likewise.
9455 (varpool_remove_unreferenced_decls): Likewise.
9457 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9459 Manual part of renaming of symtab_node_base to symtab_node.
9461 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9462 clashes with the preferred name for the base class.
9463 (const_symtab_node): Remove redundant typedef.
9465 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9467 * optabs.c (expand_vec_perm): Avoid vector mode punning
9468 SUBREGs in SET_DEST.
9469 * expmed.c (store_bit_field_1): Likewise.
9470 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9471 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9472 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9473 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9474 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9475 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9476 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9477 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9478 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9479 expand_vec_perm_vpshufb2_vpermq,
9480 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9481 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9482 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9483 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9486 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9488 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9489 Use gcc_unreachable for unhandled modes. Do not check results of
9490 expand_simple_binop. If not expanded to target, move the result.
9492 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9493 Shiva Chen <shiva0217@gmail.com>
9495 * config.gcc (nds32*-*-*): Add nds32 target.
9496 * config/nds32/nds32.c: New file.
9497 * config/nds32/nds32.h: New file.
9498 * config/nds32/nds32.md: New file.
9499 * config/nds32/constants.md: New file.
9500 * config/nds32/constraints.md: New file.
9501 * config/nds32/iterators.md: New file.
9502 * config/nds32/nds32-doubleword.md: New file.
9503 * config/nds32/nds32-intrinsic.md: New file.
9504 * config/nds32/nds32_intrinsic.h: New file.
9505 * config/nds32/nds32-modes.def: New file.
9506 * config/nds32/nds32-multiple.md: New file.
9507 * config/nds32/nds32.opt: New file.
9508 * config/nds32/nds32-opts.h: New file.
9509 * config/nds32/nds32-protos.h: New file.
9510 * config/nds32/nds32-peephole2.md: New file.
9511 * config/nds32/pipelines.md: New file.
9512 * config/nds32/predicates.md: New file.
9513 * config/nds32/t-mlibs: New file.
9514 * common/config/nds32: New directory and files.
9516 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9517 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9518 * doc/install.texi (Cross-Compiler-Specific Options): Document
9519 --with-nds32-lib for nds32 target.
9520 * doc/extend.texi (Function Attributes, Target Builtins): Document
9521 nds32 specific attributes.
9523 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9525 * lra-constraints (process_alt_operands): Use the result
9526 elimination register for operand when matching constraints.
9528 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9530 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9531 (remove_range_assertions): Call it.
9533 * tree.c (tree_ctz): New function.
9534 * tree.h (tree_ctz): New prototype.
9535 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9536 first argument from tree to const_tree.
9537 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9538 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9539 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9541 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9542 * tree-vect-loop.c (vect_analyze_loop_operations,
9543 vect_transform_loop): Don't force scalar loop for bound just because
9544 number of iterations is unknown, only do it if it is not known to be
9545 a multiple of vectorization_factor.
9546 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9548 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9549 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9550 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9551 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9552 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9553 a default def isn't partially constant.
9554 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9555 is known to be partially zero.
9556 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9557 to see if a default def isn't partially constant.
9558 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9559 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9561 (set_nonzero_bits, get_nonzero_bits): New functions.
9563 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9564 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9565 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9566 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9567 uses but in the condition and ASSERT_EXPR and the other successor of
9568 the predecessor bb is __builtin_unreachable (), set_range_info of the
9569 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9571 2013-10-31 Martin Jambor <mjambor@suse.cz>
9573 PR rtl-optimization/58934
9575 2013-10-30 Martin Jambor <mjambor@suse.cz>
9576 PR rtl-optimization/10474
9577 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9579 (interesting_dest_for_shprep): New function.
9580 (split_live_ranges_for_shrink_wrap): Likewise.
9581 (ira): Calculate dominance info and df analysis. Call
9582 split_live_ranges_for_shrink_wrap.
9584 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9585 Yury Gribov <y.gribov@samsung.com>
9588 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9589 shadow pointer to avoid clobbering the main one.
9591 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9593 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9595 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9598 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9599 it for calling update_costs_from_allocno.
9600 (assign_hard_reg): Call restore_costs_from_copies only for
9601 !retry_p. Pass new argument to update_costs_from_copies.
9602 (color_pass): Pass new argument to update_costs_from_copies.
9603 (ira_mark_allocation_change): Ditto.
9605 2013-10-30 Sharad Singhai <singhai@google.com>
9608 * opts.c (common_handle_option): Remove deprecated option
9609 -ftree-vectorizer-verbose.
9610 * doc/invoke.texi (Debugging Options): Ditto.
9611 * opts-global.c (handle_common_deferred_options): Ditto.
9612 (dump_remap_tree_vectorizer_verbose): Delete.
9613 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9615 2013-10-30 DJ Delorie <dj@redhat.com>
9617 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9618 that take no arguments.
9620 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9623 * reload1.c (update_eliminables_and_spill): New function, broken
9625 (reload): Use it. Check for frame size change after frame size
9626 alignment, and call update_eliminables_and_spill first if continue-ing.
9628 2013-10-30 Cong Hou <congh@google.com>
9631 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9632 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9633 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9635 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9637 PR rtl-optimization/58369
9638 * reload1.c (compute_reload_subreg_offset): New function.
9639 (choose_reload_regs): Use it to pass endian-correct
9640 offset to subreg_regno_offset.
9642 2013-10-30 Tobias Burnus <burnus@net-b.de>
9645 * tree-cfg.c (replace_loop_annotate): Replace warning by
9648 2013-10-30 Jason Merrill <jason@redhat.com>
9650 * configure.ac (loose_warn): Add -Wno-format if
9651 --disable-build-format-warnings.
9653 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9655 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9656 onto multiple lines to make things easier for rename_symtab.py.
9658 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9659 (symtab_semantically_equivalent_p): Likewise.
9661 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9664 * lra.c (check_rtl): Remove address check before LRA work.
9666 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9668 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9669 POINTER_PLUS_EXPR in the defining statement.
9671 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9673 * regmove.c: Remove.
9674 * tree-pass.h (make_pass_regmove): Remove.
9675 * timevar.def (TV_REGMOVE): Remove.
9676 * passes.def (pass_regmove): Remove.
9677 * opts.c (default_options_table): Remove entry for regmove.
9678 * doc/passes.texi: Remove regmove pass description.
9679 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9681 (-fdump-rtl-regmove): Ditto.
9682 * common.opt (foptimize-register-move, fregmove): Ignore.
9683 * Makefile.in (OBJS): Remove regmove.o.
9684 * regmove.c: Remove.
9685 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9687 (struct ira_allocno) New member allocno_prefs.
9688 (ALLOCNO_PREFS): New macro.
9689 (ira_prefs, ira_prefs_num): New external vars.
9690 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9691 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9692 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9694 (ira_add_allocno_copy_to_list): Remove prototype.
9695 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9696 (ira_pref_iterator): New type.
9697 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9698 (FOR_EACH_PREF): New macro.
9699 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9700 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9702 (ira_setup_alts): New function.
9703 (decrease_live_ranges_number): New function.
9704 (ira): Call the above function.
9705 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9706 (ira_create_allocno): Initialize allocno prefs.
9707 (pref_pool, pref_vec): New static vars.
9708 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9710 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9711 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9712 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9713 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9714 (ira_add_allocno_copy_to_list): Make static. Rename to
9715 add_allocno_copy_to_list.
9716 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9717 swap_allocno_copy_ends_if_necessary.
9718 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9719 ira_remove_allocno_prefs.
9720 (ira_flattening): Ditto.
9721 (ira_build): Call initiate_prefs, print_prefs.
9722 (ira_destroy): Call finish_prefs.
9723 * ira-color.c (struct update_cost_record): New.
9724 (struct allocno_color_data): Add new member update_cost_records.
9725 (update_cost_record_pool): New static var.
9726 (init_update_cost_records, get_update_cost_record): New functions.
9727 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9728 (struct update_cost_queue_elem): Add member from.
9729 (initiate_cost_update): Call init_update_cost_records.
9730 (finish_cost_update): Call finish_update_cost_records.
9731 (queue_update_cost, get_next_update_cost): Add new param from.
9732 (Update_allocno_cost, update_costs_from_allocno): New functions.
9733 (update_costs_from_prefs): Ditto.
9734 (update_copy_costs): Rename to update_costs_from_copies.
9735 (restore_costs_from_copies): New function.
9736 (update_conflict_hard_regno_costs): Don't go back.
9737 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9739 (pop_allocnos): Add priniting more debug info.
9740 (color_allocnos): Remove prefs for conflicting hard regs.
9741 Call update_costs_from_prefs.
9742 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9743 (get_dup_num): Rename, modify, and move to ira.c
9744 (process_regs_for_copy): Add prefs.
9745 (add_insn_allocno_copies): Put src as first arg of
9746 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9747 * ira-costs.c (record_reg_classes): Modify and move code into
9748 record_operands_costs.
9749 (find_costs_and_classes): Create prefs for the hard reg of small
9751 (process_bb_node_for_hard_reg_moves): Add prefs.
9753 2013-10-30 Richard Biener <rguenther@suse.de>
9756 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9757 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9759 (pre_and_rev_post_order_compute): ... which now wraps it.
9760 * graph.c (draw_cfg_nodes_no_loops): Use
9761 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9764 2013-10-30 Christian Bruel <christian.bruel@st.com>
9766 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9767 (sh_expand_cmpstr): Handle known align and schedule improvements.
9768 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9769 * config/sh/sh.md (cmpstrnsi): New pattern.
9771 2013-10-30 Martin Jambor <mjambor@suse.cz>
9773 PR rtl-optimization/10474
9774 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9776 (interesting_dest_for_shprep): New function.
9777 (split_live_ranges_for_shrink_wrap): Likewise.
9778 (ira): Calculate dominance info and df analysis. Call
9779 split_live_ranges_for_shrink_wrap.
9781 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9784 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9786 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9788 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9789 * tree.h (POINTER_BOUNDS_P): New.
9790 (BOUNDED_TYPE_P): New.
9792 (pointer_bounds_type_node): New.
9793 * tree.c (build_common_tree_nodes): Initialize
9794 pointer_bounds_type_node.
9795 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9796 (gimple_call_num_nobnd_args): New.
9797 (gimple_call_nobnd_arg): New.
9798 (gimple_return_retbnd): New.
9799 (gimple_return_set_retbnd): New
9800 * gimple.c (gimple_build_return): Increase number of ops
9801 for return statement.
9802 (gimple_call_get_nobnd_arg_index): New.
9803 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9805 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9807 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9808 with "chkp ctor" and "bnd_legacy" attributes.
9809 * gimplify.c (gimplify_init_constructor): Avoid infinite
9810 loop during gimplification of bounds initializer.
9812 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9814 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9815 (handle_bnd_legacy): New.
9816 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9817 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9820 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9822 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9823 (BT_FN_PTR_CONST_PTR): New.
9824 (BT_FN_CONST_PTR_CONST_PTR): New.
9825 (BT_FN_PTR_CONST_PTR_SIZE): New.
9826 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9827 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9828 (BT_FN_VOID_CONST_PTR_SIZE): New.
9829 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9830 * chkp-builtins.def: New.
9831 * builtins.def: include chkp-builtins.def.
9832 (DEF_CHKP_BUILTIN): New.
9833 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9834 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9835 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9836 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9837 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9838 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9839 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9840 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9841 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9842 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9843 * common.opt (fcheck-pointer-bounds): New.
9844 * toplev.c (process_options): Check Pointer Bounds Checker is
9846 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9848 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9850 * target.def (builtin_chkp_function): New.
9851 (chkp_bound_type): New.
9852 (chkp_bound_mode): New.
9853 (fn_abi_va_list_bounds_size): New.
9854 (load_bounds_for_arg): New.
9855 (store_bounds_for_arg): New.
9856 * targhooks.h (default_load_bounds_for_arg): New.
9857 (default_store_bounds_for_arg): New.
9858 (default_fn_abi_va_list_bounds_size): New.
9859 (default_chkp_bound_type): New.
9860 (default_chkp_bound_mode): New.
9861 (default_builtin_chkp_function): New.
9862 * targhooks.c (default_load_bounds_for_arg): New.
9863 (default_store_bounds_for_arg): New.
9864 (default_fn_abi_va_list_bounds_size): New.
9865 (default_chkp_bound_type): New.
9866 (default_chkp_bound_mode); New.
9867 (default_builtin_chkp_function): New.
9868 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
9869 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9870 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9871 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9872 (TARGET_CHKP_BOUND_TYPE): New.
9873 (TARGET_CHKP_BOUND_MODE): New.
9874 * doc/tm.texi: Regenerated.
9875 * langhooks.h (lang_hooks): Add chkp_supported field.
9876 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
9877 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
9879 2013-10-29 Andrew Pinski <apinski@cavium.com>
9881 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
9882 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
9883 fails, combining the branches anyways.
9884 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
9885 increases the number of combinings.
9886 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
9888 2013-10-29 Mike Stump <mikestump@comcast.net>
9890 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
9891 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
9892 (make_vector_mode): Increase namebuf to 16.
9893 (emit_insn_modes_h): When processing BImode, don't
9894 also match partial int modes.
9895 (emit_class_narrowest_mode): Likewise.
9897 * config/bfin/bfin-modes.def: Add precision to PDI.
9898 * config/m32c/m32c-modes.def: Add precision to PSI.
9899 * config/msp430/msp430-modes.def: Add precision to PSI.
9900 * config/rs6000/rs6000-modes.def: Add precision to PTI.
9901 * config/sh/sh-modes.def: Add precision to PSI and PDI.
9903 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
9906 * config/sh/sh.md (*addc): Rename existing variations to ...
9907 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
9908 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
9909 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
9910 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
9912 2013-10-29 Teresa Johnson <tejohnson@google.com>
9915 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
9916 insanities when updating probabilities.
9918 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9920 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
9921 prettyprinter for cgraph_node to reflect the conversion of the
9922 symtable types to a C++ class hierarchy: it now *is* a
9923 symtab_node_base, rather than having one (named "symbol").
9925 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9927 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
9928 __cilkrts_pop_frame. If matched, then return true for built-in
9930 (expand_builtin): Added BUILT_IN_CILK_DETACH and
9931 BUILT_IN_CILK_POP_FRAME case.
9932 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
9933 (lhs_cilk_detect_spawn): Likewise.
9934 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
9935 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
9936 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
9937 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
9938 (LANG_HOOKS_CILKPLUS): Likewise.
9939 * tree.h (CILK_SPAWN_FN): Likewise.
9940 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
9941 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
9942 (OBJS): Added cilk-common.o.
9943 (BUILTINS_DEF): Added cilk-builtins.def.
9944 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
9945 (lhd_cilk_detect_spawn): Likewise.
9946 * langhooks.h (lang_hooks_for_cilkplus): New struct.
9947 (struct lang_hooks): Added new field called "cilkplus."
9948 * cilk-common.c: New file.
9950 * cilk-builtins.def: Likewise.
9951 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
9952 "__cilk" macro and set it to 200.
9953 * function.h (struct function::cilk_frame_decl): New field.
9954 (struct function::is_cilk_function): Likewise.
9955 (struct function::calls_cilk_spawn): Likewise.
9956 * gimplify.c (gimplify_call_expr): Added a check if the function call
9957 being gimplified is a spawn detach point. If so, then add pop_frame
9958 and detach function calls.
9959 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
9960 for gimplifying _Cilk_spawn and _Cilk_sync statements.
9961 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
9962 function. If so, added a _Cilk_sync and gimplified it.
9963 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
9964 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
9965 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
9967 (can_inline_edge_p): Prevent inling of spawnee function.
9968 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
9969 for functions that use Cilk keywords.
9970 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
9971 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
9972 CILK_SYNC_STMT cases.
9973 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
9975 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
9976 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
9977 * passes.texi (Cilk Keywords): New section that describes the compiler
9978 code changes for handling Cilk Keywords.
9980 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9982 Patch autogenerated by refactor_symtab.py from
9983 https://github.com/davidmalcolm/gcc-refactoring-scripts
9984 revision 58bb219cc090b2f4516a9297d868c245495ee622
9986 * asan.c (asan_finish_file): Update for conversion of symtab types to
9987 a true class hierarchy.
9988 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9989 * cgraph.c (cgraph_get_body): Likewise.
9990 (cgraph_get_create_real_symbol_node): Likewise.
9991 (verify_cgraph_node): Likewise.
9992 (verify_edge_corresponds_to_fndecl): Likewise.
9993 (verify_edge_count_and_frequency): Likewise.
9994 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
9995 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
9996 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
9997 (cgraph_node_cannot_return): Likewise.
9998 (cgraph_set_pure_flag_1): Likewise.
9999 (cgraph_set_const_flag_1): Likewise.
10000 (cgraph_set_nothrow_flag_1): Likewise.
10001 (cgraph_make_node_local_1): Likewise.
10002 (cgraph_for_node_and_aliases): Likewise.
10003 (cgraph_for_node_thunks_and_aliases): Likewise.
10004 (cgraph_node_can_be_local_p): Likewise.
10005 (cgraph_node_cannot_be_local_p_1): Likewise.
10006 (cgraph_function_body_availability): Likewise.
10007 (dump_cgraph_node): Likewise.
10008 (cgraph_rtl_info): Likewise.
10009 (cgraph_mark_address_taken_node): Likewise.
10010 (cgraph_remove_node): Likewise.
10011 (cgraph_release_function_body): Likewise.
10012 (cgraph_update_edges_for_call_stmt_node): Likewise.
10013 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10014 (cgraph_make_edge_direct): Likewise.
10015 (cgraph_resolve_speculation): Likewise.
10016 (cgraph_speculative_call_info): Likewise.
10017 (cgraph_turn_edge_to_speculative): Likewise.
10018 (cgraph_create_edge_1): Likewise.
10019 (cgraph_set_call_stmt): Likewise.
10020 (cgraph_node_for_asm): Likewise.
10021 (cgraph_add_thunk): Likewise.
10022 (cgraph_same_body_alias): Likewise.
10023 (cgraph_create_function_alias): Likewise.
10024 (cgraph_create_node): Likewise.
10025 (cgraph_create_empty_node): Likewise.
10026 (record_function_versions): Likewise.
10027 (used_from_object_file_p): Likewise.
10028 * cgraph.h (symtab_can_be_discarded): Likewise.
10029 (symtab_real_symbol_p): Likewise.
10030 (cgraph_mark_force_output_node): Likewise.
10031 (cgraph_edge_recursive_p): Likewise.
10032 (symtab_alias_target): Likewise.
10033 (varpool_all_refs_explicit_p): Likewise.
10034 (varpool_can_remove_if_no_refs): Likewise.
10035 (cgraph_only_called_directly_or_aliased_p): Likewise.
10036 (cgraph_next_function_with_gimple_body): Likewise.
10037 (cgraph_first_function_with_gimple_body): Likewise.
10038 (cgraph_function_with_gimple_body_p): Likewise.
10039 (cgraph_next_function): Likewise.
10040 (cgraph_first_function): Likewise.
10041 (cgraph_next_defined_function): Likewise.
10042 (cgraph_first_defined_function): Likewise.
10043 (varpool_next_defined_variable): Likewise.
10044 (varpool_first_defined_variable): Likewise.
10045 (varpool_next_static_initializer): Likewise.
10046 (varpool_first_static_initializer): Likewise.
10047 (varpool_next_variable): Likewise.
10048 (varpool_first_variable): Likewise.
10049 (varpool_node_name): Likewise.
10050 (varpool): Likewise.
10051 (cgraph): Likewise.
10052 (is_a_helper <varpool_node>::test): Likewise.
10053 (is_a_helper <cgraph_node>::test): Likewise.
10054 (varpool_variable_node): Likewise.
10055 (cgraph_function_or_thunk_node): Likewise.
10056 (varpool_alias_target): Likewise.
10057 (cgraph_alias_target): Likewise.
10058 (cgraph_node_name): Likewise.
10059 (varpool_node_asm_name): Likewise.
10060 (cgraph_node_asm_name): Likewise.
10061 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10062 (cgraph_rebuild_references): Likewise.
10063 (rebuild_cgraph_edges): Likewise.
10064 (record_eh_tables): Likewise.
10065 (build_cgraph_edges): Likewise.
10066 (mark_store): Likewise.
10067 (mark_load): Likewise.
10068 (mark_address): Likewise.
10069 (record_type_list): Likewise.
10070 (record_reference): Likewise.
10071 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10072 (cgraph_materialize_clone): Likewise.
10073 (cgraph_function_versioning): Likewise.
10074 (cgraph_copy_node_for_versioning): Likewise.
10075 (update_call_expr): Likewise.
10076 (cgraph_find_replacement_node): Likewise.
10077 (cgraph_create_virtual_clone): Likewise.
10078 (cgraph_clone_node): Likewise.
10079 * cgraphunit.c (compile): Likewise.
10080 (output_weakrefs): Likewise.
10081 (output_in_order): Likewise.
10082 (expand_function): Likewise.
10083 (assemble_thunks_and_aliases): Likewise.
10084 (expand_thunk): Likewise.
10085 (mark_functions_to_output): Likewise.
10086 (handle_alias_pairs): Likewise.
10087 (analyze_functions): Likewise.
10088 (walk_polymorphic_call_targets): Likewise.
10089 (varpool_finalize_decl): Likewise.
10090 (process_function_and_variable_attributes): Likewise.
10091 (cgraph_process_same_body_aliases): Likewise.
10092 (analyze_function): Likewise.
10093 (cgraph_add_new_function): Likewise.
10094 (cgraph_finalize_function): Likewise.
10095 (referred_to_p): Likewise.
10096 (cgraph_reset_node): Likewise.
10097 (cgraph_process_new_functions): Likewise.
10098 (enqueue_node): Likewise.
10099 (decide_is_symbol_needed): Likewise.
10100 * coverage.c (coverage_compute_profile_id): Likewise.
10101 * dbxout.c (dbxout_expand_expr): Likewise.
10102 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10103 (reference_to_unused): Likewise.
10104 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10105 * gimplify.c (unvisit_body): Likewise.
10106 (unshare_body): Likewise.
10107 * ipa-cp.c (ipcp_generate_summary): Likewise.
10108 (ipcp_decision_stage): Likewise.
10109 (identify_dead_nodes): Likewise.
10110 (decide_whether_version_node): Likewise.
10111 (decide_about_value): Likewise.
10112 (perhaps_add_new_callers): Likewise.
10113 (create_specialized_node): Likewise.
10114 (update_profiling_info): Likewise.
10115 (ipcp_propagate_stage): Likewise.
10116 (estimate_local_effects): Likewise.
10117 (good_cloning_opportunity_p): Likewise.
10118 (devirtualization_time_bonus): Likewise.
10119 (propagate_constants_accross_call): Likewise.
10120 (initialize_node_lattices): Likewise.
10121 (ipcp_cloning_candidate_p): Likewise.
10122 (determine_versionability): Likewise.
10123 (print_all_lattices): Likewise.
10124 (print_lattice): Likewise.
10125 (ipcp_discover_new_direct_edges): Likewise.
10126 * ipa-devirt.c (ipa_devirt): Likewise.
10127 (likely_target_p): Likewise.
10128 (update_type_inheritance_graph): Likewise.
10129 (possible_polymorphic_call_target_p): Likewise.
10130 (dump_possible_polymorphic_call_targets): Likewise.
10131 (devirt_variable_node_removal_hook): Likewise.
10132 (record_binfo): Likewise.
10133 (maybe_record_node): Likewise.
10134 (build_type_inheritance_graph): Likewise.
10135 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10136 (inline_generate_summary): Likewise.
10137 (inline_analyze_function): Likewise.
10138 (do_estimate_growth): Likewise.
10139 (simple_edge_hints): Likewise.
10140 (estimate_node_size_and_time): Likewise.
10141 (estimate_edge_devirt_benefit): Likewise.
10142 (compute_inline_parameters): Likewise.
10143 (estimate_function_body_sizes): Likewise.
10144 (compute_bb_predicates): Likewise.
10145 (initialize_inline_failed): Likewise.
10146 (dump_inline_summary): Likewise.
10147 (dump_inline_edge_summary): Likewise.
10148 * ipa-inline-transform.c (inline_transform): Likewise.
10149 (preserve_function_body_p): Likewise.
10150 (save_inline_function_body): Likewise.
10151 (inline_call): Likewise.
10152 (clone_inlined_nodes): Likewise.
10153 (can_remove_node_now_p): Likewise.
10154 (can_remove_node_now_p_1): Likewise.
10155 * ipa-inline.c (early_inliner): Likewise.
10156 (early_inline_small_functions): Likewise.
10157 (inline_always_inline_functions): Likewise.
10158 (ipa_inline): Likewise.
10159 (flatten_function): Likewise.
10160 (inline_small_functions): Likewise.
10161 (speculation_useful_p): Likewise.
10162 (recursive_inlining): Likewise.
10163 (update_caller_keys): Likewise.
10164 (reset_edge_caches): Likewise.
10165 (update_edge_key): Likewise.
10166 (edge_badness): Likewise.
10167 (relative_time_benefit): Likewise.
10168 (want_inline_self_recursive_call_p): Likewise.
10169 (want_inline_small_function_p): Likewise.
10170 (want_early_inline_function_p): Likewise.
10171 (num_calls): Likewise.
10172 (can_early_inline_edge_p): Likewise.
10173 (can_inline_edge_p): Likewise.
10174 (report_inline_failed_reason): Likewise.
10175 * ipa-profile.c (ipa_profile): Likewise.
10176 (ipa_propagate_frequency): Likewise.
10177 (ipa_propagate_frequency_1): Likewise.
10178 (ipa_profile_generate_summary): Likewise.
10179 * ipa-prop.c (ipcp_transform_function): Likewise.
10180 (read_replacements_section): Likewise.
10181 (ipa_prop_read_section): Likewise.
10182 (ipa_modify_call_arguments): Likewise.
10183 (ipa_print_node_params): Likewise.
10184 (propagate_controlled_uses): Likewise.
10185 (update_indirect_edges_after_inlining): Likewise.
10186 (remove_described_reference): Likewise.
10187 (ipa_make_edge_direct_to_target): Likewise.
10188 (ipa_analyze_node): Likewise.
10189 (ipa_analyze_params_uses): Likewise.
10190 (ipa_compute_jump_functions): Likewise.
10191 (ipa_get_callee_param_type): Likewise.
10192 (ipa_print_node_jump_functions): Likewise.
10193 (ipa_initialize_node_params): Likewise.
10194 (ipa_populate_param_decls): Likewise.
10195 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10196 (write_agg_replacement_chain): Likewise.
10197 (ipa_write_node_info): Likewise.
10198 (ipa_edge_duplication_hook): Likewise.
10199 (try_decrement_rdesc_refcount): Likewise.
10200 * ipa-pure-const.c (propagate_nothrow): Likewise.
10201 (propagate_pure_const): Likewise.
10202 (pure_const_read_summary): Likewise.
10203 (pure_const_write_summary): Likewise.
10204 (analyze_function): Likewise.
10205 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10206 (ipa_ref_referring_ref_list): Likewise.
10207 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10208 (ipa_remove_stmt_references): Likewise.
10209 (ipa_find_reference): Likewise.
10210 (ipa_dump_referring): Likewise.
10211 (ipa_dump_references): Likewise.
10212 (ipa_record_reference): Likewise.
10213 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10214 (ipa_reference_write_optimization_summary): Likewise.
10215 (write_node_summary_p): Likewise.
10216 (propagate): Likewise.
10217 (read_write_all_from_decl): Likewise.
10218 (generate_summary): Likewise.
10219 (analyze_function): Likewise.
10220 (propagate_bits): Likewise.
10221 (ipa_reference_get_not_written_global): Likewise.
10222 (ipa_reference_get_not_read_global): Likewise.
10223 * ipa-split.c (execute_split_functions): Likewise.
10224 (split_function): Likewise.
10225 * ipa-utils.c (ipa_merge_profiles): Likewise.
10226 (dump_cgraph_node_set): Likewise.
10227 (ipa_reverse_postorder): Likewise.
10228 (ipa_edge_within_scc): Likewise.
10229 (ipa_get_nodes_in_cycle): Likewise.
10230 (ipa_free_postorder_info): Likewise.
10231 (ipa_reduced_postorder): Likewise.
10232 (searchc): Likewise.
10233 (recursive_call_p): Likewise.
10234 * ipa.c (ipa_cdtor_merge): Likewise.
10235 (record_cdtor_fn): Likewise.
10236 (function_and_variable_visibility): Likewise.
10237 (varpool_externally_visible_p): Likewise.
10238 (cgraph_externally_visible_p): Likewise.
10239 (comdat_can_be_unshared_p): Likewise.
10240 (comdat_can_be_unshared_p_1): Likewise.
10241 (address_taken_from_non_vtable_p): Likewise.
10242 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10243 (symtab_remove_unreachable_nodes): Likewise.
10244 (walk_polymorphic_call_targets): Likewise.
10245 (process_references): Likewise.
10246 (enqueue_node): Likewise.
10247 (has_addr_references_p): Likewise.
10248 (cgraph_non_local_node_p_1): Likewise.
10249 * is-a.h (varpool_analyze_node): Likewise.
10250 * lto-cgraph.c (input_symtab): Likewise.
10251 (merge_profile_summaries): Likewise.
10252 (input_cgraph_1): Likewise.
10253 (input_edge): Likewise.
10254 (input_varpool_node): Likewise.
10255 (input_node): Likewise.
10256 (input_overwrite_node): Likewise.
10257 (compute_ltrans_boundary): Likewise.
10258 (output_refs): Likewise.
10259 (lto_output_varpool_node): Likewise.
10260 (lto_output_node): Likewise.
10261 (reachable_from_other_partition_p): Likewise.
10262 (referenced_from_other_partition_p): Likewise.
10263 (lto_output_edge): Likewise.
10264 (output_node_opt_summary): Likewise.
10265 (add_node_to): Likewise.
10266 (reachable_from_this_partition_p): Likewise.
10267 (lto_set_symtab_encoder_in_partition): Likewise.
10268 (lto_symtab_encoder_in_partition_p): Likewise.
10269 (lto_set_symtab_encoder_encode_initializer): Likewise.
10270 (lto_symtab_encoder_encode_initializer_p): Likewise.
10271 (lto_set_symtab_encoder_encode_body): Likewise.
10272 (lto_symtab_encoder_encode_body_p): Likewise.
10273 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10275 * lto-streamer-in.c (lto_read_body): Likewise.
10276 (fixup_call_stmt_edges): Likewise.
10277 (fixup_call_stmt_edges_1): Likewise.
10278 * lto-streamer-out.c (produce_symtab): Likewise.
10279 (output_symbol_p): Likewise.
10280 (write_symbol): Likewise.
10281 (lto_output): Likewise.
10282 (copy_function): Likewise.
10283 (output_function): Likewise.
10284 * passes.c (function_called_by_processed_nodes_p): Likewise.
10285 (ipa_write_optimization_summaries): Likewise.
10286 (ipa_write_summaries): Likewise.
10287 (do_per_function_toporder): Likewise.
10288 (do_per_function): Likewise.
10289 (dump_passes): Likewise.
10290 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10291 (symtab_nonoverwritable_alias): Likewise.
10292 (symtab_nonoverwritable_alias_1): Likewise.
10293 (symtab_for_node_and_aliases): Likewise.
10294 (symtab_resolve_alias): Likewise.
10295 (fixup_same_cpp_alias_visibility): Likewise.
10296 (symtab_alias_ultimate_target): Likewise.
10297 (symtab_used_from_object_file_p): Likewise.
10298 (verify_symtab_base): Likewise.
10299 (dump_symtab_base): Likewise.
10300 (symtab_node_name): Likewise.
10301 (symtab_node_asm_name): Likewise.
10302 (symtab_dissolve_same_comdat_group_list): Likewise.
10303 (symtab_add_to_same_comdat_group): Likewise.
10304 (symtab_unregister_node): Likewise.
10305 (symtab_insert_node_to_hashtable): Likewise.
10306 (symtab_register_node): Likewise.
10307 (unlink_from_assembler_name_hash): Likewise.
10308 (insert_to_assembler_name_hash): Likewise.
10309 (eq_assembler_name): Likewise.
10310 (hash_node_by_assembler_name): Likewise.
10311 (eq_node): Likewise.
10312 (hash_node): Likewise.
10313 * toplev.c (wrapup_global_declaration_2): Likewise.
10314 * trans-mem.c (ipa_tm_execute): Likewise.
10315 (ipa_tm_transform_clone): Likewise.
10316 (ipa_tm_transform_transaction): Likewise.
10317 (ipa_tm_transform_calls_redirect): Likewise.
10318 (ipa_tm_insert_gettmclone_call): Likewise.
10319 (ipa_tm_insert_irr_call): Likewise.
10320 (ipa_tm_create_version): Likewise.
10321 (ipa_tm_create_version_alias): Likewise.
10322 (ipa_tm_mark_forced_by_abi_node): Likewise.
10323 (ipa_tm_mark_force_output_node): Likewise.
10324 (ipa_tm_diagnose_tm_safe): Likewise.
10325 (ipa_tm_mayenterirr_function): Likewise.
10326 (ipa_tm_scan_irr_function): Likewise.
10327 (ipa_tm_note_irrevocable): Likewise.
10328 (ipa_tm_scan_calls_clone): Likewise.
10329 (get_cg_data): Likewise.
10330 * tree-eh.c (tree_could_trap_p): Likewise.
10331 * tree-emutls.c (ipa_lower_emutls): Likewise.
10332 (create_emultls_var): Likewise.
10333 (lower_emutls_function_body): Likewise.
10334 (gen_emutls_addr): Likewise.
10335 (emutls_decl): Likewise.
10336 (new_emutls_decl): Likewise.
10337 * tree-inline.c (tree_function_versioning): Likewise.
10338 (optimize_inline_calls): Likewise.
10339 (expand_call_inline): Likewise.
10340 (estimate_num_insns): Likewise.
10341 (copy_bb): Likewise.
10342 (delete_unreachable_blocks_update_callgraph): Likewise.
10343 * tree-nested.c (gimplify_all_functions): Likewise.
10344 (create_nesting_tree): Likewise.
10345 (check_for_nested_with_variably_modified): Likewise.
10346 * tree-pretty-print.c (dump_function_header): Likewise.
10347 * tree-profile.c (tree_profiling): Likewise.
10348 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10349 (modify_function): Likewise.
10350 (convert_callers): Likewise.
10351 (convert_callers_for_node): Likewise.
10352 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10353 (associate_varinfo_to_alias): Likewise.
10354 (create_variable_info_for): Likewise.
10355 (get_constraint_for_ssa_var): Likewise.
10356 * tree-vectorizer.c (increase_alignment): Likewise.
10357 * tree.c (find_decls_types_in_var): Likewise.
10358 (find_decls_types_in_node): Likewise.
10359 (free_lang_data_in_decl): Likewise.
10360 * value-prof.c (gimple_ic_transform): Likewise.
10361 (gimple_ic): Likewise.
10362 (check_ic_target): Likewise.
10363 (init_node_map): Likewise.
10364 * varasm.c (decl_binds_to_current_def_p): Likewise.
10365 (default_binds_local_p_1): Likewise.
10366 (dump_tm_clone_pairs): Likewise.
10367 (assemble_alias): Likewise.
10368 (find_decl): Likewise.
10369 (mark_decl_referenced): Likewise.
10370 * varpool.c (varpool_for_node_and_aliases): Likewise.
10371 (varpool_extra_name_alias): Likewise.
10372 (varpool_create_variable_alias): Likewise.
10373 (add_new_static_var): Likewise.
10374 (varpool_finalize_named_section_flags): Likewise.
10375 (varpool_remove_unreferenced_decls): Likewise.
10376 (enqueue_node): Likewise.
10377 (varpool_assemble_decl): Likewise.
10378 (assemble_aliases): Likewise.
10379 (varpool_analyze_node): Likewise.
10380 (cgraph_variable_initializer_availability): Likewise.
10381 (varpool_add_new_variable): Likewise.
10382 (ctor_for_folding): Likewise.
10383 (dump_varpool_node): Likewise.
10384 (varpool_remove_initializer): Likewise.
10385 (varpool_remove_node): Likewise.
10386 (varpool_node_for_decl): Likewise.
10387 (varpool_create_empty_node): Likewise.
10388 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10389 (ix86_get_function_versions_dispatcher): Likewise.
10391 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10393 * cgraph.h (symtab_node_base): Convert to a class;
10394 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10395 chain_next/prev from symtab_node_def.
10396 (cgraph_node): Inherit from symtab_node; add GTY option
10397 tag ("SYMTAB_FUNCTION").
10398 (varpool_node): Inherit from symtab_node; add GTY option
10399 tag ("SYMTAB_VARIABLE").
10400 (symtab_node_def): Remove.
10401 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10402 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10403 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10404 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10406 * ipa-ref.h (symtab_node_def): Drop.
10407 (symtab_node): Change underlying type from symtab_node_def to
10409 (const_symtab_node): Likwise.
10411 * is-a.h: Update examples in comment.
10413 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10414 (assembler_name_hash): Likewise.
10416 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10418 * doc/tree-ssa.texi (gimple_phi_result): Document.
10419 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10420 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10421 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10422 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10424 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10426 * expr.h: Revert change and include tree-core.h.
10427 * rtl.h: Revert change and don't include tree-core.h.
10429 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10431 * config/darwin.c: Include gimple.h.
10432 * config/i386/winnt.c: Likewise.
10434 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10436 PR tree-optimization/19831
10437 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10439 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10441 * tree-outof-ssa.h: Remove include files.
10442 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10443 * expr.c: Likewise.
10444 * tree-ssa-coalesce.c: Likewise.
10445 * cfgexpand.c: Likewise.
10446 * tree-ssa-ter.c: Likewise.
10447 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10448 * lto-streamer.h: Likewise.
10449 * cgraphbuild.c: Add gimple.h to include list.
10450 * data-streamer-in.c: Likewise.
10451 * ipa-cp.c: Likewise.
10452 * tree-streamer.c: Likewise.
10453 * lto-compress.c: Likewise.
10454 * ipa-reference.c: Likewise.
10455 * data-streamer-out.c: Likewise.
10456 * lto-cgraph.c: Likewise.
10457 * cgraphclones.c: Likewise.
10458 * ipa-utils.c: Likewise.
10459 * data-streamer.c: Likewise.
10460 * ipa-split.c: Likewise.
10461 * lto-section-in.c: Likewise.
10462 * tree-streamer-out.c: Likewise.
10463 * ipa-prop.c: Likewise.
10464 * tree-streamer-in.c: Likewise.
10465 * symtab.c: Likewise.
10466 * opts-global.c: Likewise.
10467 * lto-opts.c: Likewise.
10468 * lto-section-out.c: Likewise.
10469 * lto-streamer.c: Likewise.
10470 * rtl.h: Add tree-core.h to include list.
10471 * expr.h: Remove tree-core.h from include list.
10472 * gimple.h: Likewise.
10473 * ipa-utils.h: Likewise.
10474 * streamer-hooks.h: Likewise.
10475 * streamer-hooks.c: Include input.h.
10477 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10479 * config/arm/arm.c (cortexa7_extra_costs): New table.
10480 (arm_cortex_a7_tune): New.
10481 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10483 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10485 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10487 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10489 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10490 to use autogenerated markers for a class-hierarchy, every class
10491 must have a GTY marker.
10492 * gengtype.h (struct type): Add linked list of subclasses to
10493 the "s" member of the union.
10494 (add_subclass): New decl.
10495 * gengtype-state.c (read_state_struct_type): Set up subclass
10497 * gengtype.c (get_ultimate_base_class): New.
10498 (add_subclass): New.
10499 (new_structure): Set up subclass linked list.
10500 (set_gc_used_type): Propagate usage information to subclasses.
10501 (output_mangled_typename): Use get_ultimate_base_class.
10502 (walk_subclasses): Use the subclass linked list, avoiding an
10503 O(N^2) when writing out all types.
10504 (walk_type): Issue an error if the base class is missing a tag,
10505 rather than generating bogus C code. Add a gcc_unreachable
10506 default case, in case people omit tags from concrete subclasses,
10507 or get the values wrong.
10508 (write_func_for_structure): Issue an error for subclasses for
10509 which the base doesn't have a "desc", since otherwise the
10510 autogenerated routines for the base would silently fail to visit
10511 any subclass fields.
10512 (write_root): Use get_ultimate_base_class, tweaking constness of
10513 tp to match that function's signature.
10515 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10517 * doc/gty.texi (GTY Options): Add note about inheritance to
10518 description of desc and tag.
10519 (Inheritance and GTY): New.
10521 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10523 * gengtype-parse.c (opts_have): Drop "static" so that
10524 we can use this from gengtype.c.
10525 * gengtype.c (set_gc_used_type): Mark any base class as used;
10526 update field traversal to visit inherited fields.
10527 (output_mangled_typename): Convert references to classes within
10528 an inheritance hierarchy to reference the ultimate base class,
10529 since only it will have gt_ functions.
10530 (get_string_option): New.
10531 (walk_subclasses): New.
10532 (walk_type): Treat GTY structs that have a "desc" as being the
10533 root of an inheritance hierarchy. Generate a switch on it
10534 within the marking function which walks all subclasses, adding
10535 cases for them via walk_subclasses. For subclasses, visit all
10536 fields of the type (including inherited ones).
10537 (write_func_for_structure): Don't write fns for subclasses, only
10538 for the ultimate base class within an inheritance hierarchy.
10539 Subclasses-marking will be handled by the base class marking functions.
10540 (write_types): Likewise.
10541 (write_local_func_for_structure): Likewise.
10542 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10543 a "tag" option (and are thus concrete subclasses).
10544 (write_root): Use the marker function for the ultimate base class.
10545 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10546 (opts_have): Add declaration.
10548 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10550 * lra-spills.c (lra_final_code_change): Remove useless move insns
10551 originated from moves of pseudos.
10553 2013-10-28 Jeff Law <law@redhat.com>
10555 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10557 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10559 * df-scan.c (df_collection_rec): Adjust.
10560 (copy_defs): New constant.
10561 (copy_uses): Likewise.
10562 (copy_eq_uses): Likewise.
10563 (copy_mw): Likewise.
10564 (copy_all): Likewise.
10565 (df_insn_rescan): Adjust.
10566 (df_notes_rescan): Likewise.
10567 (df_swap_refs): Likewise.
10568 (df_sort_and_compress_refs): Likewise.
10569 (df_sort_and_compress_mws): Likewise.
10570 (df_install_refs): Likewise.
10571 (df_install_mws): Likewise.
10572 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10574 (df_bb_refs_record): Adjust.
10575 (df_record_entry_block_defs): Likewise.
10576 (df_record_exit_block_defs): Likewise.
10577 (df_refs_verify): Likewise.
10578 (df_mws_verify): Likewise.
10579 (df_insn_refs_verify): Likewise.
10580 (df_bb_verify): Likewise.
10581 * ipa-pure-const.c (finish_state): Remove.
10582 (propagate): Adjust.
10583 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10584 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10585 var-tracking.c: Adjust.
10586 * vec.c (stack_vecs): Remove.
10587 (register_stack_vec): Likewise.
10588 (stack_vec_register_index): Likewise.
10589 (unregister_stack_vec): Likewise.
10590 * vec.h (struct va_stack): Remove.
10591 (struct vec<T, A, vl_ptr>): Specialize as
10592 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10593 allocation strategy compatable with the vl_ptr layout.
10594 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10595 specialization anyway.
10596 (class stack_vec): New class.
10597 (vec_stack_alloc): Remove.
10598 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10600 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10602 Sergey Lega <sergey.s.lega@intel.com>
10603 Anna Tikhonova <anna.tikhonova@intel.com>
10604 Ilya Tocar <ilya.tocar@intel.com>
10605 Andrey Turetskiy <andrey.turetskiy@intel.com>
10606 Ilya Verbin <ilya.verbin@intel.com>
10607 Kirill Yukhin <kirill.yukhin@intel.com>
10608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10610 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10611 (*prefetch_avx512pf_<mode>): New.
10612 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10613 (avx512f_maskcmp<mode>3): Ditto.
10614 (vashrv16si3): Ditto.
10616 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10618 Sergey Lega <sergey.s.lega@intel.com>
10619 Anna Tikhonova <anna.tikhonova@intel.com>
10620 Ilya Tocar <ilya.tocar@intel.com>
10621 Andrey Turetskiy <andrey.turetskiy@intel.com>
10622 Ilya Verbin <ilya.verbin@intel.com>
10623 Kirill Yukhin <kirill.yukhin@intel.com>
10624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10626 * config/i386/i386.md (any_truncate): New.
10627 (trunsuffix): Ditto.
10628 * config/i386/predicates.md (const_8_to_9_operand): New.
10629 (const_10_to_11_operand): Ditto.
10630 (const_12_to_13_operand): Ditto.
10631 (const_14_to_15_operand): Ditto.
10632 (const_16_to_19_operand): Ditto.
10633 (const_20_to_23_operand): Ditto.
10634 (const_24_to_27_operand): Ditto.
10635 (const_28_to_31_operand): Ditto.
10636 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10637 (cvtusi2<ssescalarmodesuffix>32): New.
10638 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10639 (ufloatv16siv16sf2): Ditto.
10640 (avx512f_fix_notruncv16sfv16si): Ditto.
10641 (avx512f_ufix_notruncv16sfv16si): Ditto.
10642 (avx512f_vcvtss2usi): Ditto.
10643 (avx512f_vcvtss2usiq): Ditto.
10644 (avx512f_vcvttss2usi): Ditto.
10645 (avx512f_vcvttss2usiq): Ditto.
10646 (avx512f_vcvtsd2usi): Ditto.
10647 (avx512f_vcvtsd2usiq): Ditto.
10648 (avx512f_vcvttsd2usi): Ditto.
10649 (avx512f_vcvttsd2usiq): Ditto.
10650 (ufloatv8siv8df): Ditto.
10651 (avx512f_cvtdq2pd512_2): Ditto.
10652 (avx512f_cvtpd2dq512): Ditto.
10653 (avx512f_ufix_notruncv8dfv8si): Ditto.
10654 (avx512f_cvtpd2ps512): Ditto.
10655 (vec_unpacks_lo_v16sf): Ditto.
10656 (vec_unpacks_hi_v16sf): Ditto.
10657 (vec_unpacks_float_hi_v16si): Ditto.
10658 (vec_unpacks_float_lo_v16si): Ditto.
10659 (avx512f_unpckhps512): Ditto.
10660 (avx512f_unpcklps512): Ditto.
10661 (avx512f_movshdup512): Ditto.
10662 (avx512f_movsldup512): Ditto.
10663 (vec_extract_lo_v32hi): Ditto.
10664 (vec_extract_hi_v32hi): Ditto.
10665 (vec_extract_lo_v64qi): Ditto.
10666 (vec_extract_hi_v64qi): Ditto.
10667 (avx512f_unpckhpd512): Ditto.
10668 (avx512f_movddup512): Ditto.
10669 (avx512f_unpcklpd512): Ditto.
10670 (*avx512f_unpcklpd512): Ditto.
10671 (avx512f_shufps512_1): Ditto.
10672 (avx512f_shufpd512_1): Ditto.
10673 (avx512f_interleave_highv8di): Ditto.
10674 (avx512f_interleave_lowv8di): Ditto.
10675 (PMOV_DST_MODE): Ditto.
10676 (pmov_src_mode): Ditto.
10677 (pmov_src_lower): Ditto.
10678 (pmov_suff): Ditto.
10679 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10680 (*avx512f_<code>v8div16qi2): Ditto.
10681 (*avx512f_<code>v8div16qi2_store): Ditto.
10682 (vec_widen_umult_even_v16si): Ditto.
10683 (*vec_widen_umult_even_v16si): Ditto.
10684 (vec_widen_smult_even_v16si): Ditto.
10685 (*vec_widen_smult_even_v16si): Ditto.
10686 (avx512f_interleave_highv16si): Ditto.
10687 (avx512f_interleave_lowv16si): Ditto.
10688 (avx512f_<code>v16qiv16si2): Ditto.
10689 (avx512f_<code>v16hiv16si2): Ditto.
10690 (avx512f_<code>v8qiv8di2): Ditto.
10691 (avx512f_<code>v8hiv8di2): Ditto.
10692 (avx512f_<code>v8siv8di2): Ditto.
10693 (avx512cd_maskb_vec_dupv8di): Ditto.
10694 (avx512cd_maskw_vec_dupv16si): Ditto.
10695 (avx512f_vcvtph2ps512): Ditto.
10696 (avx512f_vcvtps2ph512): Ditto.
10697 (VEC_EXTRACT_MODE): Extened with wider modes.
10698 (VEC_PERM_AVX2): Ditto.
10699 (VEC_PERM_CONST): Ditto.
10701 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10703 * config/arc/arc.c (arc_ccfsm_post_advance):
10704 Add comment about TYPE_RETURN.
10706 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10708 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10709 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10710 (strip_offset): Convert offset to unsigned number.
10712 2013-10-27 Tom de Vries <tom@codesourcery.com>
10714 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10715 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10717 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10719 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10720 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10721 (TARGET_BIG_ENDIAN): New macro.
10722 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10723 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10724 * config/sh/sh.c: Likewise.
10725 * config/sh/sh.h: Likewise.
10727 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10729 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10730 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10732 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10734 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10736 (cmpstr_t, cmpstrsi): Fix formatting.
10738 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10741 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10742 addressing, do not use general_operand for memory operands.
10744 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10747 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10748 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10750 2013-10-26 Jeff Law <law@redhat.com>
10752 * predict.c (PRED_MUDFLAP): Remove.
10753 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10755 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10756 (OBJS): Remove tree-nomudflap.o
10757 (GTFILES): Remove tree-mudflap.c
10758 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10759 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10760 (mfwrap_spec, mflib_spec): Likewise.
10761 (cpp_unique_options, cc1_options, static_specs): Likewise.
10762 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10763 * passes.def: Likewise.
10764 * toplev.c (compile_file, process_options): Likewise.
10765 * tree-inline.c (copy_tree_r): Likewise.
10766 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10767 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10768 (build_constant_desc, output_constant_def_contents): Likewise.
10769 (categorize_decl_for_section): Likewise.
10770 * tree-mudflap.c: Removed.
10771 * tree-mudflap.h: Removed.
10772 * tree-nomudflap.c: Removed.
10773 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10774 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10775 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10776 * config/sol2.h (MFLIB_SPEC): Likewise.
10777 * doc/install.texi: Remove mudflap references.
10778 * doc/passes.texi: Similarly.
10779 * doc/sourcebuild.texi: Similarly.
10780 * doc/invoke.texi: Remove mudlfap related options.
10782 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10784 PR rtl-optimization/58759
10785 * lra-constraints.c (lra_constraints): Remove wrong condition to
10786 remove insn setting up an equivalent pseudo.
10788 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10790 * config/rs6000/rs6000-protos.h
10791 (rs6000_secondary_memory_needed_mode): New prototype.
10792 * config/rs6000/rs6000.c: Include ira.h.
10793 (TARGET_LRA_P): Redefine.
10794 (rs6000_legitimate_offset_address_p): Call
10795 legitimate_constant_pool_address_p in strict mode for LRA.
10796 (rs6000_legitimate_address_p): Ditto.
10797 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10798 (rs6000_emit_move): Add LRA version of code to generate load/store
10800 (rs6000_secondary_memory_needed_mode): New.
10801 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10802 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10803 constants, memory, and FP registers.
10804 (rs6000_lra_p): New.
10805 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10806 * config/rs6000/rs6000.opt (mlra): New option.
10807 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10809 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10811 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10812 has_single_use () and not do the conversion if has_single_use ()
10813 returns false for the multiplication result.
10815 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10817 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10818 to "NODE", since this works on a "tree", not an
10820 (CONSTANT_CLASS_P): Likewise.
10821 (TYPE_P): Likewise.
10822 (DECL_P): Likewise.
10823 (INDIRECT_REF_P): Likewise.
10824 (REFERENCE_CLASS_P): Likewise.
10825 (COMPARISON_CLASS_P): Likewise.
10826 (UNARY_CLASS_P): Likewise.
10827 (BINARY_CLASS_P): Likewise.
10828 (STATEMENT_CLASS_P): Likewise.
10829 (VL_EXP_CLASS_P): Likewise.
10830 (EXPRESSION_CLASS_P): Likewise.
10831 (IS_TYPE_OR_DECL_P): Likewise.
10833 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10835 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10836 ADDR_EXPR in the defining statement.
10838 2013-10-25 Richard Biener <rguenther@suse.de>
10840 PR tree-optimization/58626
10841 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10842 anti_dd, output_dd and input_dd.
10843 (struct rdg_edge): Remove level and relation members.
10844 (RDGE_LEVEL, RDGE_RELATION): Remove.
10845 (dot_rdg_1): Adjust.
10846 (create_rdg_edge_for_ddr): Remove.
10847 (create_rdg_edges_for_scalar): Adjust.
10848 (create_edge_for_control_dependence): Likewise.
10849 (create_rdg_edges): Split into ...
10850 (create_rdg_flow_edges): ... this
10851 (create_rdg_cd_edges): ... and this.
10852 (free_rdg): Adjust.
10853 (build_rdg): Likewise, do not compute data dependences or
10854 add edges for them.
10855 (pg_add_dependence_edges): New function.
10857 (distribute_loop): First apply all non-dependence based
10858 partition mergings. Then compute dependences between partitions
10859 and merge and order partitions according to them.
10861 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10863 PR rtl-optimization/58831
10864 * alias.c (init_alias_analysis): At the beginning of each iteration,
10865 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
10867 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10869 * recog.c (search_ofs): New static variable moved from...
10870 (peep2_find_free_register): ...here.
10871 (peephole2_optimize): Initialize it.
10873 2013-10-25 Tobias Burnus <burnus@net-b.de>
10875 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
10877 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
10879 * config/i386/i386.h (TARGET_MPX): New define.
10880 (TARGET_MPX_P): Ditto.
10882 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10884 * config/i386/constraints.md (B): New.
10887 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
10888 * config/i386/i386-modes.def (BND32): New.
10890 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
10891 * config/i386/i386.c (isa_opts): Add mmpx.
10892 (regclass_map): Add bound registers.
10893 (dbx_register_map): Likewise.
10894 (dbx64_register_map): Likewise.
10895 (svr4_dbx_register_map): Likewise.
10897 (ix86_option_override_internal): Support MPX ISA.
10898 (ix86_conditional_register_usage): Support bound registers.
10899 (print_reg): Likewise.
10900 (ix86_code_end): Add MPX bnd prefix.
10901 (output_set_got): Likewise.
10902 (ix86_output_call_insn): Likewise.
10903 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
10904 (ix86_print_operand_punct_valid_p): Likewise.
10905 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
10907 (ix86_class_likely_spilled_p): Add bound regs support.
10908 (ix86_hard_regno_mode_ok): Likewise.
10909 (x86_order_regs_for_local_alloc): Likewise.
10910 (ix86_bnd_prefixed_insn_p): New.
10911 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
10912 (FIXED_REGISTERS): Add bound registers.
10913 (CALL_USED_REGISTERS): Likewise.
10914 (REG_ALLOC_ORDER): Likewise.
10915 (HARD_REGNO_NREGS): Likewise.
10917 (VALID_BND_REG_MODE): New.
10918 (FIRST_BND_REG): New.
10919 (LAST_BND_REG): New.
10920 (reg_class): Add BND_REGS.
10921 (REG_CLASS_NAMES): Likewise.
10922 (REG_CLASS_CONTENTS): Likewise.
10923 (BND_REGNO_P): New.
10924 (ANY_BND_REG_P): New.
10926 (HI_REGISTER_NAMES): Add bound registers.
10927 * config/i386/i386.md (UNSPEC_BNDMK): New.
10928 (UNSPEC_BNDMK_ADDR): New.
10929 (UNSPEC_BNDSTX): New.
10930 (UNSPEC_BNDLDX): New.
10931 (UNSPEC_BNDLDX_ADDR): New.
10932 (UNSPEC_BNDCL): New.
10933 (UNSPEC_BNDCU): New.
10934 (UNSPEC_BNDCN): New.
10935 (UNSPEC_MPX_FENCE): New.
10938 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
10939 (length_immediate): Likewise.
10940 (prefix_0f): Likewise.
10941 (memory): Likewise.
10942 (prefix_rep): Check for bnd prefix.
10943 (length_nobnd): New.
10944 (length): Use length_nobnd if specified.
10949 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
10950 (*jcc_2): Likewise.
10952 (simple_return_internal): Likewise.
10953 (simple_return_pop_internal): Likewise.
10954 (*indirect_jump): Add MPX bnd prefix.
10955 (*tablejump_1): Likewise.
10956 (simple_return_internal_long): Likewise.
10957 (simple_return_indirect_internal): Likewise.
10961 (*mov<mode>_internal_mpx): New.
10962 (<mode>_<bndcheck>): New.
10963 (*<mode>_<bndcheck>): New.
10965 (*<mode>_ldx): New.
10967 (*<mode>_stx): New.
10968 * config/i386/predicates.md (lea_address_operand): Rename to...
10969 (address_no_seg_operand): ... this.
10970 (address_mpx_no_base_operand): New.
10971 (address_mpx_no_index_operand): New.
10972 (bnd_mem_operator): New.
10973 * config/i386/i386.opt (mmpx): New.
10974 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
10975 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
10977 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10979 * mode-classes.def (MODE_POINTER_BOUNDS): New.
10980 * tree.def (POINTER_BOUNDS_TYPE): New.
10981 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
10982 (POINTER_BOUNDS_MODE): New.
10983 (make_pointer_bounds_mode): New.
10984 * machmode.h (POINTER_BOUNDS_MODE_P): New.
10985 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
10986 (layout_type): Support POINTER_BOUNDS_TYPE.
10987 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
10988 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
10989 (type_contains_placeholder_1): Likewise.
10990 * tree.h (POINTER_BOUNDS_TYPE_P): New.
10991 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
10992 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
10994 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10996 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
10997 mode of address computation when calling memory_address_addr_space.
10999 2013-08-24 Richard Henderson <rth@twiddle.net>
11002 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11003 instead of create_convert_operand_to.
11004 (maybe_emit_sync_lock_test_and_set): Likewise.
11005 (expand_atomic_compare_and_swap): Likewise.
11006 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11008 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11010 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11011 Change param_is to use the struct and not the pointer to the struct.
11013 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11015 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11016 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11017 Move to targhooks.c.
11018 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11019 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11020 Relocate from gimplify.c.
11021 * targhooks.h: Add 2 prototypes.
11022 * tree.h: Delete 2 prototypes.
11024 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11026 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11027 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11029 2013-10-24 Cong Hou <congh@google.com>
11031 * convert.c (convert_to_real): Guard those unsafe math function
11032 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11035 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11038 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11040 (cgraph_create_edge): Use the new argument.
11041 (cgraph_create_indirect_edge): Likewise.
11043 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11045 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11046 TYPE_UNCOND_BRANCH.
11047 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11048 changes statep->state.
11050 2013-10-24 Tobias Burnus <burnus@net-b.de>
11053 * tree-cfg.c (replace_loop_annotate): New function.
11054 (execute_build_cfg): Call it.
11055 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11056 * internal-fn.c (expand_ANNOTATE): New function.
11057 * internal-fn.def (ANNOTATE): Define as new internal function.
11058 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11059 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11060 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11061 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11062 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11064 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11065 Marcus Shawcroft <marcus.shawcroft@arm.com>
11067 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11068 Special case reload SP+C into none GENERAL_REGS.
11070 2013-10-24 Michael Matz <matz@suse.de>
11072 * gengtype.c (is_file_equal): Check that files will be same length.
11074 2013-10-25 Christian Bruel <christian.bruel@st.com>
11076 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11077 * config/sh/t-sh (sh-mem.o): New rule.
11078 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11079 (sh_expand_cmpstr): New function.
11080 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11081 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11082 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11083 (rotlhi3_8): Rename.
11085 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11087 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11088 * Makefile.in (CXXDEPMODE): Assign and change users.
11089 (CCDEPMODE): Delete.
11090 * configure: Regenerate.
11092 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11094 * gengtype-parse.c (require_without_advance): New.
11095 (type): For GTY-marked types that are not GTY((user)), parse any
11096 base classes, requiring them to be single-inheritance, and not
11097 be templates. For non-GTY-marked types and GTY((user)),
11098 continue to skip over any C++ inheritance specification.
11099 * gengtype-state.c (state_writer::write_state_struct_type):
11100 Write base class of type (if any).
11101 (read_state_struct_type): Read base class of type (if any).
11102 * gengtype.c (new_structure): Add a "base_class" parameter.
11103 (create_optional_field_): Update for new parameter to new_structure.
11104 (adjust_field_rtx_def): Likewise.
11105 (adjust_field_tree_exp): Likewise.
11106 * gengtype.h (struct type): Add "base_class" field to the s
11108 (new_structure): Add "base" parameter.
11110 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11113 * config/i386/i386.c (ix86_option_override_internal):
11114 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11115 (ix86_valid_target_attribute_tree):
11116 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11117 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11119 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11121 * tree-ssa-loop.h: Remove include files.
11122 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11123 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11124 * graphite-clast-to-gimple.c: Likewise.
11125 * graphite-scop-detection.c: Likewise.
11126 * graphite-sese-to-poly.c: Likewise.
11127 * ipa-inline-analysis.c: Likewise.
11128 * ipa-pure-const.c: Likewise.
11129 * loop-init.c: Likewise.
11130 * passes.c: Likewise.
11131 * predict.c: Likewise.
11132 * tree-cfg.c: Likewise.
11133 * tree-cfgcleanup.c: Likewise.
11134 * tree-chrec.c: Likewise.
11135 * tree-data-ref.c: Likewise.
11136 * tree-loop-distribution.c: Likewise.
11137 * tree-parloops.c: Likewise.
11138 * tree-predcom.c: Likewise.
11139 * tree-scalar-evolution.c: Likewise.
11140 * tree-ssa-address.c: Likewise.
11141 * tree-ssa.c: Likewise.
11142 * tree-ssa-dce.c: Likewise.
11143 * tree-ssa-loop.c: Likewise.
11144 * tree-ssa-loop-im.c: Likewise.
11145 * tree-ssa-loop-ivcanon.c: Likewise.
11146 * tree-ssa-loop-ivopts.c: Likewise.
11147 * tree-ssa-loop-manip.c: Likewise.
11148 * tree-ssa-loop-niter.c: Likewise.
11149 * tree-ssa-loop-prefetch.c: Likewise.
11150 * tree-ssa-loop-unswitch.c: Likewise.
11151 * tree-ssa-reassoc.c: Likewise.
11152 * tree-vect-data-refs.c: Likewise.
11153 * tree-vect-loop.c: Likewise.
11154 * tree-vect-loop-manip.c: Likewise.
11155 * tree-vectorizer.c: Likewise.
11156 * tree-vect-stmts.c: Likewise.
11157 * tree-vrp.c: Likewise.
11159 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11161 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11163 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11165 PR tree-optimization/58775
11166 PR tree-optimization/58791
11167 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11168 (insert_stmt_after): Rewritten, don't move the stmt, but really
11170 (get_stmt_uid_with_default): Remove.
11171 (build_and_add_sum): Use insert_stmt_after and
11172 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11173 (update_range_test): Set uid on stmts added by
11174 force_gimple_operand_gsi. Don't immediately modify statements
11175 in inter-bb optimization, just update oe->op values.
11176 (optimize_range_tests): Return bool whether any changed have been made.
11177 (update_ops): New function.
11178 (struct inter_bb_range_test_entry): New type.
11179 (maybe_optimize_range_tests): Perform statement changes here.
11180 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11181 ensure_ops_are_available): Remove.
11182 (find_insert_point): Rewritten.
11183 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11184 return LHS of the (new resp. old) stmt. Don't call
11185 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11186 instead of last, move new stmt at the right place.
11187 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11188 (negate_value): Likewise. Set uids.
11189 (break_up_subtract_bb): Initialize uids.
11190 (reassociate_bb): Adjust rewrite_expr_tree caller.
11191 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11193 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11196 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11197 TARGET_32BIT final condition.
11198 (mulsi3_internal2 and splitter): Same.
11200 2013-10-23 Jeff Law <law@redhat.com>
11202 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11203 through joiner blocks with abnormal outgoing edges.
11205 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11206 Add parameter JOINERS, to allow/disallow threading through joiner
11208 (thread_block): New. Call thread_block_1.
11209 (mark_threaded_blocks): Remove code to filter out certain cases
11210 of threading through joiner blocks.
11211 (thread_through_all_blocks): Document how we can have a dangling
11212 edge AUX field and clear it.
11214 2013-10-23 Ian Lance Taylor <iant@google.com>
11216 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11217 (C++ Dialect Options): Likewise.
11218 (Optimize Options): Likewise.
11220 2013-10-23 Tom de Vries <tom@codesourcery.com>
11222 PR tree-optimization/58805
11223 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11225 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11227 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11228 sequence based on get_range_info returned range.
11230 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11232 * tree-ssa.h: Remove all #include's
11233 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11234 * alias.c: Move required includes from tree-ssa.h.
11235 * asan.c: Likewise.
11236 * builtins.c: Likewise.
11237 * calls.c: Likewise.
11238 * cfgexpand.c: Likewise.
11239 * cfghooks.c: Likewise.
11240 * cfgloop.c: Likewise.
11241 * cfgloopmanip.c: Likewise.
11242 * cgraph.c: Likewise.
11243 * cgraphbuild.c: Likewise.
11244 * cgraphclones.c: Likewise.
11245 * cgraphunit.c: Likewise.
11247 * except.c: Likewise.
11248 * expr.c: Likewise.
11249 * final.c: Likewise.
11250 * fold-const.c: Likewise.
11251 * ggc-page.c: Likewise.
11252 * gimple-builder.c: Likewise.
11253 * gimple-fold.c: Likewise.
11254 * gimple-iterator.c: Likewise.
11255 * gimple-low.c: Likewise.
11256 * gimple-pretty-print.c: Likewise.
11257 * gimple-ssa-strength-reduction.c: Likewise.
11258 * gimple-streamer-in.c: Likewise.
11259 * gimple-streamer-out.c: Likewise.
11260 * gimplify.c: Likewise.
11261 * graphite-blocking.c: Likewise.
11262 * graphite-clast-to-gimple.c: Likewise.
11263 * graphite-dependences.c: Likewise.
11264 * graphite-interchange.c: Likewise.
11265 * graphite-optimize-isl.c: Likewise.
11266 * graphite-poly.c: Likewise.
11267 * graphite-scop-detection.c: Likewise.
11268 * graphite-sese-to-poly.c: Likewise.
11269 * graphite.c: Likewise.
11270 * ipa-cp.c: Likewise.
11271 * ipa-inline-analysis.c: Likewise.
11272 * ipa-inline-transform.c: Likewise.
11273 * ipa-inline.c: Likewise.
11274 * ipa-prop.c: Likewise.
11275 * ipa-pure-const.c: Likewise.
11276 * ipa-reference.c: Likewise.
11277 * ipa-split.c: Likewise.
11278 * ipa-utils.c: Likewise.
11279 * loop-init.c: Likewise.
11280 * lto-cgraph.c: Likewise.
11281 * lto-section-in.c: Likewise.
11282 * lto-section-out.c: Likewise.
11283 * lto-streamer-in.c: Likewise.
11284 * lto-streamer-out.c: Likewise.
11285 * lto-streamer.c: Likewise.
11286 * omp-low.c: Likewise.
11287 * passes.c: Likewise.
11288 * predict.c: Likewise.
11289 * print-tree.c: Likewise.
11290 * profile.c: Likewise.
11291 * sese.c: Likewise.
11292 * targhooks.c: Likewise.
11293 * tracer.c: Likewise.
11294 * trans-mem.c: Likewise.
11295 * tree-call-cdce.c: Likewise.
11296 * tree-cfg.c: Likewise.
11297 * tree-cfgcleanup.c: Likewise.
11298 * tree-chrec.c: Likewise.
11299 * tree-complex.c: Likewise.
11300 * tree-data-ref.c: Likewise.
11301 * tree-dfa.c: Likewise.
11302 * tree-eh.c: Likewise.
11303 * tree-emutls.c: Likewise.
11304 * tree-if-conv.c: Likewise.
11305 * tree-inline.c: Likewise.
11306 * tree-into-ssa.c: Likewise.
11307 * tree-loop-distribution.c: Likewise.
11308 * tree-mudflap.c: Likewise.
11309 * tree-nested.c: Likewise.
11310 * tree-nrv.c: Likewise.
11311 * tree-object-size.c: Likewise.
11312 * tree-outof-ssa.c: Likewise.
11313 * tree-parloops.c: Likewise.
11314 * tree-phinodes.c: Likewise.
11315 * tree-predcom.c: Likewise.
11316 * tree-pretty-print.c: Likewise.
11317 * tree-profile.c: Likewise.
11318 * tree-scalar-evolution.c: Likewise.
11319 * tree-sra.c: Likewise.
11320 * tree-ssa-address.c: Likewise.
11321 * tree-ssa-alias.c: Likewise.
11322 * tree-ssa-ccp.c: Likewise.
11323 * tree-ssa-coalesce.c: Likewise.
11324 * tree-ssa-copy.c: Likewise.
11325 * tree-ssa-copyrename.c: Likewise.
11326 * tree-ssa-dce.c: Likewise.
11327 * tree-ssa-dom.c: Likewise.
11328 * tree-ssa-dse.c: Likewise.
11329 * tree-ssa-forwprop.c: Likewise.
11330 * tree-ssa-ifcombine.c: Likewise.
11331 * tree-ssa-live.c: Likewise.
11332 * tree-ssa-loop-ch.c: Likewise.
11333 * tree-ssa-loop-im.c: Likewise.
11334 * tree-ssa-loop-ivcanon.c: Likewise.
11335 * tree-ssa-loop-ivopts.c: Likewise.
11336 * tree-ssa-loop-manip.c: Likewise.
11337 * tree-ssa-loop-niter.c: Likewise.
11338 * tree-ssa-loop-prefetch.c: Likewise.
11339 * tree-ssa-loop-unswitch.c: Likewise.
11340 * tree-ssa-loop.c: Likewise.
11341 * tree-ssa-math-opts.c: Likewise.
11342 * tree-ssa-operands.c: Likewise.
11343 * tree-ssa-phiopt.c: Likewise.
11344 * tree-ssa-phiprop.c: Likewise.
11345 * tree-ssa-pre.c: Likewise.
11346 * tree-ssa-propagate.c: Likewise.
11347 * tree-ssa-reassoc.c: Likewise.
11348 * tree-ssa-sccvn.c: Likewise.
11349 * tree-ssa-sink.c: Likewise.
11350 * tree-ssa-strlen.c: Likewise.
11351 * tree-ssa-structalias.c: Likewise.
11352 * tree-ssa-tail-merge.c: Likewise.
11353 * tree-ssa-ter.c: Likewise.
11354 * tree-ssa-threadedge.c: Likewise.
11355 * tree-ssa-threadupdate.c: Likewise.
11356 * tree-ssa-uncprop.c: Likewise.
11357 * tree-ssa-uninit.c: Likewise.
11358 * tree-ssa.c: Likewise.
11359 * tree-ssanames.c: Likewise.
11360 * tree-stdarg.c: Likewise.
11361 * tree-streamer-in.c: Likewise.
11362 * tree-switch-conversion.c: Likewise.
11363 * tree-tailcall.c: Likewise.
11364 * tree-vect-data-refs.c: Likewise.
11365 * tree-vect-generic.c: Likewise.
11366 * tree-vect-loop-manip.c: Likewise.
11367 * tree-vect-loop.c: Likewise.
11368 * tree-vect-patterns.c: Likewise.
11369 * tree-vect-slp.c: Likewise.
11370 * tree-vect-stmts.c: Likewise.
11371 * tree-vectorizer.c: Likewise.
11372 * tree-vrp.c: Likewise.
11373 * tree.c: Likewise.
11374 * tsan.c: Likewise.
11375 * value-prof.c: Likewise.
11376 * var-tracking.c: Likewise.
11377 * varpool.c: Likewise.
11378 * vtable-verify.c: Likewise.
11380 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11382 * config/tilegx/tilegx.c: Include "tree.h".
11384 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11386 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11387 the info, not after it.
11388 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11389 dump_ssaname_info call.
11390 (pp_gimple_stmt_1): Adjust caller.
11391 (dump_phi_nodes): Likewise. Don't print "# " here.
11393 2013-10-22 Jan Hubicka <jh@suse.cz>
11395 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11397 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11398 * i386.c (expand_small_movmem_or_setmem): New function.
11399 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11401 (alg_usable_p): Add support for value ranges; cleanup.
11402 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11404 2013-10-22 Sterling Augustine <saugustine@google.com>
11406 * doc/invoke.texi: Document -ggnu-pubnames.
11407 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11409 * dwarf2out.c: Include gdb/gdb-index.h.
11410 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11411 debug_generate_pub_sections.
11412 (is_java, output_pubtables, output_pubname): New functions.
11413 (include_pubname_in_output): Handle debug_generate_pub_sections at
11415 (size_of_pubnames): Use new local space_for_flags based on
11416 debug_generate_pub_sections.
11417 (output_pubnames): Unify pubnames and pubtypes output logic.
11418 Genericize comments. Call output_pubname.
11419 (dwarf2out_finish): Move logic to output_pubnames and call it.
11421 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11424 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11425 Remove CCCmode handling.
11426 <case LTU>: Return 'c' suffix for CCCmode.
11427 <case GEU>: Return 'nc' suffix for CCCmode.
11428 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11429 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11430 (*sub<mode>3_cc_overflow): Ditto.
11431 (*subsi3_zext_cc_overflow): Ditto.
11433 2013-10-22 Steve Ellcey <sellcey@mips.com>
11435 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11436 (AND (NOT OP1) (NOT OP2)).
11438 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11440 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11441 meaning of merge-high and merge-low masks for little endian; avoid
11442 use of vector-pack masks for little endian for mismatched modes.
11444 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11446 * config/tilepro/tilepro.c: Include "tree.h".
11448 2013-10-22 Andreas Schwab <schwab@suse.de>
11450 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11453 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11455 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11456 [Ed Smith-Rowland]): New entries.
11457 ([Stephen M. Webb]): Update.
11459 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11461 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11463 2013-10-21 Marek Polacek <polacek@redhat.com>
11465 PR middle-end/58809
11466 * fold-const.c (fold_range_test): Return 0 if the type is not
11469 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11471 * system.h: Move hwint.h include further down.
11472 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11473 gcc_checking_asserts.
11474 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11476 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11478 Fix volatile issues in optimize_bit_field_compare.
11479 * fold-const.c (optimize_bit_field_compare): Bail out if
11480 lvolatilep or rvolatilep.
11482 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11484 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11485 and get_inner_reference returning different pmode for non-volatile
11486 bit-field members dependent on flag_strict_volatile_bitfields.
11487 * stor-layout.c (layout_decl): Remove special handling of
11488 flag_strict_volatile_bitfields.
11489 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11490 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11492 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11494 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11497 2013-10-21 Jeff Law <law@redhat.com>
11499 * tree-ssa-threadedge.c (thread_through_normal_block): New
11500 argument VISITED. Remove VISISTED as a local variable. When we
11501 have a threadable jump, verify the destination of the jump has not
11503 (thread_across_edge): Allocate VISITED bitmap once at function
11504 scope and use it throughout. Make sure to set appropriate bits in
11505 VISITED for E (start of jump thread path).
11506 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11507 through a joiner if any edge on the path has a recorded jump thread.
11509 2013-10-21 Ian Lance Taylor <iant@google.com>
11511 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11512 don't imply that attributes can solve all problems.
11513 (Directory Options): Fix typo.
11515 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11517 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11518 extend and extend_add.
11520 2013-10-21 Richard Biener <rguenther@suse.de>
11522 PR tree-optimization/58794
11523 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11524 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11526 2013-10-21 Richard Biener <rguenther@suse.de>
11528 PR middle-end/58742
11529 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11530 to (T) X for sign-changing conversions (or no conversion).
11532 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11534 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11536 2013-10-20 Jan Hubicka <jh@suse.cz>
11538 * config/i386/i386-tune.def: Add comment; organize into categories
11540 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11542 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11543 argument. Update function comment.
11544 (expand_set_or_movmem_via_rep): New function combining
11545 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11546 (expand_movmem_via_rep_mov): Remove.
11547 expand_setmem_via_rep_stos): Remove.
11548 (expand_movmem_epilogue): Update calls correspondingly.
11549 (expand_setmem_epilogue_via_loop): Likewise.
11550 (emit_memset): New.
11551 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11552 (expand_set_or_movmem_prologue): New function combining
11553 expand_movmem_prologue and expand_setmem_prologue.
11554 (expand_movmem_prologue): Remove.
11555 (expand_setmem_prologue): Remove.
11556 (expand_set_or_movmem_constant_prologue): New function combining
11557 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11558 (expand_constant_movmem_prologue): Remove.
11559 (expand_constant_setmem_prologue): Remove.
11560 (promote_duplicated_reg): Allow vector-const0 value.
11561 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11562 and ix86_expand_setmem.
11563 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11564 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11566 2013-10-21 Diego Novillo <dnovillo@google.com>
11568 * asan.c: Include tree.h
11569 * bb-reorder.c: Likewise.
11570 * cfgcleanup.c: Likewise.
11571 * cfgloopmanip.c: Likewise.
11572 * data-streamer-in.c: Likewise.
11573 * data-streamer-out.c: Likewise.
11574 * data-streamer.c: Likewise.
11575 * dwarf2cfi.c: Likewise.
11576 * graphite-blocking.c: Likewise.
11577 * graphite-clast-to-gimple.c: Likewise.
11578 * graphite-dependences.c: Likewise.
11579 * graphite-interchange.c: Likewise.
11580 * graphite-optimize-isl.c: Likewise.
11581 * graphite-poly.c: Likewise.
11582 * graphite-scop-detection.c: Likewise.
11583 * graphite-sese-to-poly.c: Likewise.
11584 * graphite.c: Likewise.
11585 * ipa-devirt.c: Likewise.
11586 * ipa-profile.c: Likewise.
11589 * loop-init.c: Likewise.
11590 * loop-unroll.c: Likewise.
11591 * lower-subreg.c: Likewise.
11592 * lto/lto-object.c: Likewise.
11593 * recog.c: Likewise.
11594 * reginfo.c: Likewise.
11595 * tree-loop-distribution.c: Likewise.
11596 * tree-parloops.c: Likewise.
11597 * tree-ssa-strlen.c: Likewise.
11598 * tree-streamer.c: Likewise.
11599 * value-prof.c: Likewise.
11600 * target-globals.c: Likewise.
11601 * expr.h: Include tree-core.h instead of tree.h.
11602 * gimple.h: Likewise.
11603 * ipa-prop.h: Likewise.
11604 * ipa-utils.h: Likewise.
11605 * lto-streamer.h: Likewise.
11606 * streamer-hooks.h: Likewise.
11607 * ipa-reference.h: Include cgraph.h instead of tree.h.
11608 * cgraph.h: Include basic-block.h instead of tree.h.
11609 * tree-streamer.h: Do not include tree.h.
11610 * genattrtab.c (write_header): Generate inclusion of tree.h.
11611 * genautomata.c (main): Likewise.
11612 * genemit.c: Likewise.
11613 * genopinit.c: Likewise.
11614 * genoutput.c (output_prologue): Likewise.
11615 * genpeep.c: Likewise.
11617 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11619 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11621 (vec_unpacku_hi_v8hi): Likewise.
11622 (vec_unpacku_lo_v16qi): Likewise.
11623 (vec_unpacku_lo_v8hi): Likewise.
11625 2013-10-20 Jan Hubicka <jh@suse.cz>
11627 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11628 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11629 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11631 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11633 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11634 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11636 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11638 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11641 * system.h: Undef m_slot.
11643 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11645 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11646 all elements for both endian flavors.
11648 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11651 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11652 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11653 and SI_REG for 64bit SYSV ABI targets.
11655 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11657 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11658 to multi_reg_return. Clarify that we are skipping USEs of multiple
11659 return registers. Use bool type where appropriate.
11661 2013-10-18 Jan Hubicka <jh@suse.cz>
11663 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11664 for cold functions.
11665 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11666 (X86_TUNE_PUSH_MEMORY): Likewise.
11667 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11668 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11669 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11671 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11672 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11674 (ix86_option_override_internal): Update to use tune features instead
11677 2013-10-18 Cong Hou <congh@google.com>
11679 PR tree-optimization/58508
11680 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11681 statement that contains data refs with zero-step.
11683 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11685 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11686 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11687 * gimple-low.c (gimple_check_call_arg,
11688 gimple_check_call_matching_types): Move to cgraph.c.
11689 * gimple-low.h: Remove prototype.
11690 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11691 Relocate from gimple-low.c.
11692 * cgraph.h: Add prototype. Don't include basic-block.h.
11693 * gimplify.c: Add gimple-low to include list.
11694 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11695 * tree-eh.c: Add gimple-low to include list.
11696 * tree-nested.c: Likewise.
11697 * cfgexpand.c: Add tree-ssa-address.h to include list.
11698 * expr.c: Likewise.
11699 * gimple-fold.c: Likewise.
11700 * gimple-ssa-strength-reduction.c: Likewise.
11701 * trans-mem.c: Likewise.
11702 * tree-mudflap.c: Likewise.
11703 * tree-ssa-loop-ivopts.c: Likewise.
11704 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11705 (degenerate_phi_result): Move to tree-phinodes.c.
11706 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11707 * tree-ssa-threadedge.c: Likewise.
11708 * tree-vrp.c: Likewise.
11709 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11710 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11711 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11712 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11713 * tree-ssa-forwprop.c: Likewise.
11714 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11715 pass_data_cleanup_cfg_post_optimizing,
11716 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11717 * tree-optimize.c: Delete File.
11718 * graphite.c: Include tree-cfgcleanup.h.
11719 * passes.c: Likewise.
11720 * tree-cfg.c: Likewise.
11721 * tree-profile.c: Likewise.
11722 * tree-ssa-dse.c: Likewise.
11723 * tree-ssa-loop-ivcanon.c: Likewise.
11724 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11725 * tree-outof-ssa.c: Include sbitmap.h.
11726 * tree-ssa-live.c: Likewise.
11727 * tree-ssa-propagate.c: Likewise.
11728 * tree-ssa-structalias.c: Likewise.
11729 * tree-stdarg.c: Likewise.
11730 * Makefile.in (OBJS): Delete tree-optimize.o.
11731 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11732 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11733 * varasm.c: Include basic-block.h.
11734 * cfgloop.h: Include function.h instead of basic-block.h
11735 (bb_loop_depth): Move to cfgloop.c.
11736 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11738 2013-10-18 Teresa Johnson <tejohnson@google.com>
11740 * predict.c (probably_never_executed): Compare frequency-based
11741 count to number of training runs.
11742 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11744 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11746 * config/arm/arm.c (cortexa9_extra_costs): New table.
11747 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11749 2013-10-18 Jeff Law <law@redhat.com>
11751 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11753 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11754 (register_jump_thread): Add "registered_jump_thread" debug
11756 * dbgcnt.def (registered_jump_thread): New debug counter.
11758 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11760 * config/rs6000/rs6000.c: Include cgraph.h.
11762 2013-10-18 Teresa Johnson <tejohnson@google.com>
11764 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11765 weights during merging.
11767 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11769 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11770 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11771 * tree-ssa-operands.h: Remove prototype.
11772 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11773 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11774 * gimple.h: Add prototype.
11775 * gimple-ssa.h: Include tree-ssa-operands.h.
11776 * tree-dump.c: Add tree-cfg.h to include list.
11777 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11778 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11779 * config/i386/i386.c: Don't include tree-flow.h.
11780 * config/rs6000/rs6000.c: Likewise.
11782 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11784 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11786 2013-10-18 Richard Biener <rguenther@suse.de>
11788 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11789 or TYPE_UNSIGNED of integral types.
11790 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11791 NULL_TREE for zero-precision integral types.
11793 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11795 * config/aarch64/arm_neon.h
11796 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11798 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11801 * opth-gen.awk: Define target_flags_explicit.
11803 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11805 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11806 fields to the reg_addr array that describes the valid addressing
11807 mode for any register, general purpose registers, floating point
11808 registers, and Altivec registers.
11809 (FIRST_RELOAD_REG_CLASS): Likewise.
11810 (LAST_RELOAD_REG_CLASS): Likewise.
11811 (struct reload_reg_map_type): Likewise.
11812 (reload_reg_map_type): Likewise.
11813 (RELOAD_REG_VALID): Likewise.
11814 (RELOAD_REG_MULTIPLE): Likewise.
11815 (RELOAD_REG_INDEXED): Likewise.
11816 (RELOAD_REG_OFFSET): Likewise.
11817 (RELOAD_REG_PRE_INCDEC): Likewise.
11818 (RELOAD_REG_PRE_MODIFY): Likewise.
11819 (reg_addr): Likewise.
11820 (mode_supports_pre_incdec_p): New helper functions to say whether
11821 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11822 (mode_supports_pre_modify_p): Likewise.
11823 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11824 print the valid address mode bits for each mode.
11825 (rs6000_debug_print_mode): Likewise.
11826 (rs6000_debug_reg_global): Likewise.
11827 (rs6000_setup_reg_addr_masks): New function to set up the address
11828 mask bits for each type.
11829 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11830 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11831 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11832 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11833 PRE_MODIFY are supported.
11834 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11835 registers, instead of {src,dest}_av_p.
11836 (rs6000_print_options_internal): Tweak the debug output slightly.
11838 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11840 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11843 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11845 * tree-flow.h (struct omp_region): Move to omp-low.c.
11846 Remove omp_ prototypes and variables.
11847 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11848 (copy_var_decl): Relocate prototype from tree-flow.h.
11849 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11850 * tree.h: Move prototype to omp-low.h.
11851 * omp-low.h: New File. Relocate prototypes here.
11852 * omp-low.c (struct omp_region): Make local here.
11853 (root_omp_region): Make static.
11854 (copy_var_decl) Move to gimple.c.
11855 (new_omp_region): Make static.
11856 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
11857 * tree-cfg.c: Include omp-low.h.
11858 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
11859 * gimplify.c: Include omp-low.h.
11860 * tree-parloops.c: Likewise.
11862 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11864 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
11865 operands are in memory, prefer to force non-matched operand 1 to
11868 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11871 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
11872 restrict TImode addresses to single indirect registers if both
11873 -mquad-memory and -mvsx-timode are used.
11874 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
11875 we should emit load/store quad. Remove using %y for quad memory
11878 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
11879 constraints to allow load/store quad on machines where TImode is
11880 not allowed in VSX registers. Use 'n' instead of 'F' constraint
11881 for TImode to load integer constants.
11883 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11885 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
11887 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
11889 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
11890 handling of STACK_REG.
11892 2013-10-17 Richard Biener <rguenther@suse.de>
11894 PR tree-optimization/58143
11895 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
11897 (rewrite_to_defined_overflow): Likewise.
11898 (move_computations_dom_walker::before_dom): Rewrite stmts
11899 with undefined signed overflow that are not always executed
11900 into unsigned arithmetic.
11902 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11905 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
11906 explicit isa flag to be an options variable, instead of using
11907 global_options_set. Remove define from rs6000.h.
11908 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
11910 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11911 Initialize rs6000_isa_flags_explicit.
11912 (rs6000_function_specific_save): Add gcc_options* parameter, so
11913 that the powerpc builds after the 2013-10-15 changes.
11914 (rs6000_function_specific_restore): Likewise.
11916 2013-10-16 DJ Delorie <dj@redhat.com>
11918 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
11919 op is a REG before checking REGNO.
11920 (rl78_alloc_physical_registers): Verify pattern is a SET before
11923 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11925 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
11927 (vec_unpacks_lo_v4sf): Likewise.
11928 (vec_unpacks_float_hi_v4si): Likewise.
11929 (vec_unpacks_float_lo_v4si): Likewise.
11930 (vec_unpacku_float_hi_v4si): Likewise.
11931 (vec_unpacku_float_lo_v4si): Likewise.
11933 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11935 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
11936 (vsx_concat_v2sf): Likewise.
11938 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
11940 * config/aarch64/aarch64.md
11941 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
11943 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
11945 PR tree-optimization/58697
11946 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
11947 estimated_loop_iterations_int.
11948 (max_stmt_executions_int): Call get_max_loop_iterations_int.
11949 (get_max_loop_iterations_int): New. HWINT version of
11950 get_max_loop_iterations.
11951 * cfgloop.h: Add prototypes.
11952 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
11953 * loop-unroll.c (decide_peel_once_rolling): Call
11954 get_estimated_loop_iterations_int.
11955 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
11956 * tree-ssa-loop-niter.h: Tweak prototypes.
11958 2013-10-16 David Malcolm <dmalcolm@redhat.com>
11960 * gengtype-parse.c (struct_field_seq): Ignore access-control
11961 keywords ("public:" etc).
11963 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
11965 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
11966 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
11968 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
11970 * config/arm/arm.opt (mlra): New option.
11971 * config/arm/arm.c (arm_lra_p): New function.
11972 (TARGET_LRA_P): Define.
11974 2013-10-16 Paulo Matos <pmatos@broadcom.com>
11976 * tree-core.h (tree_code_name): Remove.
11977 * tree.h (get_tree_code_name): New prototype.
11978 * tree.c (tree_code_name): Make static.
11979 (get_tree_code_name): New function.
11980 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
11981 tree_class_check_failed, tree_range_check_failed,
11982 tree_not_class_check_failed, omp_clause_check_failed,
11983 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
11984 wrapper get_tree_code_name instead of calling tree_code_name directly.
11985 * tree-vrp.c (dump_asserts_for): Likewise.
11986 * tree-dump.c (dequeue_and_dump): Likewise.
11987 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
11988 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
11989 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
11990 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
11991 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11992 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
11993 dump_gimple_omp_for): Likewise.
11994 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
11995 * tree-ssa-pre.c (print_pre_expr): Likewise.
11996 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
11997 * print-tree.c (print_node_brief, print_node): Likewise.
11998 * gimple.c (gimple_check_failed): Likewise.
11999 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12000 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12001 * config/mep/mep.c (mep_validate_vliw): Likewise.
12002 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12003 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12005 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12007 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12010 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12012 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12013 (MULTILIB_MATCHES): Add multilib for -march=v8.
12015 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12018 * optc-save-gen.awk: Add extra parameter to the save and restore
12020 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12021 * tree.c (build_optimization_node): New parameter. Add extra parameter
12022 to call to cl_optimization_save.
12023 (build_target_option_node): New parameter. Add extra parameter
12024 to call to cl_target_option_save.
12025 * tree.h (build_optimization_node): New parameter.
12026 (build_target_option_node): New parameter.
12027 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12028 build_optimization_node and build_target_option_node.
12029 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12030 (handle_pragma_push_options): Ditto.
12031 * toplev.c (process_options): Ditto.
12032 * opts.c (init_options_struct): Check for opts_set non-null.
12033 * target.def (target_option.save): New parameter.
12034 (target_option.restore): New parameter.
12035 * tm.texi: Generate.
12036 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12037 (ix86_pragma_target_parse): Ditto.
12038 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12041 to build_optimization_node and build_target_option_node.
12042 (rs6000_valid_attribute_p): Ditto.
12043 (rs6000_pragma_target_parse): Ditto.
12044 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12046 * config/i386/i386.h:
12047 TARGET_64BIT_P: New Macro
12048 TARGET_MMX_P: New Macro.
12049 TARGET_3DNOW_P: New Macro.
12050 TARGET_3DNOW_A_P: New Macro.
12051 TARGET_SSE_P: New Macro.
12052 TARGET_SSE2_P: New Macro.
12053 TARGET_SSE3_P: New Macro.
12054 TARGET_SSSE3_P: New Macro.
12055 TARGET_SSE4_1_P: New Macro.
12056 TARGET_SSE4_2_P: New Macro.
12057 TARGET_AVX_P: New Macro.
12058 TARGET_AVX2_P: New Macro.
12059 TARGET_AVX512F_P: New Macro.
12060 TARGET_AVX512PF_P: New Macro.
12061 TARGET_AVX512ER_P: New Macro.
12062 TARGET_AVX512CD_P: New Macro.
12063 TARGET_FMA_P: New Macro.
12064 TARGET_SSE4A_P: New Macro.
12065 TARGET_FMA4_P: New Macro.
12066 TARGET_XOP_P: New Macro.
12067 TARGET_LWP_P: New Macro.
12068 TARGET_ABM_P: New Macro.
12069 TARGET_BMI_P: New Macro.
12070 TARGET_BMI2_P: New Macro.
12071 TARGET_LZCNT_P: New Macro.
12072 TARGET_TBM_P: New Macro.
12073 TARGET_POPCNT_P: New Macro.
12074 TARGET_SAHF_P: New Macro.
12075 TARGET_MOVBE_P: New Macro.
12076 TARGET_CRC32_P: New Macro.
12077 TARGET_AES_P: New Macro.
12078 TARGET_PCLMUL_P: New Macro.
12079 TARGET_CMPXCHG16B_P: New Macro.
12080 TARGET_FSGSBASE_P: New Macro.
12081 TARGET_RDRND_P: New Macro.
12082 TARGET_F16C_P: New Macro.
12083 TARGET_RTM_P: New Macro.
12084 TARGET_HLE_P: New Macro.
12085 TARGET_RDSEED_P: New Macro.
12086 TARGET_PRFCHW_P: New Macro.
12087 TARGET_ADX_P: New Macro.
12088 TARGET_FXSR_P: New Macro.
12089 TARGET_XSAVE_P: New Macro.
12090 TARGET_XSAVEOPT_P: New Macro.
12091 TARGET_LP64_P: New Macro.
12092 TARGET_X32_P: New Macro.
12093 TARGET_FPMATH_DEFAULT_P: New Macro.
12094 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12095 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12097 Change ix86_tune_string to access opts->x_ix86_tune_string.
12098 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12099 Change ix86_arch_string to access opts->x_ix86_arch_string.
12100 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12101 Change ix86_pmode to access opts->x_ix86_pmode.
12102 Change ix86_abi to access opts->x_ix86_abi.
12103 Change ix86_cmodel to access opts->x_ix86_cmodel.
12104 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12105 Change ix86_isa_flags_explicit to access
12106 opts->x_ix86_isa_flags_explicit.
12107 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12108 Change ix86_regparm to access opts->x_ix86_regparm.
12109 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12110 Change ix86_preferred_stack_boundary_arg to access
12111 opts->x_ix86_preferred_stack_boundary_arg.
12112 Change ix86_force_align_arg_pointer to access
12113 opts->x_ix86_force_align_arg_pointer.
12114 Change ix86_incoming_stack_boundar_arg to access
12115 opts->x_ix86_incoming_stack_boundar_arg.
12116 Change ix86_fpmath to access opts->x_ix86_fpmath.
12117 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12118 Change ix86_recip_name to access opts->x_ix86_recip_name.
12119 Change ix86_stack_protector_guard to access
12120 opts->x_ix86_stack_protector_guard.
12121 Change ix86_tune_memcpy_strategy to access
12122 opts->x_ix86_tune_memcpy_strategy.
12123 Change ix86_tune_memset_strategy to access
12124 opts->x_ix86_tune_memset_strategy.
12125 Change global_options to access opts.
12126 Change global_options_set to access opts_set.
12127 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12128 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12129 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12130 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12131 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12132 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12133 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12134 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12135 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12136 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12137 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12138 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12139 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12140 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12141 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12142 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12143 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12144 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12145 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12146 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12147 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12148 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12149 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12150 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12151 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12152 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12153 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12154 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12155 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12156 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12157 Change TARGET_AES to TARGET_AES_P (opts->...).
12158 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12159 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12160 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12161 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12162 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12163 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12164 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12165 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12166 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12167 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12168 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12169 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12170 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12171 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12172 Change TARGET_X32 to TARGET_X32_P (opts->...).
12173 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12174 Change TARGET_FLOAT_RETURNS_IN_80387 to
12175 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12176 (ix86_function_specific_save): New parameter. Use opts-> fields
12177 to replace global fields.
12178 (ix86_function_specific_restore): Ditto.
12179 (ix86_valid_target_attribute_inner_p): New parameters.
12180 Fix recursive call.
12181 Fix call to ix86_handle_option and set_option.
12182 (ix86_valid_target_attribute_tree): New parameters.
12183 Change global_options to access opts.
12184 Change global_options_set to access opts_set.
12185 Fix call to ix86_valid_target_attribute_inner_p.
12186 Change ix86_tune_string to access opts->x_ix86_tune_string.
12187 Change ix86_arch_string to access opts->x_ix86_arch_string.
12188 Change ix86_fpmath to access opts->x_ix86_fpmath
12189 Fix call to ix86_option_override_internal.
12190 Fix call to ix86_add_new_builtins.
12191 Fix calls to build_optimization_node and build_target_option_node.
12192 (ix86_valid_target_attribute_p): Remove access to global_options.
12193 Use new gcc_options structure func_options.
12194 Fix call to ix86_valid_target_attribute_tree.
12195 Fix call to build_optimization_node.
12196 (get_builtin_code_for_version): Fix call to
12197 ix86_valid_target_attribute_tree.
12199 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12201 * Makefile.in (PICFLAG): New.
12202 (enable_host_shared): New.
12203 (INTERNAL_CFLAGS): Use PICFLAG.
12204 (LIBIBERTY): Use pic build of libiberty.a if configured with
12205 --enable-host-shared.
12206 * configure.ac: Add --enable-host-shared, setting up new
12208 * configure: Regenerate.
12209 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12210 (--enable-host-shared): New option.
12212 2013-10-15 Richard Biener <rguenther@suse.de>
12214 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12215 for built-in functions.
12217 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12219 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12220 (optimize_range_tests_1): New function,
12221 extracted from optimize_range_tests.
12222 (optimize_range_tests_xor): Similarly.
12223 (optimize_range_tests_diff): New function.
12224 (optimize_range_tests): Use optimize_range_tests_1.
12226 2013-10-15 Cong Hou <congh@google.com>
12228 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12229 requirement of the reduction pattern so that one operand of the
12230 reduction operation can come from outside of the loop.
12232 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12234 * config/arm/neon-schedgen.ml: Remove.
12235 * config/arm/cortex-a9-neon.md: Remove comment regarding
12238 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12240 * config/arm/types: Remove old neon types.
12242 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12244 * config/arm/cortex-a7.md
12245 (cortex_a7_neon_type): New.
12246 (cortex_a7_neon_mul): Update for new types.
12247 (cortex_a7_neon_mla): Likewise.
12248 (cortex_a7_neon): Likewise.
12250 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12252 * config/arm/cortex-a15-neon.md
12253 (cortex_a15_neon_type): New,
12255 (cortex_a15_neon_int_1): Remove.
12256 (cortex_a15_neon_int_2): Likewise.
12257 (cortex_a15_neon_int_3): Likewise.
12258 (cortex_a15_neon_int_4): Likewise.
12259 (cortex_a15_neon_int_5): Likewise.
12260 (cortex_a15_neon_vqneg_vqabs): Likewise.
12261 (cortex_a15_neon_vmov): Likewise.
12262 (cortex_a15_neon_vaba): Likewise.
12263 (cortex_a15_neon_vaba_qqq): Likewise.
12264 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12265 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12266 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12268 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12269 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12270 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12271 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12272 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12273 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12274 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12275 (cortex_a15_neon_shift_1): Likewise.
12276 (cortex_a15_neon_shift_2): Likewise.
12277 (cortex_a15_neon_shift_3): Likewise.
12278 (cortex_a15_neon_vshl_ddd): Likewise.
12279 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12280 (cortex_a15_neon_vsra_vrsra): Likewise.
12281 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12282 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12283 (cortex_a15_neon_bp_3cycle): Likewise.
12284 (cortex_a15_neon_ldm_2): Likewise.
12285 (cortex_a15_neon_stm_2): Likewise.
12286 (cortex_a15_neon_mcr): Likewise.
12287 (cortex_a15_neon_mrc): Likewise.
12288 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12289 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12290 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12291 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12292 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12293 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12294 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12295 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12296 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12297 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12298 (cortex_a15_neon_bp_simple): Likewise.
12299 (cortex_a15_neon_bp_2cycle): Likewise.
12300 (cortex_a15_neon_bp_3cycle): Likewise.
12301 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12302 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12303 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12304 (cortex_a15_neon_vld2_4_regs): Likewise.
12305 (cortex_a15_neon_vld3_vld4): Likewise.
12306 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12307 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12308 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12309 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12310 (cortex_a15_neon_vst3_vst4): Rename to...
12311 (cortex_a15_neon_vst4): This, update for new attributes.
12312 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12313 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12314 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12315 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12316 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12317 (cortex_a15_neon_ldm_2): Likewise.
12318 (cortex_a15_neon_stm_2): Likewise.
12319 (cortex_a15_neon_mcr): Likewise.
12320 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12321 (cortex_a15_neon_mrc): Likewise.
12322 (cortex_a15_neon_mrrc): Likewise.
12324 (cortex_a15_neon_abd): New.
12325 (cortex_a15_neon_abd_q): Likewise.
12326 (cortex_a15_neon_aba): Likewise.
12327 (cortex_a15_neon_aba_q): Likewise.
12328 (cortex_a15_neon_acc): Likewise.
12329 (cortex_a15_neon_acc_q): Likewise.
12330 (cortex_a15_neon_arith_basic): Likewise.
12331 (cortex_a15_neon_arith_complex): Likewise.
12332 (cortex_a15_neon_multiply): Likewise.
12333 (cortex_a15_neon_multiply_q): Likewise.
12334 (cortex_a15_neon_mla): Likewise.
12335 (cortex_a15_neon_mla_q): Likewise.
12336 (cortex_a15_neon_sat_mla_long): Likewise.
12337 (cortex_a15_neon_shift_acc): Likewise.
12338 (cortex_a15_neon_shift_imm_basic): Likewise.
12339 (cortex_a15_neon_shift_imm_complex): Likewise.
12340 (cortex_a15_neon_shift_reg_basic): Likewise.
12341 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12342 (cortex_a15_neon_shift_reg_complex): Likewise.
12343 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12344 (cortex_a15_neon_fp_negabs): Likewise
12345 (cortex_a15_neon_fp_arith): Likewise
12346 (cortex_a15_neon_fp_arith_q): Likewise
12347 (cortex_a15_neon_fp_cvt_int): Likewise
12348 (cortex_a15_neon_fp_cvt_int_q): Likewise
12349 (cortex_a15_neon_fp_cvt_16): Likewise
12350 (cortex_a15_neon_fp_mul): Likewise
12351 (cortex_a15_neon_fp_mul_q): Likewise
12352 (cortex_a15_neon_fp_mla): Likewise
12353 (cortex_a15_neon_fp_mla_q): Likewise
12354 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12355 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12356 (cortex_a15_neon_bitops): Likewise.
12357 (cortex_a15_neon_bitops_q): Likewise.
12358 (cortex_a15_neon_from_gp): Likewise.
12359 (cortex_a15_neon_from_gp_q): Likewise.
12360 (cortex_a15_neon_tbl3_tbl4): Likewise.
12361 (cortex_a15_neon_zip_q): Likewise.
12362 (cortex_a15_neon_to_gp): Likewise.
12363 (cortex_a15_neon_load_a): Likewise.
12364 (cortex_a15_neon_load_b): Likewise.
12365 (cortex_a15_neon_load_c): Likewise.
12366 (cortex_a15_neon_load_d): Likewise.
12367 (cortex_a15_neon_load_e): Likewise.
12368 (cortex_a15_neon_load_f): Likewise.
12369 (cortex_a15_neon_store_a): Likewise.
12370 (cortex_a15_neon_store_b): Likewise.
12371 (cortex_a15_neon_store_c): Likewise.
12372 (cortex_a15_neon_store_d): Likewise.
12373 (cortex_a15_neon_store_e): Likewise.
12374 (cortex_a15_neon_store_f): Likewise.
12375 (cortex_a15_neon_store_g): Likewise.
12376 (cortex_a15_neon_store_h): Likewise.
12377 (cortex_a15_vfp_to_from_gp): Likewise.
12379 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12381 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12383 (cortex_a9_neon_vshl_ddd): Remove.
12384 (cortex_a9_neon_vst3_vst4): Likewise.
12385 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12387 (cortex_a9_neon_bit_ops_q): New.
12389 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12390 (cortex_a9_neon_int_2): Likewise.
12391 (cortex_a9_neon_int_3): Likewise.
12392 (cortex_a9_neon_int_4): Likewise.
12393 (cortex_a9_neon_int_5): Likewise.
12394 (cortex_a9_neon_vqneg_vqabs): Likewise.
12395 (cortex_a9_neon_vmov): Likewise.
12396 (cortex_a9_neon_vaba): Likewise.
12397 (cortex_a9_neon_vaba_qqq): Likewise.
12398 (cortex_a9_neon_shift_1): Likewise.
12399 (cortex_a9_neon_shift_2): Likewise.
12400 (cortex_a9_neon_shift_3): Likewise.
12401 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12402 (cortex_a9_neon_vsra_vrsra): Likewise.
12403 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12404 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12405 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12407 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12408 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12409 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12411 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12412 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12413 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12414 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12415 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12416 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12417 (cortex_a9_neon_fp_vsum): Likewise.
12418 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12419 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12420 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12421 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12422 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12423 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12424 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12425 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12426 (cortex_a9_neon_bp_simple): Likewise.
12427 (cortex_a9_neon_bp_2cycle): Likewise.
12428 (cortex_a9_neon_bp_3cycle): Likewise.
12429 (cortex_a9_neon_ldr): Likewise.
12430 (cortex_a9_neon_str): Likewise.
12431 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12432 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12433 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12434 (cortex_a9_neon_vld2_4_regs): Likewise.
12435 (cortex_a9_neon_vld3_vld4): Likewise.
12436 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12437 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12438 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12439 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12440 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12441 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12442 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12443 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12444 (cortex_a9_neon_mcr): Likewise.
12445 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12446 (cortex_a9_neon_mrc): Likewise.
12447 (cortex_a9_neon_mrrc): Likewise.
12449 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12451 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12453 (cortex_a8_neon_vshl_ddd): Remove.
12454 (cortex_a8_neon_vst3_vst4): Likewise.
12455 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12457 (cortex_a8_neon_bit_ops_q): New.
12459 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12460 (cortex_a8_neon_int_2): Likewise..
12461 (cortex_a8_neon_int_3): Likewise.
12462 (cortex_a8_neon_int_5): Likewise.
12463 (cortex_a8_neon_vqneg_vqabs): Likewise.
12464 (cortex_a8_neon_int_4): Likewise.
12465 (cortex_a8_neon_vaba): Likewise.
12466 (cortex_a8_neon_vaba_qqq): Likewise.
12467 (cortex_a8_neon_shift_1): Likewise.
12468 (cortex_a8_neon_shift_2): Likewise.
12469 (cortex_a8_neon_shift_3): Likewise.
12470 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12471 (cortex_a8_neon_vsra_vrsra): Likewise.
12472 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12473 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12474 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12476 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12477 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12478 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12480 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12481 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12482 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12483 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12484 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12485 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12486 (cortex_a8_neon_fp_vsum): Likewise.
12487 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12488 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12489 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12490 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12491 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12492 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12493 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12494 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12495 (cortex_a8_neon_bp_simple): Likewise.
12496 (cortex_a8_neon_bp_2cycle): Likewise.
12497 (cortex_a8_neon_bp_3cycle): Likewise.
12498 (cortex_a8_neon_ldr): Likewise.
12499 (cortex_a8_neon_str): Likewise.
12500 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12501 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12502 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12503 (cortex_a8_neon_vld2_4_regs): Likewise.
12504 (cortex_a8_neon_vld3_vld4): Likewise.
12505 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12506 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12507 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12508 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12509 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12510 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12511 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12512 (cortex_a8_neon_mcr): Likewise.
12513 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12514 (cortex_a8_neon_mrc): Likewise.
12515 (cortex_a8_neon_mrrc): Likewise.
12517 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12519 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12521 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12522 (aarch64_simd_dup<mode>): Add "type" attribute.
12523 (aarch64_dup_lane<mode>): Likewise.
12524 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12525 (*aarch64_simd_mov<mode>): Likewise.
12526 (aarch64_simd_mov_from_<mode>low): Likewise.
12527 (aarch64_simd_mov_from_<mode>high): Likewise.
12528 (orn<mode>3): Likewise.
12529 (bic<mode>3): Likewise.
12530 (add<mode>3): Likewise.
12531 (sub<mode>3): Likewise.
12532 (mul<mode>3): Likewise.
12533 (*aarch64_mul3_elt<mode>): Likewise.
12534 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12535 (*aarch64_mul3_elt_to_128df): Likewise.
12536 (*aarch64_mul3_elt_to_64v2df): Likewise.
12537 (neg<mode>2): Likewise.
12538 (abs<mode>2): Likewise.
12539 (abd<mode>_3): Likewise.
12540 (aba<mode>_3): Likewise.
12541 (fabd<mode>_3): Likewise.
12542 (*fabd_scalar<mode>3): Likewise.
12543 (and<mode>3): Likewise.
12544 (ior<mode>3): Likewise.
12545 (xor<mode>3): Likewise.
12546 (one_cmpl<mode>2): Likewise.
12547 (aarch64_simd_vec_set<mode>): Likewise.
12548 (aarch64_simd_lshr<mode>): Likewise.
12549 (aarch64_simd_ashr<mode>): Likewise.
12550 (aarch64_simd_imm_shl<mode>): Likewise.
12551 (aarch64_simd_reg_sshl<mode): Likewise.
12552 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12553 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12554 (aarch64_simd_vec_setv2di): Likewise.
12555 (aarch64_simd_vec_set<mode>): Likewise.
12556 (aarch64_mla<mode>): Likewise.
12557 (*aarch64_mla_elt<mode>): Likewise.
12558 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12559 (aarch64_mls<mode>): Likewise.
12560 (*aarch64_mls_elt<mode>): Likewise.
12561 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12562 (<su><maxmin><mode>3): Likewise.
12563 (move_lo_quad_<mode>): Likewise.
12564 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12565 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12566 (vec_pack_trunc_<mode>): Likewise.
12567 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12568 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12569 (*aarch64_<su>mlal_lo<mode>): Likewise.
12570 (*aarch64_<su>mlal_hi<mode>): Likewise.
12571 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12572 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12573 (*aarch64_<su>mlal<mode>): Likewise.
12574 (*aarch64_<su>mlsl<mode>): Likewise.
12575 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12576 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12577 (add<mode>3): Likewise.
12578 (sub<mode>3): Likewise.
12579 (mul<mode>3): Likewise.
12580 (div<mode>3): Likewise.
12581 (neg<mode>2): Likewise.
12582 (abs<mode>2): Likewise.
12583 (fma<mode>4): Likewise.
12584 (*aarch64_fma4_elt<mode>): Likewise.
12585 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12586 (*aarch64_fma4_elt_to_128df): Likewise.
12587 (*aarch64_fma4_elt_to_64v2df): Likewise.
12588 (fnma<mode>4): Likewise.
12589 (*aarch64_fnma4_elt<mode>): Likewise.
12590 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12591 (*aarch64_fnma4_elt_to_128df): Likewise.
12592 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12593 (<frint_pattern><mode>2): Likewise.
12594 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12595 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12596 (vec_unpacks_lo_v4sf): Likewise.
12597 (aarch64_float_extend_lo_v2df): Likewise.
12598 (vec_unpacks_hi_v4sf): Likewise.
12599 (aarch64_float_truncate_lo_v2sf): Likewise.
12600 (aarch64_float_truncate_hi_v4sf): Likewise.
12601 (aarch64_vmls<mode>): Likewise.
12602 (<su><maxmin><mode>3): Likewise.
12603 (<maxmin_uns><mode>3): Likewise.
12604 (reduc_<sur>plus_<mode>): Likewise.
12605 (reduc_<sur>plus_v2di): Likewise.
12606 (reduc_<sur>plus_v2si): Likewise.
12607 (reduc_<sur>plus_<mode>): Likewise.
12608 (aarch64_addpv4sf): Likewise.
12609 (clz<mode>2): Likewise.
12610 (reduc_<maxmin_uns>_<mode>): Likewise.
12611 (reduc_<maxmin_uns>_v2di): Likewise.
12612 (reduc_<maxmin_uns>_v2si): Likewise.
12613 (reduc_<maxmin_uns>_<mode>): Likewise.
12614 (reduc_<maxmin_uns>_v4sf): Likewise.
12615 (aarch64_simd_bsl<mode>_internal): Likewise.
12616 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12617 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12618 (aarch64_get_lane<mode>): Likewise.
12619 (*aarch64_combinez<mode>): Likewise.
12620 (aarch64_combine<mode>): Likewise.
12621 (aarch64_simd_combine<mode>): Likewise.
12622 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12623 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12624 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12625 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12626 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12627 (aarch64_<sur>h<addsub><mode>): Likewise.
12628 (aarch64_<sur><addsub>hn<mode>): Likewise.
12629 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12630 (aarch64_pmul<mode>): Likewise.
12631 (aarch64_<su_optab><optab><mode>): Likewise.
12632 (aarch64_<sur>qadd<mode>): Likewise.
12633 (aarch64_sqmovun<mode>): Likewise.
12634 (aarch64_<sur>qmovn<mode>): Likewise.
12635 (aarch64_s<optab><mode>): Likewise.
12636 (aarch64_sq<r>dmulh<mode>): Likewise.
12637 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12638 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12639 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12640 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12641 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12642 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12643 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12644 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12645 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12646 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12647 (aarch64_sqdmull<mode>): Likewise.
12648 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12649 (aarch64_sqdmull_n<mode>): Likewise.
12650 (aarch64_sqdmull2<mode>_internal): Likewise.
12651 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12652 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12653 (aarch64_<sur>shl<mode>): Likewise.
12654 (aarch64_<sur>q<r>shl<mode>
12655 (aarch64_<sur>shll_n<mode>): Likewise.
12656 (aarch64_<sur>shll2_n<mode>): Likewise.
12657 (aarch64_<sur>shr_n<mode>): Likewise.
12658 (aarch64_<sur>sra_n<mode>): Likewise.
12659 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12660 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12661 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12662 (aarch64_cm<optab><mode>): Likewise.
12663 (aarch64_cm<optab>di): Likewise.
12664 (aarch64_cm<optab><mode>): Likewise.
12665 (aarch64_cm<optab>di): Likewise.
12666 (aarch64_cmtst<mode>): Likewise.
12667 (aarch64_cmtstdi): Likewise.
12668 (aarch64_cm<optab><mode>): Likewise.
12669 (*aarch64_fac<optab><mode>): Likewise.
12670 (aarch64_addp<mode>): Likewise.
12671 (aarch64_addpdi): Likewise.
12672 (sqrt<mode>2): Likewise.
12673 (vec_load_lanesoi<mode>): Likewise.
12674 (vec_store_lanesoi<mode>): Likewise.
12675 (vec_load_lanesci<mode>): Likewise.
12676 (vec_store_lanesci<mode>): Likewise.
12677 (vec_load_lanesxi<mode>): Likewise.
12678 (vec_store_lanesxi<mode>): Likewise.
12679 (*aarch64_mov<mode>): Likewise.
12680 (aarch64_ld2<mode>_dreg): Likewise.
12681 (aarch64_ld2<mode>_dreg): Likewise.
12682 (aarch64_ld3<mode>_dreg): Likewise.
12683 (aarch64_ld3<mode>_dreg): Likewise.
12684 (aarch64_ld4<mode>_dreg): Likewise.
12685 (aarch64_ld4<mode>_dreg): Likewise.
12686 (aarch64_tbl1<mode>): Likewise.
12687 (aarch64_tbl2v16qi): Likewise.
12688 (aarch64_combinev16qi): Likewise.
12689 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12690 (aarch64_st2<mode>_dreg): Likewise.
12691 (aarch64_st2<mode>_dreg): Likewise.
12692 (aarch64_st3<mode>_dreg): Likewise.
12693 (aarch64_st3<mode>_dreg): Likewise.
12694 (aarch64_st4<mode>_dreg): Likewise.
12695 (aarch64_st4<mode>_dreg): Likewise.
12696 (*aarch64_simd_ld1r<mode>): Likewise.
12697 (aarch64_frecpe<mode>): Likewise.
12698 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12699 (aarch64_frecps<mode>): Likewise.
12701 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12703 * config/arm/iterators.md (V_elem_ch): New.
12705 (VQH_type): Likewise.
12706 * config/arm/arm.md (is_neon_type): New.
12707 (conds): Use is_neon_type.
12708 (anddi3_insn): Update type attribute.
12709 (xordi3_insn): Likewise.
12710 (one_cmpldi2): Likewise.
12711 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12712 * config/arm/neon.md (neon_mov): Update type attribute.
12713 (*movmisalign<mode>_neon_store): Likewise.
12714 (*movmisalign<mode>_neon_load): Likewise.
12715 (vec_set<mode>_internal): Likewise.
12716 (vec_set<mode>_internal): Likewise.
12717 (vec_setv2di_internal): Likewise.
12718 (vec_extract<mode>): Likewise.
12719 (vec_extract<mode>): Likewise.
12720 (vec_extractv2di): Likewise.
12721 (*add<mode>3_neon): Likewise.
12722 (adddi3_neon): Likewise.
12723 (*sub<mode>3_neon): Likewise.
12724 (subdi3_neon): Likewise.
12725 (fma<VCVTF:mode>4): Likewise.
12726 (fma<VCVTF:mode>4_intrinsic): Likewise.
12727 (*fmsub<VCVTF:mode>4): Likewise.
12728 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12729 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12730 (ior<mode>3): Likewise.
12731 (and<mode>3): Likewise.
12732 (orn<mode>3_neon): Likewise.
12733 (orndi3_neon): Likewise.
12734 (bic<mode>3_neon): Likewise.
12735 (bicdi3_neon): Likewise.
12736 (xor<mode>3): Likewise.
12737 (one_cmpl<mode>2): Likewise.
12738 (abs<mode>2): Likewise.
12739 (neg<mode>2): Likewise.
12740 (negdi2_neon): Likewise.
12741 (*umin<mode>3_neon): Likewise.
12742 (*umax<mode>3_neon): Likewise.
12743 (*smin<mode>3_neon): Likewise.
12744 (*smax<mode>3_neon): Likewise.
12745 (vashl<mode>3): Likewise.
12746 (vashr<mode>3_imm): Likewise.
12747 (vlshr<mode>3_imm): Likewise.
12748 (ashl<mode>3_signed): Likewise.
12749 (ashl<mode>3_unsigned): Likewise.
12750 (neon_load_count): Likewise.
12751 (ashldi3_neon_noclobber): Likewise.
12752 (ashldi3_neon): Likewise.
12753 (signed_shift_di3_neon): Likewise.
12754 (unsigned_shift_di3_neon): Likewise.
12755 (ashrdi3_neon_imm_noclobber): Likewise.
12756 (lshrdi3_neon_imm_noclobber): Likewise.
12757 (<shift>di3_neon): Likewise.
12758 (widen_ssum<mode>3): Likewise.
12759 (widen_usum<mode>3): Likewise.
12760 (quad_halves_<code>v4si): Likewise.
12761 (quad_halves_<code>v4sf): Likewise.
12762 (quad_halves_<code>v8hi): Likewise.
12763 (quad_halves_<code>v16qi): Likewise.
12764 (reduc_splus_v2di): Likewise.
12765 (neon_vpadd_internal<mode>): Likewise.
12766 (neon_vpsmin<mode>): Likewise.
12767 (neon_vpsmax<mode>): Likewise.
12768 (neon_vpumin<mode>): Likewise.
12769 (neon_vpumax<mode>): Likewise.
12770 (*ss_add<mode>_neon): Likewise.
12771 (*us_add<mode>_neon): Likewise.
12772 (*ss_sub<mode>_neon): Likewise.
12773 (*us_sub<mode>_neon): Likewise.
12774 (neon_vadd<mode>_unspec): Likewise.
12775 (neon_vaddl<mode>): Likewise.
12776 (neon_vaddw<mode>): Likewise.
12777 (neon_vhadd<mode>): Likewise.
12778 (neon_vqadd<mode>): Likewise.
12779 (neon_vaddhn<mode>): Likewise.
12780 (neon_vmul<mode>): Likewise.
12781 (neon_vfms<VCVTF:mode>): Likewise.
12782 (neon_vmlal<mode>): Likewise.
12783 (neon_vmls<mode>): Likewise.
12784 (neon_vmlsl<mode>): Likewise.
12785 (neon_vqdmulh<mode>): Likewise.
12786 (neon_vqdmlal<mode>): Likewise.
12787 (neon_vqdmlsl<mode>): Likewise.
12788 (neon_vmull<mode>): Likewise.
12789 (neon_vqdmull<mode>): Likewise.
12790 (neon_vsub<mode>_unspec): Likewise.
12791 (neon_vsubl<mode>): Likewise.
12792 (neon_vsubw<mode>): Likewise.
12793 (neon_vqsub<mode>): Likewise.
12794 (neon_vhsub<mode>): Likewise.
12795 (neon_vsubhn<mode>): Likewise.
12796 (neon_vceq<mode>): Likewise.
12797 (neon_vcge<mode>): Likewise.
12798 (neon_vcgeu<mode>): Likewise.
12799 (neon_vcgt<mode>): Likewise.
12800 (neon_vcgtu<mode>): Likewise.
12801 (neon_vcle<mode>): Likewise.
12802 (neon_vclt<mode>): Likewise.
12803 (neon_vcage<mode>): Likewise.
12804 (neon_vcagt<mode>): Likewise.
12805 (neon_vtst<mode>): Likewise.
12806 (neon_vabd<mode>): Likewise.
12807 (neon_vabdl<mode>): Likewise.
12808 (neon_vaba<mode>): Likewise.
12809 (neon_vabal<mode>): Likewise.
12810 (neon_vmax<mode>): Likewise.
12811 (neon_vmin<mode>): Likewise.
12812 (neon_vpaddl<mode>): Likewise.
12813 (neon_vpadal<mode>): Likewise.
12814 (neon_vpmax<mode>): Likewise.
12815 (neon_vpmin<mode>): Likewise.
12816 (neon_vrecps<mode>): Likewise.
12817 (neon_vrsqrts<mode>): Likewise.
12818 (neon_vqabs<mode>): Likewise.
12819 (neon_vqneg<mode>): Likewise.
12820 (neon_vcls<mode>): Likewise.
12821 (clz<mode>2): Likewise.
12822 (popcount<mode>2): Likewise.
12823 (neon_vrecpe<mode>): Likewise.
12824 (neon_vrsqrte<mode>): Likewise.
12825 (neon_vget_lane<mode>_sext_internal): Likewise.
12826 (neon_vget_lane<mode>_zext_internal): Likewise.
12827 (neon_vdup_n<mode>): Likewise.
12828 (neon_vdup_n<mode>): Likewise.
12829 (neon_vdup_nv2di): Likewise.
12830 (neon_vdup_lane<mode>_interal): Likewise.
12831 (*neon_vswp<mode>): Likewise.
12832 (neon_vcombine<mode>): Likewise.
12833 (float<mode><V_cvtto>2): Likewise.
12834 (floatuns<mode><V_cvtto>2): Likewise.
12835 (fix_trunc<mode><V_cvtto>2): Likewise.
12836 (fixuns_trunc<mode><V_cvtto>2
12837 (neon_vcvt<mode>): Likewise.
12838 (neon_vcvt<mode>): Likewise.
12839 (neon_vcvtv4sfv4hf): Likewise.
12840 (neon_vcvtv4hfv4sf): Likewise.
12841 (neon_vcvt_n<mode>): Likewise.
12842 (neon_vcvt_n<mode>): Likewise.
12843 (neon_vmovn<mode>): Likewise.
12844 (neon_vqmovn<mode>): Likewise.
12845 (neon_vqmovun<mode>): Likewise.
12846 (neon_vmovl<mode>): Likewise.
12847 (neon_vmul_lane<mode>): Likewise.
12848 (neon_vmul_lane<mode>): Likewise.
12849 (neon_vmull_lane<mode>): Likewise.
12850 (neon_vqdmull_lane<mode>): Likewise.
12851 (neon_vqdmulh_lane<mode>): Likewise.
12852 (neon_vqdmulh_lane<mode>): Likewise.
12853 (neon_vmla_lane<mode>): Likewise.
12854 (neon_vmla_lane<mode>): Likewise.
12855 (neon_vmlal_lane<mode>): Likewise.
12856 (neon_vqdmlal_lane<mode>): Likewise.
12857 (neon_vmls_lane<mode>): Likewise.
12858 (neon_vmls_lane<mode>): Likewise.
12859 (neon_vmlsl_lane<mode>): Likewise.
12860 (neon_vqdmlsl_lane<mode>): Likewise.
12861 (neon_vext<mode>): Likewise.
12862 (neon_vrev64<mode>): Likewise.
12863 (neon_vrev32<mode>): Likewise.
12864 (neon_vrev16<mode>): Likewise.
12865 (neon_vbsl<mode>_internal): Likewise.
12866 (neon_vshl<mode>): Likewise.
12867 (neon_vqshl<mode>): Likewise.
12868 (neon_vshr_n<mode>): Likewise.
12869 (neon_vshrn_n<mode>): Likewise.
12870 (neon_vqshrn_n<mode>): Likewise.
12871 (neon_vqshrun_n<mode>): Likewise.
12872 (neon_vshl_n<mode>): Likewise.
12873 (neon_vqshl_n<mode>): Likewise.
12874 (neon_vqshlu_n<mode>): Likewise.
12875 (neon_vshll_n<mode>): Likewise.
12876 (neon_vsra_n<mode>): Likewise.
12877 (neon_vsri_n<mode>): Likewise.
12878 (neon_vsli_n<mode>): Likewise.
12879 (neon_vtbl1v8qi): Likewise.
12880 (neon_vtbl2v8qi): Likewise.
12881 (neon_vtbl3v8qi): Likewise.
12882 (neon_vtbl4v8qi): Likewise.
12883 (neon_vtbl1v16qi): Likewise.
12884 (neon_vtbl2v16qi): Likewise.
12885 (neon_vcombinev16qi): Likewise.
12886 (neon_vtbx1v8qi): Likewise.
12887 (neon_vtbx2v8qi): Likewise.
12888 (neon_vtbx3v8qi): Likewise.
12889 (neon_vtbx4v8qi): Likewise.
12890 (*neon_vtrn<mode>_insn): Likewise.
12891 (*neon_vzip<mode>_insn): Likewise.
12892 (*neon_vuzp<mode>_insn): Likewise.
12893 (neon_vld1<mode>): Likewise.
12894 (neon_vld1_lane<mode>): Likewise.
12895 (neon_vld1_lane<mode>): Likewise.
12896 (neon_vld1_dup<mode>): Likewise.
12897 (neon_vld1_dup<mode>): Likewise.
12898 (neon_vld1_dupv2di): Likewise.
12899 (neon_vst1<mode>): Likewise.
12900 (neon_vst1_lane<mode>): Likewise.
12901 (neon_vst1_lane<mode>): Likewise.
12902 (neon_vld2<mode>): Likewise.
12903 (neon_vld2<mode>): Likewise.
12904 (neon_vld2_lane<mode>): Likewise.
12905 (neon_vld2_lane<mode>): Likewise.
12906 (neon_vld2_dup<mode>): Likewise.
12907 (neon_vst2<mode>): Likewise.
12908 (neon_vst2<mode>): Likewise.
12909 (neon_vst2_lane<mode>): Likewise.
12910 (neon_vst2_lane<mode>): Likewise.
12911 (neon_vld3<mode>): Likewise.
12912 (neon_vld3qa<mode>): Likewise.
12913 (neon_vld3qb<mode>): Likewise.
12914 (neon_vld3_lane<mode>): Likewise.
12915 (neon_vld3_lane<mode>): Likewise.
12916 (neon_vld3_dup<mode>): Likewise.
12917 (neon_vst3<mode>): Likewise.
12918 (neon_vst3qa<mode>): Likewise.
12919 (neon_vst3qb<mode>): Likewise.
12920 (neon_vst3_lane<mode>): Likewise.
12921 (neon_vst3_lane<mode>): Likewise.
12922 (neon_vld4<mode>): Likewise.
12923 (neon_vld4qa<mode>): Likewise.
12924 (neon_vld4qb<mode>): Likewise.
12925 (neon_vld4_lane<mode>): Likewise.
12926 (neon_vld4_lane<mode>): Likewise.
12927 (neon_vld4_dup<mode>): Likewise.
12928 (neon_vst4<mode>): Likewise.
12929 (neon_vst4qa<mode>): Likewise.
12930 (neon_vst4qb<mode>): Likewise.
12931 (neon_vst4_lane<mode>): Likewise.
12932 (neon_vst4_lane<mode>): Likewise.
12933 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12934 (neon_vec_unpack<US>_hi_<mode>): Likewise.
12935 (neon_vec_<US>mult_lo_<mode>): Likewise.
12936 (neon_vec_<US>mult_hi_<mode>): Likewise.
12937 (neon_vec_<US>shiftl_<mode>): Likewise.
12938 (neon_unpack<US>_<mode>): Likewise.
12939 (neon_vec_<US>mult_<mode>): Likewise.
12940 (vec_pack_trunc_<mode>): Likewise.
12941 (neon_vec_pack_trunc_<mode>): Likewise.
12942 (neon_vabd<mode>_2): Likewise.
12943 (neon_vabd<mode>_3): Likewise.
12945 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12947 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
12948 (load_pair): Update type attribute.
12949 (store_pair): Update type attribute.
12950 * config/aarch64/iterators.md (q): New.
12952 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12954 * config/arm/types.md: Add new types for Neon insns.
12956 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12958 Sergey Lega <sergey.s.lega@intel.com>
12959 Anna Tikhonova <anna.tikhonova@intel.com>
12960 Ilya Tocar <ilya.tocar@intel.com>
12961 Andrey Turetskiy <andrey.turetskiy@intel.com>
12962 Ilya Verbin <ilya.verbin@intel.com>
12963 Kirill Yukhin <kirill.yukhin@intel.com>
12964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12966 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
12967 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
12968 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
12969 (rcp14<mode>): New.
12970 (srcp14<mode>): Ditto.
12971 (rsqrt14<mode>): Ditto.
12972 (rsqrt14<mode>): Ditto.
12973 (avx512f_vmscalef<mode>): Ditto.
12974 (avx512f_scalef<mode>): Ditto.
12975 (avx512f_getexp<mode>): Ditto.
12976 (avx512f_sgetexp<mode>): Ditto.
12977 (avx512f_fixupimm<mode>): Ditto.
12978 (avx512f_sfixupimm<mode>): Ditto.
12979 (avx512f_rndscale<mode>): Ditto.
12980 (*avx512er_exp2<mode>): Ditto.
12981 (*avx512er_rcp28<mode>): Ditto.
12982 (avx512er_rsqrt28<mode>): Ditto.
12983 (avx512f_getmant<mode>): Ditto.
12984 (avx512f_getmant<mode>): Ditto.
12985 (avx512f_rndscale<mode>): Fix formatting.
12987 2013-10-15 Martin Jambor <mjambor@suse.cz>
12989 * ipa-utils.h (ipa_edge_within_scc): Declare.
12990 * ipa-cp.c (edge_within_scc): Moved...
12991 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
12993 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12994 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12995 Sergey Lega <sergey.s.lega@intel.com>
12996 Anna Tikhonova <anna.tikhonova@intel.com>
12997 Ilya Tocar <ilya.tocar@intel.com>
12998 Andrey Turetskiy <andrey.turetskiy@intel.com>
12999 Ilya Verbin <ilya.verbin@intel.com>
13000 Kirill Yukhin <kirill.yukhin@intel.com>
13001 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13003 * config/i386/predicates.md (const_8_to_15_operand): New.
13004 (const_16_to_31_operand): Ditto.
13005 * config/i386/sse.md (V8FI): New.
13007 (reduc_splus_v8df): Ditto.
13008 (reduc_splus_v16sf): Ditto.
13009 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13010 (vec_extract_hi_<mode>): Ditto.
13011 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13012 (vec_set_lo_<mode>): Ditto.
13013 (vec_set_hi_<mode>): Ditto.
13014 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13015 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13016 (avx512f_pshufd_1): Ditto.
13017 (avx512f_broadcast<mode>): Ditto.
13018 (avx512f_broadcast<mode>): Ditto.
13019 (define_split): Split vec_extract_lo into move.
13020 (ssequartermode): Ditto.
13021 (ssedoublemode): Extened with wider modes.
13022 (vec_extract_lo_<mode>): Ditto.
13024 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13025 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13026 Sergey Lega <sergey.s.lega@intel.com>
13027 Anna Tikhonova <anna.tikhonova@intel.com>
13028 Ilya Tocar <ilya.tocar@intel.com>
13029 Andrey Turetskiy <andrey.turetskiy@intel.com>
13030 Ilya Verbin <ilya.verbin@intel.com>
13031 Kirill Yukhin <kirill.yukhin@intel.com>
13032 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13034 * config/i386/predicates.md (register_or_constm1_operand): New.
13035 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13036 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13037 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13038 UNSPEC_SCATTER_PREFETCH
13040 (avx512f_ucmp<mode>3): Ditto.
13041 (avx512f_vternlog<mode>): Ditto.
13042 (avx512f_align<mode>): Ditto.
13043 (<shift_insn><mode>3): Ditto.
13044 (avx512f_<rotate>v<mode>): Ditto.
13045 (avx512f_<rotate><mode>): Ditto.
13046 (avx512f_eq<mode>3): Ditto.
13047 (avx512f_eq<mode>3_1): Ditto.
13048 (avx512f_gt<mode>3): Ditto.
13049 (avx512f_testm<mode>3): Ditto.
13050 (avx512f_testnm<mode>3): Ditto.
13051 (avx512pf_gatherpf<mode>): Ditto.
13052 (*avx512pf_gatherpf<mode>_mask): Ditto.
13053 (*avx512pf_gatherpf<mode>): Ditto.
13054 (avx512pf_scatterpf<mode>): Ditto.
13055 (*avx512pf_scatterpf<mode>_mask): Ditto.
13056 (*avx512pf_scatterpf<mode>): Ditto.
13057 (avx512f_vec_dup_gpr<mode>): Ditto.
13058 (clz<mode>2): Ditto.
13059 (conflict<mode>): Ditto.
13060 (REDUC_SMINMAX_MODE): Extened with wider modes.
13061 (reduc_<code>_<mode>): Ditto.
13062 (vlshr<mode>3): Ditto.
13063 (vashl<mode>3): Ditto.
13065 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13067 Sergey Lega <sergey.s.lega@intel.com>
13068 Anna Tikhonova <anna.tikhonova@intel.com>
13069 Ilya Tocar <ilya.tocar@intel.com>
13070 Andrey Turetskiy <andrey.turetskiy@intel.com>
13071 Ilya Verbin <ilya.verbin@intel.com>
13072 Kirill Yukhin <kirill.yukhin@intel.com>
13073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13075 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13078 (avx512fmaskmode): Ditto.
13079 (bcstscalarsuff): Ditto.
13080 (avx512f_blendm<mode>): Ditto.
13081 (cmp_imm_predicate): Ditto.
13082 (avx512f_cmp<mode>3): Ditto.
13083 (avx512f_vec_dup<mode>): Ditto.
13084 (avx512f_vec_dup_mem<mode>): Ditto.
13085 (avx512f_vpermi2var<mode>3): Ditto.
13086 (avx512f_vpermt2var<mode>3): Ditto.
13087 (vec_init<mode>): Ditto.
13088 (avx512f_gathersi<mode>): Ditto.
13089 (*avx512f_gathersi<mode>): Ditto.
13090 (*avx512f_gathersi<mode>_2): Ditto.
13091 (avx512f_gatherdi<mode>): Ditto.
13092 (*avx512f_gatherdi<mode>): Ditto.
13093 (*avx512f_gatherdi<mode>_2): Ditto.
13094 (avx512f_scattersi<mode>): Ditto.
13095 (*avx512f_scattersi<mode>): Ditto.
13096 (avx512f_scatterdi<mode>): Ditto.
13097 (*avx512f_scatterdi<mode>): Ditto.
13098 (sseintprefix): Extened with wider modes.
13099 (VEC_GATHER_IDXSI): Ditto.
13100 (VEC_GATHER_IDXDI): Ditto.
13101 (VEC_GATHER_SRCDI): Ditto.
13103 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13104 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13106 * config/arm/t-aprofile: New file.
13107 * config.gcc: Handle --with-multilib-list option.
13109 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13111 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13114 2013-10-15 Richard Biener <rguenther@suse.de>
13116 * tree-loop-distribution.c (build_empty_rdg): Inline into
13118 (rdg_flag_vertex): Inline into single user.
13119 (rdg_flag_vertex_and_dependent): Likewise.
13120 (build_rdg_partition_for_vertex): Remove processed bitmap.
13121 (rdg_build_partitions): Simplify.
13123 2013-10-15 Richard Biener <rguenther@suse.de>
13125 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13126 Restructure forwarding through conversions and copies to
13127 avoid performing copy-propagation the wrong way. Adjust
13128 recursion invocations.
13129 (forward_propagate_addr_expr): Add argument stating if we
13130 are recursing from a single-use.
13131 (ssa_forward_propagate_and_combine): Adjust.
13133 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13135 * dumpfile.h (gcc::dump_manager): New class, to hold state
13136 relating to dumpfile management.
13137 (get_dump_file_name): Remove in favor of method of dump_manager.
13138 (dump_initialized_p): Likewise.
13139 (dump_start): Likewise.
13140 (dump_finish): Likewise.
13141 (dump_switch_p): Likewise.
13142 (dump_register): Likewise.
13143 (get_dump_file_info): Likewise.
13144 * context.c (gcc::context::context): Construct the dump_manager
13146 * context.h (gcc::context::get_dumps): New.
13147 (gcc::context::m_dumps): New.
13148 * coverage.c (coverage_init): Port to dump_manager API.
13149 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13150 (extra_dump_files_in_use): Likewise.
13151 (extra_dump_files_alloced): Likewise.
13152 (gcc::dump_manager::dump_manager): New.
13153 (dump_register): Convert to...
13154 (gcc::dump_manager::dump_register): ...method, replacing
13155 function-static next_dump with m_next_dump field.
13156 (get_dump_file_info): Convert to...
13157 (gcc::dump_manager::get_dump_file_info): ...method.
13158 (get_dump_file_name): Convert to...
13159 (gcc::dump_manager::get_dump_file_name): ...method.
13160 (dump_start): Convert to...
13161 (gcc::dump_manager::dump_start): ...method.
13162 (dump_finish): Convert to...
13163 (gcc::dump_manager::dump_finish): ...method.
13164 (dump_begin): Replace body with...
13165 (gcc::dump_manager::dump_begin): ...new method.
13166 (dump_phase_enabled_p): Convert to...
13167 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13168 (dump_phase_enabled_p): Convert to...
13169 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13170 (dump_initialized_p): Convert to...
13171 (gcc::dump_manager::dump_initialized_p): ...method.
13172 (dump_flag_name): Replace body with...
13173 (gcc::dump_manager::dump_flag_name): ...new method.
13174 (dump_enable_all): Convert to...
13175 (gcc::dump_manager::dump_enable_all): ...new method.
13176 (opt_info_enable_passes): Convert to...
13177 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13178 (dump_switch_p_1): Convert to...
13179 (gcc::dump_manager::dump_switch_p_1): ...new method.
13180 (dump_switch_p): Convert to...
13181 (gcc::dump_manager::dump_switch_p): ...new method.
13182 (opt_info_switch_p): Port to dump_manager API.
13183 (enable_rtl_dump_file): Likewise.
13184 * opts-global.c (handle_common_deferred_options): Port to new
13186 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13187 (pass_manager::register_one_dump_file): Likewise.
13188 (pass_manager::register_pass): Likewise.
13189 (pass_init_dump_file): Likewise.
13190 (pass_fini_dump_file): Likewise.
13191 * statistics.c (statistics_early_init): Likewise.
13193 2013-10-14 Richard Biener <rguenther@suse.de>
13195 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13196 iterative_hash_canonical_type, gimple_canonical_type_hash,
13197 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13198 gimple_register_canonical_type, print_gimple_types_stats,
13199 free_gimple_type_tables): Move to lto/lto.c
13200 (gt-gimple.h): Do not include.
13201 * gimple.h (gimple_register_canonical_type,
13202 print_gimple_types_stats, free_gimple_type_tables): Remove.
13203 * Makefile.in (GTFILES): Remove gimple.c.
13205 2013-10-14 Travis Snoozy <quandary@remstate.com>
13208 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13209 scanning for msp430x targets.
13211 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13214 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13215 (registers_ok_for_ldd_peep): Move around.
13216 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13217 * config/sparc/sparc.md (widening peepholes): Use it.
13219 2013-10-14 Richard Biener <rguenther@suse.de>
13221 PR middle-end/58712
13222 PR middle-end/55358
13223 * gimple.c (iterative_hash_canonical_type): Make sure to
13224 record the hash into the correct hashtable slot.
13226 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13228 PR rtl-optimization/58662
13229 * combine.c (try_combine): Take into account death nodes on I2 when
13230 splitting a PARALLEL of two independent SETs. Fix dump message.
13232 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13235 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13236 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13238 * config/sh/t-sh (sh_treg_combine.o): New entry.
13239 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13240 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13241 (register_sh_passes): New function. Register sh_treg_combine pass.
13242 (sh_option_override): Invoke it.
13243 (sh_canonicalize_comparison): Handle op0_preserve_value.
13244 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13245 opportunities. Canonicalize branch condition.
13246 (nott): Allow only if pseudos can be created for non-SH2A.
13248 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13251 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13252 (ix86_expand_movmem): Replace copy_addr_to_reg with
13253 ix86_copy_addr_to_reg.
13254 (ix86_expand_setmem): Likewise.
13256 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13258 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13259 provided by ix86_fp_compare_mode instead of CCFPUmode.
13261 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13263 * config/aarch64/arm_neon.h
13264 (vtbx<1,3>_<psu>8): Fix register constriants.
13266 2013-10-11 Jeff Law <law@redhat.com>
13268 PR tree-optimization/58640
13269 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13270 threading paths that cross over two loop entry points.
13272 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13274 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13275 handle vector float as well.
13276 (*vsx_le_perm_load_v4si): Likewise.
13277 (*vsx_le_perm_store_v2di): Likewise.
13278 (*vsx_le_perm_store_v4si): Likewise.
13280 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13282 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13283 directly to circumvent subtract from splat{31} workaround.
13284 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13286 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13287 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13288 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13289 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13290 separate big and little endian logic.
13291 (*altivec_vperm_<mode>_internal): New define_insn.
13292 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13293 separate big and little endian logic.
13294 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13295 (vec_permv16qi): Add little endian logic.
13297 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13299 * doc/extend.texi (returns_nonnull): Remove arguments.
13301 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13302 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13303 Sergey Lega <sergey.s.lega@intel.com>
13304 Anna Tikhonova <anna.tikhonova@intel.com>
13305 Ilya Tocar <ilya.tocar@intel.com>
13306 Andrey Turetskiy <andrey.turetskiy@intel.com>
13307 Ilya Verbin <ilya.verbin@intel.com>
13308 Kirill Yukhin <kirill.yukhin@intel.com>
13309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13311 * config/i386/sse.md (VI48F_256_512): New.
13312 (avx2_permvar<mode>): Change to ...
13313 (<avx2_avx512f>_permvar<mode>): This.
13315 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13316 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13317 Sergey Lega <sergey.s.lega@intel.com>
13318 Anna Tikhonova <anna.tikhonova@intel.com>
13319 Ilya Tocar <ilya.tocar@intel.com>
13320 Andrey Turetskiy <andrey.turetskiy@intel.com>
13321 Ilya Verbin <ilya.verbin@intel.com>
13322 Kirill Yukhin <kirill.yukhin@intel.com>
13323 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13325 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13326 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13327 * config/i386/sse.md (VI4_AVX): New.
13328 (sf2simodelower): Ditto.
13329 (sse2_cvtps2dq): Change to ...
13330 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13332 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13333 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13334 Sergey Lega <sergey.s.lega@intel.com>
13335 Anna Tikhonova <anna.tikhonova@intel.com>
13336 Ilya Tocar <ilya.tocar@intel.com>
13337 Andrey Turetskiy <andrey.turetskiy@intel.com>
13338 Ilya Verbin <ilya.verbin@intel.com>
13339 Kirill Yukhin <kirill.yukhin@intel.com>
13340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13342 * config/i386/sse.md (V_512): New.
13344 (vcond<V_512:mode><VF_512:mode>): Ditto.
13345 (vcond<V_512:mode><VI_512:mode>): Ditto.
13346 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13348 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13350 Sergey Lega <sergey.s.lega@intel.com>
13351 Anna Tikhonova <anna.tikhonova@intel.com>
13352 Ilya Tocar <ilya.tocar@intel.com>
13353 Andrey Turetskiy <andrey.turetskiy@intel.com>
13354 Ilya Verbin <ilya.verbin@intel.com>
13355 Kirill Yukhin <kirill.yukhin@intel.com>
13356 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13358 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13359 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13361 (fma<mode>4): Removed condition.
13362 (fms<mode>4): Ditto.
13363 (fnma<mode>4): Ditto.
13364 (fnms<mode>4): Ditto.
13365 (fma4i_fmadd_<mode>): Ditto.
13366 (*fma_fmadd_<mode>): Ditto.
13367 (*fma_fmsub_<mode>): Ditto.
13368 (*fma_fnmadd_<mode>): Ditto.
13369 (*fma_fnmsub_<mode>): Ditto.
13370 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13371 (*fma_fmaddsub_<mode>): Ditto.
13372 (*fma_fmsubadd_<mode>): Ditto.
13373 (*fmai_fmadd_<mode>): Ditto.
13374 (*fmai_fmsub_<mode>): Ditto.
13375 (*fmai_fnmadd_<mode>): Ditto.
13376 (*fmai_fnmsub_<mode>): Ditto.
13378 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13379 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13380 Sergey Lega <sergey.s.lega@intel.com>
13381 Anna Tikhonova <anna.tikhonova@intel.com>
13382 Ilya Tocar <ilya.tocar@intel.com>
13383 Andrey Turetskiy <andrey.turetskiy@intel.com>
13384 Ilya Verbin <ilya.verbin@intel.com>
13385 Kirill Yukhin <kirill.yukhin@intel.com>
13386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13388 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13389 (VI124_256): Changed to ...
13390 (VI124_256_48_512): This.
13391 (ssepackmode): Extended with wider modes.
13392 (<code><mode>3): Changed iterator.
13393 (*avx2_<code><mode>3): Ditto.
13394 (vec_pack_trunc_<mode>): Ditto.
13396 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13398 Sergey Lega <sergey.s.lega@intel.com>
13399 Anna Tikhonova <anna.tikhonova@intel.com>
13400 Ilya Tocar <ilya.tocar@intel.com>
13401 Andrey Turetskiy <andrey.turetskiy@intel.com>
13402 Ilya Verbin <ilya.verbin@intel.com>
13403 Kirill Yukhin <kirill.yukhin@intel.com>
13404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13406 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13407 (VI8F_256_512): Ditto.
13408 (abs<mode>2): Changed iterator.
13409 (avx2_perm<mode>): Changed to ...
13410 (<avx2_avx512f>_perm<mode>): This.
13411 (avx2_perm<mode>_1): Changed to ...
13412 (<avx2_avx512f>_perm<mode>_1): This.
13414 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13416 Sergey Lega <sergey.s.lega@intel.com>
13417 Anna Tikhonova <anna.tikhonova@intel.com>
13418 Ilya Tocar <ilya.tocar@intel.com>
13419 Andrey Turetskiy <andrey.turetskiy@intel.com>
13420 Ilya Verbin <ilya.verbin@intel.com>
13421 Kirill Yukhin <kirill.yukhin@intel.com>
13422 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13424 * config/i386/sse.md (VI48_AVX512F): New.
13425 (VI48_AVX2): Changed to ...
13426 (VI48_AVX2_48_AVX512F): This.
13427 (avx2_ashrv<mode>): Changed to ...
13428 (<avx2_avx512f>_ashrv<mode>): This.
13429 (avx2_<shift_insn>v<mode>): Changed to ...
13430 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13432 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13434 Sergey Lega <sergey.s.lega@intel.com>
13435 Anna Tikhonova <anna.tikhonova@intel.com>
13436 Ilya Tocar <ilya.tocar@intel.com>
13437 Andrey Turetskiy <andrey.turetskiy@intel.com>
13438 Ilya Verbin <ilya.verbin@intel.com>
13439 Kirill Yukhin <kirill.yukhin@intel.com>
13440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13442 * config/i386/sse.md (VI4_AVX512F): New.
13443 (VI8_AVX2_AVX512F): Ditto.
13444 (mul<mode>3): Extended with wider modes.
13445 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13446 (mul<mode>3): Ditto.
13447 (vec_widen_<s>mult_odd_<mode>): Ditto.
13449 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13451 Sergey Lega <sergey.s.lega@intel.com>
13452 Anna Tikhonova <anna.tikhonova@intel.com>
13453 Ilya Tocar <ilya.tocar@intel.com>
13454 Andrey Turetskiy <andrey.turetskiy@intel.com>
13455 Ilya Verbin <ilya.verbin@intel.com>
13456 Kirill Yukhin <kirill.yukhin@intel.com>
13457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13459 * config/i386/sse.md (VI2_AVX512F): New.
13460 (VI124_AVX512F): Ditto.
13461 (sseunpackmode): Extended with wider modes.
13462 (sseunpackfltmode): Ditto.
13463 (vec_unpacks_float_hi_<mode>): Ditto.
13464 (vec_unpacks_float_lo_<mode>): Ditto.
13465 (vec_unpacku_float_hi_<mode>): Ditto.
13466 (vec_unpacku_float_lo_<mode>): Ditto.
13467 (vec_unpacks_lo_<mode>): Ditto.
13468 (vec_unpacks_hi_<mode>): Ditto.
13469 (vec_unpacku_lo_<mode>): Ditto.
13470 (vec_unpacku_hi_<mode>): Ditto.
13472 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13474 Sergey Lega <sergey.s.lega@intel.com>
13475 Anna Tikhonova <anna.tikhonova@intel.com>
13476 Ilya Tocar <ilya.tocar@intel.com>
13477 Andrey Turetskiy <andrey.turetskiy@intel.com>
13478 Ilya Verbin <ilya.verbin@intel.com>
13479 Kirill Yukhin <kirill.yukhin@intel.com>
13480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13482 * config/i386/i386.md (multdiv): New.
13483 (multdiv_mnemonic): Ditto.
13484 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13485 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13486 (<sse>_vmdiv<mode>3): Removed.
13488 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13490 Sergey Lega <sergey.s.lega@intel.com>
13491 Anna Tikhonova <anna.tikhonova@intel.com>
13492 Ilya Tocar <ilya.tocar@intel.com>
13493 Andrey Turetskiy <andrey.turetskiy@intel.com>
13494 Ilya Verbin <ilya.verbin@intel.com>
13495 Kirill Yukhin <kirill.yukhin@intel.com>
13496 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13498 * config/i386/sse.md (V): Extended with wider modes.
13500 (ssehalfvecmode): Ditto.
13502 (ssepackfltmode): Ditto.
13503 (avx_vec_concat<mode>): Ditto.
13504 (V_256_512): New iterator.
13505 (VF2_512_256): Ditto.
13506 (si2dfmode): New attribute.
13507 (si2dfmodelower): Ditto.
13508 (sf2dfmode): Ditto.
13509 (concat_tg_mode): Ditto.
13510 (floatv4siv4df2): Changed to ...
13511 (float<si2dfmodelower><mode>2): This.
13512 (avx_cvtps2pd256): Changed to ...
13513 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13514 (vec_pack_trunc_v4df): Changed to ...
13515 (vec_pack_trunc_<mode>): This.
13516 (avx_vpermil<mode>): Changed to ...
13517 (<sse2_avx_avx512f>_vpermil<mode>): This.
13518 (<fixsuffix>fix_truncv8dfv8si2): New.
13519 (vec_pack_sfix_trunc_v8df): Ditto.
13520 (avx512f_rndscale<mode>): Ditto.
13521 (avx512f_roundpd512): Ditto.
13522 (vec_pack_ufix_trunc_<mode>): Updated iterator.
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/i386.md (any_fix): New iterator.
13535 (fixsuffix): New attribute.
13536 * config/i386/sse.md (VF1): Extened with wider modes.
13540 (sseintvecmodelower): Ditto.
13541 (ssescalarmode): Ditto.
13542 (ssescalarnum): Ditto.
13543 (VF1_128_256): New.
13544 (ssexmmmode): Ditto.
13545 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13546 (<sse>_rcp<mode>2): Change iterator.
13547 (rsqrt<mode>2): Ditto.
13548 (<sse>_rsqrt<mode>2): Ditto.
13549 (avx2_vec_dup<mode>): Ditto.
13550 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13551 (round<mode>2_sfix): Ditto.
13552 (avx2_pbroadcast<mode>): Ditto.
13553 (*andnot<mode>3): Handle XI mode.
13554 (*<code><mode>3): Ditto.
13555 (AVXTOSSEMODE): Removed.
13556 (avx_vpermil<mode>): Changed to ...
13557 (<sse2_avx_avx512f>_vpermil<mode>): This.
13559 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13561 Sergey Lega <sergey.s.lega@intel.com>
13562 Anna Tikhonova <anna.tikhonova@intel.com>
13563 Ilya Tocar <ilya.tocar@intel.com>
13564 Andrey Turetskiy <andrey.turetskiy@intel.com>
13565 Ilya Verbin <ilya.verbin@intel.com>
13566 Kirill Yukhin <kirill.yukhin@intel.com>
13567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13569 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13570 (<sse>_comi): Ditto.
13571 (<sse>_ucomi): Ditto.
13572 (sse_cvtss2siq_2): Ditto.
13573 (sse2_cvtsd2si): Ditto.
13574 (sse2_cvtsd2siq): Ditto.
13575 (sse2_cvttsd2si): Ditto.
13576 (sse2_cvttsd2siq): Ditto.
13577 (<shift_insn><mode>3): Ditto.
13578 (sse2_cvtsi2sdq): Update constraint and prefix.
13579 (sse_cvtsi2ss): Update prefix.
13580 (sse_cvtsi2ssq): Ditto.
13582 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13584 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13585 ignore internal calls.
13587 2013-10-11 Richard Biener <rguenther@suse.de>
13589 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13590 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13591 TREE_OVERFLOW is set.
13593 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13595 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13597 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13598 * gimple.h: Likewise.
13600 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13602 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13605 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13607 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13608 * configure: Regenerate.
13610 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13612 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13613 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13614 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13615 similarly pp_right_paren.
13616 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13617 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13618 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13619 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13621 (omp_declare_simd_clauses_equal,
13622 omp_remove_redundant_declare_simd_attrs): New functions.
13623 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13624 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13625 * tree.h (OMP_LOOP_CHECK): Define.
13626 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13627 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13628 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13629 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13630 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13631 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13632 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13633 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13634 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13635 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13636 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13637 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13638 (omp_remove_redundant_declare_simd_attrs): New prototype.
13639 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13640 GIMPLE_OMP_TEAMS): New codes.
13641 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13642 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13644 (target_nesting_level): New variable.
13645 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13646 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13647 for collapse > 1 static schedule unless ordered.
13648 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13649 (determine_parallel_type): Adjust get_ws_args_for caller.
13650 (install_var_field): Handle mask & 4 for double indirection.
13651 (scan_sharing_clauses): Ignore shared clause on teams construct.
13652 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13653 (create_omp_child_function): If inside target or declare target
13654 constructs, set "omp declare target" attribute on the child function.
13655 (find_combined_for): New function.
13656 (scan_omp_parallel): Handle combined loops.
13657 (scan_omp_target, scan_omp_teams): New functions.
13658 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13659 restrictions and set ctx->cancellable for cancellable constructs.
13660 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13661 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13662 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13663 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13664 (omp_clause_aligned_alignment): New function.
13665 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13666 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13667 on teams constructs. Handle user defined reductions and new
13668 OpenMP 4.0 clauses.
13669 (lower_reduction_clauses): Don't set placeholder to address of ref
13670 if it has already the right type.
13671 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13672 (expand_parallel_call): Use the new non-_start suffixed builtins,
13673 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13674 and GOMP_parallel_end after the call.
13675 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13676 (expand_omp_for_init_counts): Handle combined loops.
13677 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13679 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13680 end of cancellable loops.
13681 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13682 Likewise. Handle collapse > 1 loops.
13683 (expand_omp_simd): Handle combined loops.
13684 (expand_omp_for): Add inner_stmt argument, adjust callers of
13685 expand_omp_for* functions, use expand_omp_for_static*chunk even
13686 for collapse > 1 unless ordered.
13687 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13688 of cancellable sections.
13689 (expand_omp_single): Remove need_barrier variable, just rely on
13690 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13691 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13692 (expand_omp_atomic_load, expand_omp_atomic_store,
13693 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13694 (expand_omp_target): New function.
13695 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13696 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13697 (build_omp_regions_1): Immediately close region for
13698 GF_OMP_TARGET_KIND_UPDATE.
13699 (maybe_add_implicit_barrier_cancel): New function.
13700 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13702 (lower_omp_single): Likewise. Add clobber after the barrier.
13703 (lower_omp_taskgroup): New function.
13704 (lower_omp_for): Handle combined loops. Adjust
13705 lower_rec_input_clauses caller. Handle cancellation.
13706 (lower_depend_clauses): New function.
13707 (lower_omp_taskreg): Lower depend clauses. Adjust
13708 lower_rec_input_clauses caller. Add clobber after the call. Handle
13710 (lower_omp_target, lower_omp_teams): New functions.
13711 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13712 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13713 and GOMP_cancellation_point calls.
13714 (lower_omp): Fold stmts inside of target region.
13715 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13716 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13717 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13718 (BT_FN_VOID_OMPFN_PTR_UINT,
13719 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13720 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13721 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13722 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13723 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13724 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13725 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13726 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13727 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13728 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13729 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13730 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13731 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13732 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13733 BUILT_IN_GOMP_PARALLEL_END.
13734 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13735 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13736 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13737 GF_OMP_FOR_KIND_DISTRIBUTE.
13738 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13739 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13740 (dump_gimple_omp_return): Print lhs if it has any.
13741 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13742 gimple_omp_atomic_seq_cst_p.
13743 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13744 and GIMPLE_OMP_TEAMS.
13745 * langhooks.c (lhd_omp_mappable_type): New function.
13746 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13747 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13749 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13750 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13751 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13752 (struct gimplify_omp_ctx): Add combined_loop field.
13753 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13754 on stmts inside of target region.
13755 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13756 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13757 ORT_TARGET and ORT_TARGET_DATA.
13758 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13760 (omp_notice_threadprivate_variable): Complain about threadprivate
13761 variables in target region.
13762 (omp_notice_variable): Complain about vars with non-mappable type
13763 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13764 (omp_check_private): Ignore ORT_TARGET* regions.
13765 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13766 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13767 (find_combined_omp_for): New function.
13768 (gimplify_omp_for): Handle gimplification of combined loops.
13769 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13771 (gimplify_omp_target_update): New function.
13772 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13773 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13774 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13775 (gimplify_body): If fndecl has "omp declare target" attribute, add
13776 implicit ORT_TARGET context around it.
13777 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13778 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13779 * tree-nested.c (convert_nonlocal_reference_stmt,
13780 convert_local_reference_stmt, convert_gimple_call): Handle
13781 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13782 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13783 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13784 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13785 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13786 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13787 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13788 BUILT_IN_GOMP_LOOP_END_CANCEL,
13789 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13790 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13791 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13792 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13793 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13794 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13795 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13796 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13797 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13798 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13799 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13800 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13801 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13802 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13803 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13804 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13805 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13806 gimple_build_omp_teams): New functions.
13807 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13808 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13809 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13810 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13811 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13812 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13813 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13814 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13815 GF_OMP_ATOMIC_SEQ_CST): New.
13816 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13817 gimple_build_omp_teams): New prototypes.
13818 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13819 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13820 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13821 GIMPLE_OMP_SINGLE as end of range.
13822 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13823 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13824 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13825 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13826 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13827 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13828 gimple_omp_target_kind, gimple_omp_target_set_kind,
13829 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13830 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13831 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13832 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13833 gimple_omp_teams_set_clauses): New inlines.
13834 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13835 and GIMPLE_OMP_TASKGROUP.
13836 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13837 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13838 enum omp_clause_proc_bind_kind): New.
13839 (union omp_clause_subcode): Add depend_kind, map_kind and
13840 proc_bind_kind fields.
13841 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13842 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13843 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13844 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13845 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13847 2013-10-10 Teresa Johnson <tejohnson@google.com>
13849 * predict.c (tree_estimate_probability): Add new parameter
13850 for estimate_bb_frequencies.
13851 (estimate_bb_frequencies): Add new parameter to force estimation.
13852 (rebuild_frequencies): When max frequency in function is small,
13853 recompute counts from frequencies.
13854 * predict.h (estimate_bb_frequencies): New parameter.
13856 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13858 * ipa-inline.c (ipa_inline): Fix leak of "order" when
13859 optimizations are disabled.
13861 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13863 * coverage.c (coverage_finish): Fix leak of da_file_name.
13865 2013-10-10 Jan Hubicka <jh@suse.cz>
13867 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
13868 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
13869 Bobcat and generic.
13871 2013-10-10 Jakub Jelinek <jakub@redhat.com>
13873 PR middle-end/58670
13874 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
13875 if any labels are in FALLTHRU_BB, use a special label emitted
13876 immediately after the asm goto insn rather than label_rtx
13878 (expand_asm_stmt): Adjust caller.
13879 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
13880 edge if the last insn in predecessor is a jump with single successor,
13881 but it isn't simplejump_p.
13883 2013-10-10 Richard Biener <rguenther@suse.de>
13885 PR tree-optimization/58656
13886 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
13888 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13890 * gimplify.c: Include expr.h and tm_p.h for targets with special
13891 va-arg padding requirements.
13893 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13895 * tree-flow.h: Move some prototypes to gimple.h.
13896 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
13897 * gimple.h: Relocate some prototypes from tree-flow.h
13898 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
13899 Move to gimplify.c.
13900 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
13901 (build_va_arg_indirect_ref): Relocate and make static.
13902 (std_gimplify_va_arg_expr): Relocate here.
13903 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
13904 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
13906 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13908 * doc/md.texi: Document the mnemonic attribute.
13910 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13913 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
13914 (set_attr_alternative x ...) when searching for user defined
13915 mnemonic attribute.
13917 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13919 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
13921 2013-10-09 Easwaran Raman <eraman@google.com>
13923 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
13924 * cfgexpand.c (defer_stack_allocation): ...use here
13925 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
13927 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
13929 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
13930 (operand_equal_for_value_replacement): New function, extracted from
13931 value_replacement and enhanced to catch more cases.
13932 (value_replacement): Use operand_equal_for_value_replacement.
13934 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13936 * loop-doloop.c (doloop_modify, doloop_optimize): Use
13937 get_max_loop_iterations.
13939 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13941 * config/arm/aarch-common.c (arm_early_load_addr_dep):
13942 Place comment above function.
13944 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13946 * tree-flow.h: Remove all remaining prototypes, enums and structs that
13947 are not related to tree-cfg.c.
13948 * tree-ssa-address.h: New file. Relocate prototypes.
13949 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
13950 (addr_for_mem_ref): New. Combine call to get_address_description and
13951 return addr_for_mem_ref.
13952 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
13953 * tree-ssa-live.h: Adjust prototypes.
13954 * passes.c: Include tree-ssa-live.h.
13955 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
13956 * graphite.c (graphite_transform_loops): Make static.
13957 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13958 make_pass_graphite, pass_data_graphite_transforms,
13959 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
13960 * ipa-pure-const.c (warn_function_noreturn): Make static.
13961 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13962 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13963 Relocate from tree-cfg.c
13964 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
13966 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13967 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13968 Move to ipa-pure-const.c.
13969 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
13970 Relocate from tree-optimize.c.
13971 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
13972 make_pass_fixup_cfg): Move to tree-cfg.c.
13973 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
13974 Relocate some prototypes.
13975 * tree-data-ref.h (tree_check_data_deps) Add prototype.
13976 * tree-dump.c (dump_function_to_file): Remove prototype.
13977 Add tree-flow.h to the include file.
13978 * tree-dump.h: Remove prototype.
13979 * tree-parloops.h: New File. Add prototypes.
13980 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
13981 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
13982 from tree-ssa-loop.c.
13983 * tree-predcom.c (run_tree_predictive_commoning,
13984 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
13985 Relocate here from tree-ssa-loop.c.
13986 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
13987 ssa_name_values.release ().
13988 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
13989 (ssa_name_values): Relocate from tree-flow.h.
13990 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
13991 * tree-ssa-loop.c (run_tree_predictive_commoning,
13992 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
13993 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13994 make_pass_graphite, pass_data_graphite_transforms,
13995 make_pass_graphite_transforms, gate_tree_parallelize_loops,
13996 tree_parallelize_loops, pass_data_parallelize_loops,
13997 make_pass_parallelize_loops): Move to other files.
13998 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14000 * tree.h: Remove prototypes from tree-address.c.
14002 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14004 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14005 (struct int_tree_map): Move to tree-hasher.h
14006 (SCALE, LABEL, PERCENT): Move to gimple.h
14007 * tree-flow-inline.h: Delete. Move functions to other files.
14008 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14009 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14010 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14011 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14012 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14013 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14014 * tree-hasher.h: Don't include tree-flow.h.
14015 (struct int_tree_map): Relocate from tree-flow.h.
14016 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14017 tree-flow-inline.h and make static.
14018 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14019 tree-flow-inline.h.
14020 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14021 tree-flow-inline.h and make static.
14022 * tree.h (is_global_var, may_be_aliased): Relocate from
14023 tree-flow-inline.h.
14024 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14025 * value-prof.c: No longer include tree-flow-inline.h.
14026 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14028 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14030 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14031 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14032 (enum move_pos): Move to tree-ssa-loop-im.h
14033 * cfgloop.h: Move some prototypes.
14034 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14035 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14036 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14037 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14038 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14039 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14040 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14041 (enum move_pos): Relocate here.
14042 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14044 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14045 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14046 make_pass_lim): Relocate here from tree-ssa-loop.c.
14047 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14049 (loop_edge_to_cancel, unloop_loops): Make static.
14050 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14051 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14052 (tree_complete_unroll, gate_tree_complete_unroll,
14053 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14054 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14055 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14056 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14057 (stmt_invariant_in_loop_p): Remove unused function.
14058 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14059 * tree-ssa-loop-manip.h: New file. Add prototypes.
14060 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14061 (gcov_type_to_double_int): Move to cfgloop.h.
14062 (double_int_cmp, bound_index,
14063 estimate_numbers_of_iterations_loop): Make static.
14064 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14065 (max_loop_iterations): Factor out get_max_loop_iterations.
14066 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14068 * tree-ssa-loop-niter.h: New file. Add prototypes.
14069 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14070 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14071 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14072 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14073 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14074 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14075 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14076 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14077 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14078 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14079 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14080 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14081 pass_data_complete_unroll, make_pass_complete_unroll,
14082 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14083 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14084 tree-ssa-loop-ivcanon.c.
14085 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14086 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14087 tree-ssa-loop-prefetch.c.
14088 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14089 tree-ssa-loop-im.c.
14090 (get_lsm_tmp_name): Relocate and add suffix parameter.
14091 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14092 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14093 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14094 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14095 (get_estimated_loop_iterations): Factor out accessor from
14096 estimated_loop_iterations in tree-ssa-loop-niter.c.
14097 (get_max_loop_iterations): Factor out accessor from
14098 _max_loop_iterations in tree-ssa-niter.c.
14099 * loop-unroll.c (decide_unroll_constant_iterations,
14100 decide_unroll_runtime_iterations, decide_peel_simple,
14101 decide_unroll_stupid): Use new get_* accessors.
14103 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14105 PR tree-optimization/20318
14106 * doc/extend.texi (returns_nonnull): New function attribute.
14107 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14109 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14110 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14112 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14114 PR middle-end/58570
14115 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14116 false if both components are bitfields.
14118 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14120 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14121 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14122 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14123 * config/aarch64/aarch64.h
14124 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14125 * config/aarch64/aarch64-simd-builtins.def
14126 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14128 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14130 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14132 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14134 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14136 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14138 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14139 (vneg_f64): New intrinsic.
14140 (vneg_s8): Asm replaced with C.
14141 (vneg_s16): Likewise.
14142 (vneg_s32): Likewise.
14143 (vneg_s64): New intrinsic.
14144 (vnegq_f32): Asm replaced with C.
14145 (vnegq_f64): Likewise.
14146 (vnegq_s8): Likewise.
14147 (vnegq_s16): Likewise.
14148 (vnegq_s32): Likewise.
14149 (vnegq_s64): Likewise.
14151 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14153 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14155 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14157 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14158 packed stack special handling.
14159 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14160 back to fixed stack slots for FPRs saved due to stdarg.
14162 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14164 * config/s390/s390.c (s390_frame_info): Restructure function.
14166 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14168 * config/s390/s390.c (struct s390_frame_layout): New field
14170 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14171 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14172 regs_ever_clobbered to char*.
14173 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14174 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14175 (s390_register_info): Enable FPR save slots. Move/Copy some
14176 functionality into ...
14177 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14178 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14180 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14181 not imply a stack frame.
14182 (s390_init_frame_layout): Remove variable clobbered_regs.
14183 (s390_update_register_info): Remove function.
14184 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14185 cannot be used for register renaming.
14186 (s390_hard_regno_scratch_ok): New function.
14187 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14188 (s390_initial_elimination_offset): Change offset calculation of
14189 the return address pointer.
14190 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14191 (restore_gprs): Set frame related flag.
14192 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14193 (s390_emit_prologue): Call s390_register_info instead of
14194 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14195 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14196 (s390_optimize_prologue): Call s390_optimize_register_info.
14197 Try to remove also FPR slot save/restore INSNs. Remove frame
14198 related flags from restore INSNs.
14200 2013-10-08 DJ Delorie <dj@redhat.com>
14202 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14205 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14206 avoid conflict with the MI use of %c.
14207 * config/rl78/rl78-real.md: change %c to %C throughout.
14208 * config/rl78/rl78-virt.md: Likewise.
14210 2013-10-08 Jan Hubicka <jh@suse.cz>
14212 * config/i386/i386.c (ix86_option_override_internal): Switch
14213 to SSE math for -ffast-math when target ISA supports SSE2.
14215 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14217 * tree-flow.h: Remove some prototypes.
14218 * tree.h: Remove some protypes, add a couple.
14219 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14220 using_eh_for_cleanups_p): Add interface routines for front ends.
14221 * tree-eh.h: New file. Add protoptyes.
14222 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14223 (add_stmt_to_eh_lp_fn): Make static.
14224 (lower_try_finally): Use new using_eh_for_cleanups_p.
14225 * emit-rtl.c: Include tree-eh.h.
14226 * gimple.h: Include tree-eh.h.
14228 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14230 PR tree-optimization/58480
14231 * tree-vrp.c (infer_nonnull_range): New function.
14232 (infer_value_range): Call infer_nonnull_range.
14234 2013-10-08 Dehao Chen <dehao@google.com>
14236 PR tree-optimization/58619
14237 * tree-inline.c (copy_phis_for_bb): Combine location data
14240 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14243 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14244 RTX_FRAME_RELATED_P on INSN.
14246 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14248 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14249 (altivec_expand_vec_perm_const): Call it.
14251 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14253 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14254 sequences for LE VSX loads and stores at expand time.
14255 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14257 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14258 (rs6000_gen_le_vsx_permute): New.
14259 (rs6000_gen_le_vsx_load): New.
14260 (rs6000_gen_le_vsx_store): New.
14261 (rs6000_gen_le_vsx_move): New.
14262 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14263 (*vsx_le_perm_load_v4si): New.
14264 (*vsx_le_perm_load_v8hi): New.
14265 (*vsx_le_perm_load_v16qi): New.
14266 (*vsx_le_perm_store_v2di): New.
14267 (*vsx_le_perm_store_v4si): New.
14268 (*vsx_le_perm_store_v8hi): New.
14269 (*vsx_le_perm_store_v16qi): New.
14270 (*vsx_xxpermdi2_le_<mode>): New.
14271 (*vsx_xxpermdi4_le_<mode>): New.
14272 (*vsx_xxpermdi8_le_V8HI): New.
14273 (*vsx_xxpermdi16_le_V16QI): New.
14274 (*vsx_lxvd2x2_le_<mode>): New.
14275 (*vsx_lxvd2x4_le_<mode>): New.
14276 (*vsx_lxvd2x8_le_V8HI): New.
14277 (*vsx_lxvd2x16_le_V16QI): New.
14278 (*vsx_stxvd2x2_le_<mode>): New.
14279 (*vsx_stxvd2x4_le_<mode>): New.
14280 (*vsx_stxvd2x8_le_V8HI): New.
14281 (*vsx_stxvd2x16_le_V16QI): New.
14283 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14285 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14287 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14289 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14290 loop to work also for 31bit ABI.
14291 Save the stack pointer for frame_size > 0.
14293 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14295 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14296 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14297 constraint letters from expanders.
14298 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14299 retry count to general_operand.
14300 ("tabort"): Give operand 0 a mode.
14301 ("tabort_1"): Add mode and constraint letter for operand 0.
14302 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14304 2013-10-04 Jeff Law <law@redhat.com>
14306 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14308 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14310 (thread_across_edge): Here. Call it.
14312 2013-10-04 Cary Coutant <ccoutant@google.com>
14314 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14315 discarding a location list expression (or a piece of one).
14317 2013-10-03 Jan Hubicka <jh@suse.cz>
14319 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14320 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14321 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14323 2013-10-03 Jan Hubicka <jh@suse.cz>
14325 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14326 accumulate-outgoing-args when producing unwind info.
14328 2013-10-03 Wei Mi <wmi@google.com>
14330 * lra-constraints.c (insert_move_for_subreg): New function
14331 extracted from simplify_operand_subreg.
14332 (simplify_operand_subreg): Add reload for paradoxical subreg.
14334 2013-10-03 Rong Xu <xur@google.com>
14336 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14337 the candidate of builtin_expect such that we should fix the
14338 size/time estimation.
14339 (estimate_function_body_sizes): Do the acutally size/time fix-up
14340 for builtin_expect.
14342 2013-10-03 Rong Xu <xur@google.com>
14344 * predict.c (tree_predict_by_opcode): Get the probability
14345 for builtin_expect from param builtin_expect_probability.
14346 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14347 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14348 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14350 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14353 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14354 * calls.c (alloca_call_p): Use get_callee_fndecl.
14355 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14356 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14358 (vrp_visit_stmt): Remove duplicated code.
14360 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14362 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14363 ceildf2, btruncdf2, instead of vsx_* name.
14365 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14366 iterators to only do V2DF and V4SF here. Move the DF code to
14367 rs6000.md where it is combined with SF mode. Replace <VSv> with
14368 just 'v' since only vector operations are handled with these insns
14369 after moving the DF support to rs6000.md.
14370 (vsx_sub<mode>3): Likewise.
14371 (vsx_mul<mode>3): Likewise.
14372 (vsx_div<mode>3): Likewise.
14373 (vsx_fre<mode>2): Likewise.
14374 (vsx_neg<mode>2): Likewise.
14375 (vsx_abs<mode>2): Likewise.
14376 (vsx_nabs<mode>2): Likewise.
14377 (vsx_smax<mode>3): Likewise.
14378 (vsx_smin<mode>3): Likewise.
14379 (vsx_sqrt<mode>2): Likewise.
14380 (vsx_rsqrte<mode>2): Likewise.
14381 (vsx_fms<mode>4): Likewise.
14382 (vsx_nfma<mode>4): Likewise.
14383 (vsx_copysign<mode>3): Likewise.
14384 (vsx_btrunc<mode>2): Likewise.
14385 (vsx_floor<mode>2): Likewise.
14386 (vsx_ceil<mode>2): Likewise.
14387 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14388 (vsx_sminsf3): Likewise.
14389 (vsx_fmadf4): Likewise.
14390 (vsx_fmsdf4): Likewise.
14391 (vsx_nfmadf4): Likewise.
14392 (vsx_nfmsdf4): Likewise.
14393 (vsx_cmpdf_internal1): Likewise.
14395 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14396 simpler to select whether a target has SPE or traditional floating
14397 point support in iterators.
14398 (TARGET_DF_SPE): Likewise.
14399 (TARGET_SF_FPR): Likewise.
14400 (TARGET_DF_FPR): Likewise.
14401 (TARGET_SF_INSN): Macros to say whether floating point support
14402 exists for a given operation for expanders.
14403 (TARGET_DF_INSN): Likewise.
14405 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14406 combining of SF/DF mode operations, using both traditional and VSX
14414 (abs<mode>2): Combine SF/DF modes using traditional floating point
14415 instructions. Add support for using the upper DF registers with
14416 VSX support, and SF registers with power8-vector support. Update
14417 expanders for operations supported by both the SPE and traditional
14418 floating point units.
14419 (abs<mode>2_fpr): Likewise.
14420 (nabs<mode>2): Likewise.
14421 (nabs<mode>2_fpr): Likewise.
14422 (neg<mode>2): Likewise.
14423 (neg<mode>2_fpr): Likewise.
14424 (add<mode>3): Likewise.
14425 (add<mode>3_fpr): Likewise.
14426 (sub<mode>3): Likewise.
14427 (sub<mode>3_fpr): Likewise.
14428 (mul<mode>3): Likewise.
14429 (mul<mode>3_fpr): Likewise.
14430 (div<mode>3): Likewise.
14431 (div<mode>3_fpr): Likewise.
14432 (sqrt<mode>3): Likewise.
14433 (sqrt<mode>3_fpr): Likewise.
14434 (fre<Fs>): Likewise.
14435 (rsqrt<mode>2): Likewise.
14436 (cmp<mode>_fpr): Likewise.
14437 (smax<mode>3): Likewise.
14438 (smin<mode>3): Likewise.
14439 (smax<mode>3_vsx): Likewise.
14440 (smin<mode>3_vsx): Likewise.
14441 (negsf2): Delete SF operations that are merged with DF.
14442 (abssf2): Likewise.
14443 (addsf3): Likewise.
14444 (subsf3): Likewise.
14445 (mulsf3): Likewise.
14446 (divsf3): Likewise.
14448 (fmasf4_fpr): Likewise.
14449 (fmssf4_fpr): Likewise.
14450 (nfmasf4_fpr): Likewise.
14451 (nfmssf4_fpr): Likewise.
14452 (sqrtsf2): Likewise.
14453 (rsqrtsf_internal1): Likewise.
14454 (smaxsf3): Likewise.
14455 (sminsf3): Likewise.
14456 (cmpsf_internal1): Likewise.
14457 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14458 (negdf2): Delete DF operations that are merged with SF.
14459 (absdf2): Likewise.
14460 (nabsdf2): Likewise.
14461 (adddf3): Likewise.
14462 (subdf3): Likewise.
14463 (muldf3): Likewise.
14464 (divdf3): Likewise.
14466 (rsqrtdf_internal1): Likewise.
14467 (fmadf4_fpr): Likewise.
14468 (fmsdf4_fpr): Likewise.
14469 (nfmadf4_fpr): Likewise.
14470 (nfmsdf4_fpr): Likewise.
14471 (sqrtdf2): Likewise.
14472 (smaxdf3): Likewise.
14473 (smindf3): Likewise.
14474 (cmpdf_internal1): Likewise.
14475 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14476 (btrunc<mode>2): Delete separate expander, and combine with the
14477 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14478 (btrunc<mode>2_fpr): Likewise.
14479 (ceil<mode>2): Likewise.
14480 (ceil<mode>2_fpr): Likewise.
14481 (floor<mode>2): Likewise.
14482 (floor<mode>2_fpr): Likewise.
14483 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14484 Add support for using the upper registers with VSX and
14485 power8-vector. Move insns to be closer to the define_expands. On
14486 VSX systems, prefer the traditional form of FMA over the VSX
14487 version, since the traditional form allows the target not to
14488 overlap with the inputs.
14489 (fms<mode>4_fpr): Likewise.
14490 (nfma<mode>4_fpr): Likewise.
14491 (nfms<mode>4_fpr): Likewise.
14493 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14494 Richard Earnshaw <richard.earnshaw@arm.com>
14496 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14497 (struct mult_cost_table): Likewise.
14498 (struct mem_cost_table): Likewise.
14499 (struct fp_cost_table): Likewise.
14500 (struct vector_cost_table): Likewise.
14501 (cpu_cost_table): Likewise.
14502 * config/arm/arm.opt (mold-rts-costs): New option.
14503 (mnew-generic-costs): Likewise.
14504 * config/arm/arm.c (generic_extra_costs): New table.
14505 (cortexa15_extra_costs): Likewise.
14506 (arm_slowmul_tune): Use NULL as new costs.
14507 (arm_fastmul_tune): Likewise.
14508 (arm_strongarm_tune): Likewise.
14509 (arm_xscale_tune): Likewise.
14510 (arm_9e_tune): Likewise.
14511 (arm_v6t2_tune): Likewise.
14512 (arm_cortex_a5_tune): Likewise.
14513 (arm_cortex_a9_tune): Likewise.
14514 (arm_v6m_tune): Likewise.
14515 (arm_fa726te_tune): Likewise.
14516 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14517 (arm_cortex_tune): Use generict_extra_costs.
14518 (shifter_op_p): New function.
14519 (arm_unspec_cost): Likewise.
14520 (LIBCALL_COST): Define.
14521 (arm_new_rtx_costs): New function.
14522 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14523 table is available. Use old costs otherwise unless mnew-generic-costs
14525 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14526 (cpu_cost_table): Declare.
14528 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14531 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14532 (*subs_mul_imm_<mode>)
14533 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14534 (*sub_<shift>_<mode>)
14535 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14536 Remove k constraint.
14538 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14540 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14542 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14544 2013-10-02 Teresa Johnson <tejohnson@google.com>
14546 * predict.c (probably_never_executed): New function.
14547 (probably_never_executed_bb_p): Invoke probably_never_executed.
14548 (probably_never_executed_edge_p): Ditto.
14549 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14550 Treat profile insanities conservatively.
14552 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14554 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14556 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14558 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14559 use it. Use smaller increase for scratch. Don't increase reject
14560 for early clobber scratch.
14561 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14562 setting eliminated regs except setting fp from hfp.
14563 (lra_eliminate): Check lra_insn_recog_data on NULL.
14565 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14568 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14569 setting -mvsx-timode by default until the underlying problem is fixed.
14570 (RS6000_CPU, power7 defaults): Likewise.
14572 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14574 * config/x-linux (host-linux.o): Remove header dependencies.
14575 Use $(COMPILE) and $(POSTCOMPILE).
14576 * config/t-linux-android (linux-android.o): Ditto.
14578 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14580 * Makefile.in (expmed.o-warn): Remove.
14582 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14584 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14585 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14587 2013-10-02 Teresa Johnson <tejohnson@google.com>
14589 * dojump.c (do_jump_1): Divide probability between
14590 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14592 2013-10-02 Tom Tromey <tromey@redhat.com>
14594 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14596 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14598 * tree-flow.h: Remove some prototypes.
14599 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14600 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14601 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14602 mark_virtual_phi_result_for_renaming): Relocate here.
14603 * tree-into-ssa.h: Add prototypes.
14604 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14605 single_pred_before_succ_order.
14606 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14607 (nonfreeing_call_p) Move to gimple.c.
14608 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14610 * basic-block.h (single_pred_before_succ_order): Add prototype.
14611 * gimple.c (nonfreeing_call_p): Relocate here.
14612 * gimple.h: Add prototype.
14613 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14614 * tree-ssa-dom.h: New file. Relocate prototypes here.
14615 * tree-ssa.h: Include tree-ssa-dom.h.
14617 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14619 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14620 Use $(COMPILE) and $(POSTCOMPILE).
14622 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14624 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14626 * tree-flow.h: Remove some prototypes.
14627 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14628 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14629 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14630 propagate_tree_value*): Move from here to...
14631 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14632 propagate_tree_value*): Relocate here.
14633 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14634 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14635 * gimple-fold.c: Remove gimple-fold.h from include list.
14636 * tree-vrp.c: Remove gimple-fold.h from include list.
14637 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14638 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14639 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14640 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14641 * sese.c: Add tree-ssa-propagate.h to include list.
14643 2013-10-02 Richard Biener <rguenther@suse.de>
14645 * tree-loop-distribution.c: Include tree-vectorizer.h for
14646 find_loop_location.
14647 (enum partition_kind): Remove PKIND_REDUCTION.
14648 (struct partition_s): Remove has_writes member, add reduction_p member.
14649 (partition_alloc): Adjust.
14650 (partition_builtin_p): Likewise.
14651 (partition_has_writes): Remove.
14652 (partition_reduction_p): New function.
14653 (partition_merge_into): Likewise.
14654 (generate_code_for_partition): Commonize builtin partition
14656 (rdg_cannot_recompute_vertex_p): Remove.
14657 (already_processed_vertex_p): Likewise.
14658 (rdg_flag_vertex): Do not set has_writes.
14659 (classify_partition): Adjust.
14660 (rdg_build_partitions): Do not set has_writes, treat all
14661 partitions as useful.
14662 (distribute_loop): Record number of library calls generated. Adjust.
14663 (tree_loop_distribution): Report number of loops and library
14664 calls generated as opt-info.
14666 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14668 * tree-flow.h: Include new .h files. Move prototypes.
14669 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14670 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14671 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14672 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14673 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14674 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14675 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14676 * tree.h (get_ref_base_and_extent): Move prototype out.
14677 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14679 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14680 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14681 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14682 * tree-scalar-evolution.c: Include tree.h.
14683 * sese.c: Include tree.h.
14684 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14685 * dwarf2out.c: Include tree-dfa.h.
14686 * tree-chrec.c: Include tree.h.
14687 * tree-data-ref.c: Include tree.h.
14689 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14691 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14694 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14696 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14697 Use $(COMPILE) and $(POSTCOMPILE).
14698 (sol2-cxx.o): Likewise.
14699 (sol2-stubs.o): Likewise.
14700 (sol2.o): Likewise.
14701 * config/x-solaris (host-solaris.o): Likewise.
14703 * config/sparc/t-sparc (sparc.o): Remove.
14704 (sparc-c.o): Remove header dependencies.
14705 Use $(COMPILE) and $(POSTCOMPILE).
14706 * config/sparc/x-sparc: Likewise.
14708 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14710 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14711 * config/arc/arc700.md: Likewise.
14712 * config/arc/arc-modes.def: Likewise.
14713 * config/arc/arc-simd.h: Likewise.
14714 * config/arc/t-arc-uClibc: Likewise.
14715 * config/arc/t-arc-newlib: Likewise.
14717 2013-10-02 Renlin Li <renlin.li@arm.com>
14719 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14721 (aarch64_expand_epilogue): Likewise.
14723 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14724 Yufeng Zhang <yufeng.zhang@arm.com>
14726 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14728 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14729 'base_in' represent a conversion and legal_cast_p_1 holds; set
14730 'base_in' with the returned value from get_unwidened.
14732 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14734 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14735 plus_constant is not used.
14737 2013-10-01 Wei Mi <wmi@google.com>
14739 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14740 * config/i386/i386.md: Add define_peephole2 to
14741 break partial reg stall for cvtss2sd/cvtsd2ss.
14743 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14745 * config/arc/arc.c (pass_arc_ifcvt::clone):
14746 Update for ctxt_ -> m_ctxt change.
14748 2013-10-01 Jeff Law <law@redhat.com>
14750 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14751 outgoing_edge and intermediate_edge fields. Instead store the path.
14752 (redirection_data::hash): Hash on the last edge's destination index.
14753 (redirection_data::equal): Check the entire thread path.
14754 (lookup_redirectio_data): Corresponding changes.
14755 (create_edge_and_update_destination_phis): Likewise.
14756 (thread_single_edge): Likewise.
14758 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14759 Diego Novillo <dnovillo@google.com>
14761 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14762 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14763 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14764 versions of these patterns.
14766 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14767 (__builtin_arc_aligned): Likewise.
14769 * config/arc/arc.md: Expand adc_0 comment stating the intended
14770 purpose and why it isn't ready.
14771 Replace commented out call_value_via_label_mixed with a
14772 plain comment about bl_s.
14774 * config/arc/arc.c (stdio.h): Don't include directly.
14775 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14776 Remove if (1) condition.
14777 (arc_encode_section_info): Fix comment.
14779 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14781 * config/arc/arc.c (arc_conditional_register_usage):
14782 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14783 Also set reg_alloc_order for DMA config regs.
14785 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14786 Jeremy Bennett <jeremy.bennett@embecosm.com>
14788 * doc/install.texi (--with-cpu): Mention ARC.
14789 (arc-*-elf32): New paragraph.
14790 (arc-linux-uclibc): Likewise.
14791 * doc/md.texi (Machine Constraints): Add ARC part.
14792 * doc/invoke.texi: (menu): Add ARC Options.
14793 (Machine Dependent Options) <ARC Options>: Add synopsis.
14794 (node ARC Options): Add.
14795 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14796 (ARC Built-in Functions): New section defining
14797 generic ARC built-in functions.
14798 (ARC SIMD Built-in Functions): New section defining SIMD specific
14799 built-in functions.
14800 (Declaring Attributes of Functions): Extended
14801 description of short_call and long_call attributes for ARC and
14802 added index entries.
14804 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14805 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14806 Joern Rennecke <joern.rennecke@embecosm.com>
14807 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14808 Brendan Kehoe <brendan@zen.org>
14809 Michael Eager <eager@eagercon.com>
14810 Simon Cook <simon.cook@embecosm.com>
14811 Jeremy Bennett <jeremy.bennett@embecosm.com>
14813 * config/arc, common/config/arc: New directories.
14815 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14816 Brendan Kehoe <brendan@zen.org>
14817 Simon Cook <simon.cook@embecosm.com>
14819 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14821 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14823 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14824 * tree-ssa-coalesce.h: New. Move prototype to here.
14825 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14826 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14827 (gimple_can_coalesce_p): Move to...
14828 * gimple.c (gimple_can_coalesce_p): Here.
14830 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14832 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14833 (dump_decl_set): Move to gimple.c.
14834 * gimple.h: Don't include tree-ssa-operands.h.
14835 (dump_decl_set): Add prototype.
14836 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14837 Move to gimple-ssa.h.
14838 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14839 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14840 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14841 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14842 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14844 (dump_decl_set): Relocate here.
14845 * gimple-ssa.h: New file.
14846 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14847 Relocate from gimple.h.
14848 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14849 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14850 swap_tree_operands and remove non-ssa path.
14851 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14852 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
14854 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
14855 vect_is_simple_reduction_1): Use swap_ssa_operands.
14856 * tree-flow.h: Move various prototypes to tree-phinodes.h.
14857 (enum need_phi_state): Move to tree-into-ssa.c.
14858 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14859 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
14860 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
14861 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
14862 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14863 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14864 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14865 num_imm_uses): Move to ssa-iterators.h.
14866 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
14867 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
14869 (op_iter_done, op_iter_next_def, op_iter_next_tree,
14870 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
14871 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
14872 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
14873 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
14874 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
14875 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
14876 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
14877 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
14878 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
14879 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
14880 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
14881 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
14882 (set_phi_nodes): Move to tree-phinodes.h.
14883 * tree-ssa-operands.h (enum ssa_op_iter_type,
14884 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
14885 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
14886 (dump_decl_set): Remove prototype.
14887 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
14888 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
14889 (set_phi_nodes): Relocate from tree-flow-inline.h.
14890 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
14892 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
14893 include list. Temporarily add gimple.h to include list.
14894 * ssa-iterators.h: New file.
14895 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14896 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
14897 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
14898 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
14899 Relocate from tree-ssa-operands.h.
14900 (delink_imm_use, link_imm_use_to_list, link_imm_use,
14901 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14902 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14903 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14904 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
14905 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
14906 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
14907 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
14908 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
14909 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
14910 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
14911 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
14912 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
14913 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
14914 Relocate from tree-flow-inline.h.
14915 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
14917 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
14920 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
14921 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
14922 Insert '\t' to output template.
14923 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
14924 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
14925 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
14926 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
14928 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
14930 * doc/install.texi (Host/target specific installation notes for GCC):
14931 Put @anchor before @heading.
14932 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
14933 Use @email for email addresses.
14935 2013-10-01 Jeff Law <law@redhat.com>
14937 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
14938 a vec. Only delete the path if we create one without successfully
14939 registering a jump thread.
14940 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
14942 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
14943 (paths): New vector of jump threading paths.
14944 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
14945 (THREAD_PATH): New accessor macro for the entire thread path.
14946 (lookup_redirection_data): Get intermediate and final outgoing edge
14947 from the thread path.
14948 (create_edge_and_update_destination_phis): Copy the threading path.
14949 (ssa_fix_duplicate_block_edges): Get edges and block types from the
14950 jump threading path.
14951 (ssa_redirect_edges): Get edges and block types from the jump threading
14952 path. Free the path vector.
14953 (thread_block): Get edges from the jump threading path. Look at the
14954 entire path to see if we thread to a loop exit. If we cancel a jump
14955 thread request, then free the path vector.
14956 (thread_single_edge): Get edges and block types from the jump threading
14957 path. Free the path vector.
14958 (thread_through_loop_header): Get edges and block types from the jump
14959 threading path. Free the path vector.
14960 (mark_threaded_blocks): Iterate over the vector of paths and store
14961 the path on the appropriate edge. Get edges and block types from the
14962 jump threading path.
14963 (mark_threaded_blocks): Get edges and block types from the jump
14964 threading path. Free the path vector.
14965 (thread_through_all_blocks): Use the vector of paths rather than
14966 a vector of 3-edge sets.
14967 (register_jump_thread): Accept pointer to a path vector rather
14968 than the path vector itself. Store the path vector for later use.
14971 2013-10-01 Jakub Jelinek <jakub@redhat.com>
14972 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14975 * config/s390/s390.c (s390_split_branches): Modify check for table
14977 (s390_chunkify_start): Rearrange table jump insn check in order to
14978 deal with compare and branch insns correctly.
14980 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
14984 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
14985 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
14986 define_insn_and_split.
14987 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
14988 (shiftsi3_compare): New pattern.
14989 (rrx): New pattern.
14990 * config/arm/unspecs.md (UNSPEC_RRX): New.
14992 2013-10-01 Alan Modra <amodra@gmail.com>
14994 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
14995 casing inout operands.
14997 2013-10-01 Richard Biener <rguenther@suse.de>
14999 PR tree-optimization/58553
15000 * tree-loop-distribution.c (struct partition_s): Add niter member.
15001 (classify_partition): Populate niter member for the partition
15002 and properly identify whether the relevant store happens before
15003 or after the loop exit.
15004 (generate_memset_builtin): Use niter member from the partition.
15005 (generate_memcpy_builtin): Likewise.
15007 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15009 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15010 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15012 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15014 * basic-block.h (edge_list): Prefix member names with "m_".
15015 * context.h (context): Likewise.
15016 * domwalk.h (dom_walker): Likewise.
15017 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15018 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15019 * hash-table.h (hash_table): Likewise.
15020 * machmode.h (bit_field_mode_iterator): Likewise.
15021 * pass_manager.h (pass_list): Likewise.
15022 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15023 * tree-pass.h (pass_data): Likewise.
15024 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15025 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15026 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15027 * asan.c (pass_data_asan): Update accordingly.
15028 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15029 (control_dependences::control_dependences): Likewise.
15030 (control_dependences::~control_dependences): Likewise.
15031 (control_dependences::~control_dependences): Likewise.
15032 (control_dependences::get_edges_dependent_on): Likewise.
15033 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15034 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15035 * context.c (gcc::context::context): Likewise.
15036 * cprop.c (pass_rtl_cprop::clone): Likewise.
15037 * domwalk.c (dom_walker::walk): Likewise.
15038 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15039 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15040 * mode-switching.c (pass_mode_switching::clone): Likewise.
15041 * passes.c (opt_pass::opt_pass): Likewise.
15042 (pass_manager::pass_manager): Likewise.
15043 * predict.c (pass_strip_predict_hints::clone): Likewise.
15044 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15045 (pass_split_all_insns::clone): Likewise.
15046 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15048 (bit_field_mode_iterator::next_mode): Likewise.
15049 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15050 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15051 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15052 * tree-complex.c (pass_lower_complex::clone): Likewise.
15053 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15054 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15055 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15056 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15057 (pass_fold_builtins::clone): Likewise.
15058 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15059 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15060 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15061 (pass_cd_dce::clone): Likewise.
15062 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15063 (pass_phi_only_cprop::clone): Likewise.
15064 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15065 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15066 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15067 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15068 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15069 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15070 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15071 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15072 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15073 * tree-vrp.c (pass_vrp::clone): Likewise.
15074 * tsan.c (pass_tsan::clone): Likewise.
15076 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15078 PR middle-end/58564
15079 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15080 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15082 PR middle-end/58564
15083 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15084 optimization, punt if sign_bit_p looked through any zero extension.
15086 2013-09-30 Teresa Johnson <tejohnson@google.com>
15088 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15089 Update redirected out edge count in joiner case.
15090 (ssa_redirect_edges): Common the joiner and non-joiner cases
15091 so that joiner case gets profile updates.
15093 2013-09-30 Richard Biener <rguenther@suse.de>
15095 PR tree-optimization/58554
15096 * tree-loop-distribution.c (classify_partition): Require
15097 unconditionally executed stores for memcpy and memset recognition.
15098 (tree_loop_distribution): Calculate dominance info.
15100 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15102 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15103 (NO_PROFILE_COUNTERS): Likewise.
15104 (PROFILE_HOOK): Likewise.
15105 (FUNCTION_PROFILER): Likewise.
15106 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15108 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15110 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15111 calls and defines in TARGET_MACHO conditional.
15112 (load_macho_picbase_di): Likewise.
15113 (reload_macho_picbase): Likewise.
15114 (reload_macho_picbase_si): Likewise.
15115 (reload_macho_picbase_di): Likewise.
15116 (nonlocal_goto_receiver): Likewise.
15118 2013-09-30 Nick Clifton <nickc@redhat.com>
15120 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15121 that use the MSP430X ISA.
15122 (msp430_option_override): Scan -mmcu command line option for any
15123 MCU name that supports the MSP430X ISA.
15124 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15125 -mmcu options which enable the MSP430X ISA.
15127 2013-09-30 Richard Biener <rguenther@suse.de>
15129 PR middle-end/58532
15130 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15131 before looking for setjmp-like calls.
15133 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15136 * config/darwin-protos.h (machopic_get_function_picbase): New.
15137 * config/darwin.c (machopic_get_function_picbase): New.
15138 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15139 label for a new func. (load_macho_picbase_di): Likewise.
15140 (reload_macho_picbase): New expand.
15141 (reload_macho_picbase_si): New insn.
15142 (reload_macho_picbase_di): New insn.
15143 (nonlocal_goto_receiver): New define and split.
15144 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15145 (unspecv enum): Add UNSPECV_NLGR.
15147 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15149 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15150 that altivec registers are correctly sized on Darwin.
15152 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15154 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15155 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15156 * config/x-darwin (host-darwin.o): Likewise.
15157 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15158 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15159 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15161 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15163 * doc/invoke.texi: Fix usage of @tie{} command.
15165 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15167 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15169 2013-09-28 Jan Hubicka <jh@suse.cz>
15171 * config/i386/x86-tune.def: Add documentation for each of the options;
15174 2013-09-28 Jan Hubicka <jh@suse.cz>
15176 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15178 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15179 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15180 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15181 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15182 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15184 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15186 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15187 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15188 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15189 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15190 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15191 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15192 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15193 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15194 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15195 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15196 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15197 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15198 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15199 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15200 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15201 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15202 gimple.h, godump.c, graphite-clast-to-gimple.c,
15203 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15204 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15205 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15206 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15207 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15208 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15209 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15210 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15211 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15212 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15213 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15214 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15215 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15216 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15217 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15218 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15219 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15220 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15221 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15222 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15223 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15224 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15225 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15226 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15227 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15228 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15229 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15230 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15231 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15232 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15233 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15234 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15235 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15236 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15237 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15238 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15239 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15240 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15241 whitespace before "(".
15243 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15245 * expr.h (extract_bit_field): Remove packedp parameter.
15246 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15247 from forward declaration.
15248 (store_split_bit_field): Remove packedp arg from calls to
15249 extract_fixed_bit_field.
15250 (extract_bit_field_1): Remove packedp parameter and packedp
15251 argument from recursive calls and calls to extract_fixed_bit_field.
15252 (extract_bit_field): Remove packedp parameter and corresponding
15253 arg to extract_bit_field_1.
15254 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15256 (extract_split_bit_field): Remove packedp arg from call to
15257 extract_fixed_bit_field.
15258 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15259 (copy_blkmode_from_reg): Likewise.
15260 (copy_blkmode_to_reg): Likewise.
15261 (read_complex_part): Likewise.
15262 (store_field): Likewise.
15263 (expand_expr_real_1): Likewise.
15264 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15265 to extract_bit_field.
15266 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15267 call to extract_bit_field.
15268 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15269 call to extract_bit_field.
15270 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15271 and special packedp behavior from -fstrict-volatile-bitfields
15274 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15276 * lra-eliminations.c (init_elim_table): Guard value_p.
15278 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15280 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15281 DFmode, DImode, and SFmode in the upper VSX registers based on the
15282 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15283 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15284 of the VSX register handling.
15286 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15287 (f32_sv): Likewise.
15288 (zero_extendsidi2_lfiwzx): Add support for loading into the
15289 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15290 only do VSX memory options on Altivec registers.
15291 (extendsidi2_lfiwax): Likewise.
15292 (extendsfdf2_fpr): Likewise.
15293 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15294 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15295 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15296 (movdi_internal64): Likewise.
15298 2013-09-27 Xinliang David Li <davidxl@google.com>
15300 * opts.c (finish_options): Adjust parameters
15301 according to vect cost model.
15302 (common_handle_option): Set dynamic vect cost
15304 targhooks.c (default_add_stmt_cost): Compute stmt cost
15306 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15307 Use helper function.
15308 * tree-vectorizer.h (unlimited_cost_model): New function.
15309 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15310 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15312 (vect_enhance_data_refs_alignment): Ditto.
15313 * flag-types.h: New enum.
15314 * common/config/i386/i386-common.c (ix86_option_init_struct):
15315 No need to initialize vect_cost_model flag.
15316 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15319 2013-09-27 Diego Novillo <dnovillo@google.com>
15321 * gimple.h (enum ssa_mode): Remove.
15323 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15325 * cfgloop.h (number_of_loops): Fix typo in check for null.
15327 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15329 PR middle-end/58551
15330 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15331 are children of outermost saved_cfun's loop, and set it up to
15332 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15333 if loop != loop0 and SESE region contains bbs that belong to loop0.
15335 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15337 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15338 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15339 (set_address_segment, set_address_base, set_address_index)
15340 (set_address_disp): Accept the argument unconditionally.
15341 (baseness): Remove must_be_base_p and must_be_index_p checks.
15342 (decompose_normal_address): Classify as much as possible in the
15345 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15347 * cse.c (count_reg_usage): Handle INT_LIST.
15348 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15349 * reginfo.c (reg_scan_mark_refs): Likewise.
15350 * reload1.c (eliminate_regs_1): Likewise.
15352 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15354 PR middle-end/58547
15355 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15358 2013-09-27 Richard Biener <rguenther@suse.de>
15360 PR tree-optimization/58459
15361 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15362 restriction not propagating into loops.
15364 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15366 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15367 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15368 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15370 2013-09-26 Richard Biener <rguenther@suse.de>
15372 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15374 2013-09-26 Richard Biener <rguenther@suse.de>
15376 * alias.h (component_uses_parent_alias_set): Rename to ...
15377 (component_uses_parent_alias_set_from): ... this.
15378 * alias.c (component_uses_parent_alias_set): Rename to ...
15379 (component_uses_parent_alias_set_from): ... this and return
15380 the desired parent.
15381 (reference_alias_ptr_type_1): Use the result from
15382 component_uses_parent_alias_set_from instead of stripping
15383 components one at a time.
15384 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15386 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15388 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15389 Move prototypes to...
15390 * tree-ssa-ter.h: New File. Move prototypes here.
15391 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15392 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15393 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15394 from is_replaceable_p.
15395 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15396 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15397 (process_replaceable): Use ter_is_replaceable_p.
15398 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15399 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15400 newly refactored ssa_is_replaceable_p.
15401 * cfgexpand.c: Include tree-outof-ssa.h.
15402 * ssaexpand.h: Delete.
15404 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15406 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15407 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15409 (create_gimple_tmp): Delete.
15410 (get_expr_type, build_assign, build_type_cast): Move to...
15411 * gimple-builder.c: New File.
15412 (get_expr_type): Relocate from gimple.c.
15413 (build_assign, build_type_cast): Change to only create ssanames.
15414 * gimple.h: Move prototypes to...
15415 * gimple-builder.h: New File. Here.
15416 * tree-ssa.h: And here.
15417 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15418 count_uses_and_derefs): Relocate from gimple.c.
15419 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15420 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15421 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15422 gimple_replace_ssa_lhs.
15423 * asan.c: Include gimple-builder.h.
15424 * Makefile.in: Add gimple-builder.o.
15426 2013-09-26 Richard Biener <rguenther@suse.de>
15428 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15429 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15430 (loe_visit_block): Use gcc_checking_assert.
15431 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15432 gimple_assign_ssa_name_copy_p.
15433 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15436 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15438 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15439 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15441 2013-09-26 Richard Biener <rguenther@suse.de>
15443 PR tree-optimization/58539
15444 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15445 the fact that debug statements are not taking part in loop-closed
15448 2013-09-26 Nick Clifton <nickc@redhat.com>
15450 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15451 time warning message.
15452 (msp430_print_operand_raw): Delete unused letter parameter.
15453 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15454 (msp430_print_operand_address): New function.
15455 (msp430_print_operand): Move address printing code from here to
15457 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15459 (zero_extendpsisi2): Likewise.
15460 (extendpsisi2): New pattern.
15461 (andneghi3): New pattern.
15463 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15465 * config/aarch64/aarch64.opt (mlra): New option.
15466 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15467 (TARGET_LRA_P): Define.
15469 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15471 * expr.c (expand_assignment): Remove obsolete comment.
15473 2013-09-25 Jeff Law <law@redhat.com>
15475 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15476 tree-ssa-threadupdate.h.
15477 (register_jump_thread): Similarly.
15478 * tree-ssa-threadupdate.h: New header file.
15479 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15480 * tree-vrp.c: Likewise.
15481 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15482 (thread_around_empty_blocks): Change type of path vector argument to
15483 an edge,type pair from just an edge. Initialize both elements when
15484 appending to a jump threading path. Tweak references to elements
15486 (thread_across_edge): Similarly. Release memory for the elements
15488 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15489 (dump_jump_thread_path): New function broken out from
15490 register_jump_thread.
15491 (register_jump_thread): Use dump_jump_thread_path. Change type of
15492 path vector entries. Search the path for NULL edges and dump
15493 the path if one is found. Tweak the conversion of path to 3-edge
15494 form to use the block copy type information embedded in the path.
15496 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15498 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15500 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15501 Vladimir Makarov <vmakarov@redhat.com>
15503 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15504 from the least significant bit.
15505 (strip_address_mutations): Add bitfield operations handling.
15506 (must_be_index_p): Add shifting and rotate operations handling.
15507 (set_address_base): Use must_be_base_p predicate.
15508 (set_address_index): Use must_be_index_p predicate.
15510 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15511 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15512 Sergey Lega <sergey.s.lega@intel.com>
15513 Anna Tikhonova <anna.tikhonova@intel.com>
15514 Ilya Tocar <ilya.tocar@intel.com>
15515 Andrey Turetskiy <andrey.turetskiy@intel.com>
15516 Ilya Verbin <ilya.verbin@intel.com>
15517 Kirill Yukhin <kirill.yukhin@intel.com>
15518 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15520 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15522 (ix86_expand_vector_move_misalign): Support new unaligned load and
15523 stores and use new names.
15524 (CODE_FOR_sse2_storedqu): Rename to ...
15525 (CODE_FOR_sse2_storedquv16qi): ... this.
15526 (CODE_FOR_sse2_loaddqu): Rename to ...
15527 (CODE_FOR_sse2_loaddquv16qi): ... this.
15528 (CODE_FOR_avx_loaddqu256): Rename to ...
15529 (CODE_FOR_avx_loaddquv32qi): ... this.
15530 (CODE_FOR_avx_storedqu256): Rename to ...
15531 (CODE_FOR_avx_storedquv32qi): ... this.
15532 * config/i386/i386.md (fpint_logic): New.
15533 * config/i386/sse.md (VMOVE): Extend for AVX512.
15537 (VI_UNALIGNED_LOADSTORE): Ditto.
15538 (sse2_avx_avx512f): Ditto.
15539 (sse2_avx2): Extend for AVX512.
15540 (sse4_1_avx2): Ditto.
15541 (avx2_avx512f): New.
15542 (sse): Extend for AVX512.
15545 (avxsizesuffix): Ditto.
15546 (sseintvecmode): Ditto.
15547 (ssePSmode): Ditto.
15548 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15549 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15550 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15551 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15552 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15553 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15554 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15555 (STORENT_MODE): Extend for AVX512.
15556 (*absneg<mode>2): Replace constraint "x" with "v".
15557 (*mul<mode>3): Ditto.
15558 (*ieee_smin<mode>3): Ditto.
15559 (*ieee_smax<mode>3): Ditto.
15560 (avx_cmp<mode>3): Replace VF with VF_128_256.
15561 (*<sse>_maskcmp<mode>3_comm): Ditto.
15562 (<sse>_maskcmp<mode>3): Ditto.
15563 (<sse>_andnot<mode>3): Extend for AVX512.
15564 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15565 (<code><mode>3, fpint_logic): New.
15566 (*<code><mode>3): Extend for AVX512.
15567 (avx512flogicsuff): New.
15568 (avx512f_<logic><mode>): Ditto.
15569 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15571 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15572 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15573 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15574 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15575 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15576 (xop_vpermil2<mode>3): Ditto.
15577 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15578 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15579 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15580 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15582 2013-09-25 Tom Tromey <tromey@redhat.com>
15584 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15585 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15586 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15587 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15588 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15589 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15590 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15591 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15592 (GRAPHITE_HTAB_H): Remove.
15594 2013-09-25 Tom Tromey <tromey@redhat.com>
15596 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15598 2013-09-25 Tom Tromey <tromey@redhat.com>
15600 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15602 2013-09-25 Tom Tromey <tromey@redhat.com>
15604 * config/i386/t-i386 (i386.o): Remove.
15605 (i386-c.o): Use COMPILE and POSTCOMPILE.
15607 2013-09-25 Tom Tromey <tromey@redhat.com>
15609 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15611 2013-09-25 Tom Tromey <tromey@redhat.com>
15613 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15614 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15615 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15616 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15617 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15618 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15619 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15620 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15621 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15622 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15623 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15624 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15625 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15626 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15627 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15628 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15629 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15630 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15631 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15632 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15633 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15634 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15635 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15636 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15637 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15638 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15639 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15640 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15641 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15642 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15643 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15644 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15645 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15646 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15647 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15648 (graphite-clast-to-gimple.o, graphite-dependences.o)
15649 (graphite-interchange.o, graphite-poly.o)
15650 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15651 (graphite-optimize-isl.o, tree-vect-loop.o)
15652 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15653 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15654 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15655 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15656 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15657 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15658 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15659 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15660 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15661 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15662 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15663 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15664 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15665 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15666 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15667 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15668 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15669 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15670 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15671 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15672 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15673 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15674 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15675 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15676 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15677 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15678 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15679 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15680 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15681 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15682 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15683 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15684 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15685 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15686 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15687 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15688 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15689 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15690 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15691 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15692 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15693 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15694 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15695 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15696 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15697 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15698 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15699 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15700 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15701 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15702 (gcov-dump.o): Remove.
15703 (default-c.o): Use COMPILE and POSTCOMPILE.
15704 (CFLAGS-gcc.o): New variable.
15705 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15707 2013-09-25 Tom Tromey <tromey@redhat.com>
15709 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15710 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15711 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15712 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15713 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15714 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15715 (c-family/array-notation-common.o, c-family/stub-objc.o)
15716 (c-family/c-ubsan.o): Remove.
15718 2013-09-25 Tom Tromey <tromey@redhat.com>
15720 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15722 2013-09-25 Tom Tromey <tromey@redhat.com>
15724 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15725 to add -DENABLE_SHARED_LIBGCC.
15726 (gcc.o): Don't use subshell.
15728 2013-09-25 Tom Tromey <tromey@redhat.com>
15730 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15731 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15732 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15733 * configure, config.in: Rebuild.
15735 2013-09-25 Tom Tromey <tromey@redhat.com>
15737 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15738 (COMPILE, POSTCOMPILE): New variables.
15739 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15740 (DEPFILES): New variable.
15741 Include ".Po" files.
15742 * configure.ac: Add checks for dependency checking.
15743 * configure, aclocal.m4: Regenerate.
15745 2013-09-25 Tom Tromey <tromey@redhat.com>
15747 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15748 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15750 2013-09-25 Tom Tromey <tromey@redhat.com>
15752 * Makefile.in (generated_files): Add options.h,
15753 target-hooks-def.h, insn-opinit.h,
15754 common/common-target-hooks-def.h, pass-instances.def,
15755 c-family/c-target-hooks-def.h.
15757 2013-09-25 Jeff Law <law@redhat.com>
15759 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15760 than foo[foo.length () - 1] to access last member in a vec.
15761 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15763 2013-09-25 Richard Biener <rguenther@suse.de>
15765 PR middle-end/58521
15766 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15768 2013-09-25 Jan Hubicka <jh@suse.cz>
15770 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15773 2013-09-25 Marek Polacek <polacek@redhat.com>
15776 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15777 when determining the type name.
15779 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15781 * config/sh/sh.md: Fix formatting.
15783 2013-09-24 Xinliang David Li <davidxl@google.com>
15785 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15786 max peel iterations parameter.
15787 * param.def: New parameter.
15788 * doc/invoke.texi: Document New parameter.
15790 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15792 * gimple-pretty-print.c: Various whitespace tweaks.
15793 * tree-core.h: Likewise.
15794 * tree-pretty-print.c: Likewise.
15795 * tree-ssa-alias.c: Likewise.
15796 * tree-ssa-copy.c: Likewise.
15797 * tree-ssanames.c: Likewise.
15798 * tree-ssanames.h: Likewise.
15799 * tree-vrp.c: Likewise.
15801 2013-09-24 Alan Modra <amodra@gmail.com>
15803 PR middle-end/57134
15804 PR middle-end/57586
15805 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15806 for output operands that disallow regs. Don't use EXPAND_WRITE on
15809 2013-09-24 Richard Biener <rguenther@suse.de>
15811 PR middle-end/58513
15812 * tree.c (reference_alias_ptr_type): Move ...
15813 * alias.c (reference_alias_ptr_type): ... here and implement
15814 in terms of the new reference_alias_ptr_type_1.
15815 (ref_all_alias_ptr_type_p): New helper.
15816 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15817 use ref_all_alias_ptr_type_p.
15818 (get_deref_alias_set): Add flag_strict_aliasing check here.
15819 (reference_alias_ptr_type_1): New function, split out from ...
15820 (get_alias_set): ... here.
15821 (alias_ptr_types_compatible_p): New function.
15822 * alias.h (reference_alias_ptr_type): Declare.
15823 (alias_ptr_types_compatible_p): Likewise.
15824 * tree.h (reference_alias_ptr_type): Remove.
15825 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15826 to compare MEM_REF alias types.
15828 2013-09-24 Richard Biener <rguenther@suse.de>
15830 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15832 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15834 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15835 reload helper function arrays into a single array reg_addr.
15836 (reload_fpr_gpr): Likewise.
15837 (reload_gpr_vsx): Likewise.
15838 (reload_vsx_gpr): Likewise.
15839 (struct rs6000_reg_addr): Likewise.
15840 (reg_addr): Likewise.
15841 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15842 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15843 (rs6000_init_hard_regno_mode_ok): Likewise.
15844 (rs6000_secondary_reload_direct_move): Likewise.
15845 (rs6000_secondary_reload): Likewise.
15847 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15848 constraints: wu, ww, and wy. Repurpose wv constraint added during
15849 power8 changes. Put wg constraint in alphabetical order.
15851 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15852 for future work to add ISA 2.07 VSX single precision support.
15853 (-mvsx-scalar-double): Change default from -1 to 1, update
15854 documentation comment.
15855 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
15856 (-mupper-regs-df): New debug switch to control whether DF values
15857 can go in the traditional Altivec registers.
15858 (-mupper-regs-sf): New debug switch to control whether SF values
15859 can go in the traditional Altivec registers.
15861 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
15862 and wy constraints.
15863 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
15864 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
15865 Add new constraints, wu/ww/wy. Repurpose wv constraint.
15866 (rs6000_debug_legitimate_address_p): Print if we are running
15867 before, during, or after reload.
15868 (rs6000_secondary_reload): Add a comment.
15869 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
15871 * config/rs6000/constraints.md (wa constraint): Sort w<x>
15872 constraints. Update documentation string.
15873 (wd constraint): Likewise.
15874 (wf constraint): Likewise.
15875 (wg constraint): Likewise.
15876 (wn constraint): Likewise.
15877 (ws constraint): Likewise.
15878 (wt constraint): Likewise.
15879 (wx constraint): Likewise.
15880 (wz constraint): Likewise.
15881 (wu constraint): New constraint for ISA 2.07 SFmode scalar
15883 (ww constraint): Likewise.
15884 (wy constraint): Likewise.
15885 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
15886 in the previous submissions.
15887 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
15889 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
15891 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
15892 (REG_BR_PROB): Say that the probability is stored in an int_list.
15893 * reg-notes.def: Update commentary to mention INT_LIST.
15894 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
15895 (INT_LIST): New rtx.
15896 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
15897 * rtlanal.c (int_reg_note_p): New function.
15898 (alloc_reg_note): Assert that the note does not have an int argument.
15899 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
15900 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
15901 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
15902 rather than an INSN_LIST. Handle INT_LIST.
15903 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
15904 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
15905 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
15906 Manipulate them as ints rather than rtxes.
15907 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
15908 * regmove.c (copy_src_to_dest): Likewise.
15909 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
15911 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
15912 into the cases that need it.
15913 * config/arm/arm.c (arm_unwind_emit): Likewise.
15915 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
15916 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
15917 * loop-doloop.c (add_test, doloop_modify): Likewise.
15918 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15919 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
15920 * predict.c (combine_predictions_for_insn): Likewise.
15921 * print-rtl.c (print_rtx): Handle INT_LIST.
15922 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
15923 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
15924 * config/arm/arm.c (emit_unlikely_jump): Likewise.
15925 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
15926 (ix86_split_fp_branch, predict_jump): Likewise.
15927 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
15928 * config/sh/sh.c (expand_cbranchsi4): Likewise.
15929 * config/spu/spu.c (ea_load_store_inline): Likewise.
15931 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
15932 value of a REG_BR_PROB note.
15933 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
15934 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
15935 * emit-rtl.c (try_split): Likewise.
15936 * predict.c (br_prob_note_reliable_p): Likewise.
15937 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
15938 * reorg.c (mostly_true_jump): Likewise.
15939 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
15940 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
15941 * config/i386/i386.c (ix86_print_operand): Likewise.
15942 * config/ia64/ia64.c (ia64_print_operand): Likewise.
15943 * config/mmix/mmix.c (mmix_print_operand): Likewise.
15944 * config/rs6000/rs6000.c (output_cbranch): Likewise.
15945 * config/s390/s390.c (s390_expand_tbegin): Likewise.
15946 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
15947 * config/sparc/sparc.c (output_cbranch): Likewise.
15948 * config/spu/spu.c (get_branch_target): Likewise.
15949 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
15950 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
15952 2013-09-23 Jan Hubicka <jh@suse.cz>
15954 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
15956 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
15957 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
15959 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
15960 (gimple_fold_call): Dump inconsistent devirtualizations; add
15961 sanity check for type based devirtualizations.
15962 * ipa-prop.c: Include ipa-utils.h
15963 (ipa_intraprocedural_devirtualization): Add sanity check.
15964 (try_make_edge_direct_virtual_call): Likewise.
15966 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
15968 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
15969 assignment statements.
15971 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15973 * gimple-pretty-print.c (dump_ssaname_info): New function.
15974 (dump_gimple_phi): Call it.
15975 (pp_gimple_stmt_1): Likewise.
15976 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
15977 (range_info_def): Declare.
15978 * tree-pretty-print.c (pp_double_int): New function.
15979 (dump_generic_node): Call it.
15980 * tree-pretty-print.h (pp_double_int): Declare.
15981 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
15982 * tree-ssanames.h (range_info_def): New structure.
15983 (value_range_type): Move definition here.
15984 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
15986 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
15988 (set_range_info): New function.
15989 (get_range_info): Likewise.
15990 (duplicate_ssa_name_range_info): Likewise.
15991 (duplicate_ssa_name_fn): Check pointer type and call
15992 duplicate_ssa_name_range_info.
15993 * tree-ssa-copy.c (fini_copy_prop): Likewise.
15994 * tree-vrp.c (value_range_type): Remove definition, now in
15996 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
15997 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
15998 (SSA_NAME_RANGE_INFO): New macro.
16000 2013-09-23 Richard Biener <rguenther@suse.de>
16002 PR tree-optimization/58464
16003 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16004 (phi_trans_add): Change to add conditionally on being not present.
16005 (phi_translate_1): Remove recursion detection here.
16006 (phi_translate): Pre-seed the cache with NULL to catch
16007 recursion here in a more generic way.
16008 (bitmap_find_leader): Adjust comment.
16009 (get_representative_for): Dump value-numbers.
16010 (create_expression_by_pieces): Likewise.
16011 (insert_into_preds_of_block): Likewise.
16013 2013-09-23 Christian Bruel <christian.bruel@st.com>
16016 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16017 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16019 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16022 2013-09-20 Renlin Li <renlin.li@arm.com>
16024 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16026 (aarch64_expand_epilogue): Likewise.
16027 (aarch64_legitimize_reload_address): Likewise.
16029 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16031 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16032 NULL_TREE before pushing them onto the vector. Likewise for labels.
16034 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16036 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16037 comparison operators when -fno-trapping-math is in effect.
16038 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16039 comparison operators in TFmode and assert that unsupported operators
16041 (ia64_print_operand): Likewise.
16043 2013-09-21 Jan Hubicka <jh@suse.cz>
16045 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16046 (sse_typeless_stores): Enable for core
16047 (sse_load0_by_pxor): Likewise.
16048 (four_jump_limit): Disable for core.
16049 (pad_returns): Likewise.
16050 (avoid_vector_decode): Likewise.
16051 (fuse_cmp_and_branch): Enable for cores.
16052 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16054 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16056 PR middle-end/56791
16057 * config/pa/pa.c (pa_option_override): Disable auto increment and
16058 decrement instructions until reload is completed.
16060 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16061 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16062 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16064 2013-09-20 DJ Delorie <dj@redhat.com>
16065 Nick Clifton <nickc@redhat.com>
16067 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16068 (need_to_save): Save bank 0 on interrupts.
16069 (characterize_address): Strip far address wrappers.
16070 (rl78_as_legitimate_address): Likewise.
16071 (transcode_memory_rtx): Likewise.
16072 (rl78_peep_movhi_p): Disable this peephole after devirt.
16073 (rl78_propogate_register_origins): Forget all origins when a
16075 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16076 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16078 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16079 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16080 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16082 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16084 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16086 * config/pa/pa.md: In "scc" insn patterns, change output template to
16087 handle const0_rtx in reg_or_0_operand operands.
16089 2013-09-20 Martin Husemann <martin@NetBSD.org>
16092 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16093 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16095 2013-09-20 Richard Biener <rguenther@suse.de>
16097 PR middle-end/58484
16098 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16099 remembering SSA name version and block index.
16100 (new_scev_info_str): Adjust.
16101 (hash_scev_info): Likewise. Also hash the block index.
16102 (eq_scev_info): Adjust.
16103 (find_var_scev_info): Likewise.
16104 (struct instantiate_cache_entry): Remove.
16105 (struct instantiate_cache_type): Use a htab to map name, block
16107 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16108 (get_instantiated_value_entry): Likewise.
16109 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16110 (instantiate_scev_name): Adjust.
16112 2013-09-20 Jeff Law <law@redhat.com>
16114 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16116 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16118 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16119 Call aarch64_simd_expand_args to update op[argc].
16121 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16123 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16126 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16128 * gengtype.c (file_rules): Added rule for *.cc files.
16129 (get_output_file_with_visibility): Give fatal message when no
16132 2013-09-20 Renlin Li <renlin.li@arm.com>
16134 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16135 (aarch64_expand_epilogue): Likewise.
16136 (aarch64_legitimize_reload_address): Likewise.
16138 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16140 PR middle-end/57748
16141 * expr.c (expand_assignment): Remove misalignp code path.
16143 2013-09-20 Marek Polacek <polacek@redhat.com>
16146 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16147 TYPE_PRECISION. Add asserts.
16149 2013-09-20 Richard Biener <rguenther@suse.de>
16151 PR tree-optimization/58453
16152 * tree-loop-distribution.c (distribute_loop): Apply the cost
16153 model for -ftree-loop-distribute-patterns, too.
16155 2013-09-20 Richard Biener <rguenther@suse.de>
16157 PR middle-end/58473
16158 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16159 make type comparison less strict.
16161 2013-09-20 Alan Modra <amodra@gmail.com>
16163 * configure: Regenerate.
16164 * aclocal.m4: Regenerate.
16166 2013-09-20 Marek Polacek <polacek@redhat.com>
16169 * doc/extend.texi: Document that attribute used is meant to be used
16170 on variables with static storage duration.
16172 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16174 PR tree-optimization/58472
16175 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16176 simd_lane_access set inv_p = false.
16177 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16178 the simduid magic VAR_DECL.
16180 2013-09-19 Jan Hubicka <jh@suse.cz>
16182 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16184 2013-09-17 Jeff Law <law@redhat.com>
16186 * tree-ssa-dom.c (record_temporary_equivalences): New function
16187 split out of dom_opt_dom_walker::after_dom_children.
16188 (dom_opt_dom_walker::thread_across_edge): Move common code
16189 in here from dom_opt_dom_walker::after_dom_children.
16190 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16192 2013-09-19 Jan Hubicka <jh@suse.cz>
16194 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16195 (TARGET_GENERIC): Use PROCESOR_GENERIC
16196 (enum processor_type): Unify generic32 and 64.
16197 * i386.md (cpu): Likewise.
16198 * x86-tune.def (use_leave): Enable for generic32.
16199 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16200 * athlon.md: Change generic64 to generic in all occurences.
16201 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16202 (ix86_target_macros_internal): Likewise.
16203 * driver-i386.c (host_detect_local_cpu): Likewise.
16204 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16206 (generic_memcpy, generic_memset, generic_cost): This one.
16207 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16208 (m_GENERIC32, m_GENERIC64): Remove.
16209 (m_GENERIC): Turn into one flag.
16210 (processor_target): Unify generic tunnings.
16211 (ix86_option_override_internal): Replace generic32/64 by generic.
16212 (ix86_issue_rate): Likewise.
16213 (ix86_adjust_cost): Likewise.
16215 2013-09-19 Jan Hubicka <jh@suse.cz>
16217 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16218 of speculative flag.
16220 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16222 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16223 GOMP_sections_start, even if !exit_reachable.
16225 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16227 * lra-constraints.c (need_for_all_save_p): Use macro
16228 HARD_REGNO_CALL_PART_CLOBBERED.
16229 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16230 set up pseudo conflict hard regs.
16232 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16235 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16238 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16240 PR rtl-optimization/58438
16241 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16242 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16243 from previous subpasses.
16245 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16247 * arm.c (arm_get_frame_offsets): Validate architecture supports
16248 LDRD/STRD before accepting the tuning preference.
16249 (arm_expand_prologue): Likewise.
16250 (arm_expand_epilogue): Likewise.
16252 2013-09-18 Richard Biener <rguenther@suse.de>
16254 PR tree-optimization/58417
16255 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16256 have chrecs with symbols defined in the loop as operands.
16257 (chrec_fold_multiply): Likewise.
16258 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16259 parameters before folding binary operations.
16260 (struct instantiate_cache_entry_hasher): Remove.
16261 (struct instantiate_cache_type): Use a pointer-map.
16262 (instantiate_cache_type::instantiate_cache_type): New function.
16263 (instantiate_cache_type::get): Likewise.
16264 (instantiate_cache_type::set): Likewise.
16265 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16266 (get_instantiated_value_entry): Likewise.
16267 (global_cache): New global.
16268 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16269 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16270 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16271 (instantiate_scev_name): Adjust.
16272 (instantiate_scev): Construct global instead of local cache.
16273 (resolve_mixers): Likewise.
16275 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16276 Paolo Carlini <paolo.carlini@oracle.com>
16279 * doc/implement-cxx.texi: Fix references to the C++ standards.
16281 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16283 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16284 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16285 simd_lane_access drs, update also DR_ALIGNED_TO.
16287 2013-09-18 Marek Polacek <polacek@redhat.com>
16290 * doc/extend.texi: Document no_sanitize_undefined attribute.
16291 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16292 no_sanitize_undefined attribute.
16294 2013-09-18 Nick Clifton <nickc@redhat.com>
16296 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16297 (ASM_DECLARE_FUNCTION_NAME): Define.
16299 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16301 * compare-elim.c (find_comparison_dom_walker): New class
16302 (find_comparisons_in_bb): Rename to
16303 find_comparison_dom_walker::before_dom_children
16304 (find_comparisons): Adjust
16305 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16307 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16308 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16309 (init_walk_dominator_tree): Remove declaration.
16310 (fini_walk_dominator_tree): Remove declaration.
16311 * fwprop.c (single_def_use_dom_walker): New class
16312 (single_def_use_enter_block): Convert to
16313 single_def_use_dom_walker::before_dom_children.
16314 (single_def_use_leave_block): Convert to
16315 single_def_use_dom_walker::after_dom_children.
16316 (build_single_def_use_links): Adjust.
16317 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16319 (find_candidates_in_block): Convert to
16320 find_candidates_dom_walker::before_dom_children.
16321 (execute_strength_reduction): Adjust.
16322 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16323 (sese_dom_walker): New class.
16324 (sese_dom_walker::sese_dom_walker): New constructor.
16325 (sese_dom_walker::~sese_dom_walker): New destructor.
16326 (build_sese_conditions_before): Convert to
16327 sese_dom_walker::before_dom_children.
16328 (build_sese_conditions_after): Convert to
16329 sese_dom_walker::after_dom_children.
16330 (build_poly_scop): Adjust
16331 * tree-into-ssa.c (rewrite_dom_walker): New class
16332 (rewrite_enter_block): Convert to
16333 rewrite_dom_walker::before_dom_children.
16334 (rewrite_leave_block): Convert to
16335 rewrite_dom_walker::after_dom_children.
16336 (rewrite_update_dom_walker): New class.
16337 (rewrite_update_enter_block): Convert to
16338 rewrite_update_dom_walker::before_dom_children.
16339 (rewrite_update_leave_block): Convert to
16340 rewrite_update_dom_walker::after_dom_children.
16341 (rewrite_blocks, rewrite_into_ssa): Adjust.
16342 (mark_def_dom_walker): New class.
16343 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16344 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16345 (mark_def_sites_blocks): Convert to
16346 mark_def_dom_walker::before_dom_children.
16347 (mark_def_site_blocks): Remove.
16348 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16349 (tree_ssa_dominator_optimize): Adjust.
16350 (dom_thread_across_edge): Convert to method
16351 dom_opt_dom_walker::thread_across_edge.
16352 (dom_opt_enter_block): Convert to member function
16353 dom_opt_dom_walker::before_dom_children.
16354 (dom_opt_leave_block): Convert to member function
16355 dom_opt_dom_walker::after_dom_children.
16356 * tree-ssa-dse.c (dse_dom_walker): New class.
16357 (dse_enter_block): Convert to member function
16358 dse_dom_walker::before_dom_children.
16359 (tree_ssa_dse): Adjust.
16360 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16361 (determine_invariantness_stmt): Convert to method
16362 invariantness_dom_walker::before_dom_children.
16363 (determine_invariantness): Remove
16364 (move_computations_dom_walker): New class.
16365 (move_computations_stmt): Convert to method
16366 move_computations_dom_walker::before_dom_children.
16367 (move_computations, tree_ssa_lim): Adjust.
16368 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16369 (nt_init_block): Convert to method
16370 notrappping_dom_walker::before_dom_children.
16371 (nt_fini_block): Convert to method
16372 method nontrapping_dom_walker::after_dom_children.
16373 (get_non_trapping): Adjust.
16374 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16375 (eliminate_bb): Convert to method
16376 eliminate_dom_walker::before_dom_children.
16377 (eliminate_leave_block): Convert to method
16378 eliminate_dom_walker::after_dom_children.
16379 (eliminate): Adjust.
16380 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16381 (strlen_enter_block): Convert to method
16382 strlen_dom_walker::before_dom_children.
16383 (strlen_leave_block): Convert to method
16384 method strlen_dom_walker::after_dom_children.
16385 (tree_ssa_strlen): Adjust.
16386 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16387 (tree_ssa_uncprop): Adjust.
16388 (uncprop_leave_block): Convert to method
16389 uncprop_dom_walker::after_dom_children.
16390 (uncprop_leave_block): Convert to method
16391 uncprop_dom_walker::before_dom_children.
16393 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16395 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16396 branch in same basic block. Check both src and dest of the move insn.
16398 2013-09-17 Nick Clifton <nickc@redhat.com>
16400 * config/rl78/rl78-real.md (bf): New pattern.
16402 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16403 (rl78_print_operand): Do not put a # before a %B.
16404 * config/rl78/rl78.opt: Tweak doc strings.
16406 2013-09-17 DJ Delorie <dj@redhat.com>
16408 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16409 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16410 (rl78_option_override): Likewise, if -mallregs.
16411 (is_virtual_register): Likewise.
16412 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16413 (REGNO_OK_FOR_BASE_P): Likewise.
16414 * config/rl78/rl78.opt (-mallregs): New.
16416 2013-09-17 Nick Clifton <nickc@redhat.com>
16418 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16419 For interrupt functions: save all call clobbered registers if the
16420 interrupt handler is not a leaf function.
16421 (rl78_expand_prologue): Always recompute the frame information.
16422 For interrupt functions: only select bank 0 if one of the bank 0
16423 registers is going to be psuhed.
16425 2013-09-17 DJ Delorie <dj@redhat.com>
16427 * config/rl78/constraints.md: For each W* constraint, rename to C*
16428 and create a W* constraint that checks for an optional ES: prefix
16430 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16431 (es_addr): New. Used to wrap far addresses.
16432 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16433 (rl78_es_base): New.
16434 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16435 wrapped far addresses.
16436 (rl78_print_operand_1): Unwrap far addresses before processing.
16437 (rl78_lo16): Wrap far addresses in unspecs.
16438 (rl78_es_addr): New.
16439 (rl78_es_base): New.
16440 (insn_ok_now): Check for not-yet-wrapped far addresses.
16441 (transcode_memory_rtx): Properly re-wrap far addresses.
16443 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16445 * config/sparc/t-rtems: Add leon3 multilibs.
16447 2013-09-17 Cong Hou <congh@google.com>
16449 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16450 when checking the dot production pattern. The type of rhs operand
16451 of multiply is now checked correctly.
16453 2013-09-17 Jeff Law <law@redhat.com>
16455 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16456 edge implied equivalences into successor phis.
16457 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16458 here from tree-ssa-threadedge.c.
16459 (mark_threaded_blocks): When threading through a joiner, if both
16460 successors of the joiner's clone reach the same block, verify the
16461 PHI arguments are equal. If not, cancel the jump threading request.
16462 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16463 tree-ssa-threadupdate.c
16464 (thread_across_edge): Don't check PHI argument equality when
16465 threading through joiner block here.
16467 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16469 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16470 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16471 (warn_uninit, warn_uninitialized_vars,
16472 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16473 Move to tree-ssa-uninit.c.
16474 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16475 (has_undefined_value_p): New. Pass dependant parts of
16476 ssa_undefined_value_p.
16477 (uninit_undefined_value_p): Use has_undefined_value_p.
16478 (warn_uninit, warn_uninitialized_vars,
16479 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16480 Move from tree-ssa.c.
16481 * tree-ssa.h: Adjust prototypes.
16483 2013-09-17 Jan Hubicka <jh@suse.cz>
16485 PR middle-end/58332
16486 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16487 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16488 FUNCTION_NOT_OPTIMIZED.
16489 * ipa-inline-analysis.c (compute_inline_parameters): Function
16490 not optimized is not inlinable unless it is alwaysinline.
16491 (inline_analyze_function): Force calls in not optimized
16492 function not inlinable.
16494 2013-09-17 Jan Hubicka <jh@suse.cz>
16496 PR middle-end/58329
16497 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16499 * ipa.c (function_and_variable_visibility): Likewise.
16500 * ipa-profile.c (ipa_profile): Likewise.
16502 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16505 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16506 attribute, and don't inline the resolver in this case.
16508 2013-09-17 Teresa Johnson <tejohnson@google.com>
16510 * coverage.c (get_coverage_counts): Add missing newline.
16512 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16514 PR tree-optimization/58088
16515 * fold-const.c (mask_with_trailing_zeros): New function.
16516 (fold_binary_loc): Make sure we don't recurse infinitely
16517 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16518 Use mask_with_trailing_zeros where appropriate.
16520 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16522 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16523 of 'prev' var to get better distance estimation.
16525 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16527 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16528 * tree-inline.c (is_parameter_of): New predicate.
16529 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16530 a parameter has been remapped.
16531 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16532 (optimize_inline_calls): Initialize transform_parameter.
16533 (copy_gimple_seq_and_replace_locals): Likewise.
16534 (tree_function_versioning): Likewise.
16535 (maybe_inline_call_in_expr): Likewise.
16537 2013-09-17 Nick Clifton <nickc@redhat.com>
16539 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16540 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16541 interrupt handlers.
16542 (is_attr_func): New function.
16543 (msp430_is_interrupt_func): New function.
16544 (is_naked_func): New function.
16545 (is_reentrant_func): New function.
16546 (is_critical_func): New function.
16547 (msp430_start_function): Add annotations for function attributes.
16548 (msp430_attr): New function.
16549 (msp430_attribute_table): New.
16550 (msp430_function_section): New function.
16551 (TARGET_ASM_FUNCTION_SECTION): Define.
16552 (msp430_builtin): New enum.
16553 (msp430_init_builtins): New function.
16554 (msp430_builtin_devl): New function.
16555 (msp430_expand_builtin): New function.
16556 (TARGET_INIT_BUILTINS): Define.
16557 (TARGET_EXPAND_BUILTINS): Define.
16558 (TARGET_BUILTIN_DECL): Define.
16559 (msp430_expand_prologue): Add support for naked, interrupt,
16560 critical and reentrant functions.
16561 (msp430_expand_epilogue): Likewise.
16562 (msp430_print_operand): Handle 'O' character.
16563 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16565 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16566 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16567 (pushm): Use a 'n' rather than an 'i' constraint.
16568 (msp_return): Add generation of the interrupt return instruction.
16569 (disable_interrupts): New pattern.
16570 (enable_interrupts): New pattern.
16571 (push_intr_state): New pattern.
16572 (pop_intr_state): New pattern.
16573 (bic_SR): New pattern.
16574 (bis_SR): New pattern.
16575 * doc/extend.texi: Document MSP430 function attributes and builtin
16578 2013-09-17 Richard Biener <rguenther@suse.de>
16580 PR tree-optimization/58432
16581 * tree-loop-distribution.c (tree_loop_distribution): Also
16582 scan PHIs for outside loop uses and seed a partition from them.
16584 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16586 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16587 (restructure_reference): Call backtrace_base_for_ref.
16589 2013-09-17 Alan Modra <amodra@gmail.com>
16592 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16595 2013-09-16 DJ Delorie <dj@redhat.com>
16597 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16598 vregs location for RL78/G10.
16599 (rl78_expand_prologue): Avoid SEL on G10.
16600 (rl78_expand_epilogue): Likewise.
16601 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16602 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16603 __RL78_G10__ when appropriate.
16604 (ASM_SPEC): Pass -mg10 along to the assembler.
16605 * config/rl78/rl78.md (sel_rb): Disable for G10.
16606 * config/rl78/rl78.opt: Add -mg10 option.
16607 * config/rl78/t-rl78: Add -mg10 multilib.
16609 2013-09-16 Xinliang David Li <davidxl@google.com>
16611 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16612 * omp-low.c (omp_max_vf): Ditto.
16613 (expand_omp_simd): Ditto.
16614 * tree-vectorizer.c (vectorize_loops): Ditto.
16615 (gate_vect_slp): Ditto.
16616 (gate_increase_alignment): Ditto.
16617 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16618 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16619 (gate_tree_vectorize): Name change.
16620 (tree_vectorize): Ditto.
16621 (pass_vectorize::gate): Call new function.
16622 (pass_vectorize::execute): Ditto.
16623 * opts.c: O3 default setting change.
16624 (finish_options): Check new flag.
16625 * doc/invoke.texi: Document new flags.
16626 * common.opt: New flags.
16628 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16630 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16631 (Condition Code): Don't reference it.
16632 * doc/tm.texi: Regenerate.
16634 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16636 PR middle-end/58418
16637 * lra-constraints.c (undo_optional_reloads): Consider all optional
16638 reload even if it did not get a hard reg.
16640 2013-09-16 Teresa Johnson <tejohnson@google.com>
16642 * dumpfile.c (dump_loc): Remove newline emission.
16643 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16644 emission to dump_printf_loc calls where missing.
16645 (vect_mark_for_runtime_alias_test): Ditto.
16646 (vect_analyze_data_ref_dependence): Ditto.
16647 (vect_analyze_data_ref_dependences): Ditto.
16648 (vect_slp_analyze_data_ref_dependence): Ditto.
16649 (vect_slp_analyze_data_ref_dependences): Ditto.
16650 (vect_compute_data_ref_alignment): Ditto.
16651 (vect_update_misalignment_for_peel): Ditto.
16652 (vect_verify_datarefs_alignment): Ditto.
16653 (vector_alignment_reachable_p): Ditto.
16654 (vect_get_data_access_cost): Ditto.
16655 (vect_enhance_data_refs_alignment): Ditto.
16656 (vect_find_same_alignment_drs): Ditto.
16657 (vect_analyze_data_refs_alignment): Ditto.
16658 (vect_analyze_group_access): Ditto.
16659 (vect_analyze_data_ref_access): Ditto.
16660 (vect_analyze_data_ref_accesses): Ditto.
16661 (vect_prune_runtime_alias_test_list): Ditto.
16662 (vect_analyze_data_refs): Ditto.
16663 (vect_create_addr_base_for_vector_ref): Ditto.
16664 (vect_create_data_ref_ptr): Ditto.
16665 (vect_grouped_store_supported): Ditto.
16666 (vect_grouped_load_supported): Ditto.
16667 * value-prof.c (check_counter): Ditto.
16668 (check_ic_target): Ditto.
16669 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16670 (vect_recog_widen_mult_pattern): Ditto.
16671 (vect_recog_widen_sum_pattern): Ditto.
16672 (vect_recog_over_widening_pattern): Ditto.
16673 (vect_recog_widen_shift_pattern): Ditto.
16674 (vect_recog_rotate_pattern): Ditto.
16675 (vect_recog_vector_vector_shift_pattern): Ditto.
16676 (vect_recog_divmod_pattern): Ditto.
16677 (vect_recog_mixed_size_cond_pattern): Ditto.
16678 (vect_recog_bool_pattern): Ditto.
16679 (vect_pattern_recog_1): Ditto.
16680 (vect_pattern_recog): Ditto.
16681 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16682 (vect_is_simple_iv_evolution): Ditto.
16683 (vect_analyze_scalar_cycles_1): Ditto.
16684 (vect_get_loop_niters): Ditto.
16685 (vect_analyze_loop_1): Ditto.
16686 (vect_analyze_loop_form): Ditto.
16687 (vect_analyze_loop_operations): Ditto.
16688 (vect_analyze_loop_2): Ditto.
16689 (vect_analyze_loop): Ditto.
16690 (report_vect_op): Ditto.
16691 (vect_is_slp_reduction): Ditto.
16692 (vect_is_simple_reduction_1): Ditto.
16693 (vect_get_known_peeling_cost): Ditto.
16694 (vect_estimate_min_profitable_iters): Ditto.
16695 (vect_model_reduction_cost): Ditto.
16696 (vect_model_induction_cost): Ditto.
16697 (get_initial_def_for_induction): Ditto.
16698 (vect_create_epilog_for_reduction): Ditto.
16699 (vectorizable_reduction): Ditto.
16700 (vectorizable_induction): Ditto.
16701 (vectorizable_live_operation): Ditto.
16702 (vect_loop_kill_debug_uses): Ditto.
16703 (vect_transform_loop): Ditto.
16704 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16705 (vect_stmt_relevant_p): Ditto.
16706 (process_use): Ditto.
16707 (vect_mark_stmts_to_be_vectorized): Ditto.
16708 (vect_model_simple_cost): Ditto.
16709 (vect_model_promotion_demotion_cost): Ditto.
16710 (vect_model_store_cost): Ditto.
16711 (vect_get_store_cost): Ditto.
16712 (vect_model_load_cost): Ditto.
16713 (vect_get_load_cost): Ditto.
16714 (vect_init_vector_1): Ditto.
16715 (vect_get_vec_def_for_operand): Ditto.
16716 (vect_finish_stmt_generation): Ditto.
16717 (vectorizable_call): Ditto.
16718 (vectorizable_conversion): Ditto.
16719 (vectorizable_assignment): Ditto.
16720 (vectorizable_shift): Ditto.
16721 (vectorizable_operation): Ditto.
16722 (vectorizable_store): Ditto.
16723 (vectorizable_load): Ditto.
16724 (vectorizable_condition): Ditto.
16725 (vect_analyze_stmt): Ditto.
16726 (vect_transform_stmt): Ditto.
16727 (vect_is_simple_use): Ditto.
16728 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16729 (vect_can_advance_ivs_p): Ditto.
16730 (vect_update_ivs_after_vectorizer): Ditto.
16731 (vect_do_peeling_for_loop_bound): Ditto.
16732 (vect_gen_niters_for_prolog_loop): Ditto.
16733 (vect_update_inits_of_drs): Ditto.
16734 (vect_create_cond_for_alias_checks): Ditto.
16735 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16736 (vect_build_slp_tree_1): Ditto.
16737 (vect_supported_load_permutation_p): Ditto.
16738 (vect_analyze_slp_instance): Ditto.
16739 (vect_analyze_slp): Ditto.
16740 (vect_make_slp_decision): Ditto.
16741 (vect_detect_hybrid_slp): Ditto.
16742 (vect_bb_vectorization_profitable_p): Ditto.
16743 (vect_slp_analyze_bb_1): Ditto.
16744 (vect_update_slp_costs_according_to_vf): Ditto.
16745 (vect_get_mask_element): Ditto.
16746 (vect_transform_slp_perm_load): Ditto.
16747 (vect_schedule_slp_instance): Ditto.
16748 (vect_schedule_slp): Ditto.
16749 (vect_slp_transform_bb): Ditto.
16750 * profile.c (read_profile_edge_counts): Ditto.
16751 (compute_branch_probabilities): Ditto.
16752 * coverage.c (get_coverage_counts): Ditto.
16754 2013-09-16 Diego Novillo <dnovillo@google.com>
16756 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16758 2013-09-16 Jan Hubicka <jh@suse.cz>
16760 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16761 abstract functions; for static functions check the presence of body.
16763 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16765 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16766 * config/aarch64/aarch64-simd.md
16767 (aarch64_mla_elt<mode>): New.
16768 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16769 (aarch64_mls_elt<mode>): Likewise.
16770 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16771 (aarch64_fma4_elt<mode>): Likewise.
16772 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16773 (aarch64_fma4_elt_to_128v2df): Likewise.
16774 (aarch64_fma4_elt_to_64df): Likewise.
16775 (fnma<mode>4): Likewise.
16776 (aarch64_fnma4_elt<mode>): Likewise.
16777 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16778 (aarch64_fnma4_elt_to_128v2df): Likewise.
16779 (aarch64_fnma4_elt_to_64df): Likewise.
16780 * config/aarch64/iterators.md (VDQSF): New.
16781 * config/aarch64/arm_neon.h
16782 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16783 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16785 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16787 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16788 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16789 (aarch64_mul3_elt_to_128df): Likewise.
16790 (aarch64_mul3_elt_to_64v2df): Likewise.
16791 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16793 (VMUL_CHANGE_NLANES) Likewise.
16796 * config/aarch64/arm_neon.h
16797 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16799 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16801 * config/aarch64/arm_neon.h
16802 (vcvtx_high_f32_f64): Fix parameters.
16804 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16805 Uros Bizjak <ubizjak@gmail.com>
16807 * config/alpha.c: Include tree-ssanames.h.
16809 2013-09-16 Richard Biener <rguenther@suse.de>
16811 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16812 (dot_rdg_1): Handle control_dd.
16813 (create_edge_for_control_dependence): New function.
16814 (create_rdg_edges): Add control dependences if asked for.
16815 (build_rdg): Likewise.
16816 (generate_loops_for_partition): If there are not necessary
16817 control stmts remove all their dependencies.
16818 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16819 (distribute_loop): Pass on control dependences.
16820 (tree_loop_distribution): Compute control dependences and remove
16821 restriction on number of loop nodes.
16823 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16825 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16826 for internal calls.
16828 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16830 * cse.c (try_const_anchors): Punt on CC modes.
16832 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16834 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16836 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16839 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16840 calls to word_mode.
16842 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16845 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16847 (darwin_objc1_section): Likewise.
16848 (darwin_file_end): Emit Image Info section when required.
16850 2013-09-14 Jan Hubicka <jh@suse.cz>
16852 * tree-into-ssa.c (gate_into_ssa): New.
16853 (pass_data_build_ssa): Use it.
16854 * cgraph.h (expand_thunk): Update prototype.
16855 * cgraphunit.c (analyze_function): Expand thunks early.
16856 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
16857 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
16858 set lowered flag; do not add new function.
16859 (assemble_thunks_and_aliases): Update.
16860 * tree-ssa.c (gate_init_datastructures): New gate.
16861 (pass_data_init_datastructures): Use it.
16863 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16866 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
16867 xmm register set described in the psABI.
16869 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
16871 * dwarf2out.c (should_emit_struct_debug): Add check
16872 for type_decl variable is not NULL.
16874 2013-09-13 Jacek Caban <jacek@codeweavers.com>
16876 * config.gcc: Use new winnt-c.c target hooks
16877 * config/t-winnt: New file
16878 * config/winnt-c.c: New file
16879 * doc/tm.texi.in: Document new hook
16880 * doc/tm.texi: Regenerated
16882 2013-09-13 Jan Hubicka <jh@suse.cz>
16884 PR middle-end/58094
16885 * ipa-inline.c (check_callers): New function.
16886 (check_caller_edge): Remove.
16887 (want_inline_function_to_all_callers_p): Also permit alises that are
16889 (inline_to_all_callers): Terminate the walk when devirtualization
16890 introduce new calls.
16892 2013-09-13 Jan Hubicka <jh@suse.cz>
16894 * ipa-inline-analysis.c (struct growth_data): Add node.
16895 (do_estimate_growth_1): Fix detection of recursion.
16897 2013-09-13 Jakub Jelinek <jakub@redhat.com>
16899 PR tree-optimization/58392
16900 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
16901 to avoid shadowing of outer loop variable. If
16902 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
16903 replace_by_duplicate_decl simduid of loops that have it set and
16904 set dest_cfun->has_simduid_loops and/or
16905 dest_cfun->has_force_vect_loops.
16906 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
16907 instead of maybe_lookup_decl.
16908 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
16909 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
16910 call. Copy over force_vect and copy and remap simduid. Set
16911 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
16912 (copy_cfg_body): Remove blocks_to_copy argument. Use
16913 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
16914 caller. Don't set cfun->has_simduid_loops and/or
16915 cfun->has_force_vect_loops here.
16916 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
16918 (expand_call_inline, tree_function_versioning): Adjust copy_body
16921 2013-09-13 Martin Jambor <mjambor@suse.cz>
16924 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
16925 the assert if the edge was a speculative one.
16927 2013-09-13 Richard Biener <rguenther@suse.de>
16929 * tree-data-ref.h (known_dependences_p): Move here ...
16930 * tree-loop-distribution.c (known_dependences_p): ... from here.
16931 (dump_rdg_component, debug_rdg_component): Remove.
16932 (dump_rdg): Adjust.
16933 (generate_loops_for_partition): Use gimple_uid instead of
16934 relying on matching stmt visit order.
16935 (rdg_build_partitions): Take starting stmt vector.
16936 (ldist_gen): Merge into ...
16937 (distribute_loop): ... this function. Do not compute starting
16939 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
16941 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16943 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
16944 Set type attribute correctly. Set predicable_short_it attribute.
16945 (cmpsi_shiftsi): Remove %? from output template.
16947 2013-09-13 Richard Biener <rguenther@suse.de>
16949 * tree-loop-distribution.c (struct rdg_component,
16950 rdg_defs_used_in_other_loops_p, free_rdg_components,
16951 rdg_build_components): Remove.
16952 (stmts_from_loop): Do not record virtual PHIs.
16953 (generate_loops_for_partition): Skip virtual PHIs.
16954 (build_rdg_partition_for_component): Rename to ...
16955 (build_rdg_partition_for_vertex): ... this and adjust.
16956 (rdg_build_partitions): Take a vector of starting vertices
16957 instead of components. Remove unnecessary leftover handling.
16958 (ldist_gen): Do not build components or record other stores.
16959 (distribute_loop): Do not distribute loops containing stmts
16962 2013-09-13 Christian Bruel <christian.bruel@st.com>
16965 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
16967 2013-09-13 Kai Tietz <ktietz@redhat.com>
16969 * config.gcc: Separate cases for mingw and cygwin targets,
16970 and add 64-bit cygwin target case.
16972 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
16973 dll-export inline-functions.
16974 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
16976 2013-09-13 Jeff Law <law@redhat.com>
16978 PR middle-end/58387
16980 2013-09-06 Jeff Law <law@redhat.com>
16982 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16983 edge implied equivalences into successor phis.
16985 2013-09-12 DJ Delorie <dj@redhat.com>
16987 * config/rl78/rl78-virt.md: Change from | to \; for asm line
16990 2013-09-12 Brooks Moses <bmoses@google.com>
16993 * Makefile.in: Do not install driver binaries in $(target)/bin.
16995 2013-09-12 DJ Delorie <dj@redhat.com>
16997 * config/rl78/rl78.opt (mrelax): New.
16998 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
16999 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17001 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17003 (rl78_expand_epilogue): Likewise.
17005 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17007 PR middle-end/58335
17008 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17009 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17010 pointer elimination with using remove_reg_equal_offset_note.
17012 2013-09-12 DJ Delorie <dj@redhat.com>
17014 * config/msp430/: New port.
17015 * config.gcc (msp430): Added.
17016 * doc/invoke.texi: Document MSP430 options.
17017 * doc/install.texi: Document msp430-elf
17018 * doc/md.texi: Document msp430-elf
17019 * doc/contrib.texi: Document msp430-elf
17021 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17024 2013-09-12 Martin Jambor <mjambor@suse.cz>
17027 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17028 reference descriptor is NULL.
17029 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17032 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17034 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17035 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17036 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17037 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17038 make_temp_ssa_name): move to tree-ssanames.h
17039 * tree-ssa-alias.h: Move prototype.
17040 * tree-ssa.h: Include tree-ssanames.h.
17041 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17042 * tree-ssanames.h: New. Move items from tree-flow*.h
17043 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17045 2013-09-12 Richard Biener <rguenther@suse.de>
17047 PR tree-optimization/58404
17048 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17049 propagate non-invariant addresses into dereferences wrapped
17050 in component references.
17052 2013-09-12 Richard Biener <rguenther@suse.de>
17054 PR tree-optimization/58402
17055 * passes.def: Move pass_late_warn_uninitialized later.
17057 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17059 * tree-ssa.h: New. Move content from tree-flow.h and
17060 tree-flow-inline.h.
17061 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17062 Move prototypes belonging to tree-ssa.c.
17063 * tree-flow-inline.h (redirect_edge_var_map_def,
17064 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17066 * gimple.h: Adjust prototypes.
17067 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17069 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17070 * tree.h: Move prototype to tree-ssa.h.
17071 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17072 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17073 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17074 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17075 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17076 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17077 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17078 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17079 graphite-blocking.c, graphite-clast-to-gimple.c,
17080 graphite-dependences.c, graphite-interchange.c,
17081 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17082 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17083 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17084 ipa-reference.c, ipa-split.c, ipa-utils.c,
17085 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17086 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17087 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17088 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17089 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17090 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17091 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17092 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17093 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17094 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17095 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17096 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17097 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17098 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17099 value-prof.c, var-tracking.c,
17100 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17102 2013-09-12 Richard Biener <rguenther@suse.de>
17104 PR tree-optimization/58396
17105 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17106 (build_rdg): Take a loop-nest parameter, fix memleaks.
17107 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17109 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17111 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17114 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17116 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17117 The FMA instruction names should have a 'v' prefix.
17119 2013-09-12 Richard Biener <rguenther@suse.de>
17121 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17122 (dot_rdg): Use popen instead of system in optional code.
17123 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17124 (already_processed_vertex_p): Adjust.
17125 (has_anti_or_output_dependence, predecessor_has_mem_write,
17126 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17127 rdg_flag_uses): Remove.
17128 (rdg_flag_vertex): Simplify.
17129 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17131 (build_rdg_partition_for_component): Process the first vertex
17132 of a component only.
17133 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17135 2013-09-12 Alan Modra <amodra@gmail.com>
17137 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17139 2013-09-11 DJ Delorie <dj@redhat.com>
17140 Nick Clifton <nickc@redhat.com>
17142 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17143 (rl78_stack_based_mem): New.
17144 * config/rl78/constraints.md (Iv08): New.
17153 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17155 (movsi): Change from expand to insn-and-split.
17156 (ashrsi3): Clobber AX.
17160 * config/rl78/rl78.md (CC_REG): Fix.
17161 (addsi3): Allow memory and immediate operands.
17162 (addsi3_internal): Split into...
17163 (addsi3_internal_virt): ...new, and ...
17164 (addsi3_internal_real): ...new.
17166 (subsi3_internal_virt): New.
17167 (subsi3_internal_real): New.
17168 (mulsi3): Add memory operand.
17169 (mulsi3_rl78): Likewise.
17170 (mulsi3_g13): Likewise.
17171 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17172 (cbranchqi4_real): Add more constraint options.
17173 (cbranchhi4_real): Expand pattern.
17174 (cbranchhi4_real_signed): New.
17175 (cbranchhi4_real_inverted): New.
17176 (cbranchsi4_real_lt): New.
17177 (cbranchsi4_real_ge): New.
17178 (cbranchsi4_real_signed): New.
17179 (cbranchsi4_real): New.
17181 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17183 (lshrsi3_virt): Likewise.
17184 (ashlsi3_virt): Likewise.
17185 (cbranchqi4_virt_signed): New.
17186 (cbranchhi4_virt_signed): New.
17187 (cbranchsi4_virt): New.
17188 * config/rl78/rl78.c: Whitespace fixes throughout.
17189 (move_elim_pass): New.
17190 (pass_data_rl78_move_elim): New.
17191 (pass_rl78_move_elim): New.
17192 (make_pass_rl78_move_elim): New.
17193 (rl78_devirt_info): Run devirt earlier.
17194 (rl78_move_elim_info): New.
17195 (rl78_asm_file_start): Register it.
17196 (rl78_split_movsi): New.
17197 (rl78_as_legitimate_address): Allow virtual base registers when
17199 (rl78_addr_space_convert): Remove spurious debug stuff.
17200 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17201 (rl78_print_operand): More cases for not printing '#'.
17202 (rl78_expand_compare): Remove most of the logic.
17203 (content_memory): New.
17204 (clear_content_memory): New.
17205 (get_content_index): New.
17206 (get_content_name): New.
17207 (display_content_memory): New.
17208 (update_content): New.
17209 (record_content): New.
17210 (already_contains): New.
17211 (insn_ok_now): Re-recog insns with virtual registers.
17212 (add_postponed_content_update): New.
17213 (process_postponed_content_update): New.
17214 (gen_and_emit_move): New.
17215 (transcode_memory_rtx): Record new location content.
17216 Use gen_and_emit_move.
17217 (force_into_acc): New.
17218 (move_to_acc): Use gen_and_emit_move.
17219 (move_from_acc): Likewise.
17220 (move_acc_to_reg): Likewise.
17221 (move_to_x): Likewise.
17222 (move_to_hl): Likewise.
17223 (move_to_de): Likewise.
17224 (rl78_alloc_physical_registers_op1): Record location content.
17225 (has_constraint): New.
17226 (rl78_alloc_physical_registers_op2): Record location content.
17227 Optimize use of HL.
17228 (rl78_alloc_physical_registers_ro1): Likewise.
17229 (rl78_alloc_physical_registers_cmp): Likewise.
17230 (rl78_alloc_physical_registers_umul): Likewise.
17231 (rl78_alloc_address_registers_macax): New.
17232 (rl78_alloc_physical_registers): Initialize and set location
17233 content memory as needed.
17234 (rl78_reorg): Make sure split2 is called.
17235 (rl78_rtx_costs): New.
17237 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17239 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17240 for (not (neg ...)) and (neg (not ...)) cases.
17242 2013-09-11 Richard Biener <rguenther@suse.de>
17244 PR middle-end/58377
17245 * passes.def: Split critical edges before late uninit warning passes.
17246 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17248 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17250 PR tree-optimization/58385
17251 * fold-const.c (build_range_check): If both low and high are NULL,
17252 use omit_one_operand_loc to preserve exp side-effects.
17254 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17256 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17258 2013-09-11 Richard Biener <rguenther@suse.de>
17260 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17261 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17262 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17263 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17264 stmts_from_loop, known_dependences_p, build_empty_rdg,
17265 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17266 * tree-loop-distribution.c: ... here.
17267 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17268 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17269 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17270 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17271 * tree-loop-distribution.c: ... here.
17272 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17273 (struct partition_s): Add loops member.
17274 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17275 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17276 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17278 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17280 Sergey Lega <sergey.s.lega@intel.com>
17281 Anna Tikhonova <anna.tikhonova@intel.com>
17282 Ilya Tocar <ilya.tocar@intel.com>
17283 Andrey Turetskiy <andrey.turetskiy@intel.com>
17284 Ilya Verbin <ilya.verbin@intel.com>
17285 Kirill Yukhin <kirill.yukhin@intel.com>
17286 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17288 * config/i386/constraints.md (k): New.
17290 * config/i386/i386.c (const regclass_map): Add new mask registers.
17291 (dbx_register_map): Ditto.
17292 (dbx64_register_map): Ditto.
17293 (svr4_dbx_register_map): Ditto.
17294 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17296 (ix86_preferred_reload_class): Disable constants for mask registers.
17297 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17298 (ix86_hard_regno_mode_ok): Support new mask registers.
17299 (x86_order_regs_for_local_alloc): Ditto.
17300 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17301 (FIXED_REGISTERS): Add new mask registers.
17302 (CALL_USED_REGISTERS): Ditto.
17303 (REG_ALLOC_ORDER): Ditto.
17304 (VALID_MASK_REG_MODE): New.
17305 (FIRST_MASK_REG): Ditto.
17306 (LAST_MASK_REG): Ditto.
17307 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17308 (MAYBE_MASK_CLASS_P): New.
17309 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17310 (REG_CLASS_CONTENTS): Ditto.
17311 (MASK_REGNO_P): New.
17312 (ANY_MASK_REG_P): Ditto.
17313 (HI_REGISTER_NAMES): Add new mask registers.
17314 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17315 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17317 (attribute "type"): Add mskmov, msklog.
17318 (attribute "length_immediate"): Support them.
17319 (attribute "memory"): Ditto.
17320 (attribute "prefix_0f"): Ditto.
17321 (*movhi_internal): Support new mask registers.
17322 (*movqi_internal): Ditto.
17323 (define_split): Split out clobber pattern is a logic
17324 insn on mask registers.
17325 (*k<logic><mode>): New.
17326 (*andhi_1): Extend to support mask regs.
17327 (*andqi_1): Extend to support mask regs.
17328 (kandn<mode>): New.
17329 (define_split): Split and-not to and and not if operands
17331 (*<code><mode>_1): Separate HI mode to new pattern...
17332 (*<code>hi_1): This.
17333 (*<code>qi_1): Extend to support mask regs.
17334 (kxnor<mode>): New.
17335 (kortestzhi): Ditto.
17336 (kortestchi): Ditto.
17338 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17339 (*one_cmplhi2_1): ...Here, now with mask registers support.
17340 (*one_cmplqi2_1): Support new mask registers.
17341 (HI/QImode arithmetics splitter): Don't split if mask registers
17343 (HI/QImode not splitter): Ditto.
17344 * config/i386/predicated.md (mask_reg_operand): New.
17345 (general_reg_operand): Ditto.
17347 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17349 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17350 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17352 2013-09-10 Jeff Law <law@redhat.com>
17354 PR tree-optimization/58380
17355 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17356 of threading through a buried loop header.
17358 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17359 return value for single successor case.
17361 2013-09-10 Jan Hubicka <jh@suse.cz>
17363 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17365 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17368 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17369 support conditional execution.
17370 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17372 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17374 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17376 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17377 Check destination too to check move insn.
17378 (undo_optional_reloads): Add check that the original peudo did not
17379 changed its allocation and the optional reload was inherited on last
17380 inheritance pass. Break loop after deciding to keep optional reload.
17381 (lra_undo_inheritance): Add check that inherited pseudo still in
17384 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17386 * config/aarch64/aarch64.md (generic_sched): New.
17387 * config/aarch64/aarch64-generic.md (load): Make conditional
17388 on generic_sched attribute.
17389 (nonload): Likewise.
17391 2013-09-10 Jan Hubicka <jh@suse.cz>
17393 * lto-cgraph.c: Include ipa-utils.h.
17394 (compute_ltrans_boundary): Also add possible targets into the boundary.
17396 2013-09-10 Jan Hubicka <jh@suse.cz>
17398 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17399 VAR_DECL of vtable rather than full expression.
17401 2013-09-10 Jan Hubicka <jh@suse.cz>
17402 Paolo Carlini <paolo.carlini@oracle.com>
17404 * cgraphunit.c (analyze_functions): Save input_location, set it
17405 to UNKNOWN_LOCATION and restore it at the end.
17407 2013-09-10 Martin Jambor <mjambor@suse.cz>
17409 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17410 represented by a thunk.
17412 2013-09-10 Jeff Law <law@redhat.com>
17414 PR tree-optimization/58343
17415 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17416 jump threading requests through loop headers buried in the middle
17417 of a jump threading path.
17419 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17420 in return value/type.
17422 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17424 PR rtl-optimization/58365
17425 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17426 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17429 2013-09-10 Richard Biener <rguenther@suse.de>
17431 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17432 * tree-data-ref.c (create_rdg_vertices): Collect all data
17433 references, signal failure to the caller, use data-ref API.
17434 (build_rdg): Compute data references only once. Maintain lifetime
17435 of data references and data dependences from within RDG.
17436 (free_rdg): Free dependence relations.
17437 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17438 inventing extra dependences.
17439 (distribute_loop): Update for RDG API changes.
17441 2013-09-10 Kai Tietz <ktietz@redhat.com>
17443 * doc/invoke.texi (fms-extensions): Document changed
17444 behavior for ms-abi targets.
17445 * config/i386/i386.c (ix86_option_override_internal):
17446 Set default value of option -fms-extension for ms-abi targets.
17448 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17450 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17452 2013-09-10 Alan Modra <amodra@gmail.com>
17455 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17457 2013-09-10 Alan Modra <amodra@gmail.com>
17459 * config/rs6000/predicates.md (add_cint_operand): New.
17460 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17461 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17462 using add_cint_operand.
17463 (largetoc_high_plus_aix): Likewise.
17465 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17467 PR tree-optimization/58364
17468 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17469 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17470 the current range can't be an unconditional true or false.
17472 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17474 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17476 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17478 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17480 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17483 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17485 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17487 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17488 NO_REGS for immediate that can't be moved directly into FP_REGS.
17490 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17492 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17493 comparison with negated operand.
17494 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17497 2013-09-09 Richard Biener <rguenther@suse.de>
17499 PR middle-end/58326
17500 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17501 of a subloop record all its block as affecting loop-closed SSA form.
17503 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17505 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17506 of an rtx/bitpos pair.
17507 (store_fixed_bit_field): Update accordingly.
17509 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17511 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17513 * builtins.c (expand_errno_check): Likewise.
17514 * dwarf2cfi.c (init_return_column_size): Likewise.
17515 * except.c (sjlj_mark_call_sites): Likewise.
17516 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17517 * lra-constraints.c (emit_inc): Likewise.
17518 * ree.c (combine_set_extension): Likewise.
17519 * regmove.c (fixup_match_2): Likewise.
17520 * reload1.c (inc_for_reload): Likewise.
17522 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17524 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17525 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17526 Use gen_int_mode with the mode of the associated simplify_* call.
17527 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17528 * expmed.c (expand_shift_1): Likewise.
17529 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17530 * loop-iv.c (iv_number_of_iterations): Likewise.
17531 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17532 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17534 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17536 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17537 of the associated expand_* call.
17538 (asan_emit_stack_protection): Likewise.
17539 * builtins.c (round_trampoline_addr): Likewise.
17540 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17541 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17542 (emit_store_flag): Likewise.
17543 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17544 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17546 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17547 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17548 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17549 * modulo-sched.c (generate_prolog_epilog): Likewise.
17550 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17551 (expand_ctz, expand_ffs, expand_unop): Likewise.
17553 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17555 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17556 of the associated gen_rtx_* call.
17557 * caller-save.c (init_caller_save): Likewise.
17558 * combine.c (find_split_point, make_extraction): Likewise.
17559 (make_compound_operation): Likewise.
17560 * dwarf2out.c (mem_loc_descriptor): Likewise.
17561 * explow.c (plus_constant, probe_stack_range): Likewise.
17562 * expmed.c (expand_mult_const): Likewise.
17563 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17564 * reload1.c (init_reload): Likewise.
17565 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17566 * var-tracking.c (adjust_mems): Likewise.
17567 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17568 rather than gen_rtx_fmt_ee.
17570 2013-09-09 Jan Hubicka <jh@suse.cz>
17572 PR middle-end/58294
17573 * value-prof.c (gimple_ic): Copy also abnormal edges.
17575 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17577 * asan.c (asan_shadow_cst): Use gen_int_mode.
17579 2013-09-08 Jan Hubicka <jh@suse.cz>
17581 * ipa-profile.c: Add toplevel comment.
17582 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17583 (contains_hot_call_p): New function.
17584 (ipa_propagate_frequency): Set frequencies based on counts when
17586 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17587 profile; do not tamper with profile after inlining if it is read.
17589 2013-09-08 Jan Hubicka <jh@suse.cz>
17591 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17594 2013-09-08 Jan Hubicka <jh@suse.cz>
17596 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17597 summary generation.
17599 2013-09-08 Jeff Law <law@redhat.com>
17602 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17605 2013-09-08 Andi Kleen <ak@linux.intel.com>
17607 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17609 2013-09-08 Jan Hubicka <jh@suse.cz>
17611 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17613 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17615 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17616 for non-debug insns.
17617 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17618 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17619 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17622 2013-09-08 Jan Hubicka <jh@suse.cz>
17624 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17625 targets and devirtualize to BUILT_IN_UNREACHABLE.
17626 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17627 * ipa.c (walk_polymorphic_call_targets): New function.
17628 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17629 functions; use the new timevar.
17630 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17631 was removed from the program.
17632 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17633 not consider it in the walk when its vtable is dead.
17634 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17636 (devirt_variable_node_removal_hook): New function.
17637 (possible_polymorphic_call_targets): Also register
17638 devirt_variable_node_removal_hook.
17639 (ipa_devirt): Do not do non-speculative devirtualization.
17640 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17642 2013-09-08 Jan Hubicka <jh@suse.cz>
17644 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17645 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17646 varpool_remove_variable_insertion_hook): Declare.
17647 * varpool.c (varpool_node_hook_list): New structure.
17648 (first_varpool_node_removal_hook,
17649 first_varpool_variable_insertion_hook): New variables.
17650 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17651 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17652 varpool_remove_variable_insertion_hook,
17653 varpool_call_variable_insertion_hooks): New functions.
17654 (varpool_remove_node): Use it.
17656 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17659 * diagnostic.c (diagnostic_build_prefix): When s.file is
17660 "<built-in>" don't output line and column numbers.
17662 2013-09-06 Jan Hubicka <jh@suse.cz>
17664 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17665 * lto-streamer-out.c: Stream thunks, too.
17666 * lto-streamer-in.c (input_function): Pop cfun here
17667 (lto_read_body): Instead of here.
17669 2013-09-06 Caroline Tice <cmtice@google.com>
17671 * doc/install.texi: Add documentation for the --enable-vtable-verify
17672 and the --disable-libvtv configure options.
17674 2013-09-06 Jeff Law <law@redhat.com>
17676 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17677 edge implied equivalences into successor phis.
17679 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17681 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17683 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17685 * resource.c (mark_target_live_regs): Compute resources taking
17686 into account if a call is predicated or not.
17688 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17690 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17691 the compiler in the function names.
17693 2013-09-06 Jan Hubicka <jh@suse.cz>
17695 PR middle-end/58094
17696 * ipa-inline.c (has_caller_p): New function.
17697 (want_inline_function_to_all_callers_p): Use it.
17698 (sum_callers, inline_to_all_callers): Break out from ...
17699 (ipa_inline): ... here.
17701 2013-09-06 Jan Hubicka <jh@suse.cz>
17703 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17704 only when AVX is enabled.
17706 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17708 * config/aarch64/aarch64.md
17709 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17710 is fpsimd_<load/store>2.
17711 (load_pair<mode>): Likewise.
17712 (store_pair<mode>): Likewise.
17714 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17716 * config/arm/types.md (type): Add "mrs" type.
17717 * config/aarch64/aarch64.md
17718 (aarch64_load_tp_hard): Make type "mrs".
17719 * config/arm/arm.md
17720 (load_tp_hard): Make type "mrs".
17721 * config/arm/cortex-a15.md: Update with new attributes.
17722 * config/arm/cortex-a5.md: Update with new attributes.
17723 * config/arm/cortex-a53.md: Update with new attributes.
17724 * config/arm/cortex-a7.md: Update with new attributes.
17725 * config/arm/cortex-a8.md: Update with new attributes.
17726 * config/arm/cortex-a9.md: Update with new attributes.
17727 * config/arm/cortex-m4.md: Update with new attributes.
17728 * config/arm/cortex-r4.md: Update with new attributes.
17729 * config/arm/fa526.md: Update with new attributes.
17730 * config/arm/fa606te.md: Update with new attributes.
17731 * config/arm/fa626te.md: Update with new attributes.
17732 * config/arm/fa726te.md: Update with new attributes.
17734 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17736 * config/aarch64/aarch64.md
17737 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17738 (*movtf_aarch64): Likewise.
17739 * config/arm/arm.md
17740 (thumb1_movdi_insn): Use "multiple" for type where more than one
17741 instruction is used for a move.
17742 (*arm32_movhf): Likewise.
17743 (*thumb_movdf_insn): Likewise.
17745 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17747 * config/arm/types.md (type): Rename fcpys to fmov.
17748 * config/arm/vfp.md
17749 (*arm_movsi_vfp): Rename type fcpys as fmov.
17750 (*thumb2_movsi_vfp): Likewise
17751 (*movhf_vfp_neon): Likewise
17752 (*movhf_vfp): Likewise
17753 (*movsf_vfp): Likewise
17754 (*thumb2_movsf_vfp): Likewise
17755 (*movsfcc_vfp): Likewise
17756 (*thumb2_movsfcc_vfp): Likewise
17757 * config/aarch64/aarch64-simd.md
17758 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17759 * config/aarch64/aarch64.md
17760 (*movsi_aarch64): Replace type mov_reg with fmovs.
17761 (*movdi_aarch64): Likewise
17762 (*movsf_aarch64): Likewise
17763 (*movdf_aarch64): Likewise
17765 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17766 * config/arm/iwmmxt.md
17767 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17768 * config/arm/arm1020e.md: Update with new attributes.
17769 * config/arm/cortex-a15-neon.md: Update with new attributes.
17770 * config/arm/cortex-a5.md: Update with new attributes.
17771 * config/arm/cortex-a53.md: Update with new attributes.
17772 * config/arm/cortex-a7.md: Update with new attributes.
17773 * config/arm/cortex-a8-neon.md: Update with new attributes.
17774 * config/arm/cortex-a9.md: Update with new attributes.
17775 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17776 * config/arm/cortex-r4f.md: Update with new attributes.
17777 * config/arm/marvell-pj4.md: Update with new attributes.
17778 * config/arm/vfp11.md: Update with new attributes.
17780 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17782 * config/aarch64/aarch64.md
17783 (*madd<mode>): Fix type attribute.
17784 (*maddsi_uxtw): Likewise.
17785 (*msub<mode>): Likewise.
17786 (*msubsi_uxtw): Likewise.
17787 (<su_optab>maddsidi4): Likewise.
17788 (<su_optab>msubsidi4): Likewise.
17790 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17792 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17793 * config/arm/arm.md (core_cycles): Remove fdiv.
17794 * config/arm/vfp.md:
17795 (*sqrtsf2_vfp): Update for attribute changes.
17796 (*sqrtdf2_vfp): Likewise.
17797 * config/aarch64/aarch64.md:
17798 (sqrt<mode>2): Update for attribute changes.
17799 * config/arm/arm1020e.md: Update with new attributes.
17800 * config/arm/cortex-a15-neon.md: Update with new attributes.
17801 * config/arm/cortex-a5.md: Update with new attributes.
17802 * config/arm/cortex-a53.md: Update with new attributes.
17803 * config/arm/cortex-a7.md: Update with new attributes.
17804 * config/arm/cortex-a8-neon.md: Update with new attributes.
17805 * config/arm/cortex-a9.md: Update with new attributes.
17806 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17807 * config/arm/cortex-r4f.md: Update with new attributes.
17808 * config/arm/marvell-pj4.md: Update with new attributes.
17809 * config/arm/vfp11.md: Update with new attributes.
17811 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17813 * config/arm/types.md
17814 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17815 * config/aarch64/aarch64.md
17816 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17818 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17819 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17820 (float<GPI:mode><GPF:mode>2): Likewise.
17821 * config/arm/vfp.md
17822 (*truncsisf2_vfp): Update with new attributes.
17823 (*truncsidf2_vfp): Likewise.
17824 (fixuns_truncsfsi2): Likewise.
17825 (fixuns_truncdfsi2): Likewise.
17826 (*floatsisf2_vfp): Likewise.
17827 (*floatsidf2_vfp): Likewise.
17828 (floatunssisf2): Likewise.
17829 (floatunssidf2): Likewise.
17830 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17831 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17832 * config/arm/arm1020e.md: Update with new attributes.
17833 * config/arm/cortex-a15-neon.md: Update with new attributes.
17834 * config/arm/cortex-a5.md: Update with new attributes.
17835 * config/arm/cortex-a53.md: Update with new attributes.
17836 * config/arm/cortex-a7.md: Update with new attributes.
17837 * config/arm/cortex-a8-neon.md: Update with new attributes.
17838 * config/arm/cortex-a9.md: Update with new attributes.
17839 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17840 * config/arm/cortex-r4f.md: Update with new attributes.
17841 * config/arm/marvell-pj4.md: Update with new attributes.
17842 * config/arm/vfp11.md: Update with new attributes.
17844 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17846 * config/aarch64/arm_neon.h
17847 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17848 (vqtbx<1,2,3,4><q>_s8): Likewise.
17850 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17852 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17853 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
17854 (add<mode>3): Add type attribute.
17855 (add<mode>3): Likewise.
17856 (usadd<mode>3): Likewise.
17857 (ssadd<mode>3): Likewise.
17858 (sub<mode>3): Likewise.
17859 (sub<mode>3): Likewise.
17860 (ussub<mode>3): Likewise.
17861 (sssub<mode>3): Likewise.
17862 (ssmulsa3): Likewise.
17863 (usmulusa3): Likewise.
17864 (arm_usatsihi): Likewise.
17865 * config/arm/vfp.md
17866 (*movdi_vfp): Add types for all instructions.
17867 (*movdi_vfp_cortexa8): Likewise.
17868 (*movhf_vfp_neon): Likewise.
17869 (*movhf_vfp): Likewise.
17870 (*movdf_vfp): Likewise.
17871 (*thumb2_movdf_vfp): Likewise.
17872 (*thumb2_movdfcc_vfp): Likewise.
17873 * config/arm/arm.md: Add type attribute to all insn patterns.
17874 (*thumb1_adddi3): Add type attribute.
17875 (*arm_adddi3): Likewise.
17876 (*adddi_sesidi_di): Likewise.
17877 (*adddi_zesidi_di): Likewise.
17878 (*thumb1_addsi3): Likewise.
17879 (addsi3_compare0): Likewise.
17880 (*addsi3_compare0_scratch): Likewise.
17881 (*compare_negsi_si): Likewise.
17882 (cmpsi2_addneg): Likewise.
17883 (*addsi3_carryin_<optab>): Likewise.
17884 (*addsi3_carryin_alt2_<optab>): Likewise.
17885 (*addsi3_carryin_clobercc_<optab>): Likewise.
17886 (*subsi3_carryin): Likewise.
17887 (*subsi3_carryin_const): Likewise.
17888 (*subsi3_carryin_compare): Likewise.
17889 (*subsi3_carryin_compare_const): Likewise.
17890 (*arm_subdi3): Likewise.
17891 (*thumb_subdi3): Likewise.
17892 (*subdi_di_zesidi): Likewise.
17893 (*subdi_di_sesidi): Likewise.
17894 (*subdi_zesidi_di): Likewise.
17895 (*subdi_sesidi_di): Likewise.
17896 (*subdi_zesidi_ze): Likewise.
17897 (thumb1_subsi3_insn): Likewise.
17898 (*arm_subsi3_insn): Likewise.
17899 (*anddi3_insn): Likewise.
17900 (*anddi_zesidi_di): Likewise.
17901 (*anddi_sesdi_di): Likewise.
17902 (*ne_zeroextracts): Likewise.
17903 (*ne_zeroextracts): Likewise.
17904 (*ite_ne_zeroextr): Likewise.
17905 (*ite_ne_zeroextr): Likewise.
17906 (*anddi_notdi_di): Likewise.
17907 (*anddi_notzesidi): Likewise.
17908 (*anddi_notsesidi): Likewise.
17909 (andsi_notsi_si): Likewise.
17910 (thumb1_bicsi3): Likewise.
17911 (*iordi3_insn): Likewise.
17912 (*iordi_zesidi_di): Likewise.
17913 (*iordi_sesidi_di): Likewise.
17914 (*thumb1_iorsi3_insn): Likewise.
17915 (*xordi3_insn): Likewise.
17916 (*xordi_zesidi_di): Likewise.
17917 (*xordi_sesidi_di): Likewise.
17918 (*arm_xorsi3): Likewise.
17919 (*andsi_iorsi3_no): Likewise.
17920 (*smax_0): Likewise.
17921 (*smax_m1): Likewise.
17922 (*arm_smax_insn): Likewise.
17923 (*smin_0): Likewise.
17924 (*arm_smin_insn): Likewise.
17925 (*arm_umaxsi3): Likewise.
17926 (*arm_uminsi3): Likewise.
17927 (*minmax_arithsi): Likewise.
17928 (*minmax_arithsi_): Likewise.
17929 (*satsi_<SAT:code>): Likewise.
17930 (arm_ashldi3_1bit): Likewise.
17931 (arm_ashrdi3_1bit): Likewise.
17932 (arm_lshrdi3_1bit): Likewise.
17933 (*arm_negdi2): Likewise.
17934 (*thumb1_negdi2): Likewise.
17935 (*arm_negsi2): Likewise.
17936 (*thumb1_negsi2): Likewise.
17937 (*negdi_extendsid): Likewise.
17938 (*negdi_zero_extend): Likewise.
17939 (*arm_abssi2): Likewise.
17940 (*thumb1_abssi2): Likewise.
17941 (*arm_neg_abssi2): Likewise.
17942 (*thumb1_neg_abss): Likewise.
17943 (one_cmpldi2): Likewise.
17944 (extend<mode>di2): Likewise.
17945 (*compareqi_eq0): Likewise.
17946 (*arm_extendhisi2addsi): Likewise.
17947 (*arm_movdi): Likewise.
17948 (*thumb1_movdi_insn): Likewise.
17949 (*arm_movt): Likewise.
17950 (*thumb1_movsi_insn): Likewise.
17951 (pic_add_dot_plus_four): Likewise.
17952 (pic_add_dot_plus_eight): Likewise.
17953 (tls_load_dot_plus_eight): Likewise.
17954 (*thumb1_movhi_insn): Likewise.
17955 (*thumb1_movsf_insn): Likewise.
17956 (*movdf_soft_insn): Likewise.
17957 (*thumb_movdf_insn): Likewise.
17958 (cbranchsi4_insn): Likewise.
17959 (cbranchsi4_scratch): Likewise.
17960 (*negated_cbranchsi4): Likewise.
17961 (*tbit_cbranch): Likewise.
17962 (*tlobits_cbranch): Likewise.
17963 (*tstsi3_cbranch): Likewise.
17964 (*cbranchne_decr1): Likewise.
17965 (*addsi3_cbranch): Likewise.
17966 (*addsi3_cbranch_scratch): Likewise.
17967 (*arm_cmpdi_insn): Likewise.
17968 (*arm_cmpdi_unsig): Likewise.
17969 (*arm_cmpdi_zero): Likewise.
17970 (*thumb_cmpdi_zero): Likewise.
17971 (*deleted_compare): Likewise.
17972 (*mov_scc): Likewise.
17973 (*mov_negscc): Likewise.
17974 (*mov_notscc): Likewise.
17975 (*cstoresi_eq0_thumb1_insn): Likewise.
17976 (cstoresi_nltu_thumb1): Likewise.
17977 (cstoresi_ltu_thu): Likewise.
17978 (thumb1_addsi3_addgeu): Likewise.
17979 (*arm_jump): Likewise.
17980 (*thumb_jump): Likewise.
17981 (*check_arch2): Likewise.
17982 (arm_casesi_internal): Likewise.
17983 (thumb1_casesi_dispatch): Likewise.
17984 (*arm_indirect_jump): Likewise.
17985 (*thumb1_indirect_jump): Likewise.
17987 (*and_scc): Likewise.
17988 (*ior_scc): Likewise.
17989 (*compare_scc): Likewise.
17990 (*cond_move): Likewise.
17991 (*cond_arith): Likewise.
17992 (*cond_sub): Likewise.
17993 (*cmp_ite0): Likewise.
17994 (*cmp_ite1): Likewise.
17995 (*cmp_and): Likewise.
17996 (*cmp_ior): Likewise.
17997 (*ior_scc_scc): Likewise.
17998 (*ior_scc_scc_cmp): Likewise.
17999 (*and_scc_scc): Likewise.
18000 (*and_scc_scc_cmp): Likewise.
18001 (*and_scc_scc_nod): Likewise.
18002 (*negscc): Likewise.
18003 (movcond_addsi): Likewise.
18004 (movcond): Likewise.
18005 (*ifcompare_plus_move): Likewise.
18006 (*if_plus_move): Likewise.
18007 (*ifcompare_move_plus): Likewise.
18008 (*if_move_plus): Likewise.
18009 (*ifcompare_arith_arith): Likewise.
18010 (*if_arith_arith): Likewise.
18011 (*ifcompare_arith_move): Likewise.
18012 (*if_arith_move): Likewise.
18013 (*ifcompare_move_arith): Likewise.
18014 (*if_move_arith): Likewise.
18015 (*ifcompare_move_not): Likewise.
18016 (*if_move_not): Likewise.
18017 (*ifcompare_not_move): Likewise.
18018 (*if_not_move): Likewise.
18019 (*ifcompare_shift_move): Likewise.
18020 (*if_shift_move): Likewise.
18021 (*ifcompare_move_shift): Likewise.
18022 (*if_move_shift): Likewise.
18023 (*ifcompare_shift_shift): Likewise.
18024 (*ifcompare_not_arith): Likewise.
18025 (*ifcompare_arith_not): Likewise.
18026 (*if_arith_not): Likewise.
18027 (*ifcompare_neg_move): Likewise.
18028 (*if_neg_move): Likewise.
18029 (*ifcompare_move_neg): Likewise.
18030 (*if_move_neg): Likewise.
18031 (prologue_thumb1_interwork): Likewise.
18032 (*cond_move_not): Likewise.
18033 (*sign_extract_onebit): Likewise.
18034 (*not_signextract_onebit): Likewise.
18035 (stack_tie): Likewise.
18036 (align_4): Likewise.
18037 (align_8): Likewise.
18038 (consttable_end): Likewise.
18039 (consttable_1): Likewise.
18040 (consttable_2): Likewise.
18041 (consttable_4): Likewise.
18042 (consttable_8): Likewise.
18043 (consttable_16): Likewise.
18044 (*thumb1_tablejump): Likewise.
18045 (prefetch): Likewise.
18046 (force_register_use): Likewise.
18047 (thumb_eh_return): Likewise.
18048 (load_tp_hard): Likewise.
18049 (load_tp_soft): Likewise.
18050 (tlscall): Likewise.
18051 (*arm_movtas_ze): Likewise.
18052 (*arm_rev): Likewise.
18053 (*arm_revsh): Likewise.
18054 (*arm_rev16): Likewise.
18055 * config/arm/thumb2.md
18056 (*thumb2_smaxsi3): Likewise.
18057 (*thumb2_sminsi3): Likewise.
18058 (*thumb32_umaxsi3): Likewise.
18059 (*thumb2_uminsi3): Likewise.
18060 (*thumb2_negdi2): Likewise.
18061 (*thumb2_abssi2): Likewise.
18062 (*thumb2_neg_abss): Likewise.
18063 (*thumb2_movsi_insn): Likewise.
18064 (tls_load_dot_plus_four): Likewise.
18065 (*thumb2_movhi_insn): Likewise.
18066 (*thumb2_mov_scc): Likewise.
18067 (*thumb2_mov_negs): Likewise.
18068 (*thumb2_mov_negs): Likewise.
18069 (*thumb2_mov_nots): Likewise.
18070 (*thumb2_mov_nots): Likewise.
18071 (*thumb2_movsicc_): Likewise.
18072 (*thumb2_movsfcc_soft_insn): Likewise.
18073 (*thumb2_indirect_jump): Likewise.
18074 (*thumb2_and_scc): Likewise.
18075 (*thumb2_ior_scc): Likewise.
18076 (*thumb2_ior_scc_strict_it): Likewise.
18077 (*thumb2_cond_move): Likewise.
18078 (*thumb2_cond_arith): Likewise.
18079 (*thumb2_cond_ari): Likewise.
18080 (*thumb2_cond_sub): Likewise.
18081 (*thumb2_negscc): Likewise.
18082 (*thumb2_movcond): Likewise.
18083 (thumb2_casesi_internal): Likewise.
18084 (thumb2_casesi_internal_pic): Likewise.
18085 (*thumb2_alusi3_short): Likewise.
18086 (*thumb2_mov<mode>_shortim): Likewise.
18087 (*thumb2_addsi_short): Likewise.
18088 (*thumb2_subsi_short): Likewise.
18089 (thumb2_addsi3_compare0): Likewise.
18090 (*thumb2_cbz): Likewise.
18091 (*thumb2_cbnz): Likewise.
18092 (*thumb2_one_cmplsi2_short): Likewise.
18093 (*thumb2_negsi2_short): Likewise.
18094 (*orsi_notsi_si): Likewise.
18095 * config/arm/arm1020e.md: Update with new attributes.
18096 * config/arm/arm1026ejs.md: Update with new attributes.
18097 * config/arm/arm1136jfs.md: Update with new attributes.
18098 * config/arm/arm926ejs.md: Update with new attributes.
18099 * config/arm/cortex-a15.md: Update with new attributes.
18100 * config/arm/cortex-a5.md: Update with new attributes.
18101 * config/arm/cortex-a53.md: Update with new attributes.
18102 * config/arm/cortex-a7.md: Update with new attributes.
18103 * config/arm/cortex-a8.md: Update with new attributes.
18104 * config/arm/cortex-a9.md: Update with new attributes.
18105 * config/arm/cortex-m4.md: Update with new attributes.
18106 * config/arm/cortex-r4.md: Update with new attributes.
18107 * config/arm/fa526.md: Update with new attributes.
18108 * config/arm/fa606te.md: Update with new attributes.
18109 * config/arm/fa626te.md: Update with new attributes.
18110 * config/arm/fa726te.md: Update with new attributes.
18112 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18114 * config/aarch64/aarch64-simd.md
18115 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18116 <vwx> iterator to ensure correct register choice.
18117 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18118 (aarch64_sqdmull_n<mode>): Likewise.
18119 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18120 * config/aarch64/arm_neon.h
18121 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18122 (vml<as><q>_n_<su>16): Likewise.
18123 (vml<as>l_high_lane<q>_<su>16): Likewise.
18124 (vml<as>l_high_n_<su>16): Likewise.
18125 (vml<as>l_lane<q>_<su>16): Likewise.
18126 (vml<as>l_n_<su>16): Likewise.
18127 (vmul<q>_lane<q>_<su>16): Likewise.
18128 (vmul<q>_n_<su>16): Likewise.
18129 (vmull_lane<q>_<su>16): Likewise.
18130 (vmull_n_<su>16): Likewise.
18131 (vmull_high_lane<q>_<su>16): Likewise.
18132 (vmull_high_n_<su>16): Likewise.
18133 (vqrdmulh<q>_n_s16): Likewise.
18135 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18137 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18138 have the correct lane parameter.
18140 2013-09-06 Richard Biener <rguenther@suse.de>
18142 * cfganal.c (control_dependences::~control_dependences):
18143 Properly free all of the vector.
18145 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18148 * config/i386/i386.c (ix86_conditional_register_usage):
18149 Proper initialize extended SSE registers.
18151 2013-09-06 Jan Hubicka <jh@suse.cz>
18153 PR tree-optimization/58311
18154 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18156 2013-09-06 Jan Hubicka <jh@suse.cz>
18158 * Makefile.in (tree-sra.o): Update dependencies.
18159 * tree-sra.c: Include ipa-utils.h
18160 (scan_function): Use recursive_call_p.
18161 (has_caller_p): New function.
18162 (cgraph_for_node_and_aliases): Count also callers of aliases.
18164 2013-09-06 Jan Hubicka <jh@suse.cz>
18166 PR middle-end/58094
18167 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18168 * tree-tailcall.c: Include ipa-utils.h.
18169 (find_tail_calls): Use it.
18170 * ipa-pure-const.c (check_call): Likewise.
18171 * ipa-utils.c (recursive_call_p): New function.
18172 * ipa-utils.h (recursive_call_p): Dclare.
18173 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18174 (symtab_semantically_equivalent_p): New function.
18175 * Makefile.in (tree-tailcall.o): Update dependencies.
18177 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18179 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18180 non-inlinable part.
18182 2013-09-06 Richard Biener <rguenther@suse.de>
18184 * lto-streamer.h (lto_global_var_decls): Remove.
18185 * Makefile.in (OBJS): Remove lto-symtab.o.
18186 (lto-symtab.o): Remove.
18187 (GTFILES): Remove lto-symtab.c
18188 * lto-symtab.c: Move to lto/
18190 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18192 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18193 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18194 (UNSPEC_FPINT_RINT): New constant definitions.
18195 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18196 definition with 2 attributes.
18197 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18198 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18201 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18203 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18204 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18205 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18206 attribute to "z196_alone".
18207 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18210 2013-09-06 Richard Biener <rguenther@suse.de>
18212 * basic-block.h (class control_dependences): New.
18213 * tree-ssa-dce.c (control_dependence_map): Remove.
18215 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18216 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18217 find_pdom, find_control_dependence, find_all_control_dependences):
18219 (mark_control_dependent_edges_necessary,
18220 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18221 tree_dce_done, perform_tree_ssa_dce): Adjust.
18222 * cfganal.c (set_control_dependence_map_bit,
18223 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18224 find_all_control_dependences): Move from tree-ssa-dce.c and
18225 implement as methods of control_dependences class.
18226 (control_dependences::control_dependences): New.
18227 (control_dependences::~control_dependences): Likewise.
18228 (control_dependences::get_edges_dependent_on): Likewise.
18229 (control_dependences::get_edge): Likewise.
18231 2013-09-04 Jan Hubicka <jh@suse.cz>
18233 * tree.c (types_same_for_odr): Drop overactive check.
18234 * ipa-devirt.c (hash_type_name): Likewise.
18236 2013-09-04 Jan Hubicka <jh@suse.cz>
18238 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18239 (analyze_functions): ... here.
18241 2013-09-04 Jan Hubicka <jh@suse.cz>
18243 PR middle-end/58201
18244 * cgraphunit.c (analyze_functions): Clear AUX fields
18245 after processing; initialize assembler name has.
18247 2013-09-05 Jeff Law <law@redhat.com>
18249 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18250 from thread_around_empty_block. Record threading path into PATH.
18251 Recurse if threading through the initial block is successful.
18252 (thread_across_edge): Corresponding changes to slightly simplify.
18254 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18256 * config/aarch64/aarch64.md
18257 (type): Remove frecpe, frecps, frecpx.
18258 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18259 fix to be a TARGET_SIMD instruction.
18260 (aarch64_frecps): Remove.
18261 * config/aarch64/aarch64-simd.md
18262 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18263 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18265 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18266 Sofiane Naci <sofiane.naci@arm.com>
18268 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18269 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18270 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18271 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18272 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18273 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18274 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18275 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18276 into "clz, "rbit". Rename "shift" to "shift_imm".
18277 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18278 changes. Update for attribute changes all occurrences of arlo_* and
18280 * config/arm/arm-fixed.md: Update for attribute changes
18281 all occurrences of arlo_* types.
18282 * config/arm/thumb2.md: Update for attribute changes all occurrences
18284 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18285 (cortexa7_older_only): Likewise.
18286 (cortexa7_younger): Likewise.
18287 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18288 (1020alu_shift_op): Likewise.
18289 (1020alu_shift_reg_op): Likewise.
18290 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18291 (alu_shift_op): Likewise.
18292 (alu_shift_reg_op): Likewise.
18293 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18294 (11_alu_shift_op): Likewise.
18295 (11_alu_shift_reg_op): Likewise.
18296 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18297 (9_alu_shift_reg_op): Likewise.
18298 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18300 (cortex_a15_alu_shift): Likewise.
18301 (cortex_a15_alu_shift_reg): Likewise.
18302 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18304 (cortex_a5_alu_shift): Likewise.
18305 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18307 (cortex_a53_alu_shift): Likewise.
18308 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18310 (cortex_a7_alu_reg): Likewise.
18311 (cortex_a7_alu_shift): Likewise.
18312 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18314 (cortex_a8_alu_shift): Likewise.
18315 (cortex_a8_alu_shift_reg): Likewise.
18316 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18317 (cortex_a9_dp_shift): Likewise.
18318 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18320 * config/arm/cortex-r4.md
18321 (cortex_r4_alu): Update for attribute changes.
18322 (cortex_r4_mov): Likewise.
18323 (cortex_r4_alu_shift_reg): Likewise.
18324 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18325 (526_alu_shift_op): Likewise.
18326 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18327 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18328 (626te_alu_shift_op): Likewise.
18329 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18330 (726te_alu_shift_op): Likewise.
18331 (726te_alu_shift_reg_op): Likewise.
18332 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18333 (mp626_alu_shift_op): Likewise.
18334 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18335 (pj4_alu_conds): Likewise.
18336 (pj4_shift): Likewise.
18337 (pj4_shift_conds): Likewise.
18338 (pj4_alu_shift): Likewise.
18339 (pj4_alu_shift_conds): Likewise.
18340 * config/aarch64/aarch64.md: Update for attribute change
18341 all occurrences of arlo_* and shift* types.
18343 2013-09-05 Mike Stump <mikestump@comcast.net>
18345 * tree.h: Move documentation for tree_function_decl to tree-core.h
18346 with the declaration.
18348 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18351 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18352 looking for widest mode.
18354 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18356 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18358 2013-09-05 Richard Biener <rguenther@suse.de>
18360 PR tree-optimization/58137
18361 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18362 Do not create vectors of pointers.
18363 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18364 types for the components of the vector initializer.
18365 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18366 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18368 2013-09-05 Martin Jambor <mjambor@suse.cz>
18370 * ipa-prop.c (remove_described_reference): Accept missing references,
18371 return false if that hppens, otherwise return true.
18372 (cgraph_node_for_jfunc): New function.
18373 (try_decrement_rdesc_refcount): Likewise.
18374 (try_make_edge_direct_simple_call): Use them.
18375 (ipa_edge_removal_hook): Remove references from rdescs.
18376 (ipa_edge_duplication_hook): Clone rdescs and their references
18377 when the new edge has the same caller as the old one.
18378 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18379 reference before removing any edges.
18381 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18383 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18385 * thumb2.md (thumb2_storewb_parisi): New pattern.
18387 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18389 * config/aarch64/aarch64-option-extensions.def: Add
18390 AARCH64_OPT_EXTENSION of 'crc'.
18391 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18392 (AARCH64_ISA_CRC): Ditto.
18393 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18394 description of the CRC extension.
18396 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18398 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18399 * config/rs6000/linux.h: Ditto.
18400 * alpha/linux.h: Ditto.
18401 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18402 no_c99_libc_has_function.
18403 * config/c6x/uclinux-elf.h: Ditto.
18404 * config/lm32/uclinux-elf.h: Ditto.
18405 * config/m68k/uclinux.h: Ditto.
18406 * config/moxie/uclinux.h: Ditto.
18407 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18408 (crisv32-*-linux*, cris-*-linux*): Ditto.
18409 * config/bfin/bfin.c: Include "tm_p.h".
18411 2013-09-05 Richard Biener <rguenther@suse.de>
18413 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18414 check for a definition without a basic-block.
18416 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18417 Sofiane Naci <sofiane.naci@arm.com>
18419 * config/aarch64/aarch64.md
18420 (*movti_aarch64): Rename r_2_f and f_2_r.
18421 (*movsf_aarch64): Likewise.
18422 (*movdf_aarch64): Likewise.
18423 (*movtf_aarch64): Likewise.
18424 (aarch64_movdi_<mode>low): Likewise.
18425 (aarch64_movdi_<mode>high): Likewise.
18426 (aarch64_mov<mode>high_di): Likewise.
18427 (aarch64_mov<mode>low_di): Likewise.
18428 (aarch64_movtilow_tilow): Likewise.
18429 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18430 values to config/arm/types.md
18431 (attribute "conds"): Update for attribute change.
18432 (anddi3_insn): Likewise.
18433 (iordi3_insn): Likewise.
18434 (xordi3_insn): Likewise.
18435 (one_cmpldi2): Likewise.
18436 * config/arm/types.md (type): Add Neon types.
18437 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18438 use "type" attribute.
18439 (movmisalign<mode>_neon_store): Likewise.
18440 (movmisalign<mode>_neon_load): Likewise.
18441 (vec_set<mode>_internal): Likewise.
18442 (vec_setv2di_internal): Likewise.
18443 (vec_extract<mode>): Likewise.
18444 (vec_extractv2di): Likewise.
18445 (add<mode>3_neon): Likewise.
18446 (adddi3_neon): Likewise.
18447 (sub<mode>3_neon): Likewise.
18448 (subdi3_neon): Likewise.
18449 (mul<mode>3_neon): Likewise.
18450 (mul<mode>3add<mode>_neon): Likewise.
18451 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18452 (fma<VCVTF:mode>4)): Likewise.
18453 (fma<VCVTF:mode>4_intrinsic): Likewise.
18454 (fmsub<VCVTF:mode>4)): Likewise.
18455 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18456 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18457 (ior<mode>3): Likewise.
18458 (and<mode>3): Likewise.
18459 (anddi3_neon): Likewise.
18460 (orn<mode>3_neon): Likewise.
18461 (orndi3_neon): Likewise.
18462 (bic<mode>3_neon): Likewise.
18463 (bicdi3_neon): Likewise.
18464 (xor<mode>3): Likewise.
18465 (one_cmpl<mode>2): Likewise.
18466 (abs<mode>2): Likewise.
18467 (neg<mode>2): Likewise.
18468 (umin<mode>3_neon): Likewise.
18469 (umax<mode>3_neon): Likewise.
18470 (smin<mode>3_neon): Likewise.
18471 (smax<mode>3_neon): Likewise.
18472 (vashl<mode>3): Likewise.
18473 (vashr<mode>3_imm): Likewise.
18474 (vlshr<mode>3_imm): Likewise.
18475 (ashl<mode>3_signed): Likewise.
18476 (ashl<mode>3_unsigned): Likewise.
18477 (neon_load_count): Likewise.
18478 (ashldi3_neon_noclobber): Likewise.
18479 (signed_shift_di3_neon): Likewise.
18480 (unsigned_shift_di3_neon): Likewise.
18481 (ashrdi3_neon_imm_noclobber): Likewise.
18482 (lshrdi3_neon_imm_noclobber): Likewise.
18483 (widen_ssum<mode>3): Likewise.
18484 (widen_usum<mode>3): Likewise.
18485 (quad_halves_<code>v4si): Likewise.
18486 (quad_halves_<code>v4sf): Likewise.
18487 (quad_halves_<code>v8hi): Likewise.
18488 (quad_halves_<code>v16qi): Likewise.
18489 (reduc_splus_v2di): Likewise.
18490 (neon_vpadd_internal<mode>): Likewise.
18491 (neon_vpsmin<mode>): Likewise.
18492 (neon_vpsmax<mode>): Likewise.
18493 (neon_vpumin<mode>): Likewise.
18494 (neon_vpumax<mode>): Likewise.
18495 (ss_add<mode>_neon): Likewise.
18496 (us_add<mode>_neon): Likewise.
18497 (ss_sub<mode>_neon): Likewise.
18498 (us_sub<mode>_neon): Likewise.
18499 (neon_vadd<mode>_unspec): Likewise.
18500 (neon_vaddl<mode>): Likewise.
18501 (neon_vaddw<mode>): Likewise.
18502 (neon_vhadd<mode>): Likewise.
18503 (neon_vqadd<mode>): Likewise.
18504 (neon_vaddhn<mode>): Likewise.
18505 (neon_vmul<mode>): Likewise.
18506 (neon_vmla<mode>): Likewise.
18507 (neon_vmlal<mode>): Likewise.
18508 (neon_vmls<mode>): Likewise.
18509 (neon_vmlsl<mode>): Likewise.
18510 (neon_vqdmulh<mode>): Likewise.
18511 (neon_vqdmlal<mode>): Likewise.
18512 (neon_vqdmlsl<mode>): Likewise.
18513 (neon_vmull<mode>): Likewise.
18514 (neon_vqdmull<mode>): Likewise.
18515 (neon_vsub<mode>_unspec): Likewise.
18516 (neon_vsubl<mode>): Likewise.
18517 (neon_vsubw<mode>): Likewise.
18518 (neon_vqsub<mode>): Likewise.
18519 (neon_vhsub<mode>): Likewise.
18520 (neon_vsubhn<mode>): Likewise.
18521 (neon_vceq<mode>): Likewise.
18522 (neon_vcge<mode>): Likewise.
18523 (neon_vcgeu<mode>): Likewise.
18524 (neon_vcgt<mode>): Likewise.
18525 (neon_vcgtu<mode>): Likewise.
18526 (neon_vcle<mode>): Likewise.
18527 (neon_vclt<mode>): Likewise.
18528 (neon_vcage<mode>): Likewise.
18529 (neon_vcagt<mode>): Likewise.
18530 (neon_vtst<mode>): Likewise.
18531 (neon_vabd<mode>): Likewise.
18532 (neon_vabdl<mode>): Likewise.
18533 (neon_vaba<mode>): Likewise.
18534 (neon_vabal<mode>): Likewise.
18535 (neon_vmax<mode>): Likewise.
18536 (neon_vmin<mode>): Likewise.
18537 (neon_vpaddl<mode>): Likewise.
18538 (neon_vpadal<mode>): Likewise.
18539 (neon_vpmax<mode>): Likewise.
18540 (neon_vpmin<mode>): Likewise.
18541 (neon_vrecps<mode>): Likewise.
18542 (neon_vrsqrts<mode>): Likewise.
18543 (neon_vqabs<mode>): Likewise.
18544 (neon_vqneg<mode>): Likewise.
18545 (neon_vcls<mode>): Likewise.
18546 (clz<mode>2): Likewise.
18547 (popcount<mode>2): Likewise.
18548 (neon_vrecpe): Likewise.
18549 (neon_vrsqrte): Likewise.
18550 (neon_vget_lane<mode>_sext_internal): Likewise.
18551 (neon_vget_lane<mode>_zext_internal): Likewise.
18552 (neon_vdup_n<mode>): Likewise.
18553 (neon_vdup_nv2di): Likewise.
18554 (neon_vdpu_lane<mode>_internal): Likewise.
18555 (neon_vswp<mode>): Likewise.
18556 (float<mode><V_cvtto>2): Likewise.
18557 (floatuns<mode><V_cvtto>2): Likewise.
18558 (fix_trunc<mode><V_cvtto>)2): Likewise
18559 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18560 (neon_vcvt<mode>): Likewise.
18561 (neon_vcvtv4sfv4hf): Likewise.
18562 (neon_vcvtv4hfv4sf): Likewise.
18563 (neon_vcvt_n<mode>): Likewise.
18564 (neon_vmovn<mode>): Likewise.
18565 (neon_vqmovn<mode>): Likewise.
18566 (neon_vqmovun<mode>): Likewise.
18567 (neon_vmovl<mode>): Likewise.
18568 (neon_vmul_lane<mode>): Likewise.
18569 (neon_vmull_lane<mode>): Likewise.
18570 (neon_vqdmull_lane<mode>): Likewise.
18571 (neon_vqdmulh_lane<mode>): Likewise.
18572 (neon_vmla_lane<mode>): Likewise.
18573 (neon_vmlal_lane<mode>): Likewise.
18574 (neon_vqdmlal_lane<mode>): Likewise.
18575 (neon_vmls_lane<mode>): Likewise.
18576 (neon_vmlsl_lane<mode>): Likewise.
18577 (neon_vqdmlsl_lane<mode>): Likewise.
18578 (neon_vext<mode>): Likewise.
18579 (neon_vrev64<mode>): Likewise.
18580 (neon_vrev32<mode>): Likewise.
18581 (neon_vrev16<mode>): Likewise.
18582 (neon_vbsl<mode>_internal): Likewise.
18583 (neon_vshl<mode>): Likewise.
18584 (neon_vqshl<mode>): Likewise.
18585 (neon_vshr_n<mode>): Likewise.
18586 (neon_vshrn_n<mode>): Likewise.
18587 (neon_vqshrn_n<mode>): Likewise.
18588 (neon_vqshrun_n<mode>): Likewise.
18589 (neon_vshl_n<mode>): Likewise.
18590 (neon_vqshl_n<mode>): Likewise.
18591 (neon_vqshlu_n<mode>): Likewise.
18592 (neon_vshll_n<mode>): Likewise.
18593 (neon_vsra_n<mode>): Likewise.
18594 (neon_vsri_n<mode>): Likewise.
18595 (neon_vsli_n<mode>): Likewise.
18596 (neon_vtbl1v8qi): Likewise.
18597 (neon_vtbl2v8qi): Likewise.
18598 (neon_vtbl3v8qi): Likewise.
18599 (neon_vtbl4v8qi): Likewise.
18600 (neon_vtbx1v8qi): Likewise.
18601 (neon_vtbx2v8qi): Likewise.
18602 (neon_vtbx3v8qi): Likewise.
18603 (neon_vtbx4v8qi): Likewise.
18604 (neon_vtrn<mode>_internal): Likewise.
18605 (neon_vzip<mode>_internal): Likewise.
18606 (neon_vuzp<mode>_internal): Likewise.
18607 (neon_vld1<mode>): Likewise.
18608 (neon_vld1_lane<mode>): Likewise.
18609 (neon_vld1_dup<mode>): Likewise.
18610 (neon_vld1_dupv2di): Likewise.
18611 (neon_vst1<mode>): Likewise.
18612 (neon_vst1_lane<mode>): Likewise.
18613 (neon_vld2<mode>): Likewise.
18614 (neon_vld2_lane<mode>): Likewise.
18615 (neon_vld2_dup<mode>): Likewise.
18616 (neon_vst2<mode>): Likewise.
18617 (neon_vst2_lane<mode>): Likewise.
18618 (neon_vld3<mode>): Likewise.
18619 (neon_vld3qa<mode>): Likewise.
18620 (neon_vld3qb<mode>): Likewise.
18621 (neon_vld3_lane<mode>): Likewise.
18622 (neon_vld3_dup<mode>): Likewise.
18623 (neon_vst3<mode>): Likewise.
18624 (neon_vst3qa<mode>): Likewise.
18625 (neon_vst3qb<mode>): Likewise.
18626 (neon_vst3_lane<mode>): Likewise.
18627 (neon_vld4<mode>): Likewise.
18628 (neon_vld4qa<mode>): Likewise.
18629 (neon_vld4qb<mode>): Likewise.
18630 (neon_vld4_lane<mode>): Likewise.
18631 (neon_vld4_dup<mode>): Likewise.
18632 (neon_vst4<mode>): Likewise.
18633 (neon_vst4qa<mode>): Likewise.
18634 (neon_vst4qb<mode>): Likewise.
18635 (neon_vst4_lane<mode>): Likewise.
18636 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18637 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18638 (neon_vec_<US>mult_lo_<mode>): Likewise.
18639 (neon_vec_<US>mult_hi_<mode>): Likewise.
18640 (neon_vec_<US>shiftl_<mode>): Likewise.
18641 (neon_unpack<US>_<mode>): Likewise.
18642 (neon_vec_<US>mult_<mode>): Likewise.
18643 (vec_pack_trunc_<mode>): Likewise.
18644 (neon_vec_pack_trunk_<mode>): Likewise.
18645 (neon_vabd<mode>_2): Likewise.
18646 (neon_vabd<mode>_3): Likewise.
18647 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18648 (thumb2_movsi_vfp): Likewise.
18649 (movdi_vfp): Likewise.
18650 (movdi_vfp_cortexa8): Likewise.
18651 (movhf_vfp_neon): Likewise.
18652 (movhf_vfp): Likewiwse.
18653 (movsf_vfp): Likewiwse.
18654 (thumb2_movsf_vfp): Likewiwse.
18655 (movdf_vfp): Likewise.
18656 (thumb2_movdf_vfp): Likewise.
18657 (movsfcc_vfp): Likewise.
18658 (thumb2_movsfcc_vfp): Likewise.
18659 (movdfcc_vfp): Likewise.
18660 (thumb2_movdfcc_vfp): Likewise.
18661 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18662 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18663 (v10_v2c): Likewise.
18664 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18666 (cortex_a15_neon_int_2): Likewise.
18667 (cortex_a15_neon_int_3): Likewise.
18668 (cortex_a15_neon_int_4): Likewise.
18669 (cortex_a15_neon_int_5): Likewise.
18670 (cortex_a15_neon_vqneg_vqabs): Likewise.
18671 (cortex_a15_neon_vmov): Likewise.
18672 (cortex_a15_neon_vaba): Likewise.
18673 (cortex_a15_neon_vaba_qqq): Likewise.
18674 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18675 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18676 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18677 scalar_64_32_long_scalar): Likewise.
18678 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18679 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18680 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18681 lotype_qdd_64_32_long): Likewise.
18682 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18683 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18684 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18685 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18686 (cortex_a15_neon_shift_1): Likewise.
18687 (cortex_a15_neon_shift_2): Likewise.
18688 (cortex_a15_neon_shift_3): Likewise.
18689 (cortex_a15_neon_vshl_ddd): Likewise.
18690 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18691 (cortex_a15_neon_vsra_vrsra): Likewise.
18692 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18693 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18694 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18695 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18696 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18697 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18698 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18699 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18700 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18701 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18702 (cortex_a15_neon_bp_simple): Likewise.
18703 (cortex_a15_neon_bp_2cycle): Likewise.
18704 (cortex_a15_neon_bp_3cycle): Likewise.
18705 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18706 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18707 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18708 (cortex_a15_neon_vld2_4_regs): Likewise.
18709 (cortex_a15_neon_vld3_vld4): Likewise.
18710 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18711 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18712 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18713 (cortex_a15_neon_vst3_vst4): Likewise.
18714 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18715 (cortex_a15_neon_vld3_vld4_lane" 10
18716 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18717 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18718 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18719 (cortex_a15_neon_ldm_2): Likewise.0
18720 (cortex_a15_neon_stm_2): Likewise.
18721 (cortex_a15_neon_mcr): Likewise.
18722 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18723 (cortex_a15_neon_mrc): Likewise.
18724 (cortex_a15_neon_mrrc): Likewise.
18725 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18727 (cortex_a15_alu_shift): Likewise.
18728 (cortex_a15_alu_shift_reg): Likewise.
18729 (cortex_a15_mult32): Likewise.
18730 (cortex_a15_mult64): Likewise.
18731 (cortex_a15_block): Likewise.
18732 (cortex_a15_branch): Likewise.
18733 (cortex_a15_load1): Likewise.
18734 (cortex_a15_load3): Likewise.
18735 (cortex_a15_store1): Likewise.
18736 (cortex_a15_store3): Likewise.
18737 (cortex_a15_call): Likewise.
18738 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18739 (cortex_a5_f2r): Likewise.
18740 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18742 (cortex_a53_f2r): Likewise.
18743 * config/arm/cortex-a7.md
18744 (cortex_a7_branch): Update for attribute change.
18745 (cortex_a7_call): Likewise.
18746 (cortex_a7_alu_imm): Likewise.
18747 (cortex_a7_alu_reg): Likewise.
18748 (cortex_a7_alu_shift): Likewise.
18749 (cortex_a7_mul): Likewise.
18750 (cortex_a7_load1): Likewise.
18751 (cortex_a7_store1): Likewise.
18752 (cortex_a7_load2): Likewise.
18753 (cortex_a7_store2): Likewise.
18754 (cortex_a7_load3): Likewise.
18755 (cortex_a7_store3): Likewise.
18756 (cortex_a7_load4): Likewise.
18757 (cortex_a7_store4): Likewise.
18758 (cortex_a7_fpalu): Likewise.
18759 (cortex_a7_fconst): Likewise.
18760 (cortex_a7_fpmuls): Likewise.
18761 (cortex_a7_neon_mul): Likewise.
18762 (cortex_a7_fpmacs): Likewise.
18763 (cortex_a7_neon_mla: Likewise.
18764 (cortex_a7_fpmuld: Likewise.
18765 (cortex_a7_fpmacd: Likewise.
18766 (cortex_a7_fpfmad: Likewise.
18767 (cortex_a7_fdivs: Likewise.
18768 (cortex_a7_fdivd: Likewise.
18769 (cortex_a7_r2f: Likewise.
18770 (cortex_a7_f2r: Likewise.
18771 (cortex_a7_f_flags: Likewise.
18772 (cortex_a7_f_loads: Likewise.
18773 (cortex_a7_f_loadd: Likewise.
18774 (cortex_a7_f_stores: Likewise.
18775 (cortex_a7_f_stored: Likewise.
18776 (cortex_a7_neon): Likewise.
18777 * config/arm/cortex-a8-neon.md
18778 (cortex_a8_neon_mrc): Update for attribute change.
18779 (cortex_a8_neon_mrrc): Likewise.
18780 (cortex_a8_neon_int_1): Likewise.
18781 (cortex_a8_neon_int_2): Likewise.
18782 (cortex_a8_neon_int_3): Likewise.
18783 (cortex_a8_neon_int_4): Likewise.
18784 (cortex_a8_neon_int_5): Likewise.
18785 (cortex_a8_neon_vqneg_vqabs): Likewise.
18786 (cortex_a8_neon_vmov): Likewise.
18787 (cortex_a8_neon_vaba): Likewise.
18788 (cortex_a8_neon_vaba_qqq): Likewise.
18789 (cortex_a8_neon_vsma): Likewise.
18790 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18791 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18792 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18793 long_scalar): Likewise.
18794 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18795 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18796 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18797 long_scalar_qdd_64_32_long): Likewise.
18798 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18799 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18800 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18801 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18802 (cortex_a8_neon_shift_1): Likewise.
18803 (cortex_a8_neon_shift_2): Likewise.
18804 (cortex_a8_neon_shift_3): Likewise.
18805 (cortex_a8_neon_vshl_ddd): Likewise.
18806 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18807 (cortex_a8_neon_vsra_vrsra): Likewise.
18808 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18809 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18810 (cortex_a8_neon_fp_vsum): Likewise.
18811 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18812 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18813 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18814 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18815 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18816 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18817 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18818 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18819 (cortex_a8_neon_bp_simple): Likewise.
18820 (cortex_a8_neon_bp_2cycle): Likewise.
18821 (cortex_a8_neon_bp_3cycle): Likewise.
18822 (cortex_a8_neon_ldr): Likewise.
18823 (cortex_a8_neon_str): Likewise.
18824 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18825 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18826 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18827 (cortex_a8_neon_vld2_4_regs): Likewise.
18828 (cortex_a8_neon_vld3_vld4): Likewise.
18829 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18830 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18831 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18832 (cortex_a8_neon_vst3_vst4): Likewise.
18833 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18834 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18835 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18836 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18837 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18838 (cortex_a8_neon_mcr): Likewise.
18839 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18840 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18841 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18843 (ca9_neon_mrrc): Likewise.
18844 (cortex_a9_neon_int_1): Likewise.
18845 (cortex_a9_neon_int_2): Likewise.
18846 (cortex_a9_neon_int_3): Likewise.
18847 (cortex_a9_neon_int_4): Likewise.
18848 (cortex_a9_neon_int_5): Likewise.
18849 (cortex_a9_neon_vqneg_vqabs): Likewise.
18850 (cortex_a9_neon_vmov): Likewise.
18851 (cortex_a9_neon_vaba): Likewise.
18852 (cortex_a9_neon_vaba_qqq): Likewise.
18853 (cortex_a9_neon_vsma): Likewise.
18854 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18855 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18856 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18857 long_scalar): Likewise.
18858 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18859 (cortex_a9_neon_mla_qqq_8_16): Likewise.
18860 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18861 long_scalar_qdd_64_32_long): Likewise.
18862 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18863 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18864 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
18865 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18866 (cortex_a9_neon_shift_1): Likewise.
18867 (cortex_a9_neon_shift_2): Likewise.
18868 (cortex_a9_neon_shift_3): Likewise.
18869 (cortex_a9_neon_vshl_ddd): Likewise.
18870 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18871 (cortex_a9_neon_vsra_vrsra): Likewise.
18872 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
18873 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
18874 (cortex_a9_neon_fp_vsum): Likewise.
18875 (cortex_a9_neon_fp_vmul_ddd): Likewise.
18876 (cortex_a9_neon_fp_vmul_qqd): Likewise.
18877 (cortex_a9_neon_fp_vmla_ddd): Likewise.
18878 (cortex_a9_neon_fp_vmla_qqq): Likewise.
18879 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
18880 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
18881 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18882 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18883 (cortex_a9_neon_bp_simple): Likewise.
18884 (cortex_a9_neon_bp_2cycle): Likewise.
18885 (cortex_a9_neon_bp_3cycle): Likewise.
18886 (cortex_a9_neon_ldr): Likewise.
18887 (cortex_a9_neon_str): Likewise.
18888 (cortex_a9_neon_vld1_1_2_regs): Likewise.
18889 (cortex_a9_neon_vld1_3_4_regs): Likewise.
18890 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18891 (cortex_a9_neon_vld2_4_regs): Likewise.
18892 (cortex_a9_neon_vld3_vld4): Likewise.
18893 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18894 (cortex_a9_neon_vst1_3_4_regs): Likewise.
18895 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
18896 (cortex_a9_neon_vst3_vst4): Likewise.
18897 (cortex_a9_neon_vld1_vld2_lane): Likewise.
18898 (cortex_a9_neon_vld3_vld4_lane): Likewise.
18899 (cortex_a9_neon_vst1_vst2_lane): Likewise.
18900 (cortex_a9_neon_vst3_vst4_lane): Likewise.
18901 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
18902 (cortex_a9_neon_mcr): Likewise.
18903 (cortex_a9_neon_mcr_2_mcrr): Likewise.
18904 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18905 (cortex_a9_fps): Likewise.
18906 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
18908 (cortex_m4_fmuls): Likewise.
18909 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
18911 (cortex_r4_mrc): Likewise.
18912 * config/arm/iterators.md: Update comment referring to neon_type.
18913 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
18914 (iwmmxt_movsi_insn): Likewise.
18915 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
18917 (pj4_core_to_vfp): Likewise.
18918 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
18920 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
18921 (vfp_fstore): Likewise.
18922 * doc/md.texi: Change references to neon_type to refer to type.
18924 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18926 * tree.h (DECL_BUILT_IN): Fix typo in comment.
18928 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
18930 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
18931 lglobl if not weak.
18933 2013-09-04 Easwaran Raman <eraman@google.com>
18935 PR middle-end/57370
18936 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
18937 (build_and_add_sum): Use it.
18938 (appears_later_in_bb): Simplify code.
18940 2013-09-04 Teresa Johnson <tejohnson@google.com>
18942 * dumpfile.c (dump_finish): Don't close stderr/stdout.
18944 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
18946 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
18948 2013-09-04 Jan Hubicka <jh@suse.cz>
18950 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
18951 * ipa-devirt.c: Include diganostic.h
18952 (odr_type_d): Add types and types_set.
18953 (hash_type_name): Work for types with vtables during LTO.
18954 (odr_hasher::remove): Fix comment; destroy types_set.
18955 (add_type_duplicate): New function,
18956 (get_odr_type): Use it.
18957 (dump_type_inheritance_graph): Dump type duplicates.
18958 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
18960 * tree.c (types_same_for_odr): Give exact answers on types with
18963 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18965 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
18966 explaining their differences.
18968 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
18970 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
18972 2013-09-03 Jeff Law <law@redhat.com>
18974 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
18975 when not threading through a joiner block. Pass joiner/no joiner
18976 state to register_jump_thread.
18977 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
18978 state from argument rather than implying on path length.
18979 Dump the entire jump thread path into debugging dump.
18980 * tree-flow.h (register_jump_thread): Update prototype.
18982 2013-08-29 Xinliang David Li <davidxl@google.com>
18984 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18985 Remove a trivial gcc_assert.
18987 2013-08-29 Xinliang David Li <davidxl@google.com>
18989 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
18990 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
18991 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18992 Delay base decl alignment adjustment.
18993 * tree-vectorizer.c (vect_destroy_datarefs): New function.
18994 * tree-vectorizer.h: New data structure.
18995 (set_dr_misalignment): New function.
18996 (dr_misalignment): Ditto.
18997 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
18998 (vectorizable_load): Ditto.
18999 (ensure_base_align): New function.
19000 (vectorize_loops): Add dbg_cnt support.
19001 (execute_vect_slp): Ditto.
19002 * dbgcnt.def: New debug counter.
19003 * Makefile: New dependency.
19005 2013-09-03 Meador Inge <meadori@codesourcery.com>
19009 2013-08-30 Meador Inge <meadori@codesourcery.com>
19011 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19013 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19015 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19016 function descriptor.
19018 2013-09-03 Richard Biener <rguenther@suse.de>
19020 * tree-affine.c (add_elt_to_tree): Fix association issue,
19021 avoid useless converts and make sure to always return a
19022 properly typed result.
19024 2013-09-03 Richard Biener <rguenther@suse.de>
19026 PR middle-end/57656
19027 * fold-const.c (negate_expr_p): Fix division case.
19028 (negate_expr): Likewise.
19030 2013-09-03 Richard Biener <rguenther@suse.de>
19033 * tree-streamer-out.c: Include tm.h.
19034 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19036 2013-09-03 Jan Hubicka <jh@suse.cz>
19038 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19040 2013-09-03 Alan Modra <amodra@gmail.com>
19042 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19043 multilibs to big-endian target and vice versa.
19044 * config/rs6000/t-linux64: Use := assignment on all vars.
19045 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19046 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19047 * config/rs6000/t-linux64le: New file.
19048 * config/rs6000/t-linux64bele: New file.
19049 * config/rs6000/t-linux64lebe: New file.
19051 2013-09-02 Jan Hubicka <jh@suse.cz>
19053 * ipa-inline-transform.c (inline_transform): Do not
19054 optimize_inline_calls when not optimizing.
19056 2013-09-02 Jan Hubicka <jh@suse.cz>
19058 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19059 duplicated nodes for assembler names.
19060 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19061 hard registers from assembler name hash.
19063 2013-09-02 Jan Hubicka <jh@suse.cz>
19065 * ipa-split.c (execute_split_functions): Split externally visible
19066 functions called once.
19068 2013-09-02 Martin Jambor <mjambor@suse.cz>
19071 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19072 linked list. When finding the correct duplicate, also consider also
19073 the caller in additon to its inlined_to node.
19075 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19077 * config/aarch64/aarch64-simd-builtins.def
19078 (dup_lane_scalar): Remove.
19079 * config/aarch64/aarch64-simd.md
19080 (aarch64_simd_dup): Add 'w->w' alternative.
19081 (aarch64_dup_lane<mode>): Allow for VALL.
19082 (aarch64_dup_lane_scalar<mode>): Remove.
19083 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19084 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19085 (aarch64_get_lane_unsigned<mode>): Likewise.
19086 (aarch64_get_lane<mode>): Likewise.
19087 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19088 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19089 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19090 (VCON): Change container of V2SF.
19091 (vswap_width_name): Likewise.
19092 * config/aarch64/arm_neon.h
19093 (__aarch64_vdup_lane_any): New.
19094 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19095 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19096 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19098 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19100 PR middle-end/56382
19101 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19102 the source or the destination is a single hard register.
19104 2013-09-02 Richard Biener <rguenther@suse.de>
19106 PR middle-end/57511
19107 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19110 2013-09-02 Richard Biener <rguenther@suse.de>
19112 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19113 arithmetic to sizetype.
19115 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19117 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19118 Find auto-increment use both before and after candidate.
19120 2013-09-02 Marek Polacek <polacek@redhat.com>
19122 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19124 2013-09-01 Jan Hubicka <jh@suse.cz>
19126 * Makefile.in: Add ipa-profile.o
19127 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19128 * cgraph.c (struct cgraph_propagate_frequency_data,
19129 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19130 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19131 * cgraph.h (cgraph_propagate_frequency): Remove.
19132 * ipa-inline-analysis.c: Include ipa-utils.h;
19133 drop duplicated cfgloop.h.
19134 (inline_update_callee_summaries): Update.
19135 * ipa-profile.c: New file.
19136 * ipa-utils.h (ipa_propagate_frequency): Declare.
19137 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19138 data-streamer.h, value-prof.h.
19139 (symtab_remove_unreachable_nodes): Update profile.
19140 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19141 account_time_size, cmp_counts, dump_histogram,
19142 ipa_profile_generate_summary, ipa_profile_write_summary,
19143 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19144 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19145 Move to ipa-profile.c.
19147 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19149 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19151 2013-09-01 Jan Hubicka <jh@suse.cz>
19153 * common.opt (fdevirtualize-speculatively): New function.
19154 * invoke.texi (fdevirtualize-speculatively): Document.
19155 * ipa-devirt.c: Include ipa-inline.h
19156 (likely_target_p): New function.
19157 (ipa_devirt): New function.
19158 (gate_ipa_devirt): New function.
19159 (pass_data_ipa_devirt): New static var.
19160 (pass_ipa_devirt): Likewise.
19161 (make_pass_ipa_devirt): New function.
19162 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19163 (common_handle_option): Disable devirtualization when
19164 value range profiling is available.
19165 * passes.def (pass_ipa_devirt): Add.
19166 * timever.def (TV_IPA_DEVIRT): New timevar.
19167 * tree-pass.h (make_pass_ipa_devirt):
19169 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19171 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19172 include sanitize(undefined).
19174 2013-08-31 Diego Novillo <dnovillo@google.com>
19176 * Makefile.in (TREE_CORE_H): Define.
19178 (GTFILES): Add tree-core.h.
19179 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19181 * tree-core.h: New file.
19182 Move all data structures, enum, typedefs, global
19183 declarations and constants from ...
19184 * tree.h: ... here.
19186 2013-08-31 Jan Hubicka <jh@suse.cz>
19188 * bulitins.c (expand_builtin): Do not early exit for gcov
19189 instrumented functions.
19191 2013-08-31 Marek Polacek <polacek@redhat.com>
19193 * ubsan.c: Include tm_p.h.
19195 2013-08-31 Jan Hubicka <jh@suse.cz>
19197 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19200 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19201 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19202 * tree-cfg.c (verify_gimple_label): ... here.
19203 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19204 (ipa_merge_profiles): New function.
19205 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19206 (lto_input_function_body): Likewise.
19207 * ipa-utils.h (ipa_merge_profiles): Declare.
19208 * lto-streamer.h (lto_input_function_body): Update prototype.
19209 (emit_label_in_global_context_p): Remove.
19210 * lto-symtab.c: Include ipa-utils.h
19211 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19213 2013-08-31 Jan Hubicka <jh@suse.cz>
19215 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19217 2013-08-31 Jan Hubicka <jh@suse.cz>
19219 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19221 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19223 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19224 "cmp" RTX before signed_comparison_operator check to account
19225 for "code" changes.
19227 2013-08-30 Jan Hubicka <jh@suse.cz>
19229 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19230 (detect_type_change_1): Rename to ...
19231 (detect_type_change): ... this one; early return on non-polymorphic
19233 (detect_type_change_ssa): Add comp_type parameter; update
19234 use of detect_type_change.
19235 (compute_complex_assign_jump_func): Add param_type parameter;
19236 update use of detect_type_change_ssa.
19237 (compute_complex_ancestor_jump_func): Likewise.
19238 (ipa_get_callee_param_type): New function.
19239 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19240 update calls to the jump function computation functions.
19242 2013-08-30 Teresa Johnson <tejohnson@google.com>
19243 Steven Bosscher <steven@gcc.gnu.org>
19245 * cfgrtl.c (fixup_new_cold_bb): New routine.
19246 (commit_edge_insertions): Invoke fixup_partitions.
19247 (find_partition_fixes): New routine.
19248 (fixup_partitions): Ditto.
19249 (verify_hot_cold_block_grouping): Update comments.
19250 (rtl_verify_edges): Invoke find_partition_fixes.
19251 (rtl_verify_bb_pointers): Update comments.
19252 (rtl_verify_bb_layout): Ditto.
19253 * basic-block.h (probably_never_executed_edge_p): Declare.
19254 (fixup_partitions): Ditto.
19255 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19256 * bb-reorder.c (sanitize_hot_paths): New function.
19257 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19258 sanitize_hot_paths.
19259 * predict.c (probably_never_executed_edge_p): New routine.
19260 * cfg.c (check_bb_profile): Add partition insanity warnings.
19262 2013-08-30 Meador Inge <meadori@codesourcery.com>
19264 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19266 2013-08-30 Marek Polacek <polacek@redhat.com>
19268 * Makefile.in (ubsan.o): Add.
19269 (c-family/c-ubsan.o): Add.
19270 (builtins.o): Add ubsan.h dependency.
19271 * ubsan.h: New file.
19272 * ubsan.c: New file.
19273 * common.opt: Add -fsanitize=undefined option.
19274 (flag_sanitize): Add variable.
19275 (fsanitize=): Add option. Add Driver.
19276 (fsanitize=thread): Remove option.
19277 (fsanitize=address): Likewise.
19278 (static-libubsan): New option.
19279 * doc/invoke.texi: Document the new flag and -static-libubsan.
19280 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19281 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19282 * builtin-attrs.def (ATTR_COLD): Define.
19283 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19284 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19285 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19286 * flag-types.h (sanitize_code): New enum.
19287 * opts.c (common_handle_option): Parse command line arguments
19288 of -fsanitize=. Add -fsanitize=unreachable option.
19289 * varasm.c (get_variable_section): Adjust.
19290 (assemble_noswitch_variable): Likewise.
19291 (assemble_variable): Likewise.
19292 (output_constant_def_contents): Likewise.
19293 (categorize_decl_for_section): Likewise.
19294 (place_block_symbol): Likewise.
19295 (output_object_block): Likewise.
19296 * builtins.def: Likewise.
19297 * toplev.c (compile_file): Likewise.
19298 (process_options): Likewise.
19299 * cppbuiltin.c: Likewise.
19300 * tsan.c (tsan_pass): Likewise.
19301 (tsan_gate): Likewise.
19302 (tsan_gate_O0): Likewise.
19303 * cfgexpand.c (partition_stack_vars): Likewise.
19304 (expand_stack_vars): Likewise.
19305 (defer_stack_allocation): Likewise.
19306 (expand_used_vars): Likewise.
19307 * cfgcleanup.c (old_insns_match_p): Likewise.
19308 * asan.c (asan_finish_file): Likewise.
19309 (asan_instrument): Likewise.
19310 (gate_asan): Likewise.
19311 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19312 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19313 (asan_global_struct): Use pointer_sized_int_node instead
19314 calling build_nonstandard_integer_type.
19315 (initialize_sanitizer_builtins): Likewise.
19316 (asan_finish_file): Likewise.
19317 * gcc.c: Document %{%:function(args):X}.
19318 (static_spec_functions): Add sanitize.
19319 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19320 store funcval != NULL there.
19321 (do_spec_1): Adjust handle_spec_function caller.
19322 (handle_braces): Allow %:function(args) as condition.
19323 (sanitize_spec_function): New function.
19324 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19325 (LIBUBSAN_SPEC): Likewise.
19326 (LIBUBSAN_EARLY_SPEC): Likewise.
19327 (SANITIZER_SPEC): Handle libubsan.
19328 (SANITIZER_EARLY_SPEC): Likewise.
19329 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19330 instead of fsanitize=address.
19331 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19332 instead of fsanitize=address*.
19333 * builtins.c: Include ubsan.h.
19334 (fold_builtin_0): Instrument __builtin_unreachable.
19335 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19336 instead of flag_asan.
19337 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19338 (pointer_sized_int_node): Define.
19339 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19341 2013-08-30 Mike Stump <mikestump@comcast.net>
19343 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19346 2013-08-29 Jan Hubicka <jh@suse.cz>
19348 * cgraph.c (cgraph_function_body_availability): Handle weakref
19350 * passes.def: Remove pass_fixup_cfg.
19351 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19352 track when we need to remove functions.
19353 (gate_ipa_inline): Execute inlining always; add comment why.
19354 (pass_data_ipa_inline): Remove TODO_remove_functions.
19355 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19356 do not produce summaries.
19357 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19358 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19359 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19360 constant pool and vtable.
19362 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19364 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19365 New arm_neon.h's internal macros to specify 64-bit constants.
19366 Avoid using stdint.h's macros.
19368 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19370 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19371 before applying REG_P.
19373 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19375 PR tree-optimization/58277
19376 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19377 after seeing too many stmts with vdef in between dombb and current
19378 bb, invalidate everything.
19380 2013-08-30 Richard Biener <rguenther@suse.de>
19382 * fold-const.c (fold_single_bit_test): Fix overflow test.
19384 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19386 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19387 and which can live in a register, always retrieve the value on entry.
19388 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19389 passed by invisible reference specially.
19390 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19391 (vt_add_function_parameter): Correctly deal with a parameter passed by
19392 invisible reference.
19394 2013-08-30 Jan Hubicka <jh@suse.cz>
19396 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19398 2013-08-30 Richard Biener <rguenther@suse.de>
19400 PR tree-optimization/58228
19401 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19402 allow invariant loads in nested loop vectorization.
19404 2013-08-30 Richard Biener <rguenther@suse.de>
19406 PR tree-optimization/58223
19407 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19408 (has_anti_or_output_dependence): ... this and adjust to also
19409 look for output dependences.
19410 (mark_nodes_having_upstream_mem_writes): Adjust.
19411 (rdg_flag_uses): Likewise.
19413 2013-08-30 Richard Biener <rguenther@suse.de>
19415 PR tree-optimization/58010
19416 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19417 assert that we have a loop-closed PHI.
19419 2013-08-29 Jan Hubicka <jh@suse.cz>
19421 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19422 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19423 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19424 (lto_free_function_in_decl_state_for_node): New function.
19426 2013-08-29 Xinliang David Li <davidxl@google.com>
19428 * loop-unroll.c (report_unroll_peel): Minor message change.
19429 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19430 Emit alignment peeling message with default -fopt-info.
19431 (vect_loop_versioning): Emit loop version info message.
19432 * tree-vectorizer.c (vectorize_loops): Minor message change.
19433 (execute_vect_slp): Ditto.
19435 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19437 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19438 of the clone from the DECL_NAME of the original function.
19440 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19442 * passes.c (register_pass): Add overload.
19443 * tree-pass.h (register_pass): Forward declare it. Add comment.
19445 2013-08-29 Jan Hubicka <jh@suse.cz>
19447 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19448 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19449 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19450 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19451 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19452 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19453 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19454 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19456 2013-08-29 Teresa Johnson <tejohnson@google.com>
19458 * dumpfile.c (dump_loc): Output column number.
19459 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19460 * doc/invoke.texi: Document optall -fopt-info flag.
19461 * profile.c (read_profile_edge_counts): Use new dump framework.
19462 (compute_branch_probabilities): Ditto.
19463 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19464 when pass not in any opt group.
19465 * pass_manager.h (pass_manager::get_pass_profile): New method.
19466 * value-prof.c (check_counter): Use new dump framework.
19467 (check_ic_target): Ditto.
19468 * coverage.c (get_coverage_counts): Ditto.
19469 (coverage_init): Setup new dump framework.
19471 2013-08-29 Richard Biener <rguenther@suse.de>
19473 PR tree-optimization/58246
19474 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19475 handle the dominance check inside a basic-block.
19477 2013-08-29 Richard Biener <rguenther@suse.de>
19479 PR middle-end/57287
19480 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19481 of default defs that appear in abnormal PHI nodes.
19483 2013-08-29 Richard Biener <rguenther@suse.de>
19485 PR tree-optimization/57685
19486 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19487 single-use operands to avoid exponential complexity.
19489 2013-08-28 Dehao Chen <dehao@google.com>
19491 * ipa-inline.c (edge_badness): Fix integer underflow.
19493 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19495 * gtm-builtins.def (_ITM_free): Declare leaf.
19497 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19500 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19501 (*tls_local_dynamic_base_64_largepic): Likewise.
19502 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19503 Remove predicate from call operand.
19504 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19505 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19507 2013-08-28 Jeff Law <law@redhat.com>
19509 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19510 checks for the number of predecessors and successors allowed.
19511 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19512 which require copying a joiner block if there is a request which
19513 is a subpath that requires no joiner block copying.
19515 2013-08-28 Jan Hubicka <jh@suse.cz>
19517 * lto-streamer-out.c (DFS_write_tree_body): Drop
19518 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19519 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19520 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19521 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19522 Do not read DECL_ERROR_ISSUED.
19523 (unpack_ts_decl_with_vis_value_fields): Do not read
19525 (lto_input_ts_binfo_tree_pointers): Do not read
19526 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19527 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19528 write DECL_ERROR_ISSUED..
19529 (pack_ts_decl_with_vis_value_fields): Do not write
19531 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19532 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19533 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19534 * tree.h (tree_decl_common): Update comment.
19535 (DECL_ERROR_ISSUED): Remove.
19537 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19539 PR middle-end/58257
19540 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19542 2013-08-28 Jan Hubicka <jh@suse.cz>
19544 * builtins.def (free): Declare leaf.
19546 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19548 * gdbhooks.py: New.
19549 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19550 * configure: Regenerate.
19552 2013-08-27 Martin Jambor <mjambor@suse.cz>
19554 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19555 (ipa_ancestor_jf_data): Likewise.
19556 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19557 (ipa_get_jf_pass_through_type_preserved): New function.
19558 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19559 (ipa_get_jf_ancestor_type_preserved): New function.
19560 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19561 (ipa_get_jf_ancestor_result): Likewise.
19562 (propagate_vals_accross_pass_through): Use
19563 ipa_get_jf_pass_through_result to do all the value mappings.
19564 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19565 type_preserved flag.
19566 (ipa_set_jf_cst_copy): New function.
19567 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19568 (ipa_set_jf_arith_pass_through): Likewise.
19569 (ipa_set_ancestor_jf): Likewise.
19570 (compute_complex_assign_jump_func): Set type_preserved instead of
19572 (ipa_compute_jump_functions_for_edge): Likewise.
19573 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19574 (update_jump_functions_after_inlining): Update type_preserved.
19575 Explicitely create jump functions when combining one with pass_through.
19576 (ipa_write_jump_function): Stream the type_preserved flags.
19577 (ipa_read_jump_function): Likewise.
19579 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19580 Aldy Hernandez <aldyh@redhat.com>
19582 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19583 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19584 * function.h (struct function): Add has_force_vect_loops and
19586 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19587 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19589 * gimple.def: Update CLAUSES comments.
19590 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19591 (gimple_build_omp_for): Add argument to prototype.
19592 (gimple_omp_for_kind): New.
19593 (gimple_omp_for_set_kind): New.
19594 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19595 GOVD_DATA_SHARE_CLASS.
19596 (enum omp_region_type): Add ORT_SIMD.
19597 (gimple_add_tmp_var): Handle ORT_SIMD.
19598 (gimplify_var_or_parm_decl): Same.
19599 (is_gimple_stmt): Same.
19600 (omp_firstprivatize_variable): Same.
19601 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19602 (omp_notice_variable): Handle ORT_SIMD.
19603 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19604 (omp_check_private): Handle ORT_SIMD.
19605 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19606 OMP_CLAUSE_SAFELEN.
19607 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19608 Handle OMP_CLAUSE_LASTPRIVATE.
19609 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19610 OMP_CLAUSE_SAFELEN.
19611 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19612 (gimplify_expr): Handle OMP_SIMD.
19613 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19614 (expand_GOMP_SIMD_VF): New.
19615 (expand_GOMP_SIMD_LAST_LANE): New.
19616 * internal-fn.def (GOMP_SIMD_LANE): New.
19617 (GOMP_SIMD_VF): New.
19618 (GOMP_SIMD_LAST_LANE): New.
19619 * omp-low.c: Include target.h.
19620 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19621 OMP_CLAUSE_SAFELEN.
19622 (check_omp_nesting_restrictions): Same.
19624 (lower_rec_simd_input_clauses): New.
19625 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19627 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19628 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19629 (expand_omp_build_assign): New.
19630 (expand_omp_for_init_counts): New.
19631 (expand_omp_for_init_vars): New.
19632 (extract_omp_for_update_vars): New.
19633 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19634 and rewrite accordingly.
19635 (expand_omp_simd): New.
19636 (expand_omp_for): Use expand_omp_simd.
19637 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19638 (lower_omp_for): Do not lower the body.
19639 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19640 in their own loops.
19641 * tree-flow.h (find_omp_clause): Remove prototype.
19642 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19643 forcing vectorization of the loop, or if flag_tree_vectorize.
19644 (gate_tree_if_conversion): Similarly.
19645 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19646 gimple_build_omp_for.
19647 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19648 * tree-parloops (create_parallel_loop): Pass kind argument to
19649 gimple_build_omp_for.
19650 * tree-pretty-print.c (dump_omp_clause): Add cases for
19651 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19652 OMP_CLAUSE__SIMDUID_.
19653 (dump_generic_node): Handle OMP_SIMD.
19654 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19655 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19656 unroll OMP_SIMD loops here.
19657 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19658 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19660 (vect_analyze_data_refs): Handle simd loops.
19661 * tree-vect-loop.c (vectorizable_live_operation): Handle
19663 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19664 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19665 (vectorizable_load): Same.
19666 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19667 (struct simduid_to_vf): New.
19668 (simduid_to_vf::hash): New.
19669 (simduid_to-vf::equal): New.
19670 (struct simd_array_to_simduid): New.
19671 (simd_array_to_simduid::hash): New.
19672 (simd_array_to_simduid::equal): New.
19673 (adjust_simduid_builtins): New.
19674 (struct note_simd_array_uses_struct): New.
19675 (note_simd_array_uses_cb): New.
19676 (note_simd_array_uses): New.
19677 (vectorize_loops): Handle simd hints and adjust simd builtins
19679 * tree-vectorizer.h (struct _stmt_vec_info): Add
19680 simd_lane_access_p field.
19681 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19682 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19683 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19684 (omp_clause_code_name): Same.
19685 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19686 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19687 * tree.def (OMP_SIMD): New entry.
19688 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19689 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19690 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19691 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19692 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19693 (OMP_CLAUSE_LINEAR_STEP): New.
19694 (OMP_CLAUSE_SAFELEN_EXPR): New.
19695 (OMP_CLAUSE__SIMDUID__DECL): New.
19696 (find_omp_clause): New prototype.
19698 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19700 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19701 Haswell processor detection.
19703 2013-08-27 Christian Widmer <shadow@umbrox.de>
19706 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19707 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19708 AVX2 capable processors.
19710 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19712 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19713 of vget_low_* with implementations in terms of other intrinsics.
19715 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19717 PR middle-end/57219
19718 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19719 values to -1, 0 and 1.
19721 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19723 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19724 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19725 (<optab><mode>3_insn): Remove.
19726 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19727 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19728 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19729 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19730 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19731 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19732 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19733 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19734 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19735 (ror<mode>3_insn): Likewise.
19736 * config/aarch64/predicates.md (aarch64_simd_register): New.
19738 2013-08-27 Richard Biener <rguenther@suse.de>
19740 PR tree-optimization/57521
19741 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19742 one edge is non-critical.
19743 (find_phi_replacement_condition): Make sure to use a non-critical
19744 edge. Cleanup and remove old bug workarounds.
19745 (bb_postdominates_preds): Remove.
19746 (if_convertible_loop_p_1): Do not compute post-dominators.
19747 (combine_blocks): Do not free post-dominators.
19748 (main_tree_if_conversion): Likewise.
19749 (pass_data_if_conversion): Add TODO_verify_ssa.
19751 2013-08-27 DJ Delorie <dj@redhat.com>
19753 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19755 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19757 * function.c (assign_parm_find_data_types): Set passed_mode and
19758 nominal_mode to the TYPE_MODE of nominal_type for the built
19759 pointer type in case of the struct-pass-by-reference.
19761 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19763 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19764 (UINT16_TYPE): Change default to "unsigned int".
19766 * config/avr/avr.opt (mfract-convert-truncate): New option.
19767 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19768 is set, round negative fractional integers according to n1169
19769 when converting to integer types.
19771 2013-08-26 Jan Hubicka <jh@suse.cz>
19773 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19774 methods can not be called indirectly when their address is not taken.
19776 2013-08-26 Jan Hubicka <jh@suse.cz>
19778 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19781 2013-08-26 Jan Hubicka <jh@suse.cz>
19783 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19786 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19788 * reload.c (find_valid_class): Allow classes that do not include
19789 FIRST_PSEUDO_REGISTER - 1.
19791 2013-08-26 Jan Hubicka <jh@suse.cz>
19793 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19794 fix edge count/frequency when speculation failed; fix type check
19795 for the direct call.
19797 2013-08-26 Jan Hubicka <jh@suse.cz>
19799 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19801 2013-08-26 Jan Hubicka <jh@suse.cz>
19803 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19804 to be changed by edge redirection.
19806 2013-08-26 Jan Hubicka <jh@suse.cz>
19808 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19809 formating; add sanity check.
19810 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19811 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19812 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19813 (resolve_noninline_speculation): Update callee keys, too.
19815 2013-08-26 Jan Hubicka <jh@suse.cz>
19817 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19818 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19820 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19822 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19825 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19827 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19828 (x86_64_elf_select_section): Ditto.
19829 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19831 (ix86_pass_by_reference): Ditto.
19832 (output_set_got): Ditto.
19833 (ix86_unary_operator_ok): Ditto.
19834 (ix86_expand_builtin): Ditto.
19836 2013-08-23 Jan Hubicka <jh@suse.cz>
19838 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19840 2013-08-23 Jan Hubicka <jh@suse.cz>
19842 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19843 (tree_decl_with_vis): Add FINAL field.
19845 2013-08-23 Jeff Law <law@redhat.com>
19847 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19848 the debugging dump when the expression is fully redundant.
19850 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19852 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19853 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
19854 * pretty-print.c (pp_formatted_text_data): Likewise.
19855 (pp_write_text_to_stream): Likewise.
19856 (pp_write_text_as_dot_label_to_stream): Likewise.
19857 (pp_append_r): Likewise.
19858 (pp_format): Likewise.
19859 (pp_flush): Likewise.
19860 (pp_clear_output_area): Likewise.
19861 (pp_append_text): Likewise.
19862 (pp_formatted_text): Likewise.
19863 (pp_remaining_character_count_for_line): Likewise.
19864 (pp_newline): Likewise.
19865 (pp_character): Likewise.
19866 (output_buffer::~output_buffer): Define.
19867 (pretty_printer::~pretty_printer): Destruct output buffer.
19868 * pretty-print.h (output_buffer::~output_buffer): Declare.
19869 (pretty_printer::~pretty_printer): Declare virtual.
19871 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
19874 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
19875 HOST_WIDE_INT_M1U): New macros.
19876 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
19877 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
19878 unsigned -1 for lshift.
19879 * cse.c (cse_insn): Likewise.
19880 * double-int.c (rshift_double, lshift_double): Likewise.
19881 * builtins.c (fold_builtin_bitop): Likewise.
19882 * combine.c (force_to_mode): Likewise.
19883 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
19884 * simplify-rtx.c (simplify_const_unary_operation,
19885 simplify_const_binary_operation): Likewise.
19886 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
19887 check_va_list_escapes): Likewise.
19888 * rtlanal.c (nonzero_bits1): Likewise.
19889 * expmed.c (expand_smod_pow2): Likewise.
19890 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
19892 2013-08-23 Jan Hubicka <jh@suse.cz>
19894 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
19895 as having address taken.
19897 2013-08-23 Jan Hubicka <jh@suse.cz>
19899 * ipa-utils.h (method_class_type): Declare.
19900 * ipa-devirt.c (method_class_type): Export.
19902 * cgraphunit.c (analyze_functions): Do basic devirtualization;
19903 do not walk base classes of anonymous types.
19905 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
19907 PR rtl-optimization/58220
19908 PR regression/58221
19909 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
19910 handle SEQUENCE insns properly.
19912 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19914 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
19916 (pp_newline_and_indent): Likewise.
19917 (pp_separate_with): Likewise.
19918 * pretty-print.c (pp_newline_and_flush): Define.
19919 (pp_newline_and_indent): Likewise.
19920 (pp_separate_with): Likewise.
19922 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19925 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
19926 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
19928 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
19930 * config/i386/predicates.md (ext_sse_reg_operand): New.
19931 * config/i386/i386.md (*movti_internal): Use
19932 predicate to determine if EVEX is needed.
19933 (*movsi_internal): Ditto.
19934 (*movdf_internal): Ditto.
19935 (*movsf_internal): Ditto.
19936 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
19938 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19940 PR tree-optimization/58209
19941 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
19942 (find_tail_calls): Give up for pointer result types if m is non-NULL.
19943 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
19944 emit POINTER_PLUS_EXPR.
19945 (create_tailcall_accumulator): For pointer result type accumulate in
19948 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
19950 * configure.ac: Add backslashes missing from the last change.
19951 * configure: Regenerate.
19953 2013-08-22 Jan Hubicka <jh@susue.cz>
19955 * ipa.c (function_and_variable_visibility): First remember function
19956 was global and then make it local.
19958 2013-08-22 Julian Brown <julian@codesourcery.com>
19960 * configure.ac: Add aarch64 to list of arches which use "nop" in
19962 * configure: Regenerate.
19964 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19966 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
19967 gnu_libc_has_function.
19968 * config/s390/tpf.h: Likewise.
19970 2013-08-22 Jan Hubicka <jh@susue.cz>
19972 * timevar.c (validate_phases): Add cast.
19974 2013-08-22 Jan Hubicka <jh@susue.cz>
19976 * timevar.c (validate_phases): Use size_t for memory.
19977 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
19979 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
19981 * pretty-print.h (output_buffer::output_buffer): Declare.
19982 (pretty_printer::pretty_printer): Likewise.
19983 (pp_construct): Remove.
19984 * pretty-print.c (output_buffer::output_buffer): Define.
19985 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
19986 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
19987 (print_gimple_expr): Likewise.
19988 (print_gimple_seq): Likewise.
19989 (gimple_dump_bb): Likewise.
19990 * sched-vis.c (dump_value_slim): Likewise.
19991 (dump_insn_slim): Likewise.
19992 (dump_rtl_slim): Likewise.
19993 (str_pattern_slim): Likewise.
19994 * tree-mudflap.c (mf_varname_tree): Likewise.
19995 * graph.c (print_graph_cfg): Likewise.
19996 (start_graph_dump): Likewise.
19997 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
19999 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20000 pretty printer initialization.
20001 * coretypes.h (diagnostic_context): Remove superflous type alias
20003 (pretty_printer): Likewise. Declare directly as a class.
20004 (pretty_print_info): Remove declaration as class.
20005 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20006 and pp_clear_output_area.
20007 (asan_add_global): Likewise.
20009 2013-08-22 Jan Hubicka <jh@suse.cz>
20011 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20012 * ipa-utils.h (update_type_inheritance_graph): Declare.
20013 (possible_polymorphic_call_target_p): Declare.
20014 (possible_polymorphic_call_target_p): New.
20015 * ipa-devirt.c: Update toplevel comments.
20016 (cached_polymorphic_call_targets): Move up.
20017 (odr_type_d): Move ID down.
20018 (polymorphic_type_binfo_p): Update comment.
20019 (odr_hasher::remove): Likewise;
20020 (get_odr_type): Set anonymous_namespace.
20021 (dump_odr_type): Dump it.
20022 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20023 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20024 (record_binfo): Add comment.
20025 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20027 (devirt_node_removal_hook): Do not iCE when cache is freed.
20028 (possible_polymorphic_call_target_p): New predicate.
20029 (update_type_inheritance_graph): New function.
20031 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20033 Sergey Lega <sergey.s.lega@intel.com>
20034 Anna Tikhonova <anna.tikhonova@intel.com>
20035 Ilya Tocar <ilya.tocar@intel.com>
20036 Andrey Turetskiy <andrey.turetskiy@intel.com>
20037 Ilya Verbin <ilya.verbin@intel.com>
20038 Kirill Yukhin <kirill.yukhin@intel.com>
20039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20041 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20042 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20043 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20044 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20045 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20046 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20047 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20048 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20049 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20050 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20051 OPT_mavx512pf, OPT_mavx512er cases.
20052 * config/i386/constraints.md (v): New constraint.
20053 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20054 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20055 (bit_AVX512CD): New.
20056 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20057 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20058 * config/i386/i386-c.c (ix86_target_macros_internal):
20059 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20061 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20062 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20063 * config/i386/i386.c (regclass_map, dbx_register_map)
20064 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20065 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20066 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20067 -mavx512pf options.
20068 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20069 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20070 -mavx512pf options. Fix formatting.
20071 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20072 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20073 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20074 -mavx512cd, -mavx512pf options.
20075 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20076 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20077 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20079 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20080 (ix86_set_reg_reg_cost): Ditto.
20081 (x86_order_regs_for_local_alloc): Ditto.
20082 (MAX_VECT_LEN): Extend to 64-byte.
20083 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20084 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20085 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20086 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20087 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20088 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20089 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20090 (SSE_REG_MODE_P): Support new modes.
20091 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20092 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20093 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20094 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20095 (REG_CLASS_CONTENTS): Add new registers.
20096 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20097 (EXT_REX_SSE_REGNO_P): New.
20098 (HI_REGISTER_NAMES): Add new registers.
20099 * config/i386/i386.md: Define constants for new registers.
20100 (mode): Add new 512-bit modes.
20101 (prefix): Support evex prefix.
20102 (isa): Support avx512f, noavx512f, fma_avx512f.
20103 (ssemodesuffix): Add new 512-bit modes.
20105 (*movxi_internal_avx512f): Ditto.
20106 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20108 (*movsi_internal): Likewise.
20109 (*movdf_internal): Likewise.
20110 (*movsf_internal): Likewise.
20111 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20112 (<code><mode>3): Likewise.
20113 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20115 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20116 with the new constraint "v".
20117 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20119 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20120 with the new constraint "v".
20121 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20122 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20123 (*<plusminus_insn><mode>3): Likewise.
20124 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20125 (*mul<mode>3): Likewise.
20126 (<sse>_vmmul<mode>3): Likewise.
20127 (<sse>_div<mode>3): Likewise.
20128 (<sse>_vmdiv<mode>3): Likewise.
20129 (<sse>_sqrt<mode>2): Likewise.
20130 (<sse>_vmsqrt<mode>2): Likewise.
20131 (*<code><mode>3_finite): Likewise.
20132 (*<code><mode>3) <smaxmin>: Likewise.
20133 (<sse>_vm<code><mode>3): Likewise.
20134 (*<code><mode>3) <any_logic>: Likewise.
20135 (*fma_fmadd_<mode>): Likewise.
20136 (*fma_fmsub_<mode>): Likewise.
20137 (*fma_fnmadd_<mode>): Likewise.
20138 (*fma_fnmsub_<mode>): Likewise.
20139 (*fma_fmaddsub_<mode>): Likewise.
20140 (*fma_fmsubadd_<mode>): Likewise.
20141 (*fmai_fmadd_<mode>): Likewise.
20142 (*fmai_fmsub_<mode>): Likewise.
20143 (*fmai_fnmadd_<mode>): Likewise.
20144 (*fmai_fnmsub_<mode>): Likewise.
20145 (sse_cvtsi2ss): Likewise.
20146 (sse_cvtsi2ssq): Likewise.
20147 (sse_cvtss2si): Likewise.
20148 (sse_cvtss2si_2): Likewise.
20149 (sse_cvtss2siq): Likewise.
20150 (sse_cvtss2siq_2): Likewise.
20151 (sse_cvttss2si): Likewise.
20152 (sse_cvtss2siq_2): Likewise.
20153 (float<sseintvecmodelower><mode>2): Likewise.
20154 (sse2_cvtsd2si_2): Likewise.
20155 (sse2_cvtsd2siq_2): Likewise.
20156 (*<plusminus_insn><mode>3): Likewise.
20157 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20158 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20159 (ashr<mode>3): Likewise.
20160 (<shift_insn><mode>3): Likewise.
20161 (avx2_<code><mode>3): Likewise.
20162 (*avx2_<code><mode>3): Likewise.
20163 (*andnot<mode>3): Likewise.
20164 (*<code><mode>3) <any_logic>: Likewise.
20165 (abs<mode>2): Likewise.
20166 (avx2_permvar<mode>): Likewise.
20167 (avx2_perm<mode>_1): Likewise.
20168 (*avx_vpermilp<mode>): Likewise.
20169 (avx_vpermilvar<mode>3): Likewise.
20170 (avx2_ashrv<mode>): Likewise.
20171 (avx2_<shift_insn>v<mode>): Likewise.
20172 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20174 * doc/rtl.texi: Document XImode.
20176 2013-08-21 Jeff Law <law@redhat.com>
20178 * tree-flow.h (register_jump_thread): Pass vector of edges
20179 instead of each important edge.
20180 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20181 thread path into a vector and pass that to register_jump_thread.
20182 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20183 passed in edge vector to the current 3-edge form.
20186 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20188 * dce.c (fini_dce): Call df_analyze again just in case
20189 delete_unmarked_insns removed anything.
20191 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20193 * reload.h (struct reg_equivs): Rename to ..
20194 (struct reg_equivs_s): .. this.
20196 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20198 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20200 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20202 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20204 2013-08-21 Jeff Law <law@redhat.com>
20206 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20207 simplify assignments too. If the RHS collapses to a singleton
20208 range, then return the value for the range.
20210 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20212 * config/i386/sse.md (V16): Rename to...
20214 (mov<mode>): Update iterator name.
20215 (*mov<mode>_internal): Ditto.
20216 (push<mode>1): Ditto.
20217 (movmisalign<mode>): Ditto.
20219 2013-08-20 Jan Hubicka <jh@suse.cz>
20222 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20223 entry for direct edges.
20224 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20226 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20228 Revert my last two changes, r201865 and r201864:
20231 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20233 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20234 instances can own GC refs.
20236 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20237 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20238 (gcc::context::gt_pch_nx): Likewise.
20239 (gcc::context::gt_pch_nx): Likewise.
20240 * ggc.h (gt_ggc_mx <T>): New.
20241 (gt_pch_nx_with_op <T>): New.
20242 (gt_pch_nx <T>): New.
20243 * passes.c (opt_pass::gt_ggc_mx): New.
20244 (opt_pass::gt_pch_nx): New.
20245 (opt_pass::gt_pch_nx_with_op): New.
20246 (pass_manager::gt_ggc_mx): New.
20247 (pass_manager::gt_pch_nx): New.
20248 (pass_manager::gt_pch_nx_with_op): New.
20249 (pass_manager::operator new): Use
20250 ggc_internal_cleared_alloc_stat rather than xcalloc.
20251 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20252 (pass_manager::gt_ggc_mx): New.
20253 (pass_manager::gt_pch_nx): New.
20254 (pass_manager::gt_pch_nx_with_op): New.
20255 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20256 (opt_pass::operator new): New.
20257 (opt_pass::gt_ggc_mx): New.
20258 (opt_pass::gt_pch_nx): New.
20259 (opt_pass::gt_pch_nx_with_op): New.
20262 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20264 * Makefile.in (GTFILES): Add context.h.
20265 * context.c (gcc::context::operator new): New.
20266 (gcc::context::gt_ggc_mx): New.
20267 (gcc::context::gt_pch_nx): New.
20268 (gcc::context::gt_pch_nx): New.
20269 * context.h (gcc::context): Add GTY((user)) marking.
20270 (gcc::context::operator new): New.
20271 (gcc::context::gt_ggc_mx): New.
20272 (gcc::context::gt_pch_nx): New.
20273 (gcc::context::gt_pch_nx): New.
20274 (g): Add GTY marking.
20275 (gt_ggc_mx (gcc::context *)): New.
20276 (gt_pch_nx (gcc::context *)): New.
20277 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20278 void *cookie)): New.
20279 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20281 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20283 * dce.c (fini_dce): Call df_analyze again just in case
20284 delete_unmarked_insns removed anything.
20286 2013-08-20 Teresa Johnson <tejohnson@google.com>
20288 PR rtl-optimizations/57451
20289 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20290 from crossing split section boundaries.
20292 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20294 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20295 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20296 with MULTLIB_DEFAULTS.
20298 2013-08-20 Nick Clifton <nickc@redhat.com>
20300 * target.def (narrow_volatile_bitfield): Note that the default
20301 value is false, not !TARGET_STRICT_ALIGN.
20302 * doc/tm.texi: Regenerate.
20304 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20306 Fix LIB_SPEC for systems without libpthread.
20308 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20309 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20311 * config/i386/linux-common.h: Likewise.
20312 * config/mips/linux-common.h: Likewise.
20314 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20316 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20319 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20321 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20322 instances can own GC refs.
20324 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20325 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20326 (gcc::context::gt_pch_nx): Likewise.
20327 (gcc::context::gt_pch_nx): Likewise.
20328 * ggc.h (gt_ggc_mx <T>): New.
20329 (gt_pch_nx_with_op <T>): New.
20330 (gt_pch_nx <T>): New.
20331 * passes.c (opt_pass::gt_ggc_mx): New.
20332 (opt_pass::gt_pch_nx): New.
20333 (opt_pass::gt_pch_nx_with_op): New.
20334 (pass_manager::gt_ggc_mx): New.
20335 (pass_manager::gt_pch_nx): New.
20336 (pass_manager::gt_pch_nx_with_op): New.
20337 (pass_manager::operator new): Use
20338 ggc_internal_cleared_alloc_stat rather than xcalloc.
20339 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20340 (pass_manager::gt_ggc_mx): New.
20341 (pass_manager::gt_pch_nx): New.
20342 (pass_manager::gt_pch_nx_with_op): New.
20343 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20344 (opt_pass::operator new): New.
20345 (opt_pass::gt_ggc_mx): New.
20346 (opt_pass::gt_pch_nx): New.
20347 (opt_pass::gt_pch_nx_with_op): New.
20349 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20351 * Makefile.in (GTFILES): Add context.h.
20352 * context.c (gcc::context::operator new): New.
20353 (gcc::context::gt_ggc_mx): New.
20354 (gcc::context::gt_pch_nx): New.
20355 (gcc::context::gt_pch_nx): New.
20356 * context.h (gcc::context): Add GTY((user)) marking.
20357 (gcc::context::operator new): New.
20358 (gcc::context::gt_ggc_mx): New.
20359 (gcc::context::gt_pch_nx): New.
20360 (gcc::context::gt_pch_nx): New.
20361 (g): Add GTY marking.
20362 (gt_ggc_mx (gcc::context *)): New.
20363 (gt_pch_nx (gcc::context *)): New.
20364 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20365 void *cookie)): New.
20366 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20368 2013-08-20 Alan Modra <amodra@gmail.com>
20371 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20372 (rs6000_emit_epilogue): Likewise.
20374 2013-08-19 Dehao Chen <dehao@google.com>
20376 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20378 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20379 Jakub Jelinek <jakub@redhat.com>
20381 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20382 (BUILT_IN_FABSD64): Likewise.
20383 (BUILT_IN_FABSD128): Likewise.
20384 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20385 (fold_builtin_1): Likewise.
20386 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20387 destination and source operands.
20388 (*abstd2_fpr): Likewise.
20389 (*nabstd2_fpr): Likewise.
20391 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20393 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20396 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20398 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20401 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20403 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20404 * builtins.c (default_libc_has_function): New.
20405 (gnu_libc_has_function): Ditto.
20406 (no_c99_libc_has_function): Ditto.
20407 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20408 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20409 (fold_builtin_sincos): Likewise.
20410 (fold_builtin_cexp): Likewise.
20411 * builtins.def (DEF_C94_BUILTIN): Likewise.
20412 (DEF_C99_BUILTIN): Likewise.
20413 (DEF_C99_C90RES_BUILTIN): Likewise.
20414 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20415 definitions to using this define.
20416 * config/darwin-protos.h (darwin_libc_has_function): New.
20417 * config/darwin.c (darwin_libc_has_function): Ditto.
20418 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20419 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20420 * config/darwin.h: Ditto.
20421 * config/elfos.h: Ditto.
20422 * config/freebsd.h: Ditto.
20423 * config/i386/cygming.h: Ditto.
20424 * config/i386/djgpp.h: Ditto.
20425 * config/i386/i386-interix.h: Ditto.
20426 * config/microblaze/microblaze.h: Ditto.
20427 * config/mmix/mmix.h: Ditto.
20428 * config/gnu-user.h: Ditto.
20429 * config/ia64/hpux.h: Ditto.
20430 * config/pa/pa-hpux.h: Ditto.
20431 * config/pdp11/pdp11.h: Ditto.
20432 * config/picochip/picochip.h: Ditto.
20433 * config/linux.h: Ditto.
20434 * config/netbsd.h: Ditto.
20435 * config/openbsd.h: Ditto.
20436 * config/rs6000/aix43.h: Ditto.
20437 * config/rs6000/aix51.h: Ditto.
20438 * config/rs6000/aix52.h: Ditto.
20439 * config/rs6000/aix53.h: Ditto.
20440 * config/rs6000/aix61.h: Ditto.
20441 * config/rs6000/darwin.h: Ditto.
20442 * config/rs6000/linux.h: Ditto.
20443 * config/rs6000/linux64.h: Ditto.
20444 * config/s390/tpf.h: Ditto.
20445 * config/sol2-10.h: Ditto.
20446 * config/sol2.h: Ditto.
20447 * config/vms/vms.h: Ditto.
20448 * config/vxworks.h: Ditto.
20449 * config/linux-android.c (linux_android_libc_has_function):
20450 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20451 * config/linux-protos.h (linux_android_libc_has_function):
20453 * config/i386/i386.c (ix86_libc_has_function): New.
20454 * config/i386/i386-protos.h
20455 (ix86_libc_has_function): New declaration.
20456 * config/i386/i386.md
20457 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20458 ("isinf<mode>2): Likewise.
20459 * convert.c (convert_to_integer): Using new target hook
20460 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20461 TARGET_C99_FUNCTIONS.
20462 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20463 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20464 * coretypes.h (function_class): New enum for different
20465 classes of functions.
20466 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20467 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20468 (TARGET_HAS_SINCOS): Likewise.
20469 (TARGET_LIBC_HAS_FUNCTION): New.
20470 * doc/tm.texi: Regenerated.
20471 * targhooks.h (default_libc_has_function): New declaration.
20472 (no_c99_libc_has_function): Ditto.
20473 (gnu_libc_has_function): Ditto.
20474 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20475 and TARGET_HAS_SINCOS.
20477 2013-08-18 Jan Hubicka <jh@suse.cz>
20479 * Makeifle-in (ipa-devirt.o): New.
20480 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20481 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20482 (analyze_functions): Look into possible targets of polymorphic call.
20483 * dumpfile.c (dump_files): Add type-inheritance dump.
20484 * dumpfile.h (TDI_inheritance): New.
20485 * ipa-devirt.c: New file.
20486 * ipa-utils.h (odr_type_d): Forward declare.
20487 (odr_type): New type.
20488 (build_type_inheritance_graph): Declare.
20489 (possible_polymorphic_call_targets): Declare and introduce inline
20490 variant when only edge is pased.
20491 (dump_possible_polymorphic_call_targets): Likewise.
20492 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20493 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20494 (types_same_for_odr): ... here.
20495 * tree.h (type_in_anonymous_namespace_p): Declare.
20497 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20499 PR tree-optimization/58006
20500 * tree-parloops.c (take_address_of): Don't ICE if get_name
20502 (eliminate_local_variables_stmt): Remove clobber stmts.
20504 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20506 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20507 error message is issued for an alias to undefined symbol.
20509 2013-08-18 Jan Hubicka <jh@suse.cz>
20511 * cgraph.c (cgraph_create_indirect_edge): Discover
20512 polymorphic calls and record basic info into indirect_info.
20513 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20514 devirtualization, ignore objc function calls.
20515 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20516 call with no parm index info.
20517 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20518 * tree.c (virtual_method_call_p): New function.
20519 * tree.h (virtual_method_call_p): Declare.
20521 2013-08-16 Jan Hubicka <jh@suse.cz>
20523 PR middle-end/58179
20524 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20526 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20528 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20531 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20533 * gengtype.c (type_for_name): Add special-case support for
20534 locating types within the "gcc::" namespace.
20535 (open_base_files): Emit a "using namespace gcc" directive.
20537 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20540 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20541 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20543 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20544 array instead of each individual operand as a separate argument.
20545 (emit_fusion_gpr_load): Likewise.
20546 (expand_fusion_gpr_load): Add new function declaration.
20548 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20549 signature to have the operands passed as an array, instead of as
20550 separate arguments. Allow ZERO_EXTEND to be in the memory
20551 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20552 depend on the register live/dead flags when peepholes are run.
20553 (expand_fusion_gpr_load): New function to be called from the
20554 peephole2 pass, to change the register that addis sets to be the
20556 (emit_fusion_gpr_load): Change the calling signature to have the
20557 operands passed as an array, instead of as separate arguments.
20558 Allow ZERO_EXTEND to be in the memory address, and also
20559 SIGN_EXTEND if -mpower8-fusion-sign.
20561 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20562 unspec enumeration.
20563 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20564 adjust the register addis loads up in the peephole2 pass. Do not
20565 depend on the register live/dead state when the peephole pass is done.
20567 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20569 * gengtype.c (create_user_defined_type): Ensure that the kind
20570 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20571 declaration is seen before the GTY((user)) marking.
20573 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20576 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20578 2013-08-16 Jan Hubicka <jh@suse.cz>
20580 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20581 arugment expected_type.
20582 (gimple_fold_call): Use it.
20583 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20584 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20585 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20586 (try_make_edge_direct_virtual_call): Likewise.
20587 * tree.c (obj_type_ref_class): New.
20588 * tree.h (obj_type_ref_class): Use it.
20590 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20592 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20593 (rtl_slim_pp): Likewise.
20594 (init_rtl_slim_pretty_print): Likewise.
20595 (dump_value_slim): Don't call it. Use local pretty printer.
20596 (dump_insn_slim): Likewise.
20597 (dump_rtl_slim): Likewise.
20598 (str_pattern_slim): Likewise.
20599 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20602 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20604 PR tree-optimization/58164
20605 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20606 walk gimple_goto_dest of GIMPLE_GOTO.
20608 PR tree-optimization/58165
20609 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20610 bi_call must be the last stmt in a bb, don't split_block, instead
20611 use fallthru edge from it and give up if there is none.
20612 Release conds vector when returning early.
20614 2013-08-14 Xinliang David Li <davidxl@google.com>
20616 * config/i386/i386.c (ix86_option_override_internal):
20617 Remove unused variable and field.
20619 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20622 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20623 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20624 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20625 and Linux, correct BLKmode alignment when 128-bit alignment is
20626 required and compatibility flag is not set.
20627 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20628 for zero-size arguments when compatibility flag is not set.
20630 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20632 PR tree-optimization/58145
20633 * tree-sra.c (build_ref_for_offset): If prev_base has
20634 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20636 2013-08-14 Xinliang David Li <davidxl@google.com>
20638 * config/i386/i386.c (ix86_option_override_internal):
20639 Fix uninitialized variable error.
20641 2013-08-14 Xinliang David Li <davidxl@google.com>
20643 * config/i386/i386.opt: Define two new options.
20644 * config/i386/x86-tune.def: Add arch selector field in macros.
20645 * config/i386/i386.h: Adjust macro definition.
20646 * config/i386/i386.c (ix86_option_override_internal):
20648 (parse_mtune_ctrl_str): New function.
20649 (set_ix86_tune_features): New function.
20650 (ix86_function_specific_restore): Call the new helper function.
20652 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20654 PR rtl-optimization/57662
20655 * sel-sched.c (code_motion_process_successors): When the current insn
20656 is removed after the recursive traversal, break from the loop.
20657 Add comments and debug printouts.
20659 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20660 Alexandre Oliva <aoliva@redhat.com>
20663 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20664 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20665 there also UNSPEC_PLTOFF.
20667 2013-08-14 Marek Polacek <polacek@redhat.com>
20669 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20670 NUM_CONDITIONS bit positions.
20672 2013-08-13 Cary Coutant <ccoutant@google.com>
20674 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20675 (attr_checksum): Hash vector contents instead of pointer.
20676 (attr_checksum_ordered): Likewise.
20678 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20680 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20681 when Pmode != word_mode. Add length_address attribute.
20682 (sse3_monitor_<mode>): Merge from sse3_monitor and
20683 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20684 Pmode != word_mode. Update insn length attribute.
20685 * config/i386/i386.c (ix86_option_override_internal): Update
20686 ix86_gen_monitor selection for merged sse3_monitor insn.
20688 2013-08-13 Julian Brown <julian@codesourcery.com>
20690 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20691 perform invalid legitimization on greater-than-word-size modes for
20692 TARGET_E500_DOUBLE.
20694 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20696 * ira.c (setup_class_translate_array): Use aclass instead of cl
20697 for classes not fully covered by allocno classes.
20699 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20701 PR tree-optimization/57661
20702 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20703 * tree-inline.c (tree_function_versioning): Initialize it.
20704 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20705 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20706 that is not being copied.
20709 * asan.c (instrument_strlen_call): Fix typo in comment.
20710 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20712 2013-08-13 Steve Ellcey <sellcey@mips.com>
20714 * config/mips/mips.md (prefetch): Use lw instead of ld on
20715 loongson in 32bit mode.
20717 2013-08-13 Nick Clifton <nickc@redhat.com>
20719 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20721 2013-08-13 Jan Hubicka <jh@suse.cz>
20723 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20724 introduced edge; fix typo in sanity check.
20725 (cgraph_resolve_speculation): Export; improve diagnostic.
20726 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20727 speculation at type mismatch.
20728 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20729 (cgraph_resolve_speculation): Declare.
20730 (symtab_can_be_discarded): New function.
20731 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20732 * ipa-inline-transform.c (speculation_removed): New global var.
20733 (clone_inlined_nodes): See if speculation can be removed.
20734 (inline_call): If speculations was removed, we growths may not match.
20735 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20736 (speculation_useful_p): New function.
20737 (resolve_noninline_speculation): New function.
20738 (inline_small_functions): Resolve useless speculations.
20739 * ipa-inline.h (speculation_useful_p): Declare
20740 * ipa.c (can_replace_by_local_alias): Simplify.
20741 (ipa_profile): Produce speculative calls in non-lto, too;
20742 add simple cost model; produce local aliases.
20744 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20746 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20749 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20751 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20753 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20755 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20756 iterator instead of X87MODEF.
20758 2013-08-12 Perez Read <netfirewall@gmail.com>
20761 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20762 operand 0 for intel asm alternative.
20763 (*movabs<mode>_2): Ditto for operand 1.
20765 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20767 * config/aarch64/arm_none.h
20768 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20770 2013-08-12 Nick Clifton <nickc@redhat.com>
20772 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20774 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20776 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20777 expand for QI/HImode operand to produce more effictive code for
20778 unsigned char(short) --> float(double) conversion.
20780 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20782 * doc/invoke.texi: Mention that -ftls-model does not force the final
20785 2013-08-12 Marek Polacek <polacek@redhat.com>
20786 Marc Glisse <marc.glisse@inria.fr>
20788 PR tree-optimization/57980
20789 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20790 when creating -1 constant.
20792 2013-08-10 Jan Hubicka <jh@suse.cz>
20794 Workaround binutils PR14342.
20795 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20796 (gimple_init_edge_profiler): Likewise.
20797 (gimple_gen_ic_func_profiler): Likewise.
20799 2013-08-09 Jan Hubicka <jh@suse.cz>
20801 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20803 2013-08-09 Xinliang David Li <davidxl@google.com>
20805 * config/i386/stringop.def: New file.
20806 * config/i386/stringop.opt: New file.
20807 * config/i386/i386-opts.h: Include stringopt.def.
20808 * config/i386/i386.opt: Include stringopt.opt.
20809 * config/i386/i386.c (ix86_option_override_internal):
20810 Override default size based stringop inline strategies with options.
20811 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20814 2013-08-09 Jan Hubicka <jh@suse.cz>
20816 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20818 2013-08-09 Jan Hubicka <jh@suse.cz>
20820 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20822 (dump_cgraph_node): Dump profile-id.
20823 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20824 and common_target_probability.
20825 * lto-cgraph.c (lto_output_edge): Stream common targets.
20826 (lto_output_node): Stream profile ids.
20827 (input_node): Stream profile ids.
20828 (input_edge): Stream common targets.
20829 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20830 * ipa.c: Include value-prof.h
20831 (ipa_profile_generate_summary): Turn indirect call statement histograms
20832 into common targets.
20833 (ipa_profile): Turn common targets into speculative edges.
20835 2013-08-09 Jan Hubicka <jh@suse.cz>
20837 * cgraph.h (cgraph_node): Add profile_id.
20838 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20839 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20840 (del_node_map): Update.
20841 (find_func_by_funcdef_no): Replace by ...
20842 (find_func_by_profile_id): ... this one.
20843 (gimple_ic_transform): Do not remove useful histograms when
20844 speculation is not done; dump info when indirect call removal
20846 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20847 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20848 (__gcov_indirect_call_profiler_v2): .. this one.
20849 * profile.h (init_node_map): Update.
20850 * coverage.c (coverage_compute_profile_id): New function.
20851 * coverage.h (coverage_compute_profile_id): Declare.
20852 * tree-profile.c (init_ic_make_global_vars): Make
20853 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
20854 (gimple_init_edge_profiler): Update prototype of
20855 __gcov_indirect_call_profiler.
20856 (gimple_gen_ic_func_profiler): Simplify.
20857 (tree_profiling): Use init_node_map
20859 2013-08-09 Jan Hubicka <jh@suse.cz>
20861 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
20862 non-speculative refs.
20863 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
20864 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
20865 (cgraph_set_call_stmt): Likewise.
20866 (cgraph_create_edge_1): Fix release checking compilatoin;
20867 clear lto_stmt_uid.
20868 (cgraph_free_edge): Free indirect info.
20869 (cgraph_turn_edge_to_speculative): New function.
20870 (cgraph_speculative_call_info): New function.
20871 (cgraph_make_edge_direct): Return direct edge; handle speculation.
20872 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
20873 (dump_cgraph_node): Dump speculation.
20874 (verify_edge_count_and_frequency): Accept speculative edges.
20875 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
20876 (verify_cgraph_node): Handle speculation.
20877 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
20878 (cgraph_set_call_stmt): Update prototype.
20879 (cgraph_make_edge_direct): Update prototype.
20880 (cgraph_speculative_call_info): Declare.
20881 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
20882 to change; update call of ipa_find_references.
20883 * ipa-ref.c (ipa_record_reference): Fix return value; clear
20884 lto_stmt_uid and speculative flags.
20885 (ipa_dump_references): Dump speculation.
20886 (ipa_clone_references): Clone speculative flag.
20887 (ipa_clone_referring): Likewise.
20888 (ipa_clone_ref): New function.
20889 (ipa_find_reference): Look into lto_stmt_uids
20890 (ipa_clear_stmts_in_references): Do not clear speculative calls.
20891 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
20892 (ipa_find_reference): Update declaration.
20893 (ipa_clone_ref): Declare.
20894 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
20895 stream speculative flag.
20896 (lto_output_ref): Stream statements uids and speculation.
20897 (input_ref): Likewise.
20898 (input_edge): Stream speuclation.
20899 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
20900 (cgraph_set_call_stmt_including_clones): Handle speculation.
20901 * ipa-inline.c (heap_edge_removal_hook): New function.
20902 (inline_small_functions): Register it.
20903 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
20904 also initialize refs.
20905 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
20907 (try_make_edge_direct_simple_call): Likewise.
20908 (try_make_edge_direct_simple_call): Likewise.
20909 (update_indirect_edges_after_inlining): Likewise.
20910 (remove_described_reference): Look proper lto_stmt_uid.
20911 (propagate_controlled_uses): Likewise.
20912 (propagate_controlled_uses): Liekwise.
20913 * tree-inline.c (copy_bb): Copy speculative edges.
20914 (redirect_all_calls): New function.
20915 (copy_cfg_body): Do redirection after loop info is updated.
20916 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
20918 2013-08-09 Jan Hubicka <jh@suse.cz>
20920 * lto-streamer-out.c (output_function): Renumber PHIs.
20921 * lto-streamer-in.c (input_function): Likewise.
20923 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
20925 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
20926 (get_lane_unsigned): Likewise.
20927 (dup_lane_scalar): Likewise.
20928 (get_lane): enable for VALL.
20929 * config/aarch64/aarch64-simd.md
20930 (aarch64_dup_lane_scalar<mode>): Remove.
20931 (aarch64_get_lane_signed<mode>): Likewise.
20932 (aarch64_get_lane_unsigned<mode>): Likewise.
20933 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
20934 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
20935 (aarch64_get_lane<mode>): Enable for all vector modes.
20936 (aarch64_get_lanedi): Remove misleading constraints.
20937 * config/aarch64/arm_neon.h
20938 (__aarch64_vget_lane_any): Define.
20939 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
20940 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
20941 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
20942 * config/aarch64/iterators.md (VDQQH): New.
20943 (VDQQHS): Likewise.
20944 (vwcore): Likewise.
20946 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
20948 * configure.ac: Add GAS check for LEON instructions on SPARC.
20949 * configure: Regenerate.
20950 * config.in: Likewise.
20951 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
20953 * config/sparc/sparc.opt (LEON, LEON3): New masks.
20954 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
20956 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
20957 (AS_LEON_FLAG): New macro.
20958 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
20959 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
20960 Deal with LEON and LEON3 for the memory model.
20961 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
20962 (atomic_compare_and_swap<mode>_1): Likewise.
20963 (*atomic_compare_and_swap<mode>_1): Likewise.
20965 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20967 * config/arm/neon.md (vcond): Fix floating-point vector
20968 comparisons against 0.
20970 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
20972 * lra-constraints.c (emit_spill_move): Remove assert.
20973 (process_alt_operands): Add more debugging
20974 output. Increase reject for spilling into memory. Decrease
20975 reject for reloading scratch.
20976 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
20978 2013-08-08 Steve Ellcey <sellcey@mips.com>
20980 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
20981 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
20982 micromips incompatible. Add nan2008.
20983 (MULTILIB_DIRNAMES): Add nan2008.
20984 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20985 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
20986 and micromips incompatible. Add nan2008.
20987 (MULTILIB_DIRNAMES): Add nan2008.
20988 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20990 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
20992 PR rtl-optimization/58079
20993 * combine.c (combine_simplify_rtx): Avoid using SUBST if
20994 simplify_comparison has widened a comparison with an integer.
20996 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20998 * config/arm/neon.md (movmisalign<mode>): Disable when we
20999 don't allow unaligned accesses.
21000 (*movmisalign<mode>_neon_store): Likewise.
21001 (*movmisalign<mode>_neon_load): Likewise.
21002 (*movmisalign<mode>_neon_store): Likewise.
21003 (*movmisalign<mode>_neon_load): Likewise.
21005 2013-08-08 Jan Hubicka <jh@suse.cz>
21007 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21008 (make_pass_rebuild_cgraph_edges): Also clear references.
21009 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21010 * ipa-inline-transform.c (inline_transform): Remove all references
21012 * cgraphunit.c (expand_function): Remove all references after
21014 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21015 (ipa_find_reference): Rewrite to iterator.
21016 (remove_stmt_references): Likewise.
21017 (ipa_clear_stmts_in_references): New function.
21018 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21019 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21021 * ipa-split.c (split_function): Remove references in split function.
21023 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21026 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21027 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21029 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21032 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21033 suggested mode for the assignment isn't compatible with the
21034 registers required.
21036 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21039 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21041 2013-08-07 Xinliang David Li <davidxl@google.com>
21043 * config/i386/i386.opt: New option -mtune-ctrl=.
21044 * config/i386/x86-tune.def: New file.
21045 * config/i386/i386.h: include x86-tune.def.
21046 * config/i386/i386.c (ix86_option_override_internal):
21047 Parsing -mtune-ctrl= option and set tune features.
21049 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21052 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21053 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21056 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21058 * rtl.h (update_alignments): Declare.
21059 * final.c (grow_label_align): New function extracted from...
21060 (shorten_branches): ...here. Call it.
21061 (update_alignments): New function.
21062 * reorg.c (sibling_labels): New variable.
21063 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21064 the new label along with it onto the sibling_labels vector.
21065 (fill_simple_delay_slots): Adjust call to get_label_before.
21066 (fill_slots_from_thread): Likewise.
21067 (relax_delay_slots): Likewise.
21068 (make_return_insns): Likewise.
21069 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21071 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21073 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21074 document its semantics.
21075 (diagnostic_report_diagnostic): Adjust accordingly.
21077 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21079 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21080 (sparc_option_override): ...and port to new C++ pass API.
21081 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21083 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21085 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21087 2013-08-06 Caroline Tice <cmtice@google.com>
21089 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21090 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21091 * tree-pass.h: Add pass_vtable_verify.
21092 * varasm.c (assemble_variable): Add code to properly set the comdat
21093 section and name for the .vtable_map_vars section.
21094 (assemble_vtyv_preinit_initializer): New function.
21095 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21097 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21098 * vtable-verify.c: New file.
21099 * vtable-verify.h: New file.
21100 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21101 initialiation levels.
21102 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21103 * passes.def: Insert pass_vtable_verify.
21104 * aclocal.m4: Reorder includes.
21105 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21106 -fvtv-counts options.
21107 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21108 as appropriate, if -fvtable-verify=... is used.
21109 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21110 -fvtable-verify=... is used.
21111 * Makefile.in (OBJS): Add vtable-verify.o to list.
21112 (vtable-verify.o): Add new build rule.
21113 (GTFILES): Add vtable-verify.c to list.
21114 * common.opt (fvtable-verify=): New flag.
21115 (vtv_priority): Values for fvtable-verify= flag.
21116 (fvtv-counts): New flag.
21117 (fvtv-debug): New flag.
21118 * tree.h (save_vtable_map_decl): New extern function decl.
21120 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21122 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21123 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21124 (pass_data_rl78_devirt): ...new pass_data instance and...
21125 (make_pass_rl78_devirt): ...new function.
21126 (rl78_asm_file_start): Port pass registration to new C++ API.
21128 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21130 * coretypes.h (rtl_opt_pass): Add.
21131 (gcc::context): Add.
21132 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21133 (epiphany_init): Port to new C++ pass API.
21134 (epiphany_optimize_mode_switching): Likewise.
21135 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21136 (pass_manager::get_pass_mode_switching): New.
21137 (pass_manager::get_pass_peephole2): New.
21138 * mode-switching.c (pass_mode_switching): Add clone method.
21139 * recog.c (pass_peephole2): Add clone method.
21140 (pass_split_all_insns): Add clone method.
21142 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21144 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21145 (mips_option_override): ...here, porting to new C++ API for passes.
21147 2013-08-06 Jan Hubicka <jh@suse.cz>
21149 * cgraph.c (cgraph_get_body): New function based on lto.c
21151 * cgraph.h (cgraph_get_body): Declare.
21152 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21154 * cgraphunit.c (expand_function): Get body prior expanding.
21155 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21156 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21158 * passes.c (do_per_function_toporder): Get body.
21159 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21160 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21162 2013-08-06 Martin Jambor <mjambor@suse.cz>
21165 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21166 is not re-finalized. Rename second parameter to no_collect.
21168 2013-08-06 Martin Jambor <mjambor@suse.cz>
21170 PR middle-end/58041
21171 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21172 MEM_REF has proper alignment information.
21174 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21177 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21179 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21180 rtx (*) (rtx, ...) with insn_gen_fn.
21181 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21182 insn_gen_fn::stored_funcptr. Add initializer braces.
21184 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21186 Rewrite how instances of passes are cloned to remove assumptions
21187 about their sizes (thus allowing pass subclasses to have
21188 additional data fields, albeit non-GC-managed ones at this point).
21190 * passes.c (make_pass_instance): Now that passes have clone
21191 methods, rewrite this function to eliminate XNEW and memcpy
21192 calls that used hardcoded sizes. Since this function no longer
21193 creates pass instances, rename it to...
21194 (add_pass_instance): ...this. Document the old way that passes were
21195 numbered and flagged, and rework this function to continue using it.
21196 (next_pass_1): Add an initial_pass argument for use by
21198 (position_pass): When adding multiple instances of a pass, use
21199 the pass's clone method, rather than relying on the XNEW/memcpy
21200 within the former make_pass_instance (now add_pass_instance).
21201 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21202 the initial instance of the current pass within the pass manager.
21204 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21206 This is the automated part of the conversion of passes from C
21207 structs to C++ classes.
21209 Patch autogenerated by refactor_passes.py from
21210 https://github.com/davidmalcolm/gcc-refactoring-scripts
21211 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21213 * asan.c (pass_asan): Convert from a global struct to a subclass of
21214 gimple_opt_pass along with...
21215 (pass_data_asan): ...new pass_data instance and...
21216 (make_pass_asan): ...new function.
21217 (pass_asan_O0): Convert from a global struct to a subclass of
21218 gimple_opt_pass along with...
21219 (pass_data_asan_O0): ...new pass_data instance and...
21220 (make_pass_asan_O0): ...new function.
21221 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21222 subclass of rtl_opt_pass along with...
21223 (pass_data_inc_dec): ...new pass_data instance and...
21224 (make_pass_inc_dec): ...new function.
21225 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21226 a subclass of rtl_opt_pass along with...
21227 (pass_data_reorder_blocks): ...new pass_data instance and...
21228 (make_pass_reorder_blocks): ...new function.
21229 (pass_duplicate_computed_gotos): Convert from a global struct to a
21230 subclass of rtl_opt_pass along with...
21231 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21232 (make_pass_duplicate_computed_gotos): ...new function.
21233 (pass_partition_blocks): Convert from a global struct to a subclass of
21234 rtl_opt_pass along with...
21235 (pass_data_partition_blocks): ...new pass_data instance and...
21236 (make_pass_partition_blocks): ...new function.
21237 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21238 struct to a subclass of rtl_opt_pass along with...
21239 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21241 (make_pass_branch_target_load_optimize1): ...new function.
21242 (pass_branch_target_load_optimize2): Convert from a global struct to a
21243 subclass of rtl_opt_pass along with...
21244 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21246 (make_pass_branch_target_load_optimize2): ...new function.
21247 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21248 of rtl_opt_pass along with...
21249 (pass_data_jump): ...new pass_data instance and...
21250 (make_pass_jump): ...new function.
21251 (pass_jump2): Convert from a global struct to a subclass of
21252 rtl_opt_pass along with...
21253 (pass_data_jump2): ...new pass_data instance and...
21254 (make_pass_jump2): ...new function.
21255 * cfgexpand.c (pass_expand): Convert from a global struct to a
21256 subclass of rtl_opt_pass along with...
21257 (pass_data_expand): ...new pass_data instance and...
21258 (make_pass_expand): ...new function.
21259 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21260 of rtl_opt_pass along with...
21261 (pass_data_free_cfg): ...new pass_data instance and...
21262 (make_pass_free_cfg): ...new function.
21263 (pass_into_cfg_layout_mode): Convert from a global struct to a
21264 subclass of rtl_opt_pass along with...
21265 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21266 (make_pass_into_cfg_layout_mode): ...new function.
21267 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21268 subclass of rtl_opt_pass along with...
21269 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21270 (make_pass_outof_cfg_layout_mode): ...new function.
21271 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21272 struct to a subclass of gimple_opt_pass along with...
21273 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21274 (make_pass_build_cgraph_edges): ...new function.
21275 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21276 subclass of gimple_opt_pass along with...
21277 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21278 (make_pass_rebuild_cgraph_edges): ...new function.
21279 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21280 subclass of gimple_opt_pass along with...
21281 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21283 (make_pass_remove_cgraph_callee_edges): ...new function.
21284 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21285 struct to a subclass of rtl_opt_pass along with...
21286 (pass_data_stack_adjustments): ...new pass_data instance and...
21287 (make_pass_stack_adjustments): ...new function.
21288 * combine.c (pass_combine): Convert from a global struct to a subclass
21289 of rtl_opt_pass along with...
21290 (pass_data_combine): ...new pass_data instance and...
21291 (make_pass_combine): ...new function.
21292 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21293 global struct to a subclass of rtl_opt_pass along with...
21294 (pass_data_compare_elim_after_reload): ...new pass_data instance
21296 (make_pass_compare_elim_after_reload): ...new function.
21297 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21298 of rtl_opt_pass along with...
21299 (pass_data_rtl_cprop): ...new pass_data instance and...
21300 (make_pass_rtl_cprop): ...new function.
21301 * cse.c (pass_cse): Convert from a global struct to a subclass of
21302 rtl_opt_pass along with...
21303 (pass_data_cse): ...new pass_data instance and...
21304 (make_pass_cse): ...new function.
21305 (pass_cse2): Convert from a global struct to a subclass of
21306 rtl_opt_pass along with...
21307 (pass_data_cse2): ...new pass_data instance and...
21308 (make_pass_cse2): ...new function.
21309 (pass_cse_after_global_opts): Convert from a global struct to a
21310 subclass of rtl_opt_pass along with...
21311 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21312 (make_pass_cse_after_global_opts): ...new function.
21313 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21314 of rtl_opt_pass along with...
21315 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21316 (make_pass_ud_rtl_dce): ...new function.
21317 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21318 rtl_opt_pass along with...
21319 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21320 (make_pass_fast_rtl_dce): ...new function.
21321 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21322 a subclass of rtl_opt_pass along with...
21323 (pass_data_df_initialize_opt): ...new pass_data instance and...
21324 (make_pass_df_initialize_opt): ...new function.
21325 (pass_df_initialize_no_opt): Convert from a global struct to a
21326 subclass of rtl_opt_pass along with...
21327 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21328 (make_pass_df_initialize_no_opt): ...new function.
21329 (pass_df_finish): Convert from a global struct to a subclass of
21330 rtl_opt_pass along with...
21331 (pass_data_df_finish): ...new pass_data instance and...
21332 (make_pass_df_finish): ...new function.
21333 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21334 rtl_opt_pass along with...
21335 (pass_data_rtl_dse1): ...new pass_data instance and...
21336 (make_pass_rtl_dse1): ...new function.
21337 (pass_rtl_dse2): Convert from a global struct to a subclass of
21338 rtl_opt_pass along with...
21339 (pass_data_rtl_dse2): ...new pass_data instance and...
21340 (make_pass_rtl_dse2): ...new function.
21341 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21342 subclass of rtl_opt_pass along with...
21343 (pass_data_dwarf2_frame): ...new pass_data instance and...
21344 (make_pass_dwarf2_frame): ...new function.
21345 * except.c (pass_set_nothrow_function_flags): Convert from a global
21346 struct to a subclass of rtl_opt_pass along with...
21347 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21349 (make_pass_set_nothrow_function_flags): ...new function.
21350 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21351 subclass of rtl_opt_pass along with...
21352 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21354 (make_pass_convert_to_eh_region_ranges): ...new function.
21355 * final.c (pass_compute_alignments): Convert from a global struct to a
21356 subclass of rtl_opt_pass along with...
21357 (pass_data_compute_alignments): ...new pass_data instance and...
21358 (make_pass_compute_alignments): ...new function.
21359 (pass_final): Convert from a global struct to a subclass of
21360 rtl_opt_pass along with...
21361 (pass_data_final): ...new pass_data instance and...
21362 (make_pass_final): ...new function.
21363 (pass_shorten_branches): Convert from a global struct to a subclass of
21364 rtl_opt_pass along with...
21365 (pass_data_shorten_branches): ...new pass_data instance and...
21366 (make_pass_shorten_branches): ...new function.
21367 (pass_clean_state): Convert from a global struct to a subclass of
21368 rtl_opt_pass along with...
21369 (pass_data_clean_state): ...new pass_data instance and...
21370 (make_pass_clean_state): ...new function.
21371 * function.c (pass_instantiate_virtual_regs): Convert from a global
21372 struct to a subclass of rtl_opt_pass along with...
21373 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21374 (make_pass_instantiate_virtual_regs): ...new function.
21375 (pass_leaf_regs): Convert from a global struct to a subclass of
21376 rtl_opt_pass along with...
21377 (pass_data_leaf_regs): ...new pass_data instance and...
21378 (make_pass_leaf_regs): ...new function.
21379 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21380 subclass of rtl_opt_pass along with...
21381 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21383 (make_pass_thread_prologue_and_epilogue): ...new function.
21384 (pass_match_asm_constraints): Convert from a global struct to a
21385 subclass of rtl_opt_pass along with...
21386 (pass_data_match_asm_constraints): ...new pass_data instance and...
21387 (make_pass_match_asm_constraints): ...new function.
21388 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21389 subclass of rtl_opt_pass along with...
21390 (pass_data_rtl_fwprop): ...new pass_data instance and...
21391 (make_pass_rtl_fwprop): ...new function.
21392 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21393 rtl_opt_pass along with...
21394 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21395 (make_pass_rtl_fwprop_addr): ...new function.
21396 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21397 rtl_opt_pass along with...
21398 (pass_data_rtl_pre): ...new pass_data instance and...
21399 (make_pass_rtl_pre): ...new function.
21400 (pass_rtl_hoist): Convert from a global struct to a subclass of
21401 rtl_opt_pass along with...
21402 (pass_data_rtl_hoist): ...new pass_data instance and...
21403 (make_pass_rtl_hoist): ...new function.
21404 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21405 subclass of gimple_opt_pass along with...
21406 (pass_data_lower_cf): ...new pass_data instance and...
21407 (make_pass_lower_cf): ...new function.
21408 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21409 from a global struct to a subclass of gimple_opt_pass along with...
21410 (pass_data_strength_reduction): ...new pass_data instance and...
21411 (make_pass_strength_reduction): ...new function.
21412 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21413 of rtl_opt_pass along with...
21414 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21415 (make_pass_rtl_ifcvt): ...new function.
21416 (pass_if_after_combine): Convert from a global struct to a subclass of
21417 rtl_opt_pass along with...
21418 (pass_data_if_after_combine): ...new pass_data instance and...
21419 (make_pass_if_after_combine): ...new function.
21420 (pass_if_after_reload): Convert from a global struct to a subclass of
21421 rtl_opt_pass along with...
21422 (pass_data_if_after_reload): ...new pass_data instance and...
21423 (make_pass_if_after_reload): ...new function.
21424 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21425 a subclass of rtl_opt_pass along with...
21426 (pass_data_initialize_regs): ...new pass_data instance and...
21427 (make_pass_initialize_regs): ...new function.
21428 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21429 of ipa_opt_pass_d along with...
21430 (pass_data_ipa_cp): ...new pass_data instance and...
21431 (make_pass_ipa_cp): ...new function.
21432 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21433 global struct to a subclass of gimple_opt_pass along with...
21434 (pass_data_inline_parameters): ...new pass_data instance and...
21435 (make_pass_inline_parameters): ...new function.
21436 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21437 subclass of gimple_opt_pass along with...
21438 (pass_data_early_inline): ...new pass_data instance and...
21439 (make_pass_early_inline): ...new function.
21440 (pass_ipa_inline): Convert from a global struct to a subclass of
21441 ipa_opt_pass_d along with...
21442 (pass_data_ipa_inline): ...new pass_data instance and...
21443 (make_pass_ipa_inline): ...new function.
21444 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21445 struct to a subclass of gimple_opt_pass along with...
21446 (pass_data_local_pure_const): ...new pass_data instance and...
21447 (make_pass_local_pure_const): ...new function.
21448 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21449 ipa_opt_pass_d along with...
21450 (pass_data_ipa_pure_const): ...new pass_data instance and...
21451 (make_pass_ipa_pure_const): ...new function.
21452 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21453 to a subclass of ipa_opt_pass_d along with...
21454 (pass_data_ipa_reference): ...new pass_data instance and...
21455 (make_pass_ipa_reference): ...new function.
21456 * ipa-split.c (pass_split_functions): Convert from a global struct to
21457 a subclass of gimple_opt_pass along with...
21458 (pass_data_split_functions): ...new pass_data instance and...
21459 (make_pass_split_functions): ...new function.
21460 (pass_feedback_split_functions): Convert from a global struct to a
21461 subclass of gimple_opt_pass along with...
21462 (pass_data_feedback_split_functions): ...new pass_data instance and...
21463 (make_pass_feedback_split_functions): ...new function.
21464 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21465 global struct to a subclass of simple_ipa_opt_pass along with...
21466 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21468 (make_pass_ipa_function_and_variable_visibility): ...new function.
21469 (pass_ipa_free_inline_summary): Convert from a global struct to a
21470 subclass of simple_ipa_opt_pass along with...
21471 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21472 (make_pass_ipa_free_inline_summary): ...new function.
21473 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21474 subclass of ipa_opt_pass_d along with...
21475 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21477 (make_pass_ipa_whole_program_visibility): ...new function.
21478 (pass_ipa_profile): Convert from a global struct to a subclass of
21479 ipa_opt_pass_d along with...
21480 (pass_data_ipa_profile): ...new pass_data instance and...
21481 (make_pass_ipa_profile): ...new function.
21482 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21483 ipa_opt_pass_d along with...
21484 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21485 (make_pass_ipa_cdtor_merge): ...new function.
21486 * ira.c (pass_ira): Convert from a global struct to a subclass of
21487 rtl_opt_pass along with...
21488 (pass_data_ira): ...new pass_data instance and...
21489 (make_pass_ira): ...new function.
21490 (pass_reload): Convert from a global struct to a subclass of
21491 rtl_opt_pass along with...
21492 (pass_data_reload): ...new pass_data instance and...
21493 (make_pass_reload): ...new function.
21494 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21495 subclass of rtl_opt_pass along with...
21496 (pass_data_cleanup_barriers): ...new pass_data instance and...
21497 (make_pass_cleanup_barriers): ...new function.
21498 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21499 of rtl_opt_pass along with...
21500 (pass_data_loop2): ...new pass_data instance and...
21501 (make_pass_loop2): ...new function.
21502 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21503 rtl_opt_pass along with...
21504 (pass_data_rtl_loop_init): ...new pass_data instance and...
21505 (make_pass_rtl_loop_init): ...new function.
21506 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21507 rtl_opt_pass along with...
21508 (pass_data_rtl_loop_done): ...new pass_data instance and...
21509 (make_pass_rtl_loop_done): ...new function.
21510 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21511 subclass of rtl_opt_pass along with...
21512 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21513 (make_pass_rtl_move_loop_invariants): ...new function.
21514 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21515 rtl_opt_pass along with...
21516 (pass_data_rtl_unswitch): ...new pass_data instance and...
21517 (make_pass_rtl_unswitch): ...new function.
21518 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21519 subclass of rtl_opt_pass along with...
21520 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21522 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21523 (pass_rtl_doloop): Convert from a global struct to a subclass of
21524 rtl_opt_pass along with...
21525 (pass_data_rtl_doloop): ...new pass_data instance and...
21526 (make_pass_rtl_doloop): ...new function.
21527 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21528 a subclass of rtl_opt_pass along with...
21529 (pass_data_lower_subreg): ...new pass_data instance and...
21530 (make_pass_lower_subreg): ...new function.
21531 (pass_lower_subreg2): Convert from a global struct to a subclass of
21532 rtl_opt_pass along with...
21533 (pass_data_lower_subreg2): ...new pass_data instance and...
21534 (make_pass_lower_subreg2): ...new function.
21535 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21536 struct to a subclass of ipa_opt_pass_d along with...
21537 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21538 (make_pass_ipa_lto_gimple_out): ...new function.
21539 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21540 of ipa_opt_pass_d along with...
21541 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21542 (make_pass_ipa_lto_finish_out): ...new function.
21543 * mode-switching.c (pass_mode_switching): Convert from a global struct
21544 to a subclass of rtl_opt_pass along with...
21545 (pass_data_mode_switching): ...new pass_data instance and...
21546 (make_pass_mode_switching): ...new function.
21547 * modulo-sched.c (pass_sms): Convert from a global struct to a
21548 subclass of rtl_opt_pass along with...
21549 (pass_data_sms): ...new pass_data instance and...
21550 (make_pass_sms): ...new function.
21551 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21552 subclass of gimple_opt_pass along with...
21553 (pass_data_expand_omp): ...new pass_data instance and...
21554 (make_pass_expand_omp): ...new function.
21555 (pass_lower_omp): Convert from a global struct to a subclass of
21556 gimple_opt_pass along with...
21557 (pass_data_lower_omp): ...new pass_data instance and...
21558 (make_pass_lower_omp): ...new function.
21559 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21560 of gimple_opt_pass along with...
21561 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21562 (make_pass_diagnose_omp_blocks): ...new function.
21563 * passes.c (pass_early_local_passes): Convert from a global struct to
21564 a subclass of simple_ipa_opt_pass along with...
21565 (pass_data_early_local_passes): ...new pass_data instance and...
21566 (make_pass_early_local_passes): ...new function.
21567 (pass_all_early_optimizations): Convert from a global struct to a
21568 subclass of gimple_opt_pass along with...
21569 (pass_data_all_early_optimizations): ...new pass_data instance and...
21570 (make_pass_all_early_optimizations): ...new function.
21571 (pass_all_optimizations): Convert from a global struct to a subclass
21572 of gimple_opt_pass along with...
21573 (pass_data_all_optimizations): ...new pass_data instance and...
21574 (make_pass_all_optimizations): ...new function.
21575 (pass_all_optimizations_g): Convert from a global struct to a subclass
21576 of gimple_opt_pass along with...
21577 (pass_data_all_optimizations_g): ...new pass_data instance and...
21578 (make_pass_all_optimizations_g): ...new function.
21579 (pass_rest_of_compilation): Convert from a global struct to a subclass
21580 of rtl_opt_pass along with...
21581 (pass_data_rest_of_compilation): ...new pass_data instance and...
21582 (make_pass_rest_of_compilation): ...new function.
21583 (pass_postreload): Convert from a global struct to a subclass of
21584 rtl_opt_pass along with...
21585 (pass_data_postreload): ...new pass_data instance and...
21586 (make_pass_postreload): ...new function.
21587 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21588 subclass of rtl_opt_pass along with...
21589 (pass_data_gcse2): ...new pass_data instance and...
21590 (make_pass_gcse2): ...new function.
21591 * postreload.c (pass_postreload_cse): Convert from a global struct to
21592 a subclass of rtl_opt_pass along with...
21593 (pass_data_postreload_cse): ...new pass_data instance and...
21594 (make_pass_postreload_cse): ...new function.
21595 * predict.c (pass_profile): Convert from a global struct to a subclass
21596 of gimple_opt_pass along with...
21597 (pass_data_profile): ...new pass_data instance and...
21598 (make_pass_profile): ...new function.
21599 (pass_strip_predict_hints): Convert from a global struct to a subclass
21600 of gimple_opt_pass along with...
21601 (pass_data_strip_predict_hints): ...new pass_data instance and...
21602 (make_pass_strip_predict_hints): ...new function.
21603 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21604 of rtl_opt_pass along with...
21605 (pass_data_peephole2): ...new pass_data instance and...
21606 (make_pass_peephole2): ...new function.
21607 (pass_split_all_insns): Convert from a global struct to a subclass of
21608 rtl_opt_pass along with...
21609 (pass_data_split_all_insns): ...new pass_data instance and...
21610 (make_pass_split_all_insns): ...new function.
21611 (pass_split_after_reload): Convert from a global struct to a subclass
21612 of rtl_opt_pass along with...
21613 (pass_data_split_after_reload): ...new pass_data instance and...
21614 (make_pass_split_after_reload): ...new function.
21615 (pass_split_before_regstack): Convert from a global struct to a
21616 subclass of rtl_opt_pass along with...
21617 (pass_data_split_before_regstack): ...new pass_data instance and...
21618 (make_pass_split_before_regstack): ...new function.
21619 (pass_split_before_sched2): Convert from a global struct to a subclass
21620 of rtl_opt_pass along with...
21621 (pass_data_split_before_sched2): ...new pass_data instance and...
21622 (make_pass_split_before_sched2): ...new function.
21623 (pass_split_for_shorten_branches): Convert from a global struct to a
21624 subclass of rtl_opt_pass along with...
21625 (pass_data_split_for_shorten_branches): ...new pass_data instance
21627 (make_pass_split_for_shorten_branches): ...new function.
21628 * ree.c (pass_ree): Convert from a global struct to a subclass of
21629 rtl_opt_pass along with...
21630 (pass_data_ree): ...new pass_data instance and...
21631 (make_pass_ree): ...new function.
21632 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21633 subclass of rtl_opt_pass along with...
21634 (pass_data_stack_regs): ...new pass_data instance and...
21635 (make_pass_stack_regs): ...new function.
21636 (pass_stack_regs_run): Convert from a global struct to a subclass of
21637 rtl_opt_pass along with...
21638 (pass_data_stack_regs_run): ...new pass_data instance and...
21639 (make_pass_stack_regs_run): ...new function.
21640 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21641 subclass of rtl_opt_pass along with...
21642 (pass_data_cprop_hardreg): ...new pass_data instance and...
21643 (make_pass_cprop_hardreg): ...new function.
21644 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21645 subclass of rtl_opt_pass along with...
21646 (pass_data_reginfo_init): ...new pass_data instance and...
21647 (make_pass_reginfo_init): ...new function.
21648 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21649 of rtl_opt_pass along with...
21650 (pass_data_regmove): ...new pass_data instance and...
21651 (make_pass_regmove): ...new function.
21652 * regrename.c (pass_regrename): Convert from a global struct to a
21653 subclass of rtl_opt_pass along with...
21654 (pass_data_regrename): ...new pass_data instance and...
21655 (make_pass_regrename): ...new function.
21656 * reorg.c (pass_delay_slots): Convert from a global struct to a
21657 subclass of rtl_opt_pass along with...
21658 (pass_data_delay_slots): ...new pass_data instance and...
21659 (make_pass_delay_slots): ...new function.
21660 (pass_machine_reorg): Convert from a global struct to a subclass of
21661 rtl_opt_pass along with...
21662 (pass_data_machine_reorg): ...new pass_data instance and...
21663 (make_pass_machine_reorg): ...new function.
21664 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21665 of rtl_opt_pass along with...
21666 (pass_data_sched): ...new pass_data instance and...
21667 (make_pass_sched): ...new function.
21668 (pass_sched2): Convert from a global struct to a subclass of
21669 rtl_opt_pass along with...
21670 (pass_data_sched2): ...new pass_data instance and...
21671 (make_pass_sched2): ...new function.
21672 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21673 to a subclass of rtl_opt_pass along with...
21674 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21675 (make_pass_stack_ptr_mod): ...new function.
21676 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21677 to a subclass of rtl_opt_pass along with...
21678 (pass_data_rtl_store_motion): ...new pass_data instance and...
21679 (make_pass_rtl_store_motion): ...new function.
21680 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21681 of gimple_opt_pass along with...
21682 (pass_data_tracer): ...new pass_data instance and...
21683 (make_pass_tracer): ...new function.
21684 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21685 to a subclass of gimple_opt_pass along with...
21686 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21687 (make_pass_diagnose_tm_blocks): ...new function.
21688 (pass_lower_tm): Convert from a global struct to a subclass of
21689 gimple_opt_pass along with...
21690 (pass_data_lower_tm): ...new pass_data instance and...
21691 (make_pass_lower_tm): ...new function.
21692 (pass_tm_init): Convert from a global struct to a subclass of
21693 gimple_opt_pass along with...
21694 (pass_data_tm_init): ...new pass_data instance and...
21695 (make_pass_tm_init): ...new function.
21696 (pass_tm_mark): Convert from a global struct to a subclass of
21697 gimple_opt_pass along with...
21698 (pass_data_tm_mark): ...new pass_data instance and...
21699 (make_pass_tm_mark): ...new function.
21700 (pass_tm_edges): Convert from a global struct to a subclass of
21701 gimple_opt_pass along with...
21702 (pass_data_tm_edges): ...new pass_data instance and...
21703 (make_pass_tm_edges): ...new function.
21704 (pass_tm_memopt): Convert from a global struct to a subclass of
21705 gimple_opt_pass along with...
21706 (pass_data_tm_memopt): ...new pass_data instance and...
21707 (make_pass_tm_memopt): ...new function.
21708 (pass_ipa_tm): Convert from a global struct to a subclass of
21709 simple_ipa_opt_pass along with...
21710 (pass_data_ipa_tm): ...new pass_data instance and...
21711 (make_pass_ipa_tm): ...new function.
21712 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21713 subclass of gimple_opt_pass along with...
21714 (pass_data_call_cdce): ...new pass_data instance and...
21715 (make_pass_call_cdce): ...new function.
21716 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21717 subclass of gimple_opt_pass along with...
21718 (pass_data_build_cfg): ...new pass_data instance and...
21719 (make_pass_build_cfg): ...new function.
21720 (pass_split_crit_edges): Convert from a global struct to a subclass of
21721 gimple_opt_pass along with...
21722 (pass_data_split_crit_edges): ...new pass_data instance and...
21723 (make_pass_split_crit_edges): ...new function.
21724 (pass_warn_function_return): Convert from a global struct to a
21725 subclass of gimple_opt_pass along with...
21726 (pass_data_warn_function_return): ...new pass_data instance and...
21727 (make_pass_warn_function_return): ...new function.
21728 (pass_warn_function_noreturn): Convert from a global struct to a
21729 subclass of gimple_opt_pass along with...
21730 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21731 (make_pass_warn_function_noreturn): ...new function.
21732 (pass_warn_unused_result): Convert from a global struct to a subclass
21733 of gimple_opt_pass along with...
21734 (pass_data_warn_unused_result): ...new pass_data instance and...
21735 (make_pass_warn_unused_result): ...new function.
21736 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21737 a subclass of gimple_opt_pass along with...
21738 (pass_data_merge_phi): ...new pass_data instance and...
21739 (make_pass_merge_phi): ...new function.
21740 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21741 a subclass of gimple_opt_pass along with...
21742 (pass_data_lower_complex): ...new pass_data instance and...
21743 (make_pass_lower_complex): ...new function.
21744 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21745 gimple_opt_pass along with...
21746 (pass_data_lower_complex_O0): ...new pass_data instance and...
21747 (make_pass_lower_complex_O0): ...new function.
21748 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21749 subclass of gimple_opt_pass along with...
21750 (pass_data_lower_eh): ...new pass_data instance and...
21751 (make_pass_lower_eh): ...new function.
21752 (pass_refactor_eh): Convert from a global struct to a subclass of
21753 gimple_opt_pass along with...
21754 (pass_data_refactor_eh): ...new pass_data instance and...
21755 (make_pass_refactor_eh): ...new function.
21756 (pass_lower_resx): Convert from a global struct to a subclass of
21757 gimple_opt_pass along with...
21758 (pass_data_lower_resx): ...new pass_data instance and...
21759 (make_pass_lower_resx): ...new function.
21760 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21761 of gimple_opt_pass along with...
21762 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21763 (make_pass_lower_eh_dispatch): ...new function.
21764 (pass_cleanup_eh): Convert from a global struct to a subclass of
21765 gimple_opt_pass along with...
21766 (pass_data_cleanup_eh): ...new pass_data instance and...
21767 (make_pass_cleanup_eh): ...new function.
21768 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21769 to a subclass of simple_ipa_opt_pass along with...
21770 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21771 (make_pass_ipa_lower_emutls): ...new function.
21772 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21773 a subclass of gimple_opt_pass along with...
21774 (pass_data_if_conversion): ...new pass_data instance and...
21775 (make_pass_if_conversion): ...new function.
21776 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21777 subclass of gimple_opt_pass along with...
21778 (pass_data_build_ssa): ...new pass_data instance and...
21779 (make_pass_build_ssa): ...new function.
21780 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21781 global struct to a subclass of gimple_opt_pass along with...
21782 (pass_data_loop_distribution): ...new pass_data instance and...
21783 (make_pass_loop_distribution): ...new function.
21784 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21785 subclass of gimple_opt_pass along with...
21786 (pass_data_mudflap_1): ...new pass_data instance and...
21787 (make_pass_mudflap_1): ...new function.
21788 (pass_mudflap_2): Convert from a global struct to a subclass of
21789 gimple_opt_pass along with...
21790 (pass_data_mudflap_2): ...new pass_data instance and...
21791 (make_pass_mudflap_2): ...new function.
21792 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21793 subclass of gimple_opt_pass along with...
21794 (pass_data_mudflap_1): ...new pass_data instance and...
21795 (make_pass_mudflap_1): ...new function.
21796 (pass_mudflap_2): Convert from a global struct to a subclass of
21797 gimple_opt_pass along with...
21798 (pass_data_mudflap_2): ...new pass_data instance and...
21799 (make_pass_mudflap_2): ...new function.
21800 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21801 gimple_opt_pass along with...
21802 (pass_data_nrv): ...new pass_data instance and...
21803 (make_pass_nrv): ...new function.
21804 (pass_return_slot): Convert from a global struct to a subclass of
21805 gimple_opt_pass along with...
21806 (pass_data_return_slot): ...new pass_data instance and...
21807 (make_pass_return_slot): ...new function.
21808 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21809 to a subclass of gimple_opt_pass along with...
21810 (pass_data_object_sizes): ...new pass_data instance and...
21811 (make_pass_object_sizes): ...new function.
21812 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21813 global struct to a subclass of gimple_opt_pass along with...
21814 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21816 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21817 (pass_fixup_cfg): Convert from a global struct to a subclass of
21818 gimple_opt_pass along with...
21819 (pass_data_fixup_cfg): ...new pass_data instance and...
21820 (make_pass_fixup_cfg): ...new function.
21821 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21822 (make_pass_mudflap_1): ...new function.
21823 (pass_mudflap_2): Replace declaration with that of...
21824 (make_pass_mudflap_2): ...new function.
21825 (pass_asan): Replace declaration with that of...
21826 (make_pass_asan): ...new function.
21827 (pass_asan_O0): Replace declaration with that of...
21828 (make_pass_asan_O0): ...new function.
21829 (pass_tsan): Replace declaration with that of...
21830 (make_pass_tsan): ...new function.
21831 (pass_tsan_O0): Replace declaration with that of...
21832 (make_pass_tsan_O0): ...new function.
21833 (pass_lower_cf): Replace declaration with that of...
21834 (make_pass_lower_cf): ...new function.
21835 (pass_refactor_eh): Replace declaration with that of...
21836 (make_pass_refactor_eh): ...new function.
21837 (pass_lower_eh): Replace declaration with that of...
21838 (make_pass_lower_eh): ...new function.
21839 (pass_lower_eh_dispatch): Replace declaration with that of...
21840 (make_pass_lower_eh_dispatch): ...new function.
21841 (pass_lower_resx): Replace declaration with that of...
21842 (make_pass_lower_resx): ...new function.
21843 (pass_build_cfg): Replace declaration with that of...
21844 (make_pass_build_cfg): ...new function.
21845 (pass_early_tree_profile): Replace declaration with that of...
21846 (make_pass_early_tree_profile): ...new function.
21847 (pass_cleanup_eh): Replace declaration with that of...
21848 (make_pass_cleanup_eh): ...new function.
21849 (pass_sra): Replace declaration with that of...
21850 (make_pass_sra): ...new function.
21851 (pass_sra_early): Replace declaration with that of...
21852 (make_pass_sra_early): ...new function.
21853 (pass_early_ipa_sra): Replace declaration with that of...
21854 (make_pass_early_ipa_sra): ...new function.
21855 (pass_tail_recursion): Replace declaration with that of...
21856 (make_pass_tail_recursion): ...new function.
21857 (pass_tail_calls): Replace declaration with that of...
21858 (make_pass_tail_calls): ...new function.
21859 (pass_tree_loop): Replace declaration with that of...
21860 (make_pass_tree_loop): ...new function.
21861 (pass_tree_loop_init): Replace declaration with that of...
21862 (make_pass_tree_loop_init): ...new function.
21863 (pass_lim): Replace declaration with that of...
21864 (make_pass_lim): ...new function.
21865 (pass_tree_unswitch): Replace declaration with that of...
21866 (make_pass_tree_unswitch): ...new function.
21867 (pass_predcom): Replace declaration with that of...
21868 (make_pass_predcom): ...new function.
21869 (pass_iv_canon): Replace declaration with that of...
21870 (make_pass_iv_canon): ...new function.
21871 (pass_scev_cprop): Replace declaration with that of...
21872 (make_pass_scev_cprop): ...new function.
21873 (pass_empty_loop): Replace declaration with that of...
21874 (make_pass_empty_loop): ...new function.
21875 (pass_record_bounds): Replace declaration with that of...
21876 (make_pass_record_bounds): ...new function.
21877 (pass_graphite): Replace declaration with that of...
21878 (make_pass_graphite): ...new function.
21879 (pass_graphite_transforms): Replace declaration with that of...
21880 (make_pass_graphite_transforms): ...new function.
21881 (pass_if_conversion): Replace declaration with that of...
21882 (make_pass_if_conversion): ...new function.
21883 (pass_loop_distribution): Replace declaration with that of...
21884 (make_pass_loop_distribution): ...new function.
21885 (pass_vectorize): Replace declaration with that of...
21886 (make_pass_vectorize): ...new function.
21887 (pass_slp_vectorize): Replace declaration with that of...
21888 (make_pass_slp_vectorize): ...new function.
21889 (pass_complete_unroll): Replace declaration with that of...
21890 (make_pass_complete_unroll): ...new function.
21891 (pass_complete_unrolli): Replace declaration with that of...
21892 (make_pass_complete_unrolli): ...new function.
21893 (pass_parallelize_loops): Replace declaration with that of...
21894 (make_pass_parallelize_loops): ...new function.
21895 (pass_loop_prefetch): Replace declaration with that of...
21896 (make_pass_loop_prefetch): ...new function.
21897 (pass_iv_optimize): Replace declaration with that of...
21898 (make_pass_iv_optimize): ...new function.
21899 (pass_tree_loop_done): Replace declaration with that of...
21900 (make_pass_tree_loop_done): ...new function.
21901 (pass_ch): Replace declaration with that of...
21902 (make_pass_ch): ...new function.
21903 (pass_ccp): Replace declaration with that of...
21904 (make_pass_ccp): ...new function.
21905 (pass_phi_only_cprop): Replace declaration with that of...
21906 (make_pass_phi_only_cprop): ...new function.
21907 (pass_build_ssa): Replace declaration with that of...
21908 (make_pass_build_ssa): ...new function.
21909 (pass_build_alias): Replace declaration with that of...
21910 (make_pass_build_alias): ...new function.
21911 (pass_build_ealias): Replace declaration with that of...
21912 (make_pass_build_ealias): ...new function.
21913 (pass_dominator): Replace declaration with that of...
21914 (make_pass_dominator): ...new function.
21915 (pass_dce): Replace declaration with that of...
21916 (make_pass_dce): ...new function.
21917 (pass_dce_loop): Replace declaration with that of...
21918 (make_pass_dce_loop): ...new function.
21919 (pass_cd_dce): Replace declaration with that of...
21920 (make_pass_cd_dce): ...new function.
21921 (pass_call_cdce): Replace declaration with that of...
21922 (make_pass_call_cdce): ...new function.
21923 (pass_merge_phi): Replace declaration with that of...
21924 (make_pass_merge_phi): ...new function.
21925 (pass_split_crit_edges): Replace declaration with that of...
21926 (make_pass_split_crit_edges): ...new function.
21927 (pass_pre): Replace declaration with that of...
21928 (make_pass_pre): ...new function.
21929 (pass_profile): Replace declaration with that of...
21930 (make_pass_profile): ...new function.
21931 (pass_strip_predict_hints): Replace declaration with that of...
21932 (make_pass_strip_predict_hints): ...new function.
21933 (pass_lower_complex_O0): Replace declaration with that of...
21934 (make_pass_lower_complex_O0): ...new function.
21935 (pass_lower_complex): Replace declaration with that of...
21936 (make_pass_lower_complex): ...new function.
21937 (pass_lower_vector): Replace declaration with that of...
21938 (make_pass_lower_vector): ...new function.
21939 (pass_lower_vector_ssa): Replace declaration with that of...
21940 (make_pass_lower_vector_ssa): ...new function.
21941 (pass_lower_omp): Replace declaration with that of...
21942 (make_pass_lower_omp): ...new function.
21943 (pass_diagnose_omp_blocks): Replace declaration with that of...
21944 (make_pass_diagnose_omp_blocks): ...new function.
21945 (pass_expand_omp): Replace declaration with that of...
21946 (make_pass_expand_omp): ...new function.
21947 (pass_expand_omp_ssa): Replace declaration with that of...
21948 (make_pass_expand_omp_ssa): ...new function.
21949 (pass_object_sizes): Replace declaration with that of...
21950 (make_pass_object_sizes): ...new function.
21951 (pass_strlen): Replace declaration with that of...
21952 (make_pass_strlen): ...new function.
21953 (pass_fold_builtins): Replace declaration with that of...
21954 (make_pass_fold_builtins): ...new function.
21955 (pass_stdarg): Replace declaration with that of...
21956 (make_pass_stdarg): ...new function.
21957 (pass_early_warn_uninitialized): Replace declaration with that of...
21958 (make_pass_early_warn_uninitialized): ...new function.
21959 (pass_late_warn_uninitialized): Replace declaration with that of...
21960 (make_pass_late_warn_uninitialized): ...new function.
21961 (pass_cse_reciprocals): Replace declaration with that of...
21962 (make_pass_cse_reciprocals): ...new function.
21963 (pass_cse_sincos): Replace declaration with that of...
21964 (make_pass_cse_sincos): ...new function.
21965 (pass_optimize_bswap): Replace declaration with that of...
21966 (make_pass_optimize_bswap): ...new function.
21967 (pass_optimize_widening_mul): Replace declaration with that of...
21968 (make_pass_optimize_widening_mul): ...new function.
21969 (pass_warn_function_return): Replace declaration with that of...
21970 (make_pass_warn_function_return): ...new function.
21971 (pass_warn_function_noreturn): Replace declaration with that of...
21972 (make_pass_warn_function_noreturn): ...new function.
21973 (pass_cselim): Replace declaration with that of...
21974 (make_pass_cselim): ...new function.
21975 (pass_phiopt): Replace declaration with that of...
21976 (make_pass_phiopt): ...new function.
21977 (pass_forwprop): Replace declaration with that of...
21978 (make_pass_forwprop): ...new function.
21979 (pass_phiprop): Replace declaration with that of...
21980 (make_pass_phiprop): ...new function.
21981 (pass_tree_ifcombine): Replace declaration with that of...
21982 (make_pass_tree_ifcombine): ...new function.
21983 (pass_dse): Replace declaration with that of...
21984 (make_pass_dse): ...new function.
21985 (pass_nrv): Replace declaration with that of...
21986 (make_pass_nrv): ...new function.
21987 (pass_rename_ssa_copies): Replace declaration with that of...
21988 (make_pass_rename_ssa_copies): ...new function.
21989 (pass_sink_code): Replace declaration with that of...
21990 (make_pass_sink_code): ...new function.
21991 (pass_fre): Replace declaration with that of...
21992 (make_pass_fre): ...new function.
21993 (pass_check_data_deps): Replace declaration with that of...
21994 (make_pass_check_data_deps): ...new function.
21995 (pass_copy_prop): Replace declaration with that of...
21996 (make_pass_copy_prop): ...new function.
21997 (pass_vrp): Replace declaration with that of...
21998 (make_pass_vrp): ...new function.
21999 (pass_uncprop): Replace declaration with that of...
22000 (make_pass_uncprop): ...new function.
22001 (pass_return_slot): Replace declaration with that of...
22002 (make_pass_return_slot): ...new function.
22003 (pass_reassoc): Replace declaration with that of...
22004 (make_pass_reassoc): ...new function.
22005 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22006 (make_pass_rebuild_cgraph_edges): ...new function.
22007 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22008 (make_pass_remove_cgraph_callee_edges): ...new function.
22009 (pass_build_cgraph_edges): Replace declaration with that of...
22010 (make_pass_build_cgraph_edges): ...new function.
22011 (pass_local_pure_const): Replace declaration with that of...
22012 (make_pass_local_pure_const): ...new function.
22013 (pass_tracer): Replace declaration with that of...
22014 (make_pass_tracer): ...new function.
22015 (pass_warn_unused_result): Replace declaration with that of...
22016 (make_pass_warn_unused_result): ...new function.
22017 (pass_diagnose_tm_blocks): Replace declaration with that of...
22018 (make_pass_diagnose_tm_blocks): ...new function.
22019 (pass_lower_tm): Replace declaration with that of...
22020 (make_pass_lower_tm): ...new function.
22021 (pass_tm_init): Replace declaration with that of...
22022 (make_pass_tm_init): ...new function.
22023 (pass_tm_mark): Replace declaration with that of...
22024 (make_pass_tm_mark): ...new function.
22025 (pass_tm_memopt): Replace declaration with that of...
22026 (make_pass_tm_memopt): ...new function.
22027 (pass_tm_edges): Replace declaration with that of...
22028 (make_pass_tm_edges): ...new function.
22029 (pass_split_functions): Replace declaration with that of...
22030 (make_pass_split_functions): ...new function.
22031 (pass_feedback_split_functions): Replace declaration with that of...
22032 (make_pass_feedback_split_functions): ...new function.
22033 (pass_strength_reduction): Replace declaration with that of...
22034 (make_pass_strength_reduction): ...new function.
22035 (pass_ipa_lower_emutls): Replace declaration with that of...
22036 (make_pass_ipa_lower_emutls): ...new function.
22037 (pass_ipa_function_and_variable_visibility): Replace declaration with
22039 (make_pass_ipa_function_and_variable_visibility): ...new function.
22040 (pass_ipa_tree_profile): Replace declaration with that of...
22041 (make_pass_ipa_tree_profile): ...new function.
22042 (pass_early_local_passes): Replace declaration with that of...
22043 (make_pass_early_local_passes): ...new function.
22044 (pass_ipa_whole_program_visibility): Replace declaration with that
22046 (make_pass_ipa_whole_program_visibility): ...new function.
22047 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22048 (make_pass_ipa_lto_gimple_out): ...new function.
22049 (pass_ipa_increase_alignment): Replace declaration with that of...
22050 (make_pass_ipa_increase_alignment): ...new function.
22051 (pass_ipa_inline): Replace declaration with that of...
22052 (make_pass_ipa_inline): ...new function.
22053 (pass_ipa_free_lang_data): Replace declaration with that of...
22054 (make_pass_ipa_free_lang_data): ...new function.
22055 (pass_ipa_free_inline_summary): Replace declaration with that of...
22056 (make_pass_ipa_free_inline_summary): ...new function.
22057 (pass_ipa_cp): Replace declaration with that of...
22058 (make_pass_ipa_cp): ...new function.
22059 (pass_ipa_reference): Replace declaration with that of...
22060 (make_pass_ipa_reference): ...new function.
22061 (pass_ipa_pure_const): Replace declaration with that of...
22062 (make_pass_ipa_pure_const): ...new function.
22063 (pass_ipa_pta): Replace declaration with that of...
22064 (make_pass_ipa_pta): ...new function.
22065 (pass_ipa_lto_finish_out): Replace declaration with that of...
22066 (make_pass_ipa_lto_finish_out): ...new function.
22067 (pass_ipa_tm): Replace declaration with that of...
22068 (make_pass_ipa_tm): ...new function.
22069 (pass_ipa_profile): Replace declaration with that of...
22070 (make_pass_ipa_profile): ...new function.
22071 (pass_ipa_cdtor_merge): Replace declaration with that of...
22072 (make_pass_ipa_cdtor_merge): ...new function.
22073 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22075 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22076 (pass_init_datastructures): Replace declaration with that of...
22077 (make_pass_init_datastructures): ...new function.
22078 (pass_fixup_cfg): Replace declaration with that of...
22079 (make_pass_fixup_cfg): ...new function.
22080 (pass_expand): Replace declaration with that of...
22081 (make_pass_expand): ...new function.
22082 (pass_instantiate_virtual_regs): Replace declaration with that of...
22083 (make_pass_instantiate_virtual_regs): ...new function.
22084 (pass_rtl_fwprop): Replace declaration with that of...
22085 (make_pass_rtl_fwprop): ...new function.
22086 (pass_rtl_fwprop_addr): Replace declaration with that of...
22087 (make_pass_rtl_fwprop_addr): ...new function.
22088 (pass_jump): Replace declaration with that of...
22089 (make_pass_jump): ...new function.
22090 (pass_jump2): Replace declaration with that of...
22091 (make_pass_jump2): ...new function.
22092 (pass_lower_subreg): Replace declaration with that of...
22093 (make_pass_lower_subreg): ...new function.
22094 (pass_cse): Replace declaration with that of...
22095 (make_pass_cse): ...new function.
22096 (pass_fast_rtl_dce): Replace declaration with that of...
22097 (make_pass_fast_rtl_dce): ...new function.
22098 (pass_ud_rtl_dce): Replace declaration with that of...
22099 (make_pass_ud_rtl_dce): ...new function.
22100 (pass_rtl_dce): Replace declaration with that of...
22101 (make_pass_rtl_dce): ...new function.
22102 (pass_rtl_dse1): Replace declaration with that of...
22103 (make_pass_rtl_dse1): ...new function.
22104 (pass_rtl_dse2): Replace declaration with that of...
22105 (make_pass_rtl_dse2): ...new function.
22106 (pass_rtl_dse3): Replace declaration with that of...
22107 (make_pass_rtl_dse3): ...new function.
22108 (pass_rtl_cprop): Replace declaration with that of...
22109 (make_pass_rtl_cprop): ...new function.
22110 (pass_rtl_pre): Replace declaration with that of...
22111 (make_pass_rtl_pre): ...new function.
22112 (pass_rtl_hoist): Replace declaration with that of...
22113 (make_pass_rtl_hoist): ...new function.
22114 (pass_rtl_store_motion): Replace declaration with that of...
22115 (make_pass_rtl_store_motion): ...new function.
22116 (pass_cse_after_global_opts): Replace declaration with that of...
22117 (make_pass_cse_after_global_opts): ...new function.
22118 (pass_rtl_ifcvt): Replace declaration with that of...
22119 (make_pass_rtl_ifcvt): ...new function.
22120 (pass_into_cfg_layout_mode): Replace declaration with that of...
22121 (make_pass_into_cfg_layout_mode): ...new function.
22122 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22123 (make_pass_outof_cfg_layout_mode): ...new function.
22124 (pass_loop2): Replace declaration with that of...
22125 (make_pass_loop2): ...new function.
22126 (pass_rtl_loop_init): Replace declaration with that of...
22127 (make_pass_rtl_loop_init): ...new function.
22128 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22129 (make_pass_rtl_move_loop_invariants): ...new function.
22130 (pass_rtl_unswitch): Replace declaration with that of...
22131 (make_pass_rtl_unswitch): ...new function.
22132 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22133 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22134 (pass_rtl_doloop): Replace declaration with that of...
22135 (make_pass_rtl_doloop): ...new function.
22136 (pass_rtl_loop_done): Replace declaration with that of...
22137 (make_pass_rtl_loop_done): ...new function.
22138 (pass_web): Replace declaration with that of...
22139 (make_pass_web): ...new function.
22140 (pass_cse2): Replace declaration with that of...
22141 (make_pass_cse2): ...new function.
22142 (pass_df_initialize_opt): Replace declaration with that of...
22143 (make_pass_df_initialize_opt): ...new function.
22144 (pass_df_initialize_no_opt): Replace declaration with that of...
22145 (make_pass_df_initialize_no_opt): ...new function.
22146 (pass_reginfo_init): Replace declaration with that of...
22147 (make_pass_reginfo_init): ...new function.
22148 (pass_inc_dec): Replace declaration with that of...
22149 (make_pass_inc_dec): ...new function.
22150 (pass_stack_ptr_mod): Replace declaration with that of...
22151 (make_pass_stack_ptr_mod): ...new function.
22152 (pass_initialize_regs): Replace declaration with that of...
22153 (make_pass_initialize_regs): ...new function.
22154 (pass_combine): Replace declaration with that of...
22155 (make_pass_combine): ...new function.
22156 (pass_if_after_combine): Replace declaration with that of...
22157 (make_pass_if_after_combine): ...new function.
22158 (pass_ree): Replace declaration with that of...
22159 (make_pass_ree): ...new function.
22160 (pass_partition_blocks): Replace declaration with that of...
22161 (make_pass_partition_blocks): ...new function.
22162 (pass_match_asm_constraints): Replace declaration with that of...
22163 (make_pass_match_asm_constraints): ...new function.
22164 (pass_regmove): Replace declaration with that of...
22165 (make_pass_regmove): ...new function.
22166 (pass_split_all_insns): Replace declaration with that of...
22167 (make_pass_split_all_insns): ...new function.
22168 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22169 (make_pass_fast_rtl_byte_dce): ...new function.
22170 (pass_lower_subreg2): Replace declaration with that of...
22171 (make_pass_lower_subreg2): ...new function.
22172 (pass_mode_switching): Replace declaration with that of...
22173 (make_pass_mode_switching): ...new function.
22174 (pass_sms): Replace declaration with that of...
22175 (make_pass_sms): ...new function.
22176 (pass_sched): Replace declaration with that of...
22177 (make_pass_sched): ...new function.
22178 (pass_ira): Replace declaration with that of...
22179 (make_pass_ira): ...new function.
22180 (pass_reload): Replace declaration with that of...
22181 (make_pass_reload): ...new function.
22182 (pass_clean_state): Replace declaration with that of...
22183 (make_pass_clean_state): ...new function.
22184 (pass_branch_prob): Replace declaration with that of...
22185 (make_pass_branch_prob): ...new function.
22186 (pass_value_profile_transformations): Replace declaration with that
22188 (make_pass_value_profile_transformations): ...new function.
22189 (pass_postreload_cse): Replace declaration with that of...
22190 (make_pass_postreload_cse): ...new function.
22191 (pass_gcse2): Replace declaration with that of...
22192 (make_pass_gcse2): ...new function.
22193 (pass_split_after_reload): Replace declaration with that of...
22194 (make_pass_split_after_reload): ...new function.
22195 (pass_branch_target_load_optimize1): Replace declaration with that
22197 (make_pass_branch_target_load_optimize1): ...new function.
22198 (pass_thread_prologue_and_epilogue): Replace declaration with that
22200 (make_pass_thread_prologue_and_epilogue): ...new function.
22201 (pass_stack_adjustments): Replace declaration with that of...
22202 (make_pass_stack_adjustments): ...new function.
22203 (pass_peephole2): Replace declaration with that of...
22204 (make_pass_peephole2): ...new function.
22205 (pass_if_after_reload): Replace declaration with that of...
22206 (make_pass_if_after_reload): ...new function.
22207 (pass_regrename): Replace declaration with that of...
22208 (make_pass_regrename): ...new function.
22209 (pass_cprop_hardreg): Replace declaration with that of...
22210 (make_pass_cprop_hardreg): ...new function.
22211 (pass_reorder_blocks): Replace declaration with that of...
22212 (make_pass_reorder_blocks): ...new function.
22213 (pass_branch_target_load_optimize2): Replace declaration with that
22215 (make_pass_branch_target_load_optimize2): ...new function.
22216 (pass_leaf_regs): Replace declaration with that of...
22217 (make_pass_leaf_regs): ...new function.
22218 (pass_split_before_sched2): Replace declaration with that of...
22219 (make_pass_split_before_sched2): ...new function.
22220 (pass_compare_elim_after_reload): Replace declaration with that of...
22221 (make_pass_compare_elim_after_reload): ...new function.
22222 (pass_sched2): Replace declaration with that of...
22223 (make_pass_sched2): ...new function.
22224 (pass_stack_regs): Replace declaration with that of...
22225 (make_pass_stack_regs): ...new function.
22226 (pass_stack_regs_run): Replace declaration with that of...
22227 (make_pass_stack_regs_run): ...new function.
22228 (pass_df_finish): Replace declaration with that of...
22229 (make_pass_df_finish): ...new function.
22230 (pass_compute_alignments): Replace declaration with that of...
22231 (make_pass_compute_alignments): ...new function.
22232 (pass_duplicate_computed_gotos): Replace declaration with that of...
22233 (make_pass_duplicate_computed_gotos): ...new function.
22234 (pass_variable_tracking): Replace declaration with that of...
22235 (make_pass_variable_tracking): ...new function.
22236 (pass_free_cfg): Replace declaration with that of...
22237 (make_pass_free_cfg): ...new function.
22238 (pass_machine_reorg): Replace declaration with that of...
22239 (make_pass_machine_reorg): ...new function.
22240 (pass_cleanup_barriers): Replace declaration with that of...
22241 (make_pass_cleanup_barriers): ...new function.
22242 (pass_delay_slots): Replace declaration with that of...
22243 (make_pass_delay_slots): ...new function.
22244 (pass_split_for_shorten_branches): Replace declaration with that of...
22245 (make_pass_split_for_shorten_branches): ...new function.
22246 (pass_split_before_regstack): Replace declaration with that of...
22247 (make_pass_split_before_regstack): ...new function.
22248 (pass_convert_to_eh_region_ranges): Replace declaration with that
22250 (make_pass_convert_to_eh_region_ranges): ...new function.
22251 (pass_shorten_branches): Replace declaration with that of...
22252 (make_pass_shorten_branches): ...new function.
22253 (pass_set_nothrow_function_flags): Replace declaration with that of...
22254 (make_pass_set_nothrow_function_flags): ...new function.
22255 (pass_dwarf2_frame): Replace declaration with that of...
22256 (make_pass_dwarf2_frame): ...new function.
22257 (pass_final): Replace declaration with that of...
22258 (make_pass_final): ...new function.
22259 (pass_rtl_seqabstr): Replace declaration with that of...
22260 (make_pass_rtl_seqabstr): ...new function.
22261 (pass_release_ssa_names): Replace declaration with that of...
22262 (make_pass_release_ssa_names): ...new function.
22263 (pass_early_inline): Replace declaration with that of...
22264 (make_pass_early_inline): ...new function.
22265 (pass_inline_parameters): Replace declaration with that of...
22266 (make_pass_inline_parameters): ...new function.
22267 (pass_update_address_taken): Replace declaration with that of...
22268 (make_pass_update_address_taken): ...new function.
22269 (pass_convert_switch): Replace declaration with that of...
22270 (make_pass_convert_switch): ...new function.
22271 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22272 to a subclass of simple_ipa_opt_pass along with...
22273 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22274 (make_pass_ipa_tree_profile): ...new function.
22275 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22276 subclass of gimple_opt_pass along with...
22277 (pass_data_sra_early): ...new pass_data instance and...
22278 (make_pass_sra_early): ...new function.
22279 (pass_sra): Convert from a global struct to a subclass of
22280 gimple_opt_pass along with...
22281 (pass_data_sra): ...new pass_data instance and...
22282 (make_pass_sra): ...new function.
22283 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22284 gimple_opt_pass along with...
22285 (pass_data_early_ipa_sra): ...new pass_data instance and...
22286 (make_pass_early_ipa_sra): ...new function.
22287 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22288 subclass of gimple_opt_pass along with...
22289 (pass_data_ccp): ...new pass_data instance and...
22290 (make_pass_ccp): ...new function.
22291 (pass_fold_builtins): Convert from a global struct to a subclass of
22292 gimple_opt_pass along with...
22293 (pass_data_fold_builtins): ...new pass_data instance and...
22294 (make_pass_fold_builtins): ...new function.
22295 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22296 subclass of gimple_opt_pass along with...
22297 (pass_data_copy_prop): ...new pass_data instance and...
22298 (make_pass_copy_prop): ...new function.
22299 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22300 global struct to a subclass of gimple_opt_pass along with...
22301 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22302 (make_pass_rename_ssa_copies): ...new function.
22303 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22304 subclass of gimple_opt_pass along with...
22305 (pass_data_dce): ...new pass_data instance and...
22306 (make_pass_dce): ...new function.
22307 (pass_dce_loop): Convert from a global struct to a subclass of
22308 gimple_opt_pass along with...
22309 (pass_data_dce_loop): ...new pass_data instance and...
22310 (make_pass_dce_loop): ...new function.
22311 (pass_cd_dce): Convert from a global struct to a subclass of
22312 gimple_opt_pass along with...
22313 (pass_data_cd_dce): ...new pass_data instance and...
22314 (make_pass_cd_dce): ...new function.
22315 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22316 subclass of gimple_opt_pass along with...
22317 (pass_data_dominator): ...new pass_data instance and...
22318 (make_pass_dominator): ...new function.
22319 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22320 gimple_opt_pass along with...
22321 (pass_data_phi_only_cprop): ...new pass_data instance and...
22322 (make_pass_phi_only_cprop): ...new function.
22323 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22324 subclass of gimple_opt_pass along with...
22325 (pass_data_dse): ...new pass_data instance and...
22326 (make_pass_dse): ...new function.
22327 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22328 a subclass of gimple_opt_pass along with...
22329 (pass_data_forwprop): ...new pass_data instance and...
22330 (make_pass_forwprop): ...new function.
22331 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22332 struct to a subclass of gimple_opt_pass along with...
22333 (pass_data_tree_ifcombine): ...new pass_data instance and...
22334 (make_pass_tree_ifcombine): ...new function.
22335 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22336 subclass of gimple_opt_pass along with...
22337 (pass_data_ch): ...new pass_data instance and...
22338 (make_pass_ch): ...new function.
22339 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22340 subclass of gimple_opt_pass along with...
22341 (pass_data_tree_loop): ...new pass_data instance and...
22342 (make_pass_tree_loop): ...new function.
22343 (pass_tree_loop_init): Convert from a global struct to a subclass of
22344 gimple_opt_pass along with...
22345 (pass_data_tree_loop_init): ...new pass_data instance and...
22346 (make_pass_tree_loop_init): ...new function.
22347 (pass_lim): Convert from a global struct to a subclass of
22348 gimple_opt_pass along with...
22349 (pass_data_lim): ...new pass_data instance and...
22350 (make_pass_lim): ...new function.
22351 (pass_tree_unswitch): Convert from a global struct to a subclass of
22352 gimple_opt_pass along with...
22353 (pass_data_tree_unswitch): ...new pass_data instance and...
22354 (make_pass_tree_unswitch): ...new function.
22355 (pass_predcom): Convert from a global struct to a subclass of
22356 gimple_opt_pass along with...
22357 (pass_data_predcom): ...new pass_data instance and...
22358 (make_pass_predcom): ...new function.
22359 (pass_vectorize): Convert from a global struct to a subclass of
22360 gimple_opt_pass along with...
22361 (pass_data_vectorize): ...new pass_data instance and...
22362 (make_pass_vectorize): ...new function.
22363 (pass_graphite): Convert from a global struct to a subclass of
22364 gimple_opt_pass along with...
22365 (pass_data_graphite): ...new pass_data instance and...
22366 (make_pass_graphite): ...new function.
22367 (pass_graphite_transforms): Convert from a global struct to a subclass
22368 of gimple_opt_pass along with...
22369 (pass_data_graphite_transforms): ...new pass_data instance and...
22370 (make_pass_graphite_transforms): ...new function.
22371 (pass_check_data_deps): Convert from a global struct to a subclass of
22372 gimple_opt_pass along with...
22373 (pass_data_check_data_deps): ...new pass_data instance and...
22374 (make_pass_check_data_deps): ...new function.
22375 (pass_iv_canon): Convert from a global struct to a subclass of
22376 gimple_opt_pass along with...
22377 (pass_data_iv_canon): ...new pass_data instance and...
22378 (make_pass_iv_canon): ...new function.
22379 (pass_scev_cprop): Convert from a global struct to a subclass of
22380 gimple_opt_pass along with...
22381 (pass_data_scev_cprop): ...new pass_data instance and...
22382 (make_pass_scev_cprop): ...new function.
22383 (pass_record_bounds): Convert from a global struct to a subclass of
22384 gimple_opt_pass along with...
22385 (pass_data_record_bounds): ...new pass_data instance and...
22386 (make_pass_record_bounds): ...new function.
22387 (pass_complete_unroll): Convert from a global struct to a subclass of
22388 gimple_opt_pass along with...
22389 (pass_data_complete_unroll): ...new pass_data instance and...
22390 (make_pass_complete_unroll): ...new function.
22391 (pass_complete_unrolli): Convert from a global struct to a subclass of
22392 gimple_opt_pass along with...
22393 (pass_data_complete_unrolli): ...new pass_data instance and...
22394 (make_pass_complete_unrolli): ...new function.
22395 (pass_parallelize_loops): Convert from a global struct to a subclass
22396 of gimple_opt_pass along with...
22397 (pass_data_parallelize_loops): ...new pass_data instance and...
22398 (make_pass_parallelize_loops): ...new function.
22399 (pass_loop_prefetch): Convert from a global struct to a subclass of
22400 gimple_opt_pass along with...
22401 (pass_data_loop_prefetch): ...new pass_data instance and...
22402 (make_pass_loop_prefetch): ...new function.
22403 (pass_iv_optimize): Convert from a global struct to a subclass of
22404 gimple_opt_pass along with...
22405 (pass_data_iv_optimize): ...new pass_data instance and...
22406 (make_pass_iv_optimize): ...new function.
22407 (pass_tree_loop_done): Convert from a global struct to a subclass of
22408 gimple_opt_pass along with...
22409 (pass_data_tree_loop_done): ...new pass_data instance and...
22410 (make_pass_tree_loop_done): ...new function.
22411 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22412 struct to a subclass of gimple_opt_pass along with...
22413 (pass_data_cse_reciprocals): ...new pass_data instance and...
22414 (make_pass_cse_reciprocals): ...new function.
22415 (pass_cse_sincos): Convert from a global struct to a subclass of
22416 gimple_opt_pass along with...
22417 (pass_data_cse_sincos): ...new pass_data instance and...
22418 (make_pass_cse_sincos): ...new function.
22419 (pass_optimize_bswap): Convert from a global struct to a subclass of
22420 gimple_opt_pass along with...
22421 (pass_data_optimize_bswap): ...new pass_data instance and...
22422 (make_pass_optimize_bswap): ...new function.
22423 (pass_optimize_widening_mul): Convert from a global struct to a
22424 subclass of gimple_opt_pass along with...
22425 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22426 (make_pass_optimize_widening_mul): ...new function.
22427 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22428 subclass of gimple_opt_pass along with...
22429 (pass_data_phiopt): ...new pass_data instance and...
22430 (make_pass_phiopt): ...new function.
22431 (pass_cselim): Convert from a global struct to a subclass of
22432 gimple_opt_pass along with...
22433 (pass_data_cselim): ...new pass_data instance and...
22434 (make_pass_cselim): ...new function.
22435 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22436 subclass of gimple_opt_pass along with...
22437 (pass_data_phiprop): ...new pass_data instance and...
22438 (make_pass_phiprop): ...new function.
22439 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22440 subclass of gimple_opt_pass along with...
22441 (pass_data_pre): ...new pass_data instance and...
22442 (make_pass_pre): ...new function.
22443 (pass_fre): Convert from a global struct to a subclass of
22444 gimple_opt_pass along with...
22445 (pass_data_fre): ...new pass_data instance and...
22446 (make_pass_fre): ...new function.
22447 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22448 subclass of gimple_opt_pass along with...
22449 (pass_data_reassoc): ...new pass_data instance and...
22450 (make_pass_reassoc): ...new function.
22451 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22452 subclass of gimple_opt_pass along with...
22453 (pass_data_sink_code): ...new pass_data instance and...
22454 (make_pass_sink_code): ...new function.
22455 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22456 subclass of gimple_opt_pass along with...
22457 (pass_data_strlen): ...new pass_data instance and...
22458 (make_pass_strlen): ...new function.
22459 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22460 struct to a subclass of gimple_opt_pass along with...
22461 (pass_data_build_alias): ...new pass_data instance and...
22462 (make_pass_build_alias): ...new function.
22463 (pass_build_ealias): Convert from a global struct to a subclass of
22464 gimple_opt_pass along with...
22465 (pass_data_build_ealias): ...new pass_data instance and...
22466 (make_pass_build_ealias): ...new function.
22467 (pass_ipa_pta): Convert from a global struct to a subclass of
22468 simple_ipa_opt_pass along with...
22469 (pass_data_ipa_pta): ...new pass_data instance and...
22470 (make_pass_ipa_pta): ...new function.
22471 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22472 subclass of gimple_opt_pass along with...
22473 (pass_data_uncprop): ...new pass_data instance and...
22474 (make_pass_uncprop): ...new function.
22475 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22476 global struct to a subclass of gimple_opt_pass along with...
22477 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22478 (make_pass_late_warn_uninitialized): ...new function.
22479 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22480 to a subclass of gimple_opt_pass along with...
22481 (pass_data_init_datastructures): ...new pass_data instance and...
22482 (make_pass_init_datastructures): ...new function.
22483 (pass_early_warn_uninitialized): Convert from a global struct to a
22484 subclass of gimple_opt_pass along with...
22485 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22486 (make_pass_early_warn_uninitialized): ...new function.
22487 (pass_update_address_taken): Convert from a global struct to a
22488 subclass of gimple_opt_pass along with...
22489 (pass_data_update_address_taken): ...new pass_data instance and...
22490 (make_pass_update_address_taken): ...new function.
22491 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22492 struct to a subclass of gimple_opt_pass along with...
22493 (pass_data_release_ssa_names): ...new pass_data instance and...
22494 (make_pass_release_ssa_names): ...new function.
22495 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22496 subclass of gimple_opt_pass along with...
22497 (pass_data_stdarg): ...new pass_data instance and...
22498 (make_pass_stdarg): ...new function.
22499 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22500 global struct to a subclass of gimple_opt_pass along with...
22501 (pass_data_convert_switch): ...new pass_data instance and...
22502 (make_pass_convert_switch): ...new function.
22503 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22504 to a subclass of gimple_opt_pass along with...
22505 (pass_data_tail_recursion): ...new pass_data instance and...
22506 (make_pass_tail_recursion): ...new function.
22507 (pass_tail_calls): Convert from a global struct to a subclass of
22508 gimple_opt_pass along with...
22509 (pass_data_tail_calls): ...new pass_data instance and...
22510 (make_pass_tail_calls): ...new function.
22511 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22512 struct to a subclass of gimple_opt_pass along with...
22513 (pass_data_lower_vector): ...new pass_data instance and...
22514 (make_pass_lower_vector): ...new function.
22515 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22516 gimple_opt_pass along with...
22517 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22518 (make_pass_lower_vector_ssa): ...new function.
22519 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22520 to a subclass of gimple_opt_pass along with...
22521 (pass_data_slp_vectorize): ...new pass_data instance and...
22522 (make_pass_slp_vectorize): ...new function.
22523 (pass_ipa_increase_alignment): Convert from a global struct to a
22524 subclass of simple_ipa_opt_pass along with...
22525 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22526 (make_pass_ipa_increase_alignment): ...new function.
22527 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22528 gimple_opt_pass along with...
22529 (pass_data_vrp): ...new pass_data instance and...
22530 (make_pass_vrp): ...new function.
22531 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22532 subclass of simple_ipa_opt_pass along with...
22533 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22534 (make_pass_ipa_free_lang_data): ...new function.
22535 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22536 gimple_opt_pass along with...
22537 (pass_data_tsan): ...new pass_data instance and...
22538 (make_pass_tsan): ...new function.
22539 (pass_tsan_O0): Convert from a global struct to a subclass of
22540 gimple_opt_pass along with...
22541 (pass_data_tsan_O0): ...new pass_data instance and...
22542 (make_pass_tsan_O0): ...new function.
22543 * var-tracking.c (pass_variable_tracking): Convert from a global
22544 struct to a subclass of rtl_opt_pass along with...
22545 (pass_data_variable_tracking): ...new pass_data instance and...
22546 (make_pass_variable_tracking): ...new function.
22547 * web.c (pass_web): Convert from a global struct to a subclass of
22548 rtl_opt_pass along with...
22549 (pass_data_web): ...new pass_data instance and...
22550 (make_pass_web): ...new function.
22551 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22552 declaration with that of...
22553 (make_pass_mode_switch_use): ...new function.
22554 (pass_resolve_sw_modes): Replace declaration with that of...
22555 (make_pass_resolve_sw_modes): ...new function.
22556 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22557 from a global struct to a subclass of rtl_opt_pass along with...
22558 (pass_data_mode_switch_use): ...new pass_data instance and...
22559 (make_pass_mode_switch_use): ...new function.
22560 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22561 from a global struct to a subclass of rtl_opt_pass along with...
22562 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22563 (make_pass_resolve_sw_modes): ...new function.
22564 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22565 struct to a subclass of rtl_opt_pass along with...
22566 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22567 (make_pass_insert_vzeroupper): ...new function.
22568 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22569 global struct to a subclass of rtl_opt_pass along with...
22570 (pass_data_work_around_errata): ...new pass_data instance and...
22571 (make_pass_work_around_errata): ...new function.
22572 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22573 struct to a subclass of rtl_opt_pass along with...
22574 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22575 (make_pass_mips_machine_reorg2): ...new function.
22577 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22579 * passes.c (pass_manager::operator new): New.
22581 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22583 Handwritten part of conversion of passes to C++ classes.
22585 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22586 (toplev.o): Add dep on PASS_MANAGER_H.
22587 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22588 of early local pases to reflect this moving from a global to a
22589 member of gcc::pass_manager.
22590 (cgraph_add_new_function): Likewise.
22591 * lto-cgraph.c (lto_output_node): Update for conversion of
22592 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22593 * passes.c (opt_pass::clone): New.
22594 (opt_pass::gate): New.
22595 (opt_pass::execute): New.
22596 (opt_pass::opt_pass): New.
22597 (pass_manager::execute_early_local_passes): New.
22598 (pass_manager::execute_pass_mode_switching): new.
22599 (finish_optimization_passes): Convert to...
22600 (pass_manager::finish_optimization_passes): ...this.
22601 (finish_optimization_passes): Update for conversion of passes to
22603 (register_dump_files_1): Use has_gate since we cannot portably
22604 check a vtable entry against NULL.
22605 (dump_one_pass): Likewise.
22606 (ipa_write_summaries_2): Likewise.
22607 (ipa_write_optimization_summaries_1): Likewise.
22608 (ipa_read_summaries_1): Likewise.
22609 (ipa_read_optimization_summaries_1): Likewise.
22610 (execute_ipa_stmt_fixups): Likewise.
22611 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22612 pass-creation functions rather than wiring up globals, and
22613 storing the results in fields of pass_manager generated using
22614 pass-instances.def.
22615 (pass_manager::dump_profile_report): Update for conversion of
22616 passes to C++ classes.
22617 (pass_manager::execute_ipa_summary_passes): Likewise.
22618 (execute_one_ipa_transform_pass): Likewise.
22619 (execute_one_pass): Use has_gate and has_execute since we cannot
22620 portably check a vtable entry against NULL.
22621 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22622 (pass_manager): Use pass-instances.def to add fields for the
22623 various pass instances.
22624 * toplev.c (finalize): Update for move of
22625 finish_optimization_passes to a method of gcc::pass_manager.
22626 * toplev.h (finish_optimization_passes): Move to method of class
22628 * tree-pass.h (struct pass_data): New.
22629 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22630 (opt_pass::gate): Convert to virtual function.
22631 (opt_pass::~opt_pass): New.
22632 (opt_pass::clone): New.
22633 (opt_pass::execute): Convert to virtual function.
22634 (opt_pass::opt_pass): New.
22635 (opt_pass::ctxt_): new.
22636 (gimple_opt_pass): Convert to subclass of opt_pass.
22637 (gimple_opt_pass::gimple_opt_pass): New.
22638 (rtl_opt_pass): Convert to subclass of opt_pass.
22639 (rtl_opt_pass::rtl_opt_pass): New.
22640 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22641 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22642 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22643 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22644 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22645 invocation of pass_mode_switching to reflect this moving from a
22646 global to a member of gcc::pass_manager.
22647 (ix86_option_override): Rework how pass_insert_vzeroupper is
22648 added to the pass_manager to reflect autogenerated changes.
22649 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22651 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22653 PR rtl-optimization/57708
22654 * recog.c (peep2_find_free_register): Validate all regs in a
22657 2013-08-05 Jan Hubicka <jh@suse.cz>
22660 * cgraph.c (verify_cgraph_node): Accept local flags from other
22662 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22663 (function_and_variable_visibility): Likewise.
22664 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22666 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22668 * graph.c (init_graph_slim_pretty_print): Remove.
22669 (print_graph_cfg): Do not call it. Use local pretty printer.
22670 (start_graph_dump): Likewise.
22672 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22674 * gimple-pretty-print.c (buffer): Remove.
22675 (initialized): Likewise.
22676 (maybe_init_pretty_print): Likewise.
22677 (print_gimple_stmt): Do not call it. Use non-static local
22678 pretty_printer variable.
22679 (print_gimple_expr): Likewise.
22680 (print_gimple_seq): Likewise.
22681 (gimple_dump_bb): Likewise.
22683 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22685 * asan.c (asan_pp): Remove.
22686 (asan_pp_initialized): Likewise.
22687 (asan_pp_initialize): Likewise.
22688 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22689 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22690 (asan_add_global): Likewise.
22692 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22694 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22695 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22696 * pretty-print.c (pp_formatted_text_data): Likewise.
22697 (pp_indent): Rename from pp_base_indent.
22698 (pp_format): Rename from pp_base_format.
22699 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22700 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22701 (pp_flush): Rename from pp_base_flush.
22702 (pp_set_line_maximum_length): Rename from
22703 pp_base_set_line_maximum_length.
22704 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22705 (pp_set_prefix): Rename from pp_base_set_prefix.
22706 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22707 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22708 (pp_append_text): Rename from pp_base_append_text.
22709 (pp_formatted_text): Rename from pp_base_formatted_text.
22710 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22711 (pp_remaining_character_count_for_line): Rename from
22712 pp_base_remaining_character_count_for_line.
22713 (pp_newline): Rename from pp_base_newline.
22714 (pp_character): Rename from pp_base_character.
22715 (pp_string): Rename from pp_base_string.
22716 (pp_maybe_space): Rename from pp_base_maybe_space.
22717 * asan.c (asan_pp_string): Adjust.
22718 (asan_emit_stack_protection): Likewise.
22719 (asan_add_global): Likewise.
22720 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22721 * tree-mudflap.c (mf_varname_tree): Likewise.
22722 * tree-pretty-print.c (pp_tree_identifier): Rename from
22723 pp_base_tree_identifier.
22724 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22725 Declare as function.
22727 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22729 * pretty-print.h (pp_bar_bar): New.
22730 (pp_ampersand_ampersand): Likewise.
22731 (pp_less_equal): Likewise.
22732 (pp_greater_equal): Likewise.
22733 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22734 printer functions instead of pp_string or operators and punctuators.
22735 (dump_gimple_call): Likewise.
22736 (dump_gimple_omp_for): Likewise.
22737 (dump_gimple_transaction): Likewise.
22738 (dump_gimple_phi): Likewise.
22739 (pp_gimple_stmt_1): Likewise.
22740 * sched-vis.c (print_insn): Likewise.
22741 * tree-mudflap.c (mf_varname_tree): Likewise.
22742 * tree-pretty-print.c (dump_block_node): Likewise.
22743 (dump_generic_node): Likewise.
22745 2013-08-02 Jan Hubicka <jh@suse.cz>
22747 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22749 * lto-streamer-out.c (tree_is_indexable): Results decls and
22750 parm decls are not indexable.
22751 (DFS_write_tree_body): Do not follow args and results.
22752 (hash_tree): Likewise.
22753 (output_functions): Rearrange so struct function is needed
22754 only when real body is output; be able to also ouptut abstract
22755 functions; output DECL_ARGUMENTS and DECL_RESULT.
22756 (lto_output): When not in WPA, ale store abstract functions.
22757 (write_symbol): Do not care about RESULT_DECL.
22758 (output_symbol_p): Handle correctly sbtract decls.
22759 * lto-streamer-in.c (input_function): Rearrange so struct
22760 function can be NULL at entry; allow streaming of
22761 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22762 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22763 sanity check during LTO.
22764 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22765 RESULT_DECl and DECL_ARGUMENTS.
22766 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22769 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22771 * pretty-print.h (pp_underscore): New.
22773 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22774 printer functions instead of pp_character.
22775 (dump_binary_rhs): Likewise.
22776 (dump_ternary_rhs): Likewise.
22777 (dump_gimple_call_args): Likewise.
22778 (pp_points_to_solution): Likewise.
22779 (dump_gimple_call): Likewise.
22780 (dump_gimple_switch): Likewise.
22781 (dump_gimple_cond): Likewise.
22782 (dump_gimple_bind): Likewise.
22783 (dump_gimple_try): Likewise.
22784 (dump_gimple_omp_for): Likewise.
22785 (dump_gimple_omp_continue): Likewise.
22786 (dump_gimple_omp_single): Likewise.
22787 (dump_gimple_omp_sections): Likewise.
22788 (dump_gimple_omp_block): Likewise.
22789 (dump_gimple_omp_critical): Likewise.
22790 (dump_gimple_transaction): Likewise.
22791 (dump_gimple_asm): Likewise.
22792 (dump_gimple_phi): Likewise.
22793 (dump_gimple_omp_parallel): Likewise.
22794 (dump_gimple_omp_task): Likewise.
22795 (dump_gimple_omp_atomic_load): Likewise.
22796 (dump_gimple_omp_atomic_store): Likewise.
22797 (dump_gimple_mem_ops): Likewise.
22798 (pp_gimple_stmt_1): Likewise.
22799 (pp_cfg_jump): Likewise.
22800 (dump_implicit_edges): Likewise.
22801 (gimple_dump_bb_for_graph): Likewise.
22802 * graph.c (draw_cfg_node): Likewise.
22803 * langhooks.c (lhd_print_error_function): Likewise.
22804 * sched-vis.c (print_exp): Likewise.
22805 (print_value): Likewise.
22806 (print_pattern): Likewise.
22807 (print_insn): Likewise.
22808 (rtl_dump_bb_for_graph): Likewise.
22809 * tree-pretty-print.c (dump_function_declaration): Likewise.
22810 (dump_array_domain): Likewise.
22811 (dump_omp_clause): Likewise.
22812 (dump_location): Likewise.
22813 (dump_generic_node): Likewise.
22814 (print_struct_decl): Likewise.
22815 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22817 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22819 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22820 candidate table when replacing a candidate statement.
22821 (replace_rhs_if_not_dup): Likewise.
22822 (replace_one_candidate): Likewise.
22824 2013-08-02 Jan Hubicka <jh@suse.cz>
22825 Martin Liska <marxin.liska@gmail.com>
22827 * cgraphunit.c (add_new_function): Fix logic when adding from
22829 (assemble_thunk): Rename to ...
22830 (expand_thunk); .. this one; export; get it working with
22831 general functions; make produced gimple valid.
22832 * cgraph.h (expand_thunk): Declare.
22834 2013-08-02 Jan Hubicka <jh@suse.cz>
22836 * ipa-cp.c (gather_context_independent_values): Use
22837 ipa_get_param_move_cost.
22838 (get_replacement_map): Remove PARAM; move parameter folding
22840 (create_specialized_node): Update.
22841 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22842 assert that we have gimple body; update move_cost.
22843 (count_formal_params): Assert that we have gimple body.
22844 (ipa_dump_param): New function.
22845 (ipa_alloc_node_params): Break out from ...
22846 (ipa_initialize_node_params): ... here.
22847 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22848 (ipa_write_node_info): Stream move costs.
22849 (ipa_read_node_info): Read move costs.
22850 (ipa_update_after_lto_read): Do not recompute node params.
22851 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22852 (ipa_get_param): Check we are not in WPA.
22853 (ipa_get_param_move_cost): New.
22854 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
22855 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
22856 parm numbers to be present.
22858 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22860 PR rtl-optimization/58048
22861 * lra-constraints.c (process_alt_operands): Don't check asm
22862 operand on register.
22864 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
22866 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
22867 the implied StoreLoad barrier for atomic operations if before.
22869 2013-08-02 Jan Hubicka <jh@suse.cz>
22870 Martin Liska <marxin.liska@gmail.com>
22872 * cgraph.c (cgraph_function_body_availability): Do not check
22874 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
22875 symtab_node_availability): Declare.
22876 * ipa.c (can_replace_by_local_alias): New.
22877 (function_and_variable_visibility): Use it.
22878 * symtab.c (symtab_for_node_and_aliases,
22879 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
22881 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22883 PR rtl-optimization/57963
22884 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
22885 (lra_constraints): Use them.
22887 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
22889 * config/arm/types.md (define_attr "type"): Add "load_acq"
22891 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
22893 (cortex_a53_store1): Likewise.
22895 2013-08-01 Jan Hubicka <jh@suse.cz>
22897 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
22898 partitions are not needed.
22900 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
22902 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
22903 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
22904 MAYBE_NON_Q_CLASS_P where appropriate.
22906 2013-08-01 Jan Hubicka <jh@suse.cz>
22908 * cgraph.h (release_function_body): Declare.
22909 * tree.c (free_lang_data_in_decl): Free, parameters and return values
22910 of unused delcarations.
22912 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22914 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
22915 RTL form when subtracting a constant.
22917 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22919 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
22920 Generate canonical plus rtx with negated immediate instead of minus
22922 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
22924 2013-08-01 Jan Hubicka <jh@suse.cz>
22926 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
22927 (cgraph_release_function_body): Likewise.
22928 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
22929 * cgraph.h (cgrpah_node): Rename abstract_and_needed
22930 to used_as_abstract_origin.
22931 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
22932 symbols used as abstract origins.
22933 * cgraphunit.c (analyze_functions): Update.
22934 * ipa.c (symtab_remove_unreachable_nodes): Recompute
22935 used_as_abstract_origin.
22936 * tree-inline.c (tree_function_versioning): Update
22937 used_as_abstract_origin; be ready for DECL_RESULT and
22938 DECL_ARGUMENTS to be NULL.
22940 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
22941 for abstract functions.
22942 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
22945 2013-08-01 Jan Hubicka <jh@suse.cz>
22947 * profile.c (compute_value_histograms): Fix thinko.
22949 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22951 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
22952 aarch-common-protos.h to extra_headers.
22953 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22954 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
22955 * config/aarch64/t-aarch64 (aarch-common.o): Define.
22957 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22959 * config/aarch64/aarch64.md (define_attr "type"): Delete.
22960 Include "../arm/types.md". Define "type" attribute for all patterns.
22961 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
22964 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
22966 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
22967 to support power8 load fusion.
22968 (fusion_gpr_mem_load): Likewise.
22970 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
22972 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
22973 declarations for power8 load fusion.
22974 (emit_fusion_gpr_load): Likewise.
22976 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22977 tuning for power8, turn on fusion mode by default. Turn on sign
22978 extending fusion mode if normal fusion mode is on, and we are at
22980 (fusion_gpr_load_p): New function, return true if we can fuse an
22981 addis instruction with a dependent load to a GPR.
22982 (emit_fusion_gpr_load): Emit the instructions for power8 load
22985 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
22986 (VSX load fusion peepholes): New peepholes to fuse together an
22987 addi instruction with a VSX load instruction.
22989 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
22990 peepholes to fuse an addis instruction with a load to a GPR base
22991 register. If we are supporting sign extending fusions, convert
22992 sign extending loads to zero extending loads and add an explicit
22995 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22997 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
22998 aarch-common-protos.h to extra_headers.
22999 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23000 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23001 (arm_early_store_addr_dep): Likewise.
23002 (arm_no_early_alu_shift_dep): Likewise.
23003 (arm_no_early_alu_shift_value_dep): Likewise.
23004 (arm_no_early_mul_dep): Likewise.
23005 (arm_no_early_store_addr_dep): Likewise.
23006 (arm_mac_accumulator_is_mul_result): Likewise.
23007 (arm_mac_accumulator_is_result): Likewise.
23008 * config/arm/aarch-common.c: ... here. New file.
23009 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23011 (arm_early_store_addr_dep): Likewise.
23012 (arm_no_early_alu_shift_dep): Likewise.
23013 (arm_no_early_alu_shift_value_dep): Likewise.
23014 (arm_no_early_mul_dep): Likewise.
23015 (arm_no_early_store_addr_dep): Likewise.
23016 (arm_mac_accumulator_is_mul_result): Likewise.
23017 (arm_mac_accumulator_is_result): Likewise.
23018 * config/arm/aarch-common-protos.h: ... here. New file.
23019 * config/arm/t-arm (aarch-common.o): Define.
23021 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23023 * config/arm/arm.md: Include new file "types.md".
23024 (define_attr "type"): Move from here to ...
23025 (define_attr "mul32"): Likewise.
23026 (define_attr "mul64"): Likewise.
23027 * config/arm/types.md: ... here. New file.
23029 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23031 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23032 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23034 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23036 * gen-pass-instances.awk: Fix offset of substr().
23038 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23040 * Makefile.in (pass-instances.def): New.
23041 (passes.o): Replace dependency on passes.def with one on
23044 * gen-pass-instances.awk: New.
23046 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23047 rather than passes.def, updating local definition of NEXT_PASS
23048 macro to add an extra NUM parameter (currently unused).
23050 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23052 * Makefile.in (PASS_MANAGER_H): New.
23053 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23054 (passes.o): Likewise.
23055 (statistics.o): Likewise.
23056 (cgraphunit.o): Likewise.
23057 (context.o): Depend on PASS_MANAGER_H.
23059 * pass_manager.h: New.
23061 * cgraphunit.c (cgraph_add_new_function): Update for moves
23062 of globals to fields of pass_manager.
23063 (analyze_function): Likewise.
23064 (expand_function): Likewise.
23065 (ipa_passes): Likewise.
23066 (compile): Likewise.
23068 * context.c (context::context): New.
23069 * context.h (context::context): New.
23070 (context::get_passes): New.
23071 (context::passes_): New.
23073 * lto-cgraph.c (input_node): Update for moves of globals to
23074 fields of pass_manager.
23076 * passes.c (all_passes): Remove, in favor of a field of the
23077 same name within the new class pass_manager.
23078 (all_small_ipa_passes): Likewise.
23079 (all_lowering_passes): Likewise.
23080 (all_regular_ipa_passes): Likewise.
23081 (all_late_ipa_passes): Likewise.
23082 (all_lto_gen_passes): Likewise.
23083 (passes_by_id): Likewise.
23084 (passes_by_id_size): Likewise.
23085 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23086 the new class pass_manager.
23087 (set_pass_for_id): Convert to...
23088 (pass_manager::set_pass_for_id): ...method.
23089 (get_pass_for_id): Convert to...
23090 (pass_manager::get_pass_for_id): ...method.
23091 (register_one_dump_file): Move body of implementation into...
23092 (pass_manager::register_one_dump_file): ...here.
23093 (register_dump_files_1): Convert to...
23094 (pass_manager::register_dump_files_1): ...method.
23095 (register_dump_files): Convert to...
23096 (pass_manager::register_dump_files): ...method.
23097 (create_pass_tab): Update for moves of globals to fields of
23099 (dump_passes): Move body of implementation into...
23100 (pass_manager::dump_passes): ...here.
23101 (register_pass): Move body of implementation into...
23102 (pass_manager::register_pass): ...here.
23103 (init_optimization_passes): Convert into...
23104 (pass_manager::pass_manager): ...constructor for new
23105 pass_manager class, and initialize the pass_lists array.
23106 (check_profile_consistency): Update for moves of globals to
23107 fields of pass_manager.
23108 (dump_profile_report): Move body of implementation into...
23109 (pass_manager::dump_profile_report): ...here.
23110 (ipa_write_summaries_1): Update for moves of pass lists from
23111 being globals to fields of pass_manager.
23112 (ipa_write_optimization_summaries): Likewise.
23113 (ipa_read_summaries): Likewise.
23114 (ipa_read_optimization_summaries): Likewise.
23115 (execute_all_ipa_stmt_fixups): Likewise.
23117 * statistics.c (statistics_fini): Update for moves of globals to
23118 fields of pass_manager.
23120 * toplev.c (general_init): Replace call to
23121 init_optimization_passes with construction of the pass_manager
23124 * tree-pass.h (all_passes): Remove, in favor of a field of the
23125 same name within the new class pass_manager.
23126 (all_small_ipa_passes): Likewise.
23127 (all_lowering_passes): Likewise.
23128 (all_regular_ipa_passes): Likewise.
23129 (all_lto_gen_passes): Likewise.
23130 (all_late_ipa_passes): Likewise.
23131 (passes_by_id): Likewise.
23132 (passes_by_id_size): Likewise.
23133 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23134 the new class pass_manager.
23135 (get_pass_for_id): Remove.
23137 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23139 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23142 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23144 * arm.md (mulhi3): New expand pattern.
23146 2013-07-30 Jan Hubicka <jh@suse.cz>
23147 Martin Liska <marxin.liska@gmail.com>
23149 * profile.c (compute_value_histograms): Do not ICE when
23150 there is mismatch only on some counters.
23152 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23154 PR rtl-optimization/57637
23155 * function.c (move_insn_for_shrink_wrap): Also check the
23156 GEN set of the LIVE problem for the liveness analysis
23157 if it exists, otherwise give up.
23159 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23161 PR tree-optimization/57993
23162 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23163 replaced statement in the candidate table.
23164 (phi_add_costs): Return infinite cost when the hidden basis does
23165 not dominate all phis on which the candidate is dependent.
23166 (replace_one_candidate): Record replaced statement in the
23169 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23171 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23172 (ashlv2si3): New expander.
23173 (*ashlv2si3_i): New define_insn_and_split.
23174 * predicates.md (float_operation): Allow patterns with three
23175 basic sub-patterns.
23177 PR rtl-optimization/58021
23178 * mode-switching.c (create_pre_exit): Always split off preceding
23179 insns if we are not at the basic block head.
23181 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23183 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23184 (UCLIBC_DYNAMIC_LINKER): New macro.
23185 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23187 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23188 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23190 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23191 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23192 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23193 for SF and DF modes. Use ieee_quad_format for TF mode.
23194 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23195 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23196 (mips_option_override): Handle `-mnan=legacy'.
23197 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23198 `-mabs=2008' and `-mnan=2008'.
23199 (OPTION_DEFAULT_SPECS): Add "nan" default.
23200 (ASM_SPEC): Handle `-mnan='.
23201 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23202 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23203 comment accordingly.
23204 (neg<mode>2): Likewise.
23205 * config/mips/mips.opt (mabs, mnan): New options.
23206 * doc/install.texi (Configuration): Document `--with-nan=' option.
23207 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23209 (MIPS Options): Document them.
23210 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23211 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23212 * configure: Regenerate.
23213 * config.in: Regenerate.
23215 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23217 * config/i386/i386.md (float post-reload splitters): Do not check
23218 for subregs of SSE registers.
23220 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23221 H.J. Lu <hongjiu.lu@intel.com>
23225 * config/i386/i386.md (post-reload splitter
23226 to avoid partial SSE reg dependency stalls): New pattern.
23228 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23230 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23232 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23234 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23235 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23237 2013-07-26 Cary Coutant <ccoutant@google.com>
23239 * dwarf2out.c (die_checksum_ordered): Don't include template
23240 instantiations in signature.
23241 (is_template_parameter): New function.
23242 (is_template_instantiation): New function.
23243 (generate_skeleton_bottom_up): Don't include template instantiations
23245 (generate_skeleton): Likewise.
23246 (break_out_comdat_types): Move recursive call to break out nested
23248 (prune_unused_types_mark_generic_parms_dies): Call
23249 is_template_parameter.
23251 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23253 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23254 uses vector registers.
23255 * config/aarch64/iterators.md: Add attributes rtn and vas.
23257 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23258 Richard Earnshaw <richard.earnshaw@arm.com>
23260 * combine.c (simplify_comparison): Re-canonicalize operands
23262 * config/arm/arm.md (movcond_addsi): New splitter.
23264 2013-07-25 Sterling Augustine <saugustine@google.com>
23266 * dwarf2out.c (size_of_pubnames): Move code to...
23267 (include_pubname_in_output): ...here. New.
23268 (want_pubnames): Rearrange.
23269 (output_pubnames): Call include_pubname_in_output. Move assertion.
23271 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23273 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23275 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23278 * doc/extend.texi: Remove obsolete builtins. Fix
23279 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23281 2013-07-25 Jan Hubicka <jh@suse.cz>
23283 * cgraph.c (release_function_body): Break out from ...
23284 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23285 and DECL_ARGUMENTS.
23286 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23287 old_tree in the map.
23288 (create_specialized_node): Update.
23289 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23291 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23292 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23293 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23294 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23297 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23299 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23300 addsi3_carryin_alt2_<optab>): Correct output template.
23302 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23304 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23305 Adjust for arm_restrict_it.
23306 Remove trailing whitespace.
23308 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23310 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23311 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23313 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23315 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23317 PR rtl-optimization/57960
23318 * lra-constraints.c (process_alt_operands): Use the right mode
23319 when checking strict_low.
23321 2013-07-25 Jan Hubicka <jh@suse.cz>
23323 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23324 * cgraph.c (cgraph_remove_node): Do not release function body
23325 when in cgraph streaming.
23326 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23327 in other partitions are not considered reachable; fix handling of
23330 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23332 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23334 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23339 * config/arm/arm.md ("*sibcall_insn): Replace use of
23340 Ss with US. Adjust output for v5 and v4t.
23341 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23343 * config/arm/constraints.md ("Ss"): Rename to US.
23345 2013-07-25 Terry Guo <terry.guo@arm.com>
23347 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23348 shift_add/shift_sub0/shift_sub1 RTXs.
23350 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23351 Anton Blanchard <anton@au1.ibm.com>
23353 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23354 (altivec_vpks<VI_char>ss): Likewise.
23355 (altivec_vpks<VI_char>us): Likewise.
23356 (altivec_vpku<VI_char>us): Likewise.
23357 (altivec_vpku<VI_char>um): Likewise.
23359 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23361 Introduce context class.
23363 * Makefile.in (CONTEXT_H): New.
23364 (OBJS): Add context.o.
23365 (toplev.o): Add CONTEXT_H to dependencies.
23368 * toplev.c (general_init): Create the singleton gcc::context instance.
23374 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23376 PR rtl-optimization/57968
23377 * mode-switching.c (create_pre_exit): Allow instructions that
23378 don't set a return register to need a non-exit mode.
23380 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23381 Anton Blanchard <anton@au1.ibm.com>
23383 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23384 operands to vperm for little endian.
23385 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23386 of lvsl to create the control mask for a vperm for little endian.
23388 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23389 Anton Blanchard <anton@au1.ibm.com>
23391 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23392 two operands for little-endian.
23394 2013-07-23 Steve Ellcey <sellcey@mips.com>
23396 * config/mips/mips.c (mips_case_values_threshold): New.
23397 (TARGET_CASE_VALUES_THRESHOLD): Define.
23399 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23400 Anton Blanchard <anton@au1.ibm.com>
23402 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23403 selection of field for vector splat in little endian mode.
23405 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23407 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23408 expanders to rs6000.md.
23409 (ior<mode>3): Likewise.
23410 (and<mode>3): Likewise.
23411 (one_cmpl<mode>2): Likewise.
23412 (nor<mode>3): Likewise.
23413 (andc<mode>3): Likewise.
23414 (eqv<mode>3): Likewise.
23415 (nand<mode>3): Likewise.
23416 (orc<mode>3): Likewise.
23418 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23421 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23422 to split multi-word logical operations.
23423 (rs6000_split_logical_di): Likewise.
23424 (rs6000_split_logical): Likewise.
23426 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23427 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23428 and allow TImode operations in 32-bit.
23429 (vsx_and<mode>3_64bit): Likewise.
23430 (vsx_ior<mode>3_32bit): Likewise.
23431 (vsx_ior<mode>3_64bit): Likewise.
23432 (vsx_xor<mode>3_32bit): Likewise.
23433 (vsx_xor<mode>3_64bit): Likewise.
23434 (vsx_one_cmpl<mode>2_32bit): Likewise.
23435 (vsx_one_cmpl<mode>2_64bit): Likewise.
23436 (vsx_nor<mode>3_32bit): Likewise.
23437 (vsx_nor<mode>3_64bit): Likewise.
23438 (vsx_andc<mode>3_32bit): Likewise.
23439 (vsx_andc<mode>3_64bit): Likewise.
23440 (vsx_eqv<mode>3_32bit): Likewise.
23441 (vsx_eqv<mode>3_64bit): Likewise.
23442 (vsx_nand<mode>3_32bit): Likewise.
23443 (vsx_nand<mode>3_64bit): Likewise.
23444 (vsx_orc<mode>3_32bit): Likewise.
23445 (vsx_orc<mode>3_64bit): Likewise.
23447 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23448 logical types in GPRs.
23450 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23451 logical insns to rs6000.md, and allow TImode operations in
23453 (altivec_ior<mode>3): Likewise.
23454 (altivec_xor<mode>3): Likewise.
23455 (altivec_one_cmpl<mode>2): Likewise.
23456 (altivec_nor<mode>3): Likewise.
23457 (altivec_andc<mode>3): Likewise.
23459 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23460 attributes for moving the 128-bit logical operations into
23462 (BOOL_REGS_OUTPUT): Likewise.
23463 (BOOL_REGS_OP1): Likewise.
23464 (BOOL_REGS_OP2): Likewise.
23465 (BOOL_REGS_UNARY): Likewise.
23466 (BOOL_REGS_AND_CR0): Likewise.
23467 (one_cmpl<mode>2): Add support for DI logical operations on
23468 32-bit, splitting the operations to 32-bit.
23469 (anddi3): Likewise.
23470 (iordi3): Likewise.
23471 (xordi3): Likewise.
23472 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23473 changes to combine the 32/64-bit code, allow logical operations on
23474 TI mode in 32-bit, and to use similar match_operator patterns like
23475 scalar mode uses. Combine the Altivec and VSX code for logical
23476 operations, and move it here.
23477 (ior<mode>3, 128-bit types): Likewise.
23478 (xor<mode>3, 128-bit types): Likewise.
23479 (one_cmpl<mode>3, 128-bit types): Likewise.
23480 (nor<mode>3, 128-bit types): Likewise.
23481 (andc<mode>3, 128-bit types): Likewise.
23482 (eqv<mode>3, 128-bit types): Likewise.
23483 (nand<mode>3, 128-bit types): Likewise.
23484 (orc<mode>3, 128-bit types): Likewise.
23485 (and<mode>3_internal): Likewise.
23486 (bool<mode>3_internal): Likewise.
23487 (boolc<mode>3_internal1): Likewise.
23488 (boolc<mode>3_internal2): Likewise.
23489 (boolcc<mode>3_internal1): Likewise.
23490 (boolcc<mode>3_internal2): Likewise.
23491 (eqv<mode>3_internal1): Likewise.
23492 (eqv<mode>3_internal2): Likewise.
23493 (one_cmpl1<mode>3_internal): Likewise.
23495 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23497 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23498 Rename flag_stack_usage to flag_stack_usage_info.
23500 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23502 * config/microblaze/sync.md: New file.
23503 * config/microblaze/microblaze.md: Include sync.md
23504 * config/microblaze/microblaze.c: Add print_operand 'y'.
23505 * config/microblaze/constraints.md: Add memory_contraint
23506 'Q' which is a single register.
23508 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23510 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23512 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23514 * reload.c (find_reloads): Exit loop once we find this operand
23515 cannot be reloaded somehow for this alternative.
23517 * reload.c (find_reloads): Exit loop once we find a hard register.
23519 * rtlanal.c (computed_jump_p): Exit loop once we find label
23522 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23524 * cfgloopmanip.c (remove_path): Exit loop after setting
23527 * gensupport.c (subst_dup): Avoid loop if code is not
23528 MATCH_DUP nor MATCH_OP_DUP.
23530 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23532 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23534 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23536 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23537 true for SP_REGNUM if mode == ptr_mode.
23538 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23539 with value R0_REGNUM + 31.
23541 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23543 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23544 pad pointer-typed argument downward.
23546 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23548 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23549 and __ILP32__ when the ILP32 model is in use.
23551 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23553 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23554 (aarch64_load_symref_appropriately): In the case of
23555 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23556 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23557 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23558 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23559 if 'mode' doesn't equal to 'ptr_mode'.
23560 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23561 'vcall_offset'; change to call aarch64_emit_move differently depending
23562 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23563 to calculate the upper bound of 'vcall_offset'.
23564 (aarch64_cannot_force_const_mem): Change to also return true if
23566 (aarch64_legitimize_reload_address): In the case of large
23567 displacements, add new local variable 'xmode' and an assertion
23568 based on it; change to use 'xmode' to generate the new rtx and
23570 (aarch64_asm_trampoline_template): Change to generate the template
23571 differently depending on TARGET_ILP32 or not; change to use
23572 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23573 (aarch64_trampoline_size): Removed.
23574 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23575 and replace immediate literals with it. Change to use 'ptr_mode'
23576 instead of 'DImode' and call convert_memory_address if the mode
23577 of 'fnaddr' doesn't equal to 'ptr_mode'.
23578 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23580 (aarch64_elf_asm_destructor): Likewise.
23581 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23582 on TARGET_ILP32 instead of aarch64_trampoline_size.
23583 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23584 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23585 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23586 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23587 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23588 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23589 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23590 depending on the value of 'mode'.
23591 (add_losym_<mode>): New.
23592 (ldr_got_small_<mode>): New, based on ldr_got_small.
23593 (ldr_got_small): Remove.
23594 (ldr_got_small_sidi): New.
23595 * config/aarch64/iterators.md (P): New.
23596 (PTR): Change to 'ptr_mode' in the condition.
23598 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23600 * config.gcc (aarch64*-*-*): Support --with-abi.
23601 (aarch64*-*-elf): Support --with-multilib-list.
23602 (aarch64*-*-linux*): Likewise.
23603 (supported_defaults): Add abi to aarch64*-*-*.
23604 * configure.ac: Mention AArch64 for --with-multilib-list.
23605 * configure: Re-generated.
23606 * config/aarch64/biarchilp32.h: New file.
23607 * config/aarch64/biarchlp64.h: New file.
23608 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23610 (MULTILIB_DEFAULTS): Ditto.
23611 (DRIVER_SELF_SPECS): Ditto.
23612 (ASM_SPEC): Update to also substitute -mabi.
23613 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23614 file whose name depends on -mabi= and -mbig-endian.
23615 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23617 (POINTER_SIZE): New define.
23618 (POINTERS_EXTEND_UNSIGNED): Ditto.
23619 (enum aarch64_abi_type): New enumeration tag.
23620 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23621 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23622 (TARGET_ILP32): New define.
23623 * config/aarch64/aarch64.opt (mabi): New.
23624 (aarch64_abi): New.
23625 (ilp32, lp64): New values for -mabi.
23626 * config/aarch64/t-aarch64 (comma): New define.
23627 (MULTILIB_OPTIONS): Ditto.
23628 (MULTILIB_DIRNAMES): Ditto.
23629 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23630 * doc/invoke.texi: Document -mabi for AArch64.
23632 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23634 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23636 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23637 Anton Blanchard <anton@au1.ibm.com>
23639 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23640 endianness when selecting field to splat.
23642 2013-07-22 Eric Christopher <echristo@gmail.com>
23644 * dwarf2out.c (die_odr_checksum): New function to use
23645 CHECKSUM_ macros and ULEB128 for DIE tag.
23646 (generate_type_signature): Use.
23648 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23650 * config.gcc (sparc*-*-*): Accept leon3 processor.
23651 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23652 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23653 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23654 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23655 (mfix-ut699): Adjust comment.
23656 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23657 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23658 (CPP_CPU_SPEC): Likewise.
23659 (ASM_CPU_SPEC): Likewise.
23660 * config/sparc/sparc.c (leon3_cost): New constant.
23661 (sparc_option_override): Add leon3 support.
23662 (mem_ref): New function.
23663 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23664 (sparc_do_work_around_errata): Look into the instruction in the delay
23665 slot and adjust accordingly. Add fix for the data cache nullify issues
23666 of the UT699. Change insertion position for the NOP.
23667 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23668 (leon3_load): New reservation.
23669 (leon_store): Bump latency to 2.
23670 (grfpu): New automaton.
23671 (grfpu_alu): New unit.
23672 (grfpu_ds): Likewise.
23673 (leon_fp_alu): Adjust.
23674 (leon_fp_mult): Delete.
23675 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23676 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23677 * config/sparc/sparc.md (cpu): Add leon3.
23678 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23679 (swapsi): Likewise.
23680 (atomic_test_and_set): Likewise.
23681 (ldstub): Likewise.
23683 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23685 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23686 default for R5900 targets.
23687 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23688 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23689 * config/mips/mips.c (mips_option_override): Report an error for
23690 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23691 for -march=r5900 -mhard-float.
23693 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23695 * df-problems.c (can_move_insns_across): Exit loop once we
23696 find a non-fixed, non-global register.
23698 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23701 * omega.c (omega_eliminate_red): Break after setting red_found.
23702 (omega_problem_has_red_equations): Similarly after setting found.
23703 (omega_query_variable): Similarly after setting coupled.
23705 2013-07-22 Marek Polacek <polacek@redhat.com>
23707 * gimplify.c: Don't include gimple.h twice.
23709 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23711 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23712 instead of TARGET_THUMB1.
23713 (Pz): New constraint.
23714 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23716 (compare_negsi_si): Likewise.
23717 (compare_addsi2_op0): Likewise.
23718 (compare_addsi2_op1): Likewise.
23719 (addsi3_carryin_<optab>): Likewise.
23720 (addsi3_carryin_alt2_<optab>): Likewise.
23721 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23722 for arm_restrict_it.
23723 (subsi3_carryin): Likewise.
23724 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23725 (minmax_arithsi): Disable for arm_restrict_it.
23726 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23727 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23728 (satsi_<SAT:code>_shift): Likewise.
23729 (arm_shiftsi3): Add alternative for 16-bit encoding.
23730 (arm32_movhf): Disable for arm_restrict_it.
23731 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23732 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23734 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23736 * config/arm/arm.md (attribute "insn"): Delete.
23737 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23738 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23739 (not_shiftsi): Update for attribute change.
23740 (not_shiftsi_compare0): Likewise.
23741 (not_shiftsi_compare0_scratch): Likewise.
23742 (arm_one_cmplsi2): Likewise.
23743 (thumb1_one_cmplsi2): Likewise.
23744 (notsi_compare0): Likewise.
23745 (notsi_compare0_scratch): Likewise.
23746 (thumb1_movdi_insn): Likewise.
23747 (arm_movsi_insn): Likewise.
23748 (movhi_insn_arch4): Likewise.
23749 (movhi_bytes): Likewise.
23750 (arm_movqi_insn): Likewise.
23751 (thumb1_movqi_insn): Likewise.
23752 (arm32_movhf): Likewise.
23753 (thumb1_movhf): Likewise.
23754 (arm_movsf_soft_insn): Likewise.
23755 (thumb1_movsf_insn): Likewise.
23756 (thumb_movdf_insn): Likewise.
23757 (movsicc_insn): Likewise.
23758 (movsfcc_soft_insn): Likewise.
23759 (and_scc): Likewise.
23760 (cond_move): Likewise.
23761 (if_move_not): Likewise.
23762 (if_not_move): Likewise.
23763 (if_shift_move): Likewise.
23764 (if_move_shift): Likewise.
23765 (if_shift_shift): Likewise.
23766 (if_not_arith): Likewise.
23767 (if_arith_not): Likewise.
23768 (cond_move_not): Likewise.
23769 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23770 (neon_mov<mode>): Likewise.
23771 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23772 (thumb2_movsi_vfp): Likewise.
23773 (movsf_vfp): Likewise.
23774 (thumb2_movsf_vfp): Likewise.
23775 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23777 (cortexa7_older_only): Likewise.
23778 (cortexa7_younger): Likewise.
23779 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23780 (1020alu_shift_op): Likewise.
23781 (1020alu_shift_reg_op): Likewise.
23782 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23783 (alu_shift_op): Likewise.
23784 (alu_shift_reg_op): Likewise.
23785 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23786 (11_alu_shift_op): Likewise.
23787 (11_alu_shift_reg_op): Likewise.
23788 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23789 (9_alu_shift_reg_op): Likewise.
23790 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23792 (cortex_a15_alu_shift): Likewise.
23793 (cortex_a15_alu_shift_reg): Likewise.
23794 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23795 (cortex_a5_alu_shift): Likewise.
23796 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23798 (cortex_a53_alu_shift): Likewise.
23799 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23801 (cortex_a7_alu_reg): Likewise.
23802 (cortex_a7_alu_shift): Likewise.
23803 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23804 (cortex_a8_alu_shift): Likewise.
23805 (cortex_a8_alu_shift_reg): Likewise.
23806 (cortex_a8_mov): Likewise.
23807 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23808 (cortex_a9_dp_shift): Likewise.
23809 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23810 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23811 (cortex_r4_mov): Likewise.
23812 (cortex_r4_alu_shift): Likewise.
23813 (cortex_r4_alu_shift_reg): Likewise.
23814 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23815 (526_alu_shift_op): Likewise.
23816 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23817 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23818 (626te_alu_shift_op): Likewise.
23819 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23820 (726te_alu_op): Likewise.
23821 (726te_alu_shift_op): Likewise.
23822 (726te_alu_shift_reg_op): Likewise.
23823 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23824 (mp626_alu_shift_op): Likewise.
23825 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23826 (pj4_alu_e1_conds): Likewise.
23827 (pj4_alu): Likewise.
23828 (pj4_alu_conds): Likewise.
23829 (pj4_shift): Likewise.
23830 (pj4_shift_conds): Likewise.
23831 (pj4_alu_shift): Likewise.
23832 (pj4_alu_shift_conds): Likewise.
23834 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23836 * config/arm/predicates.md (shiftable_operator_strict_it):
23838 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23839 Disable cond_exec version for arm_restrict_it.
23840 (thumb2_smaxsi3): Convert to generate cond_exec.
23841 (thumb2_sminsi3): Likewise.
23842 (thumb32_umaxsi3): Likewise.
23843 (thumb2_uminsi3): Likewise.
23844 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23845 (thumb2_neg_abssi2): Likewise.
23846 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23847 (thumb2_movsicc_insn): Adjust alternatives.
23848 (thumb2_mov_negscc): Disable for arm_restrict_it.
23849 (thumb2_mov_negscc_strict_it): New pattern.
23850 (thumb2_mov_notscc_strict_it): New pattern.
23851 (thumb2_mov_notscc): Disable for arm_restrict_it.
23852 (thumb2_ior_scc): Likewise.
23853 (thumb2_ior_scc_strict_it): New pattern.
23854 (thumb2_cond_move): Adjust for arm_restrict_it.
23855 (thumb2_cond_arith): Disable for arm_restrict_it.
23856 (thumb2_cond_arith_strict_it): New pattern.
23857 (thumb2_cond_sub): Adjust for arm_restrict_it.
23858 (thumb2_movcond): Likewise.
23859 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
23860 (thumb2_zero_extendhisi2_v6): Likewise.
23861 (thumb2_zero_extendqisi2_v6): Likewise.
23862 (orsi_notsi_si): Likewise.
23863 (orsi_not_shiftsi_si): Likewise.
23865 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
23867 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
23868 instruction sequence is 1 byte shorter.
23870 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
23872 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
23873 it is not needed after split.
23875 2013-07-20 Iain Sandoe <iain@codesourcery.com>
23878 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
23879 second label for nonlocal goto receivers. Don't output pic base labels
23880 unless we're producing PIC; mark that action unreachable().
23881 (ix86_save_reg): If the function contains a nonlocal label, save the
23883 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
23884 * config/darwin.c (emitted_pic_label_num): New GTY.
23885 (update_pic_label_number_if_needed): New.
23886 (machopic_output_function_base_name): Adjust for nonlocal receiver
23888 (machopic_should_output_picbase_label): New.
23889 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
23890 (nonlocal_goto_receiver): New insn and split.
23892 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
23894 * config/aarch64/aarch64-builtins.c
23895 (aarch64_fold_builtin): Fold abs in all modes.
23896 * config/aarch64/aarch64-simd-builtins.def
23897 (abs): Enable for all modes.
23898 * config/aarch64/arm_neon.h
23899 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
23900 (vabs_f64): Add missing intrinsic.
23902 2013-07-19 Ian Bolton <ian.bolton@arm.com>
23904 * config/aarch64/arm_neon.h (vabs_s64): New function
23906 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
23909 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
23910 * config/avr/avr.md (adjust_len): Add `round'.
23911 * config/avr/avr-protos.h (avr_out_round): New prototype.
23912 (avr_out_plus): Add `out_label' argument.
23913 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
23914 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
23915 Handle the case where `insn' is just a pattern.
23916 (avr_out_bitop): Handle the case where `insn' is just a pattern.
23917 (avr_out_round): New function.
23918 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
23920 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
23922 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23923 Add check for flag_stack_usage to handle -fstack-usage support
23925 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
23927 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
23928 interaction for new Power8 flags and VSX.
23930 2013-07-18 Sriraman Tallam <tmsriram@google.com>
23932 PR middle-end/57698
23933 * tree-inline.c (expand_call_inline): Emit errors during
23934 early_inlining only if optimization is not turned on.
23936 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23940 * passes.c (init_optimization_passes): Move the construction of
23941 the pass hierarchy into a new passes.def file.
23943 * Makefile.in (passes.o): Add dependency on passes.def.
23945 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23947 * passes.c (init_optimization_passes): Introduce macros for
23948 constructing the tree of passes (INSERT_PASSES_AFTER,
23949 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
23950 TERMINATE_PASS_LIST).
23952 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
23953 Wei Mi <wmi@google.com>
23955 PR rtl-optimization/57878
23956 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
23958 (reload_pseudo_compare_func): Check nregs first for reload
23961 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23963 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
23965 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
23967 * read-rtl.c (validate_const_int): Once an invalid character is
23968 seen, quit the loop.
23970 * gengtype.c (write_roots): Similarly once we find the "deletable"
23971 or "if_marked" option.
23973 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23975 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
23976 "xtab" and "sat". Move value "clz" from here to ...
23977 (attriubte "type"): ... here.
23978 (satsi_<SAT:code>): Delete "insn" attribute.
23979 (satsi_<SAT:code>_shift): Likewise.
23980 (arm_zero_extendqisi2addsi): Likewise.
23981 (arm_extendqisi2addsi): Likewise.
23982 (clzsi2): Update for attribute changes.
23983 (rbitsi2): Likewise.
23984 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
23986 (arm_usatsihi): Likewise.
23987 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23989 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23991 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
23992 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
23993 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
23994 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
23995 in alphabetical order.
23996 (attribute "core_cycles"): Update for attribute changes.
23997 (arm_addsi3): Likewise.
23998 (addsi3_compare0): Likewise.
23999 (addsi3_compare0_scratch): Likewise.
24000 (addsi3_compare_op1): Likewise.
24001 (addsi3_compare_op2): Likewise.
24002 (compare_addsi2_op0): Likewise.
24003 (compare_addsi2_op1): Likewise.
24004 (addsi3_carryin_shift_<optab>): Likewise.
24005 (subsi3_carryin_shift): Likewise.
24006 (rsbsi3_carryin_shift): Likewise.
24007 (arm_subsi3_insn): Likewise.
24008 (subsi3_compare0): Likewise.
24009 (subsi3_compare): Likewise.
24010 (arm_andsi3_insn): Likewise.
24011 (thumb1_andsi3_insn): Likewise.
24012 (andsi3_compare0): Likewise.
24013 (andsi3_compare0_scratch): Likewise.
24014 (zeroextractsi_compare0_scratch
24015 (andsi_not_shiftsi_si): Likewise.
24016 (iorsi3_insn): Likewise.
24017 (iorsi3_compare0): Likewise.
24018 (iorsi3_compare0_scratch): Likewise.
24019 (arm_xorsi3): Likewise.
24020 (thumb1_xorsi3_insn): Likewise.
24021 (xorsi3_compare0): Likewise.
24022 (xorsi3_compare0_scratch): Likewise.
24023 (satsi_<SAT:code>_shift): Likewise.
24025 (arm_shiftsi3): Likewise.
24026 (shiftsi3_compare0): Likewise.
24027 (not_shiftsi): Likewise.
24028 (not_shiftsi_compare0): Likewise.
24029 (not_shiftsi_compare0_scratch): Likewise.
24030 (arm_one_cmplsi2): Likewise.
24031 (thumb_one_complsi2): Likewise.
24032 (notsi_compare0): Likewise.
24033 (notsi_compare0_scratch): Likewise.
24034 (thumb1_zero_extendhisi2): Likewise.
24035 (arm_zero_extendhisi2): Likewise.
24036 (arm_zero_extendhisi2_v6): Likewise.
24037 (arm_zero_extendhisi2addsi): Likewise.
24038 (thumb1_zero_extendqisi2): Likewise.
24039 (thumb1_zero_extendqisi2_v6): Likewise.
24040 (arm_zero_extendqisi2): Likewise.
24041 (arm_zero_extendqisi2_v6): Likewise.
24042 (arm_zero_extendqisi2addsi): Likewise.
24043 (thumb1_extendhisi2): Likewise.
24044 (arm_extendhisi2): Likewise.
24045 (arm_extendhisi2_v6): Likewise.
24046 (arm_extendqisi): Likewise.
24047 (arm_extendqisi_v6): Likewise.
24048 (arm_extendqisi2addsi): Likewise.
24049 (thumb1_extendqisi2): Likewise.
24050 (thumb1_movdi_insn): Likewise.
24051 (arm_movsi_insn): Likewise.
24052 (movsi_compare0): Likewise.
24053 (movhi_insn_arch4): Likewise.
24054 (movhi_bytes): Likewise.
24055 (arm_movqi_insn): Likewise.
24056 (thumb1_movqi_insn): Likewise.
24057 (arm32_movhf): Likewise.
24058 (thumb1_movhf): Likewise.
24059 (arm_movsf_soft_insn): Likewise.
24060 (thumb1_movsf_insn): Likewise.
24061 (movdf_soft_insn): Likewise.
24062 (thumb_movdf_insn): Likewise.
24063 (arm_cmpsi_insn): Likewise.
24064 (cmpsi_shiftsi): Likewise.
24065 (cmpsi_shiftsi_swp): Likewise.
24066 (arm_cmpsi_negshiftsi_si): Likewise.
24067 (movsicc_insn): Likewise.
24068 (movsfcc_soft_insn): Likewise.
24069 (arith_shiftsi): Likewise.
24070 (arith_shiftsi_compare0
24071 (arith_shiftsi_compare0_scratch
24072 (sub_shiftsi): Likewise.
24073 (sub_shiftsi_compare0
24074 (sub_shiftsi_compare0_scratch
24075 (and_scc): Likewise.
24076 (cond_move): Likewise.
24077 (if_plus_move): Likewise.
24078 (if_move_plus): Likewise.
24079 (if_move_not): Likewise.
24080 (if_not_move): Likewise.
24081 (if_shift_move): Likewise.
24082 (if_move_shift): Likewise.
24083 (if_shift_shift): Likewise.
24084 (if_not_arith): Likewise.
24085 (if_arith_not): Likewise.
24086 (cond_move_not): Likewise.
24087 (thumb1_ashlsi3): Set type attribute.
24088 (thumb1_ashrsi3): Likewise.
24089 (thumb1_lshrsi3): Likewise.
24090 (thumb1_rotrsi3): Likewise.
24091 (shiftsi3_compare0_scratch): Likewise.
24092 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24093 (neon_mov<mode>): Likewise.
24094 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24096 (thumb2_movsi_insn): Likewise.
24097 (thumb2_cmpsi_neg_shiftsi): Likewise.
24098 (thumb2_extendqisi_v6): Likewise.
24099 (thumb2_zero_extendhisi2_v6): Likewise.
24100 (thumb2_zero_extendqisi2_v6): Likewise.
24101 (thumb2_shiftsi3_short): Likewise.
24102 (thumb2_addsi3_compare0_scratch): Likewise.
24103 (orsi_not_shiftsi_si): Likewise.
24104 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24105 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24107 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24108 (1020alu_shift_op): Likewise.
24109 (1020alu_shift_reg_op): Likewise.
24110 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24111 (alu_shift_op): Likewise.
24112 (alu_shift_reg_op): Likewise.
24113 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24114 (11_alu_shift_op): Likewise.
24115 (11_alu_shift_reg_op): Likewise.
24116 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24117 (9_alu_shift_reg_op): Likewise.
24118 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24120 (cortex_a15_alu_shift): Likewise.
24121 (cortex_a15_alu_shift_reg): Likewise.
24122 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24124 (cortex_a5_alu_shift): Likewise.
24125 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24127 (cortex_a53_alu_shift): Likewise.
24128 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24130 (cortex_a7_alu_reg): Likewise.
24131 (cortex_a7_alu_shift): Likewise.
24132 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24134 (cortex_a8_alu_shift): Likewise.
24135 (cortex_a8_alu_shift_reg): Likewise.
24136 (cortex_a8_mov): Likewise.
24137 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24138 (cortex_a9_dp_shift): Likewise.
24139 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24141 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24143 (cortex_r4_mov): Likewise.
24144 (cortex_r4_alu_shift): Likewise.
24145 (cortex_r4_alu_shift_reg): Likewise.
24146 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24147 (526_alu_shift_op): Likewise.
24148 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24149 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24150 (626te_alu_shift_op): Likewise.
24151 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24152 (726te_alu_op): Likewise.
24153 (726te_alu_shift_op): Likewise.
24154 (726te_alu_shift_reg_op): Likewise.
24155 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24156 (mp626_alu_shift_op): Likewise.
24157 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24158 (pj4_alu_e1_conds): Likewise.
24159 (pj4_alu): Likewise.
24160 (pj4_alu_conds): Likewise.
24161 (pj4_shift): Likewise.
24162 (pj4_shift_conds): Likewise.
24163 (pj4_alu_shift): Likewise.
24164 (pj4_alu_shift_conds): Likewise.
24165 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24167 (cortexa7_older_only): Likewise.
24168 (cortexa7_younger): Likewise.
24170 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24172 * ipa-pure-const.c (generate_summary): Rename to...
24173 (pure_const_generate_summary): ... this.
24175 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24177 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24179 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24182 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24185 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24187 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24188 enabled without -march=zEC12.
24189 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24192 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24194 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24195 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24196 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24197 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24198 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24199 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24200 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24202 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24203 and ISA_HAS_NMADD3_NMSUB3.
24204 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24205 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24206 (nmsub4<mode>, nmsub3<mode>): Likewise.
24207 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24209 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24211 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24212 TARGET_MIPS5400 checking.
24214 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24215 Peter Bergner <bergner@vnet.ibm.com>
24217 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24218 registers in the comment.
24219 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24220 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24221 rather than FIRST_PSEUDO_REGISTERS.
24223 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24226 enable extra ISA flags with TARGET_HTM.
24228 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24230 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24233 2013-07-15 Cong Hou <congh@google.com>
24235 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24236 in compare function for sorting.
24238 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24240 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24241 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24242 * config/rs6000/rs6000.opt: Add -mhtm option.
24243 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24244 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24245 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24246 __HTM__ if the HTM instructions are available.
24247 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24248 htm_spr_reg_operand): New define_predicates.
24249 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24250 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24252 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24253 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24254 HTM builtin functions.
24255 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24256 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24257 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24258 (rs6000_builtin_mask_calculate): Likewise.
24259 (rs6000_option_override_internal): Likewise.
24260 (bdesc_htm): Add new HTM builtin support.
24261 (htm_spr_num): New function.
24262 (htm_spr_regno): Likewise.
24263 (rs6000_htm_spr_icode): Likewise.
24264 (htm_expand_builtin): Likewise.
24265 (htm_init_builtins): Likewise.
24266 (rs6000_expand_builtin): Add support for HTM builtin functions.
24267 (rs6000_init_builtins): Likewise.
24268 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24270 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24271 (TARGET_HTM, MASK_HTM): Define macros.
24272 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24273 (FIXED_REGISTERS): Likewise.
24274 (CALL_USED_REGISTERS): Likewise.
24275 (CALL_REALLY_USED_REGISTERS): Likewise.
24276 (REG_ALLOC_ORDER): Likewise.
24277 (enum reg_class): Likewise.
24278 (REG_CLASS_NAMES): Likewise.
24279 (REG_CLASS_CONTENTS): Likewise.
24280 (REGISTER_NAMES): Likewise.
24281 (ADDITIONAL_REGISTER_NAMES): Likewise.
24282 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24283 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24284 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24285 * config/rs6000/htm.md: New file.
24286 * config/rs6000/htmintrin.h: New file.
24287 * config/rs6000/htmxlintrin.h: New file.
24289 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24291 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24292 Define SYMBOL_TINY_GOT, update comment.
24293 * config/aarch64/aarch64.c
24294 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24295 (aarch64_expand_mov_immediate): Likewise.
24296 (aarch64_print_operand): Likewise.
24297 (aarch64_classify_symbol): Likewise.
24298 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24299 (ldr_got_tiny): Define.
24301 2013-07-13 Tobias Grosser <tobias@grosser.es>
24303 PR tree-optimization/54094
24304 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24305 scheduling dimension for the parallelism check from the polyhedral
24306 information in the AST.
24307 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24310 2013-07-13 Jason Merrill <jason@redhat.com>
24312 * print-tree.c (debug_vec_tree): Use debug_raw.
24313 (debug_raw (vec<tree, va_gc> &)): New.
24314 (debug_raw (vec<tree, va_gc> *)): New.
24315 * tree.h: Declare them.
24317 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24319 * ifcvt.c (ifcvt_after_combine): New static variable.
24320 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24322 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24323 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24324 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24326 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24328 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24330 2013-07-12 Michael Matz <matz@suse.de>
24332 PR middle-end/55771
24333 * convert.c (convert_to_real): Reject non-float inner types.
24335 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24337 * config/aarch64/aarch64-protos.h
24338 (aarch64_simd_immediate_valid_for_move): Remove.
24339 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24340 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24342 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24344 2013-07-11 Steve Ellcey <sellcey@mips.com>
24346 * config/mips/mips.c (mips_conditional_register_usage): Do not
24347 use t[0-7] registers in MIPS16 mode when optimizing for size.
24349 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24351 * config/i386/i386.c (dispatch_function_versions): Fix array
24352 indexing of function_version_info to match actual_versions.
24354 2013-07-11 Teresa Johnson <tejohnson@google.com>
24356 * vec.h (struct va_gc): Move release out-of-line.
24357 (va_gc::release): Call ggc_free on released vec.
24359 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24361 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24362 Require GOT register as additional operand in UNSPEC.
24363 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24364 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24365 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24366 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24367 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24368 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24369 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24371 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24374 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24375 name seen by assembler/linker rather if available.
24377 2013-07-11 Andreas Schwab <schwab@suse.de>
24379 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24381 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24383 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24385 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24387 * doc/tm.texi.in: Move hook documentation to ....
24388 * target.def: ... here.
24390 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24391 text on @hook line.
24392 * doc/tm.texi: Regenerate.
24394 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24397 * doc/invoke.texi: Document -Wconditionally-supported.
24399 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24402 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24405 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24408 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24409 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24410 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24411 Remove duplicate devices.
24412 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24413 * config/avr/t-multilib: Regenerate.
24414 * config/avr/avr-tables.opt: Regenerate.
24415 * doc/avr-mmcu.texi: Regenerate.
24417 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24420 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24422 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24424 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24425 the cost of MULT when optimizing for size.
24427 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24429 * config/cr16/cr16-protos.h: Don't include target.h.
24431 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24433 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24434 adjust register size for TDmode and TFmode for VSX registers.
24436 2013-07-08 Kai Tietz <ktietz@redhat.com>
24439 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24440 hook_bool_const_tree_true.
24442 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24444 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24445 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24446 * config/s390/s390.md: Define FPR*_REGNUM constants.
24447 Fix FPR2_REGNUM constant (18 -> 17).
24448 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24449 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24450 ("trunc<BFP:mode><DFP_ALL:mode>2")
24451 ("trunc<DFP_ALL:mode><BFP:mode>2")
24452 ("*extend<BFP:mode><DFP_ALL:mode>2")
24453 ("*extend<DFP_ALL:mode><BFP:mode>2")
24454 ("extend<BFP:mode><DFP_ALL:mode>2")
24455 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24458 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24460 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24462 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24464 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24465 and cfun_fpr_bit_p to cfun_fpr_save_p.
24466 (s390_frame_area, s390_register_info, s390_frame_info)
24467 (s390_emit_prologue, s390_emit_epilogue)
24468 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24470 * config/s390/s390.h: Define *_REGNUM macros for floating point
24473 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24475 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24477 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24479 PR rtl-optimization/57786
24480 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24481 and break out of the loop when it is set to false.
24483 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24486 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24487 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24488 (const_int 63)) 0)).
24489 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24490 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24491 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24493 PR rtl-optimization/57829
24494 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24495 mask bits outside of mode are just sign-extension from mode to HWI.
24497 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24499 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24500 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24501 adjust_address instead of change_address to keep info about alignment.
24502 (emit_strmov): Remove.
24503 (emit_memmov): New function.
24504 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24505 (expand_movmem_epilogue): Likewise and return updated rtx for
24507 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24508 destination and source.
24509 (decide_alignment): Refactor, handle vector_loop.
24510 (ix86_expand_movmem): Likewise.
24511 (ix86_expand_setmem): Likewise.
24512 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24514 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24516 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24517 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24519 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24521 * config/i386/sse.md (sse_movlhps): Change alternative 3
24522 of operand 2 to "m".
24524 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24527 * config/i386/sse.md (iptr): New mode attribute.
24528 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24529 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24530 (<sse>_vmmul<mode>3): Ditto.
24531 (<sse>_vmdiv<mode>3): Ditto.
24532 (sse_vmrcpv4sf2): Ditto.
24533 (<sse>_vmsqrt<mode>2): Ditto.
24534 (sse_vmrsqrtv4sf2): Ditto.
24535 (<sse>_vm<code><mode>3): Ditto.
24536 (avx_vmcmp<mode>3): Ditto.
24537 (<sse>_vmmaskcmp<mode>3): Ditto.
24538 (<sse>_comi): Ditto.
24539 (<sse>_ucomi): Ditto.
24540 (*xop_vmfrcz_<mode>): Ditto.
24541 (*fmai_fmadd_<mode>): Ditto.
24542 (*fmai_fmsub_<mode>): Ditto.
24543 (*fmai_fnmadd_<mode>): Ditto.
24544 (*fmai_fnmsub_<mode>): Ditto.
24545 (*fma4i_vmfmadd_<mode>): Ditto.
24546 (*fma4i_vmfmsub_<mode>): Ditto.
24547 (*fma4i_vmfnmadd_<mode>): Ditto.
24548 (*fma4i_vmfnmsub_<mode>): Ditto.
24549 (*xop_vmfrcz_<mode>): Ditto.
24550 (sse_cvtps2pi): Ditto.
24551 (sse_cvttps2pi): Ditto.
24552 (sse_cvtss2si): Ditto.
24553 (sse_cvtss2si_2): Ditto.
24554 (sse_cvtss2siq_2): Ditto.
24555 (sse_cvttss2si): Ditto.
24556 (sse_cvttss2siq): Ditto.
24557 (sse_cvtsd2si): Ditto.
24558 (sse_cvtsd2si_2): Ditto.
24559 (sse_cvtsd2siq_2): Ditto.
24560 (sse_cvttsd2si): Ditto.
24561 (sse_cvttsd2siq): Ditto.
24562 (sse_cvtsd2ss): Ditto.
24563 (sse_cvtss2sd): Ditto.
24564 (avx2_pbroadcast<mode>): Ditto.
24565 (avx2_pbroadcast<mode>_1): Ditto.
24566 (*avx_vperm_broadcast_v4sf): Ditto.
24568 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24569 (sse_movlhps): Ditto.
24570 (sse_storehps): Ditto.
24571 (sse_loadhps): Ditto.
24572 (sse_storelps): Ditto.
24573 (sse_loadlps): Ditto.
24574 (*vec_concatv4sf): Ditto.
24575 (*vec_interleave_highv2df): Ditto.
24576 (*vec_interleave_lowv2df): Ditto.
24577 (*vec_extractv2df_1_sse): Ditto.
24578 (*vec_extractv2df_0_sse): Ditto.
24579 (sse2_storelpd): Ditto.
24580 (sse2_loadlpd): Ditto.
24581 (sse2_movsd): Ditto.
24582 (*vec_concatv4si): Ditto.
24583 (vec_concatv2di): Ditto.
24585 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24586 for Intel asm dialect.
24587 (mmx_punpcklwd): Ditto.
24588 (mmx_punpckldq): Ditto.
24590 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24591 for intel assembler dialect.
24593 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24596 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24597 for BUILT_IN_C{LZ,LRSB}*.
24598 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24599 * tree-vrp.c (extract_range_basic): Handle
24600 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24601 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24602 fall thru to code calling set_value*.
24603 * builtins.c (expand_builtin): Remove *IMAX cases.
24604 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24605 if width is bigger than 2*HWI.
24607 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24609 PR rtl-optimization/55342
24610 * lra-int.h (lra_subreg_reload_pseudos): New.
24611 * lra.c: Add undoing optional reloads to the block diagram.
24612 (lra_subreg_reload_pseudos): New.
24613 (lra_optional_reload_pseudos): Change comments.
24614 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24615 lra_optional_reload_pseudos after undo transformations.
24616 * lra-assigns.c (pseudo_prefix_title): New.
24617 (lra_setup_reg_renumber): Use it.
24618 (spill_for): Ditto. Check subreg reload pseudos too.
24619 (assign_by_spills): Consider subreg reload pseudos too.
24620 * lra-constraints.c (simplify_operand_subreg): Use
24621 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24622 (curr_insn_transform): Recognize and do optional reloads.
24623 (undo_optional_reloads): New.
24624 (lra_undo_inheritance): Call undo_optional_reloads.
24626 2013-07-05 Thomas Quinot <quinot@adacore.com>
24628 * tree-complex.c (expand_complex_operations_1): Fix typo.
24630 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24632 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24633 (tune_params): New member 'const vec_costs'.
24634 * config/aarch64/aarch64.c (generic_vector_cost): New.
24635 (generic_tunings): New member 'generic_vector_cost'.
24636 (aarch64_builtin_vectorization_cost): New.
24637 (aarch64_add_stmt_cost): New.
24638 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24639 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24641 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24644 * config/i386/predicates.md (vsib_address_operand): Disallow
24645 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24647 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24649 PR middle-end/55030
24650 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24651 expand_builtin_setjmp_receiver.
24652 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24653 with NULL for the label parameter.
24654 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24655 the frame-pointer. Adjust comments.
24656 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24657 only if LABEL is non-NULL.
24659 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24661 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24662 (ARM_ABI_AAPCS64): Ditto.
24664 (ARM_DEFAULT_ABI): Ditto.
24666 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24668 * config/aarch64/aarch64-builtins.c
24669 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24670 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24672 * config/aarch64/aarch64-simd.md
24673 (aarch64_ld1<VALL:mode>): New.
24674 (aarch64_st1<VALL:mode>): Likewise.
24675 * config/aarch64/arm_neon.h
24676 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24678 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24680 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24682 (ix86_option_override_internal):Turn on all -mavx target flags by
24683 default as they are dependent on AVX anyway.
24685 2013-07-02 Cary Coutant <ccoutant@google.com>
24687 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24688 deterministic hash.
24689 (loc_checksum_ordered): Likewise.
24690 (hash_loc_operands): Remove inline keyword.
24692 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24694 PR tree-optimization/57741
24695 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24696 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24697 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24698 Allow REAL_CST step_exprs if flag_associative_math.
24699 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24701 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24703 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24705 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24707 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24709 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24711 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24713 (iorsi3_insn): Likewise.
24714 (arm_xorsi3): Likewise.
24716 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24718 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24720 (attribute "type"): ... here, and prefix with "wmmx_".
24721 (attribute "core_cycles"): Update for attribute changes.
24722 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24723 (tbcstv4hi): Likewise.
24724 (tbcstv2si): Likewise.
24725 (iwmmxt_iordi3): Likewise.
24726 (iwmmxt_xordi3): Likewise.
24727 (iwmmxt_anddi3): Likewise.
24728 (iwmmxt_nanddi3): Likewise.
24729 (iwmmxt_arm_movdi): Likewise.
24730 (iwmmxt_movsi_insn): Likewise.
24731 (mov<mode>_internal): Likewise.
24732 (and<mode>3_iwmmxt): Likewise.
24733 (ior<mode>3_iwmmxt): Likewise.
24734 (xor<mode>3_iwmmxt): Likewise.
24735 (add<mode>3_iwmmxt): Likewise.
24736 (ssaddv8qi3): Likewise.
24737 (ssaddv4hi3): Likewise.
24738 (ssaddv2si3): Likewise.
24739 (usaddv8qi3): Likewise.
24740 (usaddv4hi3): Likewise.
24741 (usaddv2si3): Likewise.
24742 (sub<mode>3_iwmmxt): Likewise.
24743 (sssubv8qi3): Likewise.
24744 (sssubv4hi3): Likewise.
24745 (sssubv2si3): Likewise.
24746 (ussubv8qi3): Likewise.
24747 (ussubv4hi3): Likewise.
24748 (ussubv2si3): Likewise.
24749 (mulv4hi3_iwmmxt): Likewise.
24750 (smulv4hi3_highpart): Likewise.
24751 (umulv4hi3_highpart): Likewise.
24752 (iwmmxt_wmacs): Likewise.
24753 (iwmmxt_wmacsz): Likewise.
24754 (iwmmxt_wmacu): Likewise.
24755 (iwmmxt_wmacuz): Likewise.
24756 (iwmmxt_clrdi): Likewise.
24757 (iwmmxt_clrv8qi): Likewise.
24758 (iwmmxt_clr4hi): Likewise.
24759 (iwmmxt_clr2si): Likewise.
24760 (iwmmxt_uavgrndv8qi3): Likewise.
24761 (iwmmxt_uavgrndv4hi3): Likewise.
24762 (iwmmxt_uavgv8qi3): Likewise.
24763 (iwmmxt_uavgv4hi3): Likewise.
24764 (iwmmxt_tinsrb): Likewise.
24765 (iwmmxt_tinsrh): Likewise.
24766 (iwmmxt_tinsrw): Likewise.
24767 (iwmmxt_textrmub): Likewise.
24768 (iwmmxt_textrmsb): Likewise.
24769 (iwmmxt_textrmuh): Likewise.
24770 (iwmmxt_textrmsh): Likewise.
24771 (iwmmxt_textrmw): Likewise.
24772 (iwmxxt_wshufh): Likewise.
24773 (eqv8qi3): Likewise.
24774 (eqv4hi3): Likewise.
24775 (eqv2si3): Likewise.
24776 (gtuv8qi3): Likewise.
24777 (gtuv4hi3): Likewise.
24778 (gtuv2si3): Likewise.
24779 (gtv8qi3): Likewise.
24780 (gtv4hi3): Likewise.
24781 (gtv2si3): Likewise.
24782 (smax<mode>3_iwmmxt): Likewise.
24783 (umax<mode>3_iwmmxt): Likewise.
24784 (smin<mode>3_iwmmxt): Likewise.
24785 (umin<mode>3_iwmmxt): Likewise.
24786 (iwmmxt_wpackhss): Likewise.
24787 (iwmmxt_wpackwss): Likewise.
24788 (iwmmxt_wpackdss): Likewise.
24789 (iwmmxt_wpackhus): Likewise.
24790 (iwmmxt_wpackwus): Likewise.
24791 (iwmmxt_wpackdus): Likewise.
24792 (iwmmxt_wunpckihb): Likewise.
24793 (iwmmxt_wunpckihh): Likewise.
24794 (iwmmxt_wunpckihw): Likewise.
24795 (iwmmxt_wunpckilb): Likewise.
24796 (iwmmxt_wunpckilh): Likewise.
24797 (iwmmxt_wunpckilw): Likewise.
24798 (iwmmxt_wunpckehub): Likewise.
24799 (iwmmxt_wunpckehuh): Likewise.
24800 (iwmmxt_wunpckehuw): Likewise.
24801 (iwmmxt_wunpckehsb): Likewise.
24802 (iwmmxt_wunpckehsh): Likewise.
24803 (iwmmxt_wunpckehsw): Likewise.
24804 (iwmmxt_wunpckelub): Likewise.
24805 (iwmmxt_wunpckeluh): Likewise.
24806 (iwmmxt_wunpckeluw): Likewise.
24807 (iwmmxt_wunpckelsb): Likewise.
24808 (iwmmxt_wunpckelsh): Likewise.
24809 (iwmmxt_wunpckelsw): Likewise.
24810 (ror<mode>3): Likewise.
24811 (ashr<mode>3_iwmmxt): Likewise.
24812 (lshr<mode>3_iwmmxt): Likewise.
24813 (ashl<mode>3_iwmmxt): Likewise.
24814 (ror<mode>3_di): Likewise.
24815 (ashr<mode>3_di): Likewise.
24816 (lshr<mode>3_di): Likewise.
24817 (ashl<mode>3_di): Likewise.
24818 (iwmmxt_wmadds): Likewise.
24819 (iwmmxt_wmaddu): Likewise.
24820 (iwmmxt_tmia): Likewise.
24821 (iwmmxt_tmiaph): Likewise.
24822 (iwmmxt_tmiabb): Likewise.
24823 (iwmmxt_tmiatb): Likewise.
24824 (iwmmxt_tmiabt): Likewise.
24825 (iwmmxt_tmiatt): Likewise.
24826 (iwmmxt_tmovmskb): Likewise.
24827 (iwmmxt_tmovmskh): Likewise.
24828 (iwmmxt_tmovmskw): Likewise.
24829 (iwmmxt_waccb): Likewise.
24830 (iwmmxt_wacch): Likewise.
24831 (iwmmxt_waccw): Likewise.
24832 (iwmmxt_waligni): Likewise.
24833 (iwmmxt_walignr): Likewise.
24834 (iwmmxt_walignr0): Likewise.
24835 (iwmmxt_walignr1): Likewise.
24836 (iwmmxt_walignr2): Likewise.
24837 (iwmmxt_walignr3): Likewise.
24838 (iwmmxt_wsadb): Likewise.
24839 (iwmmxt_wsadh): Likewise.
24840 (iwmmxt_wsadbz): Likewise.
24841 (iwmmxt_wsadhz): Likewise.
24842 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24843 (iwmmxt_wabsdiffb): Likewise.
24844 (iwmmxt_wabsdiffh): Likewise.
24845 (iwmmxt_wabsdiffw): Likewise.
24846 (iwmmxt_waddsubhx): Likewise
24847 (iwmmxt_wsubaddhx): Likewise.
24848 (addc<mode>3): Likewise.
24849 (iwmmxt_avg4): Likewise.
24850 (iwmmxt_avg4r): Likewise.
24851 (iwmmxt_wmaddsx): Likewise.
24852 (iwmmxt_wmaddux): Likewise.
24853 (iwmmxt_wmaddsn): Likewise.
24854 (iwmmxt_wmaddun): Likewise.
24855 (iwmmxt_wmulwsm): Likewise.
24856 (iwmmxt_wmulwum): Likewise.
24857 (iwmmxt_wmulsmr): Likewise.
24858 (iwmmxt_wmulumr): Likewise.
24859 (iwmmxt_wmulwsmr): Likewise.
24860 (iwmmxt_wmulwumr): Likewise.
24861 (iwmmxt_wmulwl): Likewise.
24862 (iwmmxt_wqmulm): Likewise.
24863 (iwmmxt_wqmulwm): Likewise.
24864 (iwmmxt_wqmulmr): Likewise.
24865 (iwmmxt_wqmulwmr): Likewise.
24866 (iwmmxt_waddbhusm): Likewise.
24867 (iwmmxt_waddbhusl): Likewise.
24868 (iwmmxt_wqmiabb): Likewise.
24869 (iwmmxt_wqmiabt): Likewise.
24870 (iwmmxt_wqmiatb): Likewise.
24871 (iwmmxt_wqmiatt): Likewise.
24872 (iwmmxt_wqmiabbn): Likewise.
24873 (iwmmxt_wqmiabtn): Likewise.
24874 (iwmmxt_wqmiatbn): Likewise.
24875 (iwmmxt_wqmiattn): Likewise.
24876 (iwmmxt_wmiabb): Likewise.
24877 (iwmmxt_wmiabt): Likewise.
24878 (iwmmxt_wmiatb): Likewise.
24879 (iwmmxt_wmiatt): Likewise.
24880 (iwmmxt_wmiabbn): Likewise.
24881 (iwmmxt_wmiabtn): Likewise.
24882 (iwmmxt_wmiatbn): Likewise.
24883 (iwmmxt_wmiattn): Likewise.
24884 (iwmmxt_wmiawbb): Likewise.
24885 (iwmmxt_wmiawbt): Likewise.
24886 (iwmmxt_wmiawtb): Likewise.
24887 (iwmmxt_wmiawtt): Likewise.
24888 (iwmmxt_wmiawbbn): Likewise.
24889 (iwmmxt_wmiawbtn): Likewise.
24890 (iwmmxt_wmiawtbn): Likewise.
24891 (iwmmxt_wmiawttn): Likewise.
24892 (iwmmxt_wmerge): Likewise.
24893 (iwmmxt_tandc<mode>3): Likewise.
24894 (iwmmxt_torc<mode>3): Likewise.
24895 (iwmmxt_torvsc<mode>3): Likewise.
24896 (iwmmxt_textrc<mode>3): Likewise.
24897 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
24898 (wmmxt_pack): Likewise.
24899 (wmmxt_mult_c1): Likewise.
24900 (wmmxt_mult_c2): Likewise.
24901 (wmmxt_alu_c1): Likewise.
24902 (wmmxt_alu_c2): Likewise.
24903 (wmmxt_alu_c3): Likewise.
24904 (wmmxt_transfer_c1): Likewise.
24905 (wmmxt_transfer_c2): Likewise.
24906 (wmmxt_transfer_c3): Likewise.
24907 (marvell_f_iwmmxt_wstr): Likewise.
24908 (marvell_f_iwmmxt_wldr): Likewise.
24910 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
24912 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
24914 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24917 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24918 * lra-constraints.c (need_for_split_p): Check call used hard regs
24919 living through calls.
24921 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
24922 call used regs for call insn.
24924 2013-06-28 Jakub Jelinek <jakub@redhat.com>
24927 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
24928 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
24930 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24932 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
24934 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24936 * lra-constraints.c (need_for_split_p): Check call used hard regs
24937 living through calls.
24939 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
24942 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
24943 to tie with any other modes. Eliminate Altivec vector mode tests,
24944 since these are a subset of ALTIVEC or VSX vector modes. Simplify
24945 code, to return 0 if testing MODE2 for a condition, if we've
24946 already tested MODE1 for the same condition.
24948 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24950 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
24953 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24955 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24956 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
24958 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24960 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
24962 (aarch64_symbolic_constant_p): Remove.
24963 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
24964 static. Fix line length and white space.
24965 (aarch64_symbolic_constant_p): Remove.
24966 * config/aarch64/predicates.md (aarch64_valid_symref):
24967 Use aarch64_classify_symbol_expression.
24969 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24971 * config/arm/constraints.md (Ts): New constraint.
24972 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
24974 (compare_scc): Use "Ts" constraint for operand 0.
24975 (ior_scc_scc): Likewise.
24976 (and_scc_scc): Likewise.
24977 (and_scc_scc_nodom): Likewise.
24978 (ior_scc_scc_cmp): Likewise for operand 7.
24979 (and_scc_scc_cmp): Likewise.
24980 * config/arm/thumb2.md (thumb2_movsi_insn):
24981 Add alternatives for 16-bit encodings.
24982 (thumb2_movhi_insn): Likewise.
24983 (thumb2_movsicc_insn): Likewise.
24984 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
24985 (thumb2_negscc): Use "Ts" constraint.
24986 Move mvn instruction outside cond_exec block.
24987 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
24988 for 16-bit encodings.
24990 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24992 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
24994 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
24995 (mulsi3subsi): Likewise.
24996 (mulsidi3adddi): Likewise.
24997 (mulsidi3_v6): Likewise.
24998 (umulsidi3_v6): Likewise.
24999 (umulsidi3adddi_v6): Likewise.
25000 (smulsi3_highpart_v6): Likewise.
25001 (umulsi3_highpart_v6): Likewise.
25002 (mulhisi3tb): Likewise.
25003 (mulhisi3bt): Likewise.
25004 (mulhisi3tt): Likewise.
25005 (maddhisi4): Likewise.
25006 (maddhisi4tb): Likewise.
25007 (maddhisi4tt): Likewise.
25008 (maddhidi4): Likewise.
25009 (maddhidi4tb): Likewise.
25010 (maddhidi4tt): Likewise.
25011 (zeroextractsi_compare0_scratch): Likewise.
25012 (insv_zero): Likewise.
25013 (insv_t2): Likewise.
25014 (anddi_notzesidi_di): Likewise.
25015 (anddi_notsesidi_di): Likewise.
25016 (andsi_notsi_si): Likewise.
25017 (iordi_zesidi_di): Likewise.
25018 (xordi_zesidi_di): Likewise.
25019 (andsi_iorsi3_notsi): Likewise.
25020 (smax_0): Likewise.
25021 (smax_m1): Likewise.
25022 (smin_0): Likewise.
25023 (not_shiftsi): Likewise.
25024 (unaligned_loadsi): Likewise.
25025 (unaligned_loadhis): Likewise.
25026 (unaligned_loadhiu): Likewise.
25027 (unaligned_storesi): Likewise.
25028 (unaligned_storehi): Likewise.
25029 (extv_reg): Likewise.
25030 (extzv_t2): Likewise.
25031 (divsi3): Likewise.
25032 (udivsi3): Likewise.
25033 (arm_zero_extendhisi2addsi): Likewise.
25034 (arm_zero_extendqisi2addsi): Likewise.
25035 (compareqi_eq0): Likewise.
25036 (arm_extendhisi2_v6): Likewise.
25037 (arm_extendqisi2addsi): Likewise.
25038 (arm_movt): Likewise.
25039 (thumb2_ldrd): Likewise.
25040 (thumb2_ldrd_base): Likewise.
25041 (thumb2_ldrd_base_neg): Likewise.
25042 (thumb2_strd): Likewise.
25043 (thumb2_strd_base): Likewise.
25044 (thumb2_strd_base_neg): Likewise.
25045 (arm_negsi2): Add alternative for 16-bit encoding.
25046 (arm_one_cmplsi2): Likewise.
25048 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25050 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25051 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25052 (movdfcc): Likewise.
25053 * config/arm/vfp.md (*thumb2_movsf_vfp):
25054 Disable predication for arm_restrict_it.
25055 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25056 (*thumb2_movdfcc_vfp): Likewise.
25057 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25058 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25059 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25060 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25061 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25062 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25063 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25064 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25065 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25066 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25067 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25068 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25069 Disable predication for arm_restrict_it.
25071 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25073 * config/i386/bmiintrin.h (_bextr_u32): New.
25074 (_bextr_u64): Ditto.
25076 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25078 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25079 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25080 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25081 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25082 * config/mips/n32-elf.h: ...this new file.
25084 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25087 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25088 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25090 2013-06-27 Catherine Moore <clm@codesourcery.com>
25092 * config/mips/mips-tables.opt: Regenerate.
25093 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25094 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25095 * doc/invoke.texi: Add -m14kc.
25097 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25100 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25101 constraints of operand 1 and 2.
25104 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25105 to match RTL canonicalization. Swap predicates and
25106 constraints of operand 1 and 2.
25108 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25110 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25111 Process OP_INOUT regs for splitting too.
25113 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25115 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25116 decl before the loop, initialize to NULL.
25117 (vectorizable_load): Initialize ptr_incr to NULL.
25119 2013-06-27 Martin Jambor <mjambor@suse.cz>
25122 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25123 * ipa-ref.c (ipa_maybe_record_reference): New function.
25124 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25125 * ipa-cp.c (create_specialized_node): Record potential references from
25127 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25129 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25131 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25132 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25133 'mode' to force_reg.
25134 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25135 (aarch64_expand_mov_immediate): Likewise.
25137 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25139 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25140 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25142 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25144 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25145 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25146 (struct machine_function): Add tbegin_p.
25147 (s390_canonicalize_comparison): Fold CC mode compares to
25148 conditional jump if possible.
25149 (s390_emit_jump): Return the emitted jump.
25150 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25151 Handle CCRAWmode compares.
25152 (s390_option_override): Default to -mhtm if available.
25153 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25154 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25155 FPRs instead of df_regs_ever_live_p.
25156 (s390_optimize_nonescaping_tx): New function.
25157 (s390_init_frame_layout): Extend clobbered_regs array to cover
25159 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25160 (s390_expand_tbegin): New function.
25161 (enum s390_builtin): New enum definition.
25162 (code_for_builtin): New array definition.
25163 (s390_init_builtins): New function.
25164 (s390_expand_builtin): New function.
25165 (TARGET_INIT_BUILTINS): Define.
25166 (TARGET_EXPAND_BUILTIN): Define.
25167 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25168 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25169 (s390_alc_comparison): Likewise.
25170 * config/s390/s390-modes.def: Add CCRAWmode.
25171 * config/s390/s390.h (processor_flags): Add PF_TX.
25172 (TARGET_CPU_HTM): Define macro.
25173 (TARGET_HTM): Define macro.
25174 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25175 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25176 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25177 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25178 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25179 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25180 ("*cc_to_int"): Move up.
25181 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25182 constants other than 0.
25183 ("*ccraw_to_int"): New insn and splitter definition.
25184 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25185 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25186 ("tx_assist"): New expander.
25187 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25188 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25189 * config/s390/s390.opt: Add -mhtm option.
25190 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25191 * config/s390/htmxlintrin.h: New file.
25192 * config/s390/htmintrin.h: New file.
25193 * config/s390/s390intrin.h: New file.
25194 * doc/extend.texi: Document htm builtins.
25195 * config.gcc: Add the new header files to extra_headers.
25197 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25199 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25200 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25202 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25203 Pat Haugen <pthaugen@us.ibm.com>
25204 Peter Bergner <bergner@vnet.ibm.com>
25206 * config/rs6000/power8.md: New.
25207 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25208 setting for power8 entry.
25209 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25210 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25211 test for Power4/Power5 only.
25212 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25214 (force_new_group): Adjust comment.
25215 * config/rs6000/rs6000.md: Include power8.md.
25217 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25219 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25220 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25222 (tune_params): Update comment.
25223 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25224 (arm_max_conditional_execute): New function.
25225 (thumb2_final_prescan_insn): Use max_insn_skipped and
25226 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25228 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25230 PR tree-optimization/57705
25231 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25232 SSA_NAME step, provided that it is not defined inside the loop.
25233 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25234 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25236 2013-06-25 Martin Jambor <mjambor@suse.cz>
25238 PR middle-end/57670
25239 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25240 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25242 (ipa_note_param_call): Initialize member_ptr flag.
25243 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25244 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25245 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25246 (ipa_read_indirect_edge_info): Likewise.
25248 2013-06-25 Richard Biener <rguenther@suse.de>
25250 PR middle-end/56977
25251 * passes.c (init_optimization_passes): Move pass_fold_builtins
25252 and pass_dce earlier with -Og.
25254 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25256 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25257 <BIT_FIELD_REF>: Remove trailing TAB.
25258 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25261 2013-06-24 Martin Jambor <mjambor@suse.cz>
25263 PR tree-optimization/57358
25264 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25265 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25266 (ipa_analyze_params_uses): Generate pessimistic info when true.
25268 2013-06-24 Martin Jambor <mjambor@suse.cz>
25270 PR tree-optimization/57539
25271 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25272 global.inlined_to of the new node to it. All callers changed.
25273 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25274 inlining_into, pass it to cgraph_clone_node.
25275 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25276 ipa_free_edge_args_substructures.
25277 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25278 rdesc linked list. Do not assert rdesc edges have inlined caller.
25279 Assert we have found an rdesc in the rdesc list.
25281 2013-06-24 Richard Biener <rguenther@suse.de>
25283 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25284 (pointer_set_lookup): Declare.
25285 (class pointer_map): New template class implementing a
25286 generic pointer to T map.
25287 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25288 pointer_map<T>::contains, pointer_map<T>::insert,
25289 pointer_map<T>::traverse): New functions.
25290 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25291 (pointer_set_lookup): New function.
25292 (pointer_set_contains): Use pointer_set_lookup.
25293 (pointer_set_insert): Likewise.
25294 (insert_aux): Remove.
25295 (struct pointer_map_t): Embed a pointer_set_t.
25296 (pointer_map_create): Adjust.
25297 (pointer_map_destroy): Likewise.
25298 (pointer_map_contains): Likewise.
25299 (pointer_map_insert): Likewise.
25300 (pointer_map_traverse): Likewise.
25301 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25302 pointer_map<unsigned> instead of a pointer_map_t.
25303 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25304 (streamer_tree_cache_lookup): Likewise.
25305 (streamer_tree_cache_create): Likewise.
25306 (streamer_tree_cache_delete): Likewise.
25307 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25308 pointer_map<unsigned> instead of a pointer_map_t.
25309 (lto_init_tree_ref_encoder): Adjust.
25310 (lto_destroy_tree_ref_encoder): Likewise.
25311 * lto-section-out.c (lto_output_decl_index): Likewise.
25312 (lto_record_function_out_decl_state): Likewise.
25313 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25315 2013-06-24 Richard Biener <rguenther@suse.de>
25317 PR tree-optimization/57488
25318 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25320 2013-06-24 Alan Modra <amodra@gmail.com>
25322 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25323 (gen_easy_altivec_constant): Likewise.
25324 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25325 easy_vector_constant_msb): Likewise.
25327 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25330 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25331 add missing return true.
25333 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25336 * config/sh/predicates.md (general_extend_operand): Invoke
25337 general_movsrc_operand for memory operands.
25338 (general_movsrc_operand): Allow reg+reg addressing, do not use
25339 general_operand for memory operands.
25341 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25343 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25344 when current target options does not apply.
25345 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25346 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25347 * config/i386/bmiintrin.h: Pass appropriate target
25348 attributes to header.
25349 * config/i386/mmintrin.h: Ditto.
25350 * config/i386/nmmintrin.h: Ditto.
25351 * config/i386/avx2intrin.h: Ditto.
25352 * config/i386/fxsrintrin.h: Ditto.
25353 * config/i386/tbmintrin.h: Ditto.
25354 * config/i386/xsaveintrin.h: Ditto.
25355 * config/i386/f16cintrin.h: Ditto.
25356 * config/i386/xtestintrin.h: Ditto.
25357 * config/i386/xsaveoptintrin.h: Ditto.
25358 * config/i386/bmi2intrin.h: Ditto.
25359 * config/i386/lzcntintrin.h: Ditto.
25360 * config/i386/smmintrin.h: Ditto.
25361 * config/i386/wmmintrin.h: Ditto.
25362 * config/i386/x86intrin.h: Remove all header include guards.
25363 * config/i386/prfchwintrin.h: Ditto.
25364 * config/i386/pmmintrin.h: Ditto.
25365 * config/i386/tmmintrin.h: Ditto.
25366 * config/i386/xmmintrin.h: Ditto.
25367 * config/i386/popcntintrin.h: Ditto.
25368 * config/i386/rdseedintrin.h: Ditto.
25369 * config/i386/ammintrin.h: Ditto.
25370 * config/i386/emmintrin.h: Ditto.
25371 * config/i386/immintrin.h: Remove all header include guards.
25372 * config/i386/fma4intrin.h: Ditto.
25373 * config/i386/lwpintrin.h: Ditto.
25374 * config/i386/xopintrin.h: Ditto.
25375 * config/i386/ia32intrin.h: Ditto.
25376 * config/i386/avxintrin.h: Ditto.
25377 * config/i386/rtmintrin.h: Ditto.
25378 * config/i386/fmaintrin.h: Ditto.
25379 * config/i386/mm3dnow.h: Ditto.
25381 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25383 * common/config/i386/i386-common.c: Handle LZCNT.
25385 2013-06-22 Andi Kleen <ak@linux.intel.com>
25387 * doc/extend.texi: Use __atomic_store_n instead of
25388 __atomic_store in HLE example.
25390 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25392 * config/sh/sh.c: Remove <cstdlib> workaround.
25394 2013-06-21 Andi Kleen <ak@linux.intel.com>
25396 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25398 2013-06-21 Andi Kleen <ak@linux.intel.com>
25400 * doc/extend.texi: Document that __atomic_clear and
25401 __atomic_test_and_set should only be used with bool.
25403 2013-06-20 Jan Hubicka <jh@suse.cz>
25405 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25406 types_same_for_odr.
25407 * tree.c (decls_same_for_odr): New function.
25408 (same_for_edr): New function.
25409 (types_same_for_odr): New function.
25410 (get_binfo_at_offset): Use it.
25411 * tree.h (types_same_for_odr): Declare.
25413 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25414 Jason Merrill <jason@redhat.com>
25416 * system.h: Include <cstdlib> as well as <stdlib.h>.
25418 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25421 * config/i386/i386.c (construct_container): Report error if
25422 long double is used with disabled x87 float returns.
25424 2013-06-20 Jan Hubicka <jh@suse.cz>
25426 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25428 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25430 PR rtl-optimization/57425
25431 PR rtl-optimization/57569
25432 * alias.c (write_dependence_p): Remove parameters mem_mode and
25433 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25434 Changed all callers.
25435 (canon_anti_dependence): Get comments and semantics in sync.
25436 Add parameter mem_canonicalized. Changed all callers.
25437 * rtl.h (canon_anti_dependence): Update prototype.
25439 2013-06-20 Richard Biener <rguenther@suse.de>
25441 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25442 byte case, inline streamer_read_uchar and defer section
25445 2013-06-20 Richard Biener <rguenther@suse.de>
25447 PR tree-optimization/57584
25448 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25449 SSA names into the expanded expression that take part in
25450 abnormal coalescing.
25452 2013-06-19 Sharad Singhai <singhai@google.com>
25454 * gcov.c (print_usage): Handle new option.
25455 (process_args): Ditto.
25456 (get_gcov_intermediate_filename): New function.
25457 (output_intermediate_file): New function.
25458 (output_gcov_file): New function
25459 (generate_results): Handle new option.
25460 (release_function): Relase demangled name.
25461 (read_graph_file): Handle demangled name.
25462 (output_lines): Ditto.
25463 * doc/gcov.texi: Document gcov intermediate format.
25465 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25468 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25469 (lra_emit_add): Use the functions. Add comment about Y as an
25472 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25475 * collect2.c (collect_atexit): New.
25476 (collect_exit): Delete.
25477 (main): Register collect_atexit with atexit.
25478 (collect_wait): Change collect_exit to exit.
25480 * collect2.h (collect_exit): Delete.
25481 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25483 2013-06-19 Wei Mi <wmi@google.com>
25485 PR rtl-optimization/57518
25486 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25487 if regno is used in paradoxical subreg.
25488 (update_equiv_regs): Check pdx_subregs[regno] before
25489 set a reg to be equivalent with a mem.
25491 2013-06-19 Matthias Klose <doko@ubuntu.com>
25494 * file-find.h (find_a_file): Add a mode parameter.
25495 * file-find.c (find_a_file): Likewise.
25496 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25497 with X_OK for the executables.
25498 * collect2.c (main): Call find_a_file with X_OK.
25500 2013-06-19 Steve Ellcey <sellcey@mips.com>
25503 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25504 Use NEXT_INSN instead of next_real_insn.
25506 2013-06-19 Jan Hubicka <jh@suse.cz>
25508 * cgraph.h (const_value_known_p): Replace by ...
25509 (ctor_for_folding): .. this one.
25510 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25511 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25512 * expr.c (expand_expr_real_1): Likewise.
25513 (string_constant): Likewise.
25514 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25515 * ipa.c (process_references): Likewise.
25516 (symtab_remove_unreachable_nodes): Likewise.
25517 * ipa-inline-analysis.c (param_change_prob): Likewise.
25518 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25519 (get_base_constructor): Likwise.
25520 * varpool.c (varpool_remove_node): Likewise.
25521 (varpool_remove_initializer): LIkewise.
25522 (dump_varpool_node): LIkwise.
25523 (const_value_known_p): Rewrite to ...
25524 (ctor_for_folding): ... this one.
25526 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25529 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25530 PERSONALITY in $PATH derived prefixes.
25532 2013-06-19 Jeff Law <law@redhat.com>
25534 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25537 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25538 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25541 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25543 * config/arm/vfp.md: Move VFP instruction classification documentation
25545 * config/arm/arm.md: ... here. Update instruction classification
25548 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25550 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25551 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25552 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25554 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25557 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25558 with NEXT_INSN. Use tablejump_p to check for jump table data
25561 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25564 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25565 that now in C++ the value is correct per the C++ standards.
25567 2013-06-19 Richard Biener <rguenther@suse.de>
25569 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25570 for global context.
25572 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25575 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25578 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25579 with next_active_insn.
25581 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25583 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25584 functions are inlined during failures to flag an error.
25585 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25586 in early inline pass.
25588 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25590 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25593 2013-06-18 Julian Brown <julian@codesourcery.com>
25595 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25596 Permit virtual register pre-reload if !strict.
25597 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25599 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25601 * config/arm/neon.md (movmisalign<mode>): Use
25602 neon_perm_struct_or_reg_operand instead of
25603 neon_struct_or_register_operand.
25604 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25605 neon_permissive_struct_operand instead of neon_struct_operand.
25606 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25607 neon_vector_mem_operand.
25608 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25609 neon_vector_mem_operand.
25610 (neon_permissive_struct_operand): New.
25611 (neon_struct_or_register_operand): Rename to...
25612 (neon_perm_struct_or_reg_operand): This. Adjust call to
25613 neon_vector_mem_operand.
25615 2013-06-18 Richard Biener <rguenther@suse.de>
25617 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25618 * lto-streamer.h: Include pointer-set.h.
25619 (struct lto_decl_slot): Remove.
25620 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25621 Remove next_index entry.
25622 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25623 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25624 (lto_init_tree_ref_encoder): Adjust.
25625 (lto_destroy_tree_ref_encoder): Likewise.
25626 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25627 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25628 (lto_output_decl_index): Adjust.
25629 (lto_new_out_decl_state): Likewise.
25630 (lto_record_function_out_decl_state): Likewise.
25631 * lto-streamer-out.c (copy_function): Likewise.
25633 2013-06-18 Richard Biener <rguenther@suse.de>
25635 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25636 * cgraphunit.c: Include cfgloop.h.
25637 (init_lowered_empty_function): Initialize the loop tree.
25638 (assemble_thunk): Insert new BBs into loops.
25640 2013-06-18 Richard Biener <rguenther@suse.de>
25642 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25643 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25644 the map from cache entry to cache index optional.
25645 (streamer_tree_cache_replace_tree): Adjust accordingly.
25646 (streamer_tree_cache_append): Likewise.
25647 (streamer_tree_cache_delete): Likewise.
25648 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25649 streamer cache map from cache entry to cache index.
25650 * lto-streamer-out.c (create_output_block): Adjust.
25652 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25654 * config/arm/arm.md (attribute "insn"): Move multiplication and
25655 division attributes to...
25656 (attribute "type"): ... here. Remove mult.
25657 (attribute "mul32"): New attribute.
25658 (attribute "mul64"): Add umaal.
25659 (*arm_mulsi3): Update attributes.
25660 (*arm_mulsi3_v6): Likewise.
25661 (*thumb_mulsi3): Likewise.
25662 (*thumb_mulsi3_v6): Likewise.
25663 (*mulsi3_compare0): Likewise.
25664 (*mulsi3_compare0_v6): Likewise.
25665 (*mulsi_compare0_scratch): Likewise.
25666 (*mulsi_compare0_scratch_v6): Likewise.
25667 (*mulsi3addsi): Likewise.
25668 (*mulsi3addsi_v6): Likewise.
25669 (*mulsi3addsi_compare0): Likewise.
25670 (*mulsi3addsi_compare0_v6): Likewise.
25671 (*mulsi3addsi_compare0_scratch): Likewise.
25672 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25673 (*mulsi3subsi): Likewise.
25674 (*mulsidi3adddi): Likewise.
25675 (*mulsi3addsi_v6): Likewise.
25676 (*mulsidi3adddi_v6): Likewise.
25677 (*mulsidi3_nov6): Likewise.
25678 (*mulsidi3_v6): Likewise.
25679 (*umulsidi3_nov6): Likewise.
25680 (*umulsidi3_v6): Likewise.
25681 (*umulsidi3adddi): Likewise.
25682 (*umulsidi3adddi_v6): Likewise.
25683 (*smulsi3_highpart_nov6): Likewise.
25684 (*smulsi3_highpart_v6): Likewise.
25685 (*umulsi3_highpart_nov6): Likewise.
25686 (*umulsi3_highpart_v6): Likewise.
25687 (mulhisi3): Likewise.
25688 (*mulhisi3tb): Likewise.
25689 (*mulhisi3bt): Likewise.
25690 (*mulhisi3tt): Likewise.
25691 (maddhisi4): Likewise.
25692 (*maddhisi4tb): Likewise.
25693 (*maddhisi4tt): Likewise.
25694 (maddhidi4): Likewise.
25695 (*maddhidi4tb): Likewise.
25696 (*maddhidi4tt): Likewise.
25697 (divsi3): Likewise.
25698 (udivsi3): Likewise.
25699 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25700 (thumb2_mulsi_short_compare0): Likewise.
25701 (thumb2_mulsi_short_compare0_scratch): Likewise.
25702 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25703 (1020mult2): Likewise.
25704 (1020mult3): Likewise.
25705 (1020mult4): Likewise.
25706 (1020mult5): Likewise.
25707 (1020mult6): Likewise.
25708 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25710 (cortex_a15_mult64): Likewise.
25711 (cortex_a15_sdiv): Likewise.
25712 (cortex_a15_udiv): Likewise.
25713 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25719 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25720 (pj4_ir_div): Likewise.
25721 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25722 (11_mult2): Likewise.
25723 (11_mult3): Likewise.
25724 (11_mult4): Likewise.
25725 (11_mult5): Likewise.
25726 (11_mult6): Likewise.
25727 (11_mult7): Likewise.
25728 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25729 (cortex_a8_mla): Likewise.
25730 (cortex_a8_mull): Likewise.
25731 (cortex_a8_smulwy): Likewise.
25732 (cortex_a8_smlald): Likewise.
25733 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25734 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25735 (cortex_r4_mul_3): Likewise.
25736 (cortex_r4_mla_4): Likewise.
25737 (cortex_r4_mla_3): Likewise.
25738 (cortex_r4_smlald): Likewise.
25739 (cortex_r4_mull): Likewise.
25740 (cortex_r4_sdiv): Likewise.
25741 (cortex_r4_udiv): Likewise.
25742 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25743 (cortex_a7_idiv): Likewise.
25744 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25745 (9_mult2): Likewise.
25746 (9_mult3): Likewise.
25747 (9_mult4): Likewise.
25748 (9_mult5): Likewise.
25749 (9_mult6): Likewise.
25750 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25751 (cortex_a53_sdiv): Likewise.
25752 (cortex_a53_udiv): Likewise.
25753 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25754 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25755 (mp626_mult2): Likewise.
25756 (mp626_mult3): Likewise.
25757 (mp626_mult4): Likewise.
25758 * config/arm/fa526.md (526_mult1): Update attribute change.
25759 (526_mult2): Likewise.
25760 * config/arm/arm-generic.md (mult): Update attribute change.
25761 (mult_ldsched_strongarm): Likewise.
25762 (mult_ldsched): Likewise.
25763 (multi_cycle): Likewise.
25764 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25765 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25766 (606te_mult2): Likewise.
25767 (606te_mult3): Likewise.
25768 (606te_mult4): Likewise.
25769 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25770 (cortex_a9_mac16): Likewise.
25771 (cortex_a9_multiply): Likewise.
25772 (cortex_a9_mac): Likewise.
25773 (cortex_a9_multiply_long): Likewise.
25774 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25775 (626te_mult2): Likewise.
25776 (626te_mult3): Likewise.
25777 (626te_mult4): Likewise.
25779 2013-06-18 Richard Biener <rguenther@suse.de>
25782 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25784 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25787 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25788 with next_active_insn.
25790 2013-06-18 Alan Modra <amodra@gmail.com>
25792 * config/rs6000/rs6000.h (enum data_align): New.
25793 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25794 (DATA_ABI_ALIGNMENT): Define.
25795 (CONSTANT_ALIGNMENT): Correct comment.
25796 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25797 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25799 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25801 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25802 ATTRIBUTE_UNUSED marking.
25804 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25806 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25807 alternative and update.
25808 (aarch64_dup_lanedi): Delete.
25809 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25810 * config/aarch64/aarch64-simd-builtins.def: Update.
25812 2013-06-17 Richard Biener <rguenther@suse.de>
25814 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25815 (lto_input_scc): Declare.
25816 (lto_input_tree_1): Likewise.
25817 (struct lto_stats_d): Add num_tree_bodies_output and
25818 num_pickle_refs_output.
25819 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25820 (lto_read_tree_1): Split out from ...
25821 (lto_read_tree): ... this.
25822 (lto_input_scc): New function.
25823 (lto_input_tree_1): Split out from ...
25824 (lto_input_tree): ... this. Handle LTO_tree_scc.
25825 (lto_data_in_create): Create the streamer cache without hashes.
25826 * lto-streamer-out.c (create_output_block): Create the streamer
25827 cache with hashes when not doing WPA.
25828 (lto_write_tree_1): Split out from ...
25829 (lto_write_tree): ... this.
25830 (get_symbol_initial_value): New function.
25831 (lto_output_tree_1): Split out from ...
25832 (lto_output_tree): ... this. Write trees as series of SCCs
25833 using a DFS walk via DFS_write_tree.
25834 (struct sccs, struct scc_entry): New types.
25835 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25836 (DFS_write_tree_body): New function.
25837 (DFS_write_tree): Likewise.
25838 (hash_tree): Likewise.
25839 (scc_entry_compare): Likewise.
25840 (hash_scc): Likewise.
25841 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25842 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25843 TREE_CHAIN as regular reference.
25844 (streamer_read_integer_cst): Remove.
25845 (streamer_get_pickled_tree): Adjust.
25846 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25847 of DECL_EXTERNALs in BLOCK_VARS for now.
25848 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25850 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25851 Add hash value argument and record that if hashes are recorded
25853 (streamer_tree_cache_insert_1): Adjust.
25854 (streamer_tree_cache_insert): Likewise.
25855 (streamer_tree_cache_insert_at): Rename to ...
25856 (streamer_tree_cache_replace_tree): ... this and adjust.
25857 (streamer_tree_cache_append): Adjust.
25858 (record_common_node): Likewise.
25859 (streamer_tree_cache_create): Add argument whether to
25860 record hash values together with trees.
25861 (streamer_tree_cache_delete): Adjust.
25862 * tree-streamer.h (struct streamer_tree_cache_d): Add
25864 (streamer_read_integer_cst): Remove.
25865 (streamer_tree_cache_insert): Adjust.
25866 (streamer_tree_cache_append): Likewise.
25867 (streamer_tree_cache_insert_at): Rename to ...
25868 (streamer_tree_cache_replace_tree): ... this and adjust.
25869 (streamer_tree_cache_create): Add argument whether to record hashes.
25870 (streamer_tree_cache_get): Rename to ...
25871 (streamer_tree_cache_get_tree): ... this.
25872 (streamer_tree_cache_get_hash): New function.
25873 * tree.c (cache_integer_cst): New function.
25874 * tree.h (cache_integer_cst): Declare.
25875 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
25876 * lto-symtab.c (lto_varpool_replace_node): Only release
25877 DECL_INITIAL of non-prevailing decls.
25878 * varpool.c (varpool_remove_initializer): Do not release
25879 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
25881 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25883 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
25884 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
25885 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
25886 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
25887 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
25888 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
25889 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
25890 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
25891 instead of TARGET_64BIT.
25892 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
25893 Require ISA_HAS_<D>DIV.
25895 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
25897 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
25898 (mips*-*-linux*): Move default with_llsc setting to where other
25900 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
25902 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
25903 Likewise. Remove default with_tune setting. Move default float
25904 setting to its own block. Handle with_llsc in the same block as above.
25906 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
25908 PR rtl-optimization/57425
25909 PR rtl-optimization/57569
25910 * alias.c (write_dependence_p): Add new parameters mem_mode,
25911 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
25912 Changed all callers.
25913 (canon_anti_dependence): New function.
25914 * cse.c (check_dependence): Use canon_anti_dependence.
25915 * cselib.c (cselib_invalidate_mem): Likewise.
25916 * rtl.h (canon_anti_dependence): Declare.
25918 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25920 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
25921 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
25922 ".set mips3" for 64-bit targets.
25924 2013-06-15 Dehao Chen <dehao@google.com>
25926 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
25927 * gimple-low.c (gimple_check_call_matching_types): Likewise.
25928 (gimple_check_call_args): Likewise.
25929 * value-prof.c (check_ic_target): Likewise.
25930 * ipa-inline.c (early_inliner): Likewise.
25931 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
25932 * cgraph.c (cgraph_create_edge_1): Likewise.
25933 (cgraph_make_edge_direct): Likewise.
25935 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25938 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
25939 rs6000_output_move_128bit to handle emitting quad memory
25940 operations. Set attribute length to 8 bytes.
25942 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
25944 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
25946 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
25947 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
25948 (aarch64_<su>mlsl<mode>): Likewise.
25950 2013-06-14 Mike Stump <mikestump@comcast.net>
25952 * Makefile.in (TARGET_H): Add insn-codes.h.
25954 2013-06-14 Alan Modra <amodra@gmail.com>
25956 PR middle-end/57134
25957 PR middle-end/57586
25958 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
25959 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
25960 bitfield expansion when EXPAND_MEMORY.
25961 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
25963 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25965 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25966 test for clearing quad memory on 32-bit later.
25968 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25970 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
25971 (fold_negate_expr): Likewise.
25972 (fold_real_zero_addition_p): Handle vectors.
25973 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
25975 2013-06-14 Alan Modra <amodra@gmail.com>
25977 * varasm.c (force_const_mem): Revert 2013-06-07 change.
25979 2013-06-13 Jan Hubicka <jh@suse.cz>
25981 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25982 Local comdats are not externally visible.
25983 * symtab.c (dump_symtab_base): Dump externally visible.
25984 (verify_symtab_base): Verify back links in the symtab hash.
25986 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25988 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
25989 CONVERT_EXPR as equal nodes.
25991 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25993 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
25995 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25997 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
25998 Generalize to complex and vector.
25999 * tree.c (build_all_ones_cst): New function.
26000 * tree.h (build_all_ones_cst): Declare it.
26002 2013-06-13 Alan Modra <amodra@gmail.com>
26004 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26005 * config/rs6000/rs6000.md (signbittf2): New insn.
26006 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26007 (abstf2_internal, cmptf_internal2): Likewise.
26008 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26010 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26011 Pat Haugen <pthaugen@us.ibm.com>
26012 Peter Bergner <bergner@vnet.ibm.com>
26014 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26015 power8 byte, half-word, and quad-word atomic instructions.
26016 (emit_store_conditional): Likewise.
26017 (rs6000_expand_atomic_compare_and_swap): Likewise.
26018 (rs6000_expand_atomic_op): Likewise.
26020 * config/rs6000/sync.md (larx): Add new modes for power8.
26022 (AINT): New mode iterator to include TImode as well as normal
26023 integer modes on power8.
26024 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26025 that VSX registers are not considered. Use AINT mode iterator
26026 instead of INT1 to allow inclusion of quad word atomic operations
26028 (load_locked<mode>): Likewise.
26029 (store_conditional<mode>): Likewise.
26030 (atomic_compare_and_swap<mode>): Likewise.
26031 (atomic_exchange<mode>): Likewise.
26032 (atomic_nand<mode>): Likewise.
26033 (atomic_fetch_<fetchop_name><mode>): Likewise.
26034 (atomic_nand_fetch<mode>): Likewise.
26035 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26037 (ATOMIC): On power8, add QImode, HImode modes.
26038 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26039 modes that promote to SImode.
26040 (load_lockedti): Convert TImode arguments to PTImode, so that we
26041 get a guaranteed even/odd register pair.
26042 (load_lockedpti): Likewise.
26043 (store_conditionalti): Likewise.
26044 (store_conditionalpti): Likewise.
26046 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26047 atomic load/store instructions.
26050 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26052 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26054 (insn_count): New attribute, with most cases extracted from...
26055 (length): ...here. Redefine most cases in terms of insn_count.
26056 (single_insn): Delete.
26057 (can_delay): Use insn_count to check for single instructions.
26058 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26059 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26060 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26061 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26062 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26063 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26064 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26065 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26066 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26067 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26068 rather than "length".
26069 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26070 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26071 Use "insn_count" rather than "length".
26072 * config/mips/mips-dsp.md
26073 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26074 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26077 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26079 PR tree-optimization/57361
26080 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26082 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26084 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26086 (aarch64_simd_combine<mode>): New instruction expansion.
26087 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26088 function prototype.
26089 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26090 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26092 2013-06-12 Jan Hubicka <jh@suse.cz>
26094 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26095 decl has when in streaming stage.
26096 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26097 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26099 2013-06-12 Roland Stigge <stigge@antcom.de>
26102 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26104 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26106 PR tree-optimization/57537
26107 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26108 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26110 2013-06-12 Richard Biener <rguenther@suse.de>
26112 * data-streamer.h (streamer_write_char_stream): CSE
26113 obs->current_pointer.
26114 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26115 streamer_write_char_stream manually and optimize the resulting loop.
26116 (streamer_write_hwi_stream): Likewise.
26118 2013-06-12 Jan Hubicka <jh@suse.cz>
26120 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26121 * cgraph.h (varpool_create_empty_node): Declare.
26122 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26124 * symtab.c (symtab_unregister_node): Be lax about missin entries
26126 (symtab_get_node): Update comment.
26127 * varpool.c (varpool_create_empty_node): Break out from ...
26128 (varpool_node_for_decl): ... here.
26129 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26131 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26133 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26134 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26135 part. Use straight-line flow at the end.
26136 <COMPONENT_REF>: Remove superfluous else.
26137 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26139 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26142 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26143 target hook even for !TREE_PUBLIC decls. If no resolution info
26144 is available, return false for common and external decls.
26146 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26148 * config/rl78/constraints.md (U): New constraint.
26149 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26152 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26155 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26156 to allow returning address to AT_PLATFORM name.
26158 2013-06-11 Jan Hubicka <jh@suse.cz>
26160 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26161 * cgraph.h (symtab_node_base): Add weakref flag.
26162 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26163 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26164 (output_weakrefs): Use weakref flag.
26165 * fold-const.c (simple_operand_p): Handle WEAK.
26166 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26167 * ipa.c (varpool_externally_visible_p): Drop weakref.
26168 (function_and_variable_visibility): Update comment; fix weakref
26169 sanity checks; do not clear DECL_WEAK on them.
26170 * lto-cgraph.c (lto_output_node): update.
26171 (lto_output_varpool_node): Update.
26172 (input_overwrite_node): Update.
26173 (input_node): Update.
26174 (input_varpool_node): Update.
26175 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26176 (lto_symtab_merge_symbols): Add sanity check.
26177 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26178 * passes.c (rest_of_decl_compilation): Set static flag, too.
26179 * symtab.c (dump_symtab_base): Dump weakref.
26180 (verify_symtab_base): Sanity check weakrefs.
26181 (symtab_make_decl_local): Remove duplicated code.
26182 (symtab_alias_ultimate_target): Simplify.
26183 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26185 2013-06-11 Tom de Vries <tom@codesourcery.com>
26187 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26188 sequence_vect == NULL.
26190 2013-06-11 DJ Delorie <dj@redhat.com>
26192 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26193 (rl78_unwind_word_mode): New.
26195 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26197 * final.c (debug_prefix_maps): Make static.
26199 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26201 * function.c (initial_trampoline): Remove stray copy.
26203 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26205 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26207 2013-06-11 Martin Jambor <mjambor@suse.cz>
26209 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26210 within bounds at the beginning of the function.
26212 2013-06-11 Alan Modra <amodra@gmail.com>
26214 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26216 (get_named_section): Don't NULL !DECL_P decl.
26218 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26220 * doc/invoke.texi (core-avx2): Document.
26222 (atom): Updated with MOVBE.
26224 2013-06-11 Richard Biener <rguenther@suse.de>
26226 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26228 2013-06-11 Anton Blanchard <anton@samba.org>
26230 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26231 correct shift value in little-endian mode.
26233 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26236 * varasm.c (get_variable_align): Move #endif to the right place.
26238 2013-06-10 Cary Coutant <ccoutant@google.com>
26240 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26241 for hash so that hash table traversal order is deterministic.
26243 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26244 Pat Haugen <pthaugen@us.ibm.com>
26245 Peter Bergner <bergner@vnet.ibm.com>
26247 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26248 of vectors in GPRS if they are direct moves or quad word load or
26251 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26253 (direct_move_p): Likewise.
26254 (quad_load_store_p): Likewise.
26256 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26257 classes into bins based on the physical register type.
26258 (reg_class_to_reg_type): Likewise.
26259 (IS_STD_REG_TYPE): Likewise.
26260 (IS_FP_VECT_REG_TYPE): Likewise.
26261 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26262 use direct move instructions.
26263 (reload_gpr_vsx): Likewise.
26264 (reload_vsx_gpr): Likewise.
26265 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26266 information that is a simplification of register classes. Also
26267 precalculate direct move reload helpers.
26268 (direct_move_p): New function to return true if the operation can
26269 be done as a direct move instruciton.
26270 (quad_load_store_p): New function to return true if the operation
26271 is a quad memory operation.
26272 (rs6000_legitimize_address): If quad memory, only allow register
26273 indirect for TImode addresses.
26274 (rs6000_legitimate_address_p): Likewise.
26275 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26276 (rs6000_reload_register_type): Likewise.
26277 (register_to_reg_type): Return register type.
26278 (rs6000_secondary_reload_simple_move): New helper function for
26279 secondary reload and secondary memory needed to identify anything
26280 that is a simple move, and does not need reloading.
26281 (rs6000_secondary_reload_direct_move): New helper function for
26282 secondary reload to identify cases that can be done with several
26283 instructions via the direct move instructions.
26284 (rs6000_secondary_reload_move): New helper function for secondary
26285 reload to identify moves between register types that can be done.
26286 (rs6000_secondary_reload): Add support for quad memory operations
26287 and for direct move.
26288 (rs6000_secondary_memory_needed): Likewise.
26289 (rs6000_debug_secondary_memory_needed): Change argument names.
26290 (rs6000_output_move_128bit): New function to return the move to
26291 use for 128-bit moves, including knowing about the various
26292 limitations of quad memory operations.
26294 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26295 memory operations. call rs6000_output_move_128bit for the actual
26296 instruciton(s) to generate.
26297 (vsx_movti_64bit): Likewise.
26299 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26300 (UNSPEC_P8V_MTVSRWZ): Likewise.
26301 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26302 (UNSPEC_P8V_MTVSRD): Likewise.
26303 (UNSPEC_P8V_XXPERMDI): Likewise.
26304 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26305 (UNSPEC_FUSION_GPR): Likewise.
26306 (FMOVE128_GPR): New iterator for direct move.
26307 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26308 (f32_sv): Likewise.
26309 (f32_dm): Likewise.
26310 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26311 loads and direct move instructions.
26312 (zero_extendsidi2_lfiwzx): Likewise.
26313 (extendsidi2_lfiwax): Likewise.
26314 (extendsidi2_nocell): Likewise.
26315 (floatsi<mode>2_lfiwax): Likewise.
26316 (lfiwax): Likewise.
26317 (floatunssi<mode>2_lfiwzx): Likewise.
26318 (lfiwzx): Likewise.
26319 (fix_trunc<mode>_stfiwx): Likewise.
26320 (fixuns_trunc<mode>_stfiwx): Likewise.
26321 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26322 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26323 (parity<mode>2_cmpb): Set length/type attr.
26324 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26325 for 'mr.' to fast_compare.
26326 (bpermd_<mode>): Change type attr to popcnt.
26327 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26328 (p8_mtvsrwz_1): Likewise.
26329 (p8_mtvsrwz_2): Likewise.
26330 (reload_fpr_from_gpr<mode>): Likewise.
26331 (p8_mtvsrd_1): Likewise.
26332 (p8_mtvsrd_2): Likewise.
26333 (p8_xxpermdi_<mode>): Likewise.
26334 (reload_vsx_from_gpr<mode>): Likewise.
26335 (reload_vsx_from_gprsf): Likewise.
26336 (p8_mfvsrd_3_<mode>): LIkewise.
26337 (reload_gpr_from_vsx<mode>): Likewise.
26338 (reload_gpr_from_vsxsf): Likewise.
26339 (p8_mfvsrd_4_disf): Likewise.
26340 (multi-word GPR splits): Do not split direct moves or quad memory
26343 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26345 * tree-into-ssa.c (interesting_blocks): Make static.
26347 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26350 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26351 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26352 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26353 (get_variable_align): New function.
26354 (get_variable_section, emit_bss, emit_common,
26355 assemble_variable_contents, place_block_symbol): Use
26356 get_variable_align instead of DECL_ALIGN.
26357 (assemble_noswitch_variable): Add align argument, use it
26358 instead of DECL_ALIGN.
26359 (assemble_variable): Adjust caller. Use get_variable_align
26360 instead of DECL_ALIGN.
26361 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26363 (DATA_ABI_ALIGNMENT): Define.
26364 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26365 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26366 opt is false, only return the psABI mandated alignment increase.
26367 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26368 (DATA_ABI_ALIGNMENT): ... this.
26369 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26370 (DATA_ABI_ALIGNMENT): ... this.
26371 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26372 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26373 (DATA_ABI_ALIGNMENT): ... this.
26374 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26375 * doc/tm.texi: Regenerated.
26377 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26379 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26380 cmp_code to construct REG_EQUAL note.
26382 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26385 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26386 that operands[2] doesn't overlap with operands[0].
26388 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26389 Jan Hubicka <jh@suse.cz>
26391 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26392 hack to mark symbols as used.
26394 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26396 PR rtl-optimization/57559
26397 * lra-constraints.c (process_alt_operands): Don't discourage
26398 memory with known offset for offsetable memory constraint.
26399 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26401 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26403 * varasm.c (struct oc_local_state): Reorder fields.
26404 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26405 and adjust accordingly.
26406 (output_constructor): Reorder initialization code and adjust call to
26407 output_constructor_bitfield.
26409 2013-06-07 Jan Hubicka <jh@suse.cz>
26411 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26413 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26415 * tree-object-size.c (unknown): Make const.
26417 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26419 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26420 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26421 for last alternative in the cpu_facility attribute.
26423 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26426 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26427 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26428 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26429 * config/arm/constraints.md (Dg): New constraint.
26430 * config/arm/neon.md (xordi3_neon): Remove.
26431 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26432 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26434 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26436 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26437 Clean up alternatives.
26439 2013-06-07 Alan Modra <amodra@gmail.com>
26441 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26444 2013-06-07 Alan Modra <amodra@gmail.com>
26446 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26448 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26450 * config/arm/constraints.md (Df): New constraint.
26451 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26452 Correct length attribute for last two alternatives.
26454 2013-06-07 Alan Modra <amodra@gmail.com>
26456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26457 override user -mfp-in-toc.
26458 (offsettable_ok_by_alignment): Consider just the current access
26459 rather than the whole object, unless BLKmode. Handle
26460 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26461 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26462 for -mcmodel=medium.
26463 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26464 override user -mfp-in-toc or -msum-in-toc. Default to
26465 -mno-fp-in-toc for -mcmodel=medium.
26467 2013-06-06 DJ Delorie <dj@redhat.com>
26469 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26470 TARGET_VALID_POINTER_MODE.
26472 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26473 Pat Haugen <pthaugen@us.ibm.com>
26474 Peter Bergner <bergner@vnet.ibm.com>
26476 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26477 Document new power8 builtins.
26479 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26480 condition code register, to allow 128-bit logical operations to be
26481 done in the VSX or GPR registers.
26482 (nor<mode>3): Use the canonical form for nor.
26483 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26484 vclz*, and vpopcnt* vector instructions.
26485 (nand<mode>3): Likewise.
26486 (orc<mode>3): Likewise.
26487 (clz<mode>2): LIkewise.
26488 (popcount<mode>2): Likewise.
26490 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26491 that only the GPRs are recognized.
26493 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26494 support for new power8 builtins.
26496 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26498 (xscvdpspn): Likewise.
26504 (vpopcnt): Likewise.
26505 (vpopcntb): Likewise.
26506 (vpopcnth): Likewise.
26507 (vpopcntw): Likewise.
26508 (vpopcntd): Likewise.
26510 (vmrgew): Likewise.
26511 (vmrgow): Likewise.
26513 (eqv_v16qi3): Likewise.
26514 (eqv_v8hi3): Likewise.
26515 (eqv_v4si3): Likewise.
26516 (eqv_v2di3): Likewise.
26517 (eqv_v4sf3): Likewise.
26518 (eqv_v2df3): Likewise.
26520 (nand_v16qi3): Likewise.
26521 (nand_v8hi3): Likewise.
26522 (nand_v4si3): Likewise.
26523 (nand_v2di3): Likewise.
26524 (nand_v4sf3): Likewise.
26525 (nand_v2df3): Likewise.
26527 (orc_v16qi3): Likewise.
26528 (orc_v8hi3): Likewise.
26529 (orc_v4si3): Likewise.
26530 (orc_v2di3): Likewise.
26531 (orc_v4sf3): Likewise.
26532 (orc_v2df3): Likewise.
26534 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26535 allow power8 quad mode in 64-bit.
26536 (rs6000_builtin_vectorized_function): Add support to vectorize
26537 ISA 2.07 count leading zeros, population count builtins.
26538 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26539 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26540 (builtin_function_type): Add vgbbd builtin function which takes an
26542 (altivec_expand_vec_perm_const): Add support for new power8 merge
26545 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26546 that does not include TImdoe for use with 32-bit.
26547 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26549 (UNSPEC_VSX_CVDPSPN): Likewise.
26550 (vsx_xscvdpspn): Likewise.
26551 (vsx_xscvspdpn): Likewise.
26552 (vsx_xscvdpspn_scalar): Likewise.
26553 (vsx_xscvspdpn_directmove): Likewise.
26554 (vsx_and<mode>3): Split logical operations into 32-bit and
26555 64-bit. Add support to do logical operations on TImode as well as
26556 VSX vector types. Allow logical operations to be done in either
26557 VSX registers or in general purpose registers in 64-bit mode. Add
26558 splitters if GPRs were used. For AND, add clobber of CCmode to
26559 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26561 (vsx_and<mode>3_32bit): Likewise.
26562 (vsx_and<mode>3_64bit): Likewise.
26563 (vsx_ior<mode>3): Likewise.
26564 (vsx_ior<mode>3_32bit): Likewise.
26565 (vsx_ior<mode>3_64bit): Likewise.
26566 (vsx_xor<mode>3): Likewise.
26567 (vsx_xor<mode>3_32bit): Likewise.
26568 (vsx_xor<mode>3_64bit): Likewise.
26569 (vsx_one_cmpl<mode>2): Likewise.
26570 (vsx_one_cmpl<mode>2_32bit): Likewise.
26571 (vsx_one_cmpl<mode>2_64bit): Likewise.
26572 (vsx_nor<mode>3): Likewise.
26573 (vsx_nor<mode>3_32bit): Likewise.
26574 (vsx_nor<mode>3_64bit): Likewise.
26575 (vsx_andc<mode>3): Likewise.
26576 (vsx_andc<mode>3_32bit): Likewise.
26577 (vsx_andc<mode>3_64bit): Likewise.
26578 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26579 and xxlorc instructions.
26580 (vsx_eqv<mode>3_64bit): Likewise.
26581 (vsx_nand<mode>3_32bit): Likewise.
26582 (vsx_nand<mode>3_64bit): Likewise.
26583 (vsx_orc<mode>3_32bit): Likewise.
26584 (vsx_orc<mode>3_64bit): Likewise.
26586 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26588 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26590 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26591 (p8_vmrgow): Likewise.
26592 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26593 GPRs to be split under VSX.
26594 (p8v_clz<mode>2): Add power8 count leading zero support.
26595 (p8v_popcount<mode>2): Add power8 population count support.
26596 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26599 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26602 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26604 (vec_nand): Likewise.
26605 (vec_vclz): Likewise.
26606 (vec_vclzb): Likewise.
26607 (vec_vclzd): Likewise.
26608 (vec_vclzh): Likewise.
26609 (vec_vclzw): Likewise.
26610 (vec_vgbbd): Likewise.
26611 (vec_vmrgew): Likewise.
26612 (vec_vmrgow): Likewise.
26613 (vec_vpopcnt): Likewise.
26614 (vec_vpopcntb): Likewise.
26615 (vec_vpopcntd): Likewise.
26616 (vec_vpopcnth): Likewise.
26617 (vec_vpopcntw): Likewise.
26619 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26621 PR rtl-optimization/57468
26622 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26625 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26627 PR rtl-optimization/57459
26628 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26629 type when setting live regs.
26631 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26633 * config/s390/s390.opt (mlra): New option.
26634 * config/s390/s390.c (s390_decompose_address): Check displacement
26635 for all registers for LRA.
26636 (s390_secondary_reload): Don't used secondary reloads for LRA.
26637 (s390_lra_p): New function.
26638 (TARGET_LRA_P): Define.
26639 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26640 of attribute cpu_facility to zarch for the last alternative.
26641 (*cmpmem_short): Ditto.
26643 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26645 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26646 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26647 (arm_expand_prologue): Likewise.
26649 2013-06-06 Teresa Johnson <tejohnson@google.com>
26652 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26653 as this is now done by redirect_edge_and_branch_force.
26654 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26655 barriers, and fix interaction with splitting.
26656 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26657 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26658 reflect changes made in the routine.
26659 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26660 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26661 since this is called in cfglayout mode, and replace partition fixup
26662 with assert as that is now done by force_nonfallthru_and_redirect.
26663 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26664 already be marked with region crossing note.
26665 (insert_section_boundary_note): Make non-static, gate on flag
26666 has_bb_partition, rewrite to also check for multiple partitions.
26667 (rest_of_handle_reorder_blocks): Remove call to
26668 insert_section_boundary_note, now done later during free_cfg.
26669 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26670 * bb-reorder.h (insert_section_boundary_note): Declare.
26671 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26672 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26673 invoke insert_section_boundary_note.
26674 (try_redirect_by_replacing_jump): Remove unnecessary
26675 check for region crossing note.
26676 (fixup_partition_crossing): New function.
26677 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26678 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26679 in non-cfglayout mode.
26680 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26681 remove old code that tried to do this. Emit barrier correctly
26682 when we are in cfglayout mode.
26683 (last_bb_in_partition): New function.
26684 (rtl_split_edge): Correctly fixup partition boundaries.
26685 (commit_one_edge_insertion): Remove old code that tried to
26686 fixup region crossing edge since this is now handled in
26687 split_block, and set up insertion point correctly since
26688 block may now end in a jump.
26689 (verify_hot_cold_block_grouping): Guard against checking when not in
26690 linearized RTL mode.
26691 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26693 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26694 rtl_verify_flow_info, so not called in cfglayout mode.
26695 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26696 (fixup_reorder_chain): Remove old code that attempted to fixup region
26697 crossing note as this is now handled in force_nonfallthru_and_redirect.
26698 (duplicate_insn_chain): Don't duplicate switch section notes.
26699 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26701 * basic-block.h (emit_barrier_after_bb): Declare.
26703 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26705 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26706 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26707 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26709 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26711 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26713 * config/arm/ldmstm.md: Regenerate.
26715 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26717 * config/arm/sync.md (atomic_loaddi_1):
26718 Disable predication for arm_restrict_it.
26719 (arm_load_exclusive<mode>): Likewise.
26720 (arm_load_exclusivesi): Likewise.
26721 (arm_load_exclusivedi): Likewise.
26722 (arm_load_acquire_exclusive<mode>): Likewise.
26723 (arm_load_acquire_exclusivesi): Likewise.
26724 (arm_load_acquire_exclusivedi): Likewise.
26725 (arm_store_exclusive<mode>): Likewise.
26726 (arm_store_exclusive<mode>): Likewise.
26727 (arm_store_release_exclusivedi): Likewise.
26728 (arm_store_release_exclusive<mode>): Likewise.
26730 2013-06-06 Richard Biener <rguenther@suse.de>
26732 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26734 (lto_tag_is_tree_code_p): Adjust.
26735 (lto_tag_is_gimple_code_p): Likewise.
26736 (lto_gimple_code_to_tag): Likewise.
26737 (lto_tag_to_gimple_code): Likewise.
26738 (lto_tree_code_to_tag): Likewise.
26739 (lto_tag_to_tree_code): Likewise.
26740 * data-streamer.h (streamer_write_hwi_in_range): Use
26741 uhwi streaming to stream the normalized range.
26742 (streamer_read_hwi_in_range): Likewise.
26744 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26746 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26747 (predicable_short_it): Likewise.
26748 (predicated): Likewise.
26749 (enabled): Handle above.
26750 (define_cond_exec): Set predicated attribute to yes.
26752 2013-06-05 Mike Stump <mikestump@comcast.net>
26754 * gdbinit.in (__FUNCTION__): Add.
26756 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26758 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26759 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26761 2013-06-05 Jan Hubicka <jh@suse.cz>
26763 * varasm.c (mark_decl_referenced): Revert the removal until targets
26766 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26768 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26769 instead of mark_decl_referenced.
26771 2013-06-05 Jan Hubicka <jh@suse.cz>
26773 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26774 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26775 and symtab_used_from_object_file_p.
26776 (cgraph_make_node_local_1): Clear forced_by_abi.
26777 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26778 * cgraph.h (symtab_node_base): Add forced_by_abi.
26779 (decide_is_variable_needed): Remove.
26780 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26781 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26782 (decide_is_symbol_needed): ... this one; handle symbols in general;
26783 always analyze virtuals; honnor forced_by_abi.
26784 (cgraph_finalize_function): Update.
26785 (varpool_finalize_decl): Update.
26786 (symbol_defined_and_needed): Remove.
26787 (analyze_functions): Update.
26788 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26789 output_refs, input_overwrite_node): Handle forced_by_abi.
26790 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26791 (address_taken_from_non_vtable_p): ... this one.
26792 (comdat_can_be_unshared_p_1): New function.
26793 (cgraph_comdat_can_be_unshared_p): Rename to ...
26794 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26795 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26796 (function_and_variable_visibility): Clear forced_by_abi as needed.
26797 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26798 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26799 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26800 * varpool.c (decide_is_variable_needed): Remove.
26802 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26804 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26805 (arm_option_override): Override arm_restrict_it where appropriate.
26806 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26807 * config/arm/arm.opt (mrestrict-it): New command-line option.
26808 * doc/invoke.texi: Document -mrestrict-it.
26810 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26812 * tsan.c (tsan_atomic_table): Make const.
26814 2013-06-05 Richard Biener <rguenther@suse.de>
26816 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26817 index associated with the tree we are supposed to replace.
26818 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26819 TREE_ASM_WRITTEN as zero for everything but SSA names.
26821 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26823 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26825 2013-06-04 Jan Hubicka <jh@suse.cz>
26827 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26828 (input_node, input_varpool_node): Handle correctly external same
26830 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26831 nodes at ltrans stage.
26833 2013-06-04 Jan Hubicka <jh@suse.cz>
26835 * ipa-inline.c (update_caller_keys): Fix availability test.
26836 (update_callee_keys): Likewise.
26837 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26838 to follow ELF standard.
26840 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26842 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26843 (mips64r5900el-*-elf*): New configurations.
26844 * config/mips/mips-cpus.def (r5900): New processor.
26845 * config/mips/mips-tables.opt: Regenerate.
26846 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26847 (mips_issue_rate): Handle PROCESSOR_R5900.
26848 (mips_reorg_process_insns): Force reorder mode for the R5900.
26849 * config/mips/mips.h (TARGET_MIPS5900): Define.
26850 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26852 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
26854 * config/mips/mips.md (processor): Add r5900.
26855 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
26857 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26859 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
26860 into function to generate MOVI instruction.
26861 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
26862 (aarch64_preferred_simd_mode): Turn into wrapper.
26863 (aarch64_output_scalar_simd_mov_immediate): New function.
26864 * config/aarch64/aarch64-protos.h: Add prototype for above.
26866 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26868 * config/aarch64/aarch64.c (simd_immediate_info): Remove
26869 element_char member.
26870 (sizetochar): Return signed char.
26871 (aarch64_simd_valid_immediate): Remove elchar and other
26872 unnecessary variables.
26873 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
26874 Calculate element_char as required.
26875 * config/aarch64/aarch64-protos.h: Update and move prototype
26876 for aarch64_output_simd_mov_immediate.
26877 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
26880 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26882 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
26883 information completed by aarch64_simd_valid_immediate.
26884 (aarch64_legitimate_constant_p): Update arguments.
26885 (aarch64_simd_valid_immediate): Work with struct rather than many
26887 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
26888 (aarch64_simd_make_constant): Update arguments.
26889 (aarch64_output_simd_mov_immediate): Work with struct rather than
26890 many pointers. Output immediate directly rather than as operand.
26891 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26893 * config/aarch64/constraints.md (Dn): Update arguments.
26895 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26897 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
26899 (aarch64_simd_immediate_valid_for_move): Remove.
26900 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
26901 (aarch64_simd_make_constant): Update call.
26902 (aarch64_output_simd_mov_immediate): Update call.
26903 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26905 * config/aarch64/constraints.md (Dn): Update call.
26907 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26909 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
26910 return type to bool for prototype.
26911 (aarch64_legitimate_constant_p): Check for true instead of not -1.
26912 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
26913 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
26915 2013-06-04 Catherine Moore <clm@codesourcery.com>
26917 * config/mips/mips.opt (meva): New.
26918 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
26919 (ASM_SPEC): Handle -meva.
26920 * doc/invoke.texi (meva): Document.
26922 2013-06-04 Alan Modra <amodra@gmail.com>
26924 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
26927 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26929 * rtl.def: Add extra fourth optional field to define_cond_exec.
26930 * gensupport.c (process_one_cond_exec): Process attributes from
26932 * doc/md.texi: Document fourth field in define_cond_exec.
26934 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
26936 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
26937 out the processing order as in store_bit_field_1.
26939 2013-06-04 Jan Hubicka <jh@suse.cz>
26941 PR middle-end/57500
26942 * cgraphunit.c (cgraph_process_same_body_aliases): Create
26943 non-VAR_DECL node if it does not exist yet.
26945 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
26947 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
26948 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
26949 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
26950 target_cpu_default setting.
26952 2013-06-03 Teresa Johnson <tejohnson@google.com>
26954 * dumpfile.c (opt_info_switch_p): Change -fopt-info
26955 default to -fopt-info=optimized instead of all.
26956 * doc/invoke.texi: Ditto.
26957 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
26958 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
26959 (execute_vect_slp): Emit BB vectorization success under
26960 MSG_OPTIMIZED_LOCATIONS.
26961 * tree-vect-slp.c (vect_slp_transform_bb): Change
26962 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
26963 * tree-vect-loop.c (vect_transform_loop): Ditto.
26965 2013-06-03 Jason Merrill <jason@redhat.com>
26968 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26969 Use TARGET_EXPR for C++.
26971 2013-06-03 Jakub Jelinek <jakub@redhat.com>
26973 PR rtl-optimization/57268
26974 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
26975 if DEBUG_INSN_P (insn).
26978 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26980 PR rtl-optimization/57268
26981 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26982 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26984 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26986 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
26987 (ix86_avoid_lea_for_addr): Likewise.
26988 (exact_dependency_1): Likewise.
26989 (ix86_adjust_cost): Likewise.
26990 (swap_top_of_ready_list): Fix formatting and !reload_completed check
26992 (do_reorder_for_imul): Fix typo, formatting and
26993 !reload_completed check removed.
26994 (ix86_sched_reorder): Fix typo and formatting.
26995 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
26998 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27000 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27002 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27004 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27005 <STRING_CST>: Likewise.
27006 <VECTOR_CST>: Likewise.
27008 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27009 Mikael Morin <mikael@gcc.gnu.org>
27011 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27012 * config.in: Regenerated.
27013 * configure: Regenerated.
27015 2013-06-01 Jan Hubicka <jh@suse.cz>
27017 PR middle-end/57366
27018 * cgraphunit.c (compile): When weakref is not supported,
27019 set up transparent aliases before final output pass.
27020 * varasm.c (assemble_alias): Do not try to do it here.
27022 2013-06-01 Jan Hubicka <jh@suse.cz>
27024 PR middle-end/57467
27025 * passes.c (for_per_function): Skip unanalyzed functions.
27027 2013-06-01 Jan Hubicka <jh@suse.cz>
27029 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27030 (lto_symtab_merge_symbols_1): ... this one.
27031 (lto_symtab_merge_cgraph_nodes): Rename to ...
27032 (lto_symtab_merge_symbols): ... this one; simplify.
27033 * cgraph.c (same_body_aliases_done): Rename to ...
27034 (cpp_implicit_aliases_done): ... this one.
27035 (cgraph_create_function_alias): Update.
27036 (cgraph_same_body_alias): Update.
27037 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27038 (verify_edge_corresponds_to_fndecl): Simplify.
27039 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27040 (cgraph_node): Remove same_body_alias.
27041 (varpool_node): Remove alias_of and extra_name_alias.
27042 (same_body_aliases_done): Rename to ..
27043 (cpp_implicit_aliases_done): ... this one.
27044 (symtab_alias_ultimate_target): Add default parameter.
27045 (symtab_resolve_alias): New function.
27046 (fixup_same_cpp_alias_visibility): Declare.
27047 (cgraph_function_node): Add default parameter.
27048 (cgraph_node_asm_name): Likewise.
27049 (cgraph_function_or_thunk_node): Add default parameter; do
27050 not ICE when it is NULL.
27051 (varpool_variable_node): Likewise.
27052 * tree-emutls.c (create_emultls_var): Update.
27053 (ipa_lower_emutls): Update.
27054 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27055 (cgraph_reset_node): Reset alias info.
27056 (cgraph_finalize_function): Update.
27057 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27058 (analyze_function): Simplify.
27059 (cgraph_process_same_body_aliases): Simplify.
27060 (analyze_functions): Fixup same body aliases.
27061 (handle_alias_pairs): Simplify.
27062 (assemble_thunk): Update.
27063 (assemble_thunks_and_aliases): Update.
27064 (output_weakrefs): Rewrite.
27065 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27066 (lto_output_varpool_node): Likewise.
27067 (compute_ltrans_boundary): Remve assert.
27068 (get_alias_symbol): New functoin.
27069 (input_node): Rewrite alias handling.
27070 (input_varpool_node): Likewise.
27071 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27072 * ipa.c (process_references): Handle weakrefs correctly.
27073 (symtab_remove_unreachable_nodes): Likewise.
27074 * trans-mem.c (get_cg_data): Update.
27075 (ipa_tm_create_version_alias): Update.
27076 (ipa_tm_execute): Update.
27077 * symtab.c (dump_symtab_base): Dump aliases.
27078 (verify_symtab_base): Verify aliases.
27079 (symtab_node_availability): New function.
27080 (symtab_alias_ultimate_target): Simplify.
27081 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27082 handle all the fixup cases.
27083 (symtab_resolve_alias): New function.
27084 * passes.c (ipa_write_summaries): Handle weakrefs.
27085 * varpool.c (varpool_analyze_node): Simplify.
27086 (assemble_aliases): Update.
27087 (varpool_create_variable_alias): Simplify.
27088 (varpool_extra_name_alias): Simplify.
27089 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27090 (lto_symtab_merge_symbols): ... this one.
27092 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27095 PR rtl-optimization/57268
27096 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27097 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27099 2013-06-01 Tobias Burnus <burnus@net-b.de>
27101 Partially reverted:
27102 2013-05-31 Tobias Burnus <burnus@net-b.de>
27104 PR middle-end/57073
27105 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27108 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27110 PR rtl-optimization/57268
27111 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27112 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27114 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27116 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27117 unordered comparison operators when -fno-trapping-math is in effect
27119 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27120 and implement unordered comparison operators properly on the e500.
27122 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27124 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27125 for constant scalar integers.
27126 (simplify_relational_operation_1): Likewise.
27128 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27130 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27131 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27134 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27135 Igor Zamyatin <igor.zamyatin@intel.com>
27137 Silvermont (SLM) architecture performance tuning.
27138 * config/i386/i386.h (enum ix86_tune_indices): Add
27139 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27140 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27142 * config/i386/i386.c (initial_ix86_tune_features)
27143 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27144 (ix86_lea_outperforms): Handle Silvermont tuning.
27145 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27147 (ix86_use_lea_for_mov): Likewise.
27148 (ix86_avoid_lea_for_addr): Likewise.
27149 (ix86_lea_for_add_ok): Likewise.
27150 (exact_dependency_1): New function.
27151 (exact_store_load_dependency): Likewise.
27152 (ix86_adjust_cost): Handle Silvermont tuning.
27153 (do_reoder_for_imul): Likewise.
27154 (swap_top_of_ready_list): New function.
27155 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27157 * config/i386/i386.md (peepholes that split memory operand in fp
27160 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27162 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27163 Remove un-necessary braces.
27165 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27167 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27168 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27170 2013-05-31 Tobias Burnus <burnus@net-b.de>
27172 PR middle-end/57073
27173 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27175 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27178 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27179 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27180 * config/arm/neon.md (iordi3_neon): Remove.
27181 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27182 * config/arm/predicates.md (imm_for_neon_logic_operand):
27183 Move to earlier in the file.
27184 (neon_logic_op2): Likewise.
27185 (arm_iordi_operand_neon): New predicate.
27187 2013-05-31 Richard Biener <rguenther@suse.de>
27189 PR tree-optimization/57478
27190 PR tree-optimization/57453
27191 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27194 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27196 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27197 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27199 2013-05-30 Tobias Burnus <burnus@net-b.de>
27200 Thomas Koenig <tkoenig@gcc.gnu.org>
27202 PR middle-end/57073
27203 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27204 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27206 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27208 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27210 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27212 * target.def (register_usage_leveling_p): New hook.
27213 * targhooks.c (default_register_usage_leveling_p): New.
27214 * targhooks.h (default_register_usage_leveling_p): New prototype.
27215 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27216 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27217 * doc/tm.texi: Update.
27218 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27220 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27222 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27223 (*insv_reg<mode>): New define_insn.
27225 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27227 PR rtl-optimization/57439
27228 * postreload.c (move2add_valid_value_p): Check that we have
27229 a zero subreg_regno_offset when accessing the register in
27230 the requested mode.
27232 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27233 Igor Zamyatin <igor.zamyatin@intel.com>
27235 Silvermont (SLM) architecture pipeline model, tuning and
27237 * config.gcc: Add slm config options and target.
27239 * config/i386/slm.md: New.
27241 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27243 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27245 (ix86_target_macros_internal): Likewise.
27247 * config/i386/i386.c (slm_cost): New cost.
27248 (m_SLM): New macro flag.
27249 (initial_ix86_tune_features): Set m_SLM.
27250 (x86_accumulate_outgoing_args): Likewise.
27251 (x86_arch_always_fancy_math_387): Likewise.
27252 (processor_target_table): Add slm cost.
27253 (cpu_names): Add slm cpu name.
27254 (x86_option_override_internal): Set SLM ISA.
27255 (ix86_issue_rate): New case PROCESSOR_SLM.
27256 (ia32_multipass_dfa_lookahead): Likewise.
27257 (fold_builtin_cpu): Add slm.
27259 * config/i386/i386.h (TARGET_SLM): New target macro.
27260 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27261 (processor_type): Add PROCESSOR_SLM.
27263 * config/i386/i386.md (cpu): Add new value "slm".
27264 (slm.md): Include slm.md.
27266 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27267 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27269 * config/arm/arm-protos.h: Add and update function protos.
27270 * config/arm/arm.c (use_simple_return_p): New added.
27271 (thumb2_expand_return): Check simple_return flag.
27272 * config/arm/arm.md: Add simple_return and conditional simple_return.
27273 * config/arm/iterators.md: Add iterator for return and simple_return.
27275 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27277 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27278 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27279 (arm_emit_vfp_multi_reg_pop): Likewise.
27280 (thumb2_emit_ldrd_pop): Likewise.
27281 (arm_expand_epilogue): Add misc REG_CFA notes.
27282 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27284 2013-05-29 Lawrence Crowl <crowl@google.com>
27286 * config/arm/t-arm: Update for below.
27288 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27289 Change type to hash_table. Update dependent calls and types.
27291 * config/i386/t-cygming: Update for below.
27293 * config/i386/t-interix: Update for below.
27295 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27296 Change type to hash_table. Update dependent calls and types.
27297 (i386_find_on_wrapper_list::wrappers): Likewise.
27299 * config/ia64/t-ia64: Update for below.
27301 * config/ia64/ia64.c (bundle_state_table):
27302 Change type to hash_table. Update dependent calls and types.
27304 * config/mips/mips.c (mips_reorg_process_insns::htab):
27305 Change type to hash_table. Update dependent calls and types.
27307 * config/sol2.c (solaris_comdat_htab):
27308 Change type to hash_table. Update dependent calls and types.
27310 * config/t-sol2: Update for above.
27312 2013-05-29 Teresa Johnson <tejohnson@google.com>
27314 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27315 functions are not yet marked as defined.
27317 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27318 Pat Haugen <pthaugen@us.ibm.com>
27319 Peter Bergner <bergner@vnet.ibm.com>
27321 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27325 (vrotl<mode>3): Likewise.
27326 (vashl<mode>3): Likewise.
27327 (vlshr<mode>3): Likewise.
27328 (vashr<mode>3): Likewise.
27330 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27331 support for power8 V2DI builtins.
27333 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27334 power8 V2DI builtins.
27335 (vupkhsw): Likewise.
27336 (vupklsw): Likewise.
27337 (vaddudm): Likewise.
27338 (vminsd): Likewise.
27339 (vmaxsd): Likewise.
27340 (vminud): Likewise.
27341 (vmaxud): Likewise.
27342 (vpkudum): Likewise.
27343 (vpksdss): Likewise.
27344 (vpkudus): Likewise.
27345 (vpksdus): Likewise.
27350 (vsubudm): Likewise.
27351 (vcmpequd): Likewise.
27352 (vcmpgtsd): Likewise.
27353 (vcmpgtud): Likewise.
27354 (vcmpequd_p): Likewise.
27355 (vcmpgtsd_p): Likewise.
27356 (vcmpgtud_p): Likewise.
27357 (vupkhsw): Likewise.
27358 (vupklsw): Likewise.
27359 (vaddudm): Likewise.
27360 (vmaxsd): Likewise.
27361 (vmaxud): Likewise.
27362 (vminsd): Likewise.
27363 (vminud): Likewise.
27364 (vpksdss): Likewise.
27365 (vpksdus): Likewise.
27366 (vpkudum): Likewise.
27367 (vpkudus): Likewise.
27372 (vsubudm): Likewise.
27374 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27375 support for power8 V2DI instructions.
27377 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27378 power8 V2DI instructions. Combine pack and unpack insns to use an
27379 iterator for each mode. Check whether a particular mode supports
27380 Altivec instructions instead of just checking TARGET_ALTIVEC.
27381 (UNSPEC_VPKUWUM): Likewise.
27382 (UNSPEC_VPKSHSS): Likewise.
27383 (UNSPEC_VPKSWSS): Likewise.
27384 (UNSPEC_VPKUHUS): Likewise.
27385 (UNSPEC_VPKSHUS): Likewise.
27386 (UNSPEC_VPKUWUS): Likewise.
27387 (UNSPEC_VPKSWUS): Likewise.
27388 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27389 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27390 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27391 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27392 (UNSPEC_VUPKHSB): Likewise.
27393 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27394 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27395 (UNSPEC_VUPKHSH): Likewise.
27396 (UNSPEC_VUPKLSB): Likewise.
27397 (UNSPEC_VUPKLSH): Likewise.
27399 (VI_char): Likewise.
27400 (VI_scalar): Likewise.
27401 (VI_unit): Likewise.
27403 (VP_small): Likewise.
27404 (VP_small_lc): Likewise.
27405 (VU_char): Likewise.
27406 (add<mode>3): Likewise.
27407 (altivec_vaddcuw): Likewise.
27408 (altivec_vaddu<VI_char>s): Likewise.
27409 (altivec_vadds<VI_char>s): Likewise.
27410 (sub<mode>3): Likewise.
27411 (altivec_vsubcuw): Likewise.
27412 (altivec_vsubu<VI_char>s): Likewise.
27413 (altivec_vsubs<VI_char>s): Likewise.
27414 (altivec_vavgs<VI_char>): Likewise.
27415 (altivec_vcmpbfp): Likewise.
27416 (altivec_eq<mode>): Likewise.
27417 (altivec_gt<mode>): Likewise.
27418 (altivec_gtu<mode>): Likewise.
27419 (umax<mode>3): Likewise.
27420 (smax<mode>3): Likewise.
27421 (umin<mode>3): Likewise.
27422 (smin<mode>3): Likewise.
27423 (altivec_vpkuhum): Likewise.
27424 (altivec_vpkuwum): Likewise.
27425 (altivec_vpkshss): Likewise.
27426 (altivec_vpkswss): Likewise.
27427 (altivec_vpkuhus): Likewise.
27428 (altivec_vpkshus): Likewise.
27429 (altivec_vpkuwus): Likewise.
27430 (altivec_vpkswus): Likewise.
27431 (altivec_vpks<VI_char>ss): Likewise.
27432 (altivec_vpks<VI_char>us): Likewise.
27433 (altivec_vpku<VI_char>us): Likewise.
27434 (altivec_vpku<VI_char>um): Likewise.
27435 (altivec_vrl<VI_char>): Likewise.
27436 (altivec_vsl<VI_char>): Likewise.
27437 (altivec_vsr<VI_char>): Likewise.
27438 (altivec_vsra<VI_char>): Likewise.
27439 (altivec_vsldoi_<mode>): Likewise.
27440 (altivec_vupkhsb): Likewise.
27441 (altivec_vupkhs<VU_char>): Likewise.
27442 (altivec_vupkls<VU_char>): Likewise.
27443 (altivec_vupkhsh): Likewise.
27444 (altivec_vupklsb): Likewise.
27445 (altivec_vupklsh): Likewise.
27446 (altivec_vcmpequ<VI_char>_p): Likewise.
27447 (altivec_vcmpgts<VI_char>_p): Likewise.
27448 (altivec_vcmpgtu<VI_char>_p): Likewise.
27449 (abs<mode>2): Likewise.
27450 (vec_unpacks_hi_v16qi): Likewise.
27451 (vec_unpacks_hi_v8hi): Likewise.
27452 (vec_unpacks_lo_v16qi): Likewise.
27453 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27454 (vec_unpacks_lo_v8hi): Likewise.
27455 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27456 (vec_pack_trunc_v8h): Likewise.
27457 (vec_pack_trunc_v4si): Likewise.
27458 (vec_pack_trunc_<mode>): Likewise.
27460 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27462 (vec_vmaxsd): Likewise.
27463 (vec_vmaxud): Likewise.
27464 (vec_vminsd): Likewise.
27465 (vec_vminud): Likewise.
27466 (vec_vpksdss): Likewise.
27467 (vec_vpksdus): Likewise.
27468 (vec_vpkudum): Likewise.
27469 (vec_vpkudus): Likewise.
27470 (vec_vrld): Likewise.
27471 (vec_vsld): Likewise.
27472 (vec_vsrad): Likewise.
27473 (vec_vsrd): Likewise.
27474 (vec_vsubudm): Likewise.
27475 (vec_vupkhsw): Likewise.
27476 (vec_vupklsw): Likewise.
27478 2013-05-29 Jan Hubicka <jh@suse.cz>
27480 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27481 flags; reorder rest of fields in more consistent way.
27482 (varpool_node): Remove analyzed, finalized and alias.
27483 (cgraph_ndoe): Likewise.
27484 (symtab_alias_ultimate_target): New function.
27485 (cgraph_function_node): Move offline.
27486 (cgraph_reset_node): Declare.
27487 (cgraph_comdat_can_be_unshared_p): Remove.
27488 (varpool_remove_initializer): Declare.
27489 (varpool_first_defined_variable, varpool_next_defined_variable
27490 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27491 (cgraph_function_with_gimple_body_p): Update.
27492 (varpool_all_refs_explicit_p): Update.
27493 (symtab_alias_target): New function.
27494 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27495 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27496 (cgraph_function_or_thunk_node): Simplify using
27497 symtab_alias_ultimate_target.
27498 (varpool_variable_node): Likewise.
27499 * cgraph.c (cgraph_create_function_alias): Update.
27500 (cgraph_add_thunk): Update.
27501 (cgraph_remove_node): Update.
27502 (dump_cgraph_node): Do not dump removed flags.
27503 (cgraph_function_body_availability): Update.
27504 (cgraph_propagate_frequency): Update.
27505 (verify_cgraph_node): Check sanity of local flag.
27506 (cgraph_function_node): Move here from cgraph.h; revamp for
27507 cgraph_function_or_thunk_node.
27508 * lto-symtab.c (lto_varpool_replace_node): Update.
27509 (lto_symtab_resolve_can_prevail_p): Update.
27510 (lto_symtab_merge_cgraph_nodes): Update.
27511 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27512 propagate_constants_accross_call, devirtualization_time_bonus,
27513 ipcp_propagate_stage): Update.
27514 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27515 * ipa-inline-transform.c (clone_inlined_nodes,
27516 preserve_function_body_p): Update.
27517 * ipa-reference.c (propagate): Update.
27518 (write_node_summary_p): Update.
27519 * toplev.c (wrapup_global_declaration_2): Update.
27520 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27521 (analyze_function) ... this one.
27522 (cgraph_process_new_functions): Update.
27523 (cgraph_reset_node): Export.
27524 (cgraph_finalize_function): Update.
27525 (cgraph_add_new_function): Update.
27526 (process_function_and_variable_attributes): Update.
27527 (varpool_finalize_decl): Update.
27528 (symbol_finalized): Remove.
27529 (symbol_finalized_and_needed): Rename to ...
27530 (symbol_defined_and_needed): ... update.
27531 (cgraph_analyze_functions): Update.
27532 (handle_alias_pairs): Update.
27533 (mark_functions_to_output): Update.
27534 (assemble_thunk): Update.
27535 (output_in_order): Update.
27536 (output_weakrefs): Update.
27537 (finalize_compilation_unit): Update.
27538 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27539 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27540 input_node, input_varpool_node): Update.
27541 * dbxout.c (dbxout_expand_expr): Update.
27542 * cgraphclones.c (cgraph_clone_node): Update.
27543 (cgraph_copy_node_for_versioning): Update.
27544 (cgraph_materialize_clone): Update.
27545 (cgraph_materialize_all_clones): Update.
27546 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27547 propagate_pure_const, propagate_nothrow): Update.
27548 * lto-streamer-out.c (lto_output, write_symbol): Update.
27549 * ipa-utils.c (ipa_reverse_postorder): Update.
27550 * ipa-inline.c (can_inline_edge_p): Update.
27551 (update_caller_keys, ipa_inline): Update.
27552 * dwarf2out.c (reference_to_unused,
27553 premark_types_used_by_global_vars_helper): Update.
27554 * tree-eh.c (tree_could_trap_p): Update.
27555 * ipa-split.c (consider_split, execute_split_functions): Update.
27556 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27557 has_addr_references_p): Update; move ahead in file for better
27559 (process_references): Simplify.
27560 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27561 bodies are removed.
27562 (cgraph_comdat_can_be_unshared_p): Make static.
27563 (cgraph_externally_visible_p): Update.
27564 (varpool_externally_visible_p): Update.
27565 (function_and_variable_visibility): Update.
27566 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27567 ipa_tm_mark_force_output_node): Update.
27568 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27569 estimate_edge_devirt_benefit, inline_generate_summary,
27570 inline_write_summary): Update.
27571 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27572 * ipa-prop.c (ipa_compute_jump_functions): Update.
27573 (ipa_print_node_params, ipa_prop_read_section,
27574 ipa_update_after_lto_read, read_replacements_section): Update.
27575 * varasm.c (mark_decl_referenced): Update.
27576 (assemble_alias, dump_tm_clone_pairs): Update.
27577 * tree-inline.c (copy_bb): Update.
27578 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27580 * symtab.c (dump_symtab_base): Print new flags.
27581 (verify_symtab_base): Verify new flags.
27582 (symtab_alias_ultimate_target): New function.
27583 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27584 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27586 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27588 * i386.c (ix86_get_function_versions_dispatcher,
27589 ix86_generate_version_dispatcher_body): Update.
27590 (fold_builtin_cpu): Use varpool_add_new_variable.
27591 * varpool.c (varpool_remove_initializer): Break out from ...
27592 (varpool_remove_node): ... this one.
27593 (dump_varpool_node, varpool_node_for_asm,
27594 cgraph_variable_initializer_availability, varpool_analyze_node,
27595 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27596 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27599 2013-05-29 Jan Hubicka <jh@suse.cz>
27601 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27603 2013-05-29 Easwaran Raman <eraman@google.com>
27605 PR tree-optimization/57442
27606 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27607 when control exits the main loop.
27609 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27611 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27613 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27614 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27615 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27618 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27620 PR tree-optimization/57441
27621 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27622 Don't limit size of incr_vec to number of candidates.
27624 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27626 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27627 and mips16 directories.
27628 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27629 (MULTILIB_DIRNAMES): Ditto.
27630 (MULTILIB_EXCEPTIONS): Add new exceptions.
27631 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27632 (MULTILIB_DIRNAMES): Ditto.
27633 (MULTILIB_EXCEPTIONS): Add new exceptions.
27635 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27636 Marcus Shawcroft <marcus.shawcroft@arm.com>
27638 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27639 SYMBOL_TINY_ABSOLUTE.
27640 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27641 SYMBOL_TINY_ABSOLUTE.
27642 (aarch64_expand_mov_immediate): Likewise.
27643 (aarch64_classify_symbol): Likewise.
27644 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27645 Permit SYMBOL_TINY_ABSOLUTE.
27646 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27648 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27649 Marcus Shawcroft <marcus.shawcroft@arm.com>
27651 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27652 Refactor if/switch. Replace gcc_assert with if.
27654 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27656 * config/i386/i386.c (initial_ix86_tune_features): Enable
27657 FP Reassociation for AMD bdver1 and bdver2.
27659 2013-05-29 Martin Jambor <mjambor@suse.cz>
27661 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27662 and IMAGPART_EXPR do not occur within other handled_components.
27664 2013-05-29 Richard Biener <rguenther@suse.de>
27666 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27667 access on whether the use is in the BB we currently try to
27669 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27670 vectorize to vect_bb_slp_scalar_cost.
27672 2013-05-29 Richard Biener <rguenther@suse.de>
27674 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27675 computing scalar cost offsetted by stmts that are kept live
27677 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27678 for computation of scalar cost.
27680 2013-05-28 Steve Ellcey <sellcey@mips.com>
27682 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27684 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27686 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27687 array notation built-in reduction functions.
27688 * doc/passes.texi (Passes): Added documentation about changes done
27690 * doc/invoke.texi (C Dialect Options): Added documentation about
27691 the -fcilkplus flag.
27692 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27693 (BUILTINS_DEF): Depend on cilkplus.def.
27694 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27695 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27696 * cilkplus.def: New file.
27698 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27700 PR rtl-optimization/57439
27701 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27703 2013-05-28 Easwaran Raman <eraman@google.com>
27705 PR tree-optimization/57337
27706 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27707 (find_insert_point): Correctly identify the insertion point
27708 when two statements with the same UID is compared.
27710 2013-05-28 Richard Biener <rguenther@suse.de>
27712 PR tree-optimization/56787
27713 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27714 from the list of data references.
27715 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27717 (vect_analyze_loop_operations): Likewise.
27718 (vect_transform_loop): Remove clobbers.
27720 2013-05-28 Martin Jambor <mjambor@suse.cz>
27722 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27723 and REALPART_EXPRs have scalar type.
27725 2013-05-28 Richard Biener <rguenther@suse.de>
27727 PR tree-optimization/57411
27728 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27730 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27731 virtual operand propagation.
27733 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27735 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27736 destination register for bmasksi_vis.
27737 (vector_init_bshuffle): Likewise.
27738 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27740 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27742 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27743 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27744 mode if the instruction isn't available in the original mode.
27745 * config/sparc/sparc.opt (mfix-ut699): New option.
27746 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27747 (divdf3): Turn into expander.
27748 (divdf3_nofix): New insn.
27749 (divdf3_fix): Likewise.
27750 (divsf3): Disable if -mfix-ut699.
27751 (sqrtdf2): Turn into expander.
27752 (sqrtdf2_nofix): New insn.
27753 (sqrtdf2_fix): Likewise.
27754 (sqrtsf2): Disable if -mfix-ut699.
27756 2013-05-27 Richard Biener <rguenther@suse.de>
27758 PR middle-end/57412
27759 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27760 block for the new loop.
27762 2013-05-27 Richard Biener <rguenther@suse.de>
27764 PR tree-optimization/57343
27765 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27766 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27767 (number_of_iterations_cond): Do not build the folded tree.
27769 2013-05-27 Richard Biener <rguenther@suse.de>
27772 PR middle-end/57381
27773 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27774 OEP_CONSTANT_ADDRESS_OF retained.
27776 PR tree-optimization/57417
27777 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27778 for unchanged base.
27779 (set_ssa_val_to): Compare addresses using
27780 get_addr_base_and_unit_offset.
27782 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27784 PR rtl-optimization/56833
27785 * postreload.c (move2add_record_mode): New function.
27786 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27787 (move2add_use_add2_insn): Use move2add_record_sym_value.
27788 (move2add_use_add3_insn): Likewise.
27789 (reload_cse_move2add): Use move2add_valid_value_p and
27790 move2add_record_mode. Invalidate call-clobbered and REG_INC
27791 affected regs by setting reg_mode to VOIDmode.
27792 (move2add_note_store): Don't pretend the inside of a SUBREG is
27793 the actual destination. Invalidate single/leading registers by
27794 setting reg_mode to VOIDmode.
27795 Use move2add_record_sym_value, move2add_valid_value_p and
27796 move2add_record_mode.
27798 2013-05-27 Richard Biener <rguenther@suse.de>
27800 PR tree-optimization/57396
27801 * tree-affine.c (double_int_constant_multiple_p): Properly
27802 return false for val == 0 and div != 0.
27804 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27806 * config/mips/mips.h: Use #elif in preprocessor conditions.
27808 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27811 * config/mips/constraints.md (kl): New constraint.
27812 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27813 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27814 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27815 from LO for MIPS16.
27816 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27818 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27821 * config/mips/mips.c (mips_can_inline_p): New function.
27822 (TARGET_CAN_INLINE_P): Define.
27824 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27826 * sched-int.h (ds_t, dw_t): Make unsigned int.
27827 Fix documentation that describes how all the ds_t bits are used.
27828 Reserve the last bit for delayed-branch scheduling.
27829 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27830 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27831 (gen_dep_weak_1): Remove prototype.
27832 * sched-deps.c (get_dep_weak_1): Make static.
27833 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27834 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27835 * doc/tm.texi: Regenerate.
27836 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27838 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27841 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27843 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27844 Sandra Loosemore <sandra@codesourcery.com>
27846 * config.gcc (powerpc-*): Allow native for with-cpu.
27848 2013-05-24 Jeff Law <law@redhat.com>
27850 PR tree-optimization/57124
27851 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27852 conversion feeding a condition if the range has an overflow
27853 if -fstrict-overflow. Add warnings for when we do make the
27856 2013-05-24 Dehao Chen <dehao@google.com>
27858 * tree-cfg.c (locus_discrim_map): Fix the typo.
27859 (locus_discrim_hasher): Likewise.
27860 (locus_discrim_hasher::hash): Likewise.
27861 (locus_discrim_hasher::equal): Likewise.
27863 2013-05-24 Martin Jambor <mjambor@suse.cz>
27865 PR tree-optimization/57294
27866 * cgraph.h (ipa_record_stmt_references): Declare.
27867 * cgraphbuild.c (ipa_record_stmt_references): New function.
27868 (build_cgraph_edges): Use ipa_record_stmt_references.
27869 (rebuild_cgraph_edges): Likewise.
27870 (cgraph_rebuild_references): Likewise.
27871 * ipa-prop.c (ipa_modify_call_arguments): Discard references
27872 associated with the old statement and build references from the
27873 newly built statements.
27874 * ipa-ref.c (ipa_remove_stmt_references): New function.
27875 * ipa-ref.h (ipa_remove_stmt_references): Declare.
27877 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
27879 * lra-constraints.c (emit_spill_move): Use smaller mode for
27881 (check_and_process_move): Consider mem-reg moves for secondary
27883 (curr_insn_transform): Don't lose insns emitted before for
27884 secondary memory moves.
27885 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
27886 reg set up in the current insn.
27888 2013-05-24 Dehao Chen <dehao@google.com>
27890 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
27892 (locus_descrim_hasher::equal): Likewise.
27893 (build_gimple_cfg): New discriminator assignment algorithm.
27894 (make_edges): Likewise.
27895 (next_discriminator_for_locus): Likewise.
27896 (same_line_p): Likewise.
27897 (assign_discriminators): Likewise.
27898 (make_cond_expr_edges): Likewise.
27899 (make_gimple_switch_edges): Likewise.
27900 (make_goto_expr_edges): Likewise.
27901 (make_gimple_asm_edges): Likewise.
27903 2013-05-24 Ian Bolton <ian.bolton@arm.com>
27905 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
27906 X format specifier to only display bottom 16 bits.
27907 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
27908 immediate to match for operand 2, since it will be masked.
27910 2013-05-24 Richard Biener <rguenther@suse.de>
27912 PR tree-optimization/57287
27913 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
27914 all SSA names that occur in abnormal PHIs.
27916 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
27919 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
27920 that index is not negative.
27922 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
27924 PR rtl-optimization/55177
27925 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
27926 (simplify_byte_swapping_operation): New.
27927 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
27928 (simplify_relational_operation_1): Deal with BSWAP.
27930 2013-05-23 Richard Henderson <rth@redhat.com>
27933 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
27934 (ix86_reorg): Call it.
27936 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
27939 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
27940 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
27941 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
27943 2013-05-23 Christian Bruel <christian.bruel@st.com>
27946 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
27948 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27949 Marcus Shawcroft <marcus.shawcroft@arm.com>
27951 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
27952 * config/aarch64/constraints.md (Usa): Remove.
27953 * doc/md.texi (AArch64 Usa): Remove.
27955 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27956 Marcus Shawcroft <marcus.shawcroft@arm.com>
27958 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
27959 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
27960 * config/aarch64/predicates.md (aarch64_const_address): Remove.
27961 (aarch64_mov_operand): Use aarch64_mov_operand_p.
27963 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
27965 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
27966 instruction (AdvSIMD).
27967 * config/aarch64/aarch64-builtins.c
27968 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
27969 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
27971 2013-05-23 Martin Jambor <mjambor@suse.cz>
27973 PR middle-end/57347
27974 * tree.h (contains_bitfld_component_ref_p): Declare.
27975 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
27976 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
27978 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
27979 not access a bit-field. Assert all final offsets are byte-aligned.
27981 2013-05-23 Richard Biener <rguenther@suse.de>
27983 PR tree-optimization/57380
27984 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
27985 least one invariant or re-used load.
27986 * passes.c (init_optimization_passes): Move pass_phiprop before
27989 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
27991 * config/aarch64/aarch64-simd.md
27992 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
27994 2013-05-23 Richard Biener <rguenther@suse.de>
27996 PR middle-end/57381
27997 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27998 OEP_CONSTANT_ADDRESS_OF retained.
28000 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28002 PR middle-end/57344
28003 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28004 don't lower unit. Handle unit not being always BITS_PER_WORD.
28006 2013-05-23 Richard Biener <rguenther@suse.de>
28008 PR rtl-optimization/57341
28009 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28010 instead of true_dependence.
28012 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28014 * bb-reorder.c (branch_threshold): Make const.
28015 (exec_threshold): Ditto.
28017 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28018 Pat Haugen <pthaugen@us.ibm.com>
28019 Peter Bergner <bergner@vnet.ibm.com>
28021 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28022 documentation for the power8 crypto builtins.
28024 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28026 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28027 macros for defining power8 builtin functions.
28028 (BU_P8V_AV_2): Likewise.
28029 (BU_P8V_AV_P): Likewise.
28030 (BU_P8V_VSX_1): Likewise.
28031 (BU_P8V_OVERLOAD_1): Likewise.
28032 (BU_P8V_OVERLOAD_2): Likewise.
28033 (BU_CRYPTO_1): Likewise.
28034 (BU_CRYPTO_2): Likewise.
28035 (BU_CRYPTO_3): Likewise.
28036 (BU_CRYPTO_OVERLOAD_1): Likewise.
28037 (BU_CRYPTO_OVERLOAD_2): Likewise.
28038 (XSCVSPDP): Fix typo, point to the correct instruction.
28039 (VCIPHER): Add power8 crypto builtins.
28040 (VCIPHERLAST): Likewise.
28041 (VNCIPHER): Likewise.
28042 (VNCIPHERLAST): Likewise.
28043 (VPMSUMB): Likewise.
28044 (VPMSUMH): Likewise.
28045 (VPMSUMW): Likewise.
28046 (VPERMXOR_V2DI): Likewise.
28047 (VPERMXOR_V4SI: Likewise.
28048 (VPERMXOR_V8HI: Likewise.
28049 (VPERMXOR_V16QI: Likewise.
28050 (VSHASIGMAW): Likewise.
28051 (VSHASIGMAD): Likewise.
28052 (VPMSUM): Likewise.
28053 (VPERMXOR): Likewise.
28054 (VSHASIGMA): Likewise.
28056 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28057 __CRYPTO__ if the crypto instructions are available.
28058 (altivec_overloaded_builtins): Add support for overloaded power8
28061 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28062 support for power8 crypto builtins.
28063 (builtin_function_type): Likewise.
28064 (altivec_init_builtins): Add support for builtins that take vector
28065 long long (V2DI) arguments.
28067 * config/rs6000/crypto.md: New file, define power8 crypto
28070 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28071 Pat Haugen <pthaugen@us.ibm.com>
28072 Peter Bergner <bergner@vnet.ibm.com>
28074 * doc/invoke.texi (Option Summary): Add power8 options.
28075 (RS/6000 and PowerPC Options): Likewise.
28077 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28078 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28079 wm, wn, wr documentation.
28081 * config/rs6000/constraints.md (wm): New constraint for VSX
28082 registers if direct move instructions are enabled.
28083 (wn): New constraint for no registers.
28084 (wq): New constraint for quad word even GPR registers.
28085 (wr): New constraint if 64-bit instructions are enabled.
28086 (wv): New constraint if power8 vector instructions are enabled.
28087 (wQ): New constraint for quad word memory locations.
28089 * config/rs6000/predicates.md (const_0_to_15_operand): New
28090 constraint for 0..15 for crypto instructions.
28091 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28092 as GPR and floating point registers.
28093 (int_reg_operand): New predicate to match only GPR registers.
28094 (base_reg_operand): New predicate to match base registers.
28095 (quad_int_reg_operand): New predicate to match even GPR registers
28096 for quad memory operations.
28097 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28098 operations in both GPR and VSX registers.
28099 (quad_memory_operand): New predicate for quad memory operations.
28100 (reg_or_indexed_operand): New predicate for direct move support.
28102 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28103 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28104 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28105 (POWERPC_MASKS): Add power8 options.
28106 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28109 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28110 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28112 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28113 (-mpower8-fusion): New power8 options.
28114 (-mpower8-fusion-sign): Likewise.
28115 (-mpower8-vector): Likewise.
28116 (-mcrypto): Likewise.
28117 (-mdirect-move): Likewise.
28118 (-mquad-memory): Likewise.
28120 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28121 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28123 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28124 (rs6000_debug_vector_unit): Add p8_vector.
28125 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28126 definitions. Also print fusion state.
28127 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28128 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28129 (rs6000_option_override_internal): Add support for power8.
28130 (rs6000_common_init_builtins): Add debugging for skipped builtins
28131 if -mdebug=builtin.
28132 (rs6000_adjust_cost): Add power8 support.
28133 (rs6000_issue_rate): Likewise.
28134 (insn_must_be_first_in_group): Likewise.
28135 (insn_must_be_last_in_group): Likewise.
28136 (force_new_group): Likewise.
28137 (rs6000_register_move_cost): Likewise.
28138 (rs6000_opt_masks): Likewise.
28140 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28141 power8 capable assembler, default to power7 options.
28142 (TARGET_DIRECT_MOVE): Likewise.
28143 (TARGET_CRYPTO): Likewise.
28144 (TARGET_P8_VECTOR): Likewise.
28145 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28146 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28147 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28148 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28149 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28150 (TARGET_XSCVDPSPN): Likewise.
28151 (TARGET_XSCVSPDPN): Likewsie.
28152 (TARGET_SYNC_HI_QI): Likewise.
28153 (TARGET_SYNC_TI): Likewise.
28154 (MASK_CRYPTO): Likewise.
28155 (MASK_DIRECT_MOVE): Likewise.
28156 (MASK_P8_FUSION): Likewise.
28157 (MASK_P8_VECTOR): Likewise.
28158 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28159 temporary used by some of the direct move instructions to get two FP
28160 temporary registers does not force creation of a stack frame.
28161 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28162 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28163 that any VSX registers are tieable, even if they are also an
28164 Altivec vector mode.
28165 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28166 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28167 (RS6000_BTM_CRYPTO): Likewise.
28168 (RS6000_BTM_COMMON): Likewise.
28170 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28171 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28172 (enum rs6000_vector): Add power8 vector support.
28174 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28178 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28179 (any_sibcall_could_use_r3): this and handle indirect calls.
28180 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28182 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28184 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28186 2013-05-22 Richard Biener <rguenther@suse.de>
28188 PR middle-end/57349
28189 * profile.c (branch_prob): Do not split blocks that are
28190 abnormally receiving from ECF_RETURNS_TWICE functions.
28192 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28194 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28195 address mode. Move pointer mode initialization to the same place.
28197 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28199 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28200 while it has any effect.
28202 2013-05-21 Easwaran Raman <eraman@google.com>
28204 PR tree-optimization/57322
28205 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28206 UID of the statement added to the BB to be 1.
28208 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28210 PR tree-optimization/57331
28211 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28212 of conversion from pointer type to integral type with integer.
28214 2013-05-21 Martin Jambor <mjambor@suse.cz>
28217 * ipa-prop.c (ipa_read_node_info): Process param_used and
28218 controlled_uses in the same order as when writing.
28220 2013-05-21 Magnus Granberg <baldrick@free.fr>
28223 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28225 2013-05-21 Richard Biener <rguenther@suse.de>
28227 PR tree-optimization/57318
28228 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28229 estimate stmts with side-effects as likely eliminated.
28231 2013-05-21 Richard Biener <rguenther@suse.de>
28233 PR tree-optimization/57330
28234 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28235 preserve the call stmts fntype.
28237 2013-05-21 Richard Biener <rguenther@suse.de>
28239 PR tree-optimization/57303
28240 * tree-ssa-sink.c (statement_sink_location): Improve killing
28241 stmt detection and properly handle self-assignments.
28243 2013-05-21 Christian Bruel <christian.bruel@st.com>
28245 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28246 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28247 registers. Set register size out of the PARALLEL loop.
28249 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28252 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28253 (*fmasf4, *fmasf4_media): New insns.
28255 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28257 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28258 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28259 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28260 (mips_idiv_insns): Update the comments to say that the returned
28261 instruction counts are in units of BASE_INSN_LENGTH.
28262 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28263 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28264 using 2 rather than 4 as the length of indirect MIPS16 and
28265 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28266 length of a NOP. Don't divide MIPS16 lengths by 2.
28267 (mips16_split_long_branches): Assume a branch is long if the
28268 length is greater than 4 rather than 8.
28269 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28270 rather than multiplying them by 2. Multiply instruction counts
28271 by BASE_INSN_LENGTH rather than 4.
28272 (*jump_mips16, tls_get_tp_mips16_<mode>)
28273 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28275 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28277 * config/mips/mips.md (extended_mips16): Remove branch case.
28278 (length): Remove duplicated extended_mips16 test.
28280 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28282 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28284 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28286 * recog.h (Recog_data): Rename to...
28287 (recog_data_d): ...this.
28288 (recog_data): Update accordingly.
28289 * recog.c (recog_data): Likewise.
28290 * reload.c (save_recog_data): Likewise.
28291 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28292 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28294 2013-05-17 Julian Brown <julian@codesourcery.com>
28296 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28297 found in a REG_EQUAL note, invalidate it.
28299 2013-05-17 Easwaran Raman <eraman@google.com>
28301 * tree-ssa-reassoc.c (find_insert_point): New function.
28302 (insert_stmt_after): Likewise.
28303 (get_def_stmt): Likewise.
28304 (ensure_ops_are_available): Likewise.
28305 (not_dominated_by): Likewise.
28306 (rewrite_expr_tree): Do not move statements beyond what is
28307 necessary. Remove call to swap_ops_for_binary_stmt...
28308 (reassociate_bb): ... and move it here.
28309 (build_and_add_sum): Assign UIDs for new statements.
28310 (linearize_expr): Likewise.
28311 (do_reassoc): Renumber gimple statement UIDs.
28313 2013-05-17 Jan Hubicka <jh@suse.cz>
28315 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28317 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28318 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28320 (output_weakrefs): Update.
28322 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28323 Martin Jambor <mjambor@suse.cz>
28325 PR middle-end/57276
28326 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28327 value that corresponds to the given aggval is found in values vector.
28329 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28331 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28332 sse, sse2, sse3, ssse3 and sse4a flags to options.
28334 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28336 * gengtype-state.c: (s_expr_writer): New class, to handle
28337 prettifying of output layout of s-expressions.
28338 (state_writer): New class, to write out gtype.state.
28339 (state_written_type_count): Move this variable into member data of
28341 (s_expr_writer::s_expr_writer): New code: constructor for new class
28342 (state_writer::state_writer(): ditto
28343 (s_expr_writer::write_new_line): New function
28344 (s_expr_writer::write_any_indent): ditto
28345 (s_expr_writer::begin_s_expr): ditto
28346 (s_expr_writer::end_s_expr): ditto
28347 (write_state_fileloc): convert to method of state_writer...
28348 (state_writer:: write_state_fileloc): ...and use methods of
28349 s_expr_writer to write indentation into the gtype.state output file
28350 to visually represent the hierarchical structure of the list
28352 (write_state_fields): ditto, renaming to...
28353 (state_writer::write_state_fields)
28354 (write_state_a_string): ditto, renaming to...
28355 (state_writer::write_state_a_string)
28356 (write_state_string_option): ditto, renaming to...
28357 (state_writer::write_state_string_option)
28358 (write_state_type_option): ditto, renaming to...
28359 (state_writer::write_state_type_option)
28360 (write_state_nested_option): ditto, renaming to...
28361 (state_writer::write_state_nested_option)
28362 (write_state_option): ditto, renaming to...
28363 (state_writer::write_state_option)
28364 (write_state_options): ditto, renaming to...
28365 (state_writer::write_state_options)
28366 (write_state_lang_bitmap): ditto, renaming to...
28367 (state_writer::write_state_lang_bitmap)
28368 (write_state_version): ditto, renaming to...
28369 (state_writer::write_state_version)
28370 (write_state_scalar_type): ditto, renaming to...
28371 (state_writer::write_state_scalar_type)
28372 (write_state_string_type): ditto, renaming to...
28373 (state_writer::write_state_string_type)
28374 (write_state_undefined_type): ditto, renaming to...
28375 (state_writer::write_state_undefined_type)
28376 (write_state_struct_union_type): ditto, renaming to...
28377 (state_writer::write_state_struct_union_type)
28378 (write_state_struct_type): ditto, renaming to...
28379 (state_writer::write_state_struct_type)
28380 (write_state_user_struct_type): ditto, renaming to...
28381 (state_writer::write_state_user_struct_type)
28382 (write_state_lang_struct_type): ditto, renaming to...
28383 (state_writer::write_state_lang_struct_type)
28384 (write_state_param_struct_type): ditto, renaming to...
28385 (state_writer::write_state_param_struct_type)
28386 (write_state_pointer_type): ditto, renaming to...
28387 (state_writer::write_state_pointer_type)
28388 (write_state_array_type): ditto, renaming to...
28389 (state_writer::write_state_array_type)
28390 (write_state_gc_used): ditto, renaming to...
28391 (state_writer::write_state_gc_used)
28392 (write_state_common_type_content): ditto, renaming to...
28393 (state_writer::write_state_common_type_content)
28394 (write_state_type): ditto, renaming to...
28395 (state_writer::write_state_type)
28396 (write_state_pair_list): ditto, renaming to...
28397 (state_writer::write_state_pair_list)
28398 (write_state_pair): ditto, renaming to...
28399 (state_writer::write_state_pair)
28400 (write_state_typedefs): ditto, renaming to...
28401 (state_writer::write_state_typedefs)
28402 (write_state_structures): ditto, renaming to...
28403 (state_writer::write_state_structures)
28404 (write_state_param_structs): ditto, renaming to...
28405 (state_writer::write_state_param_structs)
28406 (write_state_variables): ditto, renaming to...
28407 (state_writer::write_state_variables)
28408 (write_state_srcdir): ditto, renaming to...
28409 (state_writer::write_state_srcdir)
28410 (write_state_files_list): ditto, renaming to...
28411 (state_writer::write_state_files_list)
28412 (write_state_languages): ditto, renaming to...
28413 (state_writer::write_state_languages)
28414 (write_state): create a state_writer instance and use it when
28415 writing out the state file
28417 2013-05-17 Mike Stump <mikestump@comcast.net>
28419 PR rtl-optimization/57304
28420 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28421 accessing DF_REF_REAL_LOC.
28423 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28425 PR rtl-optimization/57281
28426 PR rtl-optimization/57300
28427 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28428 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28429 what the other splitter did if the registers are dead.
28431 2013-05-17 Richard Biener <rguenther@suse.de>
28433 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28436 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28438 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28441 2013-05-17 Marek Polacek <polacek@redhat.com>
28443 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28444 length when doing non-zero store of storing '\0' to '\0'.
28446 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28448 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28449 vect_external_def oprnd1 with loop_vinfo, try to emit
28450 optional cast, negation and and stmts on the loop preheader
28451 edge instead of into the pattern def seq.
28453 PR tree-optimization/57051
28454 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28455 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28457 2013-05-16 Nick Clifton <nickc@redhat.com>
28459 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28460 (rl78_is_naked_func): New function.
28461 (rl78_expand_prologue): Skip prologue generation for naked functions.
28462 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28463 * doc/extend.texi (naked): Add RL78 to the list of processors
28464 that supports this attribute.
28466 2013-05-16 Jeff Law <law@redhat.com>
28468 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28470 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28472 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28473 cache parameters using detect_caches_amd also for CYRIX,
28474 NSC and TM2 signatures.
28476 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28477 Dzianis Kahanovich <mahatma@eu.by>
28481 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28482 VIA/Centaur processors and determine their cache parameters
28483 using detect_caches_amd.
28485 2013-05-16 Teresa Johnson <tejohnson@google.com>
28487 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28488 (rtl_verify_edges): New function.
28489 (rtl_verify_bb_insns): Ditto.
28490 (rtl_verify_bb_pointers): Ditto.
28491 (rtl_verify_bb_insn_chain): Ditto.
28492 (rtl_verify_fallthru): Ditto.
28493 (rtl_verify_bb_layout): Ditto.
28494 (rtl_verify_flow_info_1): Outline checks into new functions.
28495 (rtl_verify_flow_info): Ditto.
28497 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28499 * cfghooks.c (copy_bbs): Add update_dominance argument.
28500 * cfghooks.h (copy_bbs): Update prototype.
28501 * tree-cfg.c (gimple_duplicate_sese_region):
28502 Add update_dominance argument.
28503 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28504 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28505 gimple_duplicate_sese_region call.
28506 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28507 Update copy_bbs call.
28508 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28509 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28511 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28513 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28514 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28515 vect_recog_rotate_pattern.
28516 (vect_recog_rotate_pattern): New function.
28518 2013-05-16 Jason Merrill <jason@redhat.com>
28520 * Makefile.in (LLINKER): New variable.
28521 (mostlyclean): Remove link mutex.
28522 * configure.ac: Handle --enable-link-mutex.
28523 * lock-and-run.sh: New script.
28525 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28528 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28531 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28533 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28535 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28537 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28538 * config/arm/arm.c (next_consecutive_mem): New function.
28539 (gen_movmem_ldrd_strd): Likewise.
28540 * config/arm/arm.md (movmemqi): Update condition and code.
28541 (unaligned_loaddi, unaligned_storedi): New patterns.
28543 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28545 * config.gcc: Obsolete *-*-solaris2.9*.
28546 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28548 2013-05-16 Richard Biener <rguenther@suse.de>
28550 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28551 earlier, after GRAPHITE transforms and IV canonicalization.
28553 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28555 * omp-low.c (extract_omp_for_data): For collapsed loops,
28556 if at least one of the loops is known at compile time to
28557 iterate zero times, set count to 0.
28558 (expand_omp_regimplify_p): New function.
28559 (expand_omp_for_generic): For collapsed loops, if at least
28560 one of the loops isn't known to iterate at least once,
28561 add runtime check with setting count to 0.
28562 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28563 For unsigned types if it isn't known at compile time that
28564 the loop will iterate at least once, add runtime check to bypass
28565 the whole loop if initial condition isn't true.
28567 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28569 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28571 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28573 PR middle-end/57286
28574 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28575 transformations to avoid an infinite loop.
28577 2013-05-16 Marek Polacek <polacek@redhat.com>
28579 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28581 2013-05-15 Leif Ekblad <leif@rdos.net>
28583 * config/i386/i386.c (ix86_decompose_address): Use
28584 DEFAULT_TLS_SEG_REG to access TLS segment register.
28585 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28586 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28587 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28589 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28592 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28593 sibling calls to functions that would normally be lazily bound,
28594 unless $gp is call-clobbered.
28596 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28598 * config/i386/i386.c (ix86_option_override_internal): Update
28599 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28600 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28601 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28602 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28604 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28606 2013-05-15 Andreas Schwab <schwab@suse.de>
28608 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28609 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28612 2013-05-15 Teresa Johnson <tejohnson@google.com>
28614 * loop-unroll.c (report_unroll_peel): Check decision before
28615 emitting unroll/peel message.
28617 2013-05-15 Teresa Johnson <tejohnson@google.com>
28619 * function.h (has_bb_partition): New rtl_data flag.
28620 (bb_reorder_complete): Ditto.
28621 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28622 instead of flag_reorder_blocks_and_partition.
28623 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28624 with some enhancements.
28625 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28626 * bb-reorder.c (connect_traces): Check for has_bb_partition
28627 instead of flag_reorder_blocks_and_partition.
28628 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28629 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28630 verify_hot_cold_block_grouping.
28631 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28633 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28636 * config/arm/predicates.md (call_insn_operand): New predicate.
28637 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28638 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28639 if insn is not a tail call.
28640 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28642 * config/arm/arm.h (enum reg_class): New caller save register class.
28643 (REG_CLASS_NAMES): Likewise.
28644 (REG_CLASS_CONTENTS): Likewise.
28645 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28648 2013-05-15 Richard Biener <rguenther@suse.de>
28650 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28651 of MSG_OPTIMIZED_LOCATIONS.
28652 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28653 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28655 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28656 of MSG_OPTIMIZED_LOCATIONS.
28657 (execute_vect_slp): Likewise.
28658 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28659 (vect_create_cond_for_alias_checks): Likewise.
28660 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28661 (vect_recog_widen_mult_pattern): Likewise.
28662 (vect_recog_widen_sum_pattern): Likewise.
28663 (vect_recog_over_widening_pattern): Likewise.
28664 (vect_recog_widen_shift_pattern): Likewise.
28665 (vect_recog_vector_vector_shift_pattern): Likewise.
28666 (vect_recog_divmod_pattern): Likewise.
28667 (vect_recog_mixed_size_cond_pattern): Likewise.
28668 (vect_recog_bool_pattern): Likewise.
28669 (vect_pattern_recog_1): Likewise.
28671 2013-05-15 Martin Jambor <mjambor@suse.cz>
28673 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28674 non-functions to builtin_unreachable.
28675 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28676 correct when new direct edges were discovered.
28678 2013-05-15 Martin Jambor <mjambor@suse.cz>
28680 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28681 header, print symbol order instead of node uid, print more information
28682 about indirect edge targets.
28683 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28685 (ipa_make_edge_direct_to_target): Likewise.
28686 (remove_described_reference): Likewise.
28687 (propagate_controlled_uses): Likewise.
28688 (ipa_print_node_params): Also print symbol order.
28689 (ipcp_transform_function): Print symbol order instead of node uids.
28690 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28691 (cgraph_get_create_real_symbol_node): Likewise.
28692 * ipa-cp.c (print_lattice): Likewise.
28693 (print_all_lattices): Likewise.
28694 (determine_versionability): Likewise.
28695 (initialize_node_lattices): Likewise.
28696 (estimate_local_effects): Likewise.
28697 (update_profiling_info): Likewise.
28698 (create_specialized_node): Likewise.
28699 (perhaps_add_new_callers): Likewise.
28700 (decide_about_value): Likewise.
28701 (decide_whether_version_node): Likewise.
28702 (identify_dead_nodes): Likewise.
28703 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28704 (dump_inline_summary): Likewise.
28705 (estimate_node_size_and_time): Likewise.
28706 (inline_analyze_function): Likewise.
28707 * ipa-inline.c (report_inline_failed_reason): Likewise.
28708 (want_early_inline_function_p): Likewise.
28709 (edge_badness): Likewise.
28710 (update_edge_key): Likewise.
28711 (inline_small_functions): Likewise. Add dumping of order to two other
28713 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28714 instead of node uids.
28715 (propagate_pure_const): Likewise.
28716 (propagate_pure_const): Likewise.
28717 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28718 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28719 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28721 * tree-pretty-print.c (dump_function_header): Likewise.
28722 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28723 Print symbol order instead of node uids.
28725 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28727 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28728 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28730 2013-05-15 Richard Biener <rguenther@suse.de>
28732 PR tree-optimization/57275
28733 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28734 return value for fail to do runtime alias checks for gather loads.
28736 2013-05-15 Jan Hubicka <jh@suse.cz>
28740 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28741 weakrefs are not external.
28742 (lto_symtab_merge_decls): Fix thinko when dealing with
28743 non-lto_symtab decls.
28744 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28745 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28746 * varpool.c (dump_varpool_node): Dump more flags.
28748 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28750 * config/i386/i386.c (processor_alias_table): Add instruction
28751 FSGSBASE for AMD bdver3 architecture.
28753 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28755 * tree.c (warn_deprecated_use): Print file:line using locus color.
28756 * diagnostic.c (diagnostic_report_current_module): Print file:line
28757 and file:line:column using locus color.
28759 2013-05-14 Mike Stump <mikestump@comcast.net>
28761 * gdbinit.in: Add __null.
28763 2013-05-14 Mike Stump <mikestump@comcast.net>
28765 * recog.h: Rename struct recog_data to Recog_data.
28766 * recog.c: Likewise.
28767 * reload.c (can_reload_into): Likewise.
28768 * config/picochip/picochip.c: Likewise.
28770 2013-05-14 Mike Stump <mikestump@comcast.net>
28772 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28774 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28776 * resource.h (struct resources): Remove unch_memory member.
28777 (CLEAR_RESOURCE): Don't clear unch_memory.
28778 * resource.c (mark_referenced_resources): Don't set it.
28779 (mark_set_resources): Likewise.
28780 (mark_target_live_regs): Don't clear it.
28781 (init_resource_info): Likewise.
28782 * reorg.c (resource_conflicts_p): Don't compare it.
28783 (redundant_insn): Don't set it.
28785 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28787 * emit-rtl.c (next_label): Remove unused function.
28788 (skip_consecutive_labels, link_cc0_insns): Move to ...
28789 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28790 only place where these functions are used, and make them static.
28792 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28794 * fold-const.c (fold_negate_expr): Handle vectors.
28795 (fold_truth_not_expr): Make it static.
28796 (fold_invert_truthvalue): New static function.
28797 (invert_truthvalue_loc): Handle vectors. Do not call
28798 fold_truth_not_expr directly.
28799 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28800 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28801 (fold_comparison): Handle vector constants.
28802 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28803 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28804 * tree.h (fold_truth_not_expr): Remove declaration.
28806 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28808 * config/aarch64/aarch64-simd.md
28809 (aarch64_vcond_internal<mode>): Rename to...
28810 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28811 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28812 float modes. Clarify all iterator modes.
28813 (vcond<mode><mode>): Use new name for vcond expanders.
28814 (vcond<v_cmp_result><mode>): Likewise.
28815 (vcondu<mode><mode>: Likewise.
28816 * config/aarch64/iterators.md (VDQF_COND): New.
28818 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28821 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28822 variable for the shift amount. Check that we shift by non-negative
28825 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28828 * config/arm/arm.h (EPILOGUE_USES): Only return true
28829 for LR_REGNUM after epilogue_completed.
28831 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28833 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28834 is error_mark_node.
28836 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28839 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28840 and Solaris 11+/x86 with gld.
28841 * configure: Regenerate.
28843 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28845 * expmed.c (expand_shift_1): Canonicalize rotates by
28846 constant bitsize / 2 to bitsize - 1.
28847 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28848 case ROTATERT>: Likewise.
28851 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28853 * config/i386/i386.md (rotateinv): New code attr.
28854 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28855 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28856 roll $31, %eax, etc.
28858 2013-05-14 Richard Biener <rguenther@suse.de>
28860 PR middle-end/57235
28861 * tree-eh.c (sink_clobbers): Give up for successors with
28862 multiple predecessors and no virtual uses.
28864 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
28866 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
28867 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
28869 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28871 PR middle-end/57251
28872 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
28873 the case when both op0 and op1 have VOIDmode.
28875 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28877 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
28878 in multiply-accumulate mode.
28880 2013-05-13 Guozhi Wei <carrot@google.com>
28882 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
28884 2013-05-13 Kai Tietz <ktietz@redhat.com>
28887 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
28888 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
28889 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
28890 * config/i386/i386.c (ix86_option_override_internal): Likewise.
28891 (ix86_expand_prologue): Likewise.
28892 (ix86_expand_split_stack_prologue): Likewise.
28893 (legitimate_pic_address_disp_p): Likewise.
28894 (legitimize_pic_address): Likewise.
28895 (legitimize_tls_address): Likewise.
28896 (legitimize_pe_coff_symbol): Likewise.
28897 (output_pic_addr_const): Likewise.
28898 (construct_plt_address): Likewise.
28899 (ix86_expand_call): Likewise.
28900 (x86_output_mi_thunk): Likewise.
28901 (x86_function_profiler): Likewise.
28903 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
28905 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
28906 similar switch cases.
28907 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
28908 (aarch64_simd_mov_to_<mode>low): Delete.
28909 (aarch64_simd_mov_to_<mode>high): Delete.
28910 (move_lo_quad_<mode>): Add w<-r alternative.
28911 (aarch64_simd_move_hi_quad_<mode>): Likewise.
28912 (aarch64_simd_mov_from_*): Update type attribute.
28913 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
28916 2013-05-13 Jan Hubicka <jh@suse.cz>
28918 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
28919 * config/i386/i386.c (ix86_compute_frame_layout,
28920 ix86_expand_epilogue, emit_i387_cw_initialization,
28921 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
28922 ix86_local_alignment): Fix use of size/speed predicates.
28924 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28926 PR tree-optimization/45216
28927 PR tree-optimization/57157
28928 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
28929 the (-Y) & (B - 1) variant if OP is |.
28930 * expmed.c (expand_shift_1): For rotations by const0_rtx just
28931 return shifted. Use (-op1) & (prec - 1) as other_amount
28932 instead of prec - op1.
28934 2013-05-13 Martin Jambor <mjambor@suse.cz>
28936 PR middle-end/42371
28937 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
28938 (ipa_constant_data): New type.
28939 (ipa_jump_func): Use ipa_constant_data to hold information about
28940 constant jump functions.
28941 (ipa_get_jf_constant): Adjust to jump function type changes.
28942 (ipa_get_jf_constant_rdesc): New function.
28943 (ipa_param_descriptor): New field controlled_uses.
28944 (ipa_get_controlled_uses): New function.
28945 (ipa_set_controlled_uses): Likewise.
28946 * ipa-ref.h (ipa_find_reference): Declare.
28947 * ipa-prop.c (ipa_cst_ref_desc): New type.
28948 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
28950 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
28951 New parameter cs. Adjust all callers.
28952 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
28953 (remove_described_reference): New function.
28954 (jfunc_rdesc_usable): Likewise.
28955 (try_make_edge_direct_simple_call): Decrement controlled use count,
28956 attempt to remove reference if it hits zero.
28957 (combine_controlled_uses_counters): New function.
28958 (propagate_controlled_uses): Likewise.
28959 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
28960 (ipa_edge_duplication_hook): Duplicate reference descriptions.
28961 (ipa_print_node_params): Print described use counter.
28962 (ipa_write_jump_function): Adjust to jump function type changes.
28963 (ipa_read_jump_function): New parameter CS, pass it to
28964 ipa_set_jf_constant. Adjust caller.
28965 (ipa_write_node_info): Stream controlled use count
28966 (ipa_read_node_info): Likewise.
28967 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
28969 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
28970 count. Remove cloning-added reference if it reaches zero.
28971 * ipa-ref.c (ipa_find_reference): New function.
28973 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28975 * config/i386/i386.c (processor_target_table): Modified default
28976 alignment values for AMD BD and BT architectures.
28978 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
28980 * tree-vect-generic.c (uniform_vector_p): Move ...
28981 * tree.c (uniform_vector_p): ... here.
28982 * tree.h (uniform_vector_p): Declare it.
28983 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
28986 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28988 PR tree-optimization/57230
28989 * tree-ssa-strlen.c (handle_char_store): Record length for
28990 array store from STRING_CST.
28992 PR tree-optimization/57230
28993 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
28996 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
28998 * config/epiphany/epiphany.c (epiphany_init): Check size of
28999 NUM_MODES_FOR_MODE_SWITCHING.
29000 (epiphany_expand_prologue):
29001 Remove CONFIG_REGNUM initial value handling code.
29002 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29003 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29004 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29005 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29006 Don't return 1 for FP_MODE_NONE.
29007 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29008 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29009 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29010 * config/epiphany/epiphany.md (save_config): New pattern.
29012 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29014 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29016 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29018 * config/i386/i386.md (memory): Handle sseishft1.
29019 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29020 (*vec_extractv2di_1): Ditto.
29022 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29024 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29027 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29029 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29030 Add mthumb/march=armv7-a multilib.
29031 Add mthumb/march=armv7-r multilib.
29032 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29034 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29036 * config/v850/t-rtems: Add more multilibs.
29038 2013-05-10 Richard Biener <rguenther@suse.de>
29040 PR tree-optimization/57214
29041 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29042 not propagate from SSA names that occur in abnormal PHI nodes.
29044 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29046 * stor-layout.c (element_precision): New function.
29047 * machmode.h (element_precision): Declare it.
29048 * tree.c (build_minus_one_cst): New function.
29049 (element_precision): Likewise.
29050 * tree.h (build_minus_one_cst): Declare new function.
29051 (element_precision): Likewise.
29052 * fold-const.c (operand_equal_p): Use element_precision.
29053 (fold_binary_loc): Handle vector types.
29054 * convert.c (convert_to_integer): Use element_precision.
29055 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29058 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29060 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29061 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29062 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29063 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29064 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29065 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29066 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29067 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29068 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29069 (Uuw8): New constraints.
29070 (Usb4): Move into alphabetical order.
29071 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29072 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29073 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29074 previously unnamed patterns.
29075 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29076 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29077 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29078 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29079 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29080 of specific lengths.
29082 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29084 * config/i386/i386.md (rotateinv): New code attr.
29085 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29086 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29087 roll $31, %eax, etc.
29089 PR tree-optimization/45216
29090 PR tree-optimization/57157
29091 * tree-ssa-forwprop.c (simplify_rotate): New function.
29092 (ssa_forward_propagate_and_combine): Call it.
29094 2013-05-10 Richard Biener <rguenther@suse.de>
29096 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29097 disable peeling when we version for aliasing.
29098 (vector_alignment_reachable_p): Honor explicit user alignment.
29099 (vect_supportable_dr_alignment): Likewise.
29100 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29101 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29102 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29103 then peeling to arrange for the cost-model check to come first.
29105 2013-05-10 Alan Modra <amodra@gmail.com>
29107 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29108 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29109 * configure: Regenerate.
29111 2013-05-10 Alan Modra <amodra@gmail.com>
29114 * varasm.c (default_elf_select_section): Move !DECL_P check..
29115 (get_named_section): ..to here before calling get_section_name.
29117 (default_section_type_flags): Add DECL_P check.
29118 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29119 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29121 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29123 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29124 When using gen_stack_adjust_str with a register offset, add a
29125 REG_FRAME_RELATED_EXPR note.
29127 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29129 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29130 (*vec_extractv4si_zext_mem): Ditto.
29131 (*vec_extractv2di): Add 0->x and x->x alternatives.
29132 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29133 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29135 2013-05-09 Jason Merrill <jason@redhat.com>
29137 N3639 C++1y VLA support
29138 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29141 * tree.c (build_constructor_va): New.
29142 * tree.h: Declare it.
29144 2013-05-09 Martin Jambor <mjambor@suse.cz>
29147 * gimple-fold.c (canonicalize_constructor_val): Call
29148 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29150 2013-05-09 Jan Hubicka <jh@suse.cz>
29151 Richard Biener <rguenther@suse.de>
29154 * symtab.c (symtab_make_decl_local): Do not add private names.
29156 2013-05-09 Jan Hubicka <jh@suse.cz>
29159 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29160 (unlink_from_assembler_name_hash): Likewise.
29161 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29162 symtab_unregister_node, symtab_initialize_asm_name_hash,
29163 change_decl_assembler_name): Update.
29165 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29167 * config/aarch64/aarch64.md: New movtf split.
29168 (*movtf_aarch64): Update.
29169 (aarch64_movdi_tilow): Handle TF modes and rename to
29170 aarch64_movdi_<mode>low.
29171 (aarch64_movdi_tihigh): Handle TF modes and rename to
29172 aarch64_movdi_<mode>high
29173 (aarch64_movtihigh_di): Handle TF modes and rename to
29174 aarch64_mov<mode>high_di
29175 (aarch64_movtilow_di): Handle TF modes and rename to
29176 aarch64_mov<mode>low_di
29177 (aarch64_movtilow_tilow): Remove spurious whitespace.
29178 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29180 (aarch64_print_operand): Update.
29182 2013-05-09 Alan Modra <amodra@gmail.com>
29184 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29186 * configure: Regenerate.
29188 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29190 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29191 splitter preparation statements.
29192 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29193 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29196 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29198 * gimple-ssa-strength-reduction.c (count_candidates): Change
29199 return value to int.
29200 (analyze_candidates_and_replace): Change type of length to int.
29202 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29204 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29205 (*vec_extract<mode>): Use VI12_128 mode iterator.
29206 (*vec_extract<mode>_mem): Ditto.
29207 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29210 2013-05-08 Diego Novillo <dnovillo@google.com>
29215 2012-08-17 Diego Novillo <dnovillo@google.com>
29218 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29219 * config.in: Regenerate.
29220 * configure: Regenerate.
29221 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29223 2013-05-08 Jan Hubicka <jh@suse.cz>
29226 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29227 * cgraph.h (symtab_node_base): Add unique_name.
29228 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29229 input_overwrite_node, input_varpool_node): Stream unique_name.
29230 * cgraphclones.c (cgraph_create_virtual_clone,
29231 cgraph_function_versioning): Set unique_name.
29232 * ipa.c (function_and_variable_visibility): Set unique_name.
29234 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29236 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29237 (alloc_cand_and_find_basis): Restrict conditional candidate
29238 processing to CAND_MULTs.
29240 2013-05-08 Jan Hubicka <jh@suse.cz>
29243 lto-symtab.c (lto_symtab_symbol_p): New function.
29244 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29245 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29246 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29247 Skip static symbols.
29249 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29251 PR tree-optimization/57200
29252 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29253 Only call inform if the preceding warning_at returns true.
29255 2013-05-07 Han Shen <shenhan@google.com>
29257 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29258 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29259 * common.opt (fstack-protector-strong): New option.
29260 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29261 * doc/invoke.texi (Optimization Options): Document
29262 "-fstack-protector-strong".
29263 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29265 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29267 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29269 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29271 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29272 it is not lhs of the insn.
29273 (setup_reg_equiv): Remove insn having equiv memory which it is not
29275 * lra-constraints.c (process_address): Try to improve generation
29276 code for address base + disp.
29277 (lra_constraints): Make correct the code for checking insn setting
29278 up backward equivalence. Remove insn only if it is in the init
29280 * lra-eliminations.c (update_reg_eliminate): Change return value.
29281 (lra_eliminate): Use the result.
29283 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29285 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29286 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29287 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29288 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29289 register target operands.
29290 (*vec_extractv8hi_sse2): New pattern.
29291 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29292 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29293 (*vec_extract<mode>_mem): New insn and split pattern.
29295 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29297 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29298 (TARGET_ASAN_SHADOW_OFFSET): Define.
29299 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29300 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29302 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29304 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29305 (incr_vec_index): Return -1 if increment not found.
29306 (create_add_on_incoming_edge): Assert if increment not found.
29307 (record_increment): Limit number of increments recorded.
29308 (all_phi_incrs_profitable): Return false if an increment not found.
29309 (replace_profitable_candidates): Don't process increments that were
29311 (analyze_candidates_and_replace): Limit size of incr_vec.
29313 2013-05-07 Richard Biener <rguenther@suse.de>
29315 * calls.c (special_function_p): setjmp-like functions are leaf.
29316 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29317 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29319 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29321 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29322 (aarch64_simd_mov<mode>): New expander.
29323 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29324 (aarch64_simd_mov_to_<mode>high): Likewise.
29325 (aarch64_simd_mov_from_<mode>low): Likewise.
29326 (aarch64_simd_mov_from_<mode>high): Likewise.
29327 (aarch64_dup_lane<mode>): Update.
29328 (aarch64_dup_lanedi): New instruction pattern.
29329 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29330 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29332 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29334 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29335 (replace_mult_candidate): Remove unnecessary argument; remove
29336 unnecessary parameter from call to introduce_cast_before_cand.
29337 (replace_unconditional_candidate): Remove unnecessary parameter
29338 from call to replace_mult_candidate.
29339 (replace_conditional_candidate): Likewise.
29340 (insert_initializers): Use make_temp_ssa_name.
29341 (introduce_cast_before_cand): Remove unnecessary argument; use
29342 make_temp_ssa_name.
29343 (replace_one_candidate): Remove unnecessary argument; remove
29344 unnecessary parameter from calls to introduce_cast_before_cand.
29345 (replace_profitable_candidates): Remove unnecessary parameters
29346 from calls to replace_one_candidate.
29348 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29350 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29351 phi def as possibly hiding a basis for a CAND_ADD whose operands
29352 have been commuted in the analysis.
29353 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29355 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29357 * config/aarch64/aarch64.md
29358 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29359 shift value between 0-4.
29361 2013-05-07 Richard Biener <rguenther@suse.de>
29363 * double-int.h (rshift): New overload.
29364 * double-int.c (rshift): New function.
29365 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29366 (create_reference_ops_from_ref): Remove.
29367 (vn_reference_insert): Use shared ops for constructing the
29368 reference and copy it.
29370 2013-05-07 Richard Biener <rguenther@suse.de>
29372 PR middle-end/57190
29373 * tree-eh.c (sink_clobbers): Properly propagate
29374 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29376 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29378 PR tree-optimization/57149
29379 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29380 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29381 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29382 uninit_undefined_value_p instead of ssa_undefined_value_p.
29385 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29386 for modifier == EXPAND_INITIALIZER.
29388 2013-05-07 Anton Blanchard <anton@samba.org>
29390 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29391 for powerpc64 little endian.
29392 * configure: Regenerate.
29394 2013-05-06 Graham Stott <grahams@btinternet.com>
29396 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29397 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29398 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29399 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29401 2013-05-06 Graham Stott <grahams@btinternet.com>
29403 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29404 codes which allow non-lvalues.
29406 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29408 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29409 components are all 1s.
29410 (integer_minus_onep): New function.
29411 * tree.h (integer_minus_onep): Declare it.
29412 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29413 integer_minus_onep instead of integer_all_onesp.
29415 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29418 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29419 variations of these patterns.
29421 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29423 * config/i386/i386.md (isa): Add x64_sse4 member.
29424 (enabled): Handle x64_sse4.
29425 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29426 instruction for 64bit SSE4_1 targets. Update insn attributes.
29427 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29428 instruction for SSE4_1 targets. Update insn attributes.
29429 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29430 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29431 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29433 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29434 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29435 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29437 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29440 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29442 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29444 * final.c (do_assembler_dialects): Don't handle curly braces and
29445 vertical bar escaped by % as dialect delimiters.
29446 (output_asm_insn): Print curly braces and vertical bar if escaped
29447 by % and ASSEMBLER_DIALECT defined.
29448 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29449 * doc/tm.texi: Regenerated.
29451 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29453 * config/mips/mips.c: Include tree-pass.h.
29454 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29455 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29456 (pass_mips_machine_reorg2): New machine specific pass.
29457 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29458 (mips_option_override): Register the new pass.
29459 * rtl.h (cleanup_barriers): Remove prototype.
29460 (dbr_schedule): Likewise.
29461 * jump.c (cleanup_barriers): Make static.
29462 * reorg.c (dbr_schedule): Likewise.
29464 2013-05-06 Richard Biener <rguenther@suse.de>
29466 PR tree-optimization/57185
29467 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29468 SSA names properly.
29470 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29473 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29474 between "first_arg" and "insn", not "last" and "insn".
29476 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29478 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29479 (find_candidates_in_block): Re-enable slsr_process_phi.
29480 (create_phi_basis): Fix double counting of candidate adjustment.
29482 2013-05-06 Richard Biener <rguenther@suse.de>
29484 PR middle-end/57147
29485 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29486 the edge is also fallthru, preserve it and just clear the
29488 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29489 also complex, preserve that and just clear the fallthru flag.
29490 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29491 update virtual operands.
29493 2013-05-06 Alan Modra <amodra@gmail.com>
29495 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29496 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29497 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29498 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29499 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29500 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29502 2013-05-06 Alan Modra <amodra@gmail.com>
29504 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29505 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29506 (DEFAULT_ASM_ENDIAN): Define.
29507 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29508 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29509 Update -K PIC clause from sysv4.h.
29510 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29511 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29513 2013-05-06 Alan Modra <amodra@gmail.com>
29515 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29516 twice for little-endian.
29517 (ashrdi3_no_power, ashrdi3): Support little-endian.
29519 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29522 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29523 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29525 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29526 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29527 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29530 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29531 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29533 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29534 * config/pa/pa.opt: Make mbig-switch a no-op.
29535 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29536 (CASE_VECTOR_MODE): Always return SImode.
29537 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29538 for the !TARGET_BIG_SWITCH case.
29539 * config/pa/pa-linux.h: Likewise.
29540 * config/pa/pa-openbsd.h: Likewise.
29541 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29542 * config/pa/pa.md (short_jump): Remove define_insn.
29543 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29544 (casesi0): Remove define_insn.
29545 (type): Remove btable_branch.
29546 (pa_combine_type): Likewise.
29547 (in_nullified_branch_delay): Likewise.
29548 (in_call_delay): Likewise.
29549 (define_delay): Likewise.
29550 (define_insn_reservation "Z3"): Likewise.
29551 (define_insn_reservation "Z4"): Likewise.
29552 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29553 (pa_adjust_insn_length): Remove adjustment for btable branches.
29554 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29557 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29559 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29560 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29561 Add m->r,x alternatives.
29562 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29563 splitters using SWI48x mode iterator.
29564 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29565 TARGET_64BIT. Add m->x alternative.
29566 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29567 Add o->x alternative. Enable for TARGET_SSE.
29568 (sse_storeq): Remove expander.
29569 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29570 with memory input operand.
29571 (*vec_extractv2di_1 splitter): New.
29572 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29573 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29575 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29577 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29578 (INT_LOWPART): Delete.
29579 (extract_MB): Adjust.
29580 (extract_ME): Adjust.
29581 (print_operand): Adjust.
29583 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29585 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29586 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29587 (reg_or_logical_cint_operand, easy_fp_constant,
29588 logical_const_operand): Delete "CONST_DOUBLE" case.
29589 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29590 "HOST_BITS_PER_WIDE_INT == 64" test.
29591 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29592 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29593 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29594 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29596 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29597 CONST_DOUBLE DImode/VOIDmode case.
29598 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29599 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29600 CONST_DOUBLE VOIDmode case.
29601 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29602 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29603 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29604 Delete CONST_DOUBLE case.
29605 (splitters for mov FMOVE64 const_double): Delete
29606 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29607 "HOST_BITS_PER_WIDE_INT >= 64" test.
29608 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29610 (mov DI const_double): Delete.
29612 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29614 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29615 on op shows all bits zero in mode of a lowpart subreg, return zero.
29617 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29620 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29621 to save TFmode registers and DImode to save TImode registers for
29622 caller save operations.
29623 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29624 mark being partially clobbered since they only use the first
29627 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29628 and TDmode only use the upper 64-bits of each VSX register.
29630 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29632 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29633 (find_candidates_in_block): Disable slsr_process_phi.
29635 2013-05-03 Guozhi Wei <carrot@google.com>
29637 * coverage.c (coverage_obj_init): Move the construction of gcov
29639 (build_init_ctor): ... here.
29641 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29643 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29644 (slsr_cand_d): Redefine def_phi.
29645 (stride_status, phi_adjust_status, count_phis_status): New enums.
29646 (find_phi_def): New.
29647 (find_basis_for_base_expr): New.
29648 (find_basis_for_candidate): Handle hidden bases.
29649 (alloc_cand_and_find_basis): Handle phi candidates.
29650 (slsr_process_phi): New.
29651 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29652 (create_mul_imm_cand): Likewise.
29653 (create_add_ssa_cand): Exclude phi base candidates.
29654 (create_add_imm_cand): Likewise.
29655 (slsr_process_cast): Likewise.
29656 (slsr_process_copy): Likewise.
29657 (find_candidates_in_block): Handle phi candidates.
29658 (dump_candidate): Likewise.
29659 (unconditional_cands): Delete.
29660 (unconditional_cands_with_known_stride_p): Delete.
29661 (phi_dependent_cand_p): New.
29662 (cand_increment): Handle phi-dependent candidates.
29663 (replace_dependent): Delete.
29664 (replace_mult_candidate): New.
29665 (replace_unconditional_candidate): New.
29666 (incr_vec_index): Move to avoid forward reference.
29667 (create_add_on_incoming_edge): New.
29668 (create_phi_basis): New.
29669 (replace_dependents): Delete.
29670 (replace_conditional_candidate): New.
29671 (phi_add_costs): New.
29672 (replace_uncond_cands_and_profitable_phis): New.
29673 (record_increment): Handle phi adjustments.
29674 (record_phi_increments): New.
29675 (record_increments): Handle phi adjustments.
29676 (phi_incr_cost): New.
29677 (lowest_cost_path): Handle phis.
29678 (total_savings): Likewise.
29679 (analyze_increments): Likewise.
29680 (ncd_with_phi): New.
29681 (ncd_of_cand_and_phis): New.
29682 (nearest_common_dominator_for_cands): Handle phi increments.
29683 (all_phi_incrs_profitable): New.
29684 (replace_profitable_candidates): Handle phi-dependent candidates.
29685 (analyze_candidates_and_replace): Likewise.
29687 2013-05-03 Teresa Johnson <tejohnson@google.com>
29690 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29691 do not exceed REG_BR_PROB_BASE.
29693 2013-05-03 Jeff Law <law@redhat.com>
29695 PR tree-optimization/57144
29696 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29697 operand of the condition will bit into the new type when eliminating
29698 a cast feeding a condition.
29700 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29702 PR rtl-optimization/57130
29703 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29704 of COMPARE as in_code to the recursive call if needed.
29706 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29708 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29709 (enabled): Handle new members.
29710 * config/i386/sse.md (*vec_concatv2si): Merge from
29711 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29712 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29714 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29716 PR tree-optimization/57027
29717 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29718 for fnms opportunity, check we got the prerequisite kind
29719 of tree / gimple before using accessor functions.
29721 2013-05-03 Richard Biener <rguenther@suse.de>
29723 * double-int.h (lshift): New overload without precision
29724 and arith argument.
29725 (operator *=, operator +=, operator -=): Move ...
29726 * double-int.c (operator *=, operator +=, operator -=): ... here
29727 and implement more efficiently.
29728 (mul_double_with_sign): Remove.
29729 (lshift_double): Adjust to take unsinged shift argument, push
29730 dispatching code to callers.
29731 (mul_double_wide_with_sign): Add early out for callers that
29732 are not interested in high parts or overflow.
29733 (lshift): New function.
29734 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29735 dispatch code here.
29736 (lrotate, rrotate): Use logical shifts.
29737 * expr.c (get_inner_reference): Use lshift.
29738 * fixed-value.c (do_fixed_divide): Likewise.
29739 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29740 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29741 (indirect_refs_may_alias_p): Likewise.
29742 (stmt_kills_ref_p_1): Likewise.
29744 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29746 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29748 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29750 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29751 scalar form of FABD instruction.
29753 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29755 * lra-constraints.c (process_alt_operands): Add checking alt
29756 number to choose the best alternative.
29758 2013-05-02 Richard Biener <rguenther@suse.de>
29760 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29761 bitmap and its handling.
29762 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29764 2013-05-02 Richard Biener <rguenther@suse.de>
29766 PR middle-end/57140
29767 * tree-inline.c (copy_loops): Properly handle removed loops.
29768 (copy_cfg_body): Mark destination loops for fixup if source
29769 loops needed fixup.
29771 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29774 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29775 generating simple_return for naked functions.
29777 2013-05-02 Martin Jambor <mjambor@suse.cz>
29779 PR middle-end/56988
29780 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29781 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29783 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29784 ipa_agg_replacement_value structures.
29785 (known_aggs_to_agg_replacement_list): Likewise.
29786 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29787 (read_agg_replacement_chain): Likewise.
29788 (ipcp_transform_function): Also check that by_ref flags match.
29790 2013-05-02 Richard Biener <rguenther@suse.de>
29792 * graphds.h (struct graph): Add obstack member.
29793 * graphds.c (new_graph): Initialize obstack and allocate
29795 (add_edge): Allocate edge from the obstack.
29796 (free_graph): Free the obstack instead of all edges and vertices.
29798 2013-05-02 Teresa Johnson <tejohnson@google.com>
29800 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29802 * cfg.c (update_bb_profile_for_threading): Ditto.
29803 * tree-inline.c (copy_bb): Ditto.
29804 (copy_edges_for_bb): Ditto.
29805 (initialize_cfun): Ditto.
29806 (copy_cfg_body): Ditto.
29807 (expand_call_inline): Ditto.
29808 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29809 (estimate_node_size_and_time): Ditto.
29810 (inline_merge_summary): Ditto.
29811 * cgraphclones.c (cgraph_clone_edge): Ditto.
29812 (cgraph_clone_node): Ditto.
29813 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29814 (compute_trg_info): Ditto.
29816 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29818 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29819 S reg when fp attribute set.
29820 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29822 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29824 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29826 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29827 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29828 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29830 2013-05-02 Richard Biener <rguenther@suse.de>
29832 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29833 (struct instantiate_cache_entry): New type.
29834 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29835 (struct instantiate_cache_type): New type.
29836 (set_instantiated_value, get_instantiated_value): Remove.
29837 (get_instantiated_value_entry): New function.
29838 (instantiate_scev_name): Use the new cache and adjust.
29839 (instantiate_scev_poly): Adjust.
29840 (instantiate_scev_binary): Likewise.
29841 (instantiate_array_ref): Likewise.
29842 (instantiate_scev_convert): Likewise.
29843 (instantiate_scev_not): Likewise.
29844 (instantiate_scev_3): Likewise.
29845 (instantiate_scev_2): Likewise.
29846 (instantiate_scev_r): Likewise.
29847 (instantiate_scev): Likewise.
29848 (resolve_mixers): Likewise.
29850 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29853 * lra-constraints.c (best_small_class_operands_num): Remove.
29854 (process_alt_operands): Remove small_class_operands_num. Take
29855 small classes operands into losers and only if the operand is not
29856 matched. Modify debugging output.
29857 (curr_insn_transform): Remove best_small_class_operands_num.
29860 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29862 * config/aarch64/aarch64-builtins.c
29863 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
29864 * config/aarch64/aarch64-simd-builtins.def
29865 (reduc_splus_): Add new modes.
29866 (reduc_uplus_): New.
29867 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
29868 (reduc_uplus_v4sf): Likewise.
29869 (reduc_splus_v4sf): Likewise.
29870 (aarch64_addv<mode>): Likewise.
29871 (reduc_uplus_<mode>): Likewise.
29872 (reduc_splus_<mode>): Likewise.
29873 (aarch64_addvv2di): Likewise.
29874 (reduc_uplus_v2di): Likewise.
29875 (reduc_splus_v2di): Likewise.
29876 (aarch64_addvv2si): Likewise.
29877 (reduc_uplus_v2si): Likewise.
29878 (reduc_splus_v2si): Likewise.
29879 (reduc_<sur>plus_<mode>): New.
29880 (reduc_<sur>plus_v2di): Likewise.
29881 (reduc_<sur>plus_v2si): Likewise.
29882 (reduc_<sur>plus_v4sf): Likewise.
29883 (aarch64_addpv4sf): Likewise.
29884 * config/aarch64/arm_neon.h
29885 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
29886 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
29887 add UNSPEC_SADDV, UNSPEC_UADDV.
29889 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
29891 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29893 * config/aarch64/arm_neon.h
29894 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
29896 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29898 * config/aarch64/aarch64-builtins
29899 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
29901 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29903 * config/aarch64/aarch64-simd-builtins.def
29904 (reduc_smax_): New.
29905 (reduc_smin_): Likewise.
29906 (reduc_umax_): Likewise.
29907 (reduc_umin_): Likewise.
29908 (reduc_smax_nan_): Likewise.
29909 (reduc_smin_nan_): Likewise.
29912 (smax): Update for V2SF, V4SF and V2DF modes.
29915 (smin_nan): Likewise.
29916 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
29917 (<su><maxmin><mode>3): ...This, refactor.
29918 (s<maxmin><mode>3): New.
29919 (<maxmin_uns><mode>3): Likewise.
29920 (reduc_<maxmin_uns>_<mode>): Refactor.
29921 (reduc_<maxmin_uns>_v4sf): Likewise.
29922 (reduc_<maxmin_uns>_v2si): Likewise.
29923 (aarch64_<fmaxmin><mode>: Remove.
29924 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
29926 (vmin<q>_f<32,64>): Likewise.
29927 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29929 (su): Add mappings for smax, smin, umax, umin.
29931 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29932 (FMAXMIN): Rename as...
29933 (FMAXMIN_UNS): ...This.
29935 (fmaxminv): Likewise.
29936 (fmaxmin): Likewise.
29938 (maxmin_uns_op): Likewise.
29940 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29942 * config/aarch64/arm_neon.h
29943 (vac<ge, gt><sd>_f<32, 64>): Rename to...
29944 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
29945 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
29947 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29949 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
29950 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
29952 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29954 * config/aarch64/aarch64-simd.md
29955 (vcond<mode>_internal): Handle special cases for constant masks.
29956 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
29957 (vcondu<mode><mode>): Likewise.
29958 (vcond<v_cmp_result><mode>): New.
29960 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29962 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
29963 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
29964 * config/aarch64/aarch64-simd-builtins.def
29965 (cmeq): Update to BUILTIN_VALLDI.
29970 * config/aarch64/arm_neon.h
29971 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
29972 to builtins or C as appropriate.
29974 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29976 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
29978 (cmhi): Rename to...
29980 * config/aarch64/aarch64-simd.md
29981 (simd_mode): Add SF.
29982 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
29983 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
29984 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
29985 (cstore<mode>_neg): ...This.
29986 * config/aarch64/iterators.md
29988 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
29989 (COMPARISONS): New.
29990 (UCOMPARISONS): Likewise.
29991 (optab): Add missing comparisons.
29997 (VCMP_S): Likewise.
29998 (VCMP_U): Likewise.
29999 (V_cmp_result): Add DF, SF modes.
30000 (v_cmp_result): Likewise.
30002 (vmtype): Likewise.
30003 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30005 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30007 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30008 define_insn to define_insn_and_split.
30009 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30010 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30011 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30012 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30013 (thumb2_negscc): Likewise.
30015 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30017 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30019 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30021 * config/arm/thumb2.md: Remove trailing whitespaces.
30023 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30025 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30026 Use gen_int_mode rather than GEN_INT.
30028 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30030 * value-prof.c (stream_in_histogram_value): Remove the strayed
30033 2013-04-30 Richard Biener <rguenther@suse.de>
30035 PR middle-end/57122
30036 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30038 2013-04-30 Richard Biener <rguenther@suse.de>
30040 PR middle-end/57107
30041 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30043 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30045 PR rtl-optimization/56957
30046 PR rtl-optimization/57105
30047 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30048 variable. Use just INSN_UID for determining whether an insn
30049 should be only disconnected from the insn stream.
30050 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30052 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30054 PR tree-optimization/57104
30055 * tsan.c (instrument_expr): Don't instrument accesses to
30056 DECL_HARD_REGISTER VAR_DECLs.
30058 2013-04-30 Richard Biener <rguenther@suse.de>
30060 * function.h (loops_for_fn): New inline function.
30061 (set_loops_for_fn): Likewise.
30062 * cfgloop.h (place_new_loop): Add struct function parameter.
30063 (get_loop): Likewise.
30064 (get_loops): Likewise.
30065 (number_of_loops): Likewise.
30066 (fel_next): Adjust.
30067 (fel_init): Likewise.
30068 * cfg.c (get_loop_copy): Adjust.
30069 * cfgloop.c (flow_loops_dump): Likewise.
30070 (record_loop_exits): Likewise.
30071 (verify_loop_structure): Likewise.
30072 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30073 (estimate_reg_pressure_cost): Likewise.
30074 (mark_loop_exit_edges): Likewise.
30075 * cfgloopmanip.c (place_new_loop): Likewise.
30076 (add_loop): Likewise.
30077 (duplicate_loop): Likewise.
30078 * graph.c (draw_cfg_nodes): Likewise.
30079 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30080 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30081 (extract_affine_chrec): Likewise.
30082 (build_scop_iteration_domain): Likewise.
30083 * graphite.c (graphite_initialize): Likewise.
30084 * ira-build.c (create_loop_tree_nodes): Likewise.
30085 (more_one_region_p): Likewise.
30086 (rebuild_regno_allocno_maps): Likewise.
30087 (mark_loops_for_removal): Likewise.
30088 (mark_all_loops_for_removal): Likewise.
30089 (remove_unnecessary_regions): Likewise.
30090 (ira_build): Likewise.
30091 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30092 * loop-init.c (fix_loop_structure): Likewise.
30093 (gate_rtl_move_loop_invariants): Likewise.
30094 (gate_rtl_unswitch): Likewise.
30095 (gate_rtl_unroll_and_peel_loops): Likewise.
30096 (rtl_doloop): Likewise.
30097 * lto-streamer-in.c (input_cfg): Likewise.
30098 * lto-streamer-out.c (output_cfg): Likewise.
30099 * modulo-sched.c (sms_schedule): Likewise.
30100 * predict.c (tree_estimate_probability): Likewise.
30101 (tree_estimate_probability_driver): Likewise.
30102 (estimate_loops): Likewise.
30103 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30104 (move_sese_region_to_fn): Likewise.
30105 (debug_loop_num): Likewise.
30106 * tree-chrec.c (chrec_evaluate): Likewise.
30107 (hide_evolution_in_other_loops_than_loop): Likewise.
30108 (chrec_component_in_loop_num): Likewise.
30109 (reset_evolution_in_loop): Likewise.
30110 (evolution_function_is_invariant_rec_p): Likewise.
30111 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30112 * tree-inline.c (copy_loops): Likewise.
30113 (copy_cfg_body): Likewise.
30114 (tree_function_versioning): Likewise.
30115 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30116 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30118 (add_to_evolution_1): Likewise.
30119 (scev_const_prop): Likewise.
30120 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30121 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30122 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30123 (tree_ssa_lim_initialize): Likewise.
30124 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30125 (verify_loop_closed_ssa): Likewise.
30126 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30127 (tree_ssa_loop_im): Likewise.
30128 (tree_ssa_loop_unswitch): Likewise.
30129 (tree_vectorize): Likewise.
30130 (check_data_deps): Likewise.
30131 (tree_ssa_loop_ivcanon): Likewise.
30132 (tree_ssa_loop_bounds): Likewise.
30133 (tree_complete_unroll): Likewise.
30134 (tree_complete_unroll_inner): Likewise.
30135 (tree_parallelize_loops): Likewise.
30136 (tree_ssa_loop_prefetch): Likewise.
30137 (tree_ssa_loop_ivopts): Likewise.
30138 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30139 * tree-vectorizer.c (vectorize_loops): Likewise.
30141 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30143 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30144 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30145 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30146 with EABI_LINK_SPEC.
30148 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30151 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30154 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30157 * lra-constraints.c (process_alt_operands): Discourage a bit more
30158 using memory for pseudos. Print cost dump for alternatives.
30159 Modify cost values for conflicts with early clobbers.
30160 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30162 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30165 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30167 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30169 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30170 from/to S register.
30171 (movdi_aarch64): Support LDR/STR from/to D register.
30173 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30175 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30176 or higher by default.
30178 2013-04-29 Richard Biener <rguenther@suse.de>
30180 PR middle-end/57075
30181 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30182 even if not adding abnormal edges for calls that can make
30185 2013-04-29 Richard Biener <rguenther@suse.de>
30187 PR middle-end/57103
30188 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30190 (move_stmt_r): Remove redundant checking.
30192 2013-04-29 Teresa Johnson <tejohnson@google.com>
30195 * basic-block.h (apply_scale): New function.
30196 (apply_probability): Use apply_scale.
30197 * gimple-streamer-in.c (input_bb): Ditto.
30198 * lto-streamer-in.c (input_cfg): Ditto.
30199 * lto-cgraph.c (merge_profile_summaries): Ditto.
30200 * tree-optimize.c (execute_fixup_cfg): Ditto.
30201 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30202 (copy_edges_for_bb): Ditto.
30203 (copy_cfg_body): Ditto.
30205 2013-04-29 Tom de Vries <tom@codesourcery.com>
30207 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30208 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30209 (tail_merge_optimize): Handle current_loops == NULL.
30211 2013-04-26 Jeff Law <law@redhat.com>
30213 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30214 (simplify_cond_using_ranges): Generalize code to simplify
30215 COND_EXPRs where one argument is a constant and the other
30216 is an SSA_NAME created by an integral type conversion.
30218 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30220 * config/arm/arm.md (store_minmaxsi): Use only when
30221 optimize_insn_for_size_p.
30223 2013-04-29 Christian Bruel <christian.bruel@st.com>
30226 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30228 2013-04-29 Richard Biener <rguenther@suse.de>
30230 PR middle-end/57089
30231 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30232 loop tree make sure to schedule a fixup for the child as well.
30233 (expand_omp_for_generic): Properly add loops.
30234 (expand_omp_for_static_nochunk): Likewise.
30235 (expand_omp_for_static_chunk): Likewise.
30236 (expand_omp_for): For the degenerate case fixup loops.
30237 (expand_omp_sections): Fix default bb placement in loops.
30238 (expand_omp_atomic_pipeline): Properly add loops.
30240 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30242 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30244 2013-04-29 Tom de Vries <tom@codesourcery.com>
30246 * tree-ssa-tail-merge.c: Update header comment.
30248 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30250 * config/aarch64/arm_neon.h
30251 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30252 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30253 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30254 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30255 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30256 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30257 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30258 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30260 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30262 * config/aarch64/aarch64-simd.md
30263 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30264 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30265 fix_trunc, fixuns_trunc.
30266 (ftrunc<VDQF:mode>2): New.
30267 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30268 (fix_trunc_optab): New.
30270 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30272 * config/aarch64/aarch64-builtins.c
30273 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30274 iceilf, lround, iroundf.
30276 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30279 * config/i386/i386.h (enum ix86_tune_indices)
30280 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30281 New, split from X86_TUNE_INTER_UNIT_MOVES.
30282 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30283 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30284 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30285 (TARGET_INTER_UNIT_MOVES): Remove.
30286 * config/i386/i386.c (initial_ix86_tune_features): Update.
30287 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30288 (ix86_expand_convert_uns_didf_sse): Use
30289 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30290 (ix86_expand_vector_init_one_nonzero): Ditto.
30291 (ix86_expand_vector_init_interleave): Ditto.
30292 (inline_secondary_memory_needed): Return true for moves from SSE class
30293 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30294 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30295 * config/i386/constraints.md (Yi, Ym): Depend on
30296 TARGET_INTER_UNIT_MOVES_TO_VEC.
30297 (Yj, Yn): New constraints.
30298 * config/i386/i386.md (*movdi_internal): Change constraints of
30299 operand 1 from Yi to Yj and from Ym to Yn.
30300 (*movsi_internal): Ditto.
30301 (*movdf_internal): Ditto.
30302 (*movsf_internal): Ditto.
30303 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30304 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30305 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30306 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30307 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30308 * config/i386/sse.md (movdi_to_sse): Ditto.
30309 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30310 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30311 TARGET_INTER_UNIT_MOVES.
30312 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30313 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30314 instead of TARGET_INTER_UNIT_MOVES.
30315 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30316 operand 1 from Yi to Yj and from Ym to Yn.
30318 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30320 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30321 (float_truncate_hi_): Likewise.
30322 (float_extend_lo_): Likewise.
30323 (float_truncate_lo_): Likewise.
30324 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30325 (aarch64_float_extend_lo_v2df): Likewise.
30326 (vec_unpacks_hi_v4sf): Likewise.
30327 (aarch64_float_truncate_lo_v2sf): Likewise.
30328 (aarch64_float_truncate_hi_v4sf): Likewise.
30329 (vec_pack_trunc_v2df): Likewise.
30330 (vec_pack_trunc_df): Likewise.
30332 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30334 * config/aarch64/aarch64-builtins.c
30335 (aarch64_fold_builtin): Fold float conversions.
30336 * config/aarch64/aarch64-simd-builtins.def
30337 (floatv2si, floatv4si, floatv2di): New.
30338 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30339 * config/aarch64/aarch64-simd.md
30340 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30341 * config/aarch64/iterators.md (FLOATUORS): New.
30342 (optab): Add float, floatuns.
30343 (su_optab): Likewise.
30345 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30347 * config/aarch64/aarch64-builtins.c
30348 (aarch64_builtin_vectorized_function): Use new names for
30350 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30351 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30352 (fcvtzu): Split as...
30353 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30354 (fcvtas): Split as...
30355 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30356 (fcvtau): Split as...
30357 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30358 (fcvtps): Split as...
30359 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30360 (fcvtpu): Split as...
30361 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30362 (fcvtms): Split as...
30363 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30364 (fcvtmu): Split as...
30365 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30366 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30367 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30368 (lfrintnusf, lfrintnudf): Likewise.
30369 * config/aarch64/aarch64-simd.md
30370 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30372 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30373 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30374 (fcvt_pattern): Likewise.
30376 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30378 * config/aarch64/aarch64-simd.md
30379 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30380 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30382 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30384 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30385 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30386 (vrnd<a,m,n,p>_f32): Implement using builtins.
30387 (vrnd<i,x><q>_f<32, 64>): New.
30389 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30391 * config/aarch64/aarch64-builtins.c
30392 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30393 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30394 (frintz): Rename to...
30396 (frintp): Rename to...
30398 (frintm): Rename to...
30400 (frinti): Rename to...
30401 (nearbyint): ...this.
30402 (frintx): Rename to...
30404 (frinta): Rename to...
30406 * config/aarch64/aarch64-simd.md
30407 (aarch64_frint<frint_suffix><mode>): Delete.
30408 (<frint_pattern><mode>2): Convert to insn.
30409 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30410 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30411 (frint_pattern): Likewise.
30412 (frint_suffix): Likewise.
30414 2013-04-29 Richard Biener <rguenther@suse.de>
30416 PR tree-optimization/57081
30417 * loop-init.c: Include tree-flow.h.
30418 (loop_optimizer_finalize): Free number of iteration estimates.
30419 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30421 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30423 PR tree-optimization/57083
30424 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30425 non-singleton shift count range, zero extend low_bound for uns case.
30427 * config/i386/predicates.md (general_vector_operand): New predicate.
30428 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30429 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30430 if they aren't nonimmediate operands. If their original values
30431 satisfy const_vector_equal_evenodd_p, don't shift them.
30432 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30433 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30434 if not nonimmediate_operand.
30435 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30436 instead of register_operand.
30437 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30439 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30441 * stor-layout.c (finalize_size_functions): Allocate a structure and
30442 reset cfun before dumping the functions.
30444 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30446 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30449 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30450 use xop_pmacsdqh if uns_p.
30451 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30452 the immediate rotate count.
30454 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30456 * rtl.h (struct rtx_def): Add comment for field jump.
30457 (LRA_SUBREG_P): New macro.
30458 * recog.c (register_operand): Check LRA_SUBREG_P.
30459 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30461 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30462 (lra_final_code_change): Skip subreg change for operators.
30463 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30464 if there are no operand changes.
30465 * lra-constraints.c (curr_insn_set): New.
30466 (match_reload): Set LRA_SUBREG_P.
30467 (emit_spill_move): Ditto.
30468 (check_and_process_move): Use curr_insn_set. Process only single
30469 set insns. Don't initialize sec_mem_p and change_p.
30470 (simplify_operand_subreg): Use LRA_SUBREG_P.
30471 (reg_in_class_p): New function.
30472 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30473 of #ifdef. Add code to remove cycling.
30474 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30475 non-null disp. Reload inner instead of disp when base and index
30476 are null. Try to put lo_sum into register.
30477 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30478 (check_and_process_move): Move code for move cost check to
30479 simple_move_p. Remove equiv_substitution.
30480 (simple_move_p): New function.
30481 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30482 curr_insn_set. Call check_and_process_move only for single set
30483 insns. Use the new function. Move call of check_and_process_move
30484 after operand equiv substitution and address process.
30486 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30489 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30490 with nonlocal goto receivers or returns twice calls, ignore
30491 unininitialized values from abnormal edges to nl goto receiver
30492 or returns twice call.
30494 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30496 PR tree-optimization/57051
30497 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30498 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30501 2013-04-26 Richard Biener <rguenther@suse.de>
30503 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30504 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30505 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30506 (fixup_loop_arrays_after_move): New function.
30507 (move_sese_region_to_fn): Properly outline the loop tree parts
30508 of the SESE region.
30510 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30512 * config/i386/i386.md (type, unit): Fix long lines.
30514 2013-04-26 Richard Biener <rguenther@suse.de>
30516 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30517 (lto-streamer-out.o): Likewise.
30518 * cfgloop.c (init_loops_structure): Export, add struct function
30519 argument and adjust.
30520 (flow_loops_find): Adjust.
30521 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30522 (init_loops_structure): Declare.
30523 * lto-streamer-in.c: Include cfgloop.h.
30524 (input_cfg): Input the loop tree.
30525 * lto-streamer-out.c: Include cfgloop.h.
30526 (output_cfg): Output the loop tree.
30527 (output_struct_function_base): Do not drop PROP_loops.
30529 2013-03-26 Richard Biener <rguenther@suse.de>
30531 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30532 (pass_build_cfg): Provide PROP_loops.
30533 (move_sese_region_to_fn): Remove loops that are outlined into fn
30535 * tree-inline.c: Include cfgloop.h.
30536 (initialize_cfun): Do not drop PROP_loops.
30537 (copy_loops): New function.
30538 (copy_cfg_body): Copy loop structure.
30539 (tree_function_versioning): Initialize destination loop tree.
30540 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30541 (pass_parallelize_loops): Do IL verification.
30542 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30543 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30544 the CFG make sure we fixup loops as well.
30545 * tree-ssa-tail-merge.c: Include cfgloop.h.
30546 (replace_block_by): When merging loop latches mark loops for fixup.
30547 * lto-streamer-out.c (output_struct_function_base): Drop
30548 PROP_loops for now.
30549 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30550 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30551 * ipa-split.c: Include cfgloop.h.
30552 (split_function): Add the new return block to the loop tree root.
30553 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30554 whether we have removed the forwarder block.
30555 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30556 * cfgloop.h (place_new_loop): Declare.
30557 * cfgloopmanip.c (place_new_loop): Export.
30558 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30559 (tree-switch-conversion.o): Likewise.
30560 (tree-complex.o): Likewise.
30561 (tree-inline.o): Likewise.
30562 (tree-ssa-tailmerge.o): Likewise.
30563 (ipa-split.o): Likewise.
30564 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30565 (tree-ssa-copy.o): Likewise.
30566 * tree-switch-conversion.c: Include cfgloop.h
30567 (process_switch): If we emit a bit-test cascade, schedule loops
30569 * tree-complex.c: Include cfgloop.h.
30570 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30571 * asan.c: Include cfgloop.h.
30572 (create_cond_insert_point): Properly add new basic-blocks to
30573 loops, schedule loop fixup.
30574 * cfgloop.c (verify_loop_structure): Check that looks are not
30576 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30578 (expand_omp_for_generic): Likewise.
30579 (expand_omp_sections): Likewise.
30580 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30581 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30582 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30583 is initialized, not when loops are present.
30584 * tree-parloops.c (parallelize_loops): Remove checking here.
30585 * passes.c (init_optimization_passes): Schedule a copy-propagation
30586 pass before complete unrolling of inner loops.
30588 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30590 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30591 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30592 (colorize_init): Add argument to _WIN32 version.
30593 * toplev.c: Include diagnostic-color.h.
30594 (process_options): Default to -fdiagnostics-color=auto if
30595 GCC_COLORS env var is in the environment.
30596 * common.opt (fdiagnostics-color=): Add Var and Init.
30597 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30598 env var is in the environment, the default is auto rather than never.
30600 * diagnostic.h (file_name_as_prefix): Add context argument.
30601 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30602 the string as locus.
30603 * langhooks.c (lhd_print_error_function): Adjust caller.
30605 2013-04-25 Lawrence Crowl <crowl@google.com>
30607 * var-tracking.c (shared_hash_def::htab):
30608 Change type to hash_table. Update dependent calls and types.
30610 2013-04-25 Lawrence Crowl <crowl@google.com>
30612 * Makefile.in: Update as needed below.
30614 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30615 Move declaration to after the type's method definitons.
30617 * attribs.c (htab_t scoped_attributes::attribute_hash):
30618 Change type to hash_table. Update dependent calls and types.
30620 * bitmap.c (htab_t bitmap_desc_hash):
30621 Change type to hash_table. Update dependent calls and types.
30623 * cselib.c (htab_t cselib_hash_table):
30624 Change type to hash_table. Update dependent calls and types.
30626 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30627 (hash_string_slot_node): Move implementation into lto-streamer.h
30628 struct string_slot_hasher.
30629 (eq_string_slot_node): Likewise.
30631 * data-streamer-out.c: Update output_block::string_hash_table
30632 dependent calls and types.
30634 * dwarf2cfi.c (htab_t trace_index):
30635 Change type to hash_table. Update dependent calls and types.
30637 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30638 Change type to hash_table. Update dependent calls and types.
30639 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30640 (htab_t optimize_external_refs::map): Likewise.
30641 (htab_t output_comp_unit::extern_map): Likewise.
30642 (htab_t output_comdat_type_unit::extern_map): Likewise.
30643 (htab_t output_macinfo::macinfo_htab): Likewise.
30644 (htab_t optimize_location_lists::htab): Likewise.
30645 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30647 * except.c (htab_t ehspec_hash_type):
30648 Change type to hash_table. Update dependent calls and types.
30649 (assign_filter_values::ttypes): Likewise.
30650 (assign_filter_values::ehspec): Likewise.
30651 (sjlj_assign_call_site_values::ar_hash): Likewise.
30652 (convert_to_eh_region_ranges::ar_hash): Likewise.
30654 * gcse.c (htab_t pre_ldst_table):
30655 Change type to hash_table. Update dependent calls and types.
30657 * ggc-common.c (htab_t saving_htab):
30658 Change type to hash_table. Update dependent calls and types.
30659 (htab_t loc_hash): Likewise.
30660 (htab_t ptr_hash): Likewise.
30661 (call_count): Rename ggc_call_count.
30662 (call_alloc): Rename ggc_call_alloc.
30663 (loc_descriptor): Rename make_loc_descriptor.
30664 (add_statistics): Rename ggc_add_statistics.
30666 * ggc-common.c (saving_htab):
30667 Change type to hash_table. Update dependent calls and types.
30669 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30670 (push_gimplify_context): Likewise.
30671 (pop_gimplify_context): Likewise.
30672 (struct gimple_temp_hash_elt): Added.
30673 (struct gimplify_hasher): Likewise.
30674 (struct gimplify_ctx.temp_htab):
30675 Change type to hash_table. Update dependent calls and types.
30677 * gimple-fold.c: Include gimplify-ctx.h.
30679 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30680 Change type to hash_table. Update dependent calls and types.
30681 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30682 avoid potential global name collision.
30684 * gimplify.c: Include gimplify-ctx.h.
30685 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30686 (htab_t gimplify_ctx::temp_htab):
30687 Update dependent calls and types for new type hash_table.
30688 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30689 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30691 * gimplify-ctx.h: New.
30692 (struct gimple_temp_hash_elt): Move from gimplify.c.
30693 (class gimplify_hasher): New.
30694 (struct gimplify_ctx): Move from gimple.h.
30695 (htab_t gimplify_ctx::temp_htab):
30696 Change type to hash_table. Update dependent calls and types.
30698 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30699 (htab_t ivs_params::newivs_index):
30700 Change type to hash_table. Update dependent calls and types.
30701 (htab_t ivs_params::params_index): Likewise.
30702 (htab_t print_generated_program::params_index): Likewise.
30703 (htab_t gloog::newivs_index): Likewise.
30704 (htab_t gloog::params_index): Likewise.
30706 * graphite.c: Include graphite-htab.h.
30707 4htab_t graphite_transform_loops::bb_pbb_mapping):
30708 Change type to hash_table. Update dependent calls and types.
30710 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30711 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30712 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30714 * graphite-dependences.c: Include graphite-htab.h.
30715 (loop_is_parallel_p): Change hash table type of parameter.
30717 * graphite-htab.h: New.
30718 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30719 (extern find_pbb_via_hash): Move from graphite-poly.h.
30720 (extern loop_is_parallel_p): Move from graphite-poly.h.
30721 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30723 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30724 (extern loop_is_parallel_p): Move to graphite-htab.h.
30725 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30727 * haifa-sched.c (htab_t delay_htab):
30728 Change type to hash_table. Update dependent calls and types.
30729 (htab_t delay_htab_i2): Likewise.
30731 * ira-color.c (htab_t allocno_hard_regs_htab):
30732 Change type to hash_table. Update dependent calls and types.
30734 * ira-costs.c (htab_t cost_classes_htab):
30735 Change type to hash_table. Update dependent calls and types.
30737 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30738 Change type to hash_table. Update dependent calls and types.
30740 * loop-iv.c (htab_t bivs):
30741 Change type to hash_table. Update dependent calls and types.
30743 * loop-unroll.c (htab_t opt_info::insns_to_split):
30744 Change type to hash_table. Update dependent calls and types.
30745 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30747 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30748 (struct string_slot_hasher): New.
30749 (htab_t output_block::string_hash_table):
30750 Change type to hash_table. Update dependent calls and types.
30752 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30753 (htab_t file_name_hash_table):
30754 Change type to hash_table. Update dependent calls and types.
30756 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30759 * lto-streamer.c (htab_t tree_htab):
30760 Change type to hash_table. Update dependent calls and types.
30762 * omp-low.c: Include gimplify-ctx.h.
30764 * passes.c (htab_t name_to_pass_map):
30765 Change type to hash_table. Update dependent calls and types.
30766 (pass_traverse): Rename to passes_pass_traverse.
30768 * plugin.c (htab_t event_tab):
30769 Change type to hash_table. Update dependent calls and types.
30771 * postreload-gcse.c (htab_t expr_table):
30772 Change type to hash_table. Update dependent calls and types.
30773 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30775 * sese.c (debug_rename_map_1): Make extern.
30776 (htab_t copy_bb_and_scalar_dependences::rename_map):
30777 Change type to hash_table. Update dependent calls and types.
30779 * sese.h (extern debug_rename_map): Move to .c file.
30781 * store-motion.c (htab_t store_motion_mems_table):
30782 Change type to hash_table. Update dependent calls and types.
30784 * trans-mem.c (htab_t tm_new_mem_hash):
30785 Change type to hash_table. Update dependent calls and types.
30787 * tree-browser.c (htab_t TB_up_ht):
30788 Change type to hash_table. Update dependent calls and types.
30790 * tree-cfg.c (htab_t discriminator_per_locus):
30791 Change type to hash_table. Update dependent calls and types.
30793 * tree-complex.c: Include tree-hasher.h
30794 (htab_t complex_variable_components):
30795 Change type to hash_table. Update dependent calls and types.
30797 * tree-eh.c (htab_t finally_tree):
30798 Change type to hash_table. Update dependent calls and types.
30800 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30801 struct int_tree_hasher.
30802 (extern int_tree_map_eq): Likewise.
30803 (uid_decl_map_hash): Removed.
30804 (extern decl_tree_map_eq): Likewise.
30806 * tree-hasher.h: New.
30807 (struct int_tree_hasher): New.
30808 (typedef int_tree_htab_type): New.
30810 * tree-inline.c: Include gimplify-ctx.h.
30812 * tree-mudflap.c: Include gimplify-ctx.h.
30814 * tree-parloops.c: Include tree-hasher.h.
30815 (htab_t eliminate_local_variables_stmt::decl_address):
30816 Change type to hash_table. Update dependent calls and types.
30817 (htab_t separate_decls_in_region::decl_copies): Likewise.
30819 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30820 Change type to hash_table. Update dependent calls and types.
30822 * tree-sra.c (candidates):
30823 Change type to hash_table. Update dependent calls and types.
30825 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30827 (int_tree_map_hash): Likewise.
30829 * tree-ssa-dom.c (htab_t avail_exprs):
30830 Change type to hash_table. Update dependent calls and types.
30832 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30833 Change type to hash_table. Update dependent calls and types.
30835 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30836 Change type to hash_table. Update dependent calls and types.
30838 * tree-ssa-phiopt.c (seen_ssa_names):
30839 Change type to hash_table. Update dependent calls and types.
30841 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30842 Change type to hash_table. Update dependent calls and types.
30844 * tree-ssa-uncprop.c (equiv):
30845 Change type to hash_table. Update dependent calls and types.
30847 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30849 PR rtl-optimization/57003
30850 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30851 call note_stores with kill_clobbered_value callback again after
30852 killing regs_invalidated_by_call.
30854 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30856 * config/aarch64/aarch64-simd.md
30857 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
30858 (aarch64_simd_bsl<mode>): Likewise.
30859 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
30861 2013-04-25 Marek Polacek <polacek@redhat.com>
30863 PR tree-optimization/57066
30864 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
30866 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30868 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
30870 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30872 * config/aarch64/aarch64-builtins.c
30873 (aarch64_fold_builtin): New.
30874 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
30875 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
30876 * config/aarch64/aarch64-simd-builtins.def (abs): New.
30877 * config/aarch64/arm_neon.h
30878 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
30880 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30881 Tejas Belagod <tejas.belagod@arm.com>
30883 * config/aarch64/aarch64-builtins.c
30884 (aarch64_gimple_fold_builtin): New.
30885 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
30886 * config/aarch64/aarch64-simd-builtins.def (addv): New.
30887 * config/aarch64/aarch64-simd.md (addpv4sf): New.
30888 (addvv4sf): Update.
30889 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
30891 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30893 * config/aarch64/aarch64.md
30894 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
30896 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30898 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
30899 (*ngcsi_uxtw): New pattern.
30901 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30902 Julian Brown <julian@codesourcery.com>
30904 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
30905 (TB_DREG): Add T_V4HF.
30906 (v4hf_UP): New macro.
30907 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30908 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30909 Handle initialisation of V4HF. Adjust initialisation of reinterpret
30911 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30912 (arm_vector_mode_supported_p): Handle V4HF.
30913 (arm_mangle_map): Handle V4HFmode.
30914 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
30915 * config/arm/arm_neon_builtins.def: Add entries for
30916 vcvtv4hfv4sf, vcvtv4sfv4hf.
30917 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
30918 (neon_vcvtv4hfv4sf): Likewise.
30919 * config/arm/neon-gen.ml: Handle half-precision floating point
30921 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
30922 * config/arm/arm_neon.h: Regenerate.
30923 * config/arm/neon.ml (type elts): Add F16.
30924 (type vectype): Add T_float16x4, T_floatHF.
30925 (type vecmode): Add V4HF.
30926 (type features): Add Requires_FP_bit feature.
30927 (elt_width): Handle F16.
30928 (elt_class): Likewise.
30929 (elt_of_class_width): Likewise.
30930 (mode_of_elt): Refactor.
30931 (type_for_elt): Handle F16, fix error messages.
30932 (vectype_size): Handle T_float16x4.
30933 (vcvt_sh): New function.
30934 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
30935 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
30936 (string_of_mode): Handle V4HF.
30937 * doc/arm-neon-intrinsics.texi: Regenerate.
30939 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30941 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
30942 format specifier in 'X' case.
30944 2013-04-25 Alan Modra <amodra@gmail.com>
30947 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
30948 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
30949 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
30950 Repeat for many other rotate/shift and mask patterns using subregs.
30951 Name lshiftrt insns.
30952 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
30953 on WORDS_BIG_ENDIAN.
30955 2013-04-25 Alan Modra <amodra@gmail.com>
30957 * config.gcc: Support little-endian powerpc-linux targets.
30958 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
30959 (LINK_OS_LINUX_SPEC): Define.
30960 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
30961 Preserve MASK_LITTLE_ENDIAN.
30962 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
30963 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
30964 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
30965 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
30966 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
30967 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
30968 Correct fp word order for little-endian. Don't shift toc entries
30969 smaller than a word for little-endian.
30970 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
30971 (bswapdi2 splits): Correct low-part subreg for little-endian.
30972 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
30973 low/high where such is correct only for be.
30974 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
30975 little-endian for -mcall-aixdesc.
30977 2013-04-25 Alan Modra <amodra@gmail.com>
30979 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30980 replace_equiv_address_nv.
30982 2013-04-25 Alan Modra <amodra@gmail.com>
30984 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
30986 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30989 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30990 * rtl.h (struct rtx_def): ...
30992 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30994 PR rtl-optimizations/57046
30995 * lra-constraints (split_reg): Set up lra_risky_transformations_p
30996 for multi-reg splits.
30998 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31000 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31002 2013-04-24 Sterling Augustine <saugustine@google.com>
31004 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31005 (comp_dir_string, debug_str_dwo_section): New.
31006 (DEBUG_STR_DWO_SECTION): Rename to ...
31007 (DEBUG_DWO_STR_SECTION): ... this.
31008 (DEBUG_NORM_STR_SECTION): Delete.
31009 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31010 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31011 (find_AT_string): Move most logic to ...
31012 (find_AT_string_in_table): ... here. New.
31013 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31014 add_skeleton_AT_string. Delete logic.
31015 (output_skeleton_debug_sections): Remove call to
31016 add_top_level_skeleton_die_attrs.
31017 (add_comp_dir_attribute): Move logic to comp_dir_string.
31018 (dwarf2out_init): Initialize debug_str_dwo_section.
31019 (output_indirect_string): Call find_string_form.
31020 (output_indirect_strings): Rewrite.
31021 (prune_unused_types): Empty skeleton_debug_str_hash.
31022 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31023 (dwarf2out_finish): Call output_indirect_strings.
31025 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31027 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31029 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31031 * rtl.h (struct rtx_def): Add comment for field jump.
31032 (LRA_SUBREG_P): New macro.
31033 * recog.c (register_operand): Check LRA_SUBREG_P.
31034 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31036 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31037 (lra_final_code_change): Skip subreg change for operators.
31038 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31039 if there are no operand changes.
31040 * lra-constraints.c (curr_insn_set): New.
31041 (match_reload): Set LRA_SUBREG_P.
31042 (emit_spill_move): Ditto.
31043 (check_and_process_move): Use curr_insn_set. Process only single
31044 set insns. Don't initialize sec_mem_p and change_p.
31045 (simplify_operand_subreg): Use LRA_SUBREG_P.
31046 (reg_in_class_p): New function.
31047 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31048 of #ifdef. Add code to remove cycling.
31049 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31050 non-null disp. Reload inner instead of disp when base and index
31051 are null. Try to put lo_sum into register.
31052 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31053 (check_and_process_move): Move code for move cost check to
31054 simple_move_p. Remove equiv_substitution.
31055 (simple_move_p): New function.
31056 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31057 curr_insn_set. Call check_and_process_move only for single set
31058 insns. Use the new function. Move call of check_and_process_move
31059 after operand equiv substitution and address process.
31061 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31063 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31064 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31065 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31067 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31069 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31071 2013-04-24 Marek Polacek <polacek@redhat.com>
31073 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31074 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31075 (select_loops_exit_conditions): Likewise.
31076 (number_of_iterations_for_all_loops): Likewise.
31077 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31078 (scev_analysis): Likewise.
31080 2013-04-02 Catherine Moore <clm@codesourcery.com>
31081 Chao-ying Fu <fu@mips.com>
31083 * config/mips/micromips.md (jraddiusp): New pattern.
31084 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31085 instruction if possible.
31087 2013-04-24 Alan Modra <amodra@gmail.com>
31089 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31091 2013-04-24 Julian Brown <julian@codesourcery.com>
31092 Chung-Lin Tang <cltang@codesourcery.com>
31094 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31095 dependency behavior in enumeration type DIE generation. Add TODO note
31096 to comments about future DW_FORM_sdata/udata re-work of related code.
31098 2013-04-23 Lawrence Crowl <crowl@google.com>
31100 * Makefile.in: Update as needed below.
31102 * hash-table.h (class hash_table):
31103 Correct many methods with parameter types compare_type to the correct
31104 value_type. (Correct code was unlikely to notice the change.)
31105 (hash_table::elements_with_deleted) New.
31106 (class hashtable::iterator): New.
31107 (hashtable::begin()): New.
31108 (hashtable::end()): New.
31109 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31111 * statistics.c (statistics_hashes):
31112 Change type to hash_table. Update dependent calls and types.
31114 * tree-into-ssa.c (var_infos):
31115 Change type to hash_table. Update dependent calls and types.
31117 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31118 Change type to hash_table. Update dependent calls and types.
31120 * tree-ssa-loop-im.c (struct mem_ref.refs):
31121 Change type to hash_table. Update dependent calls and types.
31123 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31124 Change type to hash_table. Update dependent calls and types.
31126 * tree-ssa-sccvn.c (vn_tables_s::nary):
31127 Change type to hash_table. Update dependent calls and types.
31128 (vn_tables_s::phis): Likewise.
31129 (vn_tables_s::references): Likewise.
31131 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31132 (vn_reference_eq): Update parameter and return types.
31134 * tree-ssa-structalias.c (pointer_equiv_class_table):
31135 Change type to hash_table. Update dependent calls and types.
31136 (location_equiv_class_table): Likewise.
31138 * tree-vect-data-refs.c: Consequential changes for making
31139 peeling a hash_table.
31141 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31142 (destroy_loop_vec_info): Dependent hash_table update.
31144 * tree-vectorizer.h (peeling_htab):
31145 Change type to hash_table. Update dependent calls and types.
31147 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31149 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31150 to check the register content is equal or not.
31151 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31152 to assign register content record.
31153 * lra-eliminations.c (update_reg_eliminate): Use
31154 lra_update_reg_val_offset to update register content offset.
31155 * lra-int.h (struct lra_reg): Add offset member.
31156 (lra_reg_val_equal_p): New static inline function.
31157 (lra_update_reg_val_offset): New static inline function.
31158 (lra_assign_reg_val): New static inline function.
31159 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31160 to assign register content record.
31161 (initialize_lra_reg_info_element): Initial offset to zero.
31163 2013-04-23 Catherine Moore <clm@codesourcery.com>
31165 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31166 operands. Record compression.
31168 2013-04-23 Xinliang David Li <davidxl@google.com>
31170 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31172 2013-04-23 Richard Biener <rguenther@suse.de>
31174 PR middle-end/57036
31175 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31176 parameter, only add abnormal goto edges from the copied body
31177 if the call could perform abnormal gotos.
31178 (copy_cfg_body): Adjust.
31180 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31182 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31184 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31186 * coretypes.h (gimple_stmt_iterator): Add struct to make
31189 2013-04-23 Richard Biener <rguenther@suse.de>
31191 PR tree-optimization/57026
31192 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31193 from SSA names occuring in abnormal PHI nodes.
31195 2013-04-22 Andi Kleen <ak@linux.intel.com>
31197 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31199 2013-04-22 Andi Kleen <ak@linux.intel.com>
31201 * lto/lto.c (print_lto_report_1): Declare early.
31202 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31204 2013-04-22 Andi Kleen <ak@linux.intel.com>
31206 * common.opt (-flto-report-wpa): Add.
31207 * doc/invoke.texi (-flto-report-wpa): Add.
31208 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31211 2013-04-22 Xinliang David Li <davidxl@google.com>
31213 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31214 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31215 * Makefile.in: New dependency
31217 David Daney <ddaney.cavm@gmail.com>
31219 * configure.ac (gcc_cv_as_micromips_support): Use the
31220 --fatal-warnings option.
31221 * configure: Regenerate.
31223 2013-04-22 Marek Polacek <polacek@redhat.com>
31226 * tsan.c (instrument_expr): Don't instrument expression
31227 in case its size is zero.
31229 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31233 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31235 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31237 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31239 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31240 (gimple_stmt_iterator): New typedef.
31241 * gimple.h (gimple_stmt_iterator): Rename to...
31242 (gimple_stmt_iterator_d): ... This.
31243 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31244 trees be valid for GIMPLE and GENERIC.
31245 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31246 * gimple-fold.c (gimple_fold_call): Call target hook
31247 gimple_fold_builtin.
31248 * hooks.c (hook_bool_gsiptr_false): New.
31249 * hooks.h (hook_bool_gsiptr_false): New.
31250 * target.def (fold_stmt): New.
31251 * doc/tm.texi: Regenerate.
31253 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31256 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31257 a set sp if no stack realignment.
31259 2013-04-22 Nick Clifton <nickc@redhat.com>
31261 * config.gcc (tilegx-linux): Extend extra_objs rather than
31263 (tilepro-linux): Likewise.
31265 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31267 * config/aarch64/aarch64-builtins.c
31269 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31270 (VAR<1-12>): Add MAP parameter.
31271 (BUILTIN_*): Likewise.
31272 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31273 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31274 (aarch64_ushl_n<mode>): Likewise.
31275 (aarch64_sshr_n<mode>): Likewise.
31276 (aarch64_ushr_n<mode>): Likewise.
31277 (aarch64_<maxmin><mode>): Likewise.
31278 (aarch64_sqrt<mode>): Likewise.
31279 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31280 (vshr<q>_n_*): Likewise.
31282 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31284 * config/aarch64/aarch64-builtins.c
31285 (aarch64_simd_builtin_type_mode): Handle SF types.
31287 (BUILTIN_GPF): Define.
31288 (aarch64_init_simd_builtins): Handle SF types.
31289 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31290 (frecps): Likewise.
31291 (frecpx): Likewise.
31292 * config/aarch64/aarch64-simd.md
31293 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31294 (aarch64_frecpe<mode>): New.
31295 (aarch64_frecps<mode>): Likewise.
31296 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31297 (v8type): Add frecp<esx>.
31298 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31299 (aarch64_frecps<mode>): Likewise.
31300 * config/aarch64/iterators.md (FRECP): New.
31301 (frecp_suffix): Likewise.
31302 * config/aarch64/arm_neon.h
31303 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31305 2013-04-22 Christian Bruel <christian.bruel@st.com>
31308 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31309 (REG_CLASS_NAMES): Idem.
31310 (REG_CLASS_CONTENTS): Idem.
31311 (REGCLASS_HAS_FP_REG): Idem.
31312 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31313 (sh_conditional_register_usage): Idem.
31315 2013-04-21 Jeff Law <law@redhat.com>
31317 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31318 (ssa_forward_propagate_and_combine): Use it.
31320 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31322 * lra.c: Update the flow chart diagram.
31324 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31326 PR rtl-optimization/56847
31327 * lra-constraints.c (process_alt_operands): Discourage alternative
31328 with non-matche doffsettable memory constraint fro memory with
31331 2013-04-19 Richard Biener <rguenther@suse.de>
31333 PR tree-optimization/56982
31334 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31336 * gimplify.c (gimplify_call_expr): Notice special calls.
31337 (gimplify_modify_expr): Likewise.
31338 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31339 abnormal control flow receivers.
31340 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31341 in the same way as cfun->has_nonlocal_labels.
31342 (gimple_purge_dead_abnormal_call_edges): Likewise.
31343 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31344 receivers start a basic-block.
31346 2013-04-19 Richard Biener <rguenther@suse.de>
31348 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31350 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31351 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31352 (SLP_TREE_LOAD_PERMUTATION): Add.
31353 (vect_transform_slp_perm_load): Adjust prototype.
31354 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31355 (vect_free_slp_instance): Likewise.
31356 (vect_create_new_slp_node): Likewise.
31357 (vect_supported_slp_permutation_p): Remove.
31358 (vect_slp_rearrange_stmts): Adjust.
31359 (vect_supported_load_permutation_p): Likewise. Inline
31360 vect_supported_slp_permutation_p here.
31361 (vect_analyze_slp_instance): Compute load permutations per
31362 slp node instead of per instance.
31363 (vect_get_slp_defs): Adjust.
31364 (vect_transform_slp_perm_load): Likewise.
31365 (vect_schedule_slp_instance): Remove redundant code.
31366 (vect_schedule_slp): Remove hack for PR56270, add it ...
31367 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31368 CSE loads for SLP. Adjust.
31370 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31372 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31373 spelling in two comments.
31375 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31378 * config/arm/arm.c (load_multiple_sequence): Require SP
31379 as base register for loads if SP is in the register list.
31381 2013-04-19 Martin Jambor <mjambor@suse.cz>
31383 PR tree-optimization/56718
31384 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31385 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31386 and made public. Adjusted all callers.
31387 (ipa_intraprocedural_devirtualization): New function.
31388 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31389 (ipa_intraprocedural_devirtualization): Likewise.
31390 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31392 2013-04-19 Richard Biener <rguenther@suse.de>
31394 PR tree-optimization/57000
31395 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31397 2013-04-19 Terry Guo <terry.guo@arm.com>
31399 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31401 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31402 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31403 (cortex_m4_fmacs): Use new reservations.
31404 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31406 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31408 PR rtl-optimization/56999
31409 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31411 (lra_coalesce): Remove split_origin_bitmap and related code.
31412 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31413 ranges if necessary.
31415 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31417 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31419 (ix86_expand_call): Remove clobbered_registers array and use
31420 x86_64_ms_sysv_extra_clobbered_registers instead.
31421 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31423 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31425 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31426 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31427 (*call_value_rex64_ms_sysv): Ditto.
31429 2013-04-18 Cary Coutant <ccoutant@google.com>
31431 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31432 parent instead of die_mark.
31434 2013-04-18 Diego Novillo <dnovillo@google.com>
31436 * gimple.c (create_gimple_tmp): New.
31437 (get_expr_type): New.
31438 (build_assign): New.
31439 (build_type_cast): New.
31440 * gimple.h (enum ssa_mode): Define.
31441 (gimple_seq_set_location): New.
31442 * asan.c (build_check_stmt): Change some gimple_build_* calls
31443 to use build_assign and build_type_cast.
31445 2013-04-18 Richard Biener <rguenther@suse.de>
31447 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31448 handle negative step. Remove redundant checks.
31449 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31450 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31451 for negative step and grouped loads fail to vectorize.
31453 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31455 * emit-rtl.c (reset_insn_used_flags): New function.
31456 (reset_all_used_flags): Use it.
31457 (verify_insn_sharing): New function.
31458 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31460 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31462 PR tree-optimization/56984
31463 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31464 and (x >> M) >= N don't register any assertion if N << M is the
31467 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31469 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31470 do not delete_insn insns that have not yet been emitted, only
31471 unlink them with remove_insn.
31472 * df-scan.c (df_insn_delete): Revert r197492.
31474 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31476 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31477 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31479 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31481 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31482 define_insn_and_split.
31483 (and_scc,ior_scc,negscc): Likewise.
31484 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31486 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31488 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31489 can benefit from using a sequence of LDRD instructions in epilogue
31490 instead of a single LDM instruction.
31492 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31495 * doc/extend.texi: Fix typo.
31497 2013-04-17 Richard Biener <rguenther@suse.de>
31499 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31500 (vect_build_slp_tree): ... here.
31501 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31502 match. Remove special-casing of mismatched complex loads.
31503 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31504 re-try the match with swapped commutative operands.
31505 (vect_supported_load_permutation_p): Remove special-casing of
31506 mismatched complex loads.
31507 (vect_analyze_slp_instance): Adjust.
31509 2013-04-17 Richard Biener <rguenther@suse.de>
31511 PR rtl-optimization/56921
31512 * cfgloop.h (struct loop): Add simple_loop_desc member.
31513 (struct niter_desc): Mark with GTY(()).
31514 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31515 * loop-iv.c (get_simple_loop_desc): Likewise.
31516 (free_simple_loop_desc): Likewise.
31519 2013-04-16 Richard Biener <rguenther@suse.de>
31521 PR rtl-optimization/56921
31522 * loop-init.c (pass_rtl_move_loop_invariants): Add
31523 TODO_do_not_ggc_collect to todo_flags_finish.
31524 (pass_rtl_unswitch): Same.
31525 (pass_rtl_unroll_and_peel_loops): Same.
31526 (pass_rtl_doloop): Same.
31528 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31530 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31531 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31532 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31534 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31535 * tree-streamer.c (record_common_node): Adjust reference in comment.
31537 2013-04-17 Terry Guo <terry.guo@arm.com>
31539 * config/arm/cortex-m4.md: Add a new bypass.
31541 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31543 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31545 (*subs_<optab><mode>_multp2): New pattern.
31546 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31547 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31549 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31551 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31552 (*subs_mul_imm_<mode>): New pattern.
31554 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31557 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31558 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31559 (vsx_movti_32bit): Change j->wa to O->wa.
31561 2013-04-16 Richard Biener <rguenther@suse.de>
31563 PR rtl-optimization/56921
31564 * loop-init.c (pass_rtl_move_loop_invariants): Add
31565 TODO_do_not_ggc_collect to todo_flags_finish.
31566 (pass_rtl_unswitch): Same.
31567 (pass_rtl_unroll_and_peel_loops): Same.
31568 (pass_rtl_doloop): Same.
31570 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31572 * config/arm/arm.c (emit_multi_reg_push): New declaration
31573 for an existing function.
31574 (arm_emit_strd_push): New function.
31575 (arm_expand_prologue): Used here.
31576 (arm_emit_ldrd_pop): New function.
31577 (arm_expand_epilogue): Used here.
31578 (arm_get_frame_offsets): Update condition.
31579 (arm_emit_multi_reg_pop): Add a special case for load of a single
31580 register with writeback.
31582 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31584 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31587 2013-04-16 Richard Biener <rguenther@suse.de>
31589 PR tree-optimization/56756
31590 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31591 (first_mem_ref_loc): New.
31592 (execute_sm): Place the load temporarily before a previous
31593 access instead of in the latch edge to ensure its SSA dependencies
31594 are defined at points dominating the load.
31596 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31598 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31599 correct fix by moving header and footer insn to the footer of
31600 the merged basic block. Clear BB_END of the merged-away block.
31602 PR middle-end/43631
31603 * emit-rtl.c (make_note_raw): New function.
31604 (link_insn_into_chain): New static inline function.
31605 (add_insn): Use it.
31606 (add_insn_before, add_insn_after): Factor insn chain linking code...
31607 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31608 using link_insn_into_chain.
31609 (note_outside_basic_block_p): New helper function for emit_note_after
31610 and emit_note_before.
31611 (emit_note_after): Use nobb variant of add_insn_after if the note
31612 should not be contained in a basic block.
31613 (emit_note_before): Use nobb variant of add_insn_before if the note
31614 should not be contained in a basic block.
31615 (emit_note_copy): Use make_note_raw.
31616 (emit_note): Likewise.
31617 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31618 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31619 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31620 the moved barrier the tail of the basic block it follows.
31621 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31623 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31625 PR tree-optimization/56962
31626 * gimple-ssa-strength-reduction.c (record_increment): Only set
31627 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31628 either rhs1 or rhs2 is equal to c->base_expr.
31630 2013-04-15 Richard Biener <rguenther@suse.de>
31632 PR tree-optimization/56933
31633 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31635 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31636 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31637 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31638 dependence check ...
31639 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31641 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31642 GROUP_READ_WRITE_DEPENDENCE.
31644 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31646 * emit-rtl.c (reset_all_used_flags): New function.
31647 (verify_rtl_sharing): Call reset_all_used_flags before and after
31648 performing the checks.
31650 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31652 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31653 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31654 * config/arm/constraints.md (De): New constraint.
31655 * config/arm/neon.md (anddi3_neon): Delete.
31656 (neon_vand<mode>): Expand to standard anddi3 pattern.
31657 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31658 Move earlier in the file.
31659 (neon_inv_logic_op2): Likewise.
31660 (arm_anddi_operand_neon): New predicate.
31662 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31664 * configure.ac (gcc_cv_ld_as_needed): Set
31665 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31666 Use -z ignore, -z record on *-*-solaris2*.
31667 (HAVE_LD_AS_NEEDED): Update comment.
31668 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31669 * configure: Regenerate.
31670 * config.in: Regenerate.
31671 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31672 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31673 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31674 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31675 equivalents. Fix markup.
31676 * doc/tm.texi: Regenerate.
31678 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31680 * config/i386/i386.opt: New option mstack-protector-guard=.
31681 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31682 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31683 TARGET_SSP_TLS_GUARD.
31684 * config/i386/i386.c (ix86_option_override_internal): Set
31685 ix86_stack_protector_guard.
31686 * config/i386/i386.md (stack_protect_set): Enable for
31687 TARGET_SSP_TLS_GUARD only.
31688 (stack_protect_set_<mode>): Ditto.
31689 (stack_protect_test): Ditto.
31690 (stack_protect_test_<mode>): Ditto.
31691 * doc/invoke.texi (i386 Option): Document.
31693 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31696 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31697 (S_MODES): Set H_MODE bit.
31698 (SF_MODES): Set only S_MODE and SF_MODE bits.
31699 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31700 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31701 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31702 <MODE_FLOAT>: Likewise.
31704 2013-04-15 Joey Ye <joey.ye@arm.com>
31706 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31708 2013-04-15 Joey Ye <joey.ye@arm.com>
31710 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31712 (thumb_far_jump_used_p): Count instruction size and set
31715 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31717 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31718 * resource.c (mark_target_live_regs): Reformat conditional block.
31720 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31722 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31723 notes, they are emitted only just before final.
31724 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31726 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31728 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31729 * cfgrtl.c (delete_insn): Call it here instead.
31730 * lra-spills.c (lra_final_code_change): Use delete_insn.
31731 * haifa-sched.c (sched_remove_insn): Likewise.
31732 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31733 returning to the nop pool.
31734 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31735 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31737 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31739 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31740 * doc/tm.texi: Regenerated.
31742 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31744 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31747 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31749 * df-core.c (df_find_def): Compare register numbers.
31750 (df_find_use): Likewise.
31752 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31755 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31756 lra_in_progress for return.
31758 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31760 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31761 define_insn into define_insn_and_split and emit movsicc patterns.
31763 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31765 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31767 2013-04-12 Richard Biener <rguenther@suse.de>
31769 * tree-pass.h (TODO_do_not_ggc_collect): New.
31770 * passes.c (execute_one_ipa_transform_pass): Honor
31771 TODO_do_not_ggc_collect.
31772 (execute_one_pass): Likewise.
31775 2013-04-10 Richard Biener <rguenther@suse.de>
31777 * passes.c (init_optimization_passes): Remove reload pass.
31778 * ira.c (do_reload): Merge into ...
31780 (rest_of_handle_reload): Remove.
31781 (pass_reload): Likewise.
31782 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31783 of reload for vzeroupper pass placement.
31785 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31787 PR tree-optimization/56918
31788 PR tree-optimization/56920
31789 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31790 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31791 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31792 use wide_mul_with_sign method.
31794 2013-04-12 Richard Biener <rguenther@suse.de>
31796 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31797 not be considered a gimple constant.
31799 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31801 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31802 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31805 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31806 Jakub Jelinek <jakub@redhat.com>
31808 * opts.c: Include diagnostic-color.h.
31809 (common_handle_option): Handle OPT_fdiagnostics_color_.
31810 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31811 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31812 (diagnostic-color.o): New.
31813 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31814 (diagnostic_color_rule): New enum.
31815 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31816 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31817 the location string.
31818 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31819 either NULL, or color kind.
31820 * diagnostic-color.c: New file.
31821 * diagnostic-color.h: New file.
31822 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31824 * doc/invoke.texi (-fdiagnostics-color): Document.
31825 * pretty-print.h (pp_show_color): Define.
31826 (struct pretty_print_info): Add show_color field.
31827 * diagnostic.c: Include diagnostic-color.h.
31828 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31829 macros. Colorize error:, warning: etc. strings and also the location
31831 (diagnostic_show_locus): Colorize the caret line.
31832 * pretty-print.c: Include diagnostic-color.h.
31833 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31834 inside of %< %> quotes or quoted through q format modifier.
31836 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31838 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31840 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31842 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31843 code in CC_NZ mode.
31844 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31847 2013-04-11 Marek Polacek <polacek@redhat.com>
31849 PR tree-optimization/48184
31850 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31852 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
31854 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
31855 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
31856 (skip_simple_arithmetic): Tidy up.
31857 * tree.h (skip_simple_constant_arithmetic): Declare.
31859 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31861 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
31863 2013-04-11 Richard Biener <rguenther@suse.de>
31865 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31866 generate vector constants.
31868 2013-04-11 Richard Biener <rguenther@suse.de>
31870 PR tree-optimization/56878
31871 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
31872 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
31874 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31875 Prefer to align the DR with the most invariant base address.
31877 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31879 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
31882 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
31884 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
31885 floating-point vector comparisons against 0.
31887 2013-04-11 Jakub Jelinek <jakub@redhat.com>
31889 PR tree-optimization/56899
31890 * fold-const.c (extract_muldiv_1): Apply distributive law
31891 only if TYPE_OVERFLOW_WRAPS (ctype).
31893 2013-04-11 Bin Cheng <bin.cheng@arm.com>
31896 * ira-costs.c (scan_one_insn): Check whether the source rtx of
31897 loading has side effect.
31899 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
31901 * config/sparc/sparc.c: Include tree-pass.h.
31902 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
31903 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
31904 head of file. Change return type. Split off gate function.
31905 (sparc_gate_work_around_errata): New function.
31906 (pass_work_around_errata): New pass definition.
31907 (insert_pass_work_around_errata) New pass insert definition to
31908 insert pass_work_around_errata just after delayed-branch scheduling.
31909 (sparc_option_override): Insert the pass.
31910 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
31912 2013-04-10 David S. Miller <davem@davemloft.net>
31914 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
31915 or -mcpu=hypersparc.
31917 * target.def (cstore_mode): New hook.
31918 * target.h: Include insn-codes.h
31919 * targhooks.c: Likewise.
31920 (default_cstore_mode): New function.
31921 * targhooks.h: Declare it.
31922 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
31923 * doc/tm.texi: Rebuild.
31924 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
31925 target hook, rather than inspecting the insn_data.
31926 * config/sparc/sparc.c (sparc_cstore_mode): New function.
31927 (TARGET_CSTORE_MODE): Redefine.
31928 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
31930 * config/sparc/predicates.md (cstore_result_operand): New special
31932 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
31933 Use it for operand 0.
31934 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
31935 (*snesi_special): Likewise.
31936 (*snesi_zero): Likewise.
31937 (*seqsi_zero): Likewise.
31938 (*sltu_insn): Likewise.
31939 (*sgeu_insn): Likewise.
31940 (*seqdi_special): Make operand 0 and comparison operation be of
31942 (*snedi_special): Likewise.
31943 (*snedi_special_vis3): Likewise.
31944 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
31945 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
31946 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
31947 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
31948 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
31949 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
31950 (*sltu_extend_sp64): Likewise.
31951 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
31952 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
31953 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
31954 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
31955 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
31957 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
31959 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
31960 (aarch64_start_file): Use the new function.
31962 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31963 Jason Merrill <jason@redhat.com>
31965 * common.opt: Add -gdwarf.
31966 * opts.c (common_handle_option): Handle it.
31967 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
31969 2013-04-10 Richard Biener <rguenther@suse.de>
31971 * passes.c (execute_todo): Do not call ggc_collect conditional here.
31972 (execute_one_ipa_transform_pass): But unconditionally here.
31973 (execute_one_pass): And here.
31974 (init_optimization_passes): Remove reload pass.
31975 * tree-pass.h (TODO_ggc_collect): Remove.
31976 (pass_reload): Likewise.
31977 * ira.c (do_reload): Merge into ...
31979 (rest_of_handle_reload): Remove.
31980 (pass_reload): Likewise.
31981 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31982 of reload for vzeroupper pass placement.
31983 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
31984 and todo_flags_finish of all passes.
31986 2013-04-10 Richard Biener <rguenther@suse.de>
31988 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
31989 first_const_oprnd field, rename first_def_type to first_op_type.
31990 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
31991 (vect_get_and_check_slp_defs): Always use the type of the
31992 operand. Allow mixed vect_external_def, vect_constant_def types.
31993 (vect_get_constant_vectors): Handle mixed vect_external_def,
31994 vect_constant_def types.
31996 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
31998 PR tree-optimization/55524
31999 * tree-ssa-math-opts.c
32000 (convert_mult_to_fma): Don't use an fms construct
32001 when we don't have an fms operation, but fnma, and it looks
32002 likely that we'll be able to use the latter.
32004 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32006 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32008 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32009 inline fail caused by overwritable functions.
32011 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32013 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32014 unnecessary bits in the constant power of two case.
32016 2013-04-10 Richard Biener <rguenther@suse.de>
32018 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32019 broken code swapping operands.
32020 (vect_build_slp_tree): Do not compute load permutations here.
32021 (vect_analyze_slp_instance): Compute load permutations here,
32022 after building the SLP tree.
32024 2013-04-09 Christian Bruel <christian.bruel@st.com>
32026 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32027 of next/prev_real_insn.
32029 2013-04-09 Jan Hubicka <jh@suse.cz>
32031 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32032 Drop aliased parameter.
32033 (function_and_variable_visibility): Do not handle alias pairs.
32034 * cgraph.c (varpool_externally_visible_p): Update prototype.
32035 * varpool.c (varpool_add_new_variable): Update.
32037 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32039 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32041 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32043 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32045 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32047 2013-04-09 Marek Polacek <polacek@redhat.com>
32049 PR tree-optimization/48762
32050 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32052 2013-04-09 Richard Biener <rguenther@suse.de>
32054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32056 (vect_build_slp_tree): Likewise.
32057 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32058 calculating the cost of a SLP instance.
32059 (vect_analyze_slp_instance): Use it from here, after building
32062 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32064 PR middle-end/56883
32065 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32066 expand_omp_for_static_chunk): Use simple_p = true in
32067 force_gimple_operand_gsi calls when assigning to addressable decls.
32069 2013-04-09 Jeff Law <law@redhat.com>
32071 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32072 when the boolean was created by converting a wider object which
32073 had a boolean range.
32075 2013-04-09 Richard Biener <rguenther@suse.de>
32077 * tree-vectorizer.h (slp_void_p): Remove.
32078 (slp_tree): Typedef before _slp_tree declaration.
32079 (struct _slp_tree): Use a vector of slp_tree as children.
32080 (vect_get_place_in_interleaving_chain): Remove.
32081 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32083 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32085 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32086 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32087 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32088 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32089 Use slp_node instead of slp_void_p and adjust.
32091 2013-04-09 Richard Biener <rguenther@suse.de>
32093 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32094 work that is not necessary.
32096 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32098 PR tree-optimization/56854
32099 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32100 forward into clobber stmts if it would change MEM_REF lhs into
32103 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32105 * tree.c (type_hash_lookup, type_hash_add): Make static.
32106 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32108 2013-04-09 Richard Biener <rguenther@suse.de>
32110 * tree.h (unsave_expr_now): Remove.
32111 * tree-inline.c (mark_local_for_remap_r): Remove.
32112 (unsave_expr_1): Likewise.
32113 (unsave_r): Likewise.
32114 (unsave_expr_now): Likewise.
32115 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32116 (propagate_tree_value): Likewise.
32118 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32120 * doc/rtl.texi (sequence): Rewrite documentation to match the
32121 current use of SEQUENCE rtl objects.
32122 * rtl.def (SEQUENCE): Likewise.
32124 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32125 Update documentation.
32126 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32127 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32129 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32131 2013-04-08 Teresa Johnson <tejohnson@google.com>
32133 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32134 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32136 (estimate_edge_size_and_time): Add comment to suggest using rounding
32138 (estimate_node_size_and_time): Ditto.
32139 (remap_edge_change_prob): Use helper rounding divide methods.
32140 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32141 (gimple_mod_pow2_value_transform): Ditto.
32142 (gimple_mod_subtract_transform): Ditto.
32143 (gimple_ic_transform): Ditto.
32144 (gimple_stringops_transform): Ditto.
32145 * stmt.c (conditional_probability): Ditto.
32146 (emit_case_dispatch_table): Ditto.
32147 * lto-cgraph.c (merge_profile_summaries): Ditto.
32148 * tree-optimize.c (execute_fixup_cfg): Ditto.
32149 * cfgcleanup.c (try_forward_edges): Ditto.
32150 * cfgloopmanip.c (scale_loop_profile): Ditto.
32152 (duplicate_loop_to_header_edge): Ditto.
32153 (lv_adjust_loop_entry_edge): Ditto.
32154 * tree-vect-loop.c (vect_transform_loop): Ditto.
32155 * profile.c (compute_branch_probabilities): Ditto.
32156 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32157 * lto-streamer-in.c (input_cfg): Ditto.
32158 * gimple-streamer-in.c (input_bb): Ditto.
32159 * ipa-cp.c (update_profiling_info): Ditto.
32160 (update_specialized_profile): Ditto.
32161 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32162 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32164 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32165 (compute_trg_info): Ditto.
32166 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32167 (purge_dead_edges): Ditto.
32168 * loop-unswitch.c (unswitch_loop): Ditto.
32169 * cgraphclones.c (cgraph_clone_edge): Ditto.
32170 (cgraph_clone_node): Ditto.
32171 * tree-inline.c (copy_bb): Ditto.
32172 (copy_edges_for_bb): Ditto.
32173 (initialize_cfun): Ditto.
32174 (copy_cfg_body): Ditto.
32175 (expand_call_inline): Ditto.
32177 2013-04-08 Kai Tietz <ktietz@redhat.com>
32179 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32180 TARGET_CYGWIN64 by TARGET_64BIT.
32182 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32184 * config/epiphany/epiphany.md (GPR_1): New constant.
32185 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32186 * config/epiphany/epiphany.c (gen_compare_reg):
32187 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32188 is already in place.
32189 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32190 Don't require being called during rtl expansion; If y operlaps r0,
32192 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32193 (epiphany_expand_epilogue): Likewise.
32195 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32196 Don't use CC_FPmode for ORDERED / UNORDERED.
32197 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32199 * config/epiphany/constraints.md (CnL): New constraint.
32200 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32201 * config/epiphany/predicates.md (add_operand): Allow 1024.
32203 * config/epiphany/epiphany.md (logical_op): New code iterator.
32204 (op_mnc): New code attribute.
32205 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32206 (mov_f+1, mov_f+2): New peephole2 patterns.
32208 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32209 (cstoresi4): Also allow re-use of zero result when doing a NE
32210 comparison to a non-zero operand.
32211 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32213 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32214 Use gen_addsi3_i / gen_subsi3_i.
32216 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32220 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32221 contain anything but clobbers, at most one __builtin_stack_restore,
32222 optionally debug stmts and final resx, and if it has at least one
32223 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32224 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32225 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32226 which isn't defaut definition, remove them.
32227 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32228 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32229 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32230 with MEM_REF LHS with SSA_NAME address.
32232 2013-04-08 Jeff Law <law@redhat.com>
32234 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32236 2013-04-08 Richard Biener <rguenther@suse.de>
32238 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32240 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32241 determined vector type.
32242 (vect_analyze_data_refs): Likewise.
32243 (vect_get_new_vect_var): Adjust.
32244 (vect_create_destination_var): Preserve SSA name versions.
32245 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32246 not dump anything here.
32248 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32250 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32251 Add member lr_slot_known.
32252 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32254 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32255 Remove code that sets lr_slot_offset according to what a previous
32256 version of epiphany_emit_save_restore used to do.
32257 (epiphany_emit_save_restore): When doing an lr save or restore,
32258 set/verify lr_slot_known and lr_slot_offset.
32260 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32263 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32266 2013-04-08 Richard Biener <rguenther@suse.de>
32268 * alias.c (find_base_term): Fix thinko in previous change.
32270 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32272 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32273 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32274 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32275 if possible to compute val.
32276 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32277 For QImode integers don't require anything about precision. Use
32278 const_with_all_bytes_same to find out if the constant doesn't have
32279 repeated bytes in it.
32281 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32283 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32286 2013-04-08 Marek Polacek <polacek@redhat.com>
32288 PR rtl-optimization/48182
32289 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32292 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32295 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32296 nuses, make sure we have a label.
32298 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32301 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32302 (rs6000_emit_swdiv_low_precision): Remove.
32303 (rs6000_emit_swdiv): Rewrite to handle between one and four
32304 iterations of Newton-Raphson generally; modify required number of
32305 iterations for some cases.
32306 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32308 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32310 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32311 set-but-unused variable.
32313 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32314 basic blocks of released function bodies garbage-collectable.
32316 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32317 (struct rtl_opt_pass): Add TODO_df_finish.
32319 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32321 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32323 * config/arm/constraints.md (q): New constraint.
32324 * config/arm/ldrdstrd.md: New file.
32325 * config/arm/arm.md (ldrdstrd.md) New include.
32326 (arm_movdi): Use "q" instead of "r" constraint
32327 for double-word memory access.
32328 (movdf_soft_insn): Likewise.
32329 * config/arm/vfp.md (movdi_vfp): Likewise.
32330 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32331 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32332 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32333 (mem_ok_for_ldrd_strd): Likewise.
32334 (output_move_double): Update assertion.
32336 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32338 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32340 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32342 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32343 define_insn_and_split.
32344 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32346 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32348 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32349 define_insn_and_split.
32350 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32351 (shiftsi3_compare): New pattern.
32352 (rrx): New pattern.
32353 * config/arm/unspecs.md (UNSPEC_RRX): New.
32355 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32357 * config/arm/arm.md (negdi_extendsidi): New pattern.
32358 (negdi_zero_extendsidi): Likewise.
32360 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32362 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32363 define_insn_and_split.
32364 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32365 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32367 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32369 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32370 define_insn_and_split.
32371 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32372 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32374 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32376 * config/arm/arm.md (subsi3_carryin): New pattern.
32377 (subsi3_carryin_const): Likewise.
32378 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32379 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32381 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32383 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32385 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32387 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32388 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32390 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32392 * config/arm/arm.c (arm_expand_builtin): Change fcode
32393 type to unsigned int.
32395 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32397 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32399 2013-04-04 Ian Lance Taylor <iant@google.com>
32401 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32404 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32406 PR middle-end/56729
32407 * df-scan.c (df_insn_delete): Disable failing assert.
32409 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32411 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32412 New function prototype.
32413 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32414 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32415 (arm_builtin_vectorized_function): New function.
32417 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32419 * config/arm/arm_neon_builtins.def: New file.
32420 * config/arm/arm.c (neon_builtin_data): Move contents to
32421 arm_neon_builtins.def.
32422 (enum arm_builtins): Include neon builtin definitions.
32423 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32424 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32426 2013-04-04 Marek Polacek <polacek@redhat.com>
32428 PR tree-optimization/48186
32429 * predict.c (maybe_hot_frequency_p): Return false if
32430 HOT_BB_FREQUENCY_FRACTION is 0.
32431 (cgraph_maybe_hot_edge_p): Likewise.
32433 2013-04-04 Richard Biener <rguenther@suse.de>
32435 PR tree-optimization/56826
32436 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32439 2013-04-04 Richard Biener <rguenther@suse.de>
32441 PR tree-optimization/56213
32442 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32443 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32445 2013-04-04 Richard Biener <rguenther@suse.de>
32447 PR tree-optimization/56837
32448 * tree-loop-distribution.c (classify_partition): For non-zero
32449 values require that the value has the same precision as its
32450 mode to be useful as memset value.
32452 2013-04-03 Nick Clifton <nickc@redhat.com>
32454 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32455 (fmssf4): Use fmsf.s on E3V5 architectures.
32456 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32457 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32459 2013-04-03 Jeff Law <law@redhat.com>
32461 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32462 (lra-eliminations.o): Likewise.
32464 2013-04-03 Teresa Johnson <tejohnson@google.com>
32466 * gcov-io.c (compute_working_sets): Moved most of body of old
32467 compute_working_sets here from profile.c.
32468 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32469 (gcov_working_set_t): Moved typedef here from basic-block.h
32470 (compute_working_set): Declare.
32471 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32472 (get_working_sets): Renamed from compute_working_set,
32473 replace most of body with call to new compute_working_sets.
32474 (get_exec_counts): Replace call to compute_working_sets
32475 to get_working_sets.
32476 * profile.h (get_working_sets): Renamed from compute_working_set.
32477 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32478 to get_working_sets.
32479 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32480 * gcov-dump.c (dump_working_sets): New function.
32482 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32484 * hwint.c (sext_hwi, zext_hwi): New functions.
32485 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32486 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32487 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32488 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32489 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32490 (sext_hwi, zext_hwi): New functions.
32492 2013-04-03 Jeff Law <law@redhat.com>
32494 PR tree-optimization/56799
32495 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32496 back test for widening conversion erroneously dropped in prior change.
32498 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32501 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32502 instead of next_real_insn.
32504 2013-04-03 Marek Polacek <polacek@redhat.com>
32507 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32509 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32512 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32514 (thumb1_output_casesi): Likewise.
32515 (thumb2_output_casesi): Likewise.
32517 2013-04-03 Richard Biener <rguenther@suse.de>
32519 PR tree-optimization/56817
32520 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32522 (tree_unroll_loops_completely_1): ... new function to manually
32523 walk the loop tree, properly defering outer loops of unrolled
32524 loops to later iterations.
32526 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32528 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32529 (vectorizable_load): Likewise.
32530 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32531 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32533 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32535 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32538 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32540 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32542 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32544 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32546 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32548 PR tree-optimization/56790
32549 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32552 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32554 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32556 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32557 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32560 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32563 * tree.h (force_folding_builtin_constant_p): New decl.
32564 * builtins.c (force_folding_builtin_constant_p): New variable.
32565 (fold_builtin_constant_p): Fold immediately also if
32566 force_folding_builtin_constant_p.
32568 2013-04-03 Richard Biener <rguenther@suse.de>
32570 PR tree-optimization/56812
32571 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32572 DRs of the same interleaving chain are independent.
32574 2013-04-02 Jason Merrill <jason@redhat.com>
32576 * gdbinit.in (pbb): Use debug fn.
32578 2013-04-02 Lawrence Crowl <crowl@google.com>
32580 * sese.h (struct ivtype_map_elt_s): Remove unused.
32581 (extern debug_ivtype_map): Remove unused.
32582 (extern eq_ivtype_map_elts): Remove unused.
32583 * sese.c (debug_ivtype_map): Removed unused.
32584 (debug_ivtype_map_1): Removed unused.
32585 (debug_ivtype_elt): Remove unused.
32586 (eq_ivtype_map_elts): Remove unused.
32588 2013-04-02 Kai Tietz <ktietz@redhat.com>
32591 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32592 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32593 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32595 (legitimize_pe_coff_symbol): Likewise.
32596 (is_imported_p): New helper-function.
32597 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32598 for Windows x64 targets.
32599 (ix86_expand_prologue): Optimize for pe-coff targets.
32600 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32601 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32602 medium/large code-model.
32603 (legitimize_pic_address): Likewise.
32604 (legitimize_tls_address): Likewise.
32605 (ix86_expand_call): Likewise.
32606 (x86_output_mi_thunk): Likewise.
32607 (get_dllimport_decl): Add new beimport argument.
32608 (construct_plt_address): Don't assert for x64 pe-coff targets.
32609 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32611 (SYMBOL_FLAG_STUBVAR): New macro.
32612 (SYMBOL_REF_STUBVAR_P): Likewise.
32613 * config/i386/winnt.c (stub_list): New structure.
32614 (stub_head): New local variable.
32615 (i386_pe_record_stub): New function.
32616 (i386_pe_file_end): Emit refptr-stubs.
32618 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32620 PR rtl-optimization/56745
32621 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32622 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32625 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32626 and both of them are MEM_REFs, just compare first argument for
32627 equality and attempt to deal even with differing offsets.
32630 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32631 of gimple_clobber_p to be MEM_REF.
32632 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32633 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32634 after gimplification.
32635 * asan.c (get_mem_ref_of_assignment): Don't instrument
32636 gimple_clobber_p stmts.
32637 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32638 gimple_clobber_p stmt if they have MEM_REF lhs and
32639 are dead because of another gimple_clobber_p stmt.
32640 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32641 gimple_clobber_p stmts like debug stmts.
32642 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32643 that refer to unused VAR_DECLs or uninitialized values.
32644 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32645 gimple_clobber_p stmts if they refer to removed parameters.
32646 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32649 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32651 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32652 using SWI48 mode attribute.
32654 2013-04-02 Wei Mi <wmi@google.com>
32656 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32657 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32658 *<rotate_insn><mode>3_mask in i386.md.
32660 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32662 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32664 2013-04-02 Richard Biener <rguenther@suse.de>
32666 PR tree-optimization/56778
32667 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32668 Runtime alias tests are not supported for gather loads.
32669 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32670 stmts referenced from SSA operands before updating SSA form.
32672 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32673 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32675 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32676 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32677 * config/arm/cortex-a53.md: New file.
32678 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32679 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32680 * config/arm/arm.c (arm_issue_rate): Likewise.
32681 * config/arm/arm-tune.md: Regenerate
32682 * config/arm/arm-tables.opt: Regenerate.
32683 * config/arm/arm-cores.def: Add cortex-a53.
32685 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32687 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32690 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32692 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32693 scalar load/store operations using B/H registers.
32694 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32696 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32698 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32700 * config/aarch64/aarch64.c
32701 (aarch64_simd_scalar_immediate_valid_for_move): New.
32702 * config/aarch64/aarch64-protos.h
32703 (aarch64_simd_scalar_immediate_valid_for_move): New.
32704 * config/aarch64/constraints.md (Dh, Dq): New.
32705 * config/aarch64/iterators.md (hq): New.
32707 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32709 * reorg.c (get_branch_condition): Deal with conditional returns.
32710 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32712 2013-04-01 Wei Mi <wmi@google.com>
32714 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32715 Truncate operand 2 using %b asm operand modifier.
32716 (*<shift_insn><mode>3_mask): Ditto.
32717 (*<rotate_insn><mode>3_mask): Ditto.
32719 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32721 PR middle-end/56798
32722 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32724 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32726 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32728 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32730 2013-03-30 Lawrence Crowl <crowl@google.com>
32732 * dse.c (clear_alias_sets): Remove never set.
32733 (disqualified_clear_alias_sets): Remove never set.
32734 (clear_alias_mode_pool): Remove never set.
32735 (dse_step0): Remove condition that is never true.
32736 (canon_address): Remove condition that is never true.
32737 (dse_step7): Remove condition that is never true.
32738 (rest_of_handle_dse): Remove condition that is never true.
32739 (rest_of_handle_dse::did_global): Remove never read from above.
32740 (dse_step2_spill): Remove never called from above.
32741 (dse_step5_spill): Remove never called from above.
32743 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32745 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32746 JUMP_TABLE_DATA changes.
32747 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32748 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32749 (Insns) <jump_table_data>: New entry.
32750 * doc/tm.texi: Regenerate.
32752 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32754 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32755 for table jump at the end of a basic block using tablejump_p.
32756 * targhooks.c (default_invalid_within_doloop): Likewise.
32757 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32758 target hook implementation that is identical to the default hook.
32759 (rs6000_invalid_within_doloop): Remove.
32761 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32762 unused variable from tablejump_p call.
32764 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32765 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32766 (INSN_DELETED_P): Likewise.
32767 (emit_jump_table_data): New prototype.
32768 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32769 after 4th as unused.
32770 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32771 * sched-vis.c (print_insn): Likewise.
32772 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32773 insn for compatibility with back ends that use next_active_insn to
32774 identify jump table data.
32775 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32776 (remove_insn): Likewise.
32777 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32779 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32780 (emit_jump_table_data): New function.
32782 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32783 basic block, a JUMP_TABLE_DATA never is.
32784 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32785 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32786 off from code handling real insns.
32787 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32788 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32789 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32790 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32791 is not a NONDEBUG_INSN_P.
32792 * ira-costs.c (scan_one_insn): Likewise.
32793 * jump.c (mark_all_labels): Likewise.
32794 (mark_jump_label_1): Likewise.
32795 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32796 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32798 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32799 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32800 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32801 JUMP_TABLE_DATA_P insns.
32802 (calculate_elim_costs_all_insns): Likewise.
32803 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32804 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32805 (delete_output_reload): Code style fixups.
32806 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32807 insn flags on this non-insn.
32808 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32809 as scheduling barriers, for pre-change compatibility.
32810 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32811 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32813 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32814 redundant JUMP_TABLE_DATA_P test.
32815 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32816 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32817 (frv_for_each_packet): Likewise.
32818 * config/i386/i386.c (min_insn_size): Likewise.
32819 (ix86_avoid_jump_mispredicts): Likewise.
32820 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32821 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32822 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32823 (mips16_insn_length): Robustify.
32824 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32825 (mips16_split_long_branches): Likewise.
32826 * config/pa/pa.c (pa_combine_instructions): Likewise.
32827 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32828 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32829 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32830 as contributing to pool range lengths.
32831 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32832 Remove redundant JUMP_TABLE_DATA_P test.
32833 (sh_loop_align): Likewise.
32834 (split_branches): Likewise.
32835 (sh_insn_length_adjustment): Likewise.
32836 * config/spu/spu.c (get_branch_target): Likewise.
32838 2013-03-29 Jan Hubicka <jh@suse.cz>
32840 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32841 gcov streaming; stream hot bb threshold to ltrans.
32842 * predict.c (get_hot_bb_threshold): Break out from ....
32843 (maybe_hot_count_p): ... here.
32844 (set_hot_bb_threshold): New function.
32845 * lto-section-in.c (lto_section_name): Add profile.
32846 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32847 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32848 and data-streamer.h
32849 (histogram_entry): New structure.
32850 (histogram, histogram_pool): New global vars.
32851 (histogram_hash): New structure.
32852 (histogram_hash::hash): New method.
32853 (histogram_hash::equal): Likewise.
32854 (account_time_size): New function.
32855 (cmp_counts): New function.
32856 (dump_histogram): New function.
32857 (ipa_profile_generate_summary): New function.
32858 (ipa_profile_write_summary): New function.
32859 (ipa_profile_read_summary): New function.
32860 (ipa_profile): Decide on threshold.
32861 (pass_ipa_profile): Add ipa_profile_write_summary and
32862 ipa_profile_read_summary.
32863 * Makefile.in (ipa.o): Update dependencies.
32864 * lto-streamer.h (LTO_section_ipa_profile): New section.
32866 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
32868 * tree.h (VAR_P): New.
32870 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
32873 * doc/invoke.texi ([-fwhole-program]): Fix typo.
32875 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
32877 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
32878 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32879 (control_flow_insn_p): Likewise.
32880 * cfgrtl.c (duplicate_insn_chain): Likewise.
32881 * final.c (get_attr_length_1): Likewise.
32882 (shorten_branches): Likewise.
32883 (final_scan_insn): Likewise.
32884 * function.c (instantiate_virtual_regs): Likewise.
32885 * gcse.c (insert_insn_end_basic_block): Likewise.
32886 * ira-costs.c (scan_one_insn): Likewise.
32887 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32888 * lra.c (check_rtl): Likewise.
32889 * reload1.c (elimination_costs_in_insn): Likewise.
32890 * reorg.c (follow_jumps): Likewise.
32892 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
32893 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32894 (thumb_far_jump_used_p): Likewise.
32895 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
32896 (workaround_speculation): Likewise.
32897 (add_sched_insns_for_speculation): Likewise.
32898 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
32899 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32900 (frv_for_each_packet): Likewise.
32901 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
32902 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
32903 (final_emit_insn_group_barriers): Likewise.
32904 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32905 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32906 (mips16_insn_length): Likewise.
32907 * config/pa/pa.c (pa_reorg): Likewise.
32908 (pa_combine_instructions): Likewise.
32909 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
32910 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
32911 (sh_reorg): Likewise.
32912 (split_branches): Likewise.
32913 * config/spu/spu.c (get_branch_target): Likewise.
32915 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
32918 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
32920 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
32921 Fix declaration name.
32923 2013-03-28 Lawrence Crowl <crowl@google.com>
32925 * graphds.h (struct graph.indicies): Remove unused.
32926 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
32927 (SCOP_ORIGINAL_PDDRS): Remove unused.
32928 * sese.h (extern insert_loop_close_phis): Removed unused.
32929 (extern insert_guard_phis): Removed unused.
32930 (extern ivtype_map_elt_info): Removed unused.
32931 (new_ivtype_map_elt): Removed unused.
32932 * sese.c (ivtype_map_elt_info): Removed unused.
32934 2013-03-28 Lawrence Crowl <crowl@google.com>
32936 * Makefile.in: Add several missing include dependences.
32938 (test-dump.o): New. This object is not added to any executable,
32939 but is present for ad-hoc testing.
32941 (debug (const bitmap_head_def &)): New.
32942 (debug (const bitmap_head_def *)): New.
32944 (extern debug (const bitmap_head_def &)): New.
32945 (extern debug (const bitmap_head_def *)): New.
32947 (debug (edge_def &)): New.
32948 (debug (edge_def *)): New.
32950 (debug (basic_block_def &)): New.
32951 (debug (basic_block_def *)): New.
32953 (dump_node (const_tree, int, FILE *)): Correct source file.
32955 (debug (die_struct &)): New.
32956 (debug (die_struct *)): New.
32958 (extern debug (die_struct &)): New.
32959 (extern debug (die_struct *)): New.
32960 * gimple-pretty-print.c
32961 (debug (gimple_statement_d &)): New.
32962 (debug (gimple_statement_d *)): New.
32963 * gimple-pretty-print.h
32964 (extern debug (gimple_statement_d &)): New.
32965 (extern debug (gimple_statement_d *)): New.
32967 (debug (ira_allocno_copy &)): New.
32968 (debug (ira_allocno_copy *)): New.
32969 (debug (ira_allocno &)): New.
32970 (debug (ira_allocno *)): New.
32972 (extern debug (ira_allocno_copy &)): New.
32973 (extern debug (ira_allocno_copy *)): New.
32974 (extern debug (ira_allocno &)): New.
32975 (extern debug (ira_allocno *)): New.
32977 (debug (live_range &)): New.
32978 (debug (live_range *)): New.
32980 (debug (lra_live_range &)): New.
32981 (debug (lra_live_range *)): New.
32983 (debug (lra_live_range &)): New.
32984 (debug (lra_live_range *)): New.
32986 (debug (omega_pb_d &)): New.
32987 (debug (omega_pb_d *)): New.
32989 (extern debug (omega_pb_d &)): New.
32990 (extern debug (omega_pb_d *)): New.
32992 (debug (const rtx_def &)): New.
32993 (debug (const rtx_def *)): New.
32995 (debug_tree (tree): Move within file.
32996 (debug_raw (const tree_node &)): New.
32997 (debug_raw (const tree_node *)): New.
32998 (dump_tree_via_hooks (const tree_node *, int)): New.
32999 (debug (const tree_node &)): New.
33000 (debug (const tree_node *)): New.
33001 (debug_verbose (const tree_node &)): New.
33002 (debug_verbose (const tree_node *)): New.
33003 (debug_head (const tree_node &)): New.
33004 (debug_head (const tree_node *)): New.
33005 (debug_body (const tree_node &)): New.
33006 (debug_body (const tree_node *)): New.
33007 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33008 (debug (vec<tree, va_gc> &)): New.
33009 (debug (vec<tree, va_gc> *)): New.
33011 (extern debug (const rtx_def &)): New.
33012 (extern debug (const rtx_def *)): New.
33014 (debug_raw (simple_bitmap_def &)): New.
33015 (debug_raw (simple_bitmap_def *)): New.
33016 (debug (simple_bitmap_def &)): New.
33017 (debug (simple_bitmap_def *)): New.
33019 (extern debug (simple_bitmap_def &)): New.
33020 (extern debug (simple_bitmap_def *)): New.
33021 (extern debug_raw (simple_bitmap_def &)): New.
33022 (extern debug_raw (simple_bitmap_def *)): New.
33024 (debug (vinsn_def &)): New.
33025 (debug (vinsn_def *)): New.
33026 (debug_verbose (vinsn_def &)): New.
33027 (debug_verbose (vinsn_def *)): New.
33028 (debug (expr_def &)): New.
33029 (debug (expr_def *)): New.
33030 (debug_verbose (expr_def &)): New.
33031 (debug_verbose (expr_def *)): New.
33032 (debug (vec<rtx> &)): New.
33033 (debug (vec<rtx> *)): New.
33035 (extern debug (vinsn_def &)): New.
33036 (extern debug (vinsn_def *)): New.
33037 (extern debug_verbose (vinsn_def &)): New.
33038 (extern debug_verbose (vinsn_def *)): New.
33039 (extern debug (expr_def &)): New.
33040 (extern debug (expr_def *)): New.
33041 (extern debug_verbose (expr_def &)): New.
33042 (extern debug_verbose (expr_def *)): New.
33043 (extern debug (vec<rtx> &)): New.
33044 (extern debug (vec<rtx> *)): New.
33046 (_list_iter_cond_expr): Make inline instead of static.
33048 (debug (sreal &)): New.
33049 (debug (sreal *)): New.
33051 (extern debug (sreal &)): New.
33052 (extern debug (sreal *)): New.
33054 (extern debug_raw (const tree_node &)): New.
33055 (extern debug_raw (const tree_node *)): New.
33056 (extern debug (const tree_node &)): New.
33057 (extern debug (const tree_node *)): New.
33058 (extern debug_verbose (const tree_node &)): New.
33059 (extern debug_verbose (const tree_node *)): New.
33060 (extern debug_head (const tree_node &)): New.
33061 (extern debug_head (const tree_node *)): New.
33062 (extern debug_body (const tree_node &)): New.
33063 (extern debug_body (const tree_node *)): New.
33064 (extern debug (vec<tree, va_gc> &)): New.
33065 (extern debug (vec<tree, va_gc> *)): New.
33067 (debug (struct loop &)): New.
33068 (debug (struct loop *)): New.
33069 (debug_verbose (struct loop &)): New.
33070 (debug_verbose (struct loop *)): New.
33071 * tree-dump.c: Add header dependence.
33073 (extern debug (struct loop &)): New.
33074 (extern debug (struct loop *)): New.
33075 (extern debug_verbose (struct loop &)): New.
33076 (extern debug_verbose (struct loop *)): New.
33078 (debug (data_reference &)): New.
33079 (debug (data_reference *)): New.
33080 (debug (vec<data_reference_p> &)): New.
33081 (debug (vec<data_reference_p> *)): New.
33082 (debug (vec<ddr_p> &)): New.
33083 (debug (vec<ddr_p> *)): New.
33085 (extern debug (data_reference &)): New.
33086 (extern debug (data_reference *)): New.
33087 (extern debug (vec<data_reference_p> &)): New.
33088 (extern debug (vec<data_reference_p> *)): New.
33089 (extern debug (vec<ddr_p> &)): New.
33090 (extern debug (vec<ddr_p> *)): New.
33092 (debug (pt_solution &)): New.
33093 (debug (pt_solution *)): New.
33095 (extern debug (pt_solution &)): New.
33096 (extern debug (pt_solution *)): New.
33098 (debug (_var_map &)): New.
33099 (debug (_var_map *)): New.
33100 (debug (tree_live_info_d &)): New.
33101 (debug (tree_live_info_d *)): New.
33103 (extern debug (_var_map &)): New.
33104 (extern debug (_var_map *)): New.
33105 (extern debug (tree_live_info_d &)): New.
33106 (extern debug (tree_live_info_d *)): New.
33108 2013-03-28 Jan Hubicka <jh@suse.cz>
33110 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33112 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33114 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33115 record only when desired or required.
33117 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33119 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33120 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33122 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33124 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33125 (*andsi3_compare0_uxtw): New pattern.
33126 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33127 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33129 2013-03-28 Jan Hubicka <jh@suse.cz>
33131 * data-streamer-in.c (streamer_read_gcov_count): New function.
33132 * gimple-streamer-out.c: Include value-prof.h.
33133 (output_gimple_stmt): Output histogram.
33134 (output_bb): Use streamer_write_gcov_count.
33135 * value-prof.c: Include data-streamer.h
33136 (dump_histogram_value): Add HIST_TYPE_MAX.
33137 (stream_out_histogram_value): New function.
33138 (stream_in_histogram_value): New function.
33139 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33140 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33141 * data-streamer-out.c (streamer_write_gcov_count): New function.
33142 (streamer_write_gcov_count_stream): New function.
33143 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33144 (lto_output_node): Likewise.
33145 (input_node, input_edge): Likewise.
33146 * lto-streamer-out.c (output_cfg): Update streaming.
33147 * lto-streamer-in.c (input_cfg): Likewise.
33148 * data-streamer.h (streamer_write_gcov_count,
33149 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33150 * gimple-streamer-in.c: Include value-prof.h
33151 (input_gimple_stmt): Input histograms.
33152 (input_bb): Update profile streaming.
33154 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33156 * genmodes.c (emit_max_int): New function.
33157 (emit_insn_modes_h): Added call to emit_max_function.
33158 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33160 * machmode.def: Fixed comment.
33162 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33164 * combine.c (try_combine): Removed useless assert.
33165 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33167 2013-03-28 Marek Polacek <polacek@redhat.com>
33168 Richard Biener <rguenther@suse.de>
33170 PR tree-optimization/56695
33171 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33172 build signed result of a vector comparison.
33173 * tree-cfg.c (verify_gimple_comparison): Check that a result
33174 of a vector comparison has signed type.
33176 2013-03-28 Richard Biener <rguenther@suse.de>
33178 PR tree-optimization/37021
33179 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33180 do not restrict gaps between groups.
33181 * tree-vect-stmts.c (vectorizable_load): Properly account for
33182 a gap between groups.
33184 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33186 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33187 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33190 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33192 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33193 * doc/extend.texi (Named Address Spaces): Ditto.
33194 (Variable Attributes): Ditto.
33196 2013-03-27 Kai Tietz <ktietz@redhat.com>
33198 * config.build: Add support for cygwin x64 target.
33199 * config.gcc: Likewise.
33200 * config.host: Likewise.
33201 * configure.ac: Likewise
33202 * configure: Regenerated.
33204 2013-03-27 Kai Tietz <ktietz@redhat.com>
33206 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33207 * config/i386/t-cygwin-w64: New file.
33208 * config/i386/cygwin-w64.h: New file.
33209 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33210 and add support for x64-cygwin target.
33211 (CPP_SPEC): Likewise.
33212 (CXX_WRAP_SPEC_LIST): Undefine before define.
33213 (LIBGCJ_SONAME): Use 15 as version.
33215 2013-03-27 Richard Biener <rguenther@suse.de>
33217 PR tree-optimization/56716
33218 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33219 dumping for ref nodes.
33221 2013-03-27 Martin Jambor <mjambor@suse.cz>
33223 PR tree-optimization/55334
33224 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33225 restricted pointers to arrays.
33227 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33229 * Makefile.in (.SUFFIXES): Add .cc.
33230 (.c.o): Apply same recipe for implicit rule .cc.o.
33232 2013-03-27 Richard Biener <rguenther@suse.de>
33234 PR tree-optimization/37021
33235 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33236 REALPART/IMAGPART_EXPRs around the supported refs.
33237 * tree-ssa-structalias.c (find_func_aliases): Assume that
33238 floating-point values are not used to transfer pointers.
33240 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33242 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33243 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33244 * doc/tm.texi: Regenerate.
33245 * targhooks.h (default_has_ifunc_p): New.
33246 * targhooks.c (default_has_ifunc_p): Ditto.
33247 * config/linux-protos.h: New file.
33248 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33249 hook for linux which disables support of indirect functions in android.
33250 * config/linux-android.c: New file.
33251 * config/t-linux-android.c: Ditto.
33252 * config.gcc: Added new object file linux-android.o.
33253 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33254 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33255 * varasm.c (do_assemble_alias): Likewise.
33256 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33257 doesn't support indirect functions.
33258 * configure: Regenerate.
33260 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33263 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33264 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33267 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33269 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33271 2013-03-27 Terry Guo <terry.guo@arm.com>
33273 * config/arm/arm-cores.def: Added core cortex-r7.
33274 * config/arm/arm-tune.md: Regenerated.
33275 * config/arm/arm-tables.opt: Regenerated.
33276 * doc/invoke.texi: Added entry for core cortex-r7.
33278 2013-03-27 Walter Lee <walt@tilera.com>
33280 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33281 double-decrement of next_scratch_regno.
33283 2013-03-27 Walter Lee <walt@tilera.com>
33285 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33287 (insn_v1mulus): Ditto.
33288 (insn_v2muls): Ditto.
33290 2013-03-27 Walter Lee <walt@tilera.com>
33292 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33293 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33295 2013-03-27 Walter Lee <walt@tilera.com>
33297 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33298 (*sibcall_value): Ditto.
33300 2013-03-27 Walter Lee <walt@tilera.com>
33302 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33303 (insn_mnz_v8qi): ... this ...
33304 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33306 (insn_v<n>mnz): Replaced by ...
33307 (insn_v1mnz): ... this ...
33308 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33310 (insn_mz_<mode>): Replaced by ...
33311 (insn_mz_v8qi): ... this ...
33312 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33314 (insn_v<n>mz): Replaced by ...
33315 (insn_v1mz): ... this ...
33316 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33319 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33321 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33323 2013-03-26 Roland McGrath <mcgrathr@google.com>
33325 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33326 than fprintf with a non-constant, non-format string.
33328 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33330 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33331 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33332 operand 0 predicate.
33333 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33334 attribute. Use general_x64nomem_operand as operand 1 predicate.
33335 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33336 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33337 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33338 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33339 (mov<mode>_insv_1): Remove expander. Merge insn with
33340 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33341 Use general_x64nomem_operand as operand 1 predicate.
33342 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33343 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33344 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33345 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33346 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33347 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33348 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33349 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33350 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33351 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33352 (general_x64nomem_operand): Ditto.
33354 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33356 * config/rtems.opt: Add -pthread option.
33358 2013-03-26 Richard Biener <rguenther@suse.de>
33360 * alias.c (find_base_term): Avoid redundant and not used recursion.
33361 (base_alias_check): Get the initial base term from the caller.
33362 (true_dependence_1): Compute and pass base terms to base_alias_check.
33363 (write_dependence_p): Likewise.
33364 (may_alias_p): Likewise.
33366 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33368 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33369 PC-relative load in SI modes and above only.
33371 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33373 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33374 * config/arm/iwmmxt.md (WCGR0): Update.
33375 (WCGR1, WCGR2, WCGR3): Likewise.
33377 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33379 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33380 Use x64 and nox64 isa attributes.
33382 2013-03-26 Richard Biener <rguenther@suse.de>
33384 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33385 alignment computations and rely on get_object_alignment_1
33386 for the !TYPE_P case.
33387 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33389 2013-03-26 Walter Lee <walt@tilera.com>
33391 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33392 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33394 2013-03-25 Jeff Law <law@redhat.com>
33396 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33397 check for INTEGRAL_TYPE_P that was missing due to checking in
33398 wrong version of prior patch.
33400 2013-03-25 Walter Lee <walt@tilera.com>
33402 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33403 TILEGX_INSN_SHUFFLEBYTES1.
33404 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33406 (tilegx_builtins): Ditto.
33407 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33409 2013-03-25 Walter Lee <walt@tilera.com>
33411 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33412 (floatunssisf2): New pattern.
33413 (floatsidf2): New pattern.
33414 (floatunssidf2): New pattern.
33416 2013-03-25 Walter Lee <walt@tilera.com>
33418 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33419 tests for constraint J, K, N, P.
33421 2013-03-25 Walter Lee <walt@tilera.com>
33423 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33424 Use indirect/pcrel encoding.
33425 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33428 2013-03-25 Steve Ellcey <sellcey@mips.com>
33430 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33431 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33432 * config/mips/mips.c (mips_option_override): Set IMADD default.
33433 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33434 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33435 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33436 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33437 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33439 2013-03-25 Jeff Law <law@redhat.com>
33441 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33442 slightly to avoid creating and folding useless trees. Simplify
33443 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33445 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33447 * config/i386/i386.md (*zero_extendsidi2): Merge with
33448 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33449 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33450 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33451 targets. Clarify comment.
33453 2013-03-25 Martin Jambor <mjambor@suse.cz>
33455 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33456 pass-through jump functions differently.
33457 (ipa_read_jump_function): Likewise. Also use setter functions to set
33460 2013-03-25 Martin Jambor <mjambor@suse.cz>
33462 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33463 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33465 (ipa_get_indirect_edge_target): New function.
33466 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33467 ipa_get_indirect_edge_target. Update all callers.
33468 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33469 ipa_get_indirect_edge_target_1 instead of calling
33470 ipa_get_indirect_edge_target.
33471 (create_specialized_node): Pass aggvlas to
33472 ipcp_discover_new_direct_edges.
33474 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33476 * config/arm/arm.md (f_sels, f_seld): New types.
33477 (*cmov<mode>): New pattern.
33478 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33481 2013-03-25 Kai Tietz <ktietz@redhat.com>
33483 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33484 POSIX-printf for mingw-hosted builds.
33486 2013-03-25 Richard Biener <rguenther@suse.de>
33488 PR middle-end/56694
33489 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33490 must-not-throw stmt location.
33492 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33494 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33495 Emit load-acquire versions when acq is true.
33496 (arm_emit_store_exclusive): Add rel parameter.
33497 Emit store-release versions when rel is true.
33498 (arm_split_compare_and_swap): Use acquire-release instructions
33500 of barriers when appropriate.
33501 (arm_split_atomic_op): Likewise.
33502 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33503 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33504 (VUNSPEC_SLX): Likewise.
33505 (VUNSPEC_LDA): Likewise.
33506 (VUNSPEC_STL): Likewise.
33507 * config/arm/sync.md (atomic_load<mode>): New pattern.
33508 (atomic_store<mode>): Likewise.
33509 (arm_load_acquire_exclusive<mode>): Likewise.
33510 (arm_load_acquire_exclusivesi): Likewise.
33511 (arm_load_acquire_exclusivedi): Likewise.
33512 (arm_store_release_exclusive<mode>): Likewise.
33514 2013-03-25 Catherine Moore <clm@codesourcery.com>
33516 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33517 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33518 * config/mip/predicates.md (lwsp_swsp_operand,
33519 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33520 sb16_operand, db4_operand, db7_operand, ib3_operand,
33521 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33522 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33523 andi16_operand): New predicates.
33524 * config/mips/mips.md (compression): New attribute.
33525 (enabled): New attribute.
33526 (length): Consider compression in computing length.
33527 (shift_compression): New code attribute.
33528 (*add<mode>3): New operands. Record compression.
33529 (sub<mode>3): Likewise.
33530 (one_cmpl<mode>2): Likewise.
33531 (*and<mode>3): Likewise.
33532 (*ior<mode>3): Likewise.
33533 (unnamed pattern for xor): Likewise.
33534 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33535 (*<optab><mode>3): Likewise.
33536 (*mov<mode>_internal: Likewise.
33537 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33538 (mips_unsigned_immediate_p): New.
33539 (umips_lwsp_swsp_address_p): New.
33540 (m16_based_address_p): New.
33541 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33542 (mips_unsigned_immediate_p): New prototype.
33543 (lwsp_swsp_address_p): New prototype.
33544 (m16_based_address_p): New prototype.
33545 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33546 (mips_signed_immediate_p): New function.
33547 (m16_based_address_p): New function.
33548 (lwsp_swsp_address_p): New function.
33549 (mips_print_operand_punctuation): Recognize short delay slot insns
33550 for microMIPS.add<mode>3"
33552 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33555 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33556 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33558 2013-03-25 Richard Biener <rguenther@suse.de>
33560 PR tree-optimization/56689
33561 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33564 2013-03-25 Richard Biener <rguenther@suse.de>
33566 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33568 (memory_references): Likewise.
33569 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33570 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33571 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33572 (gather_mem_refs_in_loops): Fold into ...
33573 (analyze_memory_references): ... this. Move initialization
33574 to tree_ssa_lim_initialize.
33575 (fill_always_executed_in): Rename to ...
33576 (fill_always_executed_in_1): ... this.
33577 (fill_always_executed_in): Move contains_call computation to
33578 this new function from ...
33579 (tree_ssa_lim_initialize): ... here.
33580 (tree_ssa_lim): Call fill_always_executed_in.
33582 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33584 * postreload.c (reload_combine): Fix code detecting returns.
33586 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33588 * function.c (emit_use_return_register_into_block): On cc0 targets,
33589 do not emit the sequence between cc0 setter and user.
33591 2013-03-25 Kai Tietz <ktietz@redhat.com>
33593 * config/i386/predicates.md (local_symbolic_operand): Interpret
33594 dll-imported symbols as none-local.
33596 2013-03-25 Richard Biener <rguenther@suse.de>
33598 * tree-ssa-loop-im.c (struct depend): Remove.
33599 (struct lim_aux_data): Make depends a vec of gimples.
33600 (free_lim_aux_data): Adjust.
33601 (add_dependency): Likewise.
33602 (set_level): Likewise.
33604 2013-03-25 Richard Biener <rguenther@suse.de>
33606 PR middle-end/56434
33607 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33608 the pointer returned by calls with ECF_MALLOC set.
33610 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33612 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33614 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33616 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33617 using MMXMODE mode iterator.
33618 (*move<mode>_internal): Merge with *movv2sf_internal and
33619 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33621 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33623 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33624 (record_last_mem_set_info): Likewise.
33626 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33627 of XNEWVEC followed by memset.
33628 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33630 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33632 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33633 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33634 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33635 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33636 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33637 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33638 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33639 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33640 BARRIER_P instead of GET_CODE.
33642 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33644 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33645 inaccuracy in the probing code.
33647 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33648 (ctrapdi4): Likewise.
33650 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33652 * calls.c (expand_call): Add missing guard to code handling return
33653 of non-BLKmode structures in MSB.
33654 * function.c (expand_function_end): Likewise.
33656 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33658 * combine.c (try_combine): Adjust comment. Do not add the set of
33659 insn #0 if the destination indirectly is set or dies in insn #2.
33660 Tidy up code to distribute a new note.
33662 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33664 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33665 also for alternatives 16 and 17.
33667 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33669 * config/i386/sse.md (*mov<mode>_internal): Merge with
33670 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33671 Emit insn template depending on type attribute. Use
33672 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33673 movd instead of movq mnemonic for interunit moves. Rewrite mode
33674 attribute calculation. Remove unit attribute calculation.
33675 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33676 Set prefix_data16 attribute for DImode ssemov types.
33677 Use Ym instead of y for SSE-MMX conversion alternatives.
33678 Reorder operand constraints.
33680 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33682 * df.h (df_insn_delete): Adjust prototype.
33683 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33684 and let it decide whether mark the basic block dirty.
33685 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33686 * df-scan.c (df_insn_info_delete): New helper function, split
33687 off from df_insn_delete.
33688 (df_scan_free_bb_info): Use it.
33689 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33691 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33692 that the insn is actually an insn and it has a non-NULL basic block.
33693 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33695 2013-03-22 Richard Biener <rguenther@suse.de>
33697 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33699 (mem_ref_alloc): Do not allocate them.
33700 (refs_independent_p): Do not query or maintain a cache.
33702 2013-03-22 Richard Biener <rguenther@suse.de>
33704 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33705 (gather_mem_refs_in_loops): Do not compute it.
33706 (analyze_memory_references): Do not allocate it.
33707 (tree_ssa_lim_finalize): Do not free it.
33708 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33710 2013-03-22 Richard Biener <rguenther@suse.de>
33712 * is-a.h (as_a): Use gcc_checking_assert.
33714 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33716 * config/aarch64/aarch64.c (aarch64_print_operand): New
33717 format specifier for printing a constant in hex.
33718 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33719 format specifier for printing second operand.
33721 2013-03-22 Richard Biener <rguenther@suse.de>
33723 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33725 (gather_mem_refs_in_loops): Perform store accumulation here.
33726 (create_vop_ref_mapping_loop): Remove.
33727 (create_vop_ref_mapping): Likewise.
33728 (analyze_memory_references): Initialize refs_stored_in_loop.
33729 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33730 (record_indep_loop): Remove.
33731 (record_dep_loop): New function.
33732 (ref_indep_loop_p_1): Adjust to only walk over references
33733 in the loop, not its subloops.
33734 (ref_indep_loop_p): Rename to ...
33735 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33736 maintaining a more fine-grained cache.
33737 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33738 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33740 2013-03-22 Richard Biener <rguenther@suse.de>
33742 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33743 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33744 aggregate mem_ref_loc.
33745 (free_mem_ref_locs): Inline into ...
33746 (memref_free): ... this and adjust.
33747 (mem_ref_alloc): Adjust.
33748 (mem_ref_locs_alloc): Remove.
33749 (record_mem_ref_loc): Adjust.
33750 (get_all_locs_in_loop): Rewrite into ...
33751 (for_all_locs_in_loop): ... this iterator.
33752 (rewrite_mem_ref_loc): New functor.
33753 (rewrite_mem_refs): Use for_all_locs_in_loop.
33754 (sm_set_flag_if_changed): New functor.
33755 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33756 (ref_always_accessed): New functor.
33757 (ref_always_accessed_p): Use for_all_locs_in_loop.
33759 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33761 * tree-pass.h (PROP_gimple_lvec): New.
33762 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33763 (init_optimization_passes): Move pass_lower_vector.
33764 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33766 (pass_lower_vector): Provide PROP_gimple_lvec.
33767 (pass_lower_vector_ssa): Likewise.
33768 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33770 2013-03-21 Mark Wielaard <mjw@redhat.com>
33772 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33774 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33776 * config/i386/i386.md (*movdi_internal): Disparage slightly
33777 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33778 conversion alternatives.
33780 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33782 PR middle-end/48087
33783 * diagnostic.def (DK_WERROR): New kind.
33784 * diagnostic.h (werrorcount): Define.
33785 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33786 promoted to DK_ERROR, increment DK_WERROR counter instead of
33788 * toplev.c (toplev_main): Call print_ignored_options even if
33789 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33790 even if just werrorcount is non-zero.
33793 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33795 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33796 (string_cst_pool_decl): New function.
33797 (optimize_one_addr_into_implicit_ptr): New function.
33798 (resolve_addr_in_expr): Optimize DWARF location expression
33799 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33800 which doesn't live in memory, but has DW_AT_location or
33801 DW_AT_const_value, or refers to a string literal, into
33802 DW_OP_GNU_implicit_pointer.
33803 (optimize_location_into_implicit_ptr): New function.
33804 (resolve_addr): If removing DW_AT_location of a variable because
33805 it was DW_OP_addr of address of the variable, but the variable doesn't
33806 live in memory, try to emit const value attribute for the initializer.
33808 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33810 * tree.h (VECTOR_TYPE_P): New macro.
33811 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33812 TYPE_MODE): Use it.
33813 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33814 VEC_COND_EXPR cannot be lvalues.
33815 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33817 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33819 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33820 Restrict the transformation to equal modes.
33822 2013-03-21 Richard Biener <rguenther@suse.de>
33824 PR tree-optimization/39326
33825 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33826 (MEM_ANALYZABLE): Adjust.
33827 (record_mem_ref_loc): Move bitmap ops ...
33828 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33829 unanalyzable refs, do not record locations for it.
33830 (analyze_memory_references): Allocate ref zero as shared
33832 (refs_independent_p): Do not test for unanalyzed mems here.
33833 (ref_indep_loop_p_1): Special-case disambiguation against
33834 the unanalyzed ref.
33835 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33837 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33839 * config/arm/arm-protos.h (tune_params): Add
33840 prefer_neon_for_64bits field.
33841 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33842 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33843 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33844 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33845 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33846 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33847 (arm_option_override): Handle -mneon-for-64bits new option.
33848 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33849 (prefer_neon_for_64bits): Declare new variable.
33850 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33851 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33852 (arch_enabled): Handle new arch types. Remove support for onlya8
33854 (one_cmpldi2): Use new arch names.
33855 (zero_extend<mode>di2, extend<mode>di2): Ditto.
33856 * config/arm/arm.opt (mneon-for-64bits): Add option.
33857 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
33858 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
33859 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
33861 * doc/invoke.texi (-mneon-for-64bits): Document.
33863 2013-03-21 Richard Biener <rguenther@suse.de>
33865 PR tree-optimization/39326
33866 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
33867 (sort_bbs_in_loop_postorder_cmp): New function.
33868 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
33870 2013-03-21 Richard Biener <rguenther@suse.de>
33872 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
33873 (vect_insert_into_interleaving_chain): Likewise.
33874 (vect_drs_dependent_in_basic_block): Inline ...
33875 (vect_slp_analyze_data_ref_dependence): ... here. New function,
33877 (vect_analyze_data_ref_dependence): ... here. Simplify.
33878 (vect_check_interleaving): Simplify.
33879 (vect_analyze_data_ref_dependences): Likewise. Split out ...
33880 (vect_slp_analyze_data_ref_dependences): ... this new function.
33881 (dr_group_sort_cmp): New function.
33882 (vect_analyze_data_ref_accesses): Compute data-reference groups
33883 here instead of in vect_analyze_data_ref_dependence. Use
33884 a more efficient algorithm.
33885 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
33886 vect_slp_analyze_data_ref_dependences. Call
33887 vect_analyze_data_ref_accesses earlier.
33888 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
33889 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
33890 (vect_slp_analyze_data_ref_dependences): New prototype.
33892 2013-03-21 Richard Biener <rguenther@suse.de>
33894 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
33895 ref is stored in the loop.
33896 (find_refs_for_sm): Walk only over all stores.
33897 (store_motion_loop): Allocate from lim_bitmap_obstack.
33898 (store_motion): Likewise.
33900 2013-03-21 Richard Biener <rguenther@suse.de>
33902 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
33903 Update virtual SSA form.
33905 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33907 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
33908 * configure: Regenerate.
33909 * config.in: Regenerate.
33910 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
33911 if !HAVE_LD_EH_FRAME_CIEV3.
33913 2013-03-21 Richard Biener <rguenther@suse.de>
33915 * tree-cfg.c (verify_expr_no_block): New function.
33916 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
33917 nor DECL_VALUE_EXPR have locations with associated blocks.
33918 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
33919 (clear_unused_block_pointer): Remove code dealing with
33920 blocks in DECL_DEBUG_EXPR locations.
33922 2013-03-21 Richard Biener <rguenther@suse.de>
33924 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
33925 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
33926 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
33927 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
33928 instead of DECL_DEBUG_EXPR_IS_FROM.
33929 * gimplify.c (gimplify_modify_expr): Likewise.
33930 * tree-cfg.c (verify_expr_location_1): Likewise.
33931 * tree-complex.c (create_one_component_var): Likewise.
33932 * tree-sra.c (create_access_replacement): Likewise.
33933 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
33934 (clear_unused_block_pointer): Likewise.
33935 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
33936 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
33937 * var-tracking.c (var_debug_decl): Likewise.
33938 (track_expr_p): Likewise.
33939 * tree-inline.c (add_local_variables): Likewise. Set
33940 DECL_HAS_DEBUG_EXPR_P after copying it.
33941 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
33942 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
33944 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33947 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
33948 * configure: Regenerate.
33949 * config.in: Regenerate.
33950 * config/i386/i386.md (*movdf_internal): Use
33951 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33952 movd instead of movq mnemonic for interunit moves.
33953 (*movdi_internal): Ditto.
33955 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33957 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
33958 (abd<mode>_3): New pattern.
33959 (aba<mode>_3): New pattern.
33960 (fabd<mode>_3): New pattern.
33962 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33964 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
33965 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
33966 occurrence of REGISTER_PREFIX as its empty string.
33968 2013-03-20 Jeff Law <law@redhat.com>
33970 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
33971 addititional equivalences for equality comparisons between an SSA_NAME
33972 and a constant where the SSA_NAME was set from a widening conversion.
33974 2013-03-20 Walter Lee <walt@tilera.com>
33976 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
33978 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33980 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
33981 depending on type attribute.
33982 (*movti_internal): Ditto.
33983 (*movtf_internal): Ditto.
33984 (*movxf_internal): Ditto.
33985 (*movdf_internal): Ditto.
33986 (*movsf_internal): Ditto.
33988 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33990 * config/i386/i386.md (*movti_internal): Set prefix attribute to
33991 maybe_vex for sselog1 and ssemov types.
33992 (*movdi_internal): Reorder operand constraints.
33993 (*movsi_internal): Ditto. Set prefix attribute to
33994 maybe_vex for sselog1 and ssemov types.
33995 (*movtf_internal): Set prefix attribute to maybe_vex
33996 for sselog1 and ssemov types.
33997 (*movdf_internal): Ditto. Set prefix_data16 attribute for
33998 DImode ssemov types. Reorder operand constraints.
33999 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34000 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34001 attribute for SImode ssemov types. Reorder operand constraints.
34003 2013-03-20 Martin Jambor <mjambor@suse.cz>
34005 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34006 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34008 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34010 * config/rs6000/predicates.md (indexed_address, update_address_mem
34011 update_indexed_address_mem): New predicates.
34012 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34013 attribute for load/store instructions.
34014 * config/rs6000/dfp.md (movsd_store): Likewise.
34015 (movsd_load): Likewise.
34016 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34017 (unnamed HI->DI extend define_insn): Likewise.
34018 (unnamed SI->DI extend define_insn): Likewise.
34019 (unnamed QI->SI extend define_insn): Likewise.
34020 (unnamed QI->HI extend define_insn): Likewise.
34021 (unnamed HI->SI extend define_insn): Likewise.
34022 (unnamed HI->SI extend define_insn): Likewise.
34023 (extendsfdf2_fpr): Likewise.
34024 (movsi_internal1): Likewise.
34025 (movsi_internal1_single): Likewise.
34026 (movhi_internal): Likewise.
34027 (movqi_internal): Likewise.
34028 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34029 attribute for load/store instructions.
34030 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34032 (mov<mode>_softfloat): Likewise.
34033 (mov<mode>_hardfloat32): Likewise.
34034 (mov<mode>_hardfloat64): Likewise.
34035 (mov<mode>_softfloat64): Likewise.
34036 (movdi_internal32): Likewise.
34037 (movdi_internal64): Likewise.
34038 (probe_stack_<mode>): Likewise.
34040 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34042 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34043 floating point, and decimal floating point to reload iterator.
34045 * config/rs6000/constraints.md (wl constraint): New constraints to
34046 return FLOAT_REGS if certain options are used to reduce the number
34047 of separate patterns that exist in the file.
34048 (wx constraint): Likewise.
34049 (wz constraint): Likewise.
34051 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34052 -mdebug=reg, print wg, wl, wx, and wz constraints.
34053 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34054 Initialize the reload functions for 64-bit binary/decimal floating
34056 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34057 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34058 create the buffer on the stack to overcome not having a 32-bit
34060 (rs6000_emit_move): Likewise.
34061 (rs6000_secondary_memory_needed_rtx): Likewise.
34062 (rs6000_alloc_sdmode_stack_slot): Likewise.
34063 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34064 via xxlxor, just like DFmode 0.0.
34066 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34067 define as 1 if we are running on a power7 or newer.
34068 (enum r6000_reg_class_enum): Add new constraints.
34070 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34071 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34072 with other moves by using conditional constraits (wg). Use LFIWZX
34073 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34074 (movsd splitter): Likewise.
34075 (movsd_hardfloat): Likewise.
34076 (movsd_softfloat): Likewise.
34078 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34079 binary and decimal floating point moves.
34080 (fmove_ok): New attributes to combine binary and decimal floating
34081 point moves, and to combine power6x (mfpgpr) moves along normal
34083 (real_value_to_target): Likewise.
34084 (f32_lr): Likewise.
34085 (f32_lm): Likewise.
34086 (f32_li): Likewise.
34087 (f32_sr): Likewise.
34088 (f32_sm): Likewise.
34089 (f32_si): Likewise.
34090 (movsf): Combine binary and decimal floating point moves. Combine
34091 power6x (mfpgpr) moves with other moves by using conditional
34092 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34093 (mov<mode> for SFmode/SDmode); Likewise.
34094 (SFmode/SDmode splitters): Likewise.
34095 (movsf_hardfloat): Likewise.
34096 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34097 (movsf_softfloat): Likewise.
34098 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34100 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34101 wx and wz constraints.
34103 * config/rs6000/constraints.md (wg constraint): New constraint to
34104 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34106 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34110 -mdebug=reg, print wg, wl, wx, and wz constraints.
34111 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34112 Initialize the reload functions for 64-bit binary/decimal floating
34114 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34115 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34116 create the buffer on the stack to overcome not having a 32-bit
34118 (rs6000_emit_move): Likewise.
34119 (rs6000_secondary_memory_needed_rtx): Likewise.
34120 (rs6000_alloc_sdmode_stack_slot): Likewise.
34121 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34122 via xxlxor, just like DFmode 0.0.
34124 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34125 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34126 with other moves by using conditional constraits (wg). Use LFIWZX
34127 and STFIWX for loading SDmode on power7.
34128 (movdd splitters): Likewise.
34129 (movdd_hardfloat32): Likewise.
34130 (movdd_softfloat32): Likewise.
34131 (movdd_hardfloat64_mfpgpr): Likewise.
34132 (movdd_hardfloat64): Likewise.
34133 (movdd_softfloat64): Likewise.
34135 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34136 64-bit binary and decimal floating point moves.
34137 (FMOVE64X): Likewise.
34138 (movdf): Combine 64-bit binary and decimal floating point moves.
34139 Combine power6x (mfpgpr) moves with other moves by using
34140 conditional constraits (wg).
34141 (mov<mode> for DFmode/DDmode): Likewise.
34142 (DFmode/DDmode splitters): Likewise.
34143 (movdf_hardfloat32): Likewise.
34144 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34145 (movdf_softfloat32): Likewise.
34146 (movdf_hardfloat64_mfpgpr): Likewise.
34147 (movdf_hardfloat64): Likewise.
34148 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34149 (movdf_softfloat64): Likewise.
34150 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34151 (reload_<mode>_load): Move to later in the file so they aren't in
34152 the middle of the floating point move insns.
34153 (reload_<mode>_store): Likewise.
34155 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34158 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34159 constraint if -mdebug=reg.
34160 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34161 Enable using dd reload support if needed.
34163 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34164 binary and decimal floating point moves in rs6000.md.
34165 (movtd_internal): Likewise.
34167 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34168 decimal floating point moves.
34170 (movtf_internal): Likewise.
34171 (mov<mode>_internal, TDmode/TFmode): Likewise.
34172 (movtf_softfloat): Likewise.
34173 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34175 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34176 movdi_internal64, using wg constraint for move direct operations.
34177 (movdi_internal64): Likewise.
34179 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34180 MODES_TIEABLE_P for selected modes. Print the numerical value of
34181 the various virtual registers. Use GPR/FPR first/last values,
34182 instead of hard coding the register numbers. Print which modes
34183 have reload functions registered.
34184 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34185 settings before/after setting cpu, target and subtarget settings.
34186 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34187 and for secondary reload failures in rs6000_secondary_reload_inner.
34188 (rs6000_secondary_reload_fail): Likewise.
34189 (rs6000_secondary_reload_inner): Likewise.
34191 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34192 macros for first/last GPR and FPR registers.
34193 (LAST_GPR_REGNO): Likewise.
34194 (FIRST_FPR_REGNO): Likewise.
34195 (LAST_FPR_REGNO): Likewise.
34197 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34198 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34199 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34200 (vcond<mode><mode>): Likewise.
34201 (vcondu<mode><mode>): Likewise.
34202 (vector_gtu<mode>): Likewise.
34203 (vector_gte<mode>): Likewise.
34204 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34205 to prevent the compiler from converting DImode operations to TImode.
34206 (ior<mode>3): Likewise.
34207 (and<mode>3): Likewise.
34208 (one_cmpl<mode>2): Likewise.
34209 (nor<mode>3): Likewise.
34210 (andc<mode>3): Likewise.
34212 * config/rs6000/constraints.md (wt constraint): New constraint
34213 that returns VSX_REGS if TImode is allowed in VSX registers.
34215 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34216 constant under VSX.
34218 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34219 similar to TImode, but it is restricted to being in the GPRs.
34221 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34222 TImode to occupy a single VSX register.
34224 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34225 -mvsx-timode for power7/power8.
34226 (power7 cpu): Likewise.
34227 (power8 cpu): Likewise.
34229 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34230 sure that TFmode/TDmode take up two registers if they are ever
34231 allowed in the upper VSX registers.
34232 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34234 (rs6000_init_hard_regno_mode_ok): Likewise.
34235 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34236 constraint. Print if LRA is turned on.
34237 (rs6000_option_override_internal): Give an error if -mvsx-timode
34238 and VSX is not enabled.
34239 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34240 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34241 to reg+offset addressing. Use PTImode when checking offset
34242 addresses for validity.
34243 (reg_offset_addressing_ok_p): Likewise.
34244 (rs6000_legitimate_offset_address_p): Likewise.
34245 (rs6000_legitimize_address): Likewise.
34246 (rs6000_legitimize_reload_address): Likewise.
34247 (rs6000_legitimate_address_p): Likewise.
34248 (rs6000_eliminate_indexed_memrefs): Likewise.
34249 (rs6000_emit_move): Likewise.
34250 (rs6000_secondary_reload): Likewise.
34251 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34252 reloads to fpr registers to continue to use reg+offset addressing,
34253 but 64-bit reloads to altivec registers need reg+reg addressing.
34254 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34255 it. Treat LO_SUM like a PLUS operation.
34256 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34257 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34258 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34259 registers to share a register with a smaller sized type, since VSX
34260 puts scalars in the upper 64-bits.
34261 (print_operand): Add support for PTImode.
34262 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34263 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34264 registers, but don't have arithmetic support.
34265 (rs6000_memory_move_cost): Add test for VSX.
34266 (rs6000_opt_masks): Add -mvsx-timode.
34268 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34271 (VSr): Use wt constraint for TImode.
34272 (VSv): Drop TImode support.
34273 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34274 (vsx_movti_64bit): Likewise.
34275 (vsx_movti_32bit): Likewise.
34276 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34277 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34278 one '?' on the appropriate output constraint. Do not allow TImode
34279 logical operations on 32-bit systems.
34280 (vsx_ior<mode>3): Likewise.
34281 (vsx_xor<mode>3): Likewise.
34282 (vsx_one_cmpl<mode>2): Likewise.
34283 (vsx_nor<mode>3): Likewise.
34284 (vsx_andc<mode>3): Likewise.
34285 (vsx_concat_<mode>): Likewise.
34286 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34288 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34289 OPTION_MASK_VSX_TIMODE.
34290 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34291 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34293 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34294 (TI2 iterator): New iterator for TImode, PTImode.
34295 (wd mode attribute): Add values for vector types.
34296 (movti_string): Replace TI move operations with operations for TImode
34297 and PTImode. Add support for TImode being allowed in VSX registers.
34298 (mov<mode>_string, TImode/PTImode): Likewise.
34299 (movti_ppc64): Likewise.
34300 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34301 (TI mode splitters): Likewise.
34303 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34306 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34308 PR tree-optimization/56355
34309 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34310 Also handle integers with undefined overflow.
34312 2013-03-20 Catherine Moore <clm@codesourcery.com>
34313 Maciej W. Rozycki <macro@codesourcery.com>
34314 Tom de Vries <tom@codesourcery.com>
34315 Nathan Sidwell <nathan@codesourcery.com>
34316 Iain Sandoe <iain@codesourcery.com>
34317 Nathan Froyd <froydnj@codesourcery.com>
34318 Chao-ying Fu <fu@mips.com>
34320 * doc/extend.texi: (micromips, nomicromips, nocompression):
34321 Document new function attributes.
34322 * doc/invoke.texi (minterlink-compressed, mmicromips,
34323 m14k, m14ke, m14kec): Document new options.
34324 (minterlink-mips16): Update documentation.
34325 * doc/md.texi (ZC, ZD): Document new constraints.
34326 * configure.ac (gcc_cv_as_micromips): Check if linker
34327 supports the .set micromips directive.
34328 * configure: Regenerate.
34329 * config.in: Regenerate.
34330 * config/mips/mips-tables.opt: Regenerate.
34331 * config/mips/micromips.md: New file.
34332 * constraints.md (ZC, ZD): New constraints.
34333 * config/mips/predicates.md (movep_src_register): New predicate.
34334 (movep_src_operand): New predicate.
34335 (non_volatile_mem_operand): New predicate.
34336 * config/mips/mips.md (multimem): New type.
34337 (length): Differentiate between 17-bit and 18-bit branch offsets.
34338 (MOVEP1, MOVEP2): New mode iterator.
34339 (mov_<load>l): Use ZC constraint.
34340 (mov_<load>r): Likewise.
34341 (mov_<store>l): Likewise.
34342 (mov_<store>r): Likewise.
34343 (*branch_equality<mode>_inverted): Add microMIPS support.
34344 (*branch_equality<mode>): Likewise.
34345 (*jump_absolute): Likewise.
34346 (indirect_jump_<mode>): Likewise.
34347 (tablejump_<mode>): Likewise.
34348 (<optab>_internal): Likewise.
34349 (sibcall_internal): Likewise.
34350 (sibcall_value_internal): Likewise.
34351 (prefetch): Use constraint ZD.
34352 * config/mips/mips.opt (minterlink-compressed): New option.
34353 (minterlink-mips16): Now an alias for minterlink-compressed.
34354 (mmicromips): New option.
34355 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34356 (compare_and_swap_12): Likewise.
34357 (sync_add<mode>): Likewise.
34358 (sync_<optab>_12): Likewise.
34359 (sync_old_<optab>_12): Likewise.
34360 (sync_new_<optab>_12): Likewise.
34361 (sync_nand_12): Likewise.
34362 (sync_old_nand_12): Likewise.
34363 (sync_new_nand_12): Likewise.
34364 (sync_sub<mode>): Likewise.
34365 (sync_old_add<mode>): Likewise.
34366 (sync_old_sub<mode>): Likewise.
34367 (sync_new_add<mode>): Likewise.
34368 (sync_new_sub<mode>): Likewise.
34369 (sync_<optab><mode>): Likewise.
34370 (sync_old_<optab><mode>): Likewise.
34371 (sync_new_<optab><mode>): Likewise.
34372 (sync_nand<mode>): Likewise.
34373 (sync_old_nand<mode>): Likewise.
34374 (sync_new_nand<mode>): Likewise.
34375 (sync_lock_test_and_set<mode>): Likewise.
34376 (test_and_set_12): Likewise.
34377 (atomic_compare_and_swap<mode>): Likewise.
34378 (atomic_exchange<mode>_llsc): Likewise.
34379 (atomic_fetch_add<mode>_llsc): Likewise.
34380 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34381 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34382 (umips_save_restore_pattern_p): Likewise.
34383 (umips_load_store_pair_p): Likewise.
34384 (umips_output_load_store_pair): Likewise.
34385 (umips_movep_target_p): Likewise.
34386 (umips_12bit_offset_address_p): Likewise.
34387 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34388 (mips_base_mips16): Rename this...
34389 (mips_base_compression_flags): ...to this. Update all uses.
34390 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34391 (mips_mips16_decl_p): Delete.
34392 (mips_nomips16_decl_p): Delete.
34393 (mips_get_compress_on_flags): New function.
34394 (mips_get_compress_off_flags): New function.
34395 (mips_get_compress_mode): New function.
34396 (mips_get_compress_on_name): New function.
34397 (mips_get_compress_off_name): New function.
34398 (mips_insert_attributes): Support multiple compression types.
34399 (mips_merge_decl_attributes): Likewise.
34400 (umips_12bit_offset_address_p): New function.
34401 (mips_start_function_definition): Emit .set micromips directive.
34402 (mips_call_may_need_jalx_p): New function.
34403 (mips_function_ok_for_sibcall): Add microMIPS support.
34404 (mips_print_operand_punctuation): Support short delay slots and
34406 (umips_swm_mask, umips_swm_encoding): New.
34407 (umips_build_save_restore): New function.
34408 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34409 (was_mips16_p): Remove.
34410 (old_compression_mode): New.
34411 (mips_set_compression_mode): New function.
34412 (mips_set_current_function): Add microMIPS support.
34413 (mips_option_override): Likewise.
34414 (umips_save_restore_pattern_p): New function.
34415 (umips_output_save_restore): New function.
34416 (umips_load_store_pair_p_1): New function.
34417 (umips_load_store_pair_p): New function.
34418 (umips_output_load_store_pair_1): New function.
34419 (umips_output_load_store_pair): New function.
34420 (umips_movep_target_p) New function.
34421 (mips_prepare_pch_save): Add microMIPS support.
34422 * config/mips/mips.h (TARGET_COMPRESSION): New.
34423 (TARGET_CPU_CPP_BUILTINS): Update macro
34424 to use new compression flags and to support microMIPS.
34425 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34426 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34427 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34428 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34429 (ASM_SPEC): Support mmicromips and mno-micromips.
34430 (M16STORE_REG_P): New macro.
34431 (MIPS_CALL): Support TARGET_MICROMIPS.
34432 (MICROMIPS_J): New macro.
34433 (mips_base_mips16): Rename this...
34434 (mips_base_compression_flags): ...to this.
34435 (UMIPS_12BIT_OFFSET_P): New macro.
34436 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34437 (MULTILIB_DIRNAMES): Likewise.
34438 2013-03-20 Richard Biener <rguenther@suse.de>
34440 PR tree-optimization/56661
34441 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34442 the result does not have to be distinct.
34444 2013-03-20 Richard Biener <rguenther@suse.de>
34446 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34449 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34450 Steven Bosscher <steven@gcc.gnu.org>
34452 PR rtl-optimization/56605
34453 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34455 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34458 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34459 that require movd instead of movq.
34461 2013-03-20 Richard Biener <rguenther@suse.de>
34463 * tree-ssa-structalias.c (struct variable_info): Add pointer
34464 to the first field of an aggregate with sub-vars. Make
34465 this and the pointer to the next subfield its ID.
34466 (vi_next): New function.
34467 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34468 storedanything_id, integer_id): Increment by one.
34469 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34470 get_call_clobber_vi): Adjust.
34471 (solution_set_expand): Simplify and speedup.
34472 (solution_set_add): Inline into ...
34473 (set_union_with_increment): ... this. Adjust accordingly.
34474 (do_sd_constraint): Likewise.
34475 (do_ds_constraint): Likewise.
34476 (do_complex_constraint): Simplify.
34477 (build_pred_graph): Adjust.
34478 (solve_graph): Likewise. Simplify and speedup.
34479 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34480 get_constraint_for_component_ref, get_constraint_for_1,
34481 first_vi_for_offset, first_or_preceding_vi_for_offset,
34482 create_function_info_for, create_variable_info_for_1,
34483 create_variable_info_for, intra_create_variable_infos): Adjust.
34484 (init_base_vars): Push NULL for ID zero.
34485 (compute_points_to_sets): Adjust.
34487 2013-03-20 Richard Biener <rguenther@suse.de>
34489 * cfgloop.c (verify_loop_structure): Streamline and avoid
34490 ICEing on corrupt loop tree.
34491 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34494 2013-03-20 Richard Biener <rguenther@suse.de>
34496 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34497 check whether an SSA update is needed.
34499 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34501 * config/mips/constraints.md (T): Rename to...
34505 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34506 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34508 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34510 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34511 (*subsi3_carryin_uxtw): Likewise.
34513 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34515 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34516 (*rorsi3_insn_uxtw): Likewise.
34518 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34520 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34521 (*extrsi5_insn_uxtw): Likewise.
34523 2013-03-19 Richard Biener <rguenther@suse.de>
34525 PR tree-optimization/56273
34526 * passes.c (init_optimization_passes): Move second VRP after DOM.
34528 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34530 * config/i386/i386.md (*movti_internal): Merge from
34531 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34532 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34533 nox64 isa attributes.
34535 2013-03-18 Richard Biener <rguenther@suse.de>
34537 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34539 (merge_node_constraints): Likewise.
34540 (build_succ_graph): Likewise.
34541 (valid_graph_edge): Inline into single caller.
34542 (unify_nodes): Likewise. Use bitmap_set_bit return value
34544 (scc_visit): Fix formatting and variable use.
34545 (do_sd_constraint): Use gcc_checking_assert.
34546 (do_ds_constraint): Likewise.
34547 (do_complex_constraint): Likewise.
34548 (condense_visit): Likewise. Cleanup.
34549 (dump_pred_graph): New function.
34550 (perform_var_substitution): Dump the pred-graph before
34551 variable substitution.
34552 (find_equivalent_node): Use gcc_checking_assert.
34553 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34555 2013-03-18 Richard Biener <rguenther@suse.de>
34557 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34558 Remove cond_expr_stmt_list argument and do not gimplify the
34560 (vect_loop_versioning): Adjust.
34561 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34562 Cleanup to use less temporaries.
34563 (vect_create_data_ref_ptr): Cleanup.
34565 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34567 PR tree-optimization/56635
34568 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34569 require types_compatible_p types.
34571 2013-03-18 Nick Clifton <nickc@redhat.com>
34573 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34574 spurious backslash.
34576 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34577 Add missing line to comment describing function.
34579 2013-03-18 Richard Biener <rguenther@suse.de>
34581 PR tree-optimization/56210
34582 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34583 Handle string / character search functions.
34584 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34586 2013-03-18 Richard Biener <rguenther@suse.de>
34588 PR middle-end/56483
34589 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34590 and implement properly.
34591 * gimple.h (gimple_cond_single_var_p): Remove.
34593 2013-03-18 Richard Biener <rguenther@suse.de>
34595 * tree-data-ref.h (find_data_references_in_loop): Declare.
34596 * tree-data-ref.c (get_references_in_stmt): Use a stack
34597 vector pre-allocated in the callers.
34598 (find_data_references_in_stmt): Adjust.
34599 (graphite_find_data_references_in_stmt): Likewise.
34600 (create_rdg_vertices): Likewise.
34601 (find_data_references_in_loop): Export.
34602 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34603 Compute dependences here...
34604 (vect_analyze_data_refs): ...not here. When we encounter
34605 a non-vectorizable data reference in basic-block vectorization
34606 truncate the data reference vector. Do not bother to
34607 fixup data-dependence information for gather loads.
34608 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34609 of data references, as reported.
34611 2013-03-18 Richard Biener <rguenther@suse.de>
34613 PR tree-optimization/3713
34614 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34615 has_constants and expr.
34616 (stmt_has_constants): Properly valueize SSA names when deciding
34617 whether the stmt has constants.
34619 2013-03-18 Richard Biener <rguenther@suse.de>
34621 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34622 whole function when there is nothing to do.
34623 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34624 * tree-vectorizer.c (vectorize_loops): Update virtual and
34625 loop-closed SSA once.
34626 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34628 2013-03-18 Richard Biener <rguenther@suse.de>
34630 PR middle-end/56113
34631 * domwalk.c (bb_postorder): New global static.
34632 (cmp_bb_postorder): New function.
34633 (walk_dominator_tree): Replace scheme imposing an order for
34634 visiting dominator sons by one sorting them at the time they
34635 are pushed on the stack.
34637 2013-03-18 Richard Biener <rguenther@suse.de>
34639 PR tree-optimization/39326
34640 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34641 (struct mem_ref): Replace mem member with ao_ref typed member.
34642 (MEM_ANALYZABLE): Adjust.
34643 (memref_eq): Likewise.
34644 (mem_ref_alloc): Likewise.
34645 (gather_mem_refs_stmt): Likewise.
34646 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34647 (execute_sm_if_changed_flag_set): Adjust.
34648 (execute_sm): Likewise.
34649 (ref_always_accessed_p): Likewise.
34650 (refs_independent_p): Likewise.
34651 (can_sm_ref_p): Likewise.
34653 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34656 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34657 return 1 even for !unsignedp.
34659 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34661 * config/i386/i386.md (isa): Add x64 and nox64.
34662 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34663 (*pushtf): Enable *roF alternative for x64 isa only.
34664 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34665 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34666 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34667 (*movtf_internal): Merge from *movtf_internal_rex64 and
34668 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34669 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34670 nox64 isa attributes.
34671 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34672 nox64 isa attributes.
34673 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34675 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34677 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34679 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34682 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34683 class names. Remove trailing comma after "ALL_REGS".
34685 2013-03-16 Jan Hubicka <jh@suse.cz>
34687 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34688 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34689 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34690 of cgraph_get_create_node.
34691 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34693 2013-03-16 Jason Merrill <jason@redhat.com>
34696 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34697 with DW_AT_default_value.
34699 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34701 * BASE-VER: Set to 4.9.0.
34703 2013-03-14 Andi Kleen <ak@linux.intel.com>
34706 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34707 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34708 Document _x* TSX intrinsics.
34710 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34711 David Holsgrove <david.holsgrove@xilinx.com>
34713 * configure.ac: Add MicroBlaze TLS support detection.
34714 * configure: Regenerate.
34715 * config/microblaze/microblaze-protos.h
34716 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34717 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34718 * config/microblaze/microblaze.c (microblaze_address_type): Add
34719 ADDRESS_TLS and tls_reloc address types.
34720 (microblaze_address_info): Add tls_reloc.
34721 (TARGET_HAVE_TLS): Define.
34722 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34723 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34724 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34725 load_tls_operand, microblaze_call_tls_get_addr,
34726 microblaze_legitimize_tls_address): New functions.
34727 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34728 (get_base_reg): Use microblaze_tls_symbol_p.
34729 (microblaze_classify_address): Handle TLS.
34730 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34731 label_mentioned_p and microblaze_tls_referenced_p.
34732 (microblaze_legitimize_address): Handle TLS.
34733 (microblaze_address_insns): Handle ADDRESS_TLS.
34734 (pic_address_needs_scratch): Handle TLS.
34735 (print_operand_address): Handle TLS.
34736 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34737 (microblaze_expand_move): Handle TLS.
34738 (microblaze_legitimate_constant_p): Check
34739 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34740 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34741 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34742 (PIC_OFFSET_TABLE_REGNUM): Set.
34743 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34744 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34745 (addsi3, movsi_internal2, movdf_internal): Update constraints
34746 * config/microblaze/predicates.md (arith_plus_operand): Define
34747 (move_operand): Redefine as move_src_operand,
34748 check microblaze_tls_referenced_p.
34750 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34752 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34753 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34755 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34757 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34760 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34762 PR tree-optimization/53265
34763 * common.opt (Waggressive-loop-optimizations): New option.
34764 * tree-ssa-loop-niter.c: Include tree-pass.h.
34765 (do_warn_aggressive_loop_optimizations): New function.
34766 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34767 if number_of_latch_executions returned constant.
34768 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34769 early. If number_of_latch_executions returned constant, set
34770 nb_iterations_upper_bound back to it.
34771 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34773 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34774 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34776 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34777 (MULTILIB_OSDIRNAMES): Set.
34778 * genmultilib: If defaultosdirname doesn't start with :: , set
34779 defaultosdirname2 instead, clear it and emit two . multilib_raw
34780 entries instead of just one.
34782 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34784 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34785 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34786 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34787 (SUBTARGET_OVERRIDE_OPTIONS): New.
34789 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34792 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34793 (musermode): Convert to Var(TARGET_USERMODE).
34794 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34795 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34796 * config/sh/sh.c (sh_option_override): Use
34797 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34798 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34800 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34802 (udivsi3_i4_single, divsi3_i4_single): Use
34803 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34805 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34807 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34810 2013-03-13 Richard Biener <rguenther@suse.de>
34812 PR tree-optimization/56608
34813 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34814 calls when vectorizing basic-blocks.
34816 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34819 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34822 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34824 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34826 2013-03-11 Jan Hubicka <jh@suse.cz>
34829 * lto-streamer-out.c (output_symbol_p): Skip references from
34830 constructors of external variables.
34832 2013-03-11 Jan Hubicka <jh@suse.cz>
34834 PR middle-end/56571
34835 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34837 * emit-rtl.c (verify_rtx_sharing): Likewise.
34838 (copy_insn_1): Likewise.
34839 * rtl.c (copy_rtx): Likewise.
34841 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34844 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34845 output_operand_lossage message.
34847 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34850 * arm.c (shift_op): Validate RTL pattern on the fly.
34851 (arm_print_operand, case 'S'): Don't use shift_operator to validate
34854 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34857 * config/pa/pa.md (call_value): Check for calls to powf and direct to
34858 new call patterns that clobber %fr12.
34859 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
34860 split and postreload patterns.
34861 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
34862 registers %fr12 and %fr12R as call used.
34864 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
34866 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
34867 (canon_address, record_store, replace_read, check_mem_read_rtx,
34868 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
34869 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
34870 rest_of_handle_dse): Likewise.
34872 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
34874 PR middle-end/56524
34875 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
34877 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
34878 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
34879 (save_optabs_if_changed): Replace with...
34880 (init_tree_optimization_optabs): ...this.
34881 * optabs.c (save_optabs_if_changed): Rename to...
34882 (init_tree_optimization_optabs): ...this. Take the optimization node
34883 as argument. Do nothing if the base optabs are already correct.
34884 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
34885 to recompute optabs.
34886 * function.h (function): Remove optabs field.
34887 * function.c (invoke_set_current_function_hook): Call
34888 init_tree_optimization_optabs. Use the result to initialize
34891 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
34893 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
34894 if GTMA_HAS_NO_INSTRUMENTATION.
34895 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
34896 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
34897 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
34898 * gimple-pretty-print.c (dump_gimple_transaction): Handle
34899 GTMA_HAS_NO_INSTRUMENTATION.
34901 2013-03-08 Jakub Jelinek <jakub@redhat.com>
34903 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
34906 2013-03-08 Marek Polacek <polacek@redhat.com>
34907 Jakub Jelinek <jakub@redhat.com>
34909 PR tree-optimization/56478
34910 * predict.c (is_comparison_with_loop_invariant_p): Change the
34911 type of loop_step to tree.
34912 (predict_loops): Adjust.
34913 (predict_iv_comparison): Perform the computations on double_ints.
34915 2013-03-08 Richard Biener <rguenther@suse.de>
34917 PR tree-optimization/56570
34918 * tree-cfg.c (verify_expr_location_1): Verify locations for
34920 * tree-sra.c (create_access_replacement): Strip locations
34921 from DECL_DEBUG_EXPRs.
34923 2013-03-08 Richard Biener <rguenther@suse.de>
34925 * tree-inline.c (expand_call_inline): Do not associate
34926 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
34927 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
34929 2013-03-08 Richard Biener <rguenther@suse.de>
34931 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
34932 or block changes with -Og. Fix for location / block encoding
34933 changes and PHI arguments with locations.
34935 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
34937 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
34939 (struct output_info): Likewise.
34940 (register_overhead): Remove bad gcc_assert.
34941 (bitmap_find_bit): If there is only a single bitmap element, do not
34942 count a miss as a search.
34943 (print_statistics): Update for counter type changes.
34944 (dump_bitmap_statistics): Likewise. Print headers such that they
34945 are properly lined up with the printed counters.
34947 2013-03-07 Jakub Jelinek <jakub@redhat.com>
34949 PR tree-optimization/56559
34950 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
34951 check that it has only a single use.
34953 2013-03-07 Richard Biener <rguenther@suse.de>
34955 * doc/invoke.texi (fwhole-program): Discourage use in combination
34958 2013-03-06 Jakub Jelinek <jakub@redhat.com>
34960 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
34962 PR tree-optimization/56539
34963 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
34964 instead of GSI_CONTINUE_LINKING as last argument to
34965 force_gimple_operand_gsi. Adjust function comment.
34967 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
34970 PR middle-end/56548
34971 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
34972 promoted mode, convert the result back to the original mode.
34974 2013-03-06 Richard Biener <rguenther@suse.de>
34976 PR middle-end/56294
34977 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
34978 (insert_updated_phi_nodes_compare_uids): New function.
34979 (update_ssa): Sort symbols_to_rename after UID before
34980 traversing it to insert PHI nodes.
34982 2013-03-06 Richard Biener <rguenther@suse.de>
34984 PR middle-end/50494
34985 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
34986 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
34989 2013-02-13 Richard Biener <rguenther@suse.de>
34992 * varasm.c (output_constant_def_1): Get the decl representing
34993 the constant as argument.
34994 (output_constant_def): Wrap output_constant_def_1.
34995 (make_decl_rtl): Use output_constant_def_1 with the decl
34996 representing the constant.
34997 (build_constant_desc): Optionally re-use a decl already
34998 representing the constant.
34999 (tree_output_constant_def): Adjust.
35001 2013-03-06 Joey Ye <joey.ye@arm.com>
35004 * gcc.c (convert_white_space): New function.
35005 (main): Handles white space in function name.
35007 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35010 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35011 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35012 to SH_DIV_CALL_TABLE for TARGET_SH2.
35013 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35015 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35016 call-table options.
35018 2013-03-05 Sterling Augustine <saugustine@google.com>
35019 Cary Coutant <ccoutant@google.com>
35022 * dwarf2out.c (resolve_addr): Don't call
35023 remove_loc_list_addr_table_entries a second time for the same
35026 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35029 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35030 (avoid_complex_debug_insns): New function.
35031 (expand_debug_locations): Call it.
35033 PR rtl-optimization/56484
35034 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35035 lifetimes of hard registers on small register class machines.
35037 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35039 * config/microblaze/microblaze-protos.h: Rename
35040 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35041 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35043 (microblaze_fast_interrupt_function_p): New function.
35044 (microblaze_is_interrupt_handler): Rename to
35045 microblaze_is_interrupt_variant and add fast_interrupt check.
35046 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35047 (save_restore_insns): Likewise.
35048 (compute_frame_size): Likewise.
35049 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35050 (microblaze_globalize_label): Likewise.
35051 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35052 * config/microblaze/microblaze.md: Use wrapper
35053 microblaze_is_interrupt_variant.
35055 2013-03-05 Kai Tietz <ktietz@redhat.com>
35057 * sdbout.c (sdbout_one_type): Switch to current function's section
35058 supporting cold/hot.
35060 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35062 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35065 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35067 PR middle-end/56461
35068 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35069 if VALGRIND_GET_VBITS is defined, temporarily make object
35070 memory all defined, and restore previous valgrind addressability
35071 and definability afterwards. Free this_object at the end.
35073 PR middle-end/56461
35074 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35075 right before calling lra_create_live_ranges, also call it
35076 when clearing live_p. Only call lra_clear_live_ranges
35077 at the end if live_p.
35079 PR middle-end/56461
35080 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35082 2013-03-05 Richard Biener <rguenther@suse.de>
35084 PR tree-optimization/56521
35085 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35088 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35091 * except.h (remove_unreachable_eh_regions): New prototype.
35092 * except.c (remove_eh_handler_splicer): New function, split out
35093 of remove_eh_handler.
35094 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35095 warning about running it on many EH regions one at a time.
35096 (remove_unreachable_eh_regions_worker): New function, walk the
35097 EH tree in depth-first order and remove non-marked regions.
35098 (remove_unreachable_eh_regions): New function.
35099 * tree-eh.c (mark_reachable_handlers): New function, split out
35100 from remove_unreachable_handlers.
35101 (remove_unreachable_handlers): Use mark_reachable_handlers and
35102 remove_unreachable_eh_regions.
35103 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35104 and remove_unreachable_eh_regions.
35106 2013-03-05 Richard Biener <rguenther@suse.de>
35108 PR middle-end/56525
35109 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35110 not freeing them until the end.
35112 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35114 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35116 2013-03-05 Richard Biener <rguenther@suse.de>
35118 PR tree-optimization/56270
35119 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35120 of loads after scheduling an SLP instance.
35122 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35124 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35126 (check_gcc_parallelize): Run guality.exp as a separate job from
35127 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35128 struct-layout-1.exp with stackalign.exp.
35130 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35132 PR middle-end/56461
35133 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35134 load_index sbitmap even if some bit in it isn't set.
35136 PR middle-end/56461
35137 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35138 (discover_iteration_bound_by_body_walk): Change queues to
35139 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35140 spelling in comment. Call safe_push on queues[bound_index] directly.
35141 Release queues[queue_index] in every iteration unconditionally.
35142 Release bounds vector.
35144 PR middle-end/56461
35145 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35146 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35147 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35150 2013-03-05 Richard Biener <rguenther@suse.de>
35153 * tree-inline.c (remap_blocks_to_null): New function.
35154 (expand_call_inline): When expanding a call stmt without
35155 an associated block inline remap all callee blocks to NULL.
35157 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35159 PR rtl-optimization/56494
35160 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35161 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35162 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35164 PR middle-end/56461
35165 * sel-sched-ir.c (free_sched_pools): Release
35166 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35167 if succs_info_pool.max_top isn't -1.
35170 * opts.c (opts_obstack, opts_concat): Moved to...
35171 * opts-common.c (opts_obstack, opts_concat): ... here.
35173 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35175 PR middle-end/56461
35176 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35178 2013-03-04 Martin Jambor <mjambor@suse.cz>
35180 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35181 all appropriate places.
35183 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35185 PR tree-optimization/56424
35186 * ipa-split.c (split_function): Do not set the RSO flag if result is
35187 not by reference and its type is a register type.
35189 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35191 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35192 (microblaze_legitimate_pic_operand): Likewise
35193 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35194 new function microblaze_legitimate_pic_operand
35195 * config/microblaze/microblaze-protos.h
35196 (microblaze_legitimate_pic_operand): Declare.
35198 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35200 * config/microblaze/predicates.md (call_insn_simple_operand):
35201 New predicate for supported rtx code types.
35202 * config/microblaze/microblaze.md (call_internal1): Use
35203 call_insn_simple_operand predicate.
35205 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35207 PR middle-end/56461
35208 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35209 partitions.ordered_remove.
35211 PR middle-end/56461
35212 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35213 vec_oprnds0.create (1) for modifier == NONE.
35215 PR middle-end/56461
35216 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35217 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35218 vec_oprnds1 right before pushing anything to it for
35221 PR middle-end/56461
35222 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35223 set nbbs to 0 instead of having separate code path.
35224 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35225 instead of false as last argument if returning NULL.
35227 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35229 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35230 the attribute is now called "target" instead of "option".
35231 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35232 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35233 attribute/pragma name for TARGET_OPTION_VALID_P and
35234 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35235 * doc/tm.texi: Regenerated.
35237 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35239 * config/microblaze/microblaze.c:
35240 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35241 * config/microblaze/microblaze.h: Add -mxl-reorder to
35243 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35244 instructions emitted if TARGET_REORDER.
35245 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35246 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35249 2013-03-01 Xinliang David Li <davidxl@google.com>
35251 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35254 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35256 PR middle-end/56461
35257 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35258 vector even when returning true. Fix up function comment formatting.
35260 PR middle-end/56461
35261 * ira-build.c (ira_loop_nodes_count): New variable.
35262 (create_loop_tree_nodes): Initialize it.
35263 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35265 PR middle-end/56461
35266 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35267 method on dr_chain and result_chain.
35268 * tree-vect-stmts.c (vectorizable_store): Only call
35269 result_chain.create if j == 0.
35271 PR middle-end/56461
35272 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35273 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35274 before overwriting it.
35276 2013-03-01 Tobias Burnus <burnus@net-b.de>
35278 * doc/extended.texi (C Extensions): Change order in @menu
35280 (Other MIPS Built-in Functions): Move last MIPS entry before
35281 "picoChip Built-in Functions".
35282 (SH Built-in Functions): Move after RX Built-in Functions.
35283 * doc/gcc.texi (Introduction): Change order in @menu
35285 * doc/md.texi (Constraints): Ditto.
35286 * gty.texi (Type Information): Ditto.
35287 (User-provided marking routines for template types): Make
35289 * doc/invoke.texi (AArch64 Options): Move before
35290 "Adapteva Epiphany Options".
35292 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35293 Jakub Jelinek <jakub@redhat.com>
35296 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35297 no_address_safety_analysis attribute.
35298 * doc/extend.texi (no_address_safety_attribute): Rename to
35299 no_sanitize_address attribute, mention no_address_safety_analysis
35300 attribute as deprecated alias.
35302 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35304 PR middle-end/56461
35305 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35306 type to vec<vec<tree> > *.
35307 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35308 to be vec<tree> instead of vec<tree> *, set vec_defs
35309 to vNULL and call vec_defs.create (number_of_vects), adjust other
35311 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35312 vectorizable_condition): Adjust vect_get_slp_defs callers.
35314 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35316 * config/aarch64/aarch64.c
35317 (aarch64_float_const_representable): Remove unused variable.
35319 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35321 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35323 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35325 * config/aarch64/aarch64-builtins.c
35326 (aarch64_init_simd_builtins): Make static.
35328 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35330 * config/aarch64/aarch64.c
35331 (aarch64_simd_make_constant): Make static.
35333 2013-02-28 Martin Jambor <mjambor@suse.cz>
35335 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35336 with no initialization to the RHS of debug statements.
35338 2013-02-28 Martin Jambor <mjambor@suse.cz>
35340 PR tree-optimization/56294
35341 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35343 (get_access_replacement): Do not call create_access_replacement.
35344 Assert a replacement exists.
35345 (get_repl_default_def_ssa_name): Create the replacement declaration
35348 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35350 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35351 final_end_function.
35353 2013-02-28 Marek Polacek <polacek@redhat.com>
35355 PR rtl-optimization/56466
35356 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35357 if we're changing a loop.
35358 (peel_loops_completely): Likewise.
35360 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35363 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35365 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35368 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35369 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35370 INTX_FTYPE_FX, FX_FTYPE_INTX.
35371 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35373 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35375 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35376 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35377 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35378 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35379 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35380 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35381 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35382 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35383 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35384 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35385 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35386 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35387 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35388 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35389 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35390 (avrxmega6): Increase max flash segments from 5 to 6.
35391 * config/avr/t-multilib: Regenerate.
35392 * config/avr/avr-tables.opt: Regenerate.
35393 * doc/avr-mmcu.texi: Regenerate.
35395 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35397 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35398 (avr_device_to_arch): Rename to avr_device_to_ld.
35399 (avr_device_to_as): New prototype.
35400 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35401 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35402 * config/avr/driver-avr.c (avr_device_to_as): New.
35403 (avr_device_to_arch): Rename to avr_device_to_ld.
35405 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35407 PR middle-end/56461
35408 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35409 method on dr_chain and result_chain.
35411 PR middle-end/56461
35412 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35413 pointer_set_destroy on not_executed_last_iteration.
35415 PR middle-end/56461
35416 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35418 PR middle-end/56461
35419 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35420 FOR_EACH_DEFINED_FUNCTION when freeing state.
35422 PR middle-end/56461
35423 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35425 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35428 PR middle-end/56461
35429 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35430 known_aggs[i].items and release known_aggs vector.
35432 PR middle-end/56461
35433 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35435 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35437 * config/microblaze/microblaze.c (microblaze_emit_compare):
35438 Use xor for EQ/NE comparisions.
35439 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35440 (cbranchsf4): Adjust operator to comparison_operator.
35442 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35444 PR middle-end/56461
35445 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35447 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35448 vec_safe_push, always update *slot.
35449 (redirect_edge_var_map_clear): Use vec_free.
35450 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35451 (free_var_map_entry): Use vec_free.
35452 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35453 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35455 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35457 PR middle-end/45472
35458 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35459 when the may_trap_p bit of the exprs being merged differs.
35460 Reorder tests for speculativeness in the logical and operator.
35462 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35464 * incpath.c (add_standard_paths): Use reconcat instead of concat
35465 where appropriate and avoid leaking memory.
35467 * opts.h: Include obstack.h.
35468 (opts_concat): New prototype.
35469 (opts_obstack): New declaration.
35470 * opts.c (opts_concat): New function.
35471 (opts_obstack): New variable.
35472 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35473 (finish_options): Use opts_concat instead of concat
35474 and XOBNEWVEC instead of XNEWVEC.
35475 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35476 generate_option): Likewise.
35477 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35478 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35481 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35482 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35484 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35486 PR middle-end/56461
35487 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35489 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35491 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35492 (arm_block_move_unaligned_straight): Likewise.
35493 (arm_adjust_block_mem): Likewise.
35495 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35498 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35499 temp, cond and label.
35500 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35503 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35504 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35507 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35508 of prologue/epilogue functions.
35511 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35512 Remove unused variable cfa_offset.
35513 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35516 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35517 type promotion to unsigned.
35520 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35521 for HOST_WIDE_INT of 32 bit / same size as int.
35522 (arm_block_move_unaligned_straight): Likewise.
35523 (arm_adjust_block_mem): Likewise.
35526 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35529 2013-02-26 Marek Polacek <polacek@redhat.com>
35531 PR tree-optimization/56426
35532 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35534 2013-02-26 Richard Biener <rguenther@suse.de>
35537 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35538 unused variable loops.
35540 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35542 PR tree-optimization/56448
35543 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35544 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35545 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35546 later operands of the references, or even first operand for
35547 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35549 PR tree-optimization/56443
35550 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35551 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35552 to type_for_mode langhook.
35554 2013-02-25 Matt Turner <mattst88@gmail.com>
35556 * doc/invoke.texi: Document r4700.
35558 2013-02-25 Richard Biener <rguenther@suse.de>
35560 PR tree-optimization/56175
35561 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35563 (simplify_bitwise_binary): ... here. Also guard the conversion
35564 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35566 2013-02-25 Catherine Moore <clm@codesourcery.com>
35569 2013-02-24 Catherine Moore <clm@codesourcery.com>
35570 Maciej W. Rozycki <macro@codesourcery.com>
35571 Tom de Vries <tom@codesourcery.com>
35572 Nathan Sidwell <nathan@codesourcery.com>
35573 Iain Sandoe <iain@codesourcery.com>
35574 Nathan Froyd <froydnj@codesourcery.com>
35575 Chao-ying Fu <fu@mips.com>
35577 * doc/extend.texi: (micromips, nomicromips, nocompression):
35578 Document new function attributes.
35579 * doc/invoke.texi (minterlink-compressed, mmicromips,
35580 m14k, m14ke, m14kec): Document new options.
35581 (minterlink-mips16): Update documentation.
35582 * doc/md.texi (ZC, ZD): Document new constraints.
35583 * configure.ac (gcc_cv_as_micromips): Check if linker
35584 supports the .set micromips directive.
35585 * configure: Regenerate.
35586 * config.in: Regenerate.
35587 * config/mips/mips-tables.opt: Regenerate.
35588 * config/mips/micromips.md: New file.
35589 * constraints.md (ZC, AD): New constraints.
35590 * config/mips/predicates.md (movep_src_register): New predicate.
35591 (movep_src_operand): New predicate.
35592 (non_volatile_mem_operand): New predicate.
35593 * config/mips/mips.md (multimem): New type.
35594 (length): Differentiate between 17-bit and 18-bit branch offsets.
35595 (MOVEP1, MOVEP2): New mode iterator.
35596 (mov_<load>l): Use ZC constraint.
35597 (mov_<load>r): Likewise.
35598 (mov_<store>l): Likewise.
35599 (mov_<store>r): Likewise.
35600 (*branch_equality<mode>_inverted): Add microMIPS support.
35601 (*branch_equality<mode>): Likewise.
35602 (*jump_absolute): Likewise.
35603 (indirect_jump_<mode>): Likewise.
35604 (tablejump_<mode>): Likewise.
35605 (<optab>_internal): Likewise.
35606 (sibcall_internal): Likewise.
35607 (sibcall_value_internal): Likewise.
35608 (prefetch): Use constraint ZD.
35609 * config/mips/mips.opt (minterlink-compressed): New option.
35610 (minterlink-mips16): Now an alias for minterlink-compressed.
35611 (mmicromips): New option.
35612 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35613 (compare_and_swap_12): Likewise.
35614 (sync_add<mode>): Likewise.
35615 (sync_<optab>_12): Likewise.
35616 (sync_old_<optab>_12): Likewise.
35617 (sync_new_<optab>_12): Likewise.
35618 (sync_nand_12): Likewise.
35619 (sync_old_nand_12): Likewise.
35620 (sync_new_nand_12): Likewise.
35621 (sync_sub<mode>): Likewise.
35622 (sync_old_add<mode>): Likewise.
35623 (sync_old_sub<mode>): Likewise.
35624 (sync_new_add<mode>): Likewise.
35625 (sync_new_sub<mode>): Likewise.
35626 (sync_<optab><mode>): Likewise.
35627 (sync_old_<optab><mode>): Likewise.
35628 (sync_new_<optab><mode>): Likewise.
35629 (sync_nand<mode>): Likewise.
35630 (sync_old_nand<mode>): Likewise.
35631 (sync_new_nand<mode>): Likewise.
35632 (sync_lock_test_and_set<mode>): Likewise.
35633 (test_and_set_12): Likewise.
35634 (atomic_compare_and_swap<mode>): Likewise.
35635 (atomic_exchange<mode>_llsc): Likewise.
35636 (atomic_fetch_add<mode>_llsc): Likewise.
35637 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35638 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35639 (umips_save_restore_pattern_p): Likewise.
35640 (umips_load_store_pair_p): Likewise.
35641 (umips_output_load_store_pair): Likewise.
35642 (umips_movep_target_p): Likewise.
35643 (umips_12bit_offset_address_p): Likewise.
35644 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35645 (mips_base_mips16): Rename this...
35646 (mips_base_compression_flags): ...to this. Update all uses.
35647 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35648 (mips_mips16_decl_p): Delete.
35649 (mips_nomips16_decl_p): Delete.
35650 (mips_get_compress_on_flags): New function.
35651 (mips_get_compress_off_flags): New function.
35652 (mips_get_compress_mode): New function.
35653 (mips_get_compress_on_name): New function.
35654 (mips_get_compress_off_name): New function.
35655 (mips_insert_attributes): Support multiple compression types.
35656 (mips_merge_decl_attributes): Likewise.
35657 (umips_12bit_offset_address_p): New function.
35658 (mips_start_function_definition): Emit .set micromips directive.
35659 (mips_call_may_need_jalx_p): New function.
35660 (mips_function_ok_for_sibcall): Add microMIPS support.
35661 (mips_print_operand_punctuation): Support short delay slots and
35663 (umips_swm_mask, umips_swm_encoding): New.
35664 (umips_build_save_restore): New function.
35665 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35666 (was_mips16_p): Remove.
35667 (old_compression_mode): New.
35668 (mips_set_compression_mode): New function.
35669 (mips_set_current_function): Add microMIPS support.
35670 (mips_option_override): Likewise.
35671 (umips_save_restore_pattern_p): New function.
35672 (umips_output_save_restore): New function.
35673 (umips_load_store_pair_p_1): New function.
35674 (umips_load_store_pair_p): New function.
35675 (umips_output_load_store_pair_1): New function.
35676 (umips_output_load_store_pair): New function.
35677 (umips_movep_target_p) New function.
35678 (mips_prepare_pch_save): Add microMIPS support.
35679 * config/mips/mips.h (TARGET_COMPRESSION): New.
35680 (TARGET_CPU_CPP_BUILTINS): Update macro
35681 to use new compression flags and to support microMIPS.
35682 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35683 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35684 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35685 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35686 (ASM_SPEC): Support mmicromips and mno-micromips.
35687 (M16STORE_REG_P): New macro.
35688 (MIPS_CALL): Support TARGET_MICROMIPS.
35689 (MICROMIPS_J): New macro.
35690 (mips_base_mips16): Rename this...
35691 (mips_base_compression_flags): ...to this.
35692 (UMIPS_12BIT_OFFSET_P): New macro.
35693 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35694 (MULTILIB_DIRNAMES): Likewise.
35696 2013-02-25 Tom de Vries <tom@codesourcery.com>
35698 PR rtl-optimization/56131
35699 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35700 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35701 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35703 2013-02-25 Tobias Burnus <burnus@net-b.de>
35705 * doc/invoke.texi (-fsanitize=): Move from optimization
35706 to debugging options.
35708 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35710 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35712 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35713 Alexander Monakov <amonakov@ispras.ru>
35715 PR middle-end/56077
35716 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35717 flush pending lists also on non-jumps. Adjust comment.
35719 2013-02-24 Catherine Moore <clm@codesourcery.com>
35720 Maciej W. Rozycki <macro@codesourcery.com>
35721 Tom de Vries <tom@codesourcery.com>
35722 Nathan Sidwell <nathan@codesourcery.com>
35723 Iain Sandoe <iain@codesourcery.com>
35724 Nathan Froyd <froydnj@codesourcery.com>
35725 Chao-ying Fu <fu@mips.com>
35727 * doc/extend.texi: (micromips, nomicromips, nocompression):
35728 Document new function attributes.
35729 * doc/invoke.texi (minterlink-compressed, mmicromips,
35730 m14k, m14ke, m14kec): Document new options.
35731 (minterlink-mips16): Update documentation.
35732 * doc/md.texi (ZC, ZD): Document new constraints.
35733 * configure.ac (gcc_cv_as_micromips): Check if linker
35734 supports the .set micromips directive.
35735 * configure: Regenerate.
35736 * config.in: Regenerate.
35737 * config/mips/mips-tables.opt: Regenerate.
35738 * config/mips/micromips.md: New file.
35739 * constraints.md (ZC, AD): New constraints.
35740 * config/mips/predicates.md (movep_src_register): New predicate.
35741 (movep_src_operand): New predicate.
35742 (non_volatile_mem_operand): New predicate.
35743 * config/mips/mips.md (multimem): New type.
35744 (length): Differentiate between 17-bit and 18-bit branch offsets.
35745 (MOVEP1, MOVEP2): New mode iterator.
35746 (mov_<load>l): Use ZC constraint.
35747 (mov_<load>r): Likewise.
35748 (mov_<store>l): Likewise.
35749 (mov_<store>r): Likewise.
35750 (*branch_equality<mode>_inverted): Add microMIPS support.
35751 (*branch_equality<mode>): Likewise.
35752 (*jump_absolute): Likewise.
35753 (indirect_jump_<mode>): Likewise.
35754 (tablejump_<mode>): Likewise.
35755 (<optab>_internal): Likewise.
35756 (sibcall_internal): Likewise.
35757 (sibcall_value_internal): Likewise.
35758 (prefetch): Use constraint ZD.
35759 * config/mips/mips.opt (minterlink-compressed): New option.
35760 (minterlink-mips16): Now an alias for minterlink-compressed.
35761 (mmicromips): New option.
35762 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35763 (compare_and_swap_12): Likewise.
35764 (sync_add<mode>): Likewise.
35765 (sync_<optab>_12): Likewise.
35766 (sync_old_<optab>_12): Likewise.
35767 (sync_new_<optab>_12): Likewise.
35768 (sync_nand_12): Likewise.
35769 (sync_old_nand_12): Likewise.
35770 (sync_new_nand_12): Likewise.
35771 (sync_sub<mode>): Likewise.
35772 (sync_old_add<mode>): Likewise.
35773 (sync_old_sub<mode>): Likewise.
35774 (sync_new_add<mode>): Likewise.
35775 (sync_new_sub<mode>): Likewise.
35776 (sync_<optab><mode>): Likewise.
35777 (sync_old_<optab><mode>): Likewise.
35778 (sync_new_<optab><mode>): Likewise.
35779 (sync_nand<mode>): Likewise.
35780 (sync_old_nand<mode>): Likewise.
35781 (sync_new_nand<mode>): Likewise.
35782 (sync_lock_test_and_set<mode>): Likewise.
35783 (test_and_set_12): Likewise.
35784 (atomic_compare_and_swap<mode>): Likewise.
35785 (atomic_exchange<mode>_llsc): Likewise.
35786 (atomic_fetch_add<mode>_llsc): Likewise.
35787 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35788 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35789 (umips_save_restore_pattern_p): Likewise.
35790 (umips_load_store_pair_p): Likewise.
35791 (umips_output_load_store_pair): Likewise.
35792 (umips_movep_target_p): Likewise.
35793 (umips_12bit_offset_address_p): Likewise.
35794 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35795 (mips_base_mips16): Rename this...
35796 (mips_base_compression_flags): ...to this. Update all uses.
35797 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35798 (mips_mips16_decl_p): Delete.
35799 (mips_nomips16_decl_p): Delete.
35800 (mips_get_compress_on_flags): New function.
35801 (mips_get_compress_off_flags): New function.
35802 (mips_get_compress_mode): New function.
35803 (mips_get_compress_on_name): New function.
35804 (mips_get_compress_off_name): New function.
35805 (mips_insert_attributes): Support multiple compression types.
35806 (mips_merge_decl_attributes): Likewise.
35807 (umips_12bit_offset_address_p): New function.
35808 (mips_start_function_definition): Emit .set micromips directive.
35809 (mips_call_may_need_jalx_p): New function.
35810 (mips_function_ok_for_sibcall): Add microMIPS support.
35811 (mips_print_operand_punctuation): Support short delay slots and
35813 (umips_swm_mask, umips_swm_encoding): New.
35814 (umips_build_save_restore): New function.
35815 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35816 (was_mips16_p): Remove.
35817 (old_compression_mode): New.
35818 (mips_set_compression_mode): New function.
35819 (mips_set_current_function): Add microMIPS support.
35820 (mips_option_override): Likewise.
35821 (umips_save_restore_pattern_p): New function.
35822 (umips_output_save_restore): New function.
35823 (umips_load_store_pair_p_1): New function.
35824 (umips_load_store_pair_p): New function.
35825 (umips_output_load_store_pair_1): New function.
35826 (umips_output_load_store_pair): New function.
35827 (umips_movep_target_p) New function.
35828 (mips_prepare_pch_save): Add microMIPS support.
35829 * config/mips/mips.h (TARGET_COMPRESSION): New.
35830 (TARGET_CPU_CPP_BUILTINS): Update macro
35831 to use new compression flags and to support microMIPS.
35832 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35833 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35834 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35835 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35836 (ASM_SPEC): Support mmicromips and mno-micromips.
35837 (M16STORE_REG_P): New macro.
35838 (MIPS_CALL): Support TARGET_MICROMIPS.
35839 (MICROMIPS_J): New macro.
35840 (mips_base_mips16): Rename this...
35841 (mips_base_compression_flags): ...to this.
35842 (UMIPS_12BIT_OFFSET_P): New macro.
35843 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35844 (MULTILIB_DIRNAMES): Likewise.
35846 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35849 * target-globals.c (save_target_globals): For init_reg_sets and
35850 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35852 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
35854 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
35855 * config/aarch64/t-aarch64
35856 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
35858 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
35860 PR inline-asm/56148
35861 * lra-constraints.c (process_alt_operands): Reload operand
35862 conflicting with earlier clobber only if no more other conflicting
35865 2013-02-22 Jakub Jelinek <jakub@redhat.com>
35868 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
35869 if not linking a shared library.
35871 2013-02-22 Seth LaForge <sethml@google.com>
35873 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
35875 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
35877 * config/arm/arm.md (split for extendsidi): Update condition.
35878 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
35879 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
35880 (qhs_zextenddi_cstr): Likewise.
35882 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35884 PR middle-end/56420
35885 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
35886 avoid signed wrapping.
35887 (expand_mult): Handle properly multiplication by
35888 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
35889 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
35890 in the compiler if coeff is HOST_WIDE_INT_MIN.
35891 (expand_divmod): Don't make ext_op1 static, change it's type to
35892 uhwi. Avoid undefined behavior in -INTVAL (op1).
35894 PR rtl-optimization/50339
35895 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
35897 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
35898 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
35899 into splitting_ashiftrt field.
35900 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
35902 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
35905 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
35907 PR middle-end/56108
35908 * trans-mem.c (execute_tm_mark): Do not expand transactions that
35909 are sure to go irrevocable.
35911 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
35913 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
35914 scalars are valid operands.
35916 2013-02-21 Martin Jambor <mjambor@suse.cz>
35918 PR tree-optimization/56310
35919 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
35920 only matching indices and non-negative final offsets.
35921 (intersect_aggregates_with_edge): Pass src_idx to
35922 agg_replacements_to_vector. Pass src_idx insstead of index to
35923 intersect_with_agg_replacements.
35925 2013-02-21 Martin Jambor <mjambor@suse.cz>
35927 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
35928 instead of hard-wired defaults.
35930 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
35932 * doc/invoke.texi (MIPS Options): Update documentation of the
35933 floating-point multiply-accumulate instruction restrictions.
35935 2013-02-21 Kostya Serebryany <kcc@google.com>
35937 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
35938 asan_shadow_offset on x86_64 linux.
35940 2013-02-21 Richard Biener <rguenther@suse.de>
35942 PR tree-optimization/56415
35944 2013-02-11 Richard Biener <rguenther@suse.de>
35946 PR tree-optimization/56273
35947 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35950 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35953 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
35956 PR inline-asm/56405
35957 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
35958 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
35960 2013-02-20 Jan Hubicka <jh@suse.cz>
35962 PR tree-optimization/56265
35963 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
35964 when target is referenced for first time.
35966 2013-02-20 Richard Biener <rguenther@suse.de>
35968 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
35969 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
35970 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
35971 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
35972 not return anything.
35973 (rename_ssa_copies): Do not remove unused locals.
35974 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
35975 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
35976 * passes.c (execute_function_todo): Do not schedule unused locals
35977 removal if cleanup_tree_cfg did something.
35978 * tree-ssa-live.c (remove_unused_locals): Dump statistics
35979 about the number of removed locals.
35981 2013-02-20 Richard Biener <rguenther@suse.de>
35983 PR tree-optimization/56398
35984 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
35986 2013-02-20 Martin Jambor <mjambor@suse.cz>
35988 PR tree-optimization/55334
35989 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
35990 restricted pointers to arrays.
35992 2013-02-20 Richard Biener <rguenther@suse.de>
35993 Jakub Jelinek <jakub@redhat.com>
35995 PR tree-optimization/56396
35996 * tree-ssa-ccp.c (n_const_val): New static variable.
35997 (get_value): Return NULL for SSA names we don't have a lattice
35999 (ccp_initialize): Initialize n_const_val.
36000 * tree-ssa-copy.c (n_copy_of): New static variable.
36001 (init_copy_prop): Initialize n_copy_of.
36002 (get_value): Return NULL_TREE for SSA names we don't have a
36005 2013-02-20 Martin Jambor <mjambor@suse.cz>
36007 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36009 2013-02-20 Richard Biener <rguenther@suse.de>
36011 * genpreds.c (write_lookup_constraint): Do not compare first
36012 letter of the constraint again.
36014 2013-02-20 Richard Biener <rguenther@suse.de>
36016 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36018 (get_use_iv_cost): Terminate hashtable walk when coming across
36021 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36023 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36024 reassociation for avx2 targets.
36026 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36028 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36029 Add version check for v8.10.a to enable microblaze_has_clz
36030 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36031 version and TARGET_PATTERN_COMPARE check
36032 * config/microblaze/microblaze.md: New clzsi2 instruction
36034 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36036 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36037 function before branching.
36039 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36041 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36043 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36045 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36047 PR middle-end/55889
36048 * sel-sched.c: Include ira.h.
36049 (implicit_clobber_conflict_p): New function.
36050 (moveup_expr): Use it.
36051 * Makefile.in (sel-sched.o): Depend on ira.h.
36053 2013-02-19 Richard Biener <rguenther@suse.de>
36055 PR tree-optimization/56384
36056 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36057 (vn_hash_type): Split out from ...
36058 (vn_hash_constant_with_type): ... here.
36059 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36060 (vn_phi_eq): Compare types from vn_phi_s structure.
36061 (vn_phi_lookup): Populate vn_phi_s type.
36062 (vn_phi_insert): Likewise.
36064 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36066 PR tree-optimization/56350
36067 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36068 if haven't found reduction or nested cycle operand, rather than
36069 asserting we must find it.
36071 PR tree-optimization/56381
36072 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36075 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36076 Jakub Jelinek <jakub@redhat.com>
36079 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36080 (swap_optab_enable): Same.
36081 (init_all_optabs): Use argument instead of global.
36082 * tree.h (struct tree_optimization_option): New field target_optabs.
36083 * expr.h (init_all_optabs): Add argument to prototype.
36084 (TREE_OPTIMIZATION_OPTABS): New.
36085 (save_optabs_if_changed): Protoize.
36086 * optabs.h: Declare this_fn_optabs.
36087 * optabs.c (save_optabs_if_changed): New.
36088 Declare this_fn_optabs.
36089 (init_optabs): Add argument to init_all_optabs() call.
36090 * function.c (invoke_set_current_function_hook): Handle per
36092 * function.h (struct function): New field optabs.
36093 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36094 optimization_current_node has changed.
36095 * target-globals.h (save_target_globals_default_opts): Protoize.
36096 * target-globals.c (save_target_globals_default_opts): New.
36098 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36101 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36102 registers %fr12 and %fr12R as call used.
36105 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36106 and HImode, require all displacements to be an integer multiple of
36108 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36109 only allow QImode and HImode when reload is in progress and strict is
36110 true. Likewise for symbolic addresses. Use base14_operand to check
36111 displacements in REG+BASE addresses.
36113 2013-02-18 Richard Biener <rguenther@suse.de>
36115 PR tree-optimization/56366
36116 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36117 handle sign-conversion of outer-loop initial induction value.
36119 2013-02-18 Richard Biener <rguenther@suse.de>
36121 PR middle-end/56349
36122 * cfghooks.c (merge_blocks): If we merge a latch into another
36123 block adjust references to it.
36124 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36125 (verify_loop_structure): Verify that a recorded latch is in fact
36128 2013-02-18 Richard Biener <rguenther@suse.de>
36130 PR tree-optimization/56321
36131 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36132 order SSA name release and virtual operand unlinking.
36134 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36136 * config/microblaze/microblaze.md (save_stack_block): Define.
36137 (restore_stack_block): Likewise.
36139 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36141 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36142 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36143 * config/microblaze/microblaze.c (microblaze_option_override):
36144 Bail out early for PIC modes when target does not support PIC.
36146 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36148 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36149 Replace with a microblaze version.
36150 (microblaze_trampoline_init): Adapt for microblaze.
36151 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36154 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36155 Dodji Seketeli <dodji@redhat.com>
36158 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36159 (instrument_mem_region_access): Do not forget to always put
36160 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36161 0) statement, even for cases where either 'base' or 'base + len'
36162 are not instrumented -- because they have been previously
36163 instrumented. Simplify the logic by putting all the statements
36164 instrument 'base + len' inside a sequence, and then insert that
36165 sequence right before the current insertion point. Then, to
36166 instrument 'base + len', just get an iterator on that statement.
36167 And do not forget to update the pointer to iterator the function
36168 received as argument.
36170 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36172 PR rtl-optimization/56348
36173 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36175 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36177 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36178 (clean_graph_dump_file): Pass base to start_graph_dump.
36180 2013-02-14 Richard Henderson <rth@redhat.com>
36183 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36185 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36187 * collect2-aix.h: Define F_LOADONLY.
36189 2013-02-14 Richard Biener <rguenther@suse.de>
36192 * varasm.c (output_constant_def_1): Get the decl representing
36193 the constant as argument.
36194 (output_constant_def): Wrap output_constant_def_1.
36195 (make_decl_rtl): Use output_constant_def_1 with the decl
36196 representing the constant.
36197 (build_constant_desc): Optionally re-use a decl already
36198 representing the constant.
36199 (tree_output_constant_def): Adjust.
36201 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36204 * asan.c (instrument_builtin_call): Really put the length of the
36205 second source argument into src1_len.
36207 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36209 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36210 argument. If it is false, don't create edge from then_bb to
36212 (insert_if_then_before_iter): Pass true to it.
36213 (build_check_stmt): Pass false to it.
36214 (transform_statements): Flush hash table only on extended basic
36215 block boundaries, rather than at the beginning of every bb.
36216 Don't flush hash table on nonfreeing_call_p calls.
36217 * tree-flow.h (nonfreeing_call_p): New prototype.
36218 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36220 2013-02-13 David S. Miller <davem@davemloft.net>
36222 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36224 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36227 * ira.c (max_regno_before_ira): Move from ...
36229 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36232 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36234 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36236 2013-02-13 Richard Biener <rguenther@suse.de>
36239 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36240 globals in MEM_REFs.
36242 2013-02-13 Richard Biener <rguenther@suse.de>
36244 * loop-init.c (loop_optimizer_init): Clear loop state when
36245 re-initializing preserved loops.
36246 * loop-unswitch.c (unswitch_single_loop): Return whether
36247 we unswitched the loop. Do not verify loop state here.
36248 (unswitch_loops): When we unswitched a loop discover new loops.
36250 2013-02-13 Kostya Serebryany <kcc@google.com>
36252 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36254 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36256 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36258 Avoid instrumenting duplicated memory access in the same basic block
36259 * Makefile.in (asan.o): Add new dependency on hash-table.h
36260 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36261 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36262 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36263 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36264 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36265 (get_mem_ref_of_assignment): New functions.
36266 (get_mem_refs_of_builtin_call): Extract from
36267 instrument_builtin_call and tweak a little bit to make it fit with
36269 (instrument_builtin_call): Use the new
36270 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36271 of is_gimple_builtin_call.
36272 (instrument_derefs, instrument_mem_region_access): Insert the
36273 instrumented memory reference into the hash table.
36274 (maybe_instrument_assignment): Renamed instrument_assignment into
36275 this, and change it to advance the iterator when instrumentation
36276 actually happened and return true in that case. This makes it
36277 homogeneous with maybe_instrument_assignment, and thus give a
36278 chance to callers to be more 'regular'.
36279 (transform_statements): Clear the memory reference hash table
36280 whenever we enter a new BB, when we cross a function call, or when
36281 we are done transforming statements. Use
36282 maybe_instrument_assignment instead of instrumentation. No more
36283 need to special case maybe_instrument_assignment and advance the
36284 iterator after calling it; it's now handled just like
36285 maybe_instrument_call. Update comment.
36287 2013-02-13 Richard Biener <rguenther@suse.de>
36289 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36290 Fix loop discovery code.
36292 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36294 PR inline-asm/56148
36295 * lra-constraints.c (process_alt_operands): Match early clobber
36296 operand with itself. Check conflicts with earlyclobber only if
36297 the operand is not reloaded. Prefer to reload conflicting operand
36298 if earlyclobber and matching operands are the same.
36300 2013-02-12 Richard Biener <rguenther@suse.de>
36303 * lto-streamer-out.c (write_symbol): Do not output symbols
36304 for hard register variables.
36306 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36309 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36310 (umulsidi3_insn, mulsidi3_insn): New insns.
36312 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36314 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36315 (struct tune_params): Add vec_costs field.
36316 * config/arm/arm.c (arm_builtin_vectorization_cost)
36317 (arm_add_stmt_cost): New functions.
36318 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36319 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36320 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36321 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36322 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36323 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36324 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36326 2013-02-12 Richard Biener <rguenther@suse.de>
36329 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36330 decls again if possible.
36332 2013-02-12 Richard Biener <rguenther@suse.de>
36334 PR middle-end/56288
36335 * tree-ssa.c (verify_ssa_name): Fix check, move
36336 SSA_NAME_IN_FREE_LIST check up.
36338 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36339 Steven Bosscher <steven@gcc.gnu.org>
36341 PR rtl-optimization/56151
36342 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36343 equal to op0 or op1, and last_insn pattern is CODE operation
36344 with MEM dest and one of the operands matches that MEM.
36346 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36348 * doc/extend.texi: Document Function Multiversioning and "default"
36349 parameter string to target attribute.
36350 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36351 target attribute parameter is "default".
36352 (ix86_compare_version_priority): Remove checks for target attribute.
36353 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36354 Remove check for target attribute equal to NULL. Add assert.
36355 (ix86_generate_version_dispatcher_body): Change error to sorry.
36357 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36358 Jack Howarth <howarth@bromo.med.uc.edu>
36359 Patrick Marlier <patrick.marlier@gmail.com>
36362 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36363 define ENDFILE_SPEC as TM_DESTRUCTOR.
36364 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36366 2013-02-11 Alexander Potapenko <glider@google.com>
36367 Jack Howarth <howarth@bromo.med.uc.edu>
36368 Jakub Jelinek <jakub@redhat.com>
36371 * config/darwin.c (cdtor_record): Rename ctor_record.
36372 (sort_cdtor_records): Rename sort_ctor_records.
36373 (finalize_dtors): New routine to sort destructors by
36374 priority before use in assemble_integer.
36375 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36377 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36379 PR rtl-optimization/56275
36380 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36381 offset is non-negative and less than cmode size before
36382 calling simplify_subreg.
36384 2013-02-11 Richard Biener <rguenther@suse.de>
36386 PR tree-optimization/56264
36387 * cfgloop.h (fix_loop_structure): Adjust prototype.
36388 * loop-init.c (fix_loop_structure): Return the number of
36389 newly discovered loops.
36390 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36391 are discovered, do a full loop-closed SSA rewrite.
36393 2013-02-11 Richard Biener <rguenther@suse.de>
36395 PR tree-optimization/56273
36396 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36398 (check_array_ref): Fix missing newline in dumps.
36399 (search_for_addr_array): Likewise.
36401 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36403 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36405 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36408 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36410 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36412 PR rtl-optimization/56246
36413 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36415 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36416 constraints are satisfied.
36418 2013-02-08 Jeff Law <law@redhat.com>
36421 * emit-rtl.c (reg_is_parm_p): New function.
36422 * regs.h (reg_is_parm_p): New prototype.
36423 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36424 callee-clobbered registers.
36426 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36429 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36430 If there is no implicit builtin declaration, just return NULL.
36432 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36434 * config/i386/sse.md (FMAMODEM): New mode iterator.
36435 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36436 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36438 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36440 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36441 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36442 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36444 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36446 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36447 (microblaze*-*-elf): Likewise.
36448 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36450 * config/microblaze/microblaze-c.c: Add builtin defines for
36451 _LITTLE_ENDIAN and _BIG_ENDIAN.
36452 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36453 add to TARGET_DEFAULT flags.
36454 Expand ASM_SPEC and LINK_SPEC.
36455 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36456 * config/microblaze/microblaze.md: Update extendsidi2 and
36457 movdi_internal instructions to use low-order / high-order reg
36459 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36460 options and inversemask / mask of LITTLE_ENDIAN.
36461 * config/microblaze/t-microblaze: Expand multilib options to
36462 include mlittle-endian (le) and update exceptions patterns.
36464 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36466 PR rtl-optimization/56195
36467 * lra-constraints.c (get_reload_reg): Don't reuse regs
36468 if they have smaller mode than requested, if they have
36469 wider mode than requested, try to return a SUBREG.
36471 PR tree-optimization/56250
36472 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36473 if type is unsigned and code isn't MULT_EXPR.
36475 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36477 PR tree-optimization/56064
36478 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36479 bits according to mode.
36480 * fixed-value.h (fixed_from_double_int)
36481 (const_fixed_from_double_int): Adjust comments.
36483 2013-02-08 Richard Biener <rguenther@suse.de>
36486 * lto-streamer.h (struct data_in): Remove current_file, current_line
36487 and current_col members.
36488 * lto-streamer-out.c (lto_output_location): Stream changed bits
36489 en-block for efficiency.
36490 * lto-streamer-in.c (clear_line_info): Remove.
36491 (lto_input_location): Cache current file, line and column
36492 globally via local statics. Read changed bits en-block.
36493 (input_function): Do not call clear_line_info.
36494 (lto_read_body): Likewise.
36495 (lto_input_toplevel_asms): Likewise.
36497 2013-02-08 Michael Matz <matz@suse.de>
36499 PR tree-optimization/52448
36500 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36501 (nt_call_phase): New static.
36502 (add_or_mark_expr): Only mark accesses with newer phase than any
36504 (nonfreeing_call_p): New.
36505 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36506 (nt_fini_block): Keep blocks marked as visited.
36507 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36509 2013-02-08 Richard Biener <rguenther@suse.de>
36511 * ira.c (ira): Free broken dominator information.
36513 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36515 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36517 2013-02-08 Marek Polacek <polacek@redhat.com>
36519 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36521 2013-02-08 Richard Biener <rguenther@suse.de>
36523 PR middle-end/56181
36524 * cfgloop.h (flow_loops_find): Adjust.
36525 (bb_loop_header_p): Declare.
36526 * cfgloop.c (bb_loop_header_p): New function split out from ...
36527 (flow_loops_find): ... here. Adjust function signature,
36528 support incremental loop structure update.
36529 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36530 * cfgloopmanip.c (fix_loop_structure): Move ...
36531 * loop-init.c (fix_loop_structure): ... here.
36532 (apply_loop_flags): Split out from ...
36533 (loop_optimizer_init): ... here.
36534 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36535 in incremental mode, only remove dead loops here.
36537 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36540 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36541 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36542 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36543 (*round<mode>3.libgcc): New insns for fixed-modes.
36544 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36545 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36546 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36547 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36548 implementations. Define to __builtin_avr_absFX,
36549 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36550 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36551 __builtin_avr_countlsFX, respectively.
36552 * config/avr/avr-c.c (target.h): Include it.
36553 (enum avr_builtin_id): New enum.
36554 (avr_resolve_overloaded_builtin): New static function.
36555 (avr_register_target_pragmas): Use it to set
36556 targetm.resolve_overloaded_builtin.
36557 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36558 tree nodes used by DEF_BUILTIN.
36559 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36560 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36561 <AVR_BUILTIN_xxBITS>: Same.
36563 2013-02-08 Richard Biener <rguenther@suse.de>
36565 * cfgloop.c (verify_loop_structure): Properly handle
36566 a loop exiting to another loop header.
36567 * ira-int.h (ira_loops): Remove.
36568 * ira.c (ira_loops): Remove.
36569 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36570 (do_reload): Use loop_optimizer_finalize.
36571 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36572 number_of_loops to access the loop tree.
36573 (more_one_region_p): Likewise.
36574 (finish_loop_tree_nodes): Likewise.
36575 (rebuild_regno_allocno_maps): Likewise.
36576 (mark_loops_for_removal): Likewise.
36577 (mark_all_loops_for_removal): Likewise.
36578 (remove_unnecessary_regions): Likewise.
36579 (ira_build): Likewise.
36580 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36582 2013-02-08 Richard Biener <rguenther@suse.de>
36584 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36585 * ipa-pure-const.c (analyze_function): Avoid calling
36586 mark_irreducible_loops twice.
36587 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36589 2013-02-07 David S. Miller <davem@davemloft.net>
36591 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36593 * var-tracking.c (vt_add_function_parameter): Test the presence of
36594 HAVE_window_save properly and do not remap argument registers when
36595 we have a leaf function.
36597 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36600 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36602 * config/i386/i386.c (ix86_print_operand): Ditto.
36604 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36606 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36608 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36610 PR rtl-optimization/56225
36611 * lra-constraints.c (process_alt_operands): Check that reload hard
36612 reg can hold value for strict_low_part.
36614 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36617 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36618 dwarf2out_end_function.
36619 (in_first_function_p, maybe_at_text_label_p,
36620 first_loclabel_num_not_at_text_label): New variables.
36621 (dwarf2out_var_location): In the first function find out
36622 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36623 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36626 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36628 PR rtl-optimization/56178
36629 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36630 SUBREG of a register. Tidy up related block of code.
36631 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36632 note if the source is a register or a SUBREG of a register.
36634 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36637 * config/rs6000/rs6000.md (ptrm): New mode attr.
36638 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36639 call_value_indirect_aix<pttrsize>,
36640 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36643 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36645 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36646 if -bnortl. Convert to strcmp and strncmp.
36648 2013-02-07 Alan Modra <amodra@gmail.com>
36651 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36652 addresses won't wrap when offsetting.
36653 (rs6000_secondary_reload): Provide secondary reloads needed for
36654 wrapping LO_SUM addresses.
36656 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36658 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36659 MACH, just __MACH__.
36661 2013-02-06 Richard Biener <rguenther@suse.de>
36663 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36664 instead of calling fix_loop_structure.
36666 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36668 PR middle-end/56217
36669 * omp-low.c (use_pointer_for_field): Return false if
36670 lower_send_shared_vars doesn't generate any copy-out code.
36672 2013-02-06 Tom de Vries <tom@codesourcery.com>
36674 PR rtl-optimization/56131
36675 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36676 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36677 of the label is NULL. Add comment.
36679 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36681 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36684 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36685 (STATIC_LIBTSAN_LIBS): Likewise.
36686 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36687 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36688 is defined, don't add anything else beyond that.
36689 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36690 (LINK_COMMAND_SPEC): Use them.
36692 PR tree-optimization/56205
36693 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36694 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36695 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36697 2013-02-05 Richard Biener <rguenther@suse.de>
36699 PR tree-optimization/53342
36700 PR tree-optimization/53185
36701 * tree-vectorizer.h (vect_check_strided_load): Remove.
36702 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36703 not disallow peeling for vectorized strided loads.
36704 (vect_check_strided_load): Make static and simplify.
36705 (vect_analyze_data_refs): Adjust.
36706 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36707 correctly when vectorizing strided loads.
36709 2013-02-05 Richard Biener <rguenther@suse.de>
36711 * doc/install.texi: Refer to ISL, not PPL.
36713 2013-02-05 Jan Hubicka <jh@suse.cz>
36715 PR tree-optimization/55789
36716 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36718 2013-02-05 Jan Hubicka <jh@suse.cz>
36720 PR tree-optimization/55789
36721 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36722 the dead call anyway.
36724 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36727 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36729 2013-02-04 Alexander Potapenko <glider@google.com>
36730 Jack Howarth <howarth@bromo.med.uc.edu>
36731 Jakub Jelinek <jakub@redhat.com>
36734 * config/darwin.c (sort_ctor_records): Stabilized qsort
36735 on constructor priority by using original position.
36736 (finalize_ctors): New routine to sort constructors by
36737 priority before use in assemble_integer.
36738 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36740 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36743 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36744 about visibility on artificial decls.
36745 * config/sol2.c (solaris_assemble_visibility): Likewise.
36747 2013-02-04 Kai Tietz <ktietz@redhat.com>
36750 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36751 argument and improve checking of return-argument types for 16-byte
36753 (ix86_function_value_1): Add additional valtype argument on call
36754 of function_value_64.
36755 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36756 handling infunction_value_64 function.
36758 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36760 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36762 2013-02-04 Richard Biener <rguenther@suse.de>
36764 PR tree-optimization/56188
36765 * tree-ssa-structalias.c (label_visit): Consider case with
36766 initially non-empty points-to set.
36767 (perform_var_substitution): Dump node mapping and clean up.
36769 2013-02-04 Richard Guenther <rguenther@suse.de>
36772 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36773 node prevail as last resort.
36774 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36775 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36777 2013-02-04 Richard Biener <rguenther@suse.de>
36779 PR tree-optimization/56113
36780 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36782 (equiv_class_lookup_or_add): ... this.
36783 (label_visit): Adjust and fix error in previous patch.
36784 (perform_var_substitution): Adjust.
36786 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36788 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36789 * config/sh/sh4-300.md: Likewise.
36790 * config/sh/sh4a.md: Likewise.
36791 * config/sh/constraints.md: Likewise.
36792 * config/sh/sh.md: Likewise.
36793 * config/sh/netbsd-elf.h: Likewise.
36794 * config/sh/predicates.md: Likewise.
36795 * config/sh/sh-protos.h: Likewise.
36796 * config/sh/ushmedia.h: Likewise.
36797 * config/sh/linux.h: Likewise.
36798 * config/sh/sh.c: Likewise.
36799 * config/sh/superh.h: Likewise.
36800 * config/sh/elf.h: Likewise.
36801 * config/sh/sh4.md: Likewise.
36802 * config/sh/sh.h: Likewise.
36804 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36806 * config/pa/constraints.md: Adjust unused letters. Change "T"
36807 constraint to match_test floating_point_store_memory_operand().
36808 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36809 (base14_operand): New.
36810 (floating_point_store_memory_operand): New.
36811 (integer_store_memory_operand): Revise to use base14_operand and
36812 reg_plus_base_memory_operand.
36813 (move_dest_operand): Allow symbolic_memory_operands.
36814 (symbolic_memory_operand): Check for LO_SOM.
36815 (symbolic_operand): Change default case to break.
36816 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36817 CONST_DOUBLE values to be reloaded by putting them into memory when
36818 the destination is a floating point register.
36819 (movdf): Remove code to handle CONST_DOUBLE.
36821 (reload_indf_r1): New.
36822 (reload_insf_r1): New.
36823 Consistently use "Q" and "T" constraints with integer and floating
36824 point move instructions, respectively.
36825 (movdi): Remove FAIL.
36826 Change predicate for source operand unamed DImode move from
36827 general_operand to move_src_operand.
36828 (umulsidi3): Change predicate for destination operand to
36830 Likewise for similar unamed patterns.
36831 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36832 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36833 (hppa_legitimize_address): Simplify mask calculation.
36834 (pa_emit_move_sequence): Revised handling of secondary reloads from
36835 REG+D addresses for floating point loads and stores. Directly handle
36836 loading CONST0_RTX (mode) to a floating point register.
36837 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36838 to floating point registers. Don't restrict secondary reloads to
36839 floating point registers to integer modes. Revise some comments and
36841 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36842 (pa_legitimate_address_p): New.
36843 (pa_legitimize_reload_address): New.
36844 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36845 (STRICT_REG_OK_FOR_BASE_P): New.
36846 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36847 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36849 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36850 Andrew Dixie <andrewd@gentrack.com>
36852 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
36855 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
36857 * expmed.c (extract_bit_field_1): Pass the full width of the
36858 structure to get_best_reg_extraction_insn.
36860 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36863 * configure.ac (use_cxa_atexit): Add AIX.
36864 * configure: Regenerate.
36866 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
36868 2013-02-01 Jakub Jelinek <jakub@redhat.com>
36871 * final.c (need_profile_function): New variable.
36872 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
36873 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
36874 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
36875 notes, targetm.asm_out.function_prologue doesn't emit anything,
36876 HAVE_prologue and profiler should be emitted before prologue,
36877 set need_profile_function instead of emitting it.
36878 (final_scan_insn): If need_profile_function, emit
36879 profile_function on the first NOTE_INSN_BASIC_BLOCK or
36880 NOTE_INSN_FUNCTION_BEG note.
36882 2013-02-01 Richard Henderson <rth@redhat.com>
36884 * config/rs6000/rs6000.md (smulditi3): New.
36887 * config/alpha/alpha.md (umulditi3): New.
36889 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36891 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
36892 (ASM_OUTPUT_ALIGNED_LOCAL): New.
36894 2013-02-01 Richard Biener <rguenther@suse.de>
36896 PR tree-optimization/56113
36897 * tree-ssa-structalias.c (label_visit): Reduce work for
36898 single-predecessor nodes.
36900 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
36902 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
36903 range isn't testing for zero.
36905 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
36907 PR middle-end/56113
36908 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
36910 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
36911 Nick Clifton <nickc@redhat.com>
36913 * config/v850/constraints.md (Q): Define as a memory constraint.
36914 * config/v850/predicates.md (label_ref_operand): New predicate.
36915 (e3v5_shift_operand): New predicate.
36916 (ior_operator): New predicate.
36917 * config/v850/t-v850: Add e3v5 multilib.
36918 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
36919 (v850_gen_movdi): Prototype.
36920 * config/v850/v850.c: Add support for e3v5 architecture.
36921 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
36923 (construct_save_jarl): Add e3v5 long JARL support.
36924 (v850_adjust_insn_length): New function. Adjust length of call
36925 insns when using e3v5 instructions.
36926 (v850_gen_movdi): New function: Generate instructions to move a
36928 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
36929 (CPP_SPEC): Define __v850e3v5__ as appropriate.
36930 (TARGET_USE_FPU): Enable for e3v5.
36931 (CONST_OK_FOR_W): New macro.
36932 (ADJUST_INSN_LENGTH): Define.
36933 * config/v850/v850.md (UNSPEC_LOOP): Define.
36934 (attr cpu): Add v850e3v5.
36935 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
36936 (movdi): New pattern.
36937 (movdi_internal): New pattern.
36938 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
36939 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
36940 (cstoresf4): Likewise.
36941 (cstoredf4): Likewise.
36942 (insv): New pattern.
36943 (rotlso3_a): New pattern.
36944 (rotlsi3_b): New pattern
36945 (rotlsi3_v850e3v5): New pattern.
36946 (doloop_begin): New pattern.
36947 (fix_loop_counter): New pattern.
36948 (doloop_end): New pattern.
36949 (branch_normal): Add e3v5 long branch support.
36950 (branch_invert): Likewise.
36951 (branch_z_normal): Likewise.
36952 (branch_z_invert): Likewise.
36953 (branch_nz_normal): Likewise.
36954 (branch_nz_invert): Likewise.
36955 (call_internal_short): Add e3v5 register-indirect JARL support.
36956 (call_internal_long): Likewise.
36957 (call_value_internal_short): Likewise.
36958 (call_value_internal_long): Likewise.
36959 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
36960 (mloop): New option.
36961 * config.gcc: Add support for configuring v840e3v5 target.
36962 * doc/invoke.texi: Document new v850 specific command line options.
36964 2013-01-31 Paul Koning <ni1d@arrl.net>
36968 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
36969 children if parent is a class.
36970 (prune_unused_types_prune): Don't add DW_AT_declaration.
36972 2013-01-31 Richard Biener <rguenther@suse.de>
36974 PR tree-optimization/56157
36975 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
36976 match up operand with SLP child.
36978 2013-01-31 Jason Merrill <jason@redhat.com>
36981 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
36982 parameters the first time.
36983 (gen_scheduled_generic_parms_dies): Check completeness here.
36985 2013-01-31 Richard Biener <rguenther@suse.de>
36987 PR middle-end/53073
36988 * common.opt (faggressive-loop-optimizations): New flag,
36989 enabled by default.
36990 * doc/invoke.texi (faggressive-loop-optimizations): Document.
36991 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
36992 infer_loop_bounds_from_undefined by it.
36994 2013-01-31 Richard Biener <rguenther@suse.de>
36996 PR tree-optimization/56150
36997 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
36998 visit virtual operands.
36999 (find_uses_to_rename_bb): Likewise.
37001 2013-01-31 Richard Biener <rguenther@suse.de>
37003 PR tree-optimization/56150
37004 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37005 mixed store non-store stmts.
37007 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37010 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37011 LIBASAN_EARLY_SPEC is defined.
37012 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37013 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37015 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37018 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37019 invalid args instead of ICEing on it.
37020 (ix86_valid_target_attribute_tree): Return error_mark_node if
37021 ix86_valid_target_attribute_inner_p failed.
37022 (ix86_valid_target_attribute_p): Return false only if
37023 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37024 target("default") attribute.
37025 (sorted_attr_string): Change argument from const char * to tree,
37026 merge in all target attribute arguments rather than just one.
37027 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37028 instead of free. Avoid using strcat.
37029 (ix86_mangle_function_version_assembler_name): Mangle
37030 target("default") as if no target attribute is present. Adjust
37031 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37032 instead of xmalloc and XDELETEVEC instead of free.
37033 (ix86_function_versions): Don't return true if one of the decls
37034 doesn't have target attribute. If they don't and one of the decls
37035 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37036 sorted_attr_string caller. Use XDELETEVEC instead of free.
37037 (ix86_supports_function_versions): Remove.
37038 (make_name): Fix up formatting.
37039 (make_dispatcher_decl): Remove resolver_name and its initialization.
37040 Avoid leaking memory.
37041 (is_function_default_version): Return true if there is
37042 target("default") attribute rather than no target attribute at all.
37043 (make_resolver_func): Avoid leaking memory.
37044 (ix86_generate_version_dispatcher_body): Likewise.
37045 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37046 * target.def (supports_function_versions): Remove.
37047 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37048 * doc/tm.texi: Regenerated.
37050 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37052 PR rtl-optimization/56144
37053 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37054 for values with side effects.
37056 2013-01-30 Richard Biener <rguenther@suse.de>
37058 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37059 (sparseset_pop): Likewise.
37060 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37061 to be able to use quick_push in the worker loop.
37063 2013-01-30 Marek Polacek <polacek@redhat.com>
37065 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37067 2013-01-30 Richard Biener <rguenther@suse.de>
37070 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37072 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37074 PR tree-optimization/56064
37075 * fixed-value.c (fixed_from_double_int): New function.
37076 * fixed-value.h (fixed_from_double_int): New prototype.
37077 (const_fixed_from_double_int): New static inline function.
37078 * fold-const.c (native_interpret_fixed): New static function.
37079 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37080 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37081 (native_encode_fixed): New static function.
37082 (native_encode_expr) <FIXED_CST>: Use it.
37083 (native_interpret_int): Move double_int worker code to...
37084 * double-int.c (double_int::from_buffer): ...this new static method.
37085 * double-int.h (double_int::from_buffer): Prototype it.
37087 2013-01-30 Richard Biener <rguenther@suse.de>
37089 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37090 New pointer-map and obstack.
37091 (init_alias_vars): Allocate pointer-map and obstack.
37092 (delete_points_to_sets): Free them.
37093 (find_what_var_points_to): Cache result.
37094 (find_what_p_points_to): Adjust for changed interface of
37095 find_what_var_points_to.
37096 (compute_points_to_sets): Likewise.
37097 (ipa_pta_execute): Likewise.
37099 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37101 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37102 * configure: Regenerate.
37103 * config.in: Regenerate.
37104 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37105 #nobits/#progbits if supported.
37107 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37110 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37111 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37112 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37114 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37116 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37117 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37119 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37121 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37122 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37124 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37126 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37128 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37129 * config/arm/cortex-a7.md: New bypasses using
37130 arm_mac_accumulator_is_result.
37132 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37134 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37135 (cortex_a7_neon_mla): Likewise.
37136 (cortex_a7_fpfmad): New reservation.
37137 (cortex_a7_fpmacs): Use ffmas and update required units.
37138 (cortex_a7_fpmuld): Update required units and latency.
37139 (cortex_a7_fpmacd): Likewise.
37140 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37141 (cortex_a7_neon). Likewise.
37142 (bypass) Update participating units.
37144 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37146 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37147 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37149 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37150 (vfp_fmul): Use ffmad.
37151 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37152 (cortex_r4_fmacd): Use ffmad.
37153 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37154 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37155 (cortex_a9_fmacd): Use ffmad.
37156 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37157 (cortex_a8_vfp_macd): Use ffmad.
37158 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37159 (cortex_a5_fpmacd): Use ffmad.
37160 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37161 (cortex_a15_vfp_macd): Use ffmad.
37162 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37164 2013-01-29 Jason Merrill <jason@redhat.com>
37167 * varasm.c (default_assemble_visibility): Don't warn about
37168 visibility on artificial decls.
37170 2013-01-29 Richard Biener <rguenther@suse.de>
37172 PR tree-optimization/56113
37173 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37175 (label_visit): Free duplicate bitmaps and record the leader instead.
37176 (perform_var_substitution): Adjust.
37178 2013-01-29 Richard Biener <rguenther@suse.de>
37180 PR tree-optimization/55270
37181 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37182 the CFG, schedule loops for fixup.
37184 2013-01-29 Nick Clifton <nickc@redhat.com>
37186 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37189 2013-01-28 Leif Ekblad <leif@rdos.net>
37191 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37192 * config/i386/i386.h (TARGET_RDOS): New macro.
37193 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37194 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37195 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37196 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37197 DEFAULT_LARGE_SECTION_THRESHOLD.
37198 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37199 * config/i386/rdos.h: New file.
37200 * config/i386/rdos64.h: New file.
37202 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37205 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37208 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37210 PR rtl-optimization/56117
37211 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37212 call cselib_lookup_from_insn on the MEM before calling
37213 add_insn_mem_dependence.
37215 2013-01-28 Richard Biener <rguenther@suse.de>
37217 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37218 to a stmt that didn't have one.
37219 (copy_phis_for_bb): Likewise for PHI arguments.
37220 (copy_debug_stmt): Likewise for debug stmts.
37222 2013-01-28 Richard Biener <rguenther@suse.de>
37224 PR tree-optimization/56034
37225 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37226 (partition_builtin_p): Adjust.
37227 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37228 it is the last partition.
37229 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37230 up the vertex for the definition.
37231 (classify_partition): Classify whether a partition is a
37232 PKIND_REDUCTION, thus has uses outside of the loop.
37233 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37234 Merge all PKIND_REDUCTION partitions into the last partition.
37235 (tree_loop_distribution): Seed partitions from reductions as well.
37237 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37239 PR tree-optimization/56125
37240 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37241 pow(x,c) into sqrt(x) * powi(x, n/2) or
37242 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37243 optimizing for size.
37244 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37245 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37248 PR tree-optimization/56094
37249 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37250 to UNKNOWN_LOCATION while gimplifying expr.
37252 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37255 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37256 operand 0 in movabs insn template for -masm=intel asm alternative.
37257 (*movabs<mode>_2): Ditto for operand 1.
37259 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37262 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37265 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37267 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37270 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37272 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37273 Undef to avoid warning.
37275 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37277 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37278 * configure: Regenerate.
37280 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37282 PR tree-optimization/56098
37283 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37284 for stmts with volatile ops.
37285 (cond_store_replacement): Don't optimize if assign has volatile ops.
37286 (cond_if_else_store_replacement_1): Don't optimize if either
37287 then_assign or else_assign have volatile ops.
37288 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37291 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37293 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37295 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37297 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37298 missing ':' in asm example.
37300 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37302 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37303 entries into lane and laneq entries.
37304 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37305 Remove AdvSIMD scalar modes.
37306 (aarch64_sq<r>dmulh_laneq<mode>): New.
37307 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37309 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37310 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37311 * config/aarch64/iterators.md (VCOND): New.
37314 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37317 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37318 Add NULL LIBNAME argument to existing definitions.
37319 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37320 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37321 * config/avr/avr.c (DEF_BUILTIN): Same.
37322 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37323 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37324 implementation is available (DECL_ASSEMBLER_NAME is set).
37325 (avr_fold_absfx): New static function.
37326 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37327 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37328 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37329 AVR_BUILTIN_ABSLLK.
37330 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37331 (abshk, absk, abslk, absllk): Provide as static inline functions.
37333 2013-01-25 Marek Polacek <polacek@redhat.com>
37335 PR tree-optimization/56035
37336 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37338 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37340 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37341 (*movtf_internal_rex64): Add (!o,C) alternative
37342 (*movxf_internal_rex64): Ditto.
37343 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37345 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37347 * doc/invoke.texi: fix typo.
37348 * doc/objc.texi: fix typo.
37350 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37352 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37353 for the first two alternatives.
37355 2013-01-24 Diego Novillo <dnovillo@google.com>
37357 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37358 (ggc-zone.o): Remove.
37359 * configure.ac: Remove option --with-gc.
37360 * configure: Re-generate.
37361 * doc/install.texi: Remove documentation for --with-gc.
37362 * gengtype.c (write_enum_defn): Remove. Update all users.
37363 (write_Types_process_field): Remove generation of gt_e_* argument.
37364 (output_type_enum): Remove. Update all users.
37365 (write_enum_defn): Remove. Update all users.
37366 (enum alloc_zone): Remove. Update all users.
37367 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37368 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37369 Update all callers.
37370 (struct ptr_data): Remove field TYPE. Update all users.
37371 (gt_pch_note_object): Remove argument TYPE. Update all users.
37372 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37374 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37375 (struct alloc_zone): Remove.
37376 (ggc_internal_alloc_zone_stat): Remove.
37377 (ggc_internal_cleared_alloc_zone_stat): Remove.
37378 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37379 (ggc_pch_count_object): Remove last argument. Update all users.
37380 (ggc_pch_alloc_object): Remove last argument. Update all users.
37381 (struct alloc_zone): Remove.
37382 * ggc-zone.c: Remove.
37383 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37384 (struct alloc_zone): Remove.
37385 (ggc_alloc_typed_stat): Remove.
37386 (ggc_alloc_typed): Remove.
37387 (ggc_splay_alloc): Remove first argument.
37388 (rtl_zone): Remove. Update all users.
37389 (tree_zone): Remove. Update all users.
37390 (tree_id_zone): Remove. Update all users.
37391 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37392 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37393 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37394 * tree-ssanames.c: Remove references to zone allocator in comments.
37396 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37398 * config/avr/avr.c (avr_out_fract): Make register numbers that
37399 might be outside of source operand signed.
37401 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37403 * config/i386/constraints.md (Yf): New constraint.
37404 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37405 of f constraint to conditionaly disable x87 register preferences.
37406 (*movdf_internal): Ditto.
37407 (*movsf_internal): Ditto.
37409 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37411 PR inline-asm/55934
37412 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37413 that have operands with impossible constraints.
37414 Add a FIXME for a speed-up opportunity.
37415 * lra-constraints.c (process_alt_operands): Verify that a class
37416 selected from constraints on asms is valid for the operand mode.
37417 (curr_insn_transform): Remove incorrect comment.
37419 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37421 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37422 TOC operand is a valid symbol ref in the constant pool.
37424 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37426 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37428 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37431 * config/avr/stdfix.h: New file.
37432 * t-avr (stdfix-gcc.h): New rule to build it.
37433 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37435 2013-01-23 Kostya Serebryany <kcc@google.com>
37437 * config/darwin.h: remove dependency on
37438 CoreFoundation (asan on Mac OS).
37440 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37443 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37444 instead of cmpdi_operand for first comparison operand.
37445 Don't assert that comparison operands aren't both constants.
37447 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37449 * doc/install.texi (Downloading the Source): Update references to
37450 downloading separate components.
37452 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37454 * doc/extend.texi (__int128): Improve grammar.
37456 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37459 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37460 alternative to (o,r).
37461 (*movdi_internal_rex64): Remove (!o,n) alternative.
37462 (DImode immediate->memory splitter): Remove.
37463 (DImode immediate->memory peephole2): Remove.
37464 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37465 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37466 alternative to (!o,*r).
37467 (*movtf_internal_sse): New pattern.
37468 (*movxf_internal_rex64): New pattern.
37469 (*movxf_internal): Disable for TARGET_64BIT.
37470 (*movdf_internal_rex64): Remove (!o,F) alternative.
37472 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37474 PR middle-end/56074
37475 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37476 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37477 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37478 stmt locations where LOCATION_LOCUS of the stmt location is
37479 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37482 * config/i386/i386.md (UNSPEC_STOS): New.
37483 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37484 *strsetqi_1): Add UNSPEC_STOS.
37486 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37489 * doc/invoke.texi: Remove left over -Wsynth example.
37491 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37493 PR tree-optimization/56051
37494 * fold-const.c (fold_binary_loc): Don't fold
37495 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37496 a narrowing conversion, or widening conversion from signed
37499 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37501 PR rtl-optimization/56023
37502 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37503 dependent on debug instruction.
37505 2013-01-21 Martin Jambor <mjambor@suse.cz>
37507 PR middle-end/56022
37508 * function.c (allocate_struct_function): Call
37509 invoke_set_current_function_hook earlier.
37511 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37513 * reload1.c (init_reload): Only initialize reload_obstack
37514 during the first call.
37516 2013-01-21 Marek Polacek <polacek@redhat.com>
37518 * cfgloop.c (verify_loop_structure): Fix up grammar.
37520 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37522 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37523 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37525 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37528 * config/arm/marvell-pj4.md: Update copyright year.
37529 Fix up use of alu to alu_reg and simple_alu_imm.
37531 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37533 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37535 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37538 * lra-constraints.c (curr_insn_transform): Don't reuse original
37539 insn for secondary memory move when memory mode should be different.
37541 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37543 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37544 atomic_storedi_1): New patterns.
37546 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37548 btver2 pipeline descriptions.
37549 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37551 * config/i386/i386.md (btver2_decode): New type attributes.
37552 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37554 * config/i386/btver2.md: New file describing btver2 pipelines.
37556 2013-01-19 Andrew Pinski <apinski@cavium.com>
37558 PR tree-optimization/52631
37559 * tree-ssa-sccvn (visit_use): Before looking up the original
37560 statement, try looking up the simplified expression.
37562 2013-01-19 Anthony Green <green@moxielogic.com>
37564 * config/moxie/moxie.c (moxie_expand_prologue): Set
37565 current_function_static_stack_size.
37567 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37569 PR tree-optimization/56029
37570 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37571 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37573 2013-01-18 Sharad Singhai <singhai@google.com>
37575 PR tree-optimization/55995
37576 * dumpfile.c (dump_loc): Print location only if available.
37577 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37579 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37582 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37583 secondary memory move.
37584 (inherit_reload_reg): Use rclass instead of cl for
37585 check_secondary_memory_needed_p.
37587 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37589 PR middle-end/56015
37590 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37591 the case where writing real complex part of target modifies op1.
37593 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37595 * config/aarch64/aarch64-simd.md
37596 (aarch64_vcond_internal<mode>): Handle unordered cases.
37597 * config/aarch64/iterators.md (v_cmp_result): New.
37599 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37600 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37602 * config/arm/marvell-pj4.md: New file.
37603 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37604 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37605 (generic_vfp): Likewise.
37606 * config/arm/arm-cores.def: Add marvell-pj4.
37607 * config/arm/arm-tune.md: Regenerate.
37608 * config/arm/arm-tables.opt: Regenerate.
37609 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37610 * doc/invoke.texi: Document marvell-pj4.
37612 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37614 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37616 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37621 * var-tracking.c (negative_power_of_two_p): New.
37622 (global_get_addr_cache, local_get_addr_cache): New.
37623 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37624 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37626 (vt_stack_offset_p): Remove.
37627 (vt_canon_true_dep): Always canonicalize loc's address.
37628 (clobber_overlapping_mems): Make sure we have a MEM.
37629 (local_get_addr_clear_given_value): New.
37630 (val_reset): Clear local cached entries.
37631 (compute_bb_dataflow): Create and release the local cache.
37632 Disable duplicate MEMs clobbering.
37633 (emit_notes_in_bb): Clobber MEMs likewise.
37634 (vt_emit_notes): Create and release the local cache.
37635 (vt_initialize, vt_finalize): Create and release the global
37636 cache, respectively.
37637 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37639 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37641 PR libmudflap/53359
37642 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37643 not found in the symtab.
37645 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37648 PR rtl-optimization/55547
37649 PR rtl-optimization/53827
37652 * alias.c (offset_overlap_p): New, factored out of...
37653 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37654 the conservative special case for symbolic constants. Don't
37655 adjust zero sizes on alignment.
37657 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37659 PR rtl-optimization/52573
37660 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37661 REG_UNUSED for the same register.
37663 2013-01-17 Richard Biener <rguenther@suse.de>
37664 Marek Polacek <polacek@redhat.com>
37666 PR rtl-optimization/55833
37667 * loop-unswitch.c (unswitch_loops): Move loop verification...
37668 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37669 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37670 Set it to true when we're removing a loop from hierarchy tree in
37671 an irreducible region.
37672 (fix_bb_placements): Adjust caller.
37673 (fix_loop_placements): Likewise.
37675 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37677 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37678 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37679 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37680 Remove ID. Adjust comments.
37681 * config/avr/avr-c.c (avr_builtin_name): Remove.
37682 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37683 * config/avr/avr.c (avr_tolower): New static function.
37684 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37685 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37686 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37689 2013-01-17 Jan Hubicka <jh@suse.cz>
37691 PR tree-optimization/55273
37692 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37694 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37697 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37698 store through atomic_store<mode>_1.
37699 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37701 2013-01-17 Martin Jambor <mjambor@suse.cz>
37703 PR tree-optimizations/55264
37704 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37705 for virtual methods.
37706 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37707 virtual methods before inlining is over.
37708 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37710 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37713 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37715 PR rtl-optimization/56005
37716 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37717 pending reads for prefetch.
37719 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37721 * config/aarch64/aarch64.md
37722 (*cstoresi_neg_uxtw): New pattern.
37723 (*cmovsi_insn_uxtw): New pattern.
37724 (*<optab>si3_uxtw): New pattern.
37725 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37726 (*<optab>si3_insn_uxtw): New pattern.
37727 (*bswapsi2_uxtw): New pattern.
37729 2013-01-16 Richard Biener <rguenther@suse.de>
37731 * tree-inline.c (tree_function_versioning): Remove set but
37732 never used variable.
37734 2013-01-16 Richard Biener <rguenther@suse.de>
37736 PR tree-optimization/55964
37737 * tree-flow.h (rename_variables_in_loop): Remove.
37738 (rename_variables_in_bb): Likewise.
37739 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37740 (copy_loop_before): Adjust and delete update-ssa status.
37741 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37742 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37743 (rename_variables_in_loop): Remove.
37744 (slpeel_update_phis_for_duplicate_loop): Likewise.
37745 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37746 use available cfg machinery instead of duplicating it.
37747 Update PHI nodes and perform poor-mans SSA update here.
37748 (slpeel_tree_peel_loop_to_edge): Adjust.
37750 2013-01-16 Richard Biener <rguenther@suse.de>
37752 PR tree-optimization/54767
37753 PR tree-optimization/53465
37754 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37755 (vrp_visit_phi_node): For PHI arguments coming via backedges
37756 drop all symbolical range information.
37757 (execute_vrp): Compute backedges.
37759 2013-01-16 Richard Biener <rguenther@suse.de>
37761 * doc/install.texi: Update CLooG and ISL requirements to
37764 2013-01-16 Christian Bruel <christian.bruel@st.com>
37767 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37768 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37769 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37771 2013-01-16 DJ Delorie <dj@redhat.com>
37773 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37774 (UNSPECV_SP_SWITCH_E): New.
37775 (sp_switch_1): Change to an unspec.
37776 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37779 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37781 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37782 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37783 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37784 (expand_mem_thread_fence): Ditto.
37785 (expand_mem_signal_fence): Ditto.
37786 (expand_atomic_load): Ditto.
37787 (expand_atomic_store): Ditto.
37789 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37791 PR rtl-optimization/55547
37792 PR rtl-optimization/53827
37795 * alias.c (memrefs_conflict_p): Set sizes to negative after
37798 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37801 * function.c (thread_prologue_and_epilogue_insns): Always
37802 add crtl->drap_reg to set_up_by_prologue.set, even if
37803 stack_realign_drap is false.
37805 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37807 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37808 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37809 *call): Fix indention.
37811 2013-01-15 Tom de Vries <tom@codesourcery.com>
37814 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37817 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37819 PR rtl-optimization/55153
37820 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37822 2013-01-15 Martin Jambor <mjambor@suse.cz>
37824 PR tree-optimization/55920
37825 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37826 accesses as grp_to_be_debug_replaced.
37828 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37830 PR tree-optimization/55920
37831 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37832 there is non-useless type conversion needed from debug rhs to lhs,
37833 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37835 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37836 Mikael Pettersson <mikpe@it.uu.se>
37839 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37841 (ASM_OUTPUT_CASE_LABEL): Remove.
37842 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37843 * final.c (shorten_branches): Update alignment of labels before
37844 jump tables if CASE_VECTOR_SHORTEN_MODE.
37846 2013-01-15 Richard Biener <rguenther@suse.de>
37849 * system.h: Do not include gmp.h for building host tools.
37851 2013-01-15 Richard Biener <rguenther@suse.de>
37853 PR middle-end/55882
37854 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
37855 account for bitpos when computing alignment.
37857 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
37859 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
37860 (ix86_target_macros_internal): Likewise.
37862 * config/i386/i386.c (m_CORE2I7): Removed.
37863 (m_CORE_HASWELL): New macro.
37864 (m_CORE_ALL): Likewise.
37865 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
37866 (initial_ix86_arch_features): Likewise.
37867 (processor_target_table): Initializations for Core avx2.
37868 (cpu_names): New names "core-avx2".
37869 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
37870 PROCESSOR_CORE_HASWELL.
37871 (ix86_issue_rate): New case.
37872 (ia32_multipass_dfa_lookahead): Likewise.
37873 (ix86_sched_init_global): Likewise.
37875 * config/i386/i386.h (TARGET_HASWELL): New macro.
37876 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
37877 (processor_type): New PROCESSOR_HASWELL.
37879 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37881 PR tree-optimization/55955
37882 * tree-vect-loop.c (vectorizable_reduction): Give up early on
37883 *SHIFT_EXPR and *ROTATE_EXPR codes.
37885 PR tree-optimization/48766
37886 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
37887 -ftrapv disable -fwrapv.
37889 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37892 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
37893 etc. to 1 and not to __flash.
37894 Use LL suffix for __INT24_MAX__ with -mint8.
37895 Use ULL suffix for __UINT24_MAX__ with -mint8.
37897 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37899 * config/avr/avr-arch.h
37900 (struct base_arch_s): Use typedef avr_arch_t instead.
37901 (struct arch_info_s): Use typedef avr_arch_info_t instead.
37902 (struct mcu_type_s): Use typedef avr_mcu_t instead.
37903 * config/avr/avr.c: Same.
37904 * config/avr/avr-devices.c: Same.
37905 * config/avr/driver-avr.c: Same.
37906 * config/avr/gen-avr-mmcu-texi.c: Same.
37907 * config/avr/avr-mcus.def: Adjust comment.
37909 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
37911 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
37912 * config/aarch64/iterators.md (VALLDI): New.
37914 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
37915 Andi Kleen <ak@linux.intel.com>
37918 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
37919 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
37922 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37924 * config/avr/avr-stdint.h: Remove trailing blanks.
37925 * config/avr/avr-log.h: Same.
37926 * config/avr/avr-arch.h: Same.
37927 * config/avr/avr-devices.c: Same.
37928 * config/avr/avr-dimode.md: Same.
37929 * config/avr/predicates.md: Same.
37930 * config/avr/avr-c.c: Same. And fix typo.
37932 * config/avr/avr-protos.h: Same. And:
37933 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
37934 (init_cumulative_args): Rename to avr_init_cumulative_args.
37935 (expand_prologue): Rename to avr_expand_prologue.
37936 (expand_epilogue): Rename to avr_expand_epilogue.
37937 (adjust_insn_length): Rename to avr_adjust_insn_length.
37938 (notice_update_cc): Rename to avr_notice_update_cc.
37939 (final_prescan_insn): Rename to avr_final_prescan_insn.
37940 * config/avr/avr.c: Same.
37941 * config/avr/avr.h: Same.
37942 * config/avr/avr.md: Remove trailing blanks.
37943 (prologue): Use avr_expand_prologue.
37944 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
37946 2013-01-14 Richard Biener <rguenther@suse.de>
37948 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
37949 verify_location, collect_subblocks): New functions.
37950 (verify_gimple_in_cfg): Verify that locations only reference
37951 BLOCKs in the functions BLOCK tree.
37953 2013-01-14 Richard Biener <rguenther@suse.de>
37955 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
37957 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
37959 (insert_out_of_ssa_copy_on_edge): Likewise.
37960 (rewrite_close_phi_out_of_ssa): Likewise.
37961 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
37963 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
37964 propagated constants.
37965 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
37968 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37970 * config/avr/avr-modes.def: Add GPL copyright notice.
37972 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
37974 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
37975 MEMMODEL_MASK to determine memory model.
37976 (atomic_store<mode>): Ditto from operands[2].
37977 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
37979 2013-01-13 Jakub Jelinek <jakub@redhat.com>
37982 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
37983 (fold_gimple_assign): Don't call unshare_expr here.
37984 (fold_ctor_reference): Call unshare_expr.
37986 2013-01-13 Terry Guo <terry.guo@arm.com>
37988 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
37989 * doc/fragments.texi: Document MULTILIB_REUSE.
37990 * gcc.c (multilib_reuse): New internal spec.
37991 (set_multilib_dir): Also search multilib from multilib_reuse.
37992 * genmultilib (tmpmultilib3): Refactor code.
37993 (tmpmultilib4): Ditto.
37994 (multilib_reuse): New multilib argument.
37996 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
37998 * Makefile.in: Update copyright.
38000 2013-01-12 Tom de Vries <tom@codesourcery.com>
38002 PR middle-end/55890
38003 * calls.c (expand_call): Check if arg_nr is valid.
38005 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38007 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38008 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38009 documentation. Add missing '__' in front of
38010 __builtin_ia32_packssdw256.
38012 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38015 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38016 NO_REGS for larl operands.
38017 (s390_reload_larl_operand): Use s390_load_address instead of
38020 2013-01-11 Richard Biener <rguenther@suse.de>
38022 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38023 (verify_node_sharing): ... here.
38024 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38026 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38028 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38029 Substitute TREECHECKING.
38030 * configure: Regenerate.
38031 * Makefile.in (TREECHECKING): New.
38033 2013-01-11 Richard Guenther <rguenther@suse.de>
38035 PR tree-optimization/44061
38036 * tree-vrp.c (extract_range_basic): Compute zero as
38037 value-range for __builtin_constant_p of function parameters.
38039 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38041 Update copyright years.
38043 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38045 PR rtl-optimization/55672
38046 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38047 const to be eliminable.
38049 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38051 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38052 * configure: Regenerate.
38054 2013-01-10 Richard Biener <rguenther@suse.de>
38056 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38058 2013-01-10 Richard Biener <rguenther@suse.de>
38061 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38062 locations for virtual PHI arguments.
38063 (rewrite_update_phi_arguments): Likewise.
38065 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38067 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38070 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38072 PR tree-optimization/55921
38073 * tree-complex.c (expand_complex_asm): New function.
38074 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38076 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38079 * config/s390/s390.c (s390_symref_operand_p)
38080 (s390_loadrelative_operand_p): Merge the two functions.
38081 (s390_check_qrst_address, print_operand_address): Add parameters
38082 to s390_loadrelative_operand_p invokation.
38083 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38084 (s390_reload_larl_operand, s390_secondary_reload): Use
38085 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38086 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38088 2013-01-09 Mike Stump <mikestump@comcast.net>
38090 * dse.c (record_store): Remove unnecessary assert.
38092 2013-01-09 Jan Hubicka <jh@suse.cz>
38094 PR tree-optimization/55569
38095 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38096 * cfgloop.h (scale_loop_profile): Likewise.
38098 2013-01-09 Jan Hubicka <jh@suse.cz>
38101 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38103 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38105 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38107 PR middle-end/55114
38108 * expr.h (maybe_emit_group_store): Declare.
38109 * expr.c (maybe_emit_group_store): New function.
38110 * builtins.c (expand_builtin_int_roundingfn): Call it.
38111 (expand_builtin_int_roundingfn_2): Likewise.
38113 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38115 PR rtl-optimization/55829
38116 * lra-constraints.c (match_reload): Add code for absent output.
38117 (curr_insn_transform): Add code for reloads of matched inputs
38120 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38122 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38123 attribute of movddup insn to DF.
38124 (*vec_interleave_lowv2df): Ditto.
38125 (vec_dupv2df): Ditto.
38127 2013-01-09 Jan Hubicka <jh@suse.cz>
38129 PR tree-optimiation/55875
38130 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38131 EVERY_ITERATION parameter.
38132 (number_of_iterations_exit): Check if exit is executed every iteration.
38133 (idx_infer_loop_bounds): Similarly here.
38134 (n_of_executions_at_most): Simplify
38135 to only test for cases where statement is dominated by the
38136 particular bound; handle correctly the "postdominance" test.
38137 (scev_probably_wraps_p): Use max loop iterations info
38138 as a global bound first.
38140 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38141 Nick Clifton <nickc@redhat.com>
38143 * config/v850/v850.md (cbranchsf4): New pattern.
38144 (cstoresf4): New pattern.
38145 (cbranchdf4): New pattern.
38146 (cstoredf4): New pattern.
38147 (movsicc): Disallow floating point comparisons.
38148 (cmpsf_le_insn): Fix order of operators.
38149 (cmpsf_lt_insn): Likewise.
38150 (cmpsf_eq_insn): Likewise.
38151 (cmpdf_le_insn): Likewise.
38152 (cmpdf_lt_insn): Likewise.
38153 (cmpdf_eq_insn): Likewise.
38154 (cmpsf_ge_insn): Use LE comparison.
38155 (cmpdf_ge_insn): Likewise.
38156 (cmpsf_gt_insn): Use LT comparison.
38157 (cmpdf_gt_insn): Likewise.
38158 (cmpsf_ne_insn): Delete pattern.
38159 (cmpdf_ne_insn): Delete pattern.
38160 * config/v850/v850.c (v850_gen_float_compare): Use
38161 gen_cmpdf_eq_insn for NE comparison.
38162 (v850_float_z_comparison_operator)
38163 (v850_float_nz_comparison_operator): Move from here ...
38164 * config/v850/predicates.md: ... to here. Move GT and GE
38165 comparisons into v850_float_z_comparison_operator.
38166 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38168 (v850_float_nz_comparison_operator): Likewise.
38170 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38172 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38173 with calls to gen_insvsi/gen_insvdi.
38175 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38177 * config/i386/i386.c (initial_ix86_tune_features): Set up
38178 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38180 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38181 Jakub Jelinek <jakub@redhat.com>
38183 PR tree-optimization/48189
38184 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38185 If nitercst is 0, don't predict the exit edge.
38187 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38189 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38190 in asm_fprintf with reg_names.
38191 (aarch64_print_operand_address): Likewise.
38192 (aarch64_return_addr): Likewise.
38193 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38195 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38197 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38198 (INT_U6_BITS): Likewise.
38199 * config/pa/predicates.md (uint6_operand): New predicate.
38200 (shift5_operand, shift6_operand): Likewise.
38201 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38203 (lshrdi3): Use shift6_operand.
38204 (shrpsi4, shrpdi4): New insn patterns.
38205 (extzv): Delete expander.
38206 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38207 predicates in unamed zero extract patterns. Tighten common constraint.
38208 (extv): Delete expander.
38209 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38210 predicates in unamed sign extract patterns. Tighten common constraint.
38211 (insv): Delete expander.
38212 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38213 predicates in unamed insert patterns. Tighten common constraint.
38214 Change uint32_operand predicate to uint6_operand predicate in unamed
38215 DImode pattern to insert constant values of type 1...1xxxx.
38217 2013-01-04 Jan Hubicka <jh@suse.cz>
38219 PR tree-optimization/55823
38220 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38223 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38224 Uros Bizjak <ubizjak@gmail.com>
38226 PR rtl-optimization/55845
38227 * df-problems.c (can_move_insns_across): Stop scanning at
38228 volatile_insn_p source instruction or give up if
38229 across_from .. across_to range contains any volatile_insn_p
38232 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38234 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38235 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38237 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38238 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38240 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38243 * asan.c (asan_clear_shadow): New function.
38244 (asan_emit_stack_protection): Use it.
38246 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38248 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38249 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38250 with tab instead of space.
38252 2013-01-08 Nick Clifton <nickc@redhat.com>
38254 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38255 register bank 0 at the start of an interrupt handler.
38256 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38259 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38261 * config/aarch64/aarch64-simd.md
38262 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38263 (aarch64_simd_bsl): Likewise.
38264 (aarch64_vcond_internal<mode>): Likewise.
38265 (vcond<mode><mode>): Likewise.
38266 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38267 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38269 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38271 * config/aarch64/aarch64-builtins.c
38272 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38274 2013-01-08 Martin Jambor <mjambor@suse.cz>
38277 * tree-sra.c (analyze_access_subtree): Return true also after
38278 potentially creating a debug-only replacement.
38280 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38282 PR middle-end/55890
38283 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38285 PR tree-optimization/54120
38286 * tree-vrp.c (range_fits_type_p): Don't allow
38287 src_precision < precision from signed vr to unsigned_p
38288 if vr->min or vr->max is negative.
38289 (simplify_float_conversion_using_ranges): Test can_float_p
38290 against CODE_FOR_nothing.
38292 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38293 Richard Biener <rguenther@suse.de>
38295 PR middle-end/55851
38296 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38297 types instead of just INTEGER_TYPE types.
38299 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38301 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38304 2013-01-07 Steve Ellcey <sellcey@mips.com>
38307 * config/mips/mips.opt: Change mad to mmad to match documentation.
38309 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38312 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38313 .progmemx.data now.
38315 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38318 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38319 (avr_addrspace_t): Add .section_name field.
38320 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38322 (avr_addrspace): Same. Initialize .section_name. Remove last
38323 NULL entry. Put __memx into .progmemx.data.
38324 (progmem_section_prefix): Remove.
38325 (avr_asm_init_sections): No need to initialize progmem_section.
38326 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38327 section name prefix.
38328 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38329 retrieve the progmem section.
38330 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38331 boundary to run over avr_addrspace[].
38332 (avr_register_target_pragmas): Ditto.
38334 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38336 * varasm.c (output_constant_def_contents): For asan_protect_global
38337 protected strings, adjust DECL_ALIGN if needed, before testing for
38339 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38340 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38342 (output_object_block): For asan protected decls, emit asan padding
38343 after their contents.
38344 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38345 (asan_finish_file): Test it here instead.
38347 2013-01-07 Nick Clifton <nickc@redhat.com>
38348 Matthias Klose <doko@debian.org>
38349 Doug Kwan <dougkwan@google.com>
38350 H.J. Lu <hongjiu.lu@intel.com>
38353 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38355 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38357 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38359 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38361 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38363 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38366 * doc/install.texi (Cross-Compiler-Specific Options): Document
38369 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38371 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38372 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38373 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38374 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38375 vqmovun_high_s64): Fix source operand number and update copyright.
38377 2013-01-07 Richard Biener <rguenther@suse.de>
38379 PR middle-end/55890
38380 * gimple.h (gimple_call_builtin_p): New overload.
38381 * gimple.c (validate_call): New function.
38382 (gimple_call_builtin_p): Likewise.
38383 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38384 Use gimple_call_builtin_p.
38385 (find_func_clobbers): Likewise.
38386 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38387 (strlen_optimize_stmt): Likewise.
38389 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38391 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38392 (vld1q_dup_*): Likewise.
38393 (vld1_*): Likewise.
38394 (vld1q_*): Likewise.
38395 (vld1_lane_*): Likewise.
38396 (vld1q_lane_*): Likewise.
38398 2013-01-07 Richard Biener <rguenther@suse.de>
38400 * lto-streamer.h (LTO_minor_version): Bump to 2.
38402 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38404 * config/aarch64/aarch64-protos.h
38405 (aarch64_const_double_zero_rtx_p): Rename to...
38406 (aarch64_float_const_zero_rtx_p): ...this.
38407 (aarch64_float_const_representable_p): New.
38408 (aarch64_output_simd_mov_immediate): Likewise.
38409 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38410 move immediate case.
38411 * config/aarch64/aarch64.c
38412 (aarch64_const_double_zero_rtx_p): Rename to...
38413 (aarch64_float_const_zero_rtx_p): ...this.
38414 (aarch64_print_operand): Allow printing of new constants.
38415 (aarch64_valid_floating_const): New.
38416 (aarch64_legitimate_constant_p): Check for valid floating-point
38418 (aarch64_simd_valid_immediate): Likewise.
38419 (aarch64_vect_float_const_representable_p): New.
38420 (aarch64_float_const_representable_p): Likewise.
38421 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38422 (aarch64_output_simd_mov_immediate): New.
38423 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38424 (*movdf_aarch64): Likewise.
38425 * config/aarch64/constraints.md (Ufc): New.
38426 (Y): call aarch64_float_const_zero_rtx.
38427 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38429 2013-01-07 Richard Biener <rguenther@suse.de>
38431 PR tree-optimization/55888
38432 PR tree-optimization/55862
38433 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38434 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38435 not if it is contained therein.
38437 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38439 * config/avr/t-avr: Typo.
38441 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38444 * config/avr/t-avr: Don't automatically rebuild
38445 $(srcdir)/config/avr/t-multilib
38446 $(srcdir)/config/avr/avr-tables.opt
38447 $(srcdir)/doc/avr-mmcu.texi
38448 (avr-mcus): New phony target to build them on request.
38449 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38450 * avr/avr-mcus.def: Adjust comments.
38452 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38454 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38456 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38458 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38460 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38462 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38464 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38466 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38467 to generate profiling.
38468 * config/rs6000/aix64.h (LIB_SPEC): Same.
38470 2013-01-04 Andrew Pinski <apinski@cavium.com>
38472 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38474 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38476 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38478 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38480 (ix86_expand_move): Ditto.
38481 (ix86_zero_extend_to_Pmode): Ditto.
38482 (ix86_expand_call): Ditto.
38483 (ix86_expand_special_args_builtin): Ditto.
38484 (ix86_expand_builtin): Ditto.
38486 2013-01-04 Richard Biener <rguenther@suse.de>
38488 PR tree-optimization/55862
38489 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38490 translating them through PHI nodes.
38492 2013-01-04 Martin Jambor <mjambor@suse.cz>
38494 PR tree-optimization/55755
38495 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38496 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38498 2013-01-04 Marek Polacek <polacek@redhat.com>
38500 PR middle-end/55859
38501 * opts.c (default_options_optimization): Clarify error message.
38503 2013-01-04 Richard Biener <rguenther@suse.de>
38505 PR middle-end/55863
38506 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38509 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38512 * config/pa/pa.md (movsi): Revert previous change.
38513 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38516 2013-01-03 Richard Henderson <rth@redhat.com>
38518 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38519 after eliminating TLS symbols.
38521 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38524 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38525 * graphite-poly.c (debug_gmp_value): Likewise.
38527 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38530 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38531 selected code model, define __code_mode_small__, __code_model_medium__,
38532 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38533 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38534 xchg temporary register with %k. Declare temporary register as
38536 [__x86_64__]: For medium and large code models, preserve %rbx register.
38538 2013-01-03 Richard Biener <rguenther@suse.de>
38540 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38541 (dump_subscript): Adjust.
38542 (finalize_ddr_dependent): Do not dump redundant info.
38543 (analyze_siv_subscript): Adjust.
38544 (subscript_dependence_tester): Likewise.
38545 (compute_affine_dependence): Likewise.
38547 2013-01-03 Richard Biener <rguenther@suse.de>
38550 2013-01-03 Richard Biener <rguenther@suse.de>
38552 PR tree-optimization/55857
38553 * tree-vect-stmts.c (vectorizable_load): Do not setup
38554 re-alignment for invariant loads.
38556 2013-01-02 Richard Biener <rguenther@suse.de>
38558 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38559 invariant load do not generate a vector load from the scalar location.
38561 2013-01-03 Richard Biener <rguenther@suse.de>
38563 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38564 for not vectorizing.
38565 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38566 not build INDIRECT_REFs, call get_name once only.
38567 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38568 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38570 2013-01-03 Richard Biener <rguenther@suse.de>
38572 PR tree-optimization/55857
38573 * tree-vect-stmts.c (vectorizable_load): Do not setup
38574 re-alignment for invariant loads.
38576 2013-01-03 Richard Biener <rguenther@suse.de>
38579 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38580 prefer a built-in decl.
38582 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38584 * gcc.c (process_command): Update copyright notice dates.
38585 * gcov.c (print_version): Likewise.
38586 * gcov-dump.c (print_version): Likewise.
38588 PR rtl-optimization/55838
38589 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38590 iv0.step, iv1.step and step.
38592 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38593 Marc Glisse <marc.glisse@inria.fr>
38595 PR tree-optimization/55832
38596 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38597 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38598 integer_{one,zero}_node.
38600 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38603 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38604 * var-tracking.c (reverse_op): Don't add reverse ops to
38605 VALUEs that have already
38606 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38608 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38610 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38612 2013-01-02 Teresa Johnson <tejohnson@google.com>
38614 * dumpfile.c (dump_loc): Print filename with location.
38615 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38616 new location_t parameter to emit complete unroll message with
38617 new dump framework.
38618 (canonicalize_loop_induction_variables): Compute loops location
38619 and pass to try_unroll_loop_completely.
38620 * loop-unroll.c (report_unroll_peel): New function.
38621 (peel_loops_completely): Use new dump format with location
38622 for main dumpfile message, and invoke report_unroll_peel on success.
38623 (decide_unrolling_and_peeling): Ditto.
38624 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38625 by report_unroll_peel.
38626 (decide_peel_completely): Ditto.
38627 (decide_unroll_constant_iterations): Ditto.
38628 (decide_unroll_runtime_iterations): Ditto.
38629 (decide_peel_simple): Ditto.
38630 (decide_unroll_stupid): Ditto.
38631 * cfgloop.c (get_loop_location): New function.
38632 * cfgloop.h (get_loop_location): Declare.
38634 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38636 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38639 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38641 PR middle-end/55198
38642 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38643 BLKmode objects when EXPAND_MEMORY is specified.
38645 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38647 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38649 (fold_builtin_cpu): Do not share cpu model decls across statements.
38651 2013-01-02 Jason Merrill <jason@redhat.com>
38654 * tree.c (build_array_type_1): Revert earlier change.
38656 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38658 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38660 * config/aarch64/aarch64-tune.md: Re-generate.
38662 2013-01-02 Richard Biener <rguenther@suse.de>
38664 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38665 invariant load do not generate a vector load from the scalar location.
38667 2013-01-02 Richard Biener <rguenther@suse.de>
38670 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38671 * configure: Regenerate.
38673 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38675 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38676 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38677 (expand_builtin_int_roundingfn_2): Keep the original target around
38678 for the fallback case.
38680 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38682 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38683 to be clear for sign changes.
38685 2013-01-01 Jan Hubicka <jh@suse.cz>
38687 * ipa-inline-analysis.c: Fix formatting.
38689 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38691 PR tree-optimization/55831
38692 * tree-vect-loop.c (get_initial_def_for_induction): Use
38693 gsi_after_labels instead of gsi_start_bb.
38695 Copyright (C) 2013 Free Software Foundation, Inc.
38697 Copying and distribution of this file, with or without modification,
38698 are permitted in any medium without royalty provided the copyright
38699 notice and this notice are preserved.