]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
t-aprofile: Add cortex-a15.cortex-a7, cortex-a12, cortex-a57, cortex-a57.cortex-a53.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
2 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3
4 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
5 cortex-a57, cortex-a57.cortex-a53.
6
7 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
8
9 PR debug/59418
10 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
11 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
12 (dwarf2out_frame_debug_expr): Tidy.
13
14 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16 Sergey Lega <sergey.s.lega@intel.com>
17 Anna Tikhonova <anna.tikhonova@intel.com>
18 Ilya Tocar <ilya.tocar@intel.com>
19 Andrey Turetskiy <andrey.turetskiy@intel.com>
20 Ilya Verbin <ilya.verbin@intel.com>
21 Kirill Yukhin <kirill.yukhin@intel.com>
22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23
24 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
25 (*fma_fmsub_<mode>): Ditto.
26 (*fma_fnmadd_<mode>): Ditto.
27 (*fma_fnmsub_<mode>): Ditto.
28 (*fma_fmaddsub_<mode>): Ditto.
29 (*fma_fmsubadd_<mode>): Ditto.
30 (avx512f_vternlog<mode>): Ditto.
31 (avx512f_fixupimm<mode>): Ditto.
32 (avx512f_sfixupimm<mode>): Ditto.
33 (avx512f_vpermi2var<mode>3): Ditto.
34 (avx512f_vpermt2var<mode>3): Ditto.
35 (avx512f_fmaddsub_<mode>_maskz): New.
36 (avx512f_vternlog<mode>_maskz): Ditto.
37 (avx512f_fixupimm<mode>_maskz): Ditto.
38 (avx512f_sfixupimm<mode>_maskz): Ditto.
39 (avx512f_vpermi2var<mode>3_maskz): Ditto.
40 (avx512f_vpermt2var<mode>3_maskz): Ditto.
41 (avx512f_expand<mode>_maskz): Ditto.
42 * config/i386/subst.md (sd_maskz_name): Ditto.
43 (sd_mask_op4): Ditto.
44 (sd_mask_op5): Ditto.
45 (sd_mask_codefor): Ditto.
46 (sd_mask_mode512bit_condition): Ditto.
47 (sd): Ditto.
48
49 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
50 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
51 Sergey Lega <sergey.s.lega@intel.com>
52 Anna Tikhonova <anna.tikhonova@intel.com>
53 Ilya Tocar <ilya.tocar@intel.com>
54 Andrey Turetskiy <andrey.turetskiy@intel.com>
55 Ilya Verbin <ilya.verbin@intel.com>
56 Kirill Yukhin <kirill.yukhin@intel.com>
57 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
58
59 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
60 (avx512f_ucmp<mode>3): Ditto.
61 (avx512f_eq<mode>3): Ditto.
62 (avx512f_gt<mode>3): Ditto.
63 (avx512f_testm<mode>3): Ditto.
64 (avx512f_testnm<mode>3): Ditto.
65 * config/i386/subst.md (SUBST_S): New.
66 (mask_scalar_merge_name): Ditto.
67 (mask_scalar_merge_operand3): Ditto.
68 (mask_scalar_merge_operand4): Ditto.
69 (mask_scalar_merge): Ditto.
70
71 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
72
73 PR middle-end/35545
74 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
75 OBJ_TYPE_REF.
76 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
77
78 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
79
80 PR middle-end/35545
81 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
82
83 2013-12-17 Teresa Johnson <tejohnson@google.com>
84
85 PR gcov-profile/59527
86 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
87 branch, which can't be eliminated.
88
89 2013-12-18 Martin Liska <marxin.liska@gmail.com>
90 Jan Hubicka <jh@suse.cz>
91
92 * cgraphunit.c (node_cmp): New function.
93 (expand_all_functions): Function ordering added.
94 * common.opt: New profile based function reordering flag introduced.
95 * lto-partition.c: Support for time profile added.
96 * lto.c: Likewise.
97 * predict.c (handle_missing_profiles): Time profile handled in
98 missing profiles.
99
100 2013-12-17 Jakub Jelinek <jakub@redhat.com>
101
102 PR tree-optimization/59523
103 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
104 on updated stmts.
105
106 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
107
108 * ipa-inline.c (gate_ipa_inline): Remove.
109 (const pass_data pass_data_ipa_inline): Unset has_gate.
110 (class pass_ipa_inline): Remove gate() method.
111
112 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
113
114 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
115 in contains_type_p query.
116
117 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
118
119 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable
120 definition.
121
122 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
123 declaration.
124
125 * omp-low.c: Remove leftover comment.
126
127 * omp-low.c (check_combined_parallel): Reflect reality in comment.
128
129 * doc/cfg.texi (Control Flow): Refer to passes.def instead of
130 passes.c.
131 * doc/passes.texi (Pass manager): Refer to passes.def.
132
133 * doc/gccint.texi (Top): Fix inclusion order.
134
135 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
136
137 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
138 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
139 * config/arm/arm.md (generic_vfp): Remove cortexa12.
140
141 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
142
143 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
144 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
145 * config/arm/arm-tables.opt: Regenerate.
146 * config/arm/arm-tune.md: Regenerate.
147 * config/arm/bpabi.h
148 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
149
150 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
151
152 * config/arm/arm-cores.def (cortex-a57): New.
153 * doc/invoke.texi: Document -mcpu=cortex-a57.
154 * config/arm/arm-tables.opt: Regenerate.
155 * config/arm/arm-tune.md: Regenerate.
156 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
157
158 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
159
160 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
161 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
162 * config/arm/arm-tables.opt: Regenerate.
163 * config/arm/arm-tune.md: Regenerate.
164 * config/arm/bpabi.h
165 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
166
167 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
168
169 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
170 * config/arm/genopt.sh: Improve layout.
171 * config/arm/arm-tune.md: Regenerate.
172 * config/arm/arm-tables.opt: Regenerate.
173 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
174 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
175 (arm_option_override): When a CPU is chosen, that should also
176 form the tune target.
177 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
178
179 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
180
181 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
182 (arm_rewrite_mcpu): Likewise.
183 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
184 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
185 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
186 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
187 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
188 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
189
190 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
191
192 * expmed.c (lowpart_bit_field_p): Fix comment.
193 (store_bit_field_using_insv): Fix formatting.
194 (store_bit_field): Likewise.
195 (store_fixed_bit_field): More declaration and remove return.
196 (store_fixed_bit_field_1): Fix formatting.
197 (extract_fixed_bit_field): Move declaration.
198 (extract_fixed_bit_field_1): Simplify.
199
200 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
201
202 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
203 the call.
204 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
205
206 2013-12-17 Jakub Jelinek <jakub@redhat.com>
207
208 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
209 instead of x as last gen_lowpart argument.
210
211 2013-12-16 Jakub Jelinek <jakub@redhat.com>
212
213 * predict.h (PROB_LIKELY): Fix the value.
214 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
215 for overflow checking for modes without 2xwider supported mode,
216 if the mode has 2xnarrower mode.
217
218 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
219 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
220 try to improve generated code if one of the arguments is constant
221 or get_range_info says that one of the argument is always
222 negative or always non-negative.
223 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
224 (simplify_stmt_using_ranges): Call it.
225
226 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
227
228 PR rtl-optimization/59466
229 * emit-rtl.c (change_address_1): Don't validate address for LRA.
230 * recog.c (general_operand): Accept any memory for LRA.
231 * lra.c (lra_set_insn_recog_data): Add an assert.
232
233 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
234
235 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
236
237 2013-12-14 Jan Hubicka <jh@suse.cz>
238 Markus Trippelsdorf <octoploid@yandex.com>
239
240 PR ipa/59265
241 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
242 call is already devirtualized.
243
244 2013-12-16 Jakub Jelinek <jakub@redhat.com>
245
246 * Makefile.in (version.o): Restore dependencies on
247 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
248
249 2013-12-14 Jan Hubicka <jh@suse.cz>
250
251 PR ipa/59473
252 * ipa-devirt.c (get_class_context): Do not ICE when type is found
253 at wrong offset.
254
255 2013-12-16 Jakub Jelinek <jakub@redhat.com>
256
257 PR libgomp/58756
258 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
259 reductions without placeholder if is_simd, but when not using
260 GOMP_SIMD* internal calls, also perform the reduction operation
261 on the outer var rather than simple assignment.
262
263 2013-12-16 Jakub Jelinek <jakub@redhat.com>
264
265 PR middle-end/58956
266 PR middle-end/59470
267 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
268 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
269 for callback params.
270 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
271 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
272 calls to supply the gimple operand containing the base tree
273 as an extra argument.
274 * tree-ssa-ter.c: Include gimple-walk.h.
275 (find_ssaname, find_ssaname_in_store): New helper functions.
276 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
277 same_root_var if USE is used somewhere in the stores of the stmt.
278 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
279 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
280 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
281 check_ipa_store): Likewise.
282 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
283 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
284 (verify_non_ssa_vars, visit_bb): Adjust their callers.
285 * cfgexpand.c (add_scope_conflicts_1): Use
286 walk_stmt_load_store_addr_fn type for visit variable.
287 (visit_op, visit_conflict): Remove name of the stmt
288 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
289 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
290 argument and ATTRIBUTE_UNUSED.
291 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
292 unnamed tree argument.
293 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
294 ATTRIBUTE_UNUSED from stmt parameter.
295
296 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
297
298 * opts-common.c (integral_argument): Add support for
299 hexadecimal command option integer arguments. Update comments.
300
301 2013-12-14 Jan Hubicka <jh@suse.cz>
302
303 PR ipa/59265
304 * ipa-prop.c (ipa_analyze_call_uses): Skip already
305 devirtualized calls.
306
307 2013-12-14 Jan Hubicka <jh@suse.cz>
308 PR middle-end/58477
309 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
310
311 2013-12-14 Jan Hubicka <jh@suse.cz>
312
313 PR middle-end/58477
314 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
315
316 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR target/59492
319 * config/i386/i386.c (ix86_function_specific_restore): Don't
320 change -fPIC.
321
322 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
323
324 * var-tracking.c (add_stores): Fix oversight in latest commit.
325
326 2013-12-14 Marek Polacek <polacek@redhat.com>
327
328 PR sanitizer/59503
329 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
330 expand_binop with correct optab depending on code.
331
332 2013-12-14 Tom de Vries <tom@codesourcery.com>
333
334 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
335
336 2013-12-13 DJ Delorie <dj@redhat.com>
337
338 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
339
340 * config/msp430/msp430.md (movqi): replace general_operand with
341 msp_general_operand and nonimmediate_operand with
342 msp_nonimmediate_operand to allow volatile operands.
343 (movhi): Likewise.
344 (movpsi): Likewise.
345 (addpsi3): Likewise.
346 (addhi3): Likewise.
347 (addhi3_cy): Likewise.
348 (addchi4_cy): Likewise.
349 (xor<mode>3): Likewise.
350 (ome_cmpl<mode>2): Likewise.
351 (extendqihi2): Likewise.
352 (zero_extendqihi2): Likewise.
353 (zero_extendhipsi2): Likewise.
354 (truncpsihi2): Likewise.
355 (srai_1): Likewise.
356
357 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
358
359 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
360 * ira.c: Ditto.
361 * lra-int.h (lra_init_equiv): New prototype.
362 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
363 (loc_equivalence_callback): Use the 3rd arg.
364 (lra_constraints): Update equivalences. Pass curr_insn to
365 simplify_replace_fn_rtx.
366 * lra.c (lra): Call lra_init_equiv.
367
368 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
369
370 * genmodes.c (emit_max_int): Fixed missing parens.
371
372 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
373
374 PR tree-optimization/59149
375 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
376 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
377 if no type or decl.
378
379 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
380
381 * config/arc/arc.h (BITS_PER_UNIT): Removed.
382 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
383 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
384 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
385 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
386 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
387 * config/spu/spu.h (BITS_PER_UNIT): Removed.
388 * defaults.h (BITS_PER_UNIT): Removed.
389 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
390 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
391 (MAX_BITSIZE_MODE_ANY_INT): Updated.
392 * doc/tm.texi (BITS_PER_UNIT): Removed.
393 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
394 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
395 (create_modes): Added code to set bits_per_unit and
396 max_bitsize_mode_any_int.
397 (emit_max_int): Changed code generation.
398 * mkconfig.sh: Added insn-modes.h.
399
400 2013-12-13 Jeff Law <law@redhat.com>
401
402 PR tree-optimization/45685
403 * tree-ssa-phiopt.c (neg_replacement): New function.
404 (tree_ssa_phiopt_worker): Call it.
405
406 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
407
408 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
409
410 2013-12-13 Bin Cheng <bin.cheng@arm.com>
411
412 PR tree-optimization/58296
413 PR tree-optimization/41488
414 * tree-scalar-evolution.c: Include necessary header files.
415 (simplify_peeled_chrec): New function.
416 (analyze_evolution_in_loop): New static variable.
417 Call simplify_peeled_chrec.
418 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
419 (add_old_iv_candidates): Don't add candidate for peeled IV.
420 * tree-affine.h (aff_combination_zero_p): New function.
421
422 2013-12-13 Nick Clifton <nickc@redhat.com>
423
424 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
425 true if the current function has the wakeup attribute.
426 (msp430_start_function): Note if the function has the wakeup
427 attribute.
428 (msp430_attribute_table): Add wakeup attribute.
429 (msp430_expand_epilogue): Add support for wakeup functions.
430 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
431 the DINT instruction.
432 * doc/extend.texi: Document the wakeup attribute.
433
434 2013-12-13 Kai Tietz <kitetz@redhat.com>
435
436 PR c++/57897
437 * config/i386/i386.c (ix86_option_override_internal): Set for
438 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
439 was explicit set.
440
441 2013-12-12 Jeff Law <law@redhat.com>
442
443 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
444 for zero-extended MULT simple LEA pattern.
445
446 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
447
448 PR middle-end/59470
449 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
450 values if necessary.
451
452 2013-12-12 Jakub Jelinek <jakub@redhat.com>
453
454 PR libgomp/59467
455 * gimplify.c (omp_check_private): Add copyprivate argument, if it
456 is true, don't check omp_privatize_by_reference.
457 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
458 decl is private in outer context. Adjust omp_check_private caller.
459
460 2013-12-11 Jeff Law <law@redhat.com>
461
462 PR rtl-optimization/59446
463 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
464 test for crossing a loop header.
465
466 2013-12-11 Sriraman Tallam <tmsriram@google.com>
467
468 PR target/59390
469 * config/i386/i386.c (get_builtin): New function.
470 (ix86_builtin_vectorized_function): Replace all instances of
471 ix86_builtins[...] with get_builtin(...).
472 (ix86_builtin_reciprocal): Ditto.
473
474 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
475
476 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
477 (lang_hooks_for_cilkplus): Remove.
478 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
479 (lhd_install_body_with_frame_cleanup): Likewise.
480 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
481 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
482 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
483 (LANG_HOOKS_CILKPLUS): Likewise.
484 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
485 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
486 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
487 (gimplify_call_expr): Likewise.
488
489 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
490
491 * expr.c (expand_assignment): Remove dependency on
492 flag_strict_volatile_bitfields. Always set the memory
493 access mode.
494 (expand_expr_real_1): Likewise.
495
496 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
497
498 PR middle-end/59134
499 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
500 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
501 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
502 to do the real work.
503 (store_fixed_bit_field_1): New function.
504 (store_split_bit_field): Limit the unit size to the memory mode size,
505 to prevent recursion.
506
507 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
508 Sandra Loosemore <sandra@codesourcery.com>
509
510 PR middle-end/23623
511 PR middle-end/48784
512 PR middle-end/56341
513 PR middle-end/56997
514 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
515 and bitregion_end parameters. Test for compliance with C++
516 memory model.
517 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
518 Add fallback logic for cases where -fstrict-volatile-bitfields
519 is supposed to apply, but cannot.
520 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
521 extract_fixed_bit_field_1 to do the extraction.
522 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
523 Call extract_fixed_bit_field_1 to do the real work.
524 (extract_fixed_bit_field_1): New function.
525
526 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
527
528 PR middle-end/23623
529 PR middle-end/48784
530 PR middle-end/56341
531 PR middle-end/56997
532 * expmed.c (strict_volatile_bitfield_p): New function.
533 (store_bit_field_1): Don't special-case strict volatile
534 bitfields here.
535 (store_bit_field): Handle strict volatile bitfields here instead.
536 (store_fixed_bit_field): Don't special-case strict volatile
537 bitfields here.
538 (extract_bit_field_1): Don't special-case strict volatile
539 bitfields here.
540 (extract_bit_field): Handle strict volatile bitfields here instead.
541 (extract_fixed_bit_field): Don't special-case strict volatile
542 bitfields here. Simplify surrounding code to resemble that in
543 store_fixed_bit_field.
544 * doc/invoke.texi (Code Gen Options): Update
545 -fstrict-volatile-bitfields description.
546
547 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
548
549 * configure.ac: Add check for aarch64 assembler -mabi support.
550 * configure: Regenerate.
551 * config.in: Regenerate.
552 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
553 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
554 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
555 if assembler does not support -mabi and option ilp32 is selected.
556 * doc/install.texi: Added note that building gcc 4.9 and after
557 with pre 2.24 binutils will not support -mabi=ilp32.
558
559 2013-12-11 Marek Polacek <polacek@redhat.com>
560
561 PR sanitizer/59399
562 * expr.c (expand_expr_real_1): Remove assert dealing with
563 internal calls and turn that into a condition instead.
564
565 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
566
567 * config/arm/arm.opt (mlra): Enable LRA by default.
568
569 2013-12-11 Jakub Jelinek <jakub@redhat.com>
570
571 PR tree-optimization/59417
572 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
573 in a different bb rhan var, only duplicate points-to info and
574 not alignment info and don't duplicate range info.
575 * tree-ssa-loop-niter.c (determine_value_range): Instead of
576 assertion failure handle inconsistencies in range info by only
577 using var's range info and not PHI result range infos.
578
579 PR tree-optimization/59386
580 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
581 unshare_expr (id->retval) before passing it to gimple_build_assign.
582
583 2013-12-11 Bin Cheng <bin.cheng@arm.com>
584
585 Reverted:
586 2013-12-10 Bin Cheng <bin.cheng@arm.com>
587 PR tree-optimization/41488
588 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
589 for PEELED_CHREC kind IV.
590 * tree-scalar-evolution.c: Include necessary header files.
591 (peeled_chrec_map, simplify_peeled_chrec): New.
592 (analyze_evolution_in_loop): New static variable.
593 Call simplify_peeled_chrec.
594 (scev_initialize): Initialize peeled_chrec_map.
595 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
596
597 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
598
599 PR target/59458
600 * config/i386/i386.md (*movsf_internal): Set mode to SI for
601 alternative 13.
602
603 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
604
605 PR rtl-optimization/58295
606 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
607 WORD_REGISTER_OPERATIONS targets.
608
609 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
610
611 * genrecog.c (validate_pattern): Treat all messages except missing
612 modes as errors.
613 * config/epiphany/epiphany.md: Remove constraints from
614 define_peephole2s.
615 * config/h8300/h8300.md: Remove constraints from define_splits.
616 * config/msp430/msp430.md: Likewise.
617 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
618 nonimmediate_operand rather than general_operand for operand 0.
619 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
620 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
621 Use match_operator rather than match_test to invoke general_operand.
622 * config/v850/v850.md (*movqi_internal, *movhi_internal)
623 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
624
625 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
626
627 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
628 register_operand rather than pointer_operand. Add modes to the
629 operands.
630 (insn_ldna_add<bitsuffix>): Likewise.
631 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
632 (insn_ldnt_add<bitsuffix>): Likewise.
633 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
634 (insn_ld_add_L2<bitsuffix>): Likewise.
635 (insn_ldna_add_L2<bitsuffix>): Likewise.
636 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
637 (insn_ldnt_add_L2<bitsuffix>): Likewise.
638 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
639 (insn_ld_add_miss<bitsuffix>): Likewise.
640 (insn_ldna_add_miss<bitsuffix>): Likewise.
641 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
642 (insn_ldnt_add_miss<bitsuffix>): Likewise.
643 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
644 (insn_st_add<bitsuffix>): Likewise.
645 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
646 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
647 (insn_stnt_add<bitsuffix>): Likewise.
648 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
649 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
650 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
651 reg_or_0_operand for operand 0.
652 (insn_v2<pack_insn>): Likewise.
653 (vec_pack_hipart_v4hi): Likewise.
654 (insn_v2packh): Likewise.
655 (vec_pack_ssat_v2si): Likewise.
656 (insn_v4packsc): Likewise.
657
658 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
659
660 * basic-block.h (gcov_working_set_t): Put back typedef.
661 * gcov-io.h (gcov_bucket_type): Likewise.
662 (gcov_working_set_info, gcov_working_set_t): Likewise.
663
664 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
665
666 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
667 Remove typedef.
668 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
669 rename to cgraph_inline_failed_t.
670 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
671 to ao_ref.
672 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
673 to reg_equivs_t.
674 * conditions.h (CC_STATUS): Remove typedef.
675 * bitmap.h (bitmap_obstack): Remove typedef.
676 (bitmap_element_def, bitmap_element): Remove typedef and rename to
677 bitmap_element.
678 (bitmap_head_def, bitmap_head): Remove typedef and rename to
679 bitmap_head.
680 (bitmap_iterator): Remove typedef.
681 * target.h (cumulative_args_t, print_switch_type,
682 secondary_reload_info): Remove typedef.
683 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
684 dw_cfi_oprnd_struct alias.
685 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
686 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
687 (cfa_loc, dw_cfa_location): Remove typedef and rename to
688 dw_cfa_location.
689 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
690 dw_vec_const.
691 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
692 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
693 dw_loc_descr_node.
694 * params.h (param_info, compiler_param): Remove typedef.
695 * opts.h (cl_deferred_param): Remove typedef.
696 * sreal.h (sreal): Remove typedef.
697 * ddg.h (dep_type, dep_data_type): Remove typedef.
698 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
699 typedef.
700 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
701 lto_symtab_encoder_iterator, res_pair): Remove typedef.
702 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
703 and rename to aff_tree.
704 * sched-int.h (region): Remove typedef.
705 * diagnostic.h (diagnostic_info,
706 diagnostic_classification_change_t): Remove typedef.
707 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
708 affine_iv.
709 * sbitmap.h (sbitmap_iterator): Remove typedef.
710 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
711 Remove typedef and rename to imm_use_iterator.
712 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
713 ssa_op_iter.
714 * ggc-internal.h (ggc_statistics): Remove typedef.
715 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
716 rename to cselib_val.
717 * tree-core.h (alias_pair): Remove typedef.
718 (constructor_elt_d, constructor_elt): Remove typedef and rename to
719 constructor_elt.
720 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
721 ssa_use_operand_t.
722 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
723 * tree-data-ref.h (conflict_function): Remove typedef.
724 * tree-inline.h (copy_body_data): Remove typedef.
725 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
726 edge_growth_cache_entry): Remove typedef.
727 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
728 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
729 Remove typedef and rename to gimple_stmt_iterator.
730 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
731 rename to ce_if_block.
732 (edge_iterator): Remove typedef.
733 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
734 and rename to ipa_agg_jf_item.
735 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
736 ipa_parm_adjustment_t): Remove typedef.
737 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
738 ipa_jump_func.
739 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
740 ipa_edge_args.
741 * gcov-io.h (gcov_bucket_type): Remove typedef.
742 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
743 to gcov_working_set_t.
744 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
745 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
746 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
747 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
748 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
749 replace_label_data): Remove typedef.
750 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
751 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
752 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
753 sel_region_bb_info_def, succ_iterator): Remove typedef.
754 (deps_where_def, deps_where_t): Remove typedef and rename to
755 deps_where_t.
756 * coretypes.h: Adapt forward declarations.
757 * tree-scalar-evolution.h: Likewise.
758 * tree-ssa-address.h: Likewise.
759 * tree-ssa-operands.h: Likewise.
760 * function.h: Likewise.
761 * config/frv/frv-protos.h: Likewise.
762 * targhooks.h: Likewise.
763 * basic_block.h: Likewise.
764 * rtl.def: Adapt documentation.
765 * doc/tm.texi: Likewise.
766 * ipa-cp.c: Adapt uses.
767 * bitmap.c: Likewise.
768 * dwarf2out.c: Likewise.
769 * target.def: Likewise.
770 * ipa-inline-analysis.c: Likewise.
771 * dwarf2cfi.c: Likewise.
772 * tree-ssa-loop-ivopts.c: Likewise.
773 * lto-cgraph.c: Likewise.
774 * config/frv/frv.c: Likewise.
775 * ifcvt.c: Likewise.
776 * ipa-prop.c: Likewise.
777
778 2013-12-10 Kai Tietz <ktietz@redhat.com>
779
780 PR target/56807
781 * config/i386/i386.c (ix86_expand_prologue): Address saved
782 registers stack-relative, not via frame-pointer.
783
784 2013-12-10 Richard Biener <rguenther@suse.de>
785
786 PR middle-end/38474
787 * tree-ssa-structalias.c (solution_set_expand): Expand into
788 a different possibly cached bitmap and return the result.
789 (set_union_with_increment): Pass in a shared expanded bitmap
790 and adjust.
791 (do_sd_constraint): Likewise.
792 (do_ds_constraint): Likewise.
793 (do_complex_constraint): Likewise.
794 (solve_graph): Manage the shared expanded bitmap.
795
796 2013-12-10 Jakub Jelinek <jakub@redhat.com>
797
798 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
799 (LOOP_VINFO_SCALAR_LOOP): Define.
800 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
801 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
802 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
803 MASK_STORE.
804 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
805 internal fns.
806 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
807 tree-ssa-address.h.
808 (release_bb_predicate): New function.
809 (free_bb_predicate): Use it.
810 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
811 just to immediately allocate it again.
812 (add_to_predicate_list): Add loop argument. If basic blocks that
813 dominate loop->latch don't insert any predicate.
814 (add_to_dst_predicate_list): Adjust caller.
815 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
816 handle it like flag_tree_loop_if_convert_stores.
817 (insert_gimplified_predicates): Likewise.
818 (ifcvt_can_use_mask_load_store): New function.
819 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
820 argument, check if some conditional loads or stores can't be
821 converted into MASK_LOAD or MASK_STORE.
822 (if_convertible_stmt_p): Add any_mask_load_store argument,
823 pass it down to if_convertible_gimple_assign_stmt_p.
824 (predicate_bbs): Don't return bool, only check if the last stmt
825 of a basic block is GIMPLE_COND and handle that. Adjust
826 add_to_predicate_list caller.
827 (if_convertible_loop_p_1): Only call predicate_bbs if
828 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
829 afterwards, check gimple_code of stmts here. Replace is_predicated
830 check with dominance check. Add any_mask_load_store argument,
831 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
832 call if_convertible_phi_p only after all if_convertible_stmt_p
833 calls.
834 (if_convertible_loop_p): Add any_mask_load_store argument,
835 pass it down to if_convertible_loop_p_1.
836 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
837 (combine_blocks): Add any_mask_load_store argument, pass
838 it down to insert_gimplified_predicates and call predicate_mem_writes
839 if it is set. Call predicate_bbs.
840 (version_loop_for_if_conversion): New function.
841 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
842 calls. Return todo flags instead of bool, call
843 version_loop_for_if_conversion if if-conversion should be just
844 for the vectorized loops and nothing else.
845 (main_tree_if_conversion): Adjust caller. Don't call
846 tree_if_conversion for dont_vectorize loops if if-conversion
847 isn't explicitly enabled.
848 * tree-vect-data-refs.c (vect_check_gather): Handle
849 MASK_LOAD/MASK_STORE.
850 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
851 * gimple.h (gimple_expr_type): Handle MASK_STORE.
852 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
853 expand_MASK_STORE): New functions.
854 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
855 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
856 (vectorize_loops): Don't try to vectorize loops with
857 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
858 loops, fold LOOP_VECTORIZED internal call depending on if loop
859 has been vectorized or not.
860 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
861 New function.
862 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
863 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
864 still to loop's entry or exit edge.
865 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
866 down to slpeel_tree_duplicate_loop_to_edge_cfg.
867 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
868 Adjust callers.
869 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
870 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
871 right place in the CFG afterwards.
872 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
873 MASK_STORE.
874 * cfgloop.h (struct loop): Add dont_vectorize field.
875 * tree-loop-distribution.c (copy_loop_before): Adjust
876 slpeel_tree_duplicate_loop_to_edge_cfg caller.
877 * optabs.def (maskload_optab, maskstore_optab): New optabs.
878 * passes.def: Add a note that pass_vectorize must immediately follow
879 pass_if_conversion.
880 * tree-predcom.c (split_data_refs_to_components): Give up if
881 DR_STMT is a call.
882 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
883 is NULL.
884 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
885 and MASK_STORE.
886 (vectorizable_mask_load_store): New function.
887 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
888 (vect_transform_stmt): Handle MASK_STORE.
889 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
890 DR_STMT where lhs is NULL.
891 * optabs.h (can_vec_perm_p): Fix up comment typo.
892 (can_vec_mask_load_store_p): New prototype.
893 * optabs.c (can_vec_mask_load_store_p): New function.
894
895 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
896
897 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
898 the extraction of a bit-field of null size.
899
900 2013-12-10 Marek Polacek <polacek@redhat.com>
901
902 PR sanitizer/59437
903 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
904 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
905 instead of gimple_code.
906
907 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
908
909 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
910 Add android definitions.
911 (s390x-*-linux*): Use linux-protos.h.
912
913 2013-12-10 Bin Cheng <bin.cheng@arm.com>
914
915 PR tree-optimization/41488
916 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
917 for PEELED_CHREC kind IV.
918 * tree-scalar-evolution.c: Include necessary header files.
919 (peeled_chrec_map, simplify_peeled_chrec): New.
920 (analyze_evolution_in_loop): New static variable.
921 Call simplify_peeled_chrec.
922 (scev_initialize): Initialize peeled_chrec_map.
923 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
924
925 2013-12-09 Andrew Pinski <apinski@cavium.com>
926
927 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
928 that options are conflicting ones.
929
930 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
931
932 * optabs.c (gen_int_libfunc): Do not compare modes directly.
933
934 2013-12-09 David Malcolm <dmalcolm@redhat.com>
935
936 * basic-block.h (FOR_ALL_BB): Eliminate macro.
937
938 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
939 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
940
941 * cfganal.c (inverted_post_order_compute): Likewise.
942 * cfgcleanup.c (try_optimize_cfg): Likewise.
943 * cfgexpand.c (add_scope_conflicts): Likewise.
944 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
945 * cfgrtl.c (relink_block_chain): Likewise.
946 * dce.c (mark_artificial_uses): Likewise.
947 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
948 * df-problems.c (df_lr_verify_solution_start,
949 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
950 df_live_verify_solution_start, df_live_verify_solution_end,
951 df_live_set_all_dirty, df_live_verify_transfer_functions,
952 df_md_local_comput): Likewise.
953 * df-scan.c (df_scan_free_internal, df_scan_alloc)
954 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
955 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
956 free_dominance_info): Likewise.
957 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
958 * graph.c (draw_cfg_edges): Likewise.
959 * graphite-scop-detection.c (print_graphite_scop_statistics,
960 dot_all_scops_1): Likewise.
961 * graphite.c (print_global_statistics,
962 print_graphite_scop_statistics): Likewise.
963 * ira.c (do_reload): Likewise.
964 * loop-init.c (loop_optimizer_finalize): Likewise.
965 * lto-streamer-in.c (input_function): Likewise.
966 * lto-streamer-out.c (output_function): Likewise.
967 * mcf.c (adjust_cfg_counts): Likewise.
968 * predict.c (estimate_loops): Likewise.
969 * sched-rgn.c (haifa_find_rgns): Likewise.
970 * tree-cfg.c (split_critical_edges): Likewise.
971 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
972 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
973 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
974 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
975 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
976 * vtable-verify.c (vtable_verify_main): Likewise.
977 * web.c (web_main): Likewise.
978
979 2013-12-09 David Malcolm <dmalcolm@redhat.com>
980
981 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
982
983 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
984 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
985 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
986 rtl_verify_bb_insns, rtl_verify_bb_pointers,
987 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
988 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
989 * config/sh/sh.c (sh_md_init_global): Likewise.
990 * config/sh/sh_optimize_sett_clrt.cc
991 (sh_optimize_sett_clrt::execute): Likewise.
992 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
993 Likewise.
994 * dominance.c (calc_dfs_tree): Likewise.
995 * final.c (final): Likewise.
996 * function.c (thread_prologue_and_epilogue_insns): Likewise.
997 * gcse.c (compute_code_hoist_vbeinout): Likewise.
998 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
999 * lcm.c (compute_antinout_edge): Likewise.
1000 * mode-switching.c (optimize_mode_switching): Likewise.
1001 * postreload.c (reload_combine): Likewise.
1002 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1003 * tree-ssa-live.c (live_worklist): Likewise.
1004
1005 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1006
1007 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1008
1009 * asan.c (transform_statements, execute_sanopt): Eliminate
1010 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1011 explicit.
1012 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1013 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1014 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1015 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1016 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1017 duplicate_computed_gotos): Likewise.
1018 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1019 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1020 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1021 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1022 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1023 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1024 Likewise.
1025 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1026 verify_loop_structure): Likewise.
1027 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1028 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1029 verify_hot_cold_block_grouping, purge_all_dead_edges,
1030 fixup_abnormal_edges, record_effective_endpoints,
1031 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1032 break_superblocks): Likewise.
1033 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1034 cgraph_rebuild_references): Likewise.
1035 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1036 * combine.c (delete_noop_moves, create_log_links,
1037 combine_instructions): Likewise.
1038 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1039 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1040 Likewise.
1041 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1042 c6x_reorg): Likewise.
1043 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1044 * config/frv/frv.c (frv_optimize_membar): Likewise.
1045 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1046 * config/ia64/ia64.c (ia64_reorg): Likewise.
1047 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1048 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1049 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1050 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1051 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1052 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1053 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1054 reorder_var_tracking_notes): Likewise.
1055 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1056 reorder_var_tracking_notes): Likewise.
1057 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1058 * cprop.c (compute_hash_table_work, compute_cprop_data,
1059 local_cprop_pass, find_implicit_sets): Likewise.
1060 * cse.c (cse_condition_code_reg): Likewise.
1061 * dce.c (prescan_insns_for_dce): Likewise.
1062 * df-core.c (df_compact_blocks): Likewise.
1063 * df-problems.c (df_word_lr_alloc): Likewise.
1064 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1065 df_update_entry_exit_and_calls): Likewise.
1066 * dominance.c (calculate_dominance_info, verify_dominators,
1067 debug_dominance_info): Likewise.
1068 * dse.c (dse_step5_nospill): Likewise.
1069 * except.c (finish_eh_generation): Likewise.
1070 * final.c (compute_alignments): Likewise.
1071 * function.c (thread_prologue_and_epilogue_insns,
1072 rest_of_match_asm_constraints): Likewise.
1073 * gcse.c (compute_hash_table_work, prune_expressions,
1074 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1075 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1076 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1077 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1078 find_explicit_erroneous_behaviour): Likewise.
1079 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1080 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1081 * haifa-sched.c (haifa_sched_init): Likewise.
1082 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1083 Likewise.
1084 * ifcvt.c (if_convert): Likewise.
1085 * init-regs.c (initialize_uninitialized_regs): Likewise.
1086 * ipa-prop.c (ipcp_transform_function): Likewise.
1087 * ipa-pure-const.c (analyze_function): Likewise.
1088 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1089 * ira-build.c (form_loop_tree): Likewise.
1090 * ira-costs.c (find_costs_and_classes): Likewise.
1091 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1092 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1093 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1094 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1095 * jump.c (mark_all_labels): Likewise.
1096 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1097 compute_nearerout, compute_rev_insert_delete): Likewise.
1098 * loop-init.c (fix_loop_structure): Likewise.
1099 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1100 * lower-subreg.c (decompose_multiword_subregs,
1101 decompose_multiword_subregs): Likewise.
1102 * lra-assigns.c (assign_by_spills): Likewise.
1103 * lra-coalesce.c (lra_coalesce): Likewise.
1104 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1105 Likewise.
1106 * lra-eliminations.c (lra_init_elimination): Likewise.
1107 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1108 lra_final_code_change): Likewise.
1109 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1110 update_inc_notes): Likewise.
1111 * mcf.c (adjust_cfg_counts): Likewise.
1112 * mode-switching.c (optimize_mode_switching): Likewise.
1113 * modulo-sched.c (rest_of_handle_sms): Likewise.
1114 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1115 expand_omp_target): Likewise.
1116 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1117 * postreload.c (reload_cse_regs_1): Likewise.
1118 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1119 tree_estimate_probability, expensive_function_p,
1120 estimate_bb_frequencies, compute_function_frequency): Likewise.
1121 * profile.c (is_inconsistent, compute_branch_probabilities,
1122 branch_prob): Likewise.
1123 * ree.c (find_removable_extensions): Likewise.
1124 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1125 * regcprop.c (copyprop_hardreg_forward): Likewise.
1126 * reginfo.c (init_subregs_of_mode): Likewise.
1127 * regrename.c (regrename_analyze): Likewise.
1128 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1129 Likewise.
1130 * reload1.c (has_nonexceptional_receiver, reload,
1131 calculate_elim_costs_all_insns): Likewise.
1132 * resource.c (init_resource_info, free_resource_info): Likewise.
1133 * sched-ebb.c (schedule_ebbs): Likewise.
1134 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1135 haifa_find_rgns, sched_rgn_local_init): Likewise.
1136 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1137 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1138 make_regions_from_the_rest): Likewise.
1139 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1140 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1141 * store-motion.c (compute_store_table, build_store_vectors,
1142 one_store_motion_pass): Likewise.
1143 * tracer.c (tail_duplicate): Likewise.
1144 * trans-mem.c (compute_transaction_bits): Likewise.
1145 * tree-call-cdce.c (tree_call_cdce): Likewise.
1146 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1147 fold_cond_expr_cond, make_edges, assign_discriminators,
1148 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1149 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1150 execute_fixup_cfg): Likewise.
1151 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1152 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1153 Likewise.
1154 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1155 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1156 mark_reachable_handlers): Likewise.
1157 * tree-emutls.c (lower_emutls_function_body): Likewise.
1158 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1159 * tree-inline.c (optimize_inline_calls): Likewise.
1160 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1161 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1162 * tree-object-size.c (compute_object_sizes): Likewise.
1163 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1164 insert_backedge_copies, tree_profiling): Likewise.
1165 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1166 * tree-sra.c (scan_function, sra_modify_function_body,
1167 propagate_dereference_distances, ipa_sra_modify_function_body,
1168 convert_callers): Likewise.
1169 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1170 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1171 create_outofssa_var_map, coalesce_partitions): Likewise.
1172 * tree-ssa-copy.c (init_copy_prop): Likewise.
1173 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1174 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1175 eliminate_unnecessary_stmts): Likewise.
1176 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1177 Likewise.
1178 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1179 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1180 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1181 analyze_memory_references, fill_always_executed_in,
1182 tree_ssa_lim_finalize): Likewise.
1183 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1184 Likewise.
1185 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1186 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1187 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1188 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1189 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1190 Likewise.
1191 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1192 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1193 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1194 tree_ssa_uncprop): Likewise.
1195 * tree-ssa-uninit.c (warn_uninitialized_vars,
1196 execute_late_warn_uninitialized): Likewise.
1197 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1198 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1199 Likewise.
1200 * tree-switch-conversion.c (do_switchconv): Likewise.
1201 * tree-vect-generic.c (expand_vector_operations): Likewise.
1202 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1203 execute_vect_slp): Likewise.
1204 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1205 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1206 Likewise.
1207 * ubsan.c (ubsan_pass): Likewise.
1208 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1209 gimple_find_values_to_profile): Likewise.
1210 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1211 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1212
1213 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1214
1215 * basic-block.h (last_basic_block): Eliminate macro.
1216
1217 * asan.c (transform_statements): Eliminate use of last_basic_block
1218 in favor of last_basic_block_for_fn, in order to make use of cfun
1219 explicit.
1220 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1221 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1222 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1223 * cfg.c (compact_blocks): Likewise.
1224 * cfganal.c (mark_dfs_back_edges,
1225 control_dependences::control_dependences, post_order_compute,
1226 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1227 single_pred_before_succ_order): Likewise.
1228 * cfgbuild.c (make_edges): Likewise.
1229 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1230 * cfghooks.c (verify_flow_info): Likewise.
1231 * cfgloop.c (verify_loop_structure): Likewise.
1232 * cfgloopanal.c (just_once_each_iteration_p,
1233 mark_irreducible_loops): Likewise.
1234 * cfgloopmanip.c (fix_bb_placements, remove_path,
1235 update_dominators_in_loop): Likewise.
1236 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1237 break_superblocks, rtl_flow_call_edges_add): Likewise.
1238 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1239 * config/frv/frv.c (frv_optimize_membar): Likewise.
1240 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1241 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1242 * cprop.c (compute_local_properties, find_implicit_sets,
1243 bypass_conditional_jumps, one_cprop_pass): Likewise.
1244 * cse.c (cse_main): Likewise.
1245 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1246 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1247 * df-problems.c (df_lr_verify_solution_start,
1248 df_live_verify_solution_start, df_md_local_compute): Likewise.
1249 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1250 calc_idoms): Likewise.
1251 * domwalk.c (dom_walker::walk): Likewise.
1252 * dse.c (dse_step0, dse_step3): Likewise.
1253 * function.c (epilogue_done): Likewise.
1254 * gcse.c (alloc_gcse_mem, compute_local_properties,
1255 prune_insertions_deletions, compute_pre_data,
1256 pre_expr_reaches_here_p, one_pre_gcse_pass,
1257 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1258 one_code_hoisting_pass): Likewise.
1259 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1260 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1261 * haifa-sched.c (unlink_bb_notes): Likewise.
1262 * ipa-split.c (execute_split_functions): Likewise.
1263 * ira-build.c (create_loop_tree_nodes,
1264 remove_unnecessary_regions): Likewise.
1265 * ira-emit.c (ira_emit): Likewise.
1266 * ira.c (find_moveable_pseudos, ira): Likewise.
1267 * lcm.c (compute_antinout_edge, compute_laterin,
1268 compute_insert_delete, pre_edge_lcm, compute_available,
1269 compute_nearerout, compute_rev_insert_delete,
1270 pre_edge_rev_lcm): Likewise.
1271 * loop-unroll.c (opt_info_start_duplication,
1272 apply_opt_in_copies): Likewise.
1273 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1274 * lra-lives.c (lra_create_live_ranges): Likewise.
1275 * lra.c (lra): Likewise.
1276 * mode-switching.c (optimize_mode_switching): Likewise.
1277 * recog.c (split_all_insns): Likewise.
1278 * regcprop.c (copyprop_hardreg_forward): Likewise.
1279 * regrename.c (regrename_analyze): Likewise.
1280 * reload1.c (reload): Likewise.
1281 * resource.c (init_resource_info): Likewise.
1282 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1283 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1284 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1285 recompute_rev_top_order, sel_init_pipelining,
1286 make_regions_from_the_rest): Likewise.
1287 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1288 Likewise.
1289 * tracer.c (tail_duplicate): Likewise.
1290 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1291 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1292 gimple_flow_call_edges_add): Likewise.
1293 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1294 cleanup_tree_cfg_1): Likewise.
1295 * tree-complex.c (tree_lower_complex): Likewise.
1296 * tree-inline.c (copy_cfg_body): Likewise.
1297 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1298 prepare_def_site_for, update_ssa): Likewise.
1299 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1300 * tree-ssa-dom.c (record_edge_info): Likewise.
1301 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1302 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1303 * tree-ssa-loop-manip.c (copy_phi_node_args
1304 gimple_duplicate_loop_to_header_edge): Likewise.
1305 * tree-ssa-pre.c (compute_antic): Likewise.
1306 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1307 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1308 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1309 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1310 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1311 * tree-stdarg.c (reachable_at_most_once): Likewise.
1312 * tree-vrp.c (find_assert_locations): Likewise.
1313 * var-tracking.c (vt_find_locations): Likewise.
1314
1315 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1316
1317 * basic-block.h (profile_status): Eliminate macro.
1318
1319 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1320 profile_status macro in favor of profile_status_for_fn, making
1321 use of cfun explicit.
1322 * cfghooks.c (account_profile_record): Likewise.
1323 * cfgloopanal.c (single_likely_exit):
1324 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1325 * graphite.c (graphite_finalize):
1326 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1327 ubsan_expand_si_overflow_neg_check,
1328 ubsan_expand_si_overflow_mul_check): Likewise.
1329 * ipa-split.c (consider_split, execute_split_functions):
1330 * loop-unroll.c (decide_peel_simple):
1331 * optabs.c (emit_cmp_and_jump_insn_1):
1332 * predict.c (maybe_hot_edge_p, probably_never_executed,
1333 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1334 tree_estimate_probability_driver, estimate_bb_frequencies,
1335 compute_function_frequency, rebuild_frequencies): Likewise.
1336 * profile.c (compute_branch_probabilities): Likewise.
1337 * tree-cfg.c (gimple_account_profile_record): Likewise.
1338 * tree-inline.c (optimize_inline_calls): Likewise.
1339
1340 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1341
1342 * basic-block.h (label_to_block_map): Eliminate macro.
1343
1344 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1345 with uses of label_to_block_map_for_fn, making uses of cfun be
1346 explicit.
1347 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1348 (verify_gimple_label): Likewise.
1349
1350 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1351
1352 * basic-block.h (basic_block_info): Eliminate macro.
1353
1354 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1355 basic_block_info with basic_block_info_for_fn, making uses
1356 of cfun be explicit.
1357 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1358
1359 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1360
1361 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1362
1363 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1364 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1365 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1366 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1367 * caller-save.c (insert_one_insn): Likewise.
1368 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1369 * cfgexpand.c (add_scope_conflicts): Likewise.
1370 * cfghooks.c (verify_flow_info): Likewise.
1371 * cfgloop.c (flow_loops_find): Likewise.
1372 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1373 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1374 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1375 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1376 * cse.c (cse_main): Likewise.
1377 * dce.c (fast_dce): Likewise.
1378 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1379 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1380 df_bb_replace, df_dump_region): Likewise.
1381 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1382 df_live_bb_local_compute, df_chain_remove_problem)
1383 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1384 df_md_bb_local_compute, df_md_local_compute,
1385 df_md_transfer_function): Likewise.
1386 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1387 df_reorganize_refs_by_insn, df_bb_refs_collect,
1388 df_record_entry_block_defs, df_update_entry_block_defs,
1389 df_record_exit_block_uses): Likewise.
1390 * dominance.c (nearest_common_dominator_for_set): Likewise.
1391 * gcse.c (hoist_code): Likewise.
1392 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1393 * ipa-inline-analysis.c (param_change_prob,
1394 estimate_function_body_sizes): Likewise.
1395 * ipa-split.c (dominated_by_forbidden): Likewise.
1396 * loop-unroll.c (apply_opt_in_copies): Likewise.
1397 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1398 * lra-lives.c (lra_create_live_ranges): Likewise.
1399 * predict.c (propagate_freq): Likewise.
1400 * regrename.c (regrename_analyze): Likewise.
1401 * regstat.c (regstat_bb_compute_ri,
1402 regstat_bb_compute_calls_crossed): Likewise.
1403 * resource.c (mark_target_live_regs): Likewise.
1404 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1405 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1406 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1407 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1408 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1409 * sched-vis.c (debug_bb_n_slim): Likewise.
1410 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1411 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1412 * sel-sched.c (remove_insns_that_need_bookkeeping)
1413 (current_region_empty_p, sel_region_init,
1414 simplify_changed_insns): Likewise.
1415 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1416 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1417 * tree-cfg.c (make_edges, end_recording_case_labels,
1418 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1419 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1420 gimple_purge_all_dead_eh_edges,
1421 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1422 * tree-cfgcleanup.c (fixup_noreturn_call,
1423 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1424 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1425 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1426 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1427 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1428 * tree-ssa-live.c (live_worklist): Likewise.
1429 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1430 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1431 * tree-ssa-pre.c (compute_antic): Likewise.
1432 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1433 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1434 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1435 same_succ_flush_bbs, update_worklist, set_cluster,
1436 same_phi_alternatives, find_clusters_1, apply_clusters,
1437 update_debug_stmts): Likewise.
1438 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1439 thread_through_all_blocks): Likewise.
1440 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1441 * tree-vrp.c (find_assert_locations): Likewise.
1442
1443 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1444
1445 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1446
1447 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1448 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1449 (expunge_block): Likewise.
1450 * cfgrtl.c (create_basic_block_structure): Likewise.
1451 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1452 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1453 * tree-cfg.c (create_bb): Likewise.
1454
1455 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1456
1457 * basic-block.h (profile_status_for_function): Rename to...
1458 (profile_status_for_fn): ...this.
1459
1460 * cfg.c (check_bb_profile): Update for renaming.
1461 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1462 * lto-streamer-in.c (input_cfg): Likewise.
1463 * lto-streamer-out.c (output_cfg): Likewise.
1464 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1465 maybe_hot_bb_p, probably_never_executed)
1466 (handle_missing_profiles): Likewise.
1467 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1468 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1469
1470 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1471
1472 * basic-block.h (label_to_block_map_for_function): Rename to...
1473 (label_to_block_map_for_fn): ...this.
1474
1475 * lto-streamer-in.c (input_cfg): Update for renaming.
1476 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1477
1478 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1479
1480 * basic-block.h (last_basic_block_for_function): Rename to...
1481 (last_basic_block_for_fn): ...this.
1482
1483 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1484 last_basic_block_for_function to last_basic_block_for_fn.
1485 * lto-streamer-in.c (input_cfg): Likewise.
1486 * lto-streamer-out.c (output_cfg): Likewise.
1487 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1488 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1489 Likewise.
1490
1491 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1492
1493 * basic-block.h (basic_block_info_for_function): Rename to...
1494 (basic_block_info_for_fn): ...this.
1495 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1496 (BASIC_BLOCK_FOR_FN): ...this.
1497 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1498 (SET_BASIC_BLOCK_FOR_FN): ...this.
1499
1500 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1501 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1502 * ipa-utils.c (ipa_merge_profiles): Likewise.
1503 * lto-streamer-in.c (make_new_block): Update for renaming of
1504 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1505 (input_cfg): Update for renamings.
1506 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1507 (dump_function_to_file): Update for renaming of
1508 basic_block_info_for_function to basic_block_info_for_fn.
1509
1510 2013-12-09 Richard Biener <rguenther@suse.de>
1511
1512 PR middle-end/38474
1513 * tree-ssa-structalias.c (set_union_with_increment): Remove
1514 unreachable code.
1515 (do_complex_constraint): Call set_union_with_increment with
1516 the solution delta, not the full solution.
1517 (make_transitive_closure_constraints): Merge the two
1518 constraints.
1519
1520 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1521
1522 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1523 more address validation checks.
1524
1525 2013-12-09 Marek Polacek <polacek@redhat.com>
1526
1527 PR sanitizer/59415
1528 * vtable-verify.c (verify_bb_vtables): Check the return value
1529 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1530
1531 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1532
1533 * config/arm/arm.md (generic_sched): Add cortexa12.
1534 (generic_vfp): Likewise.
1535 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1536 (arm_cortex_a12_tune): New tuning struct.
1537 * config/arm/arm-cores.def: Add cortex-a12.
1538 * config/arm/arm-tables.opt: Regenerate.
1539 * config/arm/arm-tune.md: Likewise.
1540 * config/arm/bpabi.h: Add cortex-a12.
1541 * doc/invoke.texi: Document -mcpu=cortex-a12.
1542
1543 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1544
1545 * doc/install.texi (Prerequisites): Explicitly mention C library
1546 and its headers for multilib builds.
1547
1548 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1549
1550 PR target/52898
1551 PR target/51697
1552 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1553 OPT_mcbranchdi entry.
1554 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1555 emit a warning.
1556 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1557 and TARGET_CMPEQDI_T variables.
1558 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1559
1560 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1561
1562 * config/linux.h: Fix typo in a comment.
1563
1564 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1565
1566 * config.gcc (*linux*): Split libc selection from Android support.
1567 Add libc selection to all *linux* targets. Add Android support to
1568 architectures that support it.
1569 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1570 (mips*-*-linux*): Add Android support.
1571
1572 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1573 Maxim Kuvyrkov <maxim@kugelworks.com>
1574
1575 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1576 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1577 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1578 to linux.h.
1579 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1580 to linux.h.
1581 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1582 Define appropriately for Linux and uClinux targets.
1583
1584 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1585
1586 * config/linux.c (linux_has_ifunc_p): Use correct test.
1587
1588 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1589
1590 * config/linux.c (linux_android_has_ifunc_p): Rename to
1591 linux_has_ifunc_p.
1592 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1593 * config/linux-protos.h (linux_android_has_ifunc_p,)
1594 (linux_android_libc_has_function): Update declarations.
1595 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1596 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1597
1598 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1599
1600 * linux-android.c: Rename to linux.c.
1601 * t-linux-android: Rename to t-linux. Update references
1602 to linux-android.c
1603 * config.gcc: Update references to t-linux-android and linux-android.o.
1604
1605 2013-12-07 Alan Modra <amodra@gmail.com>
1606
1607 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1608 alternative.
1609
1610 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1611
1612 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1613
1614 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1615
1616 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1617 constraint.
1618
1619 2013-12-06 Caroline Tice <cmtice@google.com>
1620
1621 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1622 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1623 vtable pointer with the results of the verification call, rather than
1624 only the uses in the next statement.
1625
1626 2013-12-06 Andrew Pinski <apinski@cavium.com>
1627
1628 PR target/59092
1629 * config/aarch64/aarch64.md (trap): New pattern.
1630
1631 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1632
1633 PR tree-optimization/59388
1634 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1635 gimplify tem after stmt rather than before it.
1636
1637 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1638 (get_references_in_stmt): Don't record operand addresses, but
1639 operands themselves.
1640 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1641 Adjust for the pos -> ref change.
1642
1643 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1644
1645 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1646
1647 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1648 (processor_alias_table): Likewise.
1649 (ix86_option_override_internal): Likewise.
1650 * config/i386/i386.h (target_cpu_default): Replace
1651 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1652
1653 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1654
1655 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1656
1657 PR target/59405
1658 * config/i386/i386.c (type_natural_mode): Properly handle
1659 size 8 for !TARGET_64BIT.
1660
1661 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1662
1663 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1664 vec::release.
1665
1666 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1667 Mark Mitchell <mark@codesourcery.com>
1668
1669 PR target/59091
1670 * config/arm/arm.md (trap): New pattern.
1671 * config/arm/types.md: Added a type for trap.
1672
1673 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1674
1675 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1676
1677 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1678
1679 PR target/59316
1680 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1681 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1682 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1683 (TARGET_BUILTIN_DECL): Define.
1684 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1685 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1686 (enum sparc_builtins): New enumeral type.
1687 (sparc_builtins): New static array.
1688 (sparc_builtins_icode): Likewise.
1689 (def_builtin): Accept a separate icode and save the result.
1690 (def_builtin_const): Likewise.
1691 (sparc_fpu_init_builtins): New function.
1692 (sparc_vis_init_builtins): Pass the builtin code.
1693 (sparc_init_builtins): Call it if TARGET_FPU.
1694 (sparc_builtin_decl): New function.
1695 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1696 (sparc_handle_vis_mul8x16): Use the builtin code.
1697 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1698 and SPARC_BUILTIN_PDISTN.
1699 (compound_expr): New helper function.
1700 (sparc_atomic_assign_expand_fenv): New function.
1701 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1702 and UNSPECV_STFSR.
1703 (flush, flushdi): Merge into single pattern.
1704 (ldfsr): New instruction.
1705 (stfsr): Likewise.
1706
1707 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1708
1709 * asan.c: Remove struct tags when referring to class varpool_node.
1710 * cgraph.h: Likewise.
1711 * cgraphbuild.c: Likewise.
1712 * cgraphunit.c: Likewise.
1713 * dbxout.c: Likewise.
1714 * dwarf2out.c: Likewise.
1715 * gimple-fold.c: Likewise.
1716 * ipa-devirt.c: Likewise.
1717 * ipa-ref-inline.h: Likewise.
1718 * ipa-ref.h: Likewise.
1719 * ipa-reference.c: Likewise.
1720 * ipa-utils.c: Likewise.
1721 * ipa.c: Likewise.
1722 * lto-cgraph.c: Likewise.
1723 * lto-streamer-out.c: Likewise.
1724 * lto-streamer.h: Likewise.
1725 * passes.c: Likewise.
1726 * toplev.c: Likewise.
1727 * tree-eh.c: Likewise.
1728 * tree-emutls.c: Likewise.
1729 * tree-pass.h: Likewise.
1730 * tree-ssa-structalias.c: Likewise.
1731 * tree-vectorizer.c: Likewise.
1732 * tree.c: Likewise.
1733 * varasm.c: Likewise.
1734 * varpool.c: Likewise.
1735
1736 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1737
1738 * cgraphunit.c: Remove struct tags when referring to class
1739 ipa_opt_pass_d or class opt_pass.
1740 * function.h: Likewise.
1741 * lto-cgraph.c: Likewise.
1742 * pass_manager.h: Likewise.
1743 * passes.c: Likewise.
1744 * tree-pass.h: Likewise.
1745
1746 2013-12-06 Richard Biener <rguenther@suse.de>
1747
1748 PR tree-optimization/59058
1749 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1750 (LOOP_VINFO_NITERSM1): New macro.
1751 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1752 the vector loop entry test in terms of scalar latch executions.
1753 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1754 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1755 number of latch executions.
1756 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1757 (vect_analyze_loop_form): Likewise.
1758 (vect_generate_tmps_on_preheader): Compute the number of
1759 vectorized iterations differently.
1760
1761 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1762
1763 * config/score/score.c (score_force_temporary): Delete function.
1764 (score_split_symbol): Ditto.
1765 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1766 parentheses to silence ambiguity warning and reindent.
1767
1768 2013-12-05 Marek Polacek <polacek@redhat.com>
1769
1770 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1771
1772 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1773
1774 * config.gcc: Support --with-cpu=ia.
1775
1776 * config/i386/i386.c (cpu_names): Add "ia".
1777 (processor_alias_table): Likewise.
1778 (ix86_option_override_internal): Disallow -march=ia.
1779 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1780
1781 * doc/invoke.texi: Document -mtune=ia.
1782
1783 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1784
1785 PR rtl-optimization/59317
1786 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1787 as a source.
1788
1789 2013-12-05 Martin Jambor <mjambor@suse.cz>
1790
1791 PR ipa/58253
1792 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1793 non-BLKmode in their naturally aligned type.
1794
1795 2013-12-05 Marek Polacek <polacek@redhat.com>
1796
1797 PR sanitizer/59333
1798 PR sanitizer/59397
1799 * ubsan.c: Include rtl.h and expr.h.
1800 (ubsan_encode_value): Add new parameter. If expanding, assign
1801 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1802 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1803 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1804 * ubsan.h (ubsan_encode_value): Adjust declaration.
1805 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1806 ubsan_build_overflow_builtin above expand_normal call. Surround
1807 this call with push_temp_slots and pop_temp_slots.
1808 (ubsan_expand_si_overflow_neg_check): Likewise.
1809 (ubsan_expand_si_overflow_mul_check): Likewise.
1810
1811 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1812
1813 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1814 the get_alternative_base call with flag_expensive_optimizations.
1815 (alloc_cand_and_find_basis): Likewise.
1816
1817 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1818
1819 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1820 vec_select for overlapping register lanes.
1821
1822 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1823
1824 * config/i386/i386.c (ix86_expand_builtin): Generate
1825 reg for readflags built-in when optimizing.
1826 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1827 (pushfl<mode>2): This. Fix iterator.
1828 (*popfl<mode>): Rename to ...
1829 (*popfl<mode>1): This. Fix iterator.
1830
1831 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1832
1833 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1834 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1835 (ix86_init_mmx_sse_builtins): Define
1836 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1837 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1838 (ix86_expand_builtin): Expand them.
1839 * config/i386/ia32intrin.h (__readeflags): New.
1840 (__writeeflags): Ditto.
1841 * config/i386/i386.md (*pushfl<mode>): Ditto.
1842 (*popfl<mode>1): Ditto.
1843
1844 2013-12-05 Richard Biener <rguenther@suse.de>
1845
1846 PR tree-optimization/59374
1847 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1848 Commonize known and unknown dependence case fixing the allowed
1849 read-write dependence case and dropping code that should not matter.
1850
1851 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1852
1853 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1854 generation of predicated version.
1855 (epilogue_deallocate_stack): Ditto.
1856 (prologue_allocate_stack_pr): Add explicit predicated version.
1857 (epilogue_deallocate_stack_pr): Ditto.
1858 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1859
1860 2013-12-05 Alan Modra <amodra@gmail.com>
1861
1862 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1863 build != host.
1864 <recursive call for build != host>: Clear GMPINC. Don't bother
1865 saving CFLAGS.
1866
1867 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1868 Marek Polacek <polacek@redhat.com>
1869
1870 * opts.c (common_handle_option): Handle
1871 -fsanitize=signed-integer-overflow.
1872 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1873 negv<mode>3, negv<mode>3_1): Define expands.
1874 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1875 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1876 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1877 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1878 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1879 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1880 PROB_ALWAYS): Define.
1881 (ubsan_build_overflow_builtin): Declare.
1882 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1883 internal functions.
1884 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1885 (ubsan_build_overflow_builtin): New function.
1886 (instrument_si_overflow): Likewise.
1887 (ubsan_pass): Add signed integer overflow checking.
1888 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1889 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1890 * internal-fn.c: Include ubsan.h and target.h.
1891 (ubsan_expand_si_overflow_addsub_check): New function.
1892 (ubsan_expand_si_overflow_neg_check): Likewise.
1893 (ubsan_expand_si_overflow_mul_check): Likewise.
1894 (expand_UBSAN_CHECK_ADD): Likewise.
1895 (expand_UBSAN_CHECK_SUB): Likewise.
1896 (expand_UBSAN_CHECK_MUL): Likewise.
1897 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1898 (-A) + B -> B - A when doing the signed integer overflow checking.
1899 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1900 Define.
1901 * tree-vrp.c (extract_range_basic): Handle internal calls.
1902 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1903 optabs.
1904 * asan.c: Include predict.h.
1905 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1906 * predict.c: Move the PROB_* macros...
1907 * predict.h (enum br_predictor): ...here.
1908 (PROB_LIKELY, PROB_UNLIKELY): Define.
1909 * trans-mem.c: Include predict.h.
1910 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1911 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1912
1913 2013-12-04 Jeff Law <law@redhat.com>
1914
1915 * common.opt: Split up -fisolate-erroneous-paths into
1916 -fisolate-erroneous-paths-dereference and
1917 -fisolate-erroneous-paths-attribute.
1918 * invoke.texi: Corresponding changes.
1919 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1920 what kind of statements can be used to infer a non-null range.
1921 * gimple.h (infer_nonnull_range): Update prototype.
1922 * tree-vrp.c (infer_value_range): Corresponding changes.
1923 * opts.c (default_options_table): Update due to option split.
1924 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1925 (find_implicit_erroneous_behaviour): Pass additional arguments
1926 to infer_nonnull_range.
1927 (find_explicit_erroneous_behaviour): Similarly.
1928 (gate_isolate_erroneous_paths): Check both of the new options.
1929
1930 2013-12-04 Jeff Law <law@redhat.com>
1931
1932 * expr.c (expand_assignment): Update comments.
1933
1934 2013-12-04 Tobias Burnus <burnus@net-b.de>
1935
1936 PR debug/37132
1937 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1938 * tree.def (NAMELIST_DECL): Add.
1939 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1940 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1941 * dwarf2out.c (gen_namelist_decl): New function.
1942 (gen_decl_die, dwarf2out_decl): Call it.
1943 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1944 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1945 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1946 call.
1947 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1948
1949 2013-12-03 Xinliang David Li <davidxl@google.com>
1950
1951 * tree-ssa-structalias.c (constraint_set_union): Change return type
1952 from void to bool.
1953 (merge_node_constraints): Ditto.
1954 (unify_nodes): Update changed set when constraints set changes.
1955
1956 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1957
1958 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1959 -fsanitize=address.
1960 * configure: Regenerated.
1961
1962 * gdbasan.in: New file.
1963
1964 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1965
1966 PR rtl-optimization/58726
1967 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1968 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1969
1970 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1971 Uros Bizjak <ubizjak@gmail.com>
1972
1973 PR target/59163
1974 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1975 !TARGET_AVX there is misaligned MEM operand with vector mode
1976 and get_attr_ssememalign is 0, return false.
1977 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1978 computed alignment and for non-temporal loads/stores also
1979 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1980 * config/i386/sse.md
1981 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1982 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1983 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
1984 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
1985 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1986 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1987 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1988 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
1989 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
1990 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
1991 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
1992 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
1993 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
1994 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
1995 * config/i386/i386.md (ssememalign): New define_attr.
1996
1997 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1998
1999 PR tree-optimization/59355
2000 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2001 * opts.c (common_handle_option): Fix comment spelling.
2002
2003 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2004
2005 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2006 (name_expansions): New static variable.
2007 (alt_base_map): Ditto.
2008 (get_alternative_base): New function.
2009 (find_basis_for_candidate): For CAND_REF, optionally call
2010 find_basis_for_base_expr with the returned value from
2011 get_alternative_base.
2012 (record_potential_basis): Add new parameter 'base' of type 'tree';
2013 add an assertion of non-NULL base; use base to set node->base_expr.
2014 (alloc_cand_and_find_basis): Update; call record_potential_basis
2015 for CAND_REF with the returned value from get_alternative_base.
2016 (replace_refs): Dump details on the replacing.
2017 (execute_strength_reduction): Call pointer_map_create for
2018 alt_base_map; call free_affine_expand_cache with &name_expansions.
2019
2020 2013-12-03 Wei Mi <wmi@google.com>
2021
2022 PR rtl-optimization/59020
2023 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2024 (sched_analyze_insn): Call try_group_insn.
2025 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2026 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2027 (group_insns_for_macro_fusion): Removed.
2028 (sched_init): Remove calling group_insns_for_macro_fusion.
2029
2030 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2031
2032 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2033 typo in macro name.
2034 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2035
2036 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2037
2038 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2039 LR_REGNUM.
2040 (aarch64_can_eliminate): Don't check elimination source when
2041 frame_pointer_required is false.
2042
2043 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2044
2045 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2046 position independent code.
2047 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2048
2049 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2050
2051 PR target/59363
2052 * config/i386/i386.c (emit_memset): Adjust destination address
2053 after gen_strset.
2054 (expand_setmem_epilogue): Likewise.
2055
2056 2013-12-03 Marek Polacek <polacek@redhat.com>
2057
2058 PR middle-end/56344
2059 * calls.c (expand_call): Disallow passing huge arguments by value.
2060
2061 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2062
2063 PR tree-optimization/59362
2064 * tree-object-size.c (object_sizes): Change into array of
2065 vec<unsigned HOST_WIDE_INT>.
2066 (compute_builtin_object_size): Check computed bitmap for
2067 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2068 vector if new SSA_NAMEs appeared.
2069 (init_object_sizes): Check computed bitmap for non-NULL.
2070 Call safe_grow on object_sizes elements instead of initializing
2071 it with XNEWVEC.
2072 (fini_object_sizes): Call release on object_sizes elements, don't
2073 set it to NULL.
2074
2075 PR middle-end/59011
2076 * gimplify.c (nonlocal_vla_vars): New variable.
2077 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2078 nonlocal_vla_vars chain.
2079 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2080 if outer_bind has DECL_INITIAL (current_function_decl) block.
2081
2082 PR target/58864
2083 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2084 New functions.
2085 * expr.h (struct saved_pending_stack_adjust): New type.
2086 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2087 prototypes.
2088 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2089 and get_last_insn before do_pending_stack_adjust, call
2090 restore_pending_stack_adjust after delete_insns_since.
2091 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2092 before calling emit_conditional_move.
2093 * expmed.c (expand_sdiv_pow2): Likewise.
2094 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2095
2096 2013-12-02 Jeff Law <law@redhat.com>
2097
2098 PR tree-optimization/59322
2099 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2100 Remove code which copied jump threading paths.
2101
2102 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2103
2104 PR target/58944
2105 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2106 for saving in cl_target_option.
2107 (ix86_tune_string): Ditto.
2108 (ix86_cmodel): Ditto.
2109 (ix86_abi): Ditto.
2110 (ix86_asm_dialect): Ditto.
2111 (ix86_branch_cost): Ditto.
2112 (ix86_dump_tunes): Ditto.
2113 (ix86_force_align_arg_pointer): Ditto.
2114 (ix86_force_drap): Ditto.
2115 (ix86_incoming_stack_boundary_arg): Ditto.
2116 (ix86_pmode): Ditto.
2117 (ix86_preferred_stack_boundary_arg): Ditto.
2118 (ix86_recip_name): Ditto.
2119 (ix86_regparm): Ditto.
2120 (ix86_section_threshold): Ditto.
2121 (ix86_sse2avx): Ditto.
2122 (ix86_stack_protector_guard): Ditto.
2123 (ix86_stringop_alg): Ditto.
2124 (ix86_tls_dialect): Ditto.
2125 (ix86_tune_ctrl_string): Ditto.
2126 (ix86_tune_memcpy_strategy): Ditto.
2127 (ix86_tune_memset_strategy): Ditto.
2128 (ix86_tune_no_default): Ditto.
2129 (ix86_veclibabi_type): Ditto.
2130 * config/i386/i386.c (function_specific_save): Save the above
2131 variables in gcc_options to cl_target_option.
2132 (function_specific_restore): Do the reverse done in
2133 function_specific_save.
2134 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2135 and ix86_tune_string to use the opts structure.
2136 (ix86_option_override_internal):Change
2137 ix86_incoming_stack_boundary_arg to
2138 opts->x_ix86_incoming_stack_boundary_arg
2139
2140 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2141
2142 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2143 in #ifndef IN_LIBGCC2 / #endif.
2144
2145 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2146
2147 PR tree-optimization/59358
2148 * tree-vrp.c (union_ranges): To check for the partially overlapping
2149 ranges or adjacent ranges, also compare *vr0max with vr1max.
2150
2151 2013-12-02 Sterling Augustine  <saugustine@google.com>
2152
2153 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2154 when there isn't a skeleton die.
2155
2156 2013-12-02 Marek Polacek <polacek@redhat.com>
2157
2158 PR sanitizer/59353
2159 * doc/invoke.texi: Document -fsanitize=return.
2160
2161 2013-12-02 Tobias Burnus <burnus@net-b.de>
2162 Manuel López-Ibáñez <manu@gcc.gnu.org>
2163
2164 PR middle-end/59257
2165 * doc/invoke.texi: Add missing @opindex.
2166 (-fsanitize=): Use @gcctabopt instead of @itemize.
2167
2168 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2169
2170 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2171 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2172 targets like arm-none-eabi.
2173 * expr.c (expand_assignment): Handle normal fields like bit regions.
2174
2175 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2176
2177 PR target/58115
2178 * function.c (invoke_set_current_function_hook): Call
2179 targetm.set_current_function after setting this_fn_optabs.
2180
2181 2013-12-02 Richard Biener <rguenther@suse.de>
2182
2183 PR tree-optimization/59139
2184 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2185 code in get_val_for.
2186 (get_val_for): Use gcc_checking_asserts.
2187
2188 2013-12-02 Richard Biener <rguenther@suse.de>
2189
2190 PR middle-end/59199
2191 * tree-ssa-operands.c (opf_implicit): Remove.
2192 (opf_address_taken): New flag.
2193 (get_expr_operands): Remove early out, pass down opf_address_taken for
2194 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2195 (get_indirect_ref_operands): Rename to ...
2196 (get_mem_ref_operands): ... this.
2197 (get_asm_expr_operands): Rename to ...
2198 (get_asm_stmt_operands): ... this.
2199
2200 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2201
2202 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2203
2204 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2205
2206 PR tree-optimization/59356
2207 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2208 offset computation using the precision of the index type.
2209
2210 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2211
2212 PR target/58785
2213 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2214 when rclass is GENERAL_REGS.
2215
2216 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2217
2218 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2219 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2220
2221 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2222
2223 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2224 identifier node.
2225
2226 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2227
2228 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2229
2230 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2231 Eric Botcazou <ebotcazou@adacore.com>
2232
2233 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2234 as applied to nonzero_sign_valid when last_set_mode has less precision
2235 than mode.
2236
2237 2013-11-30 Tobias Burnus <burnus@net-b.de>
2238
2239 PR sanitizer/59275
2240 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2241 environment variable and link to a list with flags.
2242 (-fsanitize=thread): Ditto and update link.
2243
2244 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2245
2246 PR rtl-optimization/59340
2247 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2248
2249 Revert
2250 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2251
2252 * lra.c (lra): Set lra_in_progress before check_rtl call.
2253 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2254 adding clobber regs when LRA is running.
2255
2256 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2257
2258 PR target/59289
2259 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2260
2261 2013-11-29 Richard Biener <rguenther@suse.de>
2262
2263 PR middle-end/59208
2264 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2265 free_stmt_operands, update_stmt_operands): Add struct function
2266 argument.
2267 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2268 function argument from fini_ssa_operands, verify_ssa_operands,
2269 free_stmt_operands and update_stmt_operands everywhere.
2270 * tree-ssanames.h (release_ssa_name_fn): New.
2271 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2272 * tree-ssanames.c (release_ssa_name): Rename to ...
2273 (release_ssa_name_fn): ... this and add struct function argument.
2274 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2275 (update_stmt_fn): New function.
2276 * tree-cfg.c (move_block_to_fn): Adjust.
2277 * tree-if-conv.c (free_bb_predicate): Likewise.
2278 * tree-ssa.c (verify_ssa): Likewise.
2279 (delete_tree_ssa): Likewise.
2280 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2281 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2282 update_stmt_fn instead of update_stmt.
2283
2284 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2285
2286 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2287 for LRA.
2288
2289 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2290
2291 * config/arm/arm.md (store_minmaxsi): Use only when
2292 optimize_function_for_size_p.
2293
2294 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2295 Yury Gribov <y.gribov@samsung.com>
2296
2297 PR sanitizer/59063
2298 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2299 * gcc.c: Using libsanitizer spec instead of explicit libs.
2300
2301 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2302
2303 Reverted:
2304 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2305 * cgraph.h (varpool_node): Add need_bounds_init field.
2306 * lto-cgraph.c (lto_output_varpool_node): Output
2307 need_bounds_init value.
2308 (input_varpool_node): Read need_bounds_init value.
2309 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2310
2311 Reverted:
2312 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2313 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2314 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2315 (gen_type_die_with_usage): Skip pointer bounds.
2316 (dwarf2out_global_decl): Likewise.
2317
2318 Reverted:
2319 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2320 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2321 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2322 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2323 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2324 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2325 (gimple_call_with_bounds_p): New.
2326 (gimple_call_set_with_bounds): New.
2327 (gimple_call_num_nobnd_args): Remove.
2328 (gimple_call_nobnd_arg): Remove.
2329 * tree.h (CALL_WITH_BOUNDS_P): New.
2330 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2331
2332 Reverted:
2333 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2334 * common.opt (fcheck-pointer-bounds): Move to ...
2335 * c-family/c.opt: ... here.
2336 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2337 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2338 * langhooks.h (lang_hooks): Remove chkp_supported field.
2339 * toplev.c (process_options): Remove chkp_supported check.
2340
2341 Reverted:
2342 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2343 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2344 * tree.h (POINTER_BOUNDS_P): New.
2345 (BOUNDED_TYPE_P): New.
2346 (BOUNDED_P): New.
2347 (pointer_bounds_type_node): New.
2348 * tree.c (build_common_tree_nodes): Initialize
2349 pointer_bounds_type_node.
2350 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2351 (gimple_call_num_nobnd_args): New.
2352 (gimple_call_nobnd_arg): New.
2353 (gimple_return_retbnd): New.
2354 (gimple_return_set_retbnd): New
2355 * gimple.c (gimple_build_return): Increase number of ops
2356 for return statement.
2357 (gimple_call_get_nobnd_arg_index): New.
2358 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2359
2360 Reverted:
2361 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2362 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2363 with "chkp ctor" and "bnd_legacy" attributes.
2364 * gimplify.c (gimplify_init_constructor): Avoid infinite
2365 loop during gimplification of bounds initializer.
2366
2367 Reverted:
2368 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2369 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2370 (handle_bnd_legacy): New.
2371 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2372 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2373 attributes.
2374
2375 Reverted:
2376 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2377 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2378 (BT_FN_PTR_CONST_PTR): New.
2379 (BT_FN_CONST_PTR_CONST_PTR): New.
2380 (BT_FN_PTR_CONST_PTR_SIZE): New.
2381 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2382 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2383 (BT_FN_VOID_CONST_PTR_SIZE): New.
2384 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2385 * chkp-builtins.def: New.
2386 * builtins.def: include chkp-builtins.def.
2387 (DEF_CHKP_BUILTIN): New.
2388 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2389 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2390 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2391 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2392 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2393 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2394 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2395 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2396 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2397 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2398 * common.opt (fcheck-pointer-bounds): New.
2399 * toplev.c (process_options): Check Pointer Bounds Checker is
2400 supported.
2401 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2402
2403 Reverted:
2404 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2405 * target.def (builtin_chkp_function): New.
2406 (chkp_bound_type): New.
2407 (chkp_bound_mode): New.
2408 (fn_abi_va_list_bounds_size): New.
2409 (load_bounds_for_arg): New.
2410 (store_bounds_for_arg): New.
2411 * targhooks.h (default_load_bounds_for_arg): New.
2412 (default_store_bounds_for_arg): New.
2413 (default_fn_abi_va_list_bounds_size): New.
2414 (default_chkp_bound_type): New.
2415 (default_chkp_bound_mode): New.
2416 (default_builtin_chkp_function): New.
2417 * targhooks.c (default_load_bounds_for_arg): New.
2418 (default_store_bounds_for_arg): New.
2419 (default_fn_abi_va_list_bounds_size): New.
2420 (default_chkp_bound_type): New.
2421 (default_chkp_bound_mode); New.
2422 (default_builtin_chkp_function): New.
2423 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2424 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2425 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2426 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2427 (TARGET_CHKP_BOUND_TYPE): New.
2428 (TARGET_CHKP_BOUND_MODE): New.
2429 * doc/tm.texi: Regenerated.
2430 * langhooks.h (lang_hooks): Add chkp_supported field.
2431 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2432 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2433
2434 Reverted:
2435 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2436 * config/i386/constraints.md (B): New.
2437 (Ti): New.
2438 (Tb): New.
2439 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2440 * config/i386/i386-modes.def (BND32): New.
2441 (BND64): New.
2442 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2443 * config/i386/i386.c (isa_opts): Add mmpx.
2444 (regclass_map): Add bound registers.
2445 (dbx_register_map): Likewise.
2446 (dbx64_register_map): Likewise.
2447 (svr4_dbx_register_map): Likewise.
2448 (PTA_MPX): New.
2449 (ix86_option_override_internal): Support MPX ISA.
2450 (ix86_conditional_register_usage): Support bound registers.
2451 (print_reg): Likewise.
2452 (ix86_code_end): Add MPX bnd prefix.
2453 (output_set_got): Likewise.
2454 (ix86_output_call_insn): Likewise.
2455 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2456 (ix86_print_operand_punct_valid_p): Likewise.
2457 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2458 UNSPEC_BNDMK_ADDR.
2459 (ix86_class_likely_spilled_p): Add bound regs support.
2460 (ix86_hard_regno_mode_ok): Likewise.
2461 (x86_order_regs_for_local_alloc): Likewise.
2462 (ix86_bnd_prefixed_insn_p): New.
2463 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2464 (FIXED_REGISTERS): Add bound registers.
2465 (CALL_USED_REGISTERS): Likewise.
2466 (REG_ALLOC_ORDER): Likewise.
2467 (HARD_REGNO_NREGS): Likewise.
2468 (TARGET_MPX): New.
2469 (VALID_BND_REG_MODE): New.
2470 (FIRST_BND_REG): New.
2471 (LAST_BND_REG): New.
2472 (reg_class): Add BND_REGS.
2473 (REG_CLASS_NAMES): Likewise.
2474 (REG_CLASS_CONTENTS): Likewise.
2475 (BND_REGNO_P): New.
2476 (ANY_BND_REG_P): New.
2477 (BNDmode): New.
2478 (HI_REGISTER_NAMES): Add bound registers.
2479 * config/i386/i386.md (UNSPEC_BNDMK): New.
2480 (UNSPEC_BNDMK_ADDR): New.
2481 (UNSPEC_BNDSTX): New.
2482 (UNSPEC_BNDLDX): New.
2483 (UNSPEC_BNDLDX_ADDR): New.
2484 (UNSPEC_BNDCL): New.
2485 (UNSPEC_BNDCU): New.
2486 (UNSPEC_BNDCN): New.
2487 (UNSPEC_MPX_FENCE): New.
2488 (BND0_REG): New.
2489 (BND1_REG): New.
2490 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2491 (length_immediate): Likewise.
2492 (prefix_0f): Likewise.
2493 (memory): Likewise.
2494 (prefix_rep): Check for bnd prefix.
2495 (length_nobnd): New.
2496 (length): Use length_nobnd if specified.
2497 (BND): New.
2498 (bnd_ptr): New.
2499 (BNDCHECK): New.
2500 (bndcheck): New.
2501 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2502 (*jcc_2): Likewise.
2503 (jump): Likewise.
2504 (simple_return_internal): Likewise.
2505 (simple_return_pop_internal): Likewise.
2506 (*indirect_jump): Add MPX bnd prefix.
2507 (*tablejump_1): Likewise.
2508 (simple_return_internal_long): Likewise.
2509 (simple_return_indirect_internal): Likewise.
2510 (<mode>_mk): New.
2511 (*<mode>_mk): New.
2512 (mov<mode>): New.
2513 (*mov<mode>_internal_mpx): New.
2514 (<mode>_<bndcheck>): New.
2515 (*<mode>_<bndcheck>): New.
2516 (<mode>_ldx): New.
2517 (*<mode>_ldx): New.
2518 (<mode>_stx): New.
2519 (*<mode>_stx): New.
2520 * config/i386/predicates.md (lea_address_operand): Rename to...
2521 (address_no_seg_operand): ... this.
2522 (address_mpx_no_base_operand): New.
2523 (address_mpx_no_index_operand): New.
2524 (bnd_mem_operator): New.
2525 * config/i386/i386.opt (mmpx): New.
2526 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2527 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2528
2529 Reverted:
2530 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2531 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2532 * tree.def (POINTER_BOUNDS_TYPE): New.
2533 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2534 (POINTER_BOUNDS_MODE): New.
2535 (make_pointer_bounds_mode): New.
2536 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2537 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2538 (layout_type): Support POINTER_BOUNDS_TYPE.
2539 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2540 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2541 (type_contains_placeholder_1): Likewise.
2542 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2543 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2544 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2545
2546 2013-11-29 Richard Biener <rguenther@suse.de>
2547
2548 PR middle-end/59338
2549 * tree-cfg.c (verify_expr): Restrict bounds verification of
2550 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2551
2552 2013-11-29 Richard Biener <rguenther@suse.de>
2553
2554 PR tree-optimization/59334
2555 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2556 in previous commit.
2557
2558 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2559 Richard Biener <rguenther@suse.de>
2560
2561 PR lto/59326
2562 * omp-low.c (simd_clone_create): Return NULL if for definition
2563 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2564 before calling cgraph_function_versioning.
2565 (expand_simd_clones): Look for "omp declare simd" attribute first.
2566 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2567 Punt if node->global.inlined_to.
2568 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2569 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2570 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2571
2572 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2573
2574 PR lto/59326
2575 * tree-core.h (enum omp_clause_schedule_kind): Add
2576 OMP_CLAUSE_SCHEDULE_LAST.
2577 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2578 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2579 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2580 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2581 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2582 (DFS_write_tree_body): Handle OMP_CLAUSE.
2583 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2584 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2585 (write_ts_omp_clause_tree_pointers): New function.
2586 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2587 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2588 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2589 (unpack_value_fields): Call it for OMP_CLAUSE.
2590 (streamer_alloc_tree): Handle OMP_CLAUSE.
2591 (lto_input_ts_omp_clause_tree_pointers): New function.
2592 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2593
2594 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2595
2596 * doc/implement-c.texi: Document C11 implementation-defined
2597 behavior. Refer to -ffp-contract=fast for contraction behavior.
2598 * doc/invoke.texi (-std=c99, std=c11): Update description of
2599 completeness.
2600 (-std=gnu99): Don't mention as future default.
2601 (-std=gnu11): Mention as intended future default.
2602 * doc/standards.texi: Update descriptions of C99 and C11 support.
2603 Limit statement about C99 facilities for freestanding
2604 implementations to some platforms only.
2605
2606 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR middle-end/59327
2609 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2610
2611 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2612
2613 PR target/57293
2614 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2615 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2616 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2617 Don't call lra_init_elimination.
2618 (ira): Call ira_setup_eliminable_regset without arguments.
2619 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2620 from ira_setup_eliminable_regset call.
2621 * gcse.c (calculate_bb_reg_pressure): Ditto.
2622 * haifa-sched.c (sched_init): Ditto.
2623 * lra.h (lra_init_elimination): Remove the prototype.
2624 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2625 used_insn_alternative upper.
2626 (lra_eliminate_regs_1): Add one more parameter.
2627 (lra-eliminate): Ditto.
2628 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2629 (setup_sp_offset): New.
2630 (lra_process_new_insns): Call setup_sp_offset.
2631 (lra): Add argument to lra_eliminate calls.
2632 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2633 (get_equiv_with_elimination): New.
2634 (process_addr_reg): Call get_equiv_with_elimination instead of
2635 get_equiv_substitution.
2636 (equiv_address_substitution): Ditto.
2637 (loc_equivalence_change_p): Ditto.
2638 (loc_equivalence_callback, lra_constraints): Ditto.
2639 (curr_insn_transform): Ditto. Print the sp offset
2640 (process_alt_operands): Prevent stack pointer reloads.
2641 (lra_constraints): Remove one argument from lra_eliminate call.
2642 Move it up. Mark used hard regs bfore it. Use
2643 get_equiv_with_elimination instead of get_equiv_substitution.
2644 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2645 assert for param values combination. Use sp offset. Add argument
2646 to lra_eliminate_regs_1 calls.
2647 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2648 (curr_sp_change): New static var.
2649 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2650 Don't prevent elimination to sp if we can calculate its change.
2651 Pass the argument to mark_not_eliminable calls.
2652 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2653 argument to lra_eliminate_regs_1 call.
2654 (update_reg_eliminate): Move calculation of hard regs for spill
2655 lower. Switch off lra_in_progress temporarily to generate regs
2656 involved into elimination.
2657 (lra_init_elimination): Rename to init_elimination. Make it
2658 static. Set up insn sp offset, check the offsets at the end of BBs.
2659 (process_insn_for_elimination): Add parameter. Pass its value to
2660 eliminate_regs_in_insn.
2661 (lra_eliminate): : Add parameter. Pass its value to
2662 process_insn_for_elimination. Add assert for param values
2663 combination. Call init_elimination. Don't update offsets in
2664 equivalence substitutions.
2665 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2666 for created stack slot.
2667 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2668 onto stack slot.
2669
2670 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2671
2672 * config/arm/iterators.md (vrint_conds): New int attribute.
2673 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2674 (smax<mode>3): Likewise.
2675 (smin<mode>3): Likewise.
2676
2677 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2678
2679 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2680 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2681 * tree-ssanames.h (set_range_info): Add range_type argument.
2682 (duplicate_ssa_name_range_info): Likewise.
2683 * tree-ssanames.c (set_range_info): Take the range type as argument
2684 and store it in SSA_NAME_ANTI_RANGE_P.
2685 (duplicate_ssa_name_range_info): Likewise.
2686 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2687 (set_nonzero_bits): Update call to set_range_info.
2688 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2689 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2690 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2691 (vrp_finalize): Likewise, passing anti-ranges directly.
2692
2693 2013-11-28 Richard Biener <rguenther@suse.de>
2694
2695 PR tree-optimization/59330
2696 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2697 and fix delayed marking of free calls not necessary.
2698
2699 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2700
2701 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2702 is_gimple_reg_type.
2703 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2704
2705 2013-11-28 Terry Guo <terry.guo@arm.com>
2706
2707 * config/arm/arm.c (v7m_extra_costs): New table.
2708 (arm_v7m_tune): Use it.
2709
2710 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2711
2712 * config/sol2.h (TIME_LIBRARY): Define.
2713
2714 2013-11-28 Richard Biener <rguenther@suse.de>
2715
2716 PR lto/59323
2717 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2718 CONST_DECLs in function context are not indexable.
2719
2720 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2721
2722 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2723 not optimized for size.
2724
2725 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2726
2727 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2728 fields.
2729 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2730 data->asan_base as base for vars and update asan_alignb.
2731 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2732 Pass them to asan_emit_stack_protection.
2733 * asan.c (asan_detect_stack_use_after_return): New variable.
2734 (asan_emit_stack_protection): Add pbase and alignb arguments.
2735 Implement use after return sanitization.
2736 * asan.h (asan_emit_stack_protection): Adjust prototype.
2737 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2738
2739 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2740
2741 * common.opt: Introduced a new option -fsimd-cost-model.
2742 * doc/invoke.texi: Introduced a new openmp-simd warning and
2743 a new -fsimd-cost-model option.
2744 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2745 to rely on the particular loop info.
2746 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2747 (vect_peeling_hash_choose_best_peeling): Ditto.
2748 (vect_enhance_data_refs_alignment): Ditto.
2749 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2750 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2751 plus added openmp-simd warining.
2752
2753 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2754
2755 PR rtl-optimization/59311
2756 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2757 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2758
2759 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2760
2761 * var-tracking.c (track_expr_p): Do not track declarations for parts
2762 of tracked parameters.
2763 (add_stores): Do not track values for tracked parameters passed in
2764 multiple locations.
2765 (vt_get_decl_and_offset): Handle PARALLEL.
2766 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2767
2768 2013-11-27 Jeff Law <law@redhat.com>
2769
2770 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2771 clobber the loop structure thread_block was unsuccessful. If
2772 thread_block was unsuccessful, cleanup appropriately.
2773
2774 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2775
2776 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2777 (score_char_to_class): Likewise.
2778
2779 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2780
2781 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2782 the overflow bit set.
2783
2784 2013-11-27 Richard Biener <rguenther@suse.de>
2785
2786 PR middle-end/58723
2787 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2788 for internal calls.
2789 (rebuild_cgraph_edges): Likewise.
2790 * ipa-inline-analysis.c (estimate_function_body_sizes):
2791 Skip internal calls.
2792 * tree-inline.c (estimate_num_insns): Estimate size of internal
2793 calls as 0.
2794 (gimple_expand_calls_inline): Do not try inline-expanding
2795 internal calls.
2796 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2797 force_vect and simduid.
2798 (input_struct_function_base): Stream has_force_vect_loops
2799 and has_simduid_loops.
2800 (input_function): Adjust.
2801 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2802 force_vect and simduid.
2803 (output_struct_function_base): Stream has_force_vect_loops
2804 and has_simduid_loops.
2805
2806 2013-11-27 Kai Tietz <ktietz@redhat.com>
2807
2808 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2809 pointer cast.
2810
2811 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2812
2813 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2814 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2815
2816 2013-11-27 Marek Polacek <polacek@redhat.com>
2817
2818 PR sanitizer/59306
2819 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2820 instead of walk_gimple_op.
2821 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2822
2823 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2824 Jakub Jelinek <jakub@redhat.com>
2825
2826 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2827 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2828 (struct cgraph_node): Add simdclone and simd_clones fields.
2829 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2830 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2831 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2832 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2833 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2834 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2835 * doc/tm.texi: Regenerated.
2836 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2837 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2838 attribute is present.
2839 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2840 (simd_clone_vector_of_formal_parm_types): New function.
2841 (simd_clone_struct_alloc, simd_clone_struct_copy,
2842 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2843 simd_clone_compute_base_data_type, simd_clone_mangle,
2844 simd_clone_create, simd_clone_adjust_return_type,
2845 create_tmp_simd_array, simd_clone_adjust_argument_types,
2846 simd_clone_init_simd_arrays): New functions.
2847 (struct modify_stmt_info): New type.
2848 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2849 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2850 functions.
2851 (pass_data_omp_simd_clone): New variable.
2852 (pass_omp_simd_clone): New class.
2853 (make_pass_omp_simd_clone): New function.
2854 * passes.def (pass_omp_simd_clone): New.
2855 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2856 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2857 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2858 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2859 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2860 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2861 * tree-vect-data-refs.c: Include cgraph.h.
2862 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2863 and find_data_references_in_bb, if find_data_references_in_stmt
2864 fails, still allow calls to #pragma omp declare simd functions
2865 in #pragma omp simd loops unless they contain data references among
2866 the call arguments or in lhs.
2867 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2868 calls with no lhs.
2869 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2870 without lhs.
2871 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2872 call_simd_clone_vec_info_type.
2873 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2874 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2875 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2876 tree-scalar-evolution.h and cgraph.h.
2877 (vectorizable_call): Handle calls without lhs. Assert
2878 !stmt_can_throw_internal instead of failing for it. Don't update
2879 EH stuff.
2880 (struct simd_call_arg_info): New.
2881 (vectorizable_simd_clone_call): New function.
2882 (vect_transform_stmt): Call it.
2883 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2884 calls without lhs.
2885 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2886 if cgraph_function_with_gimple_body_p is true.
2887
2888 2013-11-27 Tom de Vries <tom@codesourcery.com>
2889 Marc Glisse <marc.glisse@inria.fr>
2890
2891 PR middle-end/59037
2892 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2893 BIT_FIELD_REF.
2894 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2895 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2896 out-of-bounds.
2897
2898 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2899
2900 PR middle-end/59138
2901 * expr.c (emit_group_store): Don't write past the end of the structure.
2902 (store_bit_field): Fix formatting.
2903
2904 2013-11-27 Richard Biener <rguenther@suse.de>
2905
2906 PR tree-optimization/59288
2907 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2908 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2909
2910 2013-11-27 Marek Polacek <polacek@redhat.com>
2911
2912 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2913 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2914 rather than ADDR_EXPRs.
2915
2916 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2917
2918 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2919
2920 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2921
2922 * gengtype.c (struct seen_tag): New.
2923 (already_seen_tag): New.
2924 (mark_tag_as_seen): New.
2925 (walk_subclasses): Support having multiple subclasses using the
2926 same tag by tracking which tags have already been seen, and using
2927 this to avoid adding duplicate cases to the "switch" statement.
2928 The call to already_seen_tag introduces an O(N^2) when running
2929 gengtype on N, the number of tags, due to the repeated linear
2930 search, but currently max(N) is relatively small (the number of
2931 GSS codes, which is 26).
2932 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2933 recursion.
2934
2935 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2936 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2937 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2938 GIMPLE_OMP_RETURN happens to share the data layout of
2939 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2940 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2941 underlying GSS value from GSS_OMP_PARALLEL to
2942 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2943 not directly related; they merely share in-memory layout.
2944 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2945 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2946
2947 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2948 Rename to...
2949 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2950 ...these.
2951 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2952 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2953 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2954 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2955 ...these.
2956
2957 * gimple.h (gimple_statement_resx): New subclass of
2958 gimple_statement_eh_ctrl, with the invariant that
2959 stmt->code == GIMPLE_RESX.
2960 (gimple_statement_eh_dispatch): New subclass of
2961 gimple_statement_eh_ctrl, with the invariant that
2962 stmt->code == GIMPLE_EH_DISPATH.
2963
2964 (gimple_statement_omp_parallel): The existing class expressed
2965 a layout (GSS_OMP_PARALLEL), but the codes with that layout
2966 are not all related, so it makes more sense for this class to
2967 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
2968 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
2969 rename the existing gimple_statement_omp_parallel class to...
2970 (gimple_statement_omp_parallel_layout): ...this, expressing
2971 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
2972 (gimple_statement_omp_taskreg): New subclass of
2973 gimple_statement_omp_parallel_layout, expressing the invariant
2974 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
2975 as used by the various gimple_omp_taskreg_ accessors.
2976 (gimple_statement_omp_parallel): Reintroduce this class, this time
2977 as a subclass of gimple_statement_omp_taskreg to express the
2978 invariant stmt->code == GIMPLE_OMP_PARALLEL.
2979 (gimple_statement_omp_target) New class, subclassing
2980 gimple_statement_omp_parallel_layout, to express the invariant
2981 stmt->code == GIMPLE_OMP_TARGET.
2982 (gimple_statement_omp_task): Update to inherit from
2983 gimple_statement_omp_taskreg rather than
2984 gimple_statement_omp_parallel.
2985
2986 (gimple_statement_omp_single): Rename to...
2987 (gimple_statement_omp_single_layout): ...this, expressing the
2988 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
2989 (gimple_statement_omp_single): ...and reintroduce this name as
2990 a subclass of gimple_statement_omp_single_layout, expressing
2991 the invariant that code == GIMPLE_OMP_SINGLE.
2992 (gimple_statement_omp_teams): New class, subclassing
2993 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
2994
2995 (gimple_statement_omp_atomic_store): Rename to...
2996 (gimple_statement_omp_atomic_store_layout): ...this, expressing
2997 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
2998 (gimple_statement_omp_atomic_store): ...and reintroduce this
2999 name as a subclass of gimple_statement_omp_atomic_store_layout
3000 with code == GIMPLE_OMP_ATOMIC_STORE.
3001 (gimple_statement_omp_return): New class, subclassing
3002 gimple_statement_omp_atomic_store_layout for the code
3003 GIMPLE_OMP_RETURN.
3004
3005 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3006 (is_a_helper <gimple_statement_resx>::test): New.
3007 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3008 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3009 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3010 (is_a_helper <gimple_statement_omp_return>::test): New.
3011 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3012 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3013 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3014 GIMPLE_OMP_TARGET.
3015 (is_a_helper <gimple_statement_omp_target>::test): New.
3016 (is_a_helper <gimple_statement_omp_single>::test): Only check
3017 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3018 (is_a_helper <gimple_statement_omp_teams>::test): New.
3019
3020 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3021 (is_a_helper <const gimple_statement_resx>::test): New.
3022 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3023 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3024 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3025 (is_a_helper <const gimple_statement_omp_return>::test): New.
3026 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3027 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3028 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3029 GIMPLE_OMP_TARGET.
3030 (is_a_helper <const gimple_statement_omp_target>::test): New.
3031 (is_a_helper <const gimple_statement_omp_single>::test): Only
3032 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3033 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3034
3035 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3036 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3037 gimple_statement_omp_atomic_store with downcasts to
3038 gimple_statement_omp_return, thus requiring that the code be
3039 GIMPLE_OMP_RETURN.
3040 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3041 downcasts to gimple_statement_eh_ctrl with downcasts to
3042 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3043 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3044 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3045 downcasts to gimple_statement_eh_dispatch, thus requiring that
3046 the code be GIMPLE_EH_DISPATCH.
3047 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3048 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3049 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3050 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3051 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3052 gimple_statement_omp_parallel with downcasts to
3053 gimple_statement_omp_taskreg, thus requiring that the code be
3054 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3055 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3056 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3057 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3058 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3059 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3060 gimple_statement_omp_parallel with downcasts to
3061 gimple_statement_omp_target, thus requiring that the code be
3062 GIMPLE_OMP_TARGET.
3063 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3064 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3065 gimple_statement_omp_single with downcasts to
3066 gimple_statement_omp_teams, thus requiring that the code be
3067 GIMPLE_OMP_TEAMS.
3068
3069 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3070 gimple_statement_resx.
3071 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3072 gimple_statement_eh_dispatch.
3073
3074 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3075
3076 PR tree-optimization/59014
3077 * tree-vrp.c (register_edge_assert_for_1): Don't look
3078 through conversions from non-integral types or through
3079 narrowing conversions.
3080
3081 PR target/59229
3082 * config/i386/i386.c (device_alg): Fix up formatting.
3083 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3084 similarly to count && count < epilogue_size_needed. Fix up
3085 comment typo.
3086 * builtins.c (determine_block_size): Fix comment typo.
3087
3088 PR sanitizer/59258
3089 * ubsan.c (ubsan_source_location): Don't add any location
3090 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3091 (ubsan_create_data): Strip block info from LOC.
3092
3093 PR middle-end/59273
3094 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3095 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3096
3097 PR rtl-optimization/59166
3098 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3099 DF_REF_LOC in validate_change call.
3100 (split_live_ranges_for_shrink_wrap): Likewise.
3101
3102 PR middle-end/59150
3103 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3104 of references to constant size types in simd loops, defer emitting
3105 initializer for the new_var, emit it later on only if not using
3106 SIMD arrays for it.
3107
3108 PR middle-end/59152
3109 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3110 for the inner loop if collapse_bb is non-NULL.
3111 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3112
3113 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3114
3115 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3116 a constant immediate before force_reg.
3117
3118 2013-11-26 Richard Biener <rguenther@suse.de>
3119
3120 PR tree-optimization/59245
3121 * tree-vrp.c (set_value_range): Assert that we don't have
3122 overflowed constants (but our infinities).
3123 (set_value_range_to_value): Drop all overflow flags.
3124 (vrp_visit_phi_node): Likewise.
3125 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3126 to set a constant range.
3127
3128 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3129
3130 PR target/59290
3131 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3132 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3133 for zero_extend case.
3134
3135 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3136
3137 PR bootstrap/55552
3138 * configure.ac (install_gold_as_default): New. Set to yes for
3139 --disable-ld or --enable-gold=default.
3140 (gcc_cv_ld_gold_srcdir): New.
3141 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3142 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3143 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3144 * configure: Regenerated.
3145
3146 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3147 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3148 (original) [collect-ld && -fuse-ld=bfd]: Set to
3149 $ORIGINAL_LD_BFD_FOR_TARGET.
3150 (original) [collect-ld && -fuse-ld=gold]: Set to
3151 $ORIGINAL_LD_GOLD_FOR_TARGET.
3152 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3153 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3154
3155 2013-11-26 Terry Guo <terry.guo@arm.com>
3156
3157 * config/arm/arm.c (require_pic_register): Handle high pic base
3158 register for thumb-1.
3159 (arm_load_pic_register): Also initialize high pic base register.
3160 * doc/invoke.texi: Update documentation for option -mpic-register.
3161
3162 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3163
3164 PR target/58314
3165 PR target/50751
3166 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3167 Prefix function names with 'sh_'. Make them non-static.
3168 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3169 sh_max_mov_insn_displacement): Add declarations.
3170 * config/sh/constraints.md (Q): Reject QImode.
3171 (Sdd): Use match_code "mem".
3172 (Snd): Fix erroneous matching of non-memory operands.
3173 * config/sh/predicates.md (short_displacement_mem_operand): New
3174 predicate.
3175 (general_movsrc_operand): Disallow PC relative QImode loads.
3176 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3177 (*movqi, *movhi): Merge both insns into...
3178 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3179 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3180 on the operand types.
3181
3182 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3183
3184 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3185 Remove unused variable save_config.
3186 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3187 assert.
3188
3189 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3190
3191 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3192 using other intrinsics.
3193 (vtbx3_<psu>8): Likewise.
3194
3195 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3196
3197 * config/aarch64/aarch64-builtins.c
3198 (aarch64_types_bsl_p_qualifiers): New.
3199 (aarch64_types_bsl_s_qualifiers): Likewise.
3200 (aarch64_types_bsl_u_qualifiers): Likewise.
3201 (TYPES_BSL_P): Likewise.
3202 (TYPES_BSL_S): Likewise.
3203 (TYPES_BSL_U): Likewise.
3204 (BUILTIN_VALLDIF): Likewise.
3205 (BUILTIN_VDQQH): Likewise.
3206 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3207 * config/aarch64/aarch64-simd.md
3208 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3209 (aarch64_simd_bsl<mode>): Likewise.
3210 * config/aarch64/arm_neon.h
3211 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3212 * config/aarch64/iterators.md (VALLDIF): New.
3213 (Vbtype): Handle more modes.
3214
3215 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3216
3217 * config/aarch64/aarch64-builtins.c
3218 (aarch64_type_qualifiers): Add qualifier_poly.
3219 (aarch64_build_scalar_type): Also build Poly types.
3220 (aarch64_build_vector_type): Likewise.
3221 (aarch64_build_type): Likewise.
3222 (aarch64_build_signed_type): New.
3223 (aarch64_build_unsigned_type): Likewise.
3224 (aarch64_build_poly_type): Likewise.
3225 (aarch64_init_simd_builtins): Also handle Poly types.
3226
3227 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3228
3229 * config/aarch64/aarch64-builtins.c
3230 (VAR1): Use new naming scheme for aarch64_builtins.
3231 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3232
3233 2013-11-26 Richard Biener <rguenther@suse.de>
3234
3235 PR tree-optimization/59287
3236 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3237 Remove no longer necessary special-casing of union accesses.
3238
3239 2013-11-26 Richard Biener <rguenther@suse.de>
3240
3241 * pretty-print.c (output_buffer::~output_buffer): Really
3242 free the obstacks.
3243
3244 2013-11-25 Jeff Law <law@redhat.com>
3245
3246 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3247 invalidate loop information.
3248
3249 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3250
3251 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3252
3253 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3254
3255 PR target/53976
3256 PR target/59243
3257 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3258 comments.
3259 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3260 previously visited basic blocks before recursing instead of only one
3261 basic block.
3262
3263 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3264
3265 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3266 * config/aarch64/aarch64-cores.def (cortex-a53):
3267 Use cortexa53 tuning struct.
3268
3269 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3270
3271 PR bootstrap/59260
3272 * fold-const.c: Include hash-table.h.
3273
3274 2013-11-25 Marek Polacek <polacek@redhat.com>
3275
3276 PR sanitizer/59258
3277 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3278
3279 2013-11-25 Richard Biener <rguenther@suse.de>
3280
3281 * tree-dfa.c: Remove unused convert.h include.
3282
3283 2013-11-25 Terry Guo <terry.guo@arm.com>
3284
3285 * doc/invoke.texi (-mslow-flash-data): Document new option.
3286 * config/arm/arm.opt (mslow-flash-data): New option.
3287 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3288 Declare it.
3289 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3290 are disabled.
3291 (arm_disable_literal_pool): Declare it.
3292 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3293 (arm_option_override): Handle new option.
3294 (thumb2_legitimate_address_p): Don't allow symbol references when
3295 literal pools are disabled.
3296 (arm_max_const_double_inline_cost): New function.
3297 * config/arm/arm.md (types.md): Include it before ...
3298 (use_literal_pool): New attribute.
3299 (enabled): Use new attribute.
3300 (split pattern): Replace symbol+offset with MOVW/MOVT.
3301
3302 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3303
3304 PR bootstrap/59279
3305 Revert previous commit.
3306
3307 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3308
3309 * jump.c (reset_insn_reg_label_operand_notes): New function,
3310 split out from ...
3311 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3312 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3313 split out from ...
3314 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3315 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3316 expensive CFG cleanup is called for.
3317 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3318 (cfg_layout_finalize): Delete dead jump tables before re-building
3319 the insns chain.
3320 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3321 basic blocks, not before.
3322 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3323
3324 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3325 insns chain of a scheduling extended basic block, they cannot appear
3326 there in cfglayout mode.
3327
3328 2013-11-24 Tobias Burnus <burnus@net-b.de>
3329
3330 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3331
3332 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3333
3334 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3335 for little endian.
3336
3337 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3338
3339 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3340
3341 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3342
3343 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3344
3345 2013-11-23 David Edelson <dje.gcc@gmail.com>
3346 Andrew Dixie <andrewd@gentrack.com>
3347
3348 PR target/33704
3349 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3350 (COLLECT_SHARED_FINI_FUNC): Define.
3351
3352 * collect2.c (aix_shared_initname): Declare.
3353 (aix_shared_fininame): Declare.
3354 (symkind): Add SYM_AIXI and SYM_AIXD.
3355 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3356 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3357 (aixlazy_flag): Parse.
3358 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3359 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3360
3361 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3362
3363 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3364 (rs6000_xcoff_select_section): Place decls with stricter alignment
3365 into named sections.
3366 (rs6000_xcoff_unique_section): Allow unique sections for
3367 uninitialized data with strict alignment.
3368
3369 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3370
3371 PR tree-optimization/59154
3372 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3373 rhs1 of a cast and new_op is invariant, fold_convert it.
3374 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3375 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3376
3377 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3378
3379 PR target/56788
3380 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3381 Declare as MULTI_ARG_1_SF instruction.
3382 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3383 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3384 from *xop_vmfrcz_<mode>.
3385 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3386 to merge scalar result with __A.
3387 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3388 result with __A.
3389
3390 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3391
3392 * gimplify.h (recalculate_side_effects): Delete.
3393 * gimplify.c (recalculate_side_effects): Make static and add comment.
3394
3395 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3396
3397 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3398 for the destination of a define_peephole2. Likewise register_operand
3399 rather than arith_reg_operand. Remove constraints from
3400 define_peephole2s.
3401
3402 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3403
3404 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3405 Delete.
3406 (mn10300_store_multiple_operation_p): Declare.
3407 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3408 Rename to...
3409 (mn10300_store_multiple_operation_p): ...this and remove mode
3410 argument.
3411 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3412 Define.
3413
3414 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3415
3416 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3417 (pop_multiple_operation): Delete.
3418 (analyze_push_multiple_operation): Declare.
3419 (analyze_pop_multiple_operation): Declare.
3420 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3421 (analyze_push_multiple_operation): ...this and remove mode argument.
3422 (pop_multiple_operation): Rename to...
3423 (analyze_pop_multiple_operation): ...this and remove mode argument.
3424 * config/bfin/predicates.md (push_multiple_operation): Define.
3425 (pop_multiple_operation): Likewise.
3426
3427 2013-11-23 Alan Modra <amodra@gmail.com>
3428
3429 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3430
3431 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3432
3433 PR sanitizer/59061
3434 * common.opt (static-liblsan): Add.
3435 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3436 Define.
3437 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3438 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3439 SANITIZE_RETURN.
3440 * opts.c (common_handle_option): Handle -fsanitize=leak.
3441 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3442 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3443 (LIBUBSAN_EARLY_SPEC): Remove.
3444 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3445 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3446 (sanitize_spec_function): Handle %sanitize(leak).
3447 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3448
3449 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3450 Jakub Jelinek <jakub@redhat.com>
3451
3452 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3453 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3454 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3455 (ipa_modify_formal_parameters): Adjust caller. Remove
3456 synth_parm_prefix argument. Use operator enum instead of bit fields.
3457 Add assert for properly handling vector of references. Handle
3458 creating brand new parameters.
3459 (ipa_modify_call_arguments): Use operator enum instead of bit
3460 fields.
3461 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3462 used.
3463 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3464 New functions.
3465 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3466 Use operator enum instead of bit fields.
3467 * ipa-prop.h (enum ipa_parm_op): New.
3468 (struct ipa_parm_adjustment): New field op. Rename reduction
3469 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3470 and copy_param.
3471 (ipa_modify_formal_parameters): Remove last argument.
3472 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3473 ipa_get_adjustment_candidate): New prototypes.
3474 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3475 enum. Set arg_prefix.
3476 (get_adjustment_for_base): Use operator enum.
3477 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3478 ipa-prop.c.
3479 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3480 (ipa_sra_modify_function_body): Same. No longer static.
3481 (sra_ipa_reset_debug_stmts): Use operator enum.
3482 (modify_function): Do not pass prefix argument.
3483
3484 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3485
3486 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3487 (ubsan_pass): Ignore clobber stmts.
3488
3489 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3490 * opts.c (common_handle_option): Add -fsanitize=return.
3491 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3492 or it into SANITIZE_UNDEFINED.
3493
3494 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3495 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3496 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3497 Don't instrument accesses to VAR_DECLs which are known to fit
3498 into their bounds and the vars are known to have shadow bytes
3499 indicating allowed access.
3500 (asan_dynamic_init_call): New function.
3501 (asan_add_global): If vnode->dynamically_initialized,
3502 set __has_dynamic_init to 1 instead of 0.
3503 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3504 * asan.h (asan_dynamic_init_call): New prototype.
3505 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3506
3507 2013-11-22 Martin Jambor <mjambor@suse.cz>
3508
3509 PR rtl-optimization/10474
3510 * ira.c (interesting_dest_for_shprep_1): New function.
3511 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3512 also check parallels.
3513
3514 2013-11-22 Jeff Law <law@redhat.com>
3515
3516 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3517 NULL for RHS, which we used to invalidate equivalences.
3518 (record_temporary_equivalences_from_phis): New bitmap arguments
3519 and a boolean indicating if we have passed a backedge. If we
3520 have passed a backedge, then set the appropriate bit in the
3521 bitmaps for the SRC & DEST of PHIs creating equivalences.
3522 (invalidate_equivalences, dummy_simplify): New functions.
3523 (cond_arg_set_in_b): Remove.
3524 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3525 arguments and a boolean indicating if we have passed a backedge.
3526 If we have passed a backedge, then perform invalidations as needed.
3527 (thread_around_empty_blocks): If we have seen a backedge, then
3528 use the dummy simplify routine.
3529 (thread_through_normal_block): Likewise. Pass bitmaps and
3530 backedge status to children. Do not pessimize so much when
3531 traversing backedges in the CFG.
3532 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3533 If we have seen a backedge, then use the dummy simplify routine.
3534 Do not pessimize so much when traversing backedges.
3535
3536 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3537
3538 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3539 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3540
3541 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3542
3543 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3544 PTA_PCLMUL and PTA_RDRND for Silvermont.
3545 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3546 for Silvermont.
3547
3548 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3549
3550 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3551
3552 * hooks.h (hook_uint_mode_0): Add Prototype.
3553 * hooks.c (hook_uint_mode_0): New default function.
3554 * target.def (atomic_align_for_mode): New target hook.
3555 * tree.c (build_atomic_base): Add alignment override parameter.
3556 (build_common_tree_nodes): Use atomic alignment override.
3557 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3558 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3559
3560 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3561
3562 * gimple.h: Remove all includes.
3563 (recalculate_side_effects): Move prototype to gimplify.h.
3564 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3565 * gengtype.c (open_base_files): Add gimple.h include list.
3566 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3567 * gimple.c: Adjust include list.
3568 (recalculate_side_effects): Move to gimplify.c.
3569 * gimplify.c: Adjust include list.
3570 (recalculate_side_effects): Relocate from gimple.c.
3571 * alias.c: Add required include files removed from gimple.h.
3572 * asan.c: Likewise.
3573 * builtins.c: Likewise.
3574 * calls.c: Likewise.
3575 * cfgexpand.c: Likewise.
3576 * cfgloop.c: Likewise.
3577 * cfgloopmanip.c: Likewise.
3578 * cgraphbuild.c: Likewise.
3579 * cgraph.c: Likewise.
3580 * cgraphclones.c: Likewise.
3581 * cgraphunit.c: Likewise.
3582 * cilk-common.c: Likewise.
3583 * data-streamer.c: Likewise.
3584 * data-streamer-in.c: Likewise.
3585 * data-streamer-out.c: Likewise.
3586 * dse.c: Likewise.
3587 * dwarf2out.c: Likewise.
3588 * emit-rtl.c: Likewise.
3589 * except.c: Likewise.
3590 * expr.c: Likewise.
3591 * fold-const.c: Likewise.
3592 * function.c: Likewise.
3593 * gimple-builder.c: Likewise.
3594 * gimple-expr.c: Likewise.
3595 * gimple-fold.c: Likewise.
3596 * gimple-iterator.c: Likewise.
3597 * gimple-low.c: Likewise.
3598 * gimple-pretty-print.c: Likewise.
3599 * gimple-ssa-isolate-paths.c: Likewise.
3600 * gimple-ssa-strength-reduction.c: Likewise.
3601 * gimple-streamer-in.c: Likewise.
3602 * gimple-streamer-out.c: Likewise.
3603 * gimple-walk.c: Likewise.
3604 * gimplify-me.c: Likewise.
3605 * graphite-blocking.c: Likewise.
3606 * graphite.c: Likewise.
3607 * graphite-clast-to-gimple.c: Likewise.
3608 * graphite-dependences.c: Likewise.
3609 * graphite-interchange.c: Likewise.
3610 * graphite-optimize-isl.c: Likewise.
3611 * graphite-poly.c: Likewise.
3612 * graphite-scop-detection.c: Likewise.
3613 * graphite-sese-to-poly.c: Likewise.
3614 * internal-fn.c: Likewise.
3615 * ipa.c: Likewise.
3616 * ipa-cp.c: Likewise.
3617 * ipa-devirt.c: Likewise.
3618 * ipa-inline-analysis.c: Likewise.
3619 * ipa-inline.c: Likewise.
3620 * ipa-profile.c: Likewise.
3621 * ipa-prop.c: Likewise.
3622 * ipa-pure-const.c: Likewise.
3623 * ipa-reference.c: Likewise.
3624 * ipa-split.c: Likewise.
3625 * ipa-utils.c: Likewise.
3626 * langhooks.c: Likewise.
3627 * lto-cgraph.c: Likewise.
3628 * lto-compress.c: Likewise.
3629 * lto-opts.c: Likewise.
3630 * lto-section-in.c: Likewise.
3631 * lto-section-out.c: Likewise.
3632 * lto-streamer.c: Likewise.
3633 * lto-streamer-in.c: Likewise.
3634 * lto-streamer-out.c: Likewise.
3635 * omp-low.c: Likewise.
3636 * opts-global.c: Likewise.
3637 * passes.c: Likewise.
3638 * predict.c: Likewise.
3639 * profile.c: Likewise.
3640 * sese.c: Likewise.
3641 * stmt.c: Likewise.
3642 * stor-layout.c: Likewise.
3643 * symtab.c: Likewise.
3644 * targhooks.c: Likewise.
3645 * toplev.c: Likewise.
3646 * tracer.c: Likewise.
3647 * trans-mem.c: Likewise.
3648 * tree-affine.c: Likewise.
3649 * tree.c: Likewise.
3650 * tree-call-cdce.c: Likewise.
3651 * tree-cfg.c: Likewise.
3652 * tree-cfgcleanup.c: Likewise.
3653 * tree-chrec.c: Likewise.
3654 * tree-complex.c: Likewise.
3655 * tree-data-ref.c: Likewise.
3656 * tree-dfa.c: Likewise.
3657 * tree-eh.c: Likewise.
3658 * tree-emutls.c: Likewise.
3659 * tree-if-conv.c: Likewise.
3660 * tree-inline.c: Likewise.
3661 * tree-into-ssa.c: Likewise.
3662 * tree-loop-distribution.c: Likewise.
3663 * tree-nested.c: Likewise.
3664 * tree-nrv.c: Likewise.
3665 * tree-object-size.c: Likewise.
3666 * tree-outof-ssa.c: Likewise.
3667 * tree-parloops.c: Likewise.
3668 * tree-phinodes.c: Likewise.
3669 * tree-predcom.c: Likewise.
3670 * tree-pretty-print.c: Likewise.
3671 * tree-profile.c: Likewise.
3672 * tree-scalar-evolution.c: Likewise.
3673 * tree-sra.c: Likewise.
3674 * tree-ssa-address.c: Likewise.
3675 * tree-ssa-alias.c: Likewise.
3676 * tree-ssa.c: Likewise.
3677 * tree-ssa-ccp.c: Likewise.
3678 * tree-ssa-coalesce.c: Likewise.
3679 * tree-ssa-copy.c: Likewise.
3680 * tree-ssa-copyrename.c: Likewise.
3681 * tree-ssa-dce.c: Likewise.
3682 * tree-ssa-dom.c: Likewise.
3683 * tree-ssa-dse.c: Likewise.
3684 * tree-ssa-forwprop.c: Likewise.
3685 * tree-ssa-ifcombine.c: Likewise.
3686 * tree-ssa-live.c: Likewise.
3687 * tree-ssa-loop.c: Likewise.
3688 * tree-ssa-loop-ch.c: Likewise.
3689 * tree-ssa-loop-im.c: Likewise.
3690 * tree-ssa-loop-ivcanon.c: Likewise.
3691 * tree-ssa-loop-ivopts.c: Likewise.
3692 * tree-ssa-loop-manip.c: Likewise.
3693 * tree-ssa-loop-niter.c: Likewise.
3694 * tree-ssa-loop-prefetch.c: Likewise.
3695 * tree-ssa-loop-unswitch.c: Likewise.
3696 * tree-ssa-math-opts.c: Likewise.
3697 * tree-ssanames.c: Likewise.
3698 * tree-ssa-operands.c: Likewise.
3699 * tree-ssa-phiopt.c: Likewise.
3700 * tree-ssa-phiprop.c: Likewise.
3701 * tree-ssa-pre.c: Likewise.
3702 * tree-ssa-propagate.c: Likewise.
3703 * tree-ssa-reassoc.c: Likewise.
3704 * tree-ssa-sccvn.c: Likewise.
3705 * tree-ssa-sink.c: Likewise.
3706 * tree-ssa-strlen.c: Likewise.
3707 * tree-ssa-structalias.c: Likewise.
3708 * tree-ssa-tail-merge.c: Likewise.
3709 * tree-ssa-ter.c: Likewise.
3710 * tree-ssa-threadedge.c: Likewise.
3711 * tree-ssa-threadupdate.c: Likewise.
3712 * tree-ssa-uncprop.c: Likewise.
3713 * tree-ssa-uninit.c: Likewise.
3714 * tree-stdarg.c: Likewise.
3715 * tree-streamer.c: Likewise.
3716 * tree-streamer-in.c: Likewise.
3717 * tree-streamer-out.c: Likewise.
3718 * tree-switch-conversion.c: Likewise.
3719 * tree-tailcall.c: Likewise.
3720 * tree-vect-data-refs.c: Likewise.
3721 * tree-vect-generic.c: Likewise.
3722 * tree-vect-loop.c: Likewise.
3723 * tree-vect-loop-manip.c: Likewise.
3724 * tree-vectorizer.c: Likewise.
3725 * tree-vect-patterns.c: Likewise.
3726 * tree-vect-slp.c: Likewise.
3727 * tree-vect-stmts.c: Likewise.
3728 * tree-vrp.c: Likewise.
3729 * tsan.c: Likewise.
3730 * ubsan.c: Likewise.
3731 * value-prof.c: Likewise.
3732 * varpool.c: Likewise.
3733 * var-tracking.c: Likewise.
3734 * vtable-verify.c: Likewise.
3735 * config/darwin.c: Likewise.
3736 * config/aarch64/aarch64-builtins.c: Likewise.
3737 * config/aarch64/aarch64.c: Likewise.
3738 * config/alpha/alpha.c: Likewise.
3739 * config/i386/i386.c: Likewise.
3740 * config/i386/winnt.c: Likewise.
3741 * config/ia64/ia64.c: Likewise.
3742 * config/m32c/m32c.c: Likewise.
3743 * config/mep/mep.c: Likewise.
3744 * config/mips/mips.c: Likewise.
3745 * config/rs6000/rs6000.c: Likewise.
3746 * config/s390/s390.c: Likewise.
3747 * config/sh/sh.c: Likewise.
3748 * config/sparc/sparc.c: Likewise.
3749 * config/spu/spu.c: Likewise.
3750 * config/stormy16/stormy16.c: Likewise.
3751 * config/tilegx/tilegx.c: Likewise.
3752 * config/tilepro/tilepro.c: Likewise.
3753 * config/xtensa/xtensa.c: Likewise.
3754
3755 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3756
3757 PR target/59216
3758 * arm.md (negdi_extendsidi): Fix invalid split.
3759
3760 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3761
3762 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3763 (vmov_n_f64): Likewise.
3764 (vmov_n_p8): Likewise.
3765 (vmov_n_p16): Likewise.
3766 (vmov_n_s8): Likewise.
3767 (vmov_n_s16): Likewise.
3768 (vmov_n_s32): Likewise.
3769 (vmov_n_s64): Likewise.
3770 (vmov_n_u8): Likewise.
3771 (vmov_n_u16): Likewise.
3772 (vmov_n_u32): Likewise.
3773 (vmov_n_u64): Likewise.
3774 (vmovq_n_f32): Likewise.
3775 (vmovq_n_f64): Likewise.
3776 (vmovq_n_p8): Likewise.
3777 (vmovq_n_p16): Likewise.
3778 (vmovq_n_s8): Likewise.
3779 (vmovq_n_s16): Likewise.
3780 (vmovq_n_s32): Likewise.
3781 (vmovq_n_s64): Likewise.
3782 (vmovq_n_u8): Likewise.
3783 (vmovq_n_u16): Likewise.
3784 (vmovq_n_u32): Likewise.
3785 (vmovq_n_u64): Likewise.
3786
3787 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3788
3789 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3790 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3791 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3792 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3793 and also change to float UNSPEC.
3794 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3795 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3796 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3797 result access for big-endian.
3798 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3799 intrinsics for big-endian.
3800 * config/aarch64/iterators.md (VDQV): Add V2DI.
3801 (VDQV_S): New.
3802 (vp): New mode attribute.
3803
3804 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3805
3806 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3807 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3808 big-endian.
3809
3810 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3811
3812 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3813 for big-endian element order.
3814 (aarch64_simd_vec_setv2di): Likewise.
3815 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3816 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3817 (vec_extract): Expand using aarch64_get_lane.
3818 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3819
3820 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3821
3822 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3823 and stores to be ABI compliant.
3824
3825 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3826
3827 * input.h (input_line): Remove.
3828 (input_filename): Likewise.
3829 (in_system_header): Likewise.
3830 * tree.h (EXPR_LOC_OR_HERE): Remove.
3831 * config/bfin/bfin.c (output_file_start): Remove use of
3832 input_filename macro.
3833 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3834 * gimplify.c (internal_get_tmp_var): Likewise.
3835 EXPR_LOC_OR_HERE macro.
3836 (shortcut_cond_expr): Likewise.
3837 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3838 use of input_filename macro.
3839 * tree.c (get_file_function_name): Likewise.
3840
3841 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3842
3843 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3844
3845 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3846
3847 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3848 (same sized) elements even if the type of the CONSTRUCTOR has
3849 vector mode and target is a REG.
3850
3851 2013-11-22 Richard Biener <rguenther@suse.de>
3852
3853 Revert
3854 2013-11-21 Richard Biener <rguenther@suse.de>
3855
3856 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3857 nb_iterations_upper_bound by one.
3858
3859 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3860
3861 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3862 for Silvermont.
3863
3864 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3865 core-avx-i, core-avx2 and slm.
3866
3867 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3868
3869 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3870
3871 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3872
3873 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3874 (stzx_24_<mode>): Likewise mra_operand.
3875
3876 2013-11-22 Jeff Law <law@redhat.com>
3877
3878 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3879 (thread_block_1): Do not cancel jump threads which go from
3880 inside a loop, through the header, then back inside the loop.
3881 (bb_ends_with_multiway_branch): New function.
3882 (thread_through_all_blocks): Handle threading cases which start
3883 in a loop through the loop header to a point in the loop.
3884
3885 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3886 jump thread path properly.
3887
3888 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3889
3890 * vec.h (auto_vec): New class.
3891 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3892 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3893 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3894 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3895 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3896 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3897 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3898 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3899 appropriate instead of vec for local variables.
3900
3901 2013-11-21 Teresa Johnson <tejohnson@google.com>
3902
3903 PR target/59233
3904 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3905 not understood by old_insns_match_p.
3906
3907 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3908
3909 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3910 little endian change.
3911 (vec_pack_sfix_trunc_v2df): Likewise.
3912 (vec_pack_ufix_trunc_v2df): Likewise.
3913 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3914 double checking of endianness.
3915
3916 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3917
3918 * tree-vect-generic.c (optimize_vector_constructor): New function.
3919 (expand_vector_operations_1): Call it.
3920
3921 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3922
3923 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3924 ix86_zero_extend_to_Pmode where appropriate.
3925 (ix86_expand_builtin): Ditto.
3926
3927 2013-11-21 Cary Coutant <ccoutant@google.com>
3928
3929 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3930 (add_linkage_name): Don't add linkage name for -g1.
3931 (decls_for_scope): Process subblocks for -g1.
3932 (dwarf2out_source_line): Output line tables for -g1.
3933 (dwarf2out_finish): Likewise.
3934 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3935 unused scopes for -g1.
3936 * opts.c (common_handle_option): Handle -g same as -g2.
3937 * doc/invoke.texi: Update description for -g1.
3938
3939 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3940
3941 * doc/extend.texi: Document htm builtins.
3942
3943 2013-11-21 Jeff Law <law@redhat.com>
3944
3945 PR tree-optimization/59221
3946 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3947 temporary equivalences when threading through joiner blocks.
3948
3949 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3950
3951 PR rtl-optimization/55950
3952 * real.c (real_sqrt): Remove function.
3953 * real.h (real_sqrt): Remove prototype.
3954 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3955 SQRT using real_sqrt.
3956
3957 2013-11-21 Richard Biener <rguenther@suse.de>
3958
3959 PR tree-optimization/59058
3960 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3961 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3962 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3963 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3964 (NITERS_KNOWN_P): Fold into ...
3965 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
3966 (LOOP_VINFO_PEELING_FOR_NITER): Add.
3967 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3968 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3969 (vect_do_peeling_for_alignment): Re-use precomputed niter
3970 instead of re-emitting it.
3971 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3972 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3973 * tree-vect-loop.c (vect_get_loop_niters): Use
3974 number_of_latch_executions.
3975 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
3976 (vect_analyze_loop_form): Simplify.
3977 (vect_analyze_loop_operations): Move epilogue peeling code ...
3978 (vect_analyze_loop_2): ... here and adjust it to compute
3979 LOOP_VINFO_PEELING_FOR_NITER.
3980 (vect_estimate_min_profitable_iters): Use
3981 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3982 (vect_build_loop_niters): Emit on the preheader.
3983 (vect_generate_tmps_on_preheader): Likewise.
3984 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
3985 of recomputing it. Adjust.
3986
3987 2013-11-21 Richard Biener <rguenther@suse.de>
3988
3989 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3990 LOC_LINE): Remove wrappers and fix all users.
3991 (struct _loop_vec_info): Remove loop_line_number member.
3992 (LOOP_VINFO_LOC): Remove.
3993 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
3994 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
3995 and LOC_LINE.
3996
3997 2013-11-21 Richard Biener <rguenther@suse.de>
3998
3999 * tree-ssa-forwprop.c (simplify_vce): New function.
4000 (ssa_forward_propagate_and_combine): Call it.
4001
4002 2013-11-21 Richard Biener <rguenther@suse.de>
4003
4004 * tree-vect-loop-manip.c (vect_build_loop_niters,
4005 vect_generate_tmps_on_preheader): Move ...
4006 * tree-vect-loop.c (vect_build_loop_niters,
4007 vect_generate_tmps_on_preheader): ... here and simplify.
4008 (vect_transform_loop): Call them here and pass down results
4009 to consumers.
4010 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4011 Get niter variables from caller.
4012 (vect_do_peeling_for_alignment): Likewise.
4013 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4014 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4015 Adjust prototypes.
4016
4017 2013-11-21 Richard Biener <rguenther@suse.de>
4018
4019 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4020 nb_iterations_upper_bound by one.
4021
4022 2013-11-21 Richard Biener <rguenther@suse.de>
4023
4024 PR tree-optimization/59058
4025 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4026 (build_size_arg_loc): Apply niter adjustment here.
4027 (generate_memset_builtin): Adjust.
4028 (generate_memcpy_builtin): Likewise.
4029 (classify_partition): Do not use number_of_exit_cond_executions
4030 but record whether niter needs to be adjusted.
4031
4032 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4033
4034 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4035 could throw.
4036
4037 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4038
4039 PR target/53976
4040 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4041 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4042 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4043 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4044 sh_optimize_sett_clrt pass.o to extra_objs.
4045
4046 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4047
4048 * cfg.c (dump_edge_info): Remove redundant comment.
4049 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4050 EXIT_BLOCK_PTR in comment.
4051 (try_optimize_cfg): Likewise.
4052 * cfgrtl.c (last_bb_in_partition): Likewise.
4053 * cgraph.c (cgraph_node_cannot_return): Likewise.
4054 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4055 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4056 * ipa-split.c (consider_split): Likewise.
4057 * profile.c (find_spanning_tree): Likewise.
4058 * sched-int.h (common_sched_info_def.add_block): Likewise.
4059 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4060 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4061 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4062 in comments to now removed ENTRY_BLOCK_PTR macro.
4063 (tree_forwarder_block_p): Reword reference in comment to
4064 EXIT_BLOCK_PTR.
4065 * tree-inline.c (copy_cfg_body): Reword references in comments to
4066 now removed ENTRY_BLOCK_PTR macro.
4067 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4068 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4069 a comma to the comment to clarify the meaning.
4070
4071 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4072
4073 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4074 Move to gimplify.c.
4075 (free_gimplify_stack): Add prototype.
4076 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4077 (struct gimplify_ctx): Relocate here.
4078 (gimplify_ctxp): Make static.
4079 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4080 list of struct gimplify_ctx.
4081 (push_gimplify_context): Add default parameters and allocate a struct
4082 from the pool.
4083 (pop_gimplify_context): Free a struct back to the pool.
4084 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4085 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4086 use a local 'struct gimplify_ctx'.
4087 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4088 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4089 Likewise.
4090 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4091 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4092 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4093 lower_omp_teams, execute_lower_omp): Likewise.
4094 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4095 * tree-inline.c (optimize_inline_calls): Likewise.
4096
4097 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4098
4099 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4100 (vsx_extract_<mode>): Likewise.
4101 (*vsx_extract_<mode>_one_le): New LE variant on
4102 *vsx_extract_<mode>_zero.
4103 (vsx_extract_v4sf): Adjust for little endian.
4104
4105 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4106
4107 PR rtl-optimization/59133
4108 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4109 new pseudos.
4110 (lra_create_new_reg_with_unique_value): Pass new argument value.
4111 (lra_emit_add, lra_emit_move): Ditto.
4112 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4113 (change_class): Rename to lra_change_class. Move to lra-int.h.
4114 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4115 change_class.
4116 (process_addr_reg, process_addr): Ditto.
4117 (curr_insn_transform): Ditto. Add check on old pseudo for
4118 optional reload.
4119 * lra-int.h (lra_get_regno_hard_regno): Move below.
4120 (lra_change_class): Renamed change_class from lra.c.
4121
4122 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4123
4124 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4125 the children of a NULL pointer.
4126
4127 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4128
4129 * lra.c (lra): Set lra_in_progress before check_rtl call.
4130 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4131 adding clobber regs when LRA is running.
4132
4133 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4134
4135 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4136 restriction for ISA_MIPS32R2.
4137 (ISA_HAS_LXC1_SXC1): New macro.
4138 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4139 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4140 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4141 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4142 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4143 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4144 (*<ANYF:storex>_<P:mode>): Likewise.
4145
4146 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4147
4148 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4149 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4150 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4151 * config/mips/mips.md (recip_condition): Remove mode attribute.
4152 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4153 <recip_condition>.
4154 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4155
4156 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4157
4158 PR target/59207
4159 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4160 Make sure neg2_ovf is set before being used.
4161
4162 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4163
4164 * plugin.def: Add comment about register_callback and
4165 invoke_plugin_callbacks_full.
4166
4167 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4168 Handle PLUGIN_INCLUDE_FILE event.
4169
4170 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4171
4172 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4173 allow subregs of TDmode in FPRs of smaller size in little-endian.
4174 (rs6000_split_multireg_move): When splitting an access to TDmode
4175 in FPRs, do not use simplify_gen_subreg.
4176
4177 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4178
4179 PR middle-end/21718
4180 * real.c: Remove comment about decimal string conversion and
4181 rounding errors.
4182 (real_from_string): Use MPFR to convert nonzero decimal constant
4183 to REAL_VALUE_TYPE.
4184
4185 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4186
4187 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4188 endianness of the D registers for the legacy encodings.
4189
4190 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4191
4192 PR rtl-optimization/54300
4193 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4194 outputs in a single-set are killed from the value chains.
4195
4196 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4197
4198 * cgraph.h (varpool_node): Add need_bounds_init field.
4199 * lto-cgraph.c (lto_output_varpool_node): Output
4200 need_bounds_init value.
4201 (input_varpool_node): Read need_bounds_init value.
4202 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4203
4204 2013-11-20 Jan Hubicka <jh@suse.cz>
4205
4206 * opts.c (finish_options): Imply -ffat-lto-objects with
4207 -fno-use-linker-plugin.
4208 * common.opt (fuse-linker-plugin): Add var.
4209
4210 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4211
4212 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4213 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4214 (gen_type_die_with_usage): Skip pointer bounds.
4215 (dwarf2out_global_decl): Likewise.
4216
4217 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4218
4219 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4220 from all insns.
4221
4222 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4223
4224 PR target/57756
4225 * config/i386/i386.c (ix86_option_override_internal): Add missed
4226 argument prefix for 'ix86_fpmath'.
4227 * config/i386/ssemath.h: Add missed definition of
4228 TARGET_FPMATH_DEFAULT_P macros.
4229
4230 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4231 Mike Stump <mikestump@comcast.net>
4232 Richard Sandiford <rdsandiford@googlemail.com>
4233
4234 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4235 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4236 tree_fits_shwi_p or tree_fits_uhwi_p.
4237 * builtins.c (fold_builtin_powi): Likewise.
4238 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4239 Likewise.
4240 * dbxout.c (dbxout_symbol): Likewise.
4241 * expr.c (expand_expr_real_1): Likewise.
4242 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4243 (fold_binary_loc): Likewise.
4244 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4245 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4246 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4247 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4248 * stor-layout.c (compute_record_mode): Likewise.
4249 * tree-cfg.c (verify_expr): Likewise.
4250 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4251 * tree-pretty-print.c (dump_array_domain): Likewise.
4252 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4253 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4254 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4255 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4256 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4257 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4258 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4259 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4260 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4261 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4262 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4263 (create_variable_info_for_1): Likewise.
4264 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4265 (vect_verify_datarefs_alignment): Likewise.
4266 (vect_analyze_data_ref_accesses): Likewise.
4267 (vect_prune_runtime_alias_test_list): Likewise.
4268 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4269
4270 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4271
4272 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4273 overflow. Use tree_to_shwi.
4274
4275 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4276
4277 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4278 HOST_WIDE_INTs when folding (x >> c) << c.
4279
4280 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4281 Dominik Vogt <vogt@linux.vnet.ibm.com>
4282
4283 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4284 int comparisons with an out of range condition code.
4285 (s390_optimize_nonescaping_tx): Skip empty BBs.
4286 Generate the new tbegin RTX when removing the FPR clobbers (with
4287 two SETs).
4288 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4289 result before doing the retry calculations.
4290 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4291 "noreturn".
4292 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4293 the TDB setting part of an tbegin.
4294 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4295 ("tx_assist"): Set unused argument to an immediate zero instead of
4296 loading zero into a GPR and pass it as argument.
4297 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4298 Remove inline and related attributes.
4299 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4300 (__TM_is_illegal, __TM_is_footprint_exceeded)
4301 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4302
4303 2013-11-20 Richard Biener <rguenther@suse.de>
4304
4305 PR lto/59035
4306 * lto-opts.c (lto_write_options): Write defaults only if
4307 they were not explicitely specified. Also write
4308 -ffp-contract default.
4309 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4310 conservatively.
4311 (run_gcc): Pass through -ffp-contract.
4312
4313 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4314
4315 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4316
4317 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4318
4319 * config/aarch64/aarch64-builtins.c
4320 (aarch64_simd_itype): Remove.
4321 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4322 (VAR1): Use qualifiers.
4323 (aarch64_build_scalar_type): New.
4324 (aarch64_build_vector_type): Likewise.
4325 (aarch64_build_type): Likewise.
4326 (aarch64_init_simd_builtins): Refactor, remove special cases,
4327 consolidate main loop.
4328 (aarch64_simd_expand_args): Likewise.
4329
4330 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4331
4332 PR c/53001
4333 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4334
4335 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4336
4337 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4338
4339 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4340
4341 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4342 to "vec<>" instances.
4343 (build_pretty_printer): Register the vec<>* prettyprinter.
4344
4345 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4346
4347 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4348 (GdbSubprinter.handles_type): New.
4349 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4350 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4351 (GdbPrettyPrinters.add_printer): Remove in favor of...
4352 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4353 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4354 (GdbPrettyPrinters.__call__): Update search for subprinter
4355 to use handles_type method.
4356 (build_pretty_printer): Update registration of subprinters to
4357 use the new API above, supporting multiple spelling of each type,
4358 and allowing for future regex-based subprinters.
4359
4360 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4361
4362 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4363 V16QI vector splat case for little endian.
4364
4365 2013-11-19 Jeff Law <law@redhat.com>
4366
4367 * tree-ssa-threadedge.c (thread_across_edge): After threading
4368 through a joiner, allow threading a normal block requiring duplication.
4369
4370 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4371 jump threading requests that would muck up the loop structures.
4372
4373 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4374 * tree-ssa-threadupdate.h: Likewise.
4375
4376 2013-11-19 Mike Stump <mikestump@comcast.net>
4377
4378 * gdbinit.in: Add pmz to print out mpz values.
4379
4380 2013-11-20 Jan Hubicka <jh@suse.cz>
4381
4382 * common.opt (ffat-lto-objects): Disable by default.
4383 * doc/invoke.texi (fat-lto-objects): Update documentation.
4384 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4385
4386 2013-11-19 Martin Jambor <mjambor@suse.cz>
4387
4388 PR rtl-optimization/59099
4389 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4390 here.
4391 (ira): Move init_reg_equiv and call to
4392 split_live_ranges_for_shrink_wrap up, remove analyses around call
4393 to find_moveable_pseudos.
4394
4395 2013-11-20 Alan Modra <amodra@gmail.com>
4396
4397 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4398 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4399 to strict alignment on older processors when little-endian.
4400 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4401 for ELFv2.
4402
4403 2013-11-19 Teresa Johnson <tejohnson@google.com>
4404
4405 * common/config/i386/i386-common.c: Enable
4406 -freorder-blocks-and-partition at -O2 and up for x86.
4407 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4408 * opts.c (finish_options): Only warn if
4409 -freorder-blocks-and-partition was set on command line.
4410
4411 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4412
4413 * final.c (final_scan_insn): Emit a label for the split
4414 cold function part. Label name is formed by suffixing
4415 the original function name with "cold".
4416
4417 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4418
4419 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4420 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4421 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4422 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4423 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4424 cfun be explicit.
4425 (EXIT_BLOCK_PTR): Likewise.
4426 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4427 (FOR_ALL_BB_FN): Update for renaming of
4428 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4429
4430 * cfg.c (init_flow): Likewise.
4431 (check_bb_profile): Likewise.
4432 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4433 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4434 * cfghooks.c (account_profile_record): Likewise.
4435 * cfgloop.c (init_loops_structure): Likewise.
4436 * cgraphbuild.c (record_eh_tables): Likewise.
4437 (compute_call_stmt_bb_frequency): Likewise.
4438 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4439 * lto-streamer-in.c (input_cfg): Likewise.
4440 * predict.c (maybe_hot_frequency_p): Likewise.
4441 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4442 * tree-inline.c (initialize_cfun): Likewise.
4443 (copy_cfg_body): Likewise.
4444 (copy_body): Likewise.
4445 (tree_function_versioning): Likewise.
4446
4447 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4448 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4449 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4450 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4451 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4452 (connect_traces): Likewise.
4453 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4454 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4455 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4456 macro.
4457 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4458 EXIT_BLOCK_PTR.
4459 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4460 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4461 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4462 (rotate_loop): Likewise.
4463 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4464 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4465 EXIT_BLOCK_PTR.
4466 (alloc_aux_for_edges): Likewise.
4467 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4468 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4469 EXIT_BLOCK_PTR.
4470 (compact_blocks): Likewise.
4471 (clear_edges): Likewise.
4472 * cfganal.c (single_pred_before_succ_order): Remove usage of
4473 ENTRY_BLOCK_PTR macro.
4474 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4475 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4476 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4477 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4478 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4479 EXIT_BLOCK_PTR.
4480 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4481 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4482 EXIT_BLOCK_PTR.
4483 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4484 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4485 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4486 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4487 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4488 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4489 EXIT_BLOCK_PTR.
4490 (print_edge_list): Likewise.
4491 (create_edge_list): Likewise.
4492 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4493 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4494 EXIT_BLOCK_PTR.
4495 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4496 macro.
4497 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4498 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4499 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4500 (try_optimize_cfg): Likewise.
4501 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4502 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4503 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4504 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4505 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4506 (try_forward_edges): Likewise.
4507 (try_simplify_condjump): Likewise.
4508 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4509 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4510 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4511 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4512 EXIT_BLOCK_PTR.
4513 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4514 (expand_gimple_tailcall): Likewise.
4515 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4516 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4517 (tidy_fallthru_edges): Likewise.
4518 (verify_flow_info): Likewise.
4519 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4520 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4521 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4522 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4523 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4524 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4525 (get_loop_body_in_dom_order): Likewise.
4526 (get_loop_body): Likewise.
4527 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4528 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4529 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4530 macro.
4531 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4532 (fix_bb_placement): Likewise.
4533 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4534 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4535 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4536 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4537 EXIT_BLOCK_PTR.
4538 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4539 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4540 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4541 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4542 macro.
4543 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4544 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4545 (fixup_reorder_chain): Likewise.
4546 (relink_block_chain): Likewise.
4547 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4548 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4549 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4550 (force_one_exit_fallthru): Likewise.
4551 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4552 EXIT_BLOCK_PTR.
4553 (rtl_verify_edges): Likewise.
4554 (commit_edge_insertions): Likewise.
4555 (commit_one_edge_insertion): Likewise.
4556 (rtl_split_edge): Likewise.
4557 (force_nonfallthru_and_redirect): Likewise.
4558 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4559 (skip_insns_after_block): Likewise.
4560 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4561 EXIT_BLOCK_PTR.
4562 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4563 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4564 EXIT_BLOCK_PTR.
4565 (contains_no_active_insn_p): Likewise.
4566 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4567 (entry_of_function): Likewise.
4568 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4569 (fixup_new_cold_bb): Likewise.
4570 (patch_jump_insn): Likewise.
4571 (try_redirect_by_replacing_jump): Likewise.
4572 (block_label): Likewise.
4573 (could_fall_through): Likewise.
4574 (can_fallthru): Likewise.
4575 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4576 ENTRY_BLOCK_PTR macro.
4577 (rebuild_cgraph_edges): Likewise.
4578 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4579 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4580 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4581 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4582 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4583 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4584 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4585 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4586 macro.
4587 (reg_nonzero_bits_for_combine): Likewise.
4588 (set_nonzero_bits_and_sign_copies): Likewise.
4589 (combine_instructions): Likewise.
4590 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4591 EXIT_BLOCK_PTR.
4592 (bypass_conditional_jumps): Likewise.
4593 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4594 (find_implicit_sets): Likewise.
4595 (cprop_jump): Likewise.
4596 * cse.c (cse_cc_succs): Likewise.
4597 (cse_find_path): Likewise.
4598 * df-problems.c (df_lr_confluence_0): Likewise.
4599 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4600 ENTRY_BLOCK_PTR macro.
4601 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4602 * dominance.c (iterate_fix_dominators): Remove usage of
4603 ENTRY_BLOCK_PTR macro.
4604 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4605 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4606 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4607 EXIT_BLOCK_PTR.
4608 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4609 macro.
4610 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4611 EXIT_BLOCK_PTR.
4612 * domwalk.c (cmp_bb_postorder): Likewise.
4613 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4614 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4615 macro.
4616 (sjlj_emit_function_enter): Likewise.
4617 * final.c (compute_alignments): Likewise.
4618 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4619 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4620 (reposition_prologue_and_epilogue_notes): Remove usage of
4621 EXIT_BLOCK_PTR macro.
4622 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4623 EXIT_BLOCK_PTR.
4624 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4625 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4626 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4627 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4628 (compute_code_hoist_vbeinout): Likewise.
4629 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4630 (pre_expr_reaches_here_p_work): Likewise.
4631 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4632 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4633 EXIT_BLOCK_PTR.
4634 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4635 ENTRY_BLOCK_PTR macro.
4636 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4637 macro.
4638 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4639 ENTRY_BLOCK_PTR macro.
4640 * graphite-scop-detection.c (build_scops): Likewise.
4641 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4642 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4643 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4644 macro.
4645 (unlink_bb_notes): Likewise.
4646 (create_check_block_twin): Likewise.
4647 (init_before_recovery): Likewise.
4648 (sched_extend_bb): Likewise.
4649 (priority): Likewise.
4650 * hw-doloop.c (reorder_loops): Likewise.
4651 (discover_loop): Likewise.
4652 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4653 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4654 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4655 (block_has_only_trap): Likewise.
4656 (cond_exec_find_if_block): Likewise.
4657 (merge_if_block): Likewise.
4658 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4659 ENTRY_BLOCK_PTR macro.
4660 (record_modified): Likewise.
4661 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4662 EXIT_BLOCK_PTR macro.
4663 (local_pure_const): Likewise.
4664 * ipa-split.c (split_function): Remove uses of macros:
4665 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4666 (find_split_points): Likewise.
4667 (consider_split): Likewise.
4668 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4669 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4670 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4671 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4672 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4673 ENTRY_BLOCK_PTR macro.
4674 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4675 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4676 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4677 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4678 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4679 macro.
4680 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4681 EXIT_BLOCK_PTR.
4682 (compute_farthest): Likewise.
4683 (compute_available): Likewise.
4684 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4685 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4686 EXIT_BLOCK_PTR.
4687 (compute_earliest): Likewise.
4688 (compute_antinout_edge): Likewise.
4689 * loop-iv.c (simplify_using_initial_values): Remove usage of
4690 ENTRY_BLOCK_PTR macro.
4691 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4692 macro.
4693 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4694 macro.
4695 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4696 macro.
4697 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4698 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4699 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4700 macro.
4701 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4702 macro.
4703 * lto-streamer-out.c (output_cfg): Likewise.
4704 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4705 EXIT_BLOCK_PTR.
4706 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4707 * mode-switching.c (optimize_mode_switching): Likewise.
4708 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4709 * modulo-sched.c (rest_of_handle_sms): Likewise.
4710 (canon_loop): Likewise.
4711 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4712 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4713 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4714 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4715 macro.
4716 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4717 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4718 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4719 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4720 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4721 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4722 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4723 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4724 (gimple_predict_edge): Likewise.
4725 (probably_never_executed): Likewise.
4726 * profile.c (find_spanning_tree): Remove uses of macros:
4727 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4728 (branch_prob): Likewise.
4729 (compute_branch_probabilities): Likewise.
4730 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4731 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4732 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4733 (set_bb_counts): Likewise.
4734 (correct_negative_edge_counts): Likewise.
4735 (get_exec_counts): Likewise.
4736 (instrument_values): Likewise.
4737 (instrument_edges): Likewise.
4738 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4739 EXIT_BLOCK_PTR.
4740 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4741 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4742 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4743 (reg_to_stack): Likewise.
4744 * regs.h (REG_N_SETS): Likewise.
4745 * reload.c (find_dummy_reload): Likewise.
4746 (combine_reloads): Likewise.
4747 (push_reload): Likewise.
4748 * reload1.c (has_nonexceptional_receiver): Remove usage of
4749 EXIT_BLOCK_PTR macro.
4750 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4751 macro.
4752 (find_basic_block): Likewise.
4753 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4754 (schedule_ebbs): Likewise.
4755 * sched-int.h (sel_sched_p): Likewise.
4756 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4757 macro.
4758 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4759 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4760 EXIT_BLOCK_PTR.
4761 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4762 (extend_rgns): Likewise.
4763 (find_single_block_region): Likewise.
4764 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4765 ENTRY_BLOCK_PTR macro.
4766 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4767 (sel_create_recovery_block): Likewise.
4768 (bb_ends_ebb_p): Likewise.
4769 (sel_bb_end): Likewise.
4770 (sel_bb_head): Likewise.
4771 (free_lv_sets): Likewise.
4772 (init_lv_sets): Likewise.
4773 (tidy_control_flow): Likewise.
4774 (maybe_tidy_empty_bb): Likewise.
4775 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4776 (_succ_iter_start): Likewise.
4777 (sel_bb_empty_or_nop_p): Likewise.
4778 (get_loop_exit_edges_unique_dests): Likewise.
4779 (inner_loop_header_p): Likewise.
4780 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4781 (find_block_for_bookkeeping): Likewise.
4782 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4783 (insert_store): Likewise.
4784 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4785 ENTRY_BLOCK_PTR macro.
4786 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4787 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4788 (gate_tm_init): Likewise.
4789 (tm_region_init): Likewise.
4790 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4791 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4792 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4793 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4794 EXIT_BLOCK_PTR.
4795 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4796 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4797 EXIT_BLOCK_PTR.
4798 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4799 macro.
4800 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4801 EXIT_BLOCK_PTR.
4802 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4803 macro.
4804 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4805 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4806 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4807 (build_gimple_cfg): Likewise.
4808 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4809 (gimple_can_merge_blocks_p): Likewise.
4810 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4811 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4812 * tree-complex.c (update_parameter_components): Remove usage of
4813 ENTRY_BLOCK_PTR macro.
4814 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4815 EXIT_BLOCK_PTR macro.
4816 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4817 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4818 (delete_unreachable_blocks_update_callgraph): Likewise.
4819 (initialize_cfun): Likewise.
4820 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4821 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4822 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4823 * tree-into-ssa.c (update_ssa): Likewise.
4824 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4825 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4826 (rewrite_into_ssa): Likewise.
4827 (rewrite_debug_stmt_uses): Likewise.
4828 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4829 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4830 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4831 ENTRY_BLOCK_PTR macro.
4832 * tree-scalar-evolution.h (block_before_loop): Likewise.
4833 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4834 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4835 EXIT_BLOCK_PTR.
4836 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4837 macro.
4838 (propagate_dereference_distances): Remove uses of macros:
4839 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4840 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4841 macro.
4842 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4843 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4844 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4845 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4846 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4847 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4848 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4849 (mark_control_dependent_edges_necessary): Remove uses of macros:
4850 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4851 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4852 ENTRY_BLOCK_PTR macro.
4853 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4854 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4855 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4856 (calculate_live_on_exit): Likewise.
4857 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4858 (loe_visit_block): Likewise.
4859 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4860 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4861 (live_on_entry): Likewise.
4862 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4863 EXIT_BLOCK_PTR macro.
4864 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4865 ENTRY_BLOCK_PTR macro.
4866 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4867 (bound_difference): Likewise.
4868 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4869 of EXIT_BLOCK_PTR macro.
4870 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4871 of ENTRY_BLOCK_PTR macro.
4872 * tree-ssa-math-opts.c (register_division_in): Likewise.
4873 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4874 * tree-ssa-pre.c (compute_avail): Likewise.
4875 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4876 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4877 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4878 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4879 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4880 EXIT_BLOCK_PTR.
4881 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4882 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4883 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4884 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4885 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4886 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4887 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4888 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4889 (find_pdom): Likewise.
4890 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4891 * tree-stdarg.c (reachable_at_most_once): Likewise.
4892 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4893 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4894 (eliminate_tail_call): Likewise.
4895 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4896 macro.
4897 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4898 * var-tracking.c (vt_initialize): Remove uses of macros:
4899 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4900 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4901 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4902 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4903 EXIT_BLOCK_PTR.
4904 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4905 macro.
4906 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4907 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4908 of EXIT_BLOCK_PTR macro.
4909 * config/arm/arm.c (require_pic_register): Remove usage of
4910 ENTRY_BLOCK_PTR macro.
4911 (arm_r3_live_at_start_p): Likewise.
4912 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4913 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4914 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4915 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4916 ENTRY_BLOCK_PTR macro.
4917 * config/i386/i386.c (ix86_count_insn): Likewise.
4918 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4919 (ix86_pad_short_function): Likewise.
4920 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4921 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4922 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4923 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4924 (ix86_expand_epilogue): Likewise.
4925 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4926 (ia64_expand_prologue): Likewise.
4927
4928 2013-11-19 Catherine Moore <clm@codesourcery.com>
4929
4930 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4931 * config/mips/mips.opt (mfix-rm7000): New option.
4932 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4933 * config/mips/mips.c (mips_reorg_process_insns): Disable
4934 noreorder for TARGET_FIX_RM7000.
4935
4936 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4937
4938 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4939
4940 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4941
4942 * config/arm/arm.c (arm_new_rtx_costs):
4943 Handle narrow mode add-shifts properly.
4944 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4945 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4946 Declare extern.
4947
4948 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4949
4950 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4951
4952 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4953
4954 * config/rs6000/vector.md ("mov<mode>"): Do not call
4955 rs6000_emit_le_vsx_move to move into or out of GPRs.
4956 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4957 source and destination are not GPR hard regs.
4958
4959 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4960
4961 * basic-block.h (n_edges_for_function): Rename macro to...
4962 (n_edges_for_fn): ...this.
4963 (n_edges): Eliminate macro as work towards making uses of
4964 cfun be explicit.
4965
4966 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
4967 to "n_edges_for_fn".
4968
4969 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
4970 (clear_edges): Likewise.
4971 (free_edge): Likewise.
4972 * cfghooks.c (dump_flow_info): Likewise.
4973 * cprop.c (is_too_expensive): Likewise.
4974 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4975 * gcse.c (is_too_expensive): Likewise.
4976 (prune_insertions_deletions): Likewise.
4977 * mcf.c (create_fixup_graph): Likewise.
4978 * sched-rgn.c (haifa_find_rgns): Likewise.
4979 * tree-cfg.c (gimple_dump_cfg): Likewise.
4980 * var-tracking.c (variable_tracking_main_1): Likewise.
4981
4982 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4983
4984 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
4985 length lines.
4986
4987 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4988
4989 * config/aarch64/aarch64.md
4990 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
4991
4992 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4993
4994 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
4995
4996 2013-11-19 Joseph Myers <joseph@codesourcery.com>
4997
4998 * varasm.c (align_variable): Give error instead of warning for
4999 unsupported alignment.
5000 (assemble_noswitch_variable): Likewise.
5001
5002 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5003
5004 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5005 cb_file_change.
5006
5007 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5008
5009 * loop-doloop.c (doloop_optimize_loops): Remove unused
5010 loop iterator argument from FOR_EACH_LOOP.
5011
5012 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5013
5014 Convert gimple types from a union to C++ inheritance.
5015 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5016 * coretypes.h (union gimple_statement_d): Remove declaration.
5017 (gimple): Convert from being a "union gimple_statement_d *"
5018 to a "struct gimple_statement_base *".
5019 (const_gimple): Likewise (with "const").
5020 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5021 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5022 * gimple-pretty-print.c (debug): Change parameter from a
5023 "gimple_statement_d &" to a "gimple_statement_base &".
5024 (debug): Change parameter from a "gimple_statement_d *" to
5025 a "gimple_statement_base *".
5026 * gimple-pretty-print.h (debug): Update declarations as above.
5027 * gimple.c (gimple_alloc_stat): Update for renaming of
5028 ggc_alloc_cleared_gimple_statement_d_stat to
5029 ggc_alloc_cleared_gimple_statement_stat.
5030 * gimple.h: Include "is-a.h" for use by is_a_helper
5031 specializations in followup autogenerated patch.
5032 (struct gimple statement_base): Make this type usable as a base
5033 class by adding "desc", "tag" and "variable_size" to GTY, thus
5034 using opting-in to gengtype's support for simple inheritance.
5035 (gimple_statement_with_ops_base): Convert to a subclass of
5036 gimple_statement_base, dropping initial "gsbase" field. Note that
5037 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5038 (gimple_statement_with_ops): Convert to a subclass of
5039 gimple_statement_with_ops_base, dropping initial "opbase" field.
5040 Add tag value to GTY marking. Update marking of op field to
5041 reflect how num_ops field is accessed via inheritance.
5042 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5043 gimple_statement_with_ops_base, dropping initial "opbase" field.
5044 Add tag value to GTY marking.
5045 (gimple_statement_with_memory_ops): Convert to a subclass of
5046 public gimple_statement_with_memory_ops_base, dropping initial
5047 "membase" field. Add tag value to GTY marking. Update marking
5048 of op field to reflect how num_ops field is accessed via inheritance.
5049 (gimple_statement_call): Analogous changes that also update the
5050 marking of the "u" union.
5051 (gimple_statement_omp): Convert to a subclass of
5052 gimple_statement_base, dropping initial "gsbase" field, adding
5053 tag value to GTY marking.
5054 (gimple_statement_bind): Likewise.
5055 (gimple_statement_catch): Likewise.
5056 (gimple_statement_eh_filter): Likewise.
5057 (gimple_statement_eh_else): Likewise.
5058 (gimple_statement_eh_mnt): Likewise.
5059 (gimple_statement_phi): Likewise.
5060 (gimple_statement_eh_ctrl): Likewise.
5061 (gimple_statement_try): Likewise.
5062 (gimple_statement_wce): Likewise.
5063 (gimple_statement_asm): Convert to a subclass of
5064 gimple_statement_with_memory_ops_base, dropping initial
5065 "membase" field, adding tag value to GTY marking, and updating
5066 marking of op field.
5067 (gimple_statement_omp_critical): Convert to a subclass of
5068 gimple_statement_omp, dropping initial "omp" field, adding tag
5069 value to GTY marking.
5070 (gimple_statement_omp_for): Likewise.
5071 (gimple_statement_omp_parallel): Likewise.
5072 (gimple_statement_omp_task): Convert to a subclass of
5073 gimple_statement_omp_parallel, dropping initial "par" field,
5074 adding tag value to GTY marking.
5075 (gimple_statement_omp_sections): Convert to a subclass of
5076 gimple_statement_omp, dropping initial "omp" field, adding
5077 tag value to GTY marking.
5078 (gimple_statement_omp_continue): Convert to a subclass of
5079 gimple_statement_base, dropping initial "gsbase" field, adding
5080 tag value to GTY marking.
5081 (gimple_statement_omp_single): Convert to a subclass of
5082 gimple_statement_omp, dropping initial "omp" field, adding
5083 tag value to GTY marking.
5084 (gimple_statement_omp_atomic_load): Convert to a subclass of
5085 gimple_statement_base, dropping initial "gsbase" field, adding
5086 tag value to GTY marking.
5087 (gimple_statement_omp_atomic_store): Convert to a subclass of
5088 gimple_statement_base, dropping initial "gsbase" field, adding
5089 tag value to GTY marking.
5090 (gimple_statement_transaction): Convert to a subclass of
5091 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5092 field, adding tag value to GTY marking.
5093 (union gimple_statement_d): Remove.
5094 * system.h (CONST_CAST_GIMPLE): Update to use
5095 "struct gimple_statement_base *" rather than
5096 "union gimple_statement_d *".
5097 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5098 gimple_statement_d to gimple_statement_base.
5099
5100 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5101 (gimple_set_use_ops): Port from union to usage of as_a.
5102 (gimple_set_vuse): Likewise.
5103 (gimple_set_vdef): Likewise.
5104 (gimple_call_internal_fn): Port from union to a static_cast,
5105 given that the type has already been asserted.
5106 (gimple_omp_body_ptr): Port from unchecked union usage to
5107 a static_cast.
5108 (gimple_omp_set_body): Likewise.
5109
5110 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5111 gimple types to a true class hierarchy.
5112 (update_call_edge_frequencies): Likewise.
5113 (gsi_insert_seq_nodes_before): Likewise.
5114 (gsi_insert_seq_nodes_after): Likewise.
5115 (gsi_split_seq_after): Likewise.
5116 (gsi_set_stmt): Likewise.
5117 (gsi_split_seq_before): Likewise.
5118 (gsi_remove): Likewise.
5119 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5120 (gsi_next): Likewise.
5121 (gsi_prev): Likewise.
5122 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5123 * gimple-ssa.h (gimple_vuse_op): Likewise.
5124 (gimple_vdef_op): Likewise.
5125 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5126 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5127 * gimple.c (gimple_set_code): Likewise.
5128 (gimple_alloc_stat): Likewise.
5129 (gimple_set_subcode): Likewise.
5130 (gimple_build_call_internal_1): Likewise.
5131 (gimple_check_failed): Likewise.
5132 (gimple_call_flags): Likewise.
5133 (gimple_set_bb): Likewise.
5134 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5135 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5136 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5137 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5138 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5139 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5140 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5141 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5142 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5143 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5144 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5145 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5146 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5147 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5148 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5149 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5150 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5151 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5152 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5153 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5154 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5155 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5156 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5157 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5158 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5159 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5160 Likewise.
5161 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5162 Likewise.
5163 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5164 Likewise.
5165 (is_a_helper <const gimple_statement_omp_atomic_store>
5166 (const_gimple)): Likewise.
5167 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5168 Likewise.
5169 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5170 Likewise.
5171 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5172 Likewise.
5173 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5174 Likewise.
5175 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5176 Likewise.
5177 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5178 Likewise.
5179 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5180 Likewise.
5181 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5182 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5183 Likewise.
5184 (gimple_seq_last): Update for conversion of gimple types to a true
5185 class hierarchy.
5186 (gimple_seq_set_last): Likewise.
5187 (gimple_code): Likewise.
5188 (gimple_bb): Likewise.
5189 (gimple_block): Likewise.
5190 (gimple_set_block): Likewise.
5191 (gimple_location): Likewise.
5192 (gimple_location_ptr): Likewise.
5193 (gimple_set_location): Likewise.
5194 (gimple_no_warning_p): Likewise.
5195 (gimple_set_no_warning): Likewise.
5196 (gimple_set_visited): Likewise.
5197 (gimple_visited_p): Likewise.
5198 (gimple_set_plf): Likewise.
5199 (gimple_plf): Likewise.
5200 (gimple_set_uid): Likewise.
5201 (gimple_uid): Likewise.
5202 (gimple_init_singleton): Likewise.
5203 (gimple_modified_p): Likewise.
5204 (gimple_set_modified): Likewise.
5205 (gimple_expr_code): Likewise.
5206 (gimple_has_volatile_ops): Likewise.
5207 (gimple_set_has_volatile_ops): Likewise.
5208 (gimple_omp_subcode): Likewise.
5209 (gimple_omp_set_subcode): Likewise.
5210 (gimple_omp_return_set_nowait): Likewise.
5211 (gimple_omp_section_set_last): Likewise.
5212 (gimple_omp_parallel_set_combined_p): Likewise.
5213 (gimple_omp_atomic_set_need_value): Likewise.
5214 (gimple_omp_atomic_set_seq_cst): Likewise.
5215 (gimple_num_ops): Likewise.
5216 (gimple_set_num_ops): Likewise.
5217 (gimple_assign_nontemporal_move_p): Likewise.
5218 (gimple_assign_set_nontemporal_move): Likewise.
5219 (gimple_assign_rhs_code): Likewise.
5220 (gimple_assign_set_rhs_code): Likewise.
5221 (gimple_call_internal_p): Likewise.
5222 (gimple_call_with_bounds_p): Likewise.
5223 (gimple_call_set_with_bounds): Likewise.
5224 (gimple_call_set_tail): Likewise.
5225 (gimple_call_tail_p): Likewise.
5226 (gimple_call_set_return_slot_opt): Likewise.
5227 (gimple_call_return_slot_opt_p): Likewise.
5228 (gimple_call_set_from_thunk): Likewise.
5229 (gimple_call_from_thunk_p): Likewise.
5230 (gimple_call_set_va_arg_pack): Likewise.
5231 (gimple_call_va_arg_pack_p): Likewise.
5232 (gimple_call_set_nothrow): Likewise.
5233 (gimple_call_set_alloca_for_var): Likewise.
5234 (gimple_call_alloca_for_var_p): Likewise.
5235 (gimple_call_copy_flags): Likewise.
5236 (gimple_cond_code): Likewise.
5237 (gimple_cond_set_code): Likewise.
5238 (gimple_cond_make_false): Likewise.
5239 (gimple_cond_make_true): Likewise.
5240 (gimple_asm_volatile_p): Likewise.
5241 (gimple_asm_set_volatile): Likewise.
5242 (gimple_asm_set_input): Likewise.
5243 (gimple_asm_input_p): Likewise.
5244 (gimple_try_kind): Likewise.
5245 (gimple_try_set_kind): Likewise.
5246 (gimple_try_catch_is_cleanup): Likewise.
5247 (gimple_try_set_catch_is_cleanup): Likewise.
5248 (gimple_wce_cleanup_eh_only): Likewise.
5249 (gimple_wce_set_cleanup_eh_only): Likewise.
5250 (gimple_debug_bind_p): Likewise.
5251 (gimple_debug_source_bind_p): Likewise.
5252 (gimple_omp_for_set_kind): Likewise.
5253 (gimple_omp_for_set_combined_p): Likewise.
5254 (gimple_omp_for_set_combined_into_p): Likewise.
5255 (gimple_omp_target_set_kind): Likewise.
5256 (gimple_transaction_subcode): Likewise.
5257 (gimple_transaction_set_subcode): Likewise.
5258 (gimple_predict_predictor): Likewise.
5259 (gimple_predict_set_predictor): Likewise.
5260 (gimple_predict_outcome): Likewise.
5261 (gimple_predict_set_outcome): Likewise.
5262 (gimple_transaction_set_label): Likewise.
5263 (gimple_transaction_set_body): Likewise.
5264 (gimple_transaction_label_ptr): Likewise.
5265 (gimple_transaction_label): Likewise.
5266 (gimple_transaction_body_ptr): Likewise.
5267 (gimple_omp_continue_set_control_use): Likewise.
5268 (gimple_omp_continue_control_use_ptr): Likewise.
5269 (gimple_omp_continue_control_use): Likewise.
5270 (gimple_omp_continue_set_control_def): Likewise.
5271 (gimple_omp_continue_control_def_ptr): Likewise.
5272 (gimple_omp_continue_control_def): Likewise.
5273 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5274 (gimple_omp_atomic_load_rhs): Likewise.
5275 (gimple_omp_atomic_load_set_rhs): Likewise.
5276 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5277 (gimple_omp_atomic_load_lhs): Likewise.
5278 (gimple_omp_atomic_load_set_lhs): Likewise.
5279 (gimple_omp_atomic_store_val_ptr): Likewise.
5280 (gimple_omp_atomic_store_val): Likewise.
5281 (gimple_omp_atomic_store_set_val): Likewise.
5282 (gimple_omp_for_cond): Likewise.
5283 (gimple_omp_for_set_cond): Likewise.
5284 (gimple_omp_sections_set_control): Likewise.
5285 (gimple_omp_sections_control_ptr): Likewise.
5286 (gimple_omp_sections_control): Likewise.
5287 (gimple_omp_sections_set_clauses): Likewise.
5288 (gimple_omp_sections_clauses_ptr): Likewise.
5289 (gimple_omp_sections_clauses): Likewise.
5290 (gimple_omp_teams_set_clauses): Likewise.
5291 (gimple_omp_teams_clauses_ptr): Likewise.
5292 (gimple_omp_teams_clauses): Likewise.
5293 (gimple_omp_target_set_data_arg): Likewise.
5294 (gimple_omp_target_data_arg_ptr): Likewise.
5295 (gimple_omp_target_data_arg): Likewise.
5296 (gimple_omp_target_set_child_fn): Likewise.
5297 (gimple_omp_target_child_fn_ptr): Likewise.
5298 (gimple_omp_target_child_fn): Likewise.
5299 (gimple_omp_target_set_clauses): Likewise.
5300 (gimple_omp_target_clauses_ptr): Likewise.
5301 (gimple_omp_target_clauses): Likewise.
5302 (gimple_omp_single_set_clauses): Likewise.
5303 (gimple_omp_single_clauses_ptr): Likewise.
5304 (gimple_omp_single_clauses): Likewise.
5305 (gimple_omp_task_set_arg_align): Likewise.
5306 (gimple_omp_task_arg_align_ptr): Likewise.
5307 (gimple_omp_task_arg_align): Likewise.
5308 (gimple_omp_task_set_arg_size): Likewise.
5309 (gimple_omp_task_arg_size_ptr): Likewise.
5310 (gimple_omp_task_arg_size): Likewise.
5311 (gimple_omp_task_set_copy_fn): Likewise.
5312 (gimple_omp_task_copy_fn_ptr): Likewise.
5313 (gimple_omp_task_copy_fn): Likewise.
5314 (gimple_omp_task_set_data_arg): Likewise.
5315 (gimple_omp_task_data_arg_ptr): Likewise.
5316 (gimple_omp_task_data_arg): Likewise.
5317 (gimple_omp_task_set_child_fn): Likewise.
5318 (gimple_omp_task_child_fn_ptr): Likewise.
5319 (gimple_omp_task_child_fn): Likewise.
5320 (gimple_omp_task_set_clauses): Likewise.
5321 (gimple_omp_task_clauses_ptr): Likewise.
5322 (gimple_omp_task_clauses): Likewise.
5323 (gimple_omp_parallel_set_data_arg): Likewise.
5324 (gimple_omp_parallel_data_arg_ptr): Likewise.
5325 (gimple_omp_parallel_data_arg): Likewise.
5326 (gimple_omp_parallel_set_child_fn): Likewise.
5327 (gimple_omp_parallel_child_fn_ptr): Likewise.
5328 (gimple_omp_parallel_child_fn): Likewise.
5329 (gimple_omp_parallel_set_clauses): Likewise.
5330 (gimple_omp_parallel_clauses_ptr): Likewise.
5331 (gimple_omp_parallel_clauses): Likewise.
5332 (gimple_omp_for_set_pre_body): Likewise.
5333 (gimple_omp_for_pre_body_ptr): Likewise.
5334 (gimple_omp_for_set_incr): Likewise.
5335 (gimple_omp_for_incr_ptr): Likewise.
5336 (gimple_omp_for_incr): Likewise.
5337 (gimple_omp_for_set_final): Likewise.
5338 (gimple_omp_for_final_ptr): Likewise.
5339 (gimple_omp_for_final): Likewise.
5340 (gimple_omp_for_set_initial): Likewise.
5341 (gimple_omp_for_initial_ptr): Likewise.
5342 (gimple_omp_for_initial): Likewise.
5343 (gimple_omp_for_set_index): Likewise.
5344 (gimple_omp_for_index_ptr): Likewise.
5345 (gimple_omp_for_index): Likewise.
5346 (gimple_omp_for_collapse): Likewise.
5347 (gimple_omp_for_set_clauses): Likewise.
5348 (gimple_omp_for_clauses_ptr): Likewise.
5349 (gimple_omp_for_clauses): Likewise.
5350 (gimple_omp_critical_set_name): Likewise.
5351 (gimple_omp_critical_name_ptr): Likewise.
5352 (gimple_omp_critical_name): Likewise.
5353 (gimple_eh_dispatch_set_region): Likewise.
5354 (gimple_eh_dispatch_region): Likewise.
5355 (gimple_resx_set_region): Likewise.
5356 (gimple_resx_region): Likewise.
5357 (gimple_phi_set_arg): Likewise.
5358 (gimple_phi_arg): Likewise.
5359 (gimple_phi_set_result): Likewise.
5360 (gimple_phi_result_ptr): Likewise.
5361 (gimple_phi_result): Likewise.
5362 (gimple_phi_num_args): Likewise.
5363 (gimple_phi_capacity): Likewise.
5364 (gimple_wce_set_cleanup): Likewise.
5365 (gimple_wce_cleanup_ptr): Likewise.
5366 (gimple_try_set_cleanup): Likewise.
5367 (gimple_try_set_eval): Likewise.
5368 (gimple_try_cleanup_ptr): Likewise.
5369 (gimple_try_eval_ptr): Likewise.
5370 (gimple_eh_else_set_e_body): Likewise.
5371 (gimple_eh_else_set_n_body): Likewise.
5372 (gimple_eh_else_e_body_ptr): Likewise.
5373 (gimple_eh_else_n_body_ptr): Likewise.
5374 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5375 (gimple_eh_must_not_throw_fndecl): Likewise.
5376 (gimple_eh_filter_set_failure): Likewise.
5377 (gimple_eh_filter_set_types): Likewise.
5378 (gimple_eh_filter_failure_ptr): Likewise.
5379 (gimple_eh_filter_types_ptr): Likewise.
5380 (gimple_eh_filter_types): Likewise.
5381 (gimple_catch_set_handler): Likewise.
5382 (gimple_catch_set_types): Likewise.
5383 (gimple_catch_handler_ptr): Likewise.
5384 (gimple_catch_types_ptr): Likewise.
5385 (gimple_catch_types): Likewise.
5386 (gimple_asm_string): Likewise.
5387 (gimple_asm_set_label_op): Likewise.
5388 (gimple_asm_label_op): Likewise.
5389 (gimple_asm_set_clobber_op): Likewise.
5390 (gimple_asm_clobber_op): Likewise.
5391 (gimple_asm_set_output_op): Likewise.
5392 (gimple_asm_output_op_ptr): Likewise.
5393 (gimple_asm_output_op): Likewise.
5394 (gimple_asm_set_input_op): Likewise.
5395 (gimple_asm_input_op_ptr): Likewise.
5396 (gimple_asm_input_op): Likewise.
5397 (gimple_asm_nlabels): Likewise.
5398 (gimple_asm_nclobbers): Likewise.
5399 (gimple_asm_noutputs): Likewise.
5400 (gimple_asm_ninputs): Likewise.
5401 (gimple_bind_set_block): Likewise.
5402 (gimple_bind_block): Likewise.
5403 (gimple_bind_add_seq): Likewise.
5404 (gimple_bind_add_stmt): Likewise.
5405 (gimple_bind_set_body): Likewise.
5406 (gimple_bind_body_ptr): Likewise.
5407 (gimple_bind_append_vars): Likewise.
5408 (gimple_bind_set_vars): Likewise.
5409 (gimple_bind_vars): Likewise.
5410 (gimple_call_clobber_set): Likewise.
5411 (gimple_call_use_set): Likewise.
5412 (gimple_call_set_internal_fn): Likewise.
5413 (gimple_call_set_fntype): Likewise.
5414 (gimple_call_fntype): Likewise.
5415 (gimple_omp_return_lhs_ptr): Likewise.
5416 (gimple_omp_return_lhs): Likewise.
5417 (gimple_omp_return_set_lhs): Likewise.
5418 (gimple_omp_taskreg_set_data_arg): Likewise.
5419 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5420 (gimple_omp_taskreg_data_arg): Likewise.
5421 (gimple_omp_taskreg_set_child_fn): Likewise.
5422 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5423 (gimple_omp_taskreg_child_fn): Likewise.
5424 (gimple_omp_taskreg_set_clauses): Likewise.
5425 (gimple_omp_taskreg_clauses_ptr): Likewise.
5426 (gimple_omp_taskreg_clauses): Likewise.
5427 (gimple_vuse): Likewise.
5428 (gimple_vdef): Likewise.
5429 (gimple_vuse_ptr): Likewise.
5430 (gimple_vdef_ptr): Likewise.
5431 * tree-inline.c (copy_debug_stmt): Likewise.
5432 * tree-phinodes.c (make_phi_node): Likewise.
5433
5434 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5435 (is_a_helper <gimple_statement_with_ops>::test): New.
5436 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5437 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5438
5439 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5440 access to use of as_a.
5441 * gimple.c (gimple_build_asm_1): Likewise.
5442 (gimple_build_try): Likewise. Also, return a specific subclass
5443 rather than just gimple.
5444 (gimple_build_resx): Port from union access to use of as_a.
5445 (gimple_build_eh_dispatch): Likewise.
5446 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5447 now that gengtype no longer provides a typed allocator function.
5448 (gimple_copy): Likewise.
5449 * gimple.h (gimple_build_try): Return a specific subclass rather
5450 than just gimple.
5451 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5452 with subclass access by making use of new return type of
5453 gimple_build_try.
5454 * tree-phinodes.c: (allocate_phi_node): Return a
5455 "gimple_statement_phi *" rather than just a gimple.
5456 (resize_phi_node): Likewise.
5457 (make_phi_node): Replace union access with subclass access by
5458 making use of new return type of allocate_phi_node.
5459 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5460 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5461 than just a gimple.
5462 (remove_phi_args): Update for change to remove_phi_arg_num.
5463
5464 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5465 code field to reflect inheritance, rather than embedding of
5466 the base gimple type.
5467
5468 2013-11-19 Richard Biener <rguenther@suse.de>
5469
5470 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5471 and destructor and make fel_next a member function.
5472 (fel_next): Transform into ...
5473 (loop_iterator::next): ... this.
5474 (fel_init): Transform into ...
5475 (loop_iterator::loop_iterator): ... this.
5476 (loop_iterator::~loop_iterator): New.
5477 (FOR_EACH_LOOP): Remove loop-iterator argument.
5478 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5479 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5480 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5481 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5482 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5483 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5484 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5485 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5486 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5487 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5488 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5489 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5490 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5491 FOR_EACH_LOOP_BREAK with break.
5492
5493 2013-11-19 Richard Biener <rguenther@suse.de>
5494
5495 PR tree-optimization/59164
5496 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5497 Uncomment assert.
5498 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5499 whether we can create an epilogue loop to reflect thecases where
5500 we create one.
5501
5502 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5503
5504 * graphite-sese-to-poly.c: Include expr.h.
5505
5506 2013-11-19 Richard Biener <rguenther@suse.de>
5507
5508 PR middle-end/58956
5509 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5510 loads into stmts that may clobber it.
5511
5512 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5513
5514 * cgraphunit.c (symtab_terminator): New variable.
5515 (queued_nodes): Renamed from first. Use symtab_terminator as
5516 initializer.
5517 (analyze_functions): Adjust accordingly.
5518 (cgraph_process_new_functions): Return void.
5519 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5520
5521 2013-11-19 Marek Polacek <polacek@redhat.com>
5522
5523 * opts.c (common_handle_option): Add -fsanitize=null option.
5524 Turn off -fdelete-null-pointer-checks option when doing the
5525 NULL pointer checking.
5526 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5527 * tree-pass.h (make_pass_ubsan): Declare.
5528 (make_pass_sanopt): Declare.
5529 * timevar.def (TV_TREE_UBSAN): New timevar.
5530 * passes.def: Add pass_sanopt and pass_ubsan.
5531 * ubsan.h (ubsan_null_ckind): New enum.
5532 (ubsan_mismatch_data): New struct.
5533 (ubsan_expand_null_ifn): Declare.
5534 (ubsan_create_data): Adjust declaration.
5535 (ubsan_type_descriptor): Likewise.
5536 * asan.c: Include "ubsan.h".
5537 (pass_data_sanopt): New pass.
5538 (execute_sanopt): New function.
5539 (gate_sanopt): Likewise.
5540 (make_pass_sanopt): Likewise.
5541 (class pass_sanopt): New class.
5542 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5543 gimple-iterator.h and cfgloop.h.
5544 (PROB_VERY_UNLIKELY): Define.
5545 (tree_type_map_hash): New function.
5546 (ubsan_type_descriptor): Add new parameter.
5547 Improve type name generation.
5548 (ubsan_create_data): Add new parameter. Add pointer data into
5549 ubsan structure.
5550 (ubsan_expand_null_ifn): New function.
5551 (instrument_member_call): Likewise.
5552 (instrument_mem_ref): Likewise.
5553 (instrument_null): Likewise.
5554 (ubsan_pass): Likewise.
5555 (gate_ubsan): Likewise.
5556 (make_pass_ubsan): Likewise.
5557 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5558 (class pass_ubsan): New class.
5559 (pass_data_ubsan): New pass.
5560 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5561 * internal-fn.c (expand_UBSAN_NULL): New function.
5562 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5563 even when !flag_toplevel_reorder.
5564 * internal-fn.def (UBSAN_NULL): New.
5565
5566 2013-11-19 Jan Hubicka <jh@suse.cz>
5567
5568 * cgraph.c (cgraph_create_indirect_edge): Use
5569 get_polymorphic_call_info.
5570 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5571 maybe_in_construction and maybe_derived_type.
5572 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5573 (ipa_dummy_polymorphic_call_context): New global var.
5574 (possible_polymorphic_call_targets): Add context paramter.
5575 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5576 (possible_polymorphic_call_target_p): Likewise.
5577 (get_polymorphic_call_info): New function.
5578 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5579 (add_type_duplicate): Remove forgotten debug output.
5580 (method_class_type): Add sanity check.
5581 (maybe_record_node): Add FINALP parameter.
5582 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5583 by info by get_binfo_at_offset.
5584 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5585 parameters; pass them to record-binfo.
5586 (polymorphic_call_target_d): Add context and FINAL.
5587 (polymorphic_call_target_hasher::hash): Hash context.
5588 (polymorphic_call_target_hasher::equal): Compare context.
5589 (free_polymorphic_call_targets_hash):
5590 (get_class_context): New function.
5591 (contains_type_p): New function.
5592 (get_polymorphic_call_info): New function.
5593 (walk_bases): New function.
5594 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5595 (dump_possible_polymorphic_call_targets): Dump context.
5596 (possible_polymorphic_call_target_p): Add context.
5597 (update_type_inheritance_graph): Update comment.s
5598 (ipa_set_jf_known_type): Assert that compoentn type is known.
5599 (ipa_note_param_call): Do not tamper with offsets.
5600 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5601 outer type.
5602 (update_indirect_edges_after_inlining): Likewise.
5603 (ipa_write_indirect_edge_info): Stream new fields.
5604 (ipa_read_indirect_edge_info): Stream in new fields.
5605
5606 2013-11-19 Jan Hubicka <jh@suse.cz>
5607
5608 * tree-pretty-print.c (dump_generic_node): Print class type of
5609 OBJ_TYPE_REF.
5610
5611 2013-11-19 Joey Ye <joey.ye@arm.com>
5612
5613 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5614 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5615 for new option.
5616 * config/arm/arm.c (arm_option_override): By default disable
5617 -marm-pic-data-is-text-relative.
5618 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5619 (arm_assemble_integer): Likewise.
5620 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5621 New macro to initialize -marm-pic-data-is-text-relative.
5622
5623 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5624
5625 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5626 (address_cost_data): New field.
5627 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5628 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5629
5630 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5631
5632 * config/aarch64/aarch64.md: Remove v8type from all insns.
5633
5634 2013-11-19 Richard Biener <rguenther@suse.de>
5635
5636 PR tree-optimization/57517
5637 * tree-predcom.c (combinable_refs_p): Verify the combination
5638 is always executed when the refs are.
5639
5640 2013-11-19 Jeff Law <law@redhat.com>
5641
5642 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5643 (copy_phi_arg_into_existing_phi): New function.
5644 (any_remaining_duplicated_blocks): Likewise.
5645 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5646 blocks on a jump threading path.
5647
5648 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5649 thread through a joiner which has the latch edge.
5650
5651 2013-11-19 Jan Hubicka <jh@suse.cz>
5652
5653 * md.texi (setmem): Document new parameter.
5654 * optabs.c (maybe_gen_insn): Support 9 operands.
5655 * builtins.c (determine_block_size): Add probable_max_size;
5656 support anti-ranges.
5657 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5658 probable_max_size.
5659 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5660 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5661 Likewise.
5662 * expr.h (emit_block_move_hints, clear_storage_hints,
5663 set_storage_via_setmem): Update prototype.
5664 * i386.md (setmem, movmem patterns): Add 9th operand.
5665 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5666 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5667 argument; pass it to decide_alg.
5668
5669 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5670
5671 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5672 (n_basic_blocks_for_fn): ...this.
5673
5674 (n_basic_blocks): Eliminate macro as work towards making uses of
5675 cfun be explicit.
5676
5677 * cfgloop.c (init_loops_structure): Update for renaming of
5678 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5679 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5680 * ipa-utils.c (ipa_merge_profiles): Likewise.
5681 * lto-streamer-in.c (make_new_block): Likewise.
5682 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5683 (dump_function_to_file): Likewise.
5684
5685 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5686 macro with "n_basic_blocks_for_fn (cfun)".
5687 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5688 (duplicate_computed_gotos): Likewise.
5689 (reorder_basic_blocks): Likewise.
5690 * bt-load.c (augment_live_range): Likewise.
5691 * cfg.c (expunge_block): Likewise.
5692 (compact_blocks): Likewise.
5693 * cfganal.c (single_pred_before_succ_order): Likewise.
5694 (compute_idf): Likewise.
5695 (flow_dfs_compute_reverse_init): Likewise.
5696 (pre_and_rev_post_order_compute): Likewise.
5697 (pre_and_rev_post_order_compute_fn): Likewise.
5698 (inverted_post_order_compute): Likewise.
5699 (post_order_compute): Likewise.
5700 (print_edge_list): Likewise.
5701 (find_unreachable_blocks): Likewise.
5702 (mark_dfs_back_edges): Likewise.
5703 * cfgcleanup.c (try_optimize_cfg): Likewise.
5704 (try_forward_edges): Likewise.
5705 * cfghooks.c (dump_flow_info): Likewise.
5706 * cfgloop.c (verify_loop_structure): Likewise.
5707 (get_loop_body): Likewise.
5708 (flow_loops_find): Likewise.
5709 * cfgloopmanip.c (add_loop): Likewise.
5710 (remove_path): Likewise.
5711 (find_path): Likewise.
5712 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5713 (rtl_verify_bb_layout): Likewise.
5714 (entry_of_function): Likewise.
5715 (rtl_create_basic_block): Likewise.
5716 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5717 * cprop.c (one_cprop_pass): Likewise.
5718 (is_too_expensive): Likewise.
5719 * df-core.c (df_compute_cfg_image): Likewise.
5720 (df_compact_blocks): Likewise.
5721 (df_worklist_dataflow_doublequeue): Likewise.
5722 * dominance.c (calculate_dominance_info): Likewise.
5723 (calc_dfs_tree): Likewise.
5724 (calc_dfs_tree_nonrec): Likewise.
5725 (init_dom_info): Likewise.
5726 * domwalk.c (cmp_bb_postorder): Likewise.
5727 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5728 (generate_setjmp_warnings): Likewise.
5729 * fwprop.c (build_single_def_use_links): Likewise.
5730 * gcse.c (is_too_expensive): Likewise.
5731 (one_code_hoisting_pass): Likewise.
5732 (one_pre_gcse_pass): Likewise.
5733 * graphite.c (graphite_initialize): Likewise.
5734 * haifa-sched.c (haifa_sched_init): Likewise.
5735 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5736 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5737 * ira-build.c (ira_build): Likewise.
5738 * lcm.c (compute_nearerout): Likewise.
5739 (compute_available): Likewise.
5740 (compute_laterin): Likewise.
5741 (compute_antinout_edge): Likewise.
5742 * lra-lives.c (lra_create_live_ranges): Likewise.
5743 * lra.c (has_nonexceptional_receiver): Likewise.
5744 * mcf.c (create_fixup_graph): Likewise.
5745 * profile.c (branch_prob): Likewise.
5746 * reg-stack.c (convert_regs_2): Likewise.
5747 * regrename.c (regrename_analyze): Likewise.
5748 * reload1.c (has_nonexceptional_receiver): Likewise.
5749 * reorg.c (dbr_schedule): Likewise.
5750 * sched-deps.c (sched_deps_init): Likewise.
5751 * sched-ebb.c (schedule_ebbs): Likewise.
5752 * sched-rgn.c (extend_regions): Likewise.
5753 (schedule_insns): Likewise.
5754 (sched_rgn_init): Likewise.
5755 (extend_rgns): Likewise.
5756 (haifa_find_rgns): Likewise.
5757 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5758 (sel_recompute_toporder): Likewise.
5759 * sel-sched.c (run_selective_scheduling): Likewise.
5760 * store-motion.c (one_store_motion_pass): Likewise.
5761 (remove_reachable_equiv_notes): Likewise.
5762 * tracer.c (tracer): Likewise.
5763 (tail_duplicate): Likewise.
5764 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5765 (dump_cfg_stats): Likewise.
5766 (gimple_dump_cfg): Likewise.
5767 (create_bb): Likewise.
5768 (build_gimple_cfg): Likewise.
5769 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5770 * tree-inline.c (optimize_inline_calls): Likewise.
5771 (fold_marked_statements): Likewise.
5772 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5773 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5774 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5775 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5776 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5777 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5778 * tree-ssa-pre.c (do_pre): Likewise.
5779 (init_pre): Likewise.
5780 (compute_avail): Likewise.
5781 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5782 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5783 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5784 (init_worklist): Likewise.
5785 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5786 * var-tracking.c (variable_tracking_main_1): Likewise.
5787 (vt_find_locations): Likewise.
5788 (vt_stack_adjustments): Likewise.
5789 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5790 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5791
5792 2013-11-18 Jan Hubicka <jh@suse.cz>
5793
5794 * profile.c (compute_branch_probabilities): Do not sanity check
5795 run_max.
5796
5797 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5798
5799 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5800 GET_MODE_PRECISION.
5801 * fold-const.c (fold_single_bit_test_into_sign_test)
5802 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5803
5804 2013-11-18 Teresa Johnson <tejohnson@google.com>
5805
5806 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5807 cfglayout after bb reordering.
5808 * passes.def: Move compgotos before bb reordering since it goes into
5809 cfglayout.
5810
5811 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5812
5813 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5814 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5815 static.
5816 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5817 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5818 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5819 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5820 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5821 Remove all_lto_gen_passes.
5822 * passes.c (pass_manager::dump_passes): Remove its use.
5823 (pass_manager::register_pass): Likewise.
5824 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5825 (pass_manager::pass_manager): Don't initialize or use it.
5826 (write_lto): New static function.
5827 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5828 instead of using all_lto_gen_passes.
5829 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5830 pass_ipa_lto_finish_out): Delete.
5831 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5832 make_pass_ipa_lto_finish_out): Don't declare.
5833
5834 2013-11-18 Jeff Law <law@redhat.com>
5835
5836 * tree-ssa-threadupdate.c (redirection_data): Record two
5837 duplicated blocks instead of just one.
5838 (local_info): Explain why we don't create a template for the
5839 second duplicated block in a thread path.
5840 (create_block_for_threading): Accept argument indicating array
5841 index into redirection_data to store its result.
5842 (lookup_redirection_data): Initialize both duplicate blocks.
5843 (ssa_create_duplicates): If a jump threading path needs multiple
5844 blocks duplicated, then duplicate them.
5845 (ssa_fix_duplicate_block_edges): Corresponding changes.
5846 (ssa_fixup_template_block, thread_single_edge): Likewise.
5847
5848 2013-11-18 Marek Polacek <polacek@redhat.com>
5849
5850 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5851
5852 2013-11-18 Andrew Pinski <apinski@cavium.com>
5853 Steve Ellcey <sellcey@mips.com>
5854
5855 PR target/56552
5856 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5857 type restriction from equality_operator on conditonal move.
5858 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5859 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5860
5861 2013-11-18 Jeff Law <law@redhat.com>
5862
5863 * tree-ssa-threadupdate.c: Fix file block comment.
5864 Fix minor indention issue.
5865
5866 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5867
5868 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5869 ix86_address_subreg_operand. Move subreg checks to
5870 ix86_validate_address_register. Move address override check to
5871 ix86_legitimate_address_p.
5872 (ix86_validate_address_register): New function.
5873 (ix86_legitimate_address_p): Call ix86_validate_address_register
5874 to validate base and index registers. Add address override check
5875 from ix86_decompose_address.
5876 (ix86_decompose_address): Remove.
5877
5878 2013-11-18 Richard Biener <rguenther@suse.de>
5879
5880 PR tree-optimization/59125
5881 PR tree-optimization/54570
5882 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5883 is not complete do not treat component-references with offset zero
5884 but different fields as equal.
5885 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5886 (compute_object_sizes): Apply TLC. Propagate the constant
5887 results into all uses and fold their stmts.
5888 * passes.def (pass_all_optimizations): Move pass_object_sizes
5889 after the first pass_forwprop and before pass_fre.
5890
5891 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5892
5893 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5894 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5895 (tree_ctz): Remove cast to unsigned type.
5896 * builtins.c (fold_builtin_memory_op): Likewise.
5897 * dwarf2out.c (descr_info_loc): Likewise.
5898 * godump.c (go_output_typedef): Likewise.
5899 * omp-low.c (expand_omp_simd): Likewise.
5900 * stor-layout.c (excess_unit_span): Likewise.
5901 * tree-object-size.c (addr_object_size): Likewise.
5902 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5903 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5904 (simplify_rotate): Likewise.
5905 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5906 (handle_pointer_plus): Likewise.
5907 * tree-switch-conversion.c (check_range): Likewise.
5908 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5909 * tsan.c (instrument_builtin_call): Likewise.
5910 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5911 * trans-mem.c (tm_log_add): Likewise.
5912 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5913 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5914 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5915 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5916
5917 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5918
5919 * tree.h (host_integerp, tree_low_cst): Delete.
5920 * tree.c (host_integerp, tree_low_cst): Delete.
5921
5922 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5923
5924 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5925 than tree_low_cst.
5926 * fold-const.c (fold_binary_loc): Likewise.
5927 * expr.c (store_constructor): Use tree_to_uhwi rather than
5928 tree_low_cst.
5929 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5930 * stmt.c (emit_case_dispatch_table): Likewise.
5931 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5932
5933 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5934
5935 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5936 config/aarch64/aarch64.c, config/alpha/predicates.md,
5937 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5938 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5939 config/mep/mep-pragma.c, config/mips/mips.c,
5940 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5941 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5942 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5943 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5944 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5945 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5946 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5947 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5948 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5949 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5950
5951 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5952
5953 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5954 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5955 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5956 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5957 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5958 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5959 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5960 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5961 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5962 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5963 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
5964
5965 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5966
5967 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
5968 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
5969
5970 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5971
5972 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
5973 than host_integerp.
5974
5975 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5976
5977 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
5978 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
5979 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
5980 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
5981 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5982 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
5983 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
5984 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
5985 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
5986 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
5987 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
5988 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
5989 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
5990 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
5991 tree_fits_uhwi_p throughout.
5992
5993 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5994
5995 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
5996 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
5997 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
5998 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
5999 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6000 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6001 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6002 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6003 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6004 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6005 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6006 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6007 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6008 throughout.
6009
6010 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6011
6012 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6013 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6014
6015 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6016
6017 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6018 flag if it kills its address, not its post-increment.
6019
6020 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6021
6022 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6023 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6024 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6025 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6026 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6027 (gimple_call_with_bounds_p): New.
6028 (gimple_call_set_with_bounds): New.
6029 (gimple_call_num_nobnd_args): Remove.
6030 (gimple_call_nobnd_arg): Remove.
6031 * tree.h (CALL_WITH_BOUNDS_P): New.
6032 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6033
6034 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6035
6036 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6037 (symtab_node_name): Rename to symtab_node::name.
6038 (cgraph_node_asm_name): Remove.
6039 (varpool_node_asm_name): Remove.
6040 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6041 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6042 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6043 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6044 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6045
6046 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6047
6048 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6049 * config/arm/arm.c (arm_cortex_a53_tune): New.
6050 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6051
6052 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6053
6054 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6055 (case ${target}): Add bdver4.
6056 * config/i386/bdver3.md: Add bdver4.
6057 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6058 -march=native recognize bdver4 processors.
6059 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6060 bdver4 def_and_undef
6061 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6062 (m_BDVER4): New definition.
6063 (m_AMD_MULTIPLE): Includes m_BDVER4.
6064 (processor_target_table): Add bdver4 entry.
6065 (static const char *const cpu_names): Add bdver4 entry.
6066 (software_prefetching_beneficial_p): Add bdver3.
6067 (ix86_option_override_internal): Add bdver4 instruction sets.
6068 (ix86_issue_rate): Add bdver4.
6069 (ix86_adjust_cost): Add bdver4.
6070 (ia32_multipass_dfa_lookahead): Add bdver4.
6071 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6072 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6073 (has_dispatch): Add bdver4.
6074 * config/i386/i386.h (TARGET_BDVER4): New definition.
6075 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6076 (enum processor_type): Add PROCESSOR_BDVER4.
6077 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6078 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6079 * doc/extend.texi: Add details about bdver4.
6080 * doc/invoke.texi: Add details about bdver4. Add
6081 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6082
6083 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6084
6085 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6086 sdmode_stack_slot also in little-endian mode.
6087
6088 2013-11-17 Jan Hubicka <jh@suse.cz>
6089
6090 * doc/md.texi (setmem, movstr): Update documentation.
6091 * builtins.c (determine_block_size): New function.
6092 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6093 (expand_builtin_memset_args): Use it and pass it to
6094 set_storage_via_setmem.
6095 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6096 parameters; update call to expander.
6097 (emit_block_move_hints): Add min_size/max_size parameters.
6098 (clear_storage_hints): Likewise.
6099 (set_storage_via_setmem): Likewise.
6100 (clear_storage): Update.
6101 * expr.h (emit_block_move_hints, clear_storage_hints,
6102 set_storage_via_setmem): Update prototypes.
6103 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6104 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6105 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6106 * i386.md (movmem, setmem): Pass parameters.
6107
6108 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6109
6110 PR target/59153
6111 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6112 reject non-integer subregs.
6113 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6114 Move check for invalid x32 constant addresses ...
6115 (ix86_legitimate_address_p): ... here.
6116
6117 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6118
6119 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6120 parameter and use it in REG_FRAME_RELATED_EXPR note.
6121 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6122 parameter.
6123 (rs6000_emit_prologue): Likewise, but for little endian VSX
6124 stores, pass the source register of the store instead.
6125
6126 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6127
6128 * gimple.h: Reorder prototypes to match .c declaration order, and
6129 remove protyotypes for functions not in gimple.c.
6130 (LABEL): Move to tree-into-ssa.c.
6131 * gimple.c: Remove unused prototypes.
6132 (get_base_address): Move to tree.c.
6133 * tree.c (get_base_address): Relocate from gimple.c.
6134 * builtins.h (validate_gimple_arglist): Add prototype.
6135 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6136 * cfgexpand.h: New File.
6137 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6138 * tree.h (build_addr): Move to tree-nested.h.
6139 * tree-nested.h: New File.
6140 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6141 prototypes.
6142 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6143 * ipa-inline-analysis.c: Include cfgexpand.h.
6144 * cgraphunit.c: Include tree-nested.h.
6145 * omp-low.c: Likewise.
6146 * tree-parloops.c: Likewise.
6147 * gimple-low.h: Likewise.
6148 * tree-profile.h: Likewise.
6149 * expr.c: Include cfgexpand.h.
6150 * tree-affine.c: Likewise.
6151 * tree-ssa.c: Likewise.
6152 * tree-ssa-loop-im.c: Include trans-mem.h.
6153 * tree-ssa-tail-merge.c: Likewise.
6154 * value-prof.c: Include builtins.h and tree-nested.h.
6155 * tree-into-ssa.c (LABEL): Define here.
6156
6157 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6158
6159 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6160 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6161 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6162 (make_pass_arc_predicate_delay_insns): New function.
6163 (arc_init): Register pass_arc_predicate_delay_insns if
6164 flag_delayed_branch is active.
6165
6166 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6167
6168 * config/arc/constraints.md (Rcq): Simplify register number test.
6169
6170 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6171
6172 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6173
6174 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6175
6176 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6177 is null.
6178
6179 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6180
6181 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6182 * gimple-pretty-print.c (dump_omp_for): Add case for
6183 GF_OMP_FOR_KIND_CILKSIMD.
6184 * gimple.h (enum gf_mask): Restructure entries to add
6185 GF_OMP_FOR_KIND_CILKSIMD.
6186 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6187 (gimplify_omp_for): Handle CILK_SIMD.
6188 (gimplify_expr): Add ccase for CILK_SIMD.
6189 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6190 (build_outer_var_ref): Same.
6191 (check_omp_nesting_restrictions): Same.
6192 (lower_rec_input_clauses): Same.
6193 (lower_lastprivate_clauses): Same.
6194 (expand_omp_for): Same.
6195 (execute_expand_omp): Check flag_enable_cilkplus.
6196 (execute_lower_omp): Same.
6197 (diagnose_sb_0): Handle CILK_SIMD.
6198 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6199 (setjmp_or_longjmp_p): New.
6200 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6201 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6202 * tree.def: Add tree code for CILK_SIMD.
6203
6204 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6205
6206 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6207 Remove.
6208 (altivec_vperm_<mode>): Revert earlier little endian change.
6209 (*altivec_vperm_<mode>_internal): Remove.
6210 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6211 (*altivec_vperm_<mode>_uns_internal): Remove.
6212 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6213
6214 2013-11-15 Jeff Law <law@redhat.com>
6215
6216 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6217 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6218 * gimple-ssa-isolate-paths.c
6219 (find_implicit_erroneous_behaviour): Corresponding changes.
6220 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6221 (find_explicit_erroneous_behaviour): Likewise.
6222
6223 2013-11-15 Jeff Law <law@redhat.com>
6224
6225 * ifcvt.c (find_cond_trap): Properly handle case where
6226 trap_bb == else_bb.
6227
6228 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6229
6230 * configure: Regenerate.
6231
6232 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6233
6234 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6235 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6236 where it is incorrect or missing.
6237
6238 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6239
6240 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6241 host_integerp test.
6242 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6243 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6244 constant.
6245 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6246 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6247 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6248
6249 2013-11-15 Richard Biener <rguenther@suse.de>
6250
6251 PR tree-optimization/50262
6252 * tree-ssa-alias.h (struct pt_solution): Split
6253 vars_contains_global into vars_contains_nonlocal,
6254 vars_contains_escaped and vars_contains_escaped_heap.
6255 * tree-ssa-structalias.c (label_visit): Expand comment.
6256 (handle_lhs_call): Adjust comment.
6257 (set_uids_in_ptset): Set the new flags appropriately.
6258 (pt_solution_set): Adjust.
6259 (pt_solution_set_var): Likewise.
6260 (pt_solution_ior_into): Likewise.
6261 (pt_solution_includes_global): Likewise.
6262 (pt_solutions_intersect_1): Optimize escaped handling.
6263 (compute_points_to_sets): Remove heap variable globalization.
6264 (ipa_escaped_pt): Adjust initializer.
6265 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6266 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6267 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6268
6269 2013-11-15 Richard Biener <rguenther@suse.de>
6270
6271 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6272 to distribute all stores.
6273
6274 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6275
6276 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6277
6278 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6279
6280 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6281 * configure.ac: Determine target_header_dir earlier.
6282 (--with-glibc-version): New configure option.
6283 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6284 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6285 * configure: Regenerate.
6286 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6287 native toolchains for default.
6288 (--with-glibc-version): Document.
6289
6290 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6291
6292 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6293
6294 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6295
6296 * lto-streamer-in.c (input function): Call cgraph_create_node if
6297 cgraph_get_node failed.
6298
6299 2013-11-14 Olivier Hainque <hainque@adacore.com>
6300
6301 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6302 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6303 small. Factorize size threshold computation from the existing one.
6304 (expand_used_vars): Refine comment.
6305
6306 2013-11-14 Cong Hou <congh@google.com>
6307
6308 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6309 address field as it can be obtained from dr. Rename the struct.
6310 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6311 steps of data references during sort.
6312 (vect_prune_runtime_alias_test_list): Adjust with the change to
6313 struct dr_with_seg_len.
6314 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6315 Adjust with the change to struct dr_with_seg_len.
6316
6317 2013-11-14 Jeff Law <law@redhat.com>
6318
6319 PR middle-end/59127
6320 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6321 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6322 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6323 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6324 edges, then ignore it. If the statement exhibiting erroneous
6325 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6326 then we can not optimize.
6327 (find_explicit_erroneous_behaviour): Likewise.
6328
6329 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6330
6331 * gimplify-me.h: New file. Add prototypes.
6332 * gimplify.h: Don't include gimple.h.
6333 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6334 Relocate from gimple.h.
6335 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6336 is_gimple_sizepos): Move to gimplify.h.
6337 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6338 (enum gsi_iterator_update): Move to gimple-iterator.h.
6339 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6340 * gimplify-me.c: New File.
6341 (force_gimple_operand_1, force_gimple_operand,
6342 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6343 gimple_regimplify_operands): Relocate from gimplify.c.
6344 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6345 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6346 gimple_regimplify_operands): Move to gimplify-me.c.
6347 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6348 from gimple.h.
6349 * Makefile.in (OBJS): Add gimplify-me.o
6350 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6351 required.
6352 * cfgloopmanip.c: Likewise.
6353 * cgraphunit.c: Likewise.
6354 * cilk-common.c: Likewise.
6355 * fold-const.c: Likewise.
6356 * function.c: Likewise.
6357 * gimple-expr.c: Likewise.
6358 * gimple-fold.c: Likewise.
6359 * gimple-ssa-strength-reduction.c: Likewise.
6360 * gimple.c: Likewise.
6361 * graphite-clast-to-gimple.c: Likewise.
6362 * graphite-sese-to-poly.c: Likewise.
6363 * ipa-prop.c: Likewise.
6364 * ipa-split.c: Likewise.
6365 * ipa.c: Likewise.
6366 * langhooks.c: Likewise.
6367 * omp-low.c: Likewise.
6368 * sese.c: Likewise.
6369 * stor-layout.c: Likewise.
6370 * targhooks.c: Likewise.
6371 * trans-mem.c: Likewise.
6372 * tree-affine.c: Likewise.
6373 * tree-cfg.c: Likewise.
6374 * tree-cfgcleanup.c: Likewise.
6375 * tree-complex.c: Likewise.
6376 * tree-if-conv.c: Likewise.
6377 * tree-inline.c: Likewise.
6378 * tree-loop-distribution.c: Likewise.
6379 * tree-nested.c: Likewise.
6380 * tree-parloops.c: Likewise.
6381 * tree-predcom.c: Likewise.
6382 * tree-profile.c: Likewise.
6383 * tree-scalar-evolution.c: Likewise.
6384 * tree-sra.c: Likewise.
6385 * tree-ssa-address.c: Likewise.
6386 * tree-ssa-ccp.c: Likewise.
6387 * tree-ssa-dce.c: Likewise.
6388 * tree-ssa-forwprop.c: Likewise.
6389 * tree-ssa-ifcombine.c: Likewise.
6390 * tree-ssa-loop-im.c: Likewise.
6391 * tree-ssa-loop-ivopts.c: Likewise.
6392 * tree-ssa-loop-manip.c: Likewise.
6393 * tree-ssa-loop-niter.c: Likewise.
6394 * tree-ssa-loop-prefetch.c: Likewise.
6395 * tree-ssa-loop-unswitch.c: Likewise.
6396 * tree-ssa-math-opts.c: Likewise.
6397 * tree-ssa-phiopt.c: Likewise.
6398 * tree-ssa-phiprop.c: Likewise.
6399 * tree-ssa-pre.c: Likewise.
6400 * tree-ssa-propagate.c: Likewise.
6401 * tree-ssa-reassoc.c: Likewise.
6402 * tree-ssa-sccvn.c: Likewise.
6403 * tree-ssa-strlen.c: Likewise.
6404 * tree-ssa.c: Likewise.
6405 * tree-switch-conversion.c: Likewise.
6406 * tree-tailcall.c: Likewise.
6407 * tree-vect-data-refs.c: Likewise.
6408 * tree-vect-generic.c: Likewise.
6409 * tree-vect-loop-manip.c: Likewise.
6410 * tree-vect-loop.c: Likewise.
6411 * tree-vect-patterns.c: Likewise.
6412 * tree-vect-stmts.c: Likewise.
6413 * tree.c: Likewise.
6414 * tsan.c: Likewise.
6415 * value-prof.c: Likewise.
6416 * config/aarch64/aarch64.c: Likewise.
6417 * config/alpha/alpha.c: Likewise.
6418 * config/darwin.c: Likewise.
6419 * config/i386/i386.c: Likewise.
6420 * config/ia64/ia64.c: Likewise.
6421 * config/mep/mep.c: Likewise.
6422 * config/mips/mips.c: Likewise.
6423 * config/rs6000/rs6000.c: Likewise.
6424 * config/s390/s390.c: Likewise.
6425 * config/sh/sh.c: Likewise.
6426 * config/sparc/sparc.c: Likewise.
6427 * config/spu/spu.c: Likewise.
6428 * config/stormy16/stormy16.c: Likewise.
6429 * config/tilegx/tilegx.c: Likewise.
6430 * config/tilepro/tilepro.c: Likewise.
6431 * config/xtensa/xtensa.c: Likewise.
6432
6433 2013-11-14 Diego Novillo <dnovillo@google.com>
6434
6435 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6436
6437 2013-11-14 Diego Novillo <dnovillo@google.com>
6438
6439 * tree.h: Include fold-const.h.
6440 (aggregate_value_p): Moved to function.h.
6441 (alloca_call_p): Moved to calls.h.
6442 (allocate_struct_function): Moved to function.h.
6443 (apply_tm_attr): Moved to attribs.h.
6444 (array_at_struct_end_p): Moved to expr.h.
6445 (array_ref_element_size): Moved to tree-dfa.h.
6446 (array_ref_low_bound): Moved to tree-dfa.h.
6447 (array_ref_up_bound): Moved to tree.h.
6448 (assemble_alias): Moved to cgraph.h.
6449 (bit_from_pos): Moved to stor-layout.h.
6450 (build_addr): Moved to tree-nested.h.
6451 (build_duplicate_type): Moved to tree-inline.h.
6452 (build_fold_addr_expr): Moved to fold-const.h.
6453 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6454 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6455 (build_fold_indirect_ref): Moved to fold-const.h.
6456 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6457 (build_personality_function): Moved to tree.h.
6458 (build_range_check): Moved to fold-const.h.
6459 (build_simple_mem_ref): Moved to fold-const.h.
6460 (build_simple_mem_ref_loc): Moved to fold-const.h.
6461 (build_tm_abort_call): Moved to trans-mem.h.
6462 (byte_from_pos): Moved to stor-layout.h.
6463 (call_expr_flags): Moved to calls.h.
6464 (can_move_by_pieces): Moved to expr.h.
6465 (categorize_ctor_elements): Moved to expr.h.
6466 (change_decl_assembler_name): Moved to gcc-symtab.h.
6467 (combine_comparisons): Moved to fold-const.h.
6468 (complete_ctor_at_level_p): Moved to tree.h.
6469 (component_ref_field_offset): Moved to tree-dfa.h.
6470 (compute_builtin_object_size): Moved to tree-object-size.h.
6471 (compute_record_mode): Moved to stor-layout.h.
6472 (constant_boolean_node): Moved to fold-const.h.
6473 (constructor_static_from_elts_p): Moved to varasm.h.
6474 (cxx11_attribute_p): Moved to attribs.h.
6475 (debug_body): Moved to print-tree.h.
6476 (debug_find_tree): Moved to tree-inline.h.
6477 (debug_fold_checksum): Moved to fold-const.h.
6478 (debug_head): Moved to print-tree.h.
6479 (debug_head): Moved to print-tree.h.
6480 (debug_raw): Moved to print-tree.h.
6481 (debug_tree): Moved to print-tree.h.
6482 (debug_vec_tree): Moved to print-tree.h.
6483 (debug_verbose): Moved to print-tree.h.
6484 (debug_verbose): Moved to print-tree.h.
6485 (decl_attributes): Moved to attribs.h.
6486 (decl_binds_to_current_def_p): Moved to varasm.h.
6487 (decl_default_tls_model): Moved to varasm.h.
6488 (decl_replaceable_p): Moved to varasm.h.
6489 (div_if_zero_remainder): Moved to fold-const.h.
6490 (double_int mem_ref_offset): Moved to fold-const.h.
6491 (dump_addr): Moved to print-tree.h.
6492 (element_precision): Moved to machmode.h.
6493 (expand_dummy_function_end): Moved to function.h.
6494 (expand_function_end): Moved to function.h.
6495 (expand_function_start): Moved to function.h.
6496 (expand_label): Moved to stmt.h.
6497 (expr_first): Moved to tree-iterator.h.
6498 (expr_last): Moved to tree-iterator.h.
6499 (finalize_size_functions): Moved to stor-layout.h.
6500 (finish_builtin_struct): Moved to stor-layout.h.
6501 (finish_record_layout): Moved to stor-layout.h.
6502 (fixup_signed_type): Moved to stor-layout.h.
6503 (fixup_unsigned_type): Moved to stor-layout.h.
6504 (flags_from_decl_or_type): Moved to calls.h.
6505 (fold): Moved to fold-const.h.
6506 (fold_abs_const): Moved to fold-const.h.
6507 (fold_binary): Moved to fold-const.h.
6508 (fold_binary_loc): Moved to fold-const.h.
6509 (fold_binary_to_constant): Moved to fold-const.h.
6510 (fold_build1): Moved to fold-const.h.
6511 (fold_build1_initializer_loc): Moved to fold-const.h.
6512 (fold_build1_loc): Moved to fold-const.h.
6513 (fold_build1_stat_loc): Moved to fold-const.h.
6514 (fold_build2): Moved to fold-const.h.
6515 (fold_build2_initializer_loc): Moved to fold-const.h.
6516 (fold_build2_loc): Moved to fold-const.h.
6517 (fold_build2_stat_loc): Moved to fold-const.h.
6518 (fold_build3): Moved to fold-const.h.
6519 (fold_build3_loc): Moved to fold-const.h.
6520 (fold_build3_stat_loc): Moved to fold-const.h.
6521 (fold_build_call_array): Moved to fold-const.h.
6522 (fold_build_call_array_initializer): Moved to fold-const.h.
6523 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6524 (fold_build_call_array_loc): Moved to fold-const.h.
6525 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6526 (fold_convert): Moved to fold-const.h.
6527 (fold_convert_loc): Moved to fold-const.h.
6528 (fold_convertible_p): Moved to fold-const.h.
6529 (fold_defer_overflow_warnings): Moved to fold-const.h.
6530 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6531 (fold_fma): Moved to fold-const.h.
6532 (fold_ignored_result): Moved to fold-const.h.
6533 (fold_indirect_ref): Moved to fold-const.h.
6534 (fold_indirect_ref_1): Moved to fold-const.h.
6535 (fold_indirect_ref_loc): Moved to fold-const.h.
6536 (fold_read_from_constant_string): Moved to fold-const.h.
6537 (fold_real_zero_addition_p): Moved to fold-const.h.
6538 (fold_single_bit_test): Moved to fold-const.h.
6539 (fold_strip_sign_ops): Moved to fold-const.h.
6540 (fold_ternary): Moved to fold-const.h.
6541 (fold_ternary_loc): Moved to fold-const.h.
6542 (fold_unary): Moved to tree-data-ref.h.
6543 (fold_unary_ignore_overflow): Moved to fold-const.h.
6544 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6545 (fold_unary_loc): Moved to fold-const.h.
6546 (fold_unary_to_constant): Moved to fold-const.h.
6547 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6548 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6549 (folding_initializer): Moved to fold-const.h.
6550 (free_temp_slots): Moved to function.h.
6551 (generate_setjmp_warnings): Moved to function.h.
6552 (get_attribute_name): Moved to attribs.h.
6553 (get_identifier): Moved to stringpool.h.
6554 (get_identifier_with_length): Moved to stringpool.h.
6555 (get_inner_reference): Moved to tree.h.
6556 (gimple_alloca_call_p): Moved to calls.h.
6557 (gimplify_parameters): Moved to function.h.
6558 (highest_pow2_factor): Moved to expr.h.
6559 (indent_to): Moved to print-tree.h.
6560 (init_attributes): Moved to attribs.h.
6561 (init_dummy_function_start): Moved to function.h.
6562 (init_function_start): Moved to function.h.
6563 (init_inline_once): Moved to tree-inline.h.
6564 (init_object_sizes): Moved to tree-object-size.h.
6565 (init_temp_slots): Moved to function.h.
6566 (init_tree_optimization_optabs): Moved to optabs.h.
6567 (initialize_sizetypes): Moved to stor-layout.h.
6568 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6569 (initializer_constant_valid_p): Moved to varasm.h.
6570 (int_const_binop): Moved to fold-const.h.
6571 (internal_reference_types): Moved to stor-layout.h.
6572 (invert_tree_comparison): Moved to fold-const.h.
6573 (invert_truthvalue): Moved to fold-const.h.
6574 (invert_truthvalue_loc): Moved to fold-const.h.
6575 (is_tm_ending_fndecl): Moved to trans-mem.h.
6576 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6577 (is_tm_pure): Moved to trans-mem.h.
6578 (is_tm_safe): Moved to trans-mem.h.
6579 (layout_decl): Moved to stor-layout.h.
6580 (layout_type): Moved to stor-layout.h.
6581 (lookup_attribute_spec): Moved to attribs.h.
6582 (make_accum_type): Moved to stor-layout.h.
6583 (make_decl_one_only): Moved to varasm.h.
6584 (make_decl_rtl): Moved to tree.h.
6585 (make_decl_rtl_for_debug): Moved to varasm.h.
6586 (make_fract_type): Moved to stor-layout.h.
6587 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6588 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6589 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6590 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6591 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6592 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6593 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6594 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6595 (make_range): Moved to fold-const.h.
6596 (make_range_step): Moved to fold-const.h.
6597 (make_sat_signed_accum_type): Moved to stor-layout.h.
6598 (make_sat_signed_fract_type): Moved to stor-layout.h.
6599 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6600 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6601 (make_signed_accum_type): Moved to stor-layout.h.
6602 (make_signed_fract_type): Moved to stor-layout.h.
6603 (make_signed_type): Moved to stor-layout.h.
6604 (make_unsigned_accum_type): Moved to stor-layout.h.
6605 (make_unsigned_fract_type): Moved to stor-layout.h.
6606 (make_unsigned_type): Moved to stor-layout.h.
6607 (mark_decl_referenced): Moved to varasm.h.
6608 (mark_referenced): Moved to varasm.h.
6609 (may_negate_without_overflow_p): Moved to fold-const.h.
6610 (maybe_get_identifier): Moved to stringpool.h.
6611 (merge_ranges): Moved to fold-const.h.
6612 (merge_weak): Moved to varasm.h.
6613 (mode_for_size_tree): Moved to stor-layout.h.
6614 (multiple_of_p): Moved to fold-const.h.
6615 (must_pass_in_stack_var_size): Moved to calls.h.
6616 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6617 (native_encode_expr): Moved to fold-const.h.
6618 (native_interpret_expr): Moved to fold-const.h.
6619 (non_lvalue): Moved to fold-const.h.
6620 (non_lvalue_loc): Moved to fold-const.h.
6621 (normalize_offset): Moved to stor-layout.h.
6622 (normalize_rli): Moved to stor-layout.h.
6623 (notice_global_symbol): Moved to varasm.h.
6624 (omit_one_operand): Moved to fold-const.h.
6625 (omit_one_operand_loc): Moved to fold-const.h.
6626 (omit_two_operands): Moved to fold-const.h.
6627 (omit_two_operands_loc): Moved to fold-const.h.
6628 (operand_equal_p): Moved to tree-data-ref.h.
6629 (parse_input_constraint): Moved to stmt.h.
6630 (parse_output_constraint): Moved to stmt.h.
6631 (place_field): Moved to stor-layout.h.
6632 (pop_function_context): Moved to function.h.
6633 (pop_temp_slots): Moved to function.h.
6634 (pos_from_bit): Moved to stor-layout.h.
6635 (preserve_temp_slots): Moved to function.h.
6636 (print_node): Moved to print-tree.h.
6637 (print_node_brief): Moved to print-tree.h.
6638 (print_rtl): Moved to rtl.h.
6639 (process_pending_assemble_externals): Moved to varasm.h.
6640 (ptr_difference_const): Moved to fold-const.h.
6641 (push_function_context): Moved to function.h.
6642 (push_struct_function): Moved to function.h.
6643 (push_temp_slots): Moved to function.h.
6644 (record_tm_replacement): Moved to trans-mem.h.
6645 (relayout_decl): Moved to stor-layout.h.
6646 (resolve_asm_operand_names): Moved to stmt.h.
6647 (resolve_unique_section): Moved to varasm.h.
6648 (rli_size_so_far): Moved to stor-layout.h.
6649 (rli_size_unit_so_far): Moved to stor-layout.h.
6650 (round_down): Moved to fold-const.h.
6651 (round_down_loc): Moved to fold-const.h.
6652 (round_up): Moved to fold-const.h.
6653 (round_up_loc): Moved to fold-const.h.
6654 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6655 (set_decl_rtl): Moved to tree.h.
6656 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6657 (set_user_assembler_name): Moved to varasm.h.
6658 (setjmp_call_p): Moved to calls.h.
6659 (size_binop): Moved to fold-const.h.
6660 (size_binop_loc): Moved to fold-const.h.
6661 (size_diffop): Moved to fold-const.h.
6662 (size_diffop_loc): Moved to fold-const.h.
6663 (size_int_kind): Moved to fold-const.h.
6664 (stack_protect_epilogue): Moved to function.h.
6665 (start_record_layout): Moved to stor-layout.h.
6666 (supports_one_only): Moved to varasm.h.
6667 (swap_tree_comparison): Moved to fold-const.h.
6668 (tm_malloc_replacement): Moved to trans-mem.h.
6669 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6670 (tree build_invariant_address): Moved to fold-const.h.
6671 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6672 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6673 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6674 (tree_expr_nonnegative_p): Moved to fold-const.h.
6675 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6676 (tree_output_constant_def): Moved to varasm.h.
6677 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6678 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6679 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6680 (tree_swap_operands_p): Moved to fold-const.h.
6681 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6682 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6683 (update_alignment_for_field): Moved to stor-layout.h.
6684 (use_register_for_decl): Moved to function.h.
6685 (variable_size): Moved to rtl.h.
6686 (vector_type_mode): Moved to stor-layout.h.
6687 * cgraph.h: Corresponding changes.
6688 * emit-rtl.h: Corresponding changes.
6689 * expr.h: Corresponding changes.
6690 * function.h: Corresponding changes.
6691 * optabs.h: Corresponding changes.
6692 * trans-mem.h: Corresponding changes.
6693 Protect against multiple inclusion.
6694 * tree-inline.h: Corresponding changes.
6695 * tree-iterator.h: Corresponding changes.
6696 * tree-dfa.h: Include expr.h.
6697 * tree-ssanames.h: Include stringpool.h.
6698 * attribs.h: New file.
6699 * calls.h: New file.
6700 * fold-const.h: New file.
6701 * gcc-symtab.h: New file.
6702 * print-rtl.h: New file.
6703 * print-tree.h: New file.
6704 * stmt.h: New file.
6705 * stor-layout.h: New file.
6706 * strinpool.h: New file.
6707 * tree-nested.h: New file
6708 * tree-object-size.h: New file.
6709 * varasm.h: New file.
6710
6711 2013-11-14 Diego Novillo <dnovillo@google.com>
6712
6713 * alias.c: Include varasm.h.
6714 Include expr.h.
6715 * asan.c: Include calls.h.
6716 Include stor-layout.h.
6717 Include varasm.h.
6718 * attribs.c: Include stringpool.h.
6719 Include attribs.h.
6720 Include stor-layout.h.
6721 * builtins.c: Include stringpool.h.
6722 Include stor-layout.h.
6723 Include calls.h.
6724 Include varasm.h.
6725 Include tree-object-size.h.
6726 * calls.c: Include stor-layout.h.
6727 Include varasm.h.
6728 Include stringpool.h.
6729 Include attribs.h.
6730 * cfgexpand.c: Include stringpool.h.
6731 Include varasm.h.
6732 Include stor-layout.h.
6733 Include stmt.h.
6734 Include print-tree.h.
6735 * cgraph.c: Include varasm.h.
6736 Include calls.h.
6737 Include print-tree.h.
6738 * cgraphclones.c: Include stringpool.h.
6739 Include function.h.
6740 Include emit-rtl.h.
6741 Move inclusion of rtl.h earlier in the file.
6742 * cgraphunit.c: Include varasm.h.
6743 Include stor-layout.h.
6744 Include stringpool.h.
6745 * cilk-common.c: Include stringpool.h.
6746 Include stor-layout.h.
6747 * combine.c: Include stor-layout.h.
6748 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6749 Include stringpool.h.
6750 Include calls.h.
6751 * config/aarch64/aarch64.c: Include stringpool.h.
6752 Include stor-layout.h.
6753 Include calls.h.
6754 Include varasm.h.
6755 * config/alpha/alpha.c: Include stor-layout.h.
6756 Include calls.h.
6757 Include varasm.h.
6758 * config/arc/arc.c: Include varasm.h.
6759 Include stor-layout.h.
6760 Include stringpool.h.
6761 Include calls.h.
6762 * config/arm/arm.c: Include stringpool.h.
6763 Include stor-layout.h.
6764 Include calls.h.
6765 Include varasm.h.
6766 * config/avr/avr-c.c: Include stor-layout.h.
6767 * config/avr/avr-log.c: Include print-tree.h.
6768 * config/avr/avr.c: Include print-tree.h.
6769 Include calls.h.
6770 Include stor-layout.h.
6771 Include stringpool.h.
6772 * config/bfin/bfin.c: Include varasm.h.
6773 Include calls.h.
6774 * config/c6x/c6x.c: Include stor-layout.h.
6775 Include varasm.h.
6776 Include calls.h.
6777 Include stringpool.h.
6778 * config/cr16/cr16.c: Include stor-layout.h.
6779 Include calls.h.
6780 * config/cris/cris.c: Include varasm.h.
6781 Include stor-layout.h.
6782 Include calls.h.
6783 Include stmt.h.
6784 * config/darwin.c: Include stringpool.h.
6785 Include varasm.h.
6786 Include stor-layout.h.
6787 * config/epiphany/epiphany.c: Include stor-layout.h.
6788 Include varasm.h.
6789 Include calls.h.
6790 Include stringpool.h.
6791 * config/fr30/fr30.c: Include stor-layout.h.
6792 Include varasm.h.
6793 * config/frv/frv.c: Include varasm.h.
6794 Include stor-layout.h.
6795 Include stringpool.h.
6796 * config/h8300/h8300.c: Include stor-layout.h.
6797 Include varasm.h.
6798 Include calls.h.
6799 Include stringpool.h.
6800 * config/i386/i386.c: Include stringpool.h.
6801 Include attribs.h.
6802 Include calls.h.
6803 Include stor-layout.h.
6804 Include varasm.h.
6805 * config/i386/winnt-cxx.c: Include stringpool.h.
6806 Include attribs.h.
6807 * config/i386/winnt.c: Include stringpool.h.
6808 Include varasm.h.
6809 * config/ia64/ia64-c.c: Include stringpool.h.
6810 * config/ia64/ia64.c: Include stringpool.h.
6811 Include stor-layout.h.
6812 Include calls.h.
6813 Include varasm.h.
6814 * config/iq2000/iq2000.c: Include stor-layout.h.
6815 Include calls.h.
6816 Include varasm.h.
6817 * config/lm32/lm32.c: Include calls.h.
6818 * config/m32c/m32c.c: Include stor-layout.h.
6819 Include varasm.h.
6820 Include calls.h.
6821 * config/m32r/m32r.c: Include stor-layout.h.
6822 Include varasm.h.
6823 Include stringpool.h.
6824 Include calls.h.
6825 * config/m68k/m68k.c: Include calls.h.
6826 Include stor-layout.h.
6827 Include varasm.h.
6828 * config/mcore/mcore.c: Include stor-layout.h.
6829 Include varasm.h.
6830 Include stringpool.h.
6831 Include calls.h.
6832 * config/mep/mep.c: Include varasm.h.
6833 Include calls.h.
6834 Include stringpool.h.
6835 Include stor-layout.h.
6836 * config/microblaze/microblaze.c: Include varasm.h.
6837 Include stor-layout.h.
6838 Include calls.h.
6839 * config/mips/mips.c: Include varasm.h.
6840 Include stringpool.h.
6841 Include stor-layout.h.
6842 Include calls.h.
6843 * config/mmix/mmix.c: Include varasm.h.
6844 Include stor-layout.h.
6845 Include calls.h.
6846 * config/mn10300/mn10300.c: Include stor-layout.h.
6847 Include varasm.h.
6848 Include calls.h.
6849 * config/moxie/moxie.c: Include stor-layout.h.
6850 Include varasm.h.
6851 Include calls.h.
6852 * config/msp430/msp430.c: Include stor-layout.h.
6853 Include calls.h.
6854 * config/nds32/nds32.c: Include stor-layout.h.
6855 Include varasm.h.
6856 Include calls.h.
6857 * config/pa/pa.c: Include stor-layout.h.
6858 Include stringpool.h.
6859 Include varasm.h.
6860 Include calls.h.
6861 * config/pdp11/pdp11.c: Include stor-layout.h.
6862 Include varasm.h.
6863 Include calls.h.
6864 * config/picochip/picochip.c: Include calls.h.
6865 Include stor-layout.h.
6866 Include stringpool.h.
6867 Include varasm.h.
6868 * config/rl78/rl78.c: Include varasm.h.
6869 Include stor-layout.h.
6870 Include calls.h.
6871 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6872 Include stringpool.h.
6873 * config/rs6000/rs6000.c: Include stringpool.h.
6874 Include stor-layout.h.
6875 Include calls.h.
6876 Include print-tree.h.
6877 Include varasm.h.
6878 * config/rx/rx.c: Include varasm.h.
6879 Include stor-layout.h.
6880 Include calls.h.
6881 * config/s390/s390.c: Include print-tree.h.
6882 Include stringpool.h.
6883 Include stor-layout.h.
6884 Include varasm.h.
6885 Include calls.h.
6886 * config/score/score.c: Include stringpool.h.
6887 Include calls.h.
6888 Include varasm.h.
6889 Include stor-layout.h.
6890 * config/sh/sh-c.c: Include stringpool.h.
6891 Include attribs.h.h.
6892 * config/sh/sh.c: Include stringpool.h.
6893 Include stor-layout.h.
6894 Include calls.h.
6895 Include varasm.h.
6896 * config/sol2-c.c: Include stringpool.h.
6897 Include attribs.h.
6898 * config/sol2-cxx.c: Include stringpool.h.
6899 * config/sol2.c: Include stringpool.h.
6900 Include varasm.h.
6901 * config/sparc/sparc.c: Include stringpool.h.
6902 Include stor-layout.h.
6903 Include calls.h.
6904 Include varasm.h.
6905 * config/spu/spu-c.c: Include stringpool.h.
6906 * config/spu/spu.c: Include stringpool.h.
6907 Include stor-layout.h.
6908 Include calls.h.
6909 Include varasm.h.
6910 * config/stormy16/stormy16.c: Include stringpool.h.
6911 Include stor-layout.h.
6912 Include varasm.h.
6913 Include calls.h.
6914 * config/tilegx/tilegx.c: Include stringpool.h.
6915 Include stor-layout.h.
6916 Include varasm.h.
6917 Include calls.h.
6918 * config/tilepro/tilepro.c: Include stringpool.h.
6919 Include stor-layout.h.
6920 Include varasm.h.
6921 Include calls.h.
6922 * config/v850/v850-c.c: Include stringpool.h.
6923 Include attribs.h.
6924 * config/v850/v850.c: Include stringpool.h.
6925 Include stor-layout.h.
6926 Include varasm.h.
6927 Include calls.h.
6928 * config/vax/vax.c: Include calls.h.
6929 Include varasm.h.
6930 * config/vms/vms.c: Include stringpool.h.
6931 * config/vxworks.c: Include stringpool.h.
6932 * config/xtensa/xtensa.c: Include stringpool.h.
6933 Include stor-layout.h.
6934 Include calls.h.
6935 Include varasm.h.
6936 * convert.c: Include stor-layout.h.
6937 * coverage.c: Include stringpool.h.
6938 Include stor-layout.h.
6939 * dbxout.c: Include varasm.h.
6940 Include stor-layout.h.
6941 * dojump.c: Include stor-layout.h.
6942 * dse.c: Include stor-layout.h.
6943 * dwarf2asm.c: Include stringpool.h.
6944 Include varasm.h.
6945 * dwarf2cfi.c: Include stor-layout.h.
6946 * dwarf2out.c: Include rtl.h.
6947 Include stringpool.h.
6948 Include stor-layout.h.
6949 Include varasm.h.
6950 Include function.h.
6951 Include emit-rtl.h.
6952 Move inclusion of rtl.h earlier in the file.
6953 * emit-rtl.c: Include varasm.h.
6954 * except.c: Include stringpool.h.
6955 Include stor-layout.h.
6956 * explow.c: Include stor-layout.h.
6957 * expmed.c: Include stor-layout.h.
6958 * expr.c: Include stringpool.h.
6959 Include stor-layout.h.
6960 Include attribs.h.
6961 Include varasm.h.
6962 * final.c: Include varasm.h.
6963 * fold-const.c: Include stor-layout.h.
6964 Include calls.h.
6965 Include tree-iterator.h.
6966 * function.c: Include stor-layout.h.
6967 Include varasm.h.
6968 Include stringpool.h.
6969 * genattrtab.c (write_header): Emit includes for varasm.h,
6970 stor-layout.h and calls.h.
6971 * genautomata.c (main): Likewise.
6972 * genemit.c: Likewise.
6973 * genopinit.c: Likewise.
6974 * genoutput.c (output_prologue): Likewise.
6975 * genpeep.c: Likewise.
6976 * genpreds.c (write_insn_preds_c): Likewise.
6977 * gengtype.c (open_base_files): Add stringpool.h.
6978 * gimple-expr.c: Include stringpool.h.
6979 Include stor-layout.h.
6980 * gimple-fold.c: Include stringpool.h.
6981 Include expr.h.
6982 Include stmt.h.
6983 Include stor-layout.h.
6984 * gimple-low.c: Include tree-nested.h.
6985 Include calls.h.
6986 * gimple-pretty-print.c: Include stringpool.h.
6987 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
6988 Include expr.h.
6989 * gimple-walk.c: Include stmt.h.
6990 * gimple.c: Include calls.h.
6991 Include stmt.h.
6992 Include stor-layout.h.
6993 * gimplify.c: Include stringpool.h.
6994 Include calls.h.
6995 Include varasm.h.
6996 Include stor-layout.h.
6997 Include stmt.h.
6998 Include print-tree.h.
6999 Include expr.h.
7000 * gimplify-me.c: Include stmt.h
7001 Include stor-layout.h
7002 * internal-fn.c: Include stor-layout.h.
7003 * ipa-devirt.c: Include print-tree.h.
7004 Include calls.h.
7005 * ipa-inline-analysis.c: Include stor-layout.h.
7006 Include stringpool.h.
7007 Include print-tree.h.
7008 * ipa-inline.c: Include trans-mem.h.
7009 Include calls.h.
7010 * ipa-prop.c: Include expr.h.
7011 Include stor-layout.h.
7012 Include print-tree.h.
7013 * ipa-pure-const.c: Include print-tree.h.
7014 Include calls.h.
7015 * ipa-reference.c: Include calls.h.
7016 * ipa-split.c: Include stringpool.h.
7017 Include expr.h.
7018 Include calls.h.
7019 * ipa.c: Include calls.h.
7020 Include stringpool.h.
7021 * langhooks.c: Include stringpool.h.
7022 Include attribs.h.
7023 * lto-cgraph.c: Include stringpool.h.
7024 * lto-streamer-in.c: Include stringpool.h.
7025 * lto-streamer-out.c: Include stor-layout.h.
7026 Include stringpool.h.
7027 * omp-low.c: Include stringpool.h.
7028 Include stor-layout.h.
7029 Include expr.h.
7030 * optabs.c: Include stor-layout.h.
7031 Include stringpool.h.
7032 Include varasm.h.
7033 * passes.c: Include varasm.h.
7034 * predict.c: Include calls.h.
7035 * print-rtl.c: Include print-tree.h.
7036 * print-tree.c: Include varasm.h.
7037 Include print-rtl.h.
7038 Include stor-layout.h.
7039 * realmpfr.c: Include stor-layout.h.
7040 * reg-stack.c: Include varasm.h.
7041 * sdbout.c: Include varasm.h.
7042 Include stor-layout.h.
7043 * simplify-rtx.c: Include varasm.h.
7044 * stmt.c: Include varasm.h.
7045 Include stor-layout.h.
7046 * stor-layout.c: Include stor-layout.h.
7047 Include stringpool.h.
7048 Include varasm.h.
7049 Include print-tree.h.
7050 * symtab.c: Include rtl.h.
7051 Include print-tree.h.
7052 Include varasm.h.
7053 Include function.h.
7054 Include emit-rtl.h.
7055 * targhooks.c: Include stor-layout.h.
7056 Include varasm.h.
7057 * toplev.c: Include varasm.h.
7058 Include tree-inline.h.
7059 * trans-mem.c: Include calls.h.
7060 Include function.h.
7061 Include rtl.h.
7062 Include emit-rtl.h.
7063 * tree-affine.c: Include expr.h.
7064 * tree-browser.c: Include print-tree.h.
7065 * tree-call-cdce.c: Include stor-layout.h.
7066 * tree-cfg.c: Include trans-mem.h.
7067 Include stor-layout.h.
7068 Include print-tree.h.
7069 * tree-complex.c: Include stor-layout.h.
7070 * tree-data-ref.c: Include expr.h.
7071 * tree-dfa.c: Include stor-layout.h.
7072 * tree-eh.c: Include expr.h.
7073 Include calls.h.
7074 * tree-emutls.c: Include stor-layout.h.
7075 Include varasm.h.
7076 * tree-if-conv.c: Include stor-layout.h.
7077 * tree-inline.c: Include stor-layout.h.
7078 Include calls.h.
7079 * tree-loop-distribution.c: Include stor-layout.h.
7080 * tree-nested.c: Include stringpool.h.
7081 Include stor-layout.h.
7082 * tree-object-size.c: Include tree-object-size.h.
7083 * tree-outof-ssa.c: Include stor-layout.h.
7084 * tree-parloops.c: Include stor-layout.h.
7085 Include tree-nested.h.
7086 * tree-pretty-print.c: Include stor-layout.h.
7087 Include expr.h.
7088 * tree-profile.c: Include varasm.h.
7089 Include tree-nested.h.
7090 * tree-scalar-evolution.c: Include expr.h.
7091 * tree-sra.c: Include stor-layout.h.
7092 * tree-ssa-address.c: Include stor-layout.h.
7093 * tree-ssa-ccp.c: Include stor-layout.h.
7094 * tree-ssa-dce.c: Include calls.h.
7095 * tree-ssa-dom.c: Include stor-layout.h.
7096 * tree-ssa-forwprop.c: Include stor-layout.h.
7097 * tree-ssa-ifcombine.c: Include stor-layout.h.
7098 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7099 * tree-ssa-loop-niter.c: Include calls.h.
7100 Include expr.h.
7101 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7102 * tree-ssa-math-opts.c: Include stor-layout.h.
7103 * tree-ssa-operands.c: Include stmt.h.
7104 Include print-tree.h.
7105 * tree-ssa-phiopt.c: Include stor-layout.h.
7106 * tree-ssa-reassoc.c: Include stor-layout.h.
7107 * tree-ssa-sccvn.c: Include stor-layout.h.
7108 * tree-ssa-sink.c: Include stor-layout.h.
7109 * tree-ssa-strlen.c: Include stor-layout.h.
7110 * tree-ssa-structalias.c: Include stor-layout.h.
7111 Include stmt.h.
7112 * tree-ssa-tail-merge.c: Include stor-layout.h.
7113 Include trans-mem.h.
7114 * tree-ssa-uncprop.c: Include stor-layout.h.
7115 * tree-ssa.c: Include stor-layout.h.
7116 * tree-ssanames.c: Include stor-layout.h.
7117 * tree-streamer-in.c: Include stringpool.h.
7118 * tree-streamer-out.c: Include stor-layout.h.
7119 * tree-switch-conversion.c: Include varasm.h.
7120 Include stor-layout.h.
7121 * tree-tailcall.c: Include stor-layout.h.
7122 * tree-vect-data-refs.c: Include stor-layout.h.
7123 * tree-vect-generic.c: Include stor-layout.h.
7124 * tree-vect-loop.c: Include stor-layout.h.
7125 * tree-vect-patterns.c: Include stor-layout.h.
7126 * tree-vect-slp.c: Include stor-layout.h.
7127 * tree-vect-stmts.c: Include stor-layout.h.
7128 * tree-vectorizer.c: Include stor-layout.h.
7129 * tree-vrp.c: Include stor-layout.h.
7130 Include calls.h.
7131 * tree.c: Include stor-layout.h.
7132 Include calls.h.
7133 Include attribs.h.
7134 Include varasm.h.
7135 * tsan.c: Include expr.h.
7136 * ubsan.c: Include stor-layout.h.
7137 Include stringpool.h.
7138 * value-prof.c: Include tree-nested.h.
7139 Include calls.h.
7140 * var-tracking.c: Include varasm.h.
7141 Include stor-layout.h.
7142 * varasm.c: Include stor-layout.h.
7143 Include stringpool.h.
7144 Include gcc-symtab.h.
7145 Include varasm.h.
7146 * varpool.c: Include varasm.h.
7147 * vmsdbgout.c: Include varasm.h.
7148 * xcoffout.c: Include varasm.h.
7149
7150 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7151
7152 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7153 use (.&-4) idiom.
7154
7155 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7156
7157 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7158
7159 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7160 Alan Modra <amodra@gmail.com>
7161
7162 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7163 (RS6000_SAVE_TOC): Remove.
7164 (RS6000_TOC_SAVE_SLOT): New macro.
7165 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7166 (rs6000_parm_start): Use it.
7167 (rs6000_function_arg_advance_1): Likewise.
7168 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7169 (rs6000_emit_epilogue): Likewise.
7170 (rs6000_call_aix): Likewise.
7171 (rs6000_output_function_prologue): Do not save/restore r11
7172 around calling _mcount for ABI_ELFv2.
7173
7174 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7175 Alan Modra <amodra@gmail.com>
7176
7177 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7178 Add prototype.
7179 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7180 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7181 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7182 (rs6000_function_parms_need_stack): Likewise.
7183 (rs6000_reg_parm_stack_space): Likewise.
7184 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7185 returning a register argument.
7186
7187 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7188 Michael Gschwind <mkg@us.ibm.com>
7189
7190 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7191 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7192 (FUNCTION_VALUE_REGNO_P): Use them.
7193 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7194 (rs6000_return_in_msb): New function.
7195 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7196 Handle aggregates of up to 16 bytes for ELFv2.
7197 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7198
7199 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7200 Michael Gschwind <mkg@us.ibm.com>
7201
7202 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7203 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7204 (rs6000_discover_homogeneous_aggregate): Likewise.
7205 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7206 (rs6000_function_arg_advance_1): Likewise.
7207 (rs6000_function_arg): Likewise.
7208 (rs6000_arg_partial_bytes): Likewise.
7209 (rs6000_psave_function_arg): Handle BLKmode arguments.
7210
7211 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7212 Michael Gschwind <mkg@us.ibm.com>
7213
7214 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7215 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7216 (rs6000_discover_homogeneous_aggregate): Likewise.
7217 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7218 (rs6000_function_arg_advance_1): Likewise.
7219 (rs6000_function_arg): Likewise.
7220 (rs6000_arg_partial_bytes): Likewise.
7221 (rs6000_psave_function_arg): Handle BLKmode arguments.
7222
7223 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7224
7225 * config/rs6000/rs6000.c (machine_function): New member
7226 r2_setup_needed.
7227 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7228 (rs6000_output_mi_thunk): Set r2_setup_needed.
7229 (rs6000_output_function_prologue): Output global entry point
7230 prologue and local entry point marker if needed for ABI_ELFv2.
7231 Output -mprofile-kernel code here.
7232 (output_function_profiler): Do not output -mprofile-kernel
7233 code here; moved to rs6000_output_function_prologue.
7234 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7235
7236 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7237 (rs6000_output_function_entry): Likewise.
7238 (rs6000_assemble_integer): Likewise.
7239 (rs6000_elf_encode_section_info): Likewise.
7240 (rs6000_elf_declare_function_name): Do not create dot symbols
7241 or .opd section for ABI_ELFv2.
7242
7243 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7244 (rs6000_trampoline_init): Likewise.
7245 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7246
7247 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7248 for function descriptors in ABI_ELFv2.
7249
7250 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7251 on ABI_AIX only, not ABI_ELFv2.
7252 ("*call_value_indirect_aix<mode>"): Likewise.
7253 ("*call_indirect_elfv2<mode>"): New pattern.
7254 ("*call_value_indirect_elfv2<mode>"): Likewise.
7255
7256 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7257 check for function descriptors in ABI_ELFv2.
7258 ("current_file_function_operand"): Likewise.
7259
7260 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7261 (toc): Undefine.
7262 (FUNC_NAME): Define ELFv2 variant.
7263 (JUMP_TARGET): Likewise.
7264 (FUNC_START): Likewise.
7265 (HIDDEN_FUNC): Likewise.
7266 (FUNC_END): Likeiwse.
7267
7268 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7269
7270 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7271 and --with-abi=elfv2.
7272 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7273 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7274 (mabi=elfv2): Likewise.
7275 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7276 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7277 if !RS6000_BI_ARCH.
7278 (ELFv2_ABI_CHECK): New macro.
7279 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7280 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7281 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7282 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7283 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7284
7285 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7286 (debug_stack_info): Likewise.
7287 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7288 (rs6000_legitimize_tls_address): Likewise.
7289 (rs6000_conditional_register_usage): Likewise.
7290 (rs6000_emit_move): Likewise.
7291 (init_cumulative_args): Likewise.
7292 (rs6000_function_arg_advance_1): Likewise.
7293 (rs6000_function_arg): Likewise.
7294 (rs6000_arg_partial_bytes): Likewise.
7295 (rs6000_output_function_entry): Likewise.
7296 (rs6000_assemble_integer): Likewise.
7297 (rs6000_savres_strategy): Likewise.
7298 (rs6000_stack_info): Likewise.
7299 (rs6000_function_ok_for_sibcall): Likewise.
7300 (rs6000_emit_load_toc_table): Likewise.
7301 (rs6000_savres_routine_name): Likewise.
7302 (ptr_regno_for_savres): Likewise.
7303 (rs6000_emit_prologue): Likewise.
7304 (rs6000_emit_epilogue): Likewise.
7305 (rs6000_output_function_epilogue): Likewise.
7306 (output_profile_hook): Likewise.
7307 (output_function_profiler): Likewise.
7308 (rs6000_trampoline_size): Likewise.
7309 (rs6000_trampoline_init): Likewise.
7310 (rs6000_elf_output_toc_section_asm_op): Likewise.
7311 (rs6000_elf_encode_section_info): Likewise.
7312 (rs6000_elf_reloc_rw_mask): Likewise.
7313 (rs6000_elf_declare_function_name): Likewise.
7314 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7315 except that rs6000_compat_align_parm is always assumed false.
7316 (rs6000_gimplify_va_arg): Likewise.
7317 (rs6000_call_aix): Update comment.
7318 (rs6000_sibcall_aix): Likewise.
7319 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7320 Treat ABI_ELFv2 the same as ABI_AIX.
7321 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7322 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7323 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7324 ("load_toc_aix_si"): Likewise.
7325 ("load_toc_aix_di"): Likewise.
7326 ("call"): Likewise.
7327 ("call_value"): Likewise.
7328 ("*call_local_aix<mode>"): Likewise.
7329 ("*call_value_local_aix<mode>"): Likewise.
7330 ("*call_nonlocal_aix<mode>"): Likewise.
7331 ("*call_value_nonlocal_aix<mode>"): Likewise.
7332 ("*call_indirect_aix<mode>"): Likewise.
7333 ("*call_value_indirect_aix<mode>"): Likewise.
7334 ("sibcall"): Likewise.
7335 ("sibcall_value"): Likewise.
7336 ("*sibcall_aix<mode>"): Likewise.
7337 ("*sibcall_value_aix<mode>"): Likewise.
7338 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7339 ("current_file_function_operand"): Likewise.
7340
7341 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7342
7343 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7344 by making use of the fact that for vector / floating point arguments
7345 passed both in VRs/FPRs and in the fixed parameter area, the partial
7346 bytes mechanism is in fact not used.
7347
7348 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7349
7350 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7351 (rs6000_finish_function_arg): Likewise.
7352 (rs6000_function_arg): Use rs6000_psave_function_arg and
7353 rs6000_finish_function_arg to handle both vector and floating
7354 point arguments that are also passed in GPRs / the stack.
7355
7356 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7357
7358 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7359 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7360 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7361 (rs6000_function_arg_advance_1):Likewise.
7362 (rs6000_darwin64_record_arg_recurse): Likewise.
7363 (rs6000_function_arg): Likewise.
7364 (rs6000_arg_partial_bytes): Likewise.
7365
7366 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7367
7368 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7369 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7370 (rs6000_savres_strategy): Likewise.
7371 (rs6000_return_addr): Likewise.
7372 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7373 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7374 (rs6000_emit_prologue): Likewise.
7375 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7376 (rs6000_elf_declare_function_name): Remove duplicated test.
7377 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7378 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7379 ("load_toc_v4_PIC_1_normal"): Likewise.
7380 ("load_toc_v4_PIC_1_476"): Likewise.
7381 ("load_toc_v4_PIC_1b"): Likewise.
7382 ("load_toc_v4_PIC_1b_normal"): Likewise.
7383 ("load_toc_v4_PIC_1b_476"): Likewise.
7384 ("load_toc_v4_PIC_2"): Likewise.
7385 ("load_toc_v4_PIC_3b"): Likewise.
7386 ("load_toc_v4_PIC_3c"): Likewise.
7387 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7388 (RS6000_SAVE_AREA): Likewise.
7389 (FP_ARG_MAX_REG): Likewise.
7390 (RETURN_ADDRESS_OFFSET): Likewise.
7391 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7392 of ABI_AIX.
7393 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7394 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7395
7396 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7397
7398 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7399 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7400 Create call insn directly instead of via various gen_... routines.
7401 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7402 (rs6000_sibcall_aix): New function.
7403 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7404 (TOC_SAVE_OFFSET_64BIT): Likewise.
7405 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7406 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7407 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7408 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7409 ("call" expander): Call rs6000_call_aix.
7410 ("call_value" expander): Likewise.
7411 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7412 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7413 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7414 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7415 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7416 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7417 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7418 ("*call_nonlocal_aix<mode>"): ... this pattern.
7419 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7420 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7421 ("*call_local_aix<mode>"): New insn pattern.
7422 ("*call_value_local_aix<mode>"): Likewise.
7423 ("sibcall" expander): Call rs6000_sibcall_aix.
7424 ("sibcall_value" expander): Likewise. Move earlier in file.
7425 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7426 ("*sibcall_aix<mode>"): ... this pattern.
7427 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7428 ("*sibcall_value_aix<mode>"): ... this pattern.
7429 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7430 (rs6000_call_aix): Add prototype.
7431 (rs6000_sibcall_aix): Likewise.
7432
7433 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7434
7435 PR sanitizer/59122
7436 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7437 isn't confused by the artificial decl.
7438
7439 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7440
7441 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7442 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7443 Instead, add USEs of all modified call-saved CR fields to the
7444 insn storing the result to the stack slot, and provide an
7445 appropriate REG_FRAME_RELATED_EXPR for that insn.
7446 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7447 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7448
7449 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7450 Alan Modra <amodra@gmail.com>
7451
7452 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7453 of re-evaluating REG_PARM_STACK_SPACE target macro.
7454 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7455 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7456 (assign_parm_find_entry_rtl): Update call.
7457 * calls.c (initialize_argument_information): Update call.
7458 (emit_library_call_value_1): Likewise.
7459 * expr.h (locate_and_pad_parm): Update prototype.
7460
7461 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7462
7463 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7464 arguments.
7465
7466 2013-11-14 DJ Delorie <dj@redhat.com>
7467
7468 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7469 to 16 bits.
7470
7471 2013-11-14 Jeff Law <law@redhat.com>
7472
7473 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7474 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7475
7476 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7477
7478 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7479 and -mtune options.
7480
7481 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7482
7483 * config/aarch64/aarch64-cores.def (example-1): Remove.
7484 (example-2): Likewise.
7485 * config/aarch64/aarch64-tune.md: Regenerate.
7486 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7487 (generic_sched): Remove "large", "small".
7488 * config/aarch64/large.md: Delete.
7489 * config/aarch64/small.md: Delete.
7490
7491 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7492
7493 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7494 * config/aarch64/aarch64-tune.md: Regenerate.
7495 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7496 (generic_sched): "no" if we are tuning for cortexa15.
7497 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7498 relative path.
7499
7500 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7501
7502 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7503 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7504 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7505 (all_cores): Use cortexa53 when tuning for "generic".
7506 (aarch64_override_options): Fix comment.
7507 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7508 * config/aarch64/aarch64-generic.md: Delete.
7509
7510 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7511
7512 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7513
7514 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7515
7516 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7517 (generic_rtx_cost_table): Remove.
7518 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7519 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7520 insn_extra_cost.
7521 (cpu_rtx_cost_table): Remove.
7522
7523 2013-11-14 Julian Brown <julian@codesourcery.com>
7524 Joey Ye <joey.ye@arm.com>
7525
7526 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7527 (arm_v7m_tune): New.
7528 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7529 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7530 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7531 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7532
7533 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7534
7535 PR target/57491
7536 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7537 flag setting.
7538
7539 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7540 Uros Bizjak <ubizjak@gmail.com>
7541
7542 PR target/59101
7543 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7544 operands[2] satisfies_constraint_Z that might have bit 31 set.
7545
7546 2013-11-13 Jeff Law <law@redhat.com>
7547
7548 PR tree-optimization/59102
7549 * gimple-ssa-isolate-paths.c
7550 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7551 gimple assignment before looking at gimple_assign_lhs.
7552
7553 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7554
7555 * ira.c: Add comment about threads at the top of file.
7556
7557 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7558
7559 * ira-color.c (coalesce_allocnos): Don't allocate and free
7560 sorted_copies.
7561
7562 2013-11-14 Tom de Vries <tom@codesourcery.com>
7563
7564 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7565 equality for GIMPLE_ASSIGN.
7566
7567 2013-11-14 Tom de Vries <tom@codesourcery.com>
7568
7569 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7570 function out of ...
7571 (gimple_equal_p): ... here.
7572
7573 2013-11-14 Tom de Vries <tom@codesourcery.com>
7574
7575 * trans-mem.c (is_tm_ending): New function.
7576 * gimple.h (is_tm_ending): Declare.
7577 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7578 BUILT_IN_TM_COMMIT.
7579 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7580
7581 2013-11-14 Tom de Vries <tom@codesourcery.com>
7582
7583 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7584
7585 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7586
7587 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7588 (struct walk_stmt_info): Relocate here from gimple.h.
7589 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7590 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7591 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7592 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7593 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7594 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7595 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7596 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7597 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7598 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7599 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7600 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7601 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7602 (struct walk_stmt_info): Move to gimple-walk.h.
7603 (gimple_seq_set_location): Move to gimple.c
7604 * gimple-walk.c: New File.
7605 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7606 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7607 walk_stmt_load_store_ops): Relocate here from gimple.c.
7608 * gimple-iterator.c: Include gimple-iterator.h.
7609 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7610 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7611 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7612 gimple-walk.c.
7613 (gimple_seq_set_location): Relocate from gimple.h.
7614 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7615 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7616 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7617 * Makefile.in (OBJS): Add gimple-walk.o
7618 * asan.c: Update Include list as required for gimple-iterator.h and
7619 gimple-walk.h.
7620 * cfgexpand.c: Likewise.
7621 * cfgloop.c: Likewise.
7622 * cfgloopmanip.c: Likewise.
7623 * cgraph.c: Likewise.
7624 * cgraphbuild.c: Likewise.
7625 * cgraphunit.c: Likewise.
7626 * gimple-fold.c: Likewise.
7627 * gimple-low.c: Likewise.
7628 * gimple-pretty-print.c: Likewise.
7629 * gimple-ssa-isolate-paths.c: Likewise.
7630 * gimple-ssa-strength-reduction.c: Likewise.
7631 * gimple-streamer-in.c: Likewise.
7632 * gimple-streamer-out.c: Likewise.
7633 * gimplify.c: Likewise.
7634 * graphite-blocking.c: Likewise.
7635 * graphite-clast-to-gimple.c: Likewise.
7636 * graphite-dependences.c: Likewise.
7637 * graphite-interchange.c: Likewise.
7638 * graphite-optimize-isl.c: Likewise.
7639 * graphite-poly.c: Likewise.
7640 * graphite-scop-detection.c: Likewise.
7641 * graphite-sese-to-poly.c: Likewise.
7642 * graphite.c: Likewise.
7643 * ipa-inline-analysis.c: Likewise.
7644 * ipa-profile.c: Likewise.
7645 * ipa-prop.c: Likewise.
7646 * ipa-pure-const.c: Likewise.
7647 * ipa-split.c: Likewise.
7648 * lto-streamer-in.c: Likewise.
7649 * lto-streamer-out.c: Likewise.
7650 * omp-low.c: Likewise.
7651 * predict.c: Likewise.
7652 * profile.c: Likewise.
7653 * sese.c: Likewise.
7654 * tracer.c: Likewise.
7655 * trans-mem.c: Likewise.
7656 * tree-call-cdce.c: Likewise.
7657 * tree-cfg.c: Likewise.
7658 * tree-cfgcleanup.c: Likewise.
7659 * tree-complex.c: Likewise.
7660 * tree-data-ref.c: Likewise.
7661 * tree-dfa.c: Likewise.
7662 * tree-eh.c: Likewise.
7663 * tree-emutls.c: Likewise.
7664 * tree-if-conv.c: Likewise.
7665 * tree-inline.c: Likewise.
7666 * tree-into-ssa.c: Likewise.
7667 * tree-loop-distribution.c: Likewise.
7668 * tree-nested.c: Likewise.
7669 * tree-nrv.c: Likewise.
7670 * tree-object-size.c: Likewise.
7671 * tree-outof-ssa.c: Likewise.
7672 * tree-parloops.c: Likewise.
7673 * tree-predcom.c: Likewise.
7674 * tree-profile.c: Likewise.
7675 * tree-scalar-evolution.c: Likewise.
7676 * tree-sra.c: Likewise.
7677 * tree-ssa-ccp.c: Likewise.
7678 * tree-ssa-coalesce.c: Likewise.
7679 * tree-ssa-copy.c: Likewise.
7680 * tree-ssa-copyrename.c: Likewise.
7681 * tree-ssa-dce.c: Likewise.
7682 * tree-ssa-dom.c: Likewise.
7683 * tree-ssa-dse.c: Likewise.
7684 * tree-ssa-forwprop.c: Likewise.
7685 * tree-ssa-ifcombine.c: Likewise.
7686 * tree-ssa-live.c: Likewise.
7687 * tree-ssa-loop-ch.c: Likewise.
7688 * tree-ssa-loop-im.c: Likewise.
7689 * tree-ssa-loop-ivcanon.c: Likewise.
7690 * tree-ssa-loop-ivopts.c: Likewise.
7691 * tree-ssa-loop-manip.c: Likewise.
7692 * tree-ssa-loop-niter.c: Likewise.
7693 * tree-ssa-loop-prefetch.c: Likewise.
7694 * tree-ssa-loop.c: Likewise.
7695 * tree-ssa-math-opts.c: Likewise.
7696 * tree-ssa-phiopt.c: Likewise.
7697 * tree-ssa-phiprop.c: Likewise.
7698 * tree-ssa-pre.c: Likewise.
7699 * tree-ssa-propagate.c: Likewise.
7700 * tree-ssa-reassoc.c: Likewise.
7701 * tree-ssa-sink.c: Likewise.
7702 * tree-ssa-strlen.c: Likewise.
7703 * tree-ssa-structalias.c: Likewise.
7704 * tree-ssa-tail-merge.c: Likewise.
7705 * tree-ssa-ter.c: Likewise.
7706 * tree-ssa-threadedge.c: Likewise.
7707 * tree-ssa-threadupdate.c: Likewise.
7708 * tree-ssa-uncprop.c: Likewise.
7709 * tree-ssa-uninit.c: Likewise.
7710 * tree-ssa.c: Likewise.
7711 * tree-stdarg.c: Likewise.
7712 * tree-switch-conversion.c: Likewise.
7713 * tree-tailcall.c: Likewise.
7714 * tree-vect-data-refs.c: Likewise.
7715 * tree-vect-generic.c: Likewise.
7716 * tree-vect-loop-manip.c: Likewise.
7717 * tree-vect-loop.c: Likewise.
7718 * tree-vect-patterns.c: Likewise.
7719 * tree-vect-slp.c: Likewise.
7720 * tree-vect-stmts.c: Likewise.
7721 * tree-vectorizer.c: Likewise.
7722 * tree-vrp.c: Likewise.
7723 * tree.c: Likewise.
7724 * tsan.c: Likewise.
7725 * value-prof.c: Likewise.
7726 * vtable-verify.c: Likewise.
7727
7728 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7729
7730 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7731 fix.
7732
7733 2013-11-13 Jeff Law <law@redhat.com>
7734
7735 * PR middle-end/59119
7736 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7737 function, extracted from gimple_ssa_isolate_erroneous_paths.
7738 (find_explicit_erroneous_behaviour): Similarly.
7739 (insert_trap_and_remove_trailing_statements): Remove statements
7740 in reverse order.
7741
7742 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7743
7744 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7745 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7746 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7747 looking at INSN_CODE.
7748 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7749 active_insn_p object, respect basic block boundaries.
7750 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7751 follows immediately after the jump table data label.
7752 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7753 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7754 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7755
7756 2013-11-13 Teresa Johnson <tejohnson@google.com>
7757
7758 PR ipa/58862
7759 * predict.c (drop_profile): Error is currently too strict.
7760 (handle_missing_profiles): Pass call_count to drop_profile.
7761
7762 2013-11-13 Teresa Johnson <tejohnson@google.com>
7763
7764 PR ipa/58862
7765 * ipa-inline.c (edge_badness): Fix overflow.
7766
7767 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7768
7769 PR rtl-optimization/59036
7770 * ira-color.c (struct allocno_color_data): Add new members
7771 first_thread_allocno, next_thread_allocno, thread_freq.
7772 (sorted_copies): New static var.
7773 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7774 (allocno_thread_conflict_p, merge_threads)
7775 (form_threads_from_copies, form_threads_from_bucket)
7776 (form_threads_from_colorable_allocno, init_allocno_threads): New
7777 functions.
7778 (bucket_allocno_compare_func): Add comparison by thread frequency
7779 and threads.
7780 (add_allocno_to_ordered_bucket): Rename to
7781 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7782 (push_only_colorable): Call form_threads_from_bucket.
7783 (color_pass): Call init_allocno_threads. Use
7784 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7785 for nuillify allocno color data.
7786 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7787 (coalesce_allocnos): Use static sorted copies.
7788
7789 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7790
7791 * passes.c (execute_todo): Don't call do_per_function if
7792 flags are zero.
7793 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7794 execute_function_dump if dump_file is NULL.
7795
7796 2013-11-13 Martin Jambor <mjambor@suse.cz>
7797
7798 * cgraph.c (cgraph_get_create_node): Do what
7799 cgraph_get_create_real_symbol_node used to do.
7800 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7801 call cgraph_get_create_node.
7802 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7803 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7804 cgraph_get_create_node. Assert we get a node.
7805
7806 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7807
7808 * config/aarch64/aarch64-simd.md (vec_extract): New.
7809
7810 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7811
7812 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7813 the constraint.
7814
7815 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7816
7817 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7818 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7819 or if optimization is enabled.
7820 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7821 require that all the names based on a PARM_DECL or a RESULT_DECL that
7822 isn't ignored for debug info be coalesced.
7823
7824 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7825
7826 * config/c6x/c6x.c: Include "gimple-expr.h".
7827
7828 2013-11-13 Richard Biener <rguenther@suse.de>
7829
7830 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7831 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7832 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7833 dealing with type mismatches inside component reference chains.
7834
7835 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7836
7837 PR tree-optimization/59077
7838 * ipa-pure-const.c (better_state): Update *state.
7839
7840 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7841
7842 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7843 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7844 Update offset calculations.
7845
7846 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7847
7848 PR ada/35998
7849 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7850 for fields. Do not add the attribute if the size is negative.
7851
7852 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7853
7854 * config/arm/arm.c: Include aarch-cost-tables.h.
7855 (generic_extra_costs): Move from here...
7856 * config/arm/aarch-cost-tables.h: ... To here. New file.
7857
7858 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7859 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7860 Sergey Lega <sergey.s.lega@intel.com>
7861 Anna Tikhonova <anna.tikhonova@intel.com>
7862 Ilya Tocar <ilya.tocar@intel.com>
7863 Andrey Turetskiy <andrey.turetskiy@intel.com>
7864 Ilya Verbin <ilya.verbin@intel.com>
7865 Kirill Yukhin <kirill.yukhin@intel.com>
7866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7867
7868 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7869 * config/i386/predicate.md (const_0_to_4_operand): New.
7870 (const_0_to_5_operand): Ditto.
7871 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7872 (UNSPEC_COMPRESS_STORE): Ditto.
7873 (UNSPEC_EXPAND): Ditto.
7874 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7875 (define_mode_attr ssescalarsize): Ditto.
7876 (avx512f_load<mode>_mask): Ditto.
7877 (avx512f_store<mode>_mask): Ditto.
7878 (avx512f_storedqu<mode>_mask): Ditto.
7879 (avx512f_vmcmp<mode>3_mask): Ditto.
7880 (avx512f_fmadd_<mode>_mask): Ditto.
7881 (avx512f_fmadd_<mode>_mask3): Ditto.
7882 (avx512f_fmsub_<mode>_mask): Ditto.
7883 (avx512f_fmsub_<mode>_mask3): Ditto.
7884 (avx512f_fnmadd_<mode>_mask): Ditto.
7885 (avx512f_fnmadd_<mode>_mask3): Ditto.
7886 (avx512f_fnmsub_<mode>_mask): Ditto.
7887 (avx512f_fnmsub_<mode>_mask3): Ditto.
7888 (avx512f_fmaddsub_<mode>_mask): Ditto.
7889 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7890 (avx512f_fmsubadd_<mode>_mask): Ditto.
7891 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7892 (vec_unpacku_float_lo_v16si): Ditto.
7893 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7894 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7895 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7896 (vec_extract_lo_<mode>_maskm): Ditto.
7897 (vec_extract_hi_<mode>_maskm): Ditto.
7898 (avx512f_vternlog<mode>_mask): Ditto.
7899 (avx512f_shufps512_mask): Ditto.
7900 (avx512f_fixupimm<mode>_mask): Ditto.
7901 (avx512f_shufpd512_mask): Ditto.
7902 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7903 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7904 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7905 (ashr<mode>3<mask_name>): Ditto.
7906 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7907 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7908 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7909 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7910 (avx512f_pshufdv3_mask): Ditto.
7911 (avx512f_perm<mode>_mask): Ditto.
7912 (avx512f_vpermi2var<mode>3_mask): Ditto.
7913 (avx512f_vpermt2var<mode>3_mask): Ditto.
7914 (avx512f_compress<mode>_mask): Ditto.
7915 (avx512f_compressstore<mode>_mask): Ditto.
7916 (avx512f_expand<mode>_mask): Ditto.
7917 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7918 to support masking.
7919 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7920 (<plusminus_insn><mode>3<mask_name>): Ditto.
7921 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7922 (mul<mode>3<mask_name>): Ditto.
7923 (*mul<mode>3<mask_name>): Ditto.
7924 (<sse>_div<mode>3<mask_name>): Ditto.
7925 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7926 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7927 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7928 (<code><mode>3<mask_name>/smaxmin): Ditto.
7929 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7930 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7931 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7932 (ufloatv16siv16sf2<mask_name>): Ditto.
7933 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7934 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7935 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7936 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7937 (ufloatv8siv8df<mask_name>): Ditto.
7938 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7939 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7940 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7941 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7942 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7943 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7944 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7945 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7946 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7947 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7948 (vec_extract_lo_<mode><mask_name>): Ditto.
7949 (vec_extract_hi_<mode><mask_name>): Ditto.
7950 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7951 (avx512f_movddup512<mask_name>): Ditto.
7952 (avx512f_unpcklpd512<mask_name>): Ditto.
7953 (*avx512f_unpcklpd512<mask_name>): Ditto.
7954 (*avx512f_vmscalef<mode>): Ditto.
7955 (avx512f_scalef<mode><mask_name>): Ditto.
7956 (avx512f_getexp<mode><mask_name>): Ditto.
7957 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7958 (avx512f_rndscale<mode><mask_name>): Ditto.
7959 (avx512f_shufps512_1<mask_name>): Ditto.
7960 (avx512f_shufpd512_1<mask_name>): Ditto.
7961 (<plusminus_insn><mode>3<mask_name>): Ditto.
7962 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7963 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7964 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
7965 (vec_widen_smult_even_v16si<mask_name>): Ditto.
7966 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
7967 (mul<mode>3<mask_name>): Ditto.
7968 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
7969 (<shift_insn><mode>3<mask_name>): Ditto.
7970 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
7971 (avx512f_<rotate><mode><mask_name>): Ditto.
7972 (<code><mode>3<mask_name>/maxmin): Ditto.
7973 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
7974 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
7975 (*andnot<mode>3<mask_name>): Ditto.
7976 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
7977 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
7978 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
7979 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
7980 (vec_set_lo_<mode><mask_name>): Ditto.
7981 (vec_set_hi_<mode><mask_name>): Ditto.
7982 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
7983 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
7984 (avx512f_pshufd_1<mask_name>): Ditto.
7985 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
7986 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
7987 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
7988 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
7989 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
7990 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
7991 (avx512er_exp2<mode><mask_name>): Ditto.
7992 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
7993 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
7994 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
7995 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
7996 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
7997 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
7998 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
7999 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8000 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8001 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8002 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8003 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8004 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8005 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8006 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8007 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8008 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8009 (avx512f_getmant<mode><mask_name>): Ditto.
8010 (clz<mode>2<mask_name>): Ditto.
8011 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8012 (*srcp14<mode>): Remove visibility.
8013 (*rsqrt14<mode>): Ditto.
8014 (*fma_fmsub_<mode>): Ditto.
8015 (*fma_fnmadd_<mode>): Ditto.
8016 (*avx512f_rndscale<mode>): Ditto.
8017 * config/i386/subst.md: New file.
8018
8019 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8020
8021 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8022 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8023 (atomic_load_explicit, atomic_exchange_explicit)
8024 (atomic_compare_exchange_strong_explicit)
8025 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8026 declare variable initialized with PTR argument.
8027
8028 2013-11-12 Jeff Law <law@redhat.com>
8029
8030 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8031 backedge_seen_p. Set, use and pass it to children appropriately.
8032 (thread_through_normal_block): Similarly.
8033 (thread_across_edge): Similarly.
8034
8035 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8036 memory references as volatile.
8037 (insert_trap_and_remove_trailing_statements): Fix comment.
8038
8039 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8040
8041 PR other/58712
8042 * ira-costs.c (record_operand_costs): Check operands number for
8043 the single set.
8044
8045 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8046
8047 PR target/59054
8048 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8049 constraints that would allow DImode into the traditional Altivec
8050 registers, but cause undesirable code generation when loading 0 as
8051 a constant.
8052 (movdi_internal64): Likewise.
8053 (cmp<mode>_fpr): Do not use %x for CR register output.
8054 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8055 -mallow-upper-sf debug switches are used.
8056
8057 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8058
8059 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8060 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8061 Relocate prototypes from gimple.h.
8062 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8063 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8064 from gimple.h.
8065 * gimple.h: Move some prototypes to gimplify.h.
8066 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8067 gimplify.h.
8068 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8069 Relocate from gimpify.c.
8070 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8071 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8072 is_gimple_reg_rhs) Relocate from gimplify.c.
8073 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8074 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8075 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8076 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8077 is_gimple_reg_rhs): Move to gimple-expr.c.
8078 (should_carry_location_p): Move to gimple.c.
8079 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8080 to gimple.h.
8081 (annotate_one_with_location, annotate_all_with_location_after,
8082 annotate_all_with_location): Move to gimple.c.
8083 (compare_case_labels, sort_case_labels,
8084 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8085 (rhs_predicate_for): Make static.
8086 (gimplify_assign): Relocate from gimple.c.
8087 * gimple.c (gimplify_assign): Move to gimplify.c.
8088 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8089 annotate_one_with_location, annotate_all_with_location_after,
8090 annotate_all_with_location, compare_case_labels, sort_case_labels,
8091 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8092 * tree.h (unshare_expr, unshare_expr_without_location,
8093 mark_addressable): Move prototypes to gimplify.h.
8094 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8095 tmp_var_id_num
8096 * asan.c: Include gimplify.h rather than gimple.h.
8097 * cfgloopmanip.c: Likewise.
8098 * cgraphunit.c: Likewise.
8099 * cilk-common.c: Likewise.
8100 * dwarf2out.c: Dont include gimple.h.
8101 * fold-const.c: Include gimplify.h rather than gimple.h.
8102 * function.c: Likewise.
8103 * gimple-fold.c: Likewise.
8104 * gimple-ssa-strength-reduction.c: Likewise.
8105 * graphite-clast-to-gimple.c: Likewise.
8106 * graphite-sese-to-poly.c: Likewise.
8107 * ipa-prop.c: Likewise.
8108 * ipa-split.c: Likewise.
8109 * ipa.c: Likewise.
8110 * langhooks.c: Dont include gimple.h.
8111 * loop-init.c: Include gimplify.h rather than gimple.h.
8112 * omp-low.c: Likewise.
8113 * sese.c: Likewise.
8114 * stor-layout.c: Likewise.
8115 * targhooks.c: Likewise.
8116 * trans-mem.c: Likewise.
8117 * tree-affine.c: Likewise.
8118 * tree-cfg.c: Likewise.
8119 * tree-cfgcleanup.c: Likewise.
8120 * tree-complex.c: Likewise.
8121 * tree-if-conv.c: Likewise.
8122 * tree-inline.c: Likewise.
8123 * tree-iterator.c: Likewise.
8124 * tree-loop-distribution.c: Likewise.
8125 * tree-nested.c: Likewise.
8126 * tree-parloops.c: Likewise.
8127 * tree-predcom.c: Likewise.
8128 * tree-profile.c: Likewise.
8129 * tree-scalar-evolution.c: Likewise.
8130 * tree-sra.c: Likewise.
8131 * tree-ssa-address.c: Likewise.
8132 * tree-ssa-ccp.c: Likewise.
8133 * tree-ssa-dce.c: Likewise.
8134 * tree-ssa-forwprop.c: Likewise.
8135 * tree-ssa-ifcombine.c: Likewise.
8136 * tree-ssa-loop-im.c: Likewise.
8137 * tree-ssa-loop-ivopts.c: Likewise.
8138 * tree-ssa-loop-manip.c: Likewise.
8139 * tree-ssa-loop-niter.c: Likewise.
8140 * tree-ssa-loop-prefetch.c: Likewise.
8141 * tree-ssa-loop-unswitch.c: Likewise.
8142 * tree-ssa-math-opts.c: Likewise.
8143 * tree-ssa-phiopt.c: Likewise.
8144 * tree-ssa-phiprop.c: Likewise.
8145 * tree-ssa-pre.c: Likewise.
8146 * tree-ssa-propagate.c: Likewise.
8147 * tree-ssa-reassoc.c: Likewise.
8148 * tree-ssa-sccvn.c: Likewise.
8149 * tree-ssa-strlen.c: Likewise.
8150 * tree-ssa.c: Likewise.
8151 * tree-switch-conversio: Likewise.n.c
8152 * tree-tailcall.c: Likewise.
8153 * tree-vect-data-refs.c: Likewise.
8154 * tree-vect-generic.c: Likewise.
8155 * tree-vect-loop-manip.c: Likewise.
8156 * tree-vect-loop.c: Likewise.
8157 * tree-vect-patterns.c: Likewise.
8158 * tree-vect-stmts.c: Likewise.
8159 * tsan.c: Likewise.
8160 * value-prof.c: Likewise.
8161 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8162 * config/alpha/alpha.c: Likewise.
8163 * config/darwin.c: Likewise.
8164 * config/i386/i386.c: Likewise.
8165 * config/ia64/ia64.c: Likewise.
8166 * config/mep/mep.c: Likewise.
8167 * config/mips/mips.c: Likewise.
8168 * config/rs6000/rs6000.c: Likewise.
8169 * config/s390/s390.c: Likewise.
8170 * config/sh/sh.c: Likewise.
8171 * config/sparc/sparc.c: Likewise.
8172 * config/spu/spu.c: Likewise.
8173 * config/stormy16/stormy16.c: Likewise.
8174 * config/tilegx/tilegx.c: Likewise.
8175 * config/tilepro/tilepro.c: Likewise.
8176 * config/xtensa/xtensa.c: Likewise.
8177
8178 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8179
8180 * tree.c (grow_tree_vec_stat): New function ...
8181 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8182 and macro front-end.
8183
8184 2013-11-12 Marek Polacek <polacek@redhat.com>
8185
8186 * final.c (update_alignments): Initialize label to NULL_RTX.
8187
8188 2013-11-12 Jeff Law <law@redhat.com>
8189
8190 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8191 (insert_trap_and_remove_trailing_statements): New argument OP which
8192 is the NULL pointer. Emit the trap after the load/store through
8193 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8194 when trivial to do so.
8195 (isolate_path): Corresponding changes.
8196 (gimple_ssa_isolate_erroneous_path): Likewise.
8197
8198 2013-11-12 Teresa Johnson <tejohnson@google.com>
8199 Jan Hubicka <jh@suse.cz>
8200
8201 * predict.c (drop_profile): New function.
8202 (handle_missing_profiles): Ditto.
8203 (counts_to_freqs): Don't overwrite estimated frequencies
8204 when function has no profile counts.
8205 * predict.h (handle_missing_profiles): Declare.
8206 * tree-inline.c (freqs_to_counts): New function.
8207 (copy_cfg_body): Invoke freqs_to_counts as needed.
8208 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8209
8210 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8211
8212 PR target/59088
8213 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8214 Set for m_HASWELL.
8215 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8216
8217 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8218
8219 PR target/59084
8220 * config/i386/i386.c (ix86_option_override_internal): Check
8221 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8222 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8223 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8224 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8225
8226 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8227 Clear m_COREI7_AVX and update comments.
8228 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8229
8230 2013-11-12 Martin Jambor <mjambor@suse.cz>
8231
8232 PR rtl-optimization/10474
8233 * ira.c (interesting_dest_for_shprep): New function.
8234 (split_live_ranges_for_shrink_wrap): Likewise.
8235 (find_moveable_pseudos): Move calculation of dominance info,
8236 df_analysios and the final anlyses to...
8237 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8238
8239 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8240
8241 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8242 Handle type conversion.
8243
8244 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8245 Jan Hubicka <jh@suse.cz>
8246
8247 * cgraph.c (dump_cgraph_node): Profile dump added.
8248 * cgraph.h (struct cgraph_node): New time profile variable added.
8249 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8250 * gcov-io.h (gcov_type): New profiler type introduced.
8251 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8252 (input_node): Time profiler is read from LTO stream.
8253 * predict.c (maybe_hot_count_p): Hot prediction changed.
8254 * profile.c (instrument_values): New case for time profiler added.
8255 (compute_value_histograms): Read of time profile.
8256 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8257 * tree-profile.c (init_ic_make_global_vars): Time profiler
8258 function added.
8259 (gimple_init_edge_profiler): TP function instrumentation.
8260 (gimple_gen_time_profiler): New.
8261 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8262 added.
8263 (dump_histogram_value): TP type added to dumps.
8264 (visit_hist): More sensitive check that takes TP into account.
8265 (gimple_find_values_to_profile): TP instrumentation.
8266 * value-prof.h (hist_type): New histogram type added.
8267 (struct histogram_value_t): Pointer to struct function added.
8268 * libgcc/Makefile.in: New GCOV merge function for TP added.
8269 * libgcov.c: function_counter variable introduced.
8270 (_gcov_merge_time_profile): New.
8271 (_gcov_time_profiler): New.
8272
8273 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8274 Jeff Law <law@redhat.com>
8275
8276 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8277 ao_ref_init_from_ptr_and_size for builtins.
8278
8279 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8280 H.J. Lu <hongjiu.lu@intel.com>
8281
8282 PR target/58853
8283 * config/i386/x86-tune.def
8284 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8285 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8286 * config/i386/i386.h
8287 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8288 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8289 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8290 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8291 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8292 misaligned_prologue_used. Check that
8293 desired_aling <= epilogue_size_needed.
8294
8295 2013-11-11 Cong Hou <congh@google.com>
8296
8297 PR tree-optimization/59050
8298 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8299
8300 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8301
8302 PR middle-end/59049
8303 * expmed.c (emit_store_flag): Fail for const-const comparison.
8304
8305 2013-11-11 Tristan Gingold <gingold@adacore.com>
8306 Eric Botcazou <ebotcazou@adacore.com>
8307
8308 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8309 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8310 * tree.def (CONSTRUCTOR): Likewise.
8311 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8312 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8313 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8314
8315 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8316
8317 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8318 diagnostic_finish.
8319
8320 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8321
8322 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8323 comparisons.
8324
8325 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8326
8327 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8328
8329 2013-11-08 Jeff Law <law@redhat.com>
8330
8331 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8332 threading paths first, then perform PHI node checks if applicable.
8333
8334 2013-11-10 Karlson2k <k2k@narod.ru>
8335 Kai Tietz <ktietz@redhat.com>
8336
8337 PR plugin/52872
8338 * configure.ac: Adding for exported symbols check
8339 and for rdynamic-check executable-extension.
8340 * configure: Regenerated.
8341
8342 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8343
8344 * mode-switching.c (optimize_mode_switching): Mark block as
8345 nontransparent, if last_mode at block exit is different from no_mode.
8346
8347 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8348
8349 * function.c (NAME__MAIN): Move to...
8350 * cfgexpand.c (NAME__MAIN): ...here.
8351
8352 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8353
8354 * target.def (can_use_doloop_p): New hook.
8355 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8356 * doc/tm.texi: Regenerate.
8357 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8358 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8359 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8360 * targhooks.h (can_use_doloop_if_innermost): Declare.
8361 * targhooks.c (can_use_doloop_if_innermost): New function.
8362 * target.h: Include double-int.h.
8363 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8364 Remove iteration count, maximum iteration count, loop depth and
8365 enter-at-top inputs from doloop_begin and doloop_end.
8366 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8367 interface.
8368 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8369 (TARGET_CAN_USE_DOLOOP_P): Define.
8370 * config/arm/thumb2.md (doloop_end): Update for new interface.
8371 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8372 * config/bfin/bfin.md (doloop_end): Update for new interface.
8373 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8374 (TARGET_CAN_USE_DOLOOP_P): Define.
8375 * config/c6x/c6x.md (doloop_end): Update for new interface.
8376 * config/ia64/ia64.md (doloop_end): Update for new interface.
8377 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8378 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8379 interface.
8380 * config/mep/mep.c (mep_emit_doloop): Likewise.
8381 (TARGET_CAN_USE_DOLOOP_P): Define.
8382 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8383 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8384 * config/s390/s390.md (doloop_end): Update for new interface.
8385 * config/sh/sh.md (doloop_end): Likewise.
8386 * config/spu/spu.md (doloop_end): Likewise.
8387 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8388 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8389 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8390 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8391 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8392 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8393 interface.
8394 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8395
8396 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8397
8398 PR other/59055
8399 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8400 Builtins node.
8401
8402 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8403 Joseph Myers <joseph@codesourcery.com>
8404
8405 * ginclude/stdatomic.h: New file.
8406 * Makefile.in (USER_H): Add stdatomic.h.
8407
8408 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8409
8410 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8411 comparisons.
8412
8413 2013-11-08 Jeff Law <law@redhat.com>
8414
8415 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8416 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8417 (ssa_redirect_edges, thread_block_1): Use it.
8418 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8419 (thread_through_all_blocks, register_jump_thread): Likewise.
8420 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8421
8422 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8423
8424 * config/arm/aarch-common.c
8425 (search_term): New typedef.
8426 (shift_rtx_costs): New array.
8427 (arm_rtx_shift_left_p): New.
8428 (arm_find_sub_rtx_with_search_term): Likewise.
8429 (arm_find_sub_rtx_with_code): Likewise.
8430 (arm_early_load_addr_dep): Add sanity checking.
8431 (arm_no_early_alu_shift_dep): Likewise.
8432 (arm_no_early_alu_shift_value_dep): Likewise.
8433 (arm_no_early_mul_dep): Likewise.
8434 (arm_no_early_store_addr_dep): Likewise.
8435
8436 2013-11-08 Richard Biener <rguenther@suse.de>
8437
8438 PR tree-optimization/59047
8439 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8440
8441 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8442
8443 * common.opt (fcheck-pointer-bounds): Move to ...
8444 * c-family/c.opt: ... here.
8445 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8446 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8447 * langhooks.h (lang_hooks): Remove chkp_supported field.
8448 * toplev.c (process_options): Remove chkp_supported check.
8449
8450 2013-11-08 Richard Biener <rguenther@suse.de>
8451
8452 PR tree-optimization/59038
8453 PR tree-optimization/58955
8454 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8455 previous change. Handle known dependences correctly.
8456
8457 2013-11-08 Tom de Vries <tom@codesourcery.com>
8458
8459 * config/rs6000/t-xilinx: Remove duplicate contents.
8460
8461 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8462 Joseph Myers <joseph@codesourcery.com>
8463
8464 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8465 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8466 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8467 (struct tree_base): Add atomic_flag field.
8468 * tree.h (TYPE_ATOMIC): New accessor macro.
8469 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8470 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8471 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8472 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8473 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8474 (find_atomic_core_type): New function.
8475 (build_qualified_type): Adjust alignment for qualified types.
8476 (build_atomic_base): New function
8477 (build_common_tree_nodes): Build atomicQI_type_node,
8478 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8479 atomicTI_type_node.
8480 * print-tree.c (print_node): Print atomic qualifier.
8481 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8482 * target.def (atomic_assign_expand_fenv): New hook.
8483 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8484 * doc/tm.texi: Regenerate.
8485 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8486 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8487 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8488 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8489 function type.
8490 * config/i386/i386.c (enum ix86_builtins): Add
8491 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8492 IX86_BUILTIN_FNCLEX.
8493 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8494 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8495 (ix86_expand_builtin): Handle the new built-in functions.
8496 (ix86_atomic_assign_expand_fenv): New function.
8497 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8498 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8499 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8500 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8501
8502 2013-11-07 Steve Ellcey <sellcey@mips.com>
8503
8504 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8505 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8506 (MULTILIB_DIRNAMES): Add fp64 directory.
8507 (MULTILIB_EXCEPTIONS): Add new exclusions.
8508
8509 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8510
8511 * gimplify.c (gimple_regimplify_operands): Do not set
8512 SSA_NAME_DEF_STMT.
8513 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8514 (rewrite_close_phi_out_of_ssa): Same.
8515 (rewrite_phi_out_of_ssa): Same.
8516 (rewrite_degenerate_phi): Same.
8517 (handle_scalar_deps_crossing_scop_limits): Same.
8518 * tree-if-conv.c (predicate_scalar_phi): Same.
8519 * tree-parloops.c (create_loads_for_reductions): Same.
8520 (create_final_loads_for_reduction): Same.
8521 (create_loads_and_stores_for_name): Same.
8522 (transform_to_exit_first_loop): Same.
8523 (create_parallel_loop): Same.
8524 * tree-ssa-loop-im.c
8525 (move_computations_dom_walker::before_dom_children): Same.
8526 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8527 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8528 * tree-ssa-propagate.c (substitute_and_fold): Same.
8529 * tree-vect-loop.c (vect_finalize_reduction): Same.
8530 * tree-vect-stmts.c (vectorizable_call): Same.
8531
8532 2013-11-07 Mike Stump <mikestump@comcast.net>
8533
8534 * config/pdp11/pdp11.c: Include dbxout.h.
8535 * config/picochip/picochip.c: Likewise.
8536
8537 2013-11-07 Cong Hou <congh@google.com>
8538
8539 PR tree-optimization/56764
8540 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8541 Combine alias checks if it is possible to amortize the runtime
8542 overhead. Return the number of alias checks after merging.
8543 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8544 Use the function vect_create_cond_for_alias_checks () to check
8545 the number of alias checks.
8546
8547 2013-11-07 Jeff Law <law@redhat.com>
8548
8549 * varpool.c (ctor_for_folding): Fix typo in comment.
8550
8551 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8552
8553 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8554 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8555
8556 2013-11-07 Jeff Law <law@redhat.com>
8557
8558 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8559
8560 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8561 No longer check if we have __builtin_trap, assume it's available.
8562
8563 2013-11-07 Diego Novillo <dnovillo@google.com>
8564
8565 * attribs.c (lookup_scoped_attribute_spec): Make static.
8566 (get_attribute_namespace): Likewise.
8567 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8568 (validate_arglist): Move earlier in the file. Make static.
8569 (expand_stack_restore): Move from stmt.c
8570 (expand_stack_save): Move from stmt.c
8571 (rewrite_call_expr_array): Move earlier in the file.
8572 (rewrite_call_expr_valist): Likewise.
8573 * cfgexpand.c: Include hard-reg-set.h before tree.h
8574 Include recog.h.
8575 Include output.h.
8576 (expand_asm_loc): Move from stmt.c.
8577 (n_occurrences): Move from stmt.c.
8578 (check_operand_nalternatives): Move from stmt.c.
8579 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8580 (expand_asm_operands): Move from stmt.c
8581 (expand_asm_stmt): Move from stmt.c
8582 (expand_computed_goto): Move from stmt.c
8583 (expand_goto): Move from stmt.c
8584 (expand_null_return_1): Move from stmt.c
8585 (expand_null_return): Move from stmt.c
8586 (expand_value_return): Move from stmt.c
8587 (expand_return): Move from stmt.c
8588 (expand_main_function): Move from function.c
8589 (stack_protect_prologue): Move from function.c
8590 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8591 (build_function_decl_skip_args): Move from tree.c.
8592 * explow.c (tree_expr_size): Move from tree.c.
8593 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8594 (fields_length): Move from tree.c.
8595 * fold-const.c (size_low_cst): Move from tree.c.
8596 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8597 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8598 (fold_build3_initializer_loc): Remove.
8599 (tree_invalid_nonnegative_warnv_p): Make static.
8600 * function.c (expand_main_function): Move to cfgexpand.c.
8601 (stack_protect_prologue): Move to cfgexpand.c.
8602 (set_insn_locations): Move earlier in the file.
8603 * gimple-fold.c: Include langhooks.h.
8604 (truth_type_for): Move from tree.c.
8605 * print-tree.c (print_vec_tree): Remove.
8606 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8607 (expand_goto): Move to cfgexpand.c.
8608 (n_occurrences): Move to cfgexpand.c.
8609 (expand_asm_loc): Move to cfgexpand.c
8610 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8611 (expand_asm_operands): Move to cfgexpand.c.
8612 (expand_asm_stmt): Move to cfgexpand.c.
8613 (check_operand_nalternatives): Move to cfgexpand.c
8614 (expand_null_return): Move to cfgexpand.c.
8615 (expand_value_return): Move to cfgexpand.c.
8616 (expand_null_return_1): Move to cfgexpand.c.
8617 (expand_return): Move to cfgexpand.c.
8618 (expand_stack_save): Move to builtins.c.
8619 (expand_stack_restore): Move to builtins.c
8620 * symtab.c: Include output.h.
8621 (decl_assembler_name_hash): Move from tree.c.
8622 (decl_assembler_name_equal): Move from tree.c.
8623 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8624 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8625 (range_in_array_bounds_p): Move from tree.c.
8626 * tree-object-size.c (fini_object_sizes): Make static.
8627 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8628 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8629 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8630 (tree_expr_size): Move to explow.c.
8631 (decl_assembler_name_hash): Move to symtab.c.
8632 (real_twop): Remove.
8633 (tree_expr_size): Move to explow.c.
8634 (stabilize_reference_1): Move earlier in the file. Make static.
8635 (omp_remove_redundant_declare_simd_attrs): Remove.
8636 (simple_cst_list_equal): Move earlier in the file. Make static.
8637 (size_low_cst): Move to fold-const.c.
8638 (build_type_no_quals): Remove.
8639 (build_function_type_skip_args): Move to cgraphclones.c.
8640 (build_function_decl_skip_args): Move to cgraphclones.c.
8641 (in_array_bounds_p): Move to tree-eh.c.
8642 (range_in_array_bounds_p): Move to tree-eh.c.
8643 (truth_type_for): Move to gimple-fold.c.
8644 (list_equal_p): Remove.
8645 * tree.h (decl_assembler_name_equal): Remove.
8646 (decl_assembler_name_hash): Remove.
8647 (truth_type_for): Remove.
8648 (build_type_no_quals): Remove.
8649 (build_function_decl_skip_args): Remove.
8650 (in_array_bounds_p): Remove.
8651 (range_in_array_bounds_p): Remove.
8652 (size_low_cst): Remove.
8653 (omp_remove_redundant_declare_simd_attrs): Remove.
8654 (tree_expr_size): Remove.
8655 (fields_length): Remove.
8656 (stabilize_reference_1): Remove.
8657 (expand_goto): Remove.
8658 (expand_stack_save): Remove.
8659 (expand_stack_restore): Remove.
8660 (expand_return): Remove.
8661 (fold_build3_initializer_loc): Remove.
8662 (tree_expr_nonzero_p): Remove.
8663 (tree_invalid_nonnegative_warnv_p): Remove.
8664 (tree_expr_nonzero_warnv_p): Remove.
8665 (fold_builtin_snprintf_chk): Remove.
8666 (validate_arglist): Remove.
8667 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8668 (simple_cst_list_equal): Remove.
8669 (real_twop): Remove.
8670 (expand_main_function): Remove.
8671 (stack_protect_prologue): Remove.
8672 (print_vec_tree): Remove.
8673 (lookup_scoped_attribute_spec): Remove.
8674 (get_attribute_namespace): Remove.
8675 (expand_computed_goto): Remove.
8676 (expand_asm_stmt): Remove.
8677 (list_equal_p): Remove.
8678 (ssa_name_nonnegative_p): Remove.
8679 (fini_object_sizes): Remove.
8680 (addr_expr_of_non_mem_decl_p): Remove.
8681 (is_tm_safe_or_pure): Move to trans-mem.c.
8682 (more_const_call_expr_args_p): Remove.
8683 (save_vtable_map_decl): Remove.
8684
8685 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8686
8687 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8688 linker plugins, too.
8689
8690 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8691 link to libgomp and its dependencies.
8692 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8693 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8694 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8695 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8696
8697 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8698
8699 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8700 (determine_value_range): Add loop argument. Use get_range_info to
8701 improve range.
8702 (bound_difference): Adjust caller.
8703
8704 2013-11-07 Richard Biener <rguenther@suse.de>
8705 Jakub Jelinek <jakub@redhat.com>
8706
8707 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8708 latches from header PHI arguments from the latch edge.
8709
8710 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8711
8712 PR c++/58176
8713 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8714
8715 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8716
8717 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8718 misaligned_prologue_used when it has been set.
8719
8720 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8721 Jakub Jelinek <jakub@redhat.com>
8722
8723 PR sanitizer/59029
8724 * asan.c (get_mem_refs_of_builtin_call): Allow
8725 integer literals as addresses in instrumented builtins.
8726
8727 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8728
8729 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8730 Explain why plus_constant is not used.
8731
8732 2013-11-07 Richard Biener <rguenther@suse.de>
8733
8734 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8735 (canonicalize_value): ... this. Also handle stripping of
8736 TREE_OVERFLOW.
8737 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8738 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8739 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8740
8741 2013-11-07 Richard Biener <rguenther@suse.de>
8742
8743 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8744
8745 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 PR target/59034
8748 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8749 with stack_pointer_rtx.
8750
8751 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8752
8753 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8754 using operand_equal_p.
8755
8756 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8757
8758 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8759 * tree-affine.c (get_inner_reference_aff): Return base.
8760 * tree-affine.h (get_inner_reference_aff): Change prototype.
8761
8762 2013-11-06 Tobias Burnus <burnus@net-b.de>
8763
8764 * doc/invoke.texi (Wdate-time): Fix typo.
8765
8766 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8767
8768 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8769 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8770 fp_arith_reg_operand instead of arith_reg_operand.
8771
8772 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8773
8774 * config/sh/sh.md (adddi3): Remove empty constraints.
8775 Remove can_create_pseudo_p and arith_reg_operand check.
8776 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8777 Split before reload.
8778
8779 2013-11-06 Jeff Law <law@redhat.com>
8780 Tom Tromey <tromey@redhat.com>
8781
8782 * gdbinit.in: Disable strict type checking.
8783
8784 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8785
8786 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8787 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8788 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8789 (rest_of_handle_live_range_shrinkage): Ditto
8790 (class pass_live_range_shrinkage): Ditto.
8791 (pass_data_live_range_shrinkage): Ditto.
8792 (make_pass_live_range_shrinkage): Ditto.
8793 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8794 (finish_live_range_shrinkage): Ditto.
8795 * sched-deps.c (create_insn_reg_set): Make void return value.
8796 * passes.def: Add pass_live_range_shrinkage.
8797 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8798 * haifa-sched.c (live_range_shrinkage_p): New.
8799 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8800 New functions.
8801 (rank_for_schedule): Add code for pressure relief through live
8802 range shrinkage.
8803 (schedule_insn): Print more debug info.
8804 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8805 through live range shrinkage.
8806 * doc/invoke.texi (-flive-range-shrinkage): New.
8807 * common.opt (flive-range-shrinkage): New.
8808
8809 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8810
8811 PR target/59021
8812 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8813 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8814 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8815 RTXes that return in AVX256 register.
8816
8817 2013-11-06 Richard Biener <rguenther@suse.de>
8818
8819 PR tree-optimization/58653
8820 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8821 (prepare_initializers_chain): Adjust.
8822
8823 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8824
8825 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8826 (gimple_in_transaction): Use bb_in_transaction.
8827 * basic-block.h (bb_in_transaction): Relocate here and rename.
8828 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8829
8830 2013-11-06 Richard Biener <rguenther@suse.de>
8831
8832 * tree.c (drop_tree_overflow): New function.
8833 * tree.h (drop_tree_overflow): Declare.
8834 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8835 * tree-vrp.c (range_int_cst_singleton_p): Use
8836 is_overflow_infinity instead of testing TREE_OVERFLOW.
8837 (extract_range_from_assert): Likewise.
8838 (zero_nonzero_bits_from_vr): Likewise.
8839 (extract_range_basic): Likewise.
8840 (register_new_assert_for): Use drop_tree_overflow.
8841 (vrp_visit_phi_node): Likewise.
8842
8843 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8844
8845 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8846 checking for leaf functions without dynamic stack allocation.
8847 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8848 (ia64_expand_prologue): Likewise.
8849 * config/mips/mips.c (mips_expand_prologue): Likewise.
8850 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8851 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8852 (sparc_flat_expand_prologue): Likewise.
8853
8854 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8855
8856 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8857 (__ST3_LANE_FUNC): Likewise.
8858 (__ST4_LANE_FUNC): Likewise.
8859
8860 2013-11-06 Nick Clifton <nickc@redhat.com>
8861
8862 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8863 name returned by msp430_mcu_name.
8864 (LIB_SPEC): If a -T option has not been specified then set a
8865 default, mcu-specific, linker script.
8866 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8867 * config/msp430/msp430.c (msp430x_names): Likewise.
8868 Alpha sort the names for ease of comparison.
8869 (msp430_mcu_name): New function: Returns a string suitable for
8870 use as a C preprocessor symbol based upon the name of the MCU
8871 being targeted.
8872 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8873 mcu names.
8874 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8875
8876 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8877 unless it is the last part of a spec substring.
8878 * doc/invoke.texi (Spec Files): Document space insertion
8879 behaviour of %*.
8880
8881 2013-11-06 Christian Bruel <christian.bruel@st.com>
8882
8883 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8884 Factorize probabilities, Use adjust_address instead of
8885 adjust_automodify_address when possible. Enable for optimize.
8886 (sh_expand_strlen): New function.
8887 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8888 * config/sh/sh.md (strlensi): New pattern.
8889 (UNSPEC_BUILTIN_STRLEN): Define.
8890
8891 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8892
8893 PR middle-end/58970
8894 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8895 (expand_assignment): If *bitpos is negative, set *offset
8896 and adjust *bitpos, so that it is not negative.
8897
8898 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8899
8900 * config/i386/bdver3.md : Added two additional decoder units
8901 to support issue rate of 4 and remodeled vector unit.
8902 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8903 architectures is set to 4.
8904 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8905 lookahead is set to 4 for BD architectures.
8906
8907 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8908
8909 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8910 Remove restriction against use of VSX instructions when generating
8911 code for little endian mode.
8912
8913 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8914
8915 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8916 for both big and little endian.
8917 (mulv8hi3): Swap input operands for merge high and merge low
8918 instructions for little endian.
8919
8920 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8921
8922 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8923 define_insn to define_expand that uses even patterns for big
8924 endian and odd patterns for little endian.
8925 (vec_widen_smult_even_v16qi): Likewise.
8926 (vec_widen_umult_even_v8hi): Likewise.
8927 (vec_widen_smult_even_v8hi): Likewise.
8928 (vec_widen_umult_odd_v16qi): Likewise.
8929 (vec_widen_smult_odd_v16qi): Likewise.
8930 (vec_widen_umult_odd_v8hi): Likewise.
8931 (vec_widen_smult_odd_v8hi): Likewise.
8932 (altivec_vmuleub): New define_insn.
8933 (altivec_vmuloub): Likewise.
8934 (altivec_vmulesb): Likewise.
8935 (altivec_vmulosb): Likewise.
8936 (altivec_vmuleuh): Likewise.
8937 (altivec_vmulouh): Likewise.
8938 (altivec_vmulesh): Likewise.
8939 (altivec_vmulosh): Likewise.
8940
8941 2013-11-05 Mike Stump <mikestump@comcast.net>
8942
8943 * Makefile.in (mostlyclean): Remove c-family objects.
8944
8945 2013-11-05 Ian Lance Taylor <iant@google.com>
8946
8947 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8948 If possible, add .cfi directives to record change to bx.
8949 * config/i386/i386.c (ix86_emit_cfi): New function.
8950 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8951
8952 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8953
8954 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8955 immediately after a label for a tablejump pattern.
8956
8957 * config/arm/arm.c (is_jump_table): Remove.
8958 (create_fix_barrier): Use tablejump_p instead.
8959 (arm_reorg): Likewise.
8960 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8961 (thumb2_output_casesi): Likewise.
8962 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8963 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8964 casesi_shift_media, casesi_load_media): Likewise.
8965 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
8966 * config/microblaze/microblaze.md: Likewise.
8967
8968 2013-11-05 Tobias Burnus <burnus@net-b.de>
8969
8970 * doc/invoke.texi (-Wdate-time): Document.
8971
8972 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
8973
8974 * double-int.c (lshift_double, rshift_double): Remove
8975 SHIFT_COUNT_TRUNCATED handling.
8976
8977 2013-11-05 Jeff Law <law@redhat.com>
8978
8979 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
8980 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
8981 * gimple-ssa-isolate-paths.c: New file.
8982 * gimple.c (check_loadstore): New function.
8983 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
8984 Verify OP is in the argument list and the argument corresponding
8985 to OP is a pointer type. Use operand_equal_p rather than
8986 pointer equality when testing if OP is on the nonnull list.
8987 Use check_loadstore rather than count_ptr_derefs. Handle
8988 GIMPLE_RETURN statements.
8989 * tree-vrp.c (infer_nonnull_range): Remove.
8990 * gimple.h (infer_nonnull_range): Declare.
8991 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
8992 * passes.def: Add pass_isolate_erroneous_paths.
8993 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
8994 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
8995 * tree-ssa.c (struct count_ptr_d): Remove.
8996 (count_ptr_derefs, count_uses_and_derefs): Remove.
8997 * tree-ssa.h (count_uses_and_derefs): Remove.
8998
8999 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9000
9001 PR rtl-optimization/58997
9002 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9003 get_iv_value to be in iv->mode rather than iv->extend_mode.
9004 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9005 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9006 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9007 mode.
9008
9009 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9010
9011 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9012 list.
9013 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9014 Move to gimple-expr.h.
9015 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9016 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9017 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9018 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9019 Relocate here.
9020 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9021 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9022 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9023 is_gimple_address, is_gimple_invariant_address,
9024 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9025 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9026 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9027 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9028 gimple_decl_printable_name, useless_type_conversion_p,
9029 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9030 gimple-expr.[ch].
9031 * gimple-expr.c: New File.
9032 (useless_type_conversion_p, gimple_set_body, gimple_body,
9033 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9034 gimple_can_coalesce_p, extract_ops_from_tree_1,
9035 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9036 is_gimple_address, is_gimple_invariant_address,
9037 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9038 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9039 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9040 is_gimple_mem_ref_addr): Relocate here.
9041 * Makefile.in (OBJS): Add gimple-expr.o.
9042
9043 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9044
9045 * gengtype-parse.c (struct_field_seq): Support empty structs.
9046
9047 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9048
9049 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9050
9051 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9052
9053 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9054 for !TARGET_80387.
9055 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9056 _SOFT_FLOAT here.
9057 (LONG_DOUBLE_TYPE_SIZE): New define.
9058 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9059
9060 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9061
9062 PR c++/58724
9063 * doc/extend.texi [visibility ("visibility_type")]: Add example
9064 about visibility attribute on namespace declaration.
9065
9066 2013-11-05 Richard Biener <rguenther@suse.de>
9067
9068 PR ipa/58492
9069 * passes.def (all_passes): Start with pass_fixup_cfg again.
9070
9071 2013-11-05 Richard Biener <rguenther@suse.de>
9072
9073 PR tree-optimization/58955
9074 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9075 edge direction.
9076
9077 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9078
9079 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9080 little endian.
9081 (vec_pack_ufix_trunc_v2df): Likewise.
9082
9083 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9084
9085 PR middle-end/58981
9086 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9087 pattern, instead of word_mode.
9088
9089 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9090 Pmode for size.
9091 (set_storage_via_setmem): Likewise.
9092
9093 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9094
9095 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9096 gimple.h and the rest of the condition in eliminate_build.
9097 (eliminate_build): Call new routine.
9098 * gimple.h (phi_ssa_name_p): Delete.
9099
9100 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9101
9102 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9103 case of no prefix and reserving zero slots, because when that's the
9104 case we'll never get here.
9105 * vec.h (va_heap::reserve): Don't try and handle
9106 vec_prefix::calculate_allocation returning zero because that should
9107 never happen.
9108
9109 2013-11-05 Richard Biener <rguenther@suse.de>
9110
9111 PR middle-end/58941
9112 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9113 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9114 process trailing array detection before diving into the
9115 view-converted object (and possibly apply some extra offset).
9116
9117 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9118
9119 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9120 New function.
9121 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9122
9123 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9124
9125 PR tree-optimization/58958
9126 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9127 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9128
9129 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9130
9131 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9132 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9133
9134 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9135
9136 PR tree-optimization/58984
9137 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9138 set *SIZE_P if non-NULL on success.
9139 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9140 callers.
9141 (ipcp_transform_function): Likewise. Punt if size of access
9142 is different from TYPE_SIZE on v->value's type.
9143
9144 2013-11-05 Tobias Burnus <burnus@net-b.de>
9145
9146 * doc/invoke.texi (-fopenmp-simd): Document new option.
9147 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9148 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9149 * tree.c (attribute_value_equal): Ditto.
9150
9151 2013-11-04 Wei Mi <wmi@google.com>
9152
9153 * sched-rgn.c (add_branch_dependences): Keep insns in
9154 a SCHED_GROUP at the end of BB to remain their location.
9155
9156 2013-11-04 Wei Mi <wmi@google.com>
9157
9158 * config/i386/i386.c (memory_address_length): Extract a part
9159 of code to rip_relative_addr_p.
9160 (rip_relative_addr_p): New Function.
9161 (ix86_macro_fusion_p): Ditto.
9162 (ix86_macro_fusion_pair_p): Ditto.
9163 * config/i386/i386.h: Add new tune features about macro-fusion.
9164 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9165 * doc/tm.texi: Generated.
9166 * doc/tm.texi.in: Ditto.
9167 * haifa-sched.c (try_group_insn): New Function.
9168 (group_insns_for_macro_fusion): Ditto.
9169 (sched_init): Call group_insns_for_macro_fusion.
9170 * target.def: Add two hooks: macro_fusion_p and
9171 macro_fusion_pair_p.
9172
9173 2013-11-04 Kostya Serebryany <kcc@google.com>
9174
9175 Update to match the changed asan API.
9176 * asan.c (asan_function_start): New function.
9177 (asan_emit_stack_protection): Update the string stored in the
9178 stack red zone to match new API. Store the PC of the current
9179 function in the red zone.
9180 (asan_global_struct): Update the __asan_global definition to match
9181 the new API.
9182 (asan_add_global): Ditto.
9183 * asan.h (asan_function_start): New prototype.
9184 * final.c (final_start_function): Call asan_function_start.
9185 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9186 to __asan_init_v3.
9187
9188 2013-11-04 Wei Mi <wmi@google.com>
9189
9190 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9191 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9192 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9193 (ix86_issue_rate): Ditto.
9194 (ix86_adjust_cost): Ditto.
9195 (ia32_multipass_dfa_lookahead): Ditto.
9196 (ix86_sched_init_global): Ditto.
9197 (get_builtin_code_for_version): Ditto.
9198 * config/i386/i386.h (enum target_cpu_default): Ditto.
9199 (enum processor_type): Ditto.
9200 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9201
9202 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9203
9204 PR rtl-optimization/58967
9205 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9206 !lra_in_progress for mode sizes bigger word.
9207
9208 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9209
9210 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9211 arguments to merge instruction for little endian.
9212 (vec_widen_umult_lo_v16qi): Likewise.
9213 (vec_widen_smult_hi_v16qi): Likewise.
9214 (vec_widen_smult_lo_v16qi): Likewise.
9215 (vec_widen_umult_hi_v8hi): Likewise.
9216 (vec_widen_umult_lo_v8hi): Likewise.
9217 (vec_widen_smult_hi_v8hi): Likewise.
9218 (vec_widen_smult_lo_v8hi): Likewise.
9219
9220 2013-11-04 Ian Lance Taylor <iant@google.com>
9221
9222 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9223 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9224 builtins that take pointers.
9225 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9226 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9227 (run_gcc): Pass -fnon-call-exceptions.
9228
9229 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9230
9231 * optabs.c (expand_vec_perm): Revert one incorrect line from
9232 2013-10-31 change.
9233
9234 PR tree-optimization/58978
9235 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9236 use_stmt by single_imm_use directly. Only call single_imm_use
9237 on SSA_NAMEs.
9238
9239 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9240
9241 PR rtl-optimization/58968
9242 * lra-spills.c (return_regno_p): New function.
9243 (lra_final_code_change): Use it.
9244
9245 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9246
9247 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9248 * target.def (float_exceptions_rounding_supported_p): New hook.
9249 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9250 function.
9251 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9252 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9253 New @hook.
9254 * doc/tm.texi: Regenerate.
9255 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9256 * config/rs6000/rs6000-linux.c: New file.
9257 * config/rs6000/rs6000-protos.h
9258 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9259 * config/rs6000/linux.h
9260 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9261 * config/rs6000/linux64.h
9262 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9263 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9264 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9265
9266 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9267
9268 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9269 Replace the define_insn_and_split with a define_insn and two
9270 define_splits, with the split after reload re-permuting the source
9271 register to its original value.
9272 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9273 (*vsx_le_perm_store_v8hi): Likewise.
9274 (*vsx_le_perm_store_v16qi): Likewise.
9275
9276 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9277
9278 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9279 little endian.
9280
9281 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9282
9283 PR tree-optimization/58946
9284 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9285 bbs with bbinfo[idx].op != NULL before all blocks with
9286 bbinfo[idx].op == NULL.
9287
9288 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9289
9290 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9291 (avr_dump_double_int_hex): Likewise.
9292 (avr_log_vadump): Remove %D and %X handling.
9293 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9294 (avr_map_op_t): Change map from double_int to unsigned int.
9295 (avr_map_op): Update accordingly.
9296 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9297 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9298 unsigned ints rather than double_ints.
9299
9300 2013-11-03 Marek Polacek <polacek@redhat.com>
9301
9302 Implement -fsanitize=vla-bound.
9303 * opts.c (common_handle_option): Handle vla-bound.
9304 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9305 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9306 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9307
9308 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9309
9310 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9311 little endian.
9312
9313 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9314
9315 * config/i386/constraints.md (Ts, Tv): New address constrains.
9316 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9317 constraint for address_no_seg_operand.
9318 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9319 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9320 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9321 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9322 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9323 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9324 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9325 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9326 constraint for vsib_address_operand.
9327
9328 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9329
9330 * gcse.c (pre_delete): Remove references to regmove from comments.
9331 * recog.c: (validate_replace_rtx_1): Likewise.
9332 * config/rl78/rl78.c: Likewise.
9333 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9334 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9335 * common/config/mmix/mmix-common.c: Likewise.
9336
9337 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9338
9339 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9340 * gimplify.c (gimplify_compound_lval): Likewise.
9341 * graphite-clast-to-gimple.c (gloog): Likewise.
9342 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9343 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9344 (limit_scop); Likewise.
9345 (build_scops): Likewise.
9346 (dot_scop): Likewise.
9347 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9348 (build_scop_drs): Likewise.
9349 (insert_stmts): Likewise.
9350 (insert_out_of_ssa_copy): Likewise.
9351 (remove_phi): Likewise.
9352 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9353 * hw-doloop.c (discover_loop): Likewise.
9354 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9355 * tree-dfa.c (dump_enumerated_decls): Likewise.
9356 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9357 * tree-inline.c (tree_function_versioning): Likewise.
9358 * tree-loop-distribution.c (build_rdg): Likewise.
9359 (rdg_flag_vertex_and_dependent): Likewise.
9360 (distribute_loop): Likewise.
9361 * tree-parloops.c (loop_parallel_p): Likewise.
9362 (eliminate_local_variables): Likewise.
9363 (separate_decls_in_region): Likewise.
9364 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9365 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9366 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9367 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9368 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9369 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9370 (vectorizable_condition): Likewise.
9371
9372 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9373
9374 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9375 * configure: Regenerate.
9376 * config/i386/i386.md (*movdi_internal): Change
9377 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9378 (*movdf_internal): Ditto.
9379 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9380 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9381 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9382
9383 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9384
9385 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9386 after comment.
9387
9388 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9389
9390 Automated part of renaming of symtab_node_base to symtab_node.
9391
9392 Patch autogenerated by rename_symtab.py from
9393 https://github.com/davidmalcolm/gcc-refactoring-scripts
9394 revision 58bb219cc090b2f4516a9297d868c245495ee622
9395 with ChangeLog entry fixed up by hand.
9396
9397 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9398 symtab_node.
9399 (cgraph_node_for_asm): Likewise.
9400 * cgraph.h (symtab_node_base): Likewise.
9401 (cgraph_node): Likewise.
9402 (varpool_node): Likewise.
9403 (is_a_helper <cgraph_node>::test): Likewise.
9404 (is_a_helper <varpool_node>::test): Likewise.
9405 (symtab_nodes): Likewise.
9406 (symtab_register_node): Likewise.
9407 (symtab_unregister_node): Likewise.
9408 (symtab_remove_node): Likewise.
9409 (symtab_get_node): Likewise.
9410 (symtab_node_for_asm): Likewise.
9411 (symtab_node_asm_name): Likewise.
9412 (symtab_node_name): Likewise.
9413 (symtab_insert_node_to_hashtable): Likewise.
9414 (symtab_add_to_same_comdat_group): Likewise.
9415 (symtab_dissolve_same_comdat_group_list): Likewise.
9416 (dump_symtab_node): Likewise.
9417 (debug_symtab_node): Likewise.
9418 (dump_symtab_base): Likewise.
9419 (verify_symtab_node): Likewise.
9420 (verify_symtab_base): Likewise.
9421 (symtab_used_from_object_file_p): Likewise.
9422 (symtab_alias_ultimate_target): Likewise.
9423 (symtab_resolve_alias): Likewise.
9424 (fixup_same_cpp_alias_visibility): Likewise.
9425 (symtab_for_node_and_aliases): Likewise.
9426 (symtab_nonoverwritable_alias): Likewise.
9427 (availability symtab_node_availability): Likewise.
9428 (symtab_semantically_equivalent_p): Likewise.
9429 (fixup_same_cpp_alias_visibility): Likewise.
9430 (symtab_prevail_in_asm_name_hash): Likewise.
9431 (cgraph): Likewise.
9432 (varpool): Likewise.
9433 (varpool_first_variable): Likewise.
9434 (varpool_next_variable): Likewise.
9435 (varpool_first_static_initializer): Likewise.
9436 (varpool_next_static_initializer): Likewise.
9437 (varpool_first_defined_variable): Likewise.
9438 (varpool_next_defined_variable): Likewise.
9439 (cgraph_first_defined_function): Likewise.
9440 (cgraph_next_defined_function): Likewise.
9441 (cgraph_first_function): Likewise.
9442 (cgraph_next_function): Likewise.
9443 (cgraph_first_function_with_gimple_body): Likewise.
9444 (cgraph_next_function_with_gimple_body): Likewise.
9445 (symtab_alias_target): Likewise.
9446 (symtab_real_symbol_p): Likewise.
9447 (symtab_can_be_discarded): Likewise.
9448 * cgraphbuild.c (mark_address): Likewise.
9449 (mark_load): Likewise.
9450 (mark_store): Likewise.
9451 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9452 (first): Likewise.
9453 (enqueue_node): Likewise.
9454 (referred_to_p): Likewise.
9455 (cgraph_process_same_body_aliases): Likewise.
9456 (analyze_functions): Likewise.
9457 (handle_alias_pairs): Likewise.
9458 (output_weakrefs): Likewise.
9459 (compile): Likewise.
9460 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9461 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9462 * ipa-prop.c (remove_described_reference): Likewise.
9463 (try_decrement_rdesc_refcount): Likewise.
9464 (ipa_edge_duplication_hook): Likewise.
9465 * ipa-ref.c (ipa_record_reference): Likewise.
9466 (ipa_maybe_record_reference): Likewise.
9467 (ipa_clone_ref): Likewise.
9468 (ipa_clone_references): Likewise.
9469 (ipa_clone_referring): Likewise.
9470 (ipa_find_reference): Likewise.
9471 (ipa_remove_stmt_references): Likewise.
9472 (ipa_clear_stmts_in_references): Likewise.
9473 * ipa-ref.h (symtab_node_base): Likewise.
9474 (ipa_ref): Likewise.
9475 (ipa_record_reference): Likewise.
9476 (ipa_maybe_record_reference): Likewise.
9477 (ipa_clone_references): Likewise.
9478 (ipa_clone_referring): Likewise.
9479 (ipa_clone_ref): Likewise.
9480 (ipa_find_reference): Likewise.
9481 (ipa_remove_stmt_references): Likewise.
9482 (ipa_clear_stmts_in_references): Likewise.
9483 * ipa-reference.c (ipa_reference_write_optimization_summary):
9484 Likewise.
9485 * ipa.c (enqueue_node): Likewise.
9486 (process_references): Likewise.
9487 (walk_polymorphic_call_targets): Likewise.
9488 (symtab_remove_unreachable_nodes): Likewise.
9489 (address_taken_from_non_vtable_p): Likewise.
9490 (comdat_can_be_unshared_p_1): Likewise.
9491 (comdat_can_be_unshared_p): Likewise.
9492 (can_replace_by_local_alias): Likewise.
9493 (function_and_variable_visibility): Likewise.
9494 * is-a.h: Likewise (within example in comment).
9495 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9496 (lto_symtab_encoder_encode): Likewise.
9497 (lto_symtab_encoder_delete_node): Likewise.
9498 (lto_symtab_encoder_in_partition_p): Likewise.
9499 (lto_set_symtab_encoder_in_partition): Likewise.
9500 (output_refs): Likewise.
9501 (compute_ltrans_boundary): Likewise.
9502 (output_symtab): Likewise.
9503 (input_node): Likewise.
9504 (input_ref): Likewise.
9505 (input_edge): Likewise.
9506 (input_cgraph_1): Likewise.
9507 (input_refs): Likewise.
9508 (output_cgraph_opt_summary): Likewise.
9509 (input_node_opt_summary): Likewise.
9510 (input_cgraph_opt_section): Likewise.
9511 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9512 Likewise.
9513 * lto-streamer-out.c (lto_output): Likewise.
9514 (output_symbol_p): Likewise.
9515 (produce_symtab): Likewise.
9516 * lto-streamer.h (lto_encoder_entry): Likewise.
9517 (lto_free_function_in_decl_state_for_node): Likewise.
9518 (lto_symtab_encoder_encode): Likewise.
9519 (lto_symtab_encoder_delete_node): Likewise.
9520 (lto_symtab_encoder_in_partition_p): Likewise.
9521 (lto_set_symtab_encoder_in_partition): Likewise.
9522 (lto_symtab_encoder_lookup): Likewise.
9523 (lsei_node): Likewise.
9524 (lto_symtab_encoder_deref): Likewise.
9525 * symtab.c (symtab_hash): Likewise.
9526 (assembler_name_hash): Likewise.
9527 (symtab_nodes): Likewise.
9528 (hash_node): Likewise.
9529 (eq_node): Likewise.
9530 (hash_node_by_assembler_name): Likewise.
9531 (eq_assembler_name): Likewise.
9532 (insert_to_assembler_name_hash): Likewise.
9533 (unlink_from_assembler_name_hash): Likewise.
9534 (symtab_prevail_in_asm_name_hash): Likewise.
9535 (symtab_register_node): Likewise.
9536 (symtab_insert_node_to_hashtable): Likewise.
9537 (symtab_unregister_node): Likewise.
9538 (symtab_get_node): Likewise.
9539 (symtab_remove_node): Likewise.
9540 (symtab_initialize_asm_name_hash): Likewise.
9541 (symtab_node_for_asm): Likewise.
9542 (symtab_add_to_same_comdat_group): Likewise.
9543 (symtab_dissolve_same_comdat_group_list): Likewise.
9544 (symtab_node_asm_name): Likewise.
9545 (symtab_node_name): Likewise.
9546 (dump_symtab_base): Likewise.
9547 (dump_symtab_node): Likewise.
9548 (dump_symtab): Likewise.
9549 (debug_symtab_node): Likewise.
9550 (verify_symtab_base): Likewise.
9551 (verify_symtab_node): Likewise.
9552 (verify_symtab): Likewise.
9553 (symtab_used_from_object_file_p): Likewise.
9554 (symtab_node_availability): Likewise.
9555 (symtab_alias_ultimate_target): Likewise.
9556 (fixup_same_cpp_alias_visibility): Likewise.
9557 (symtab_resolve_alias): Likewise.
9558 (symtab_for_node_and_aliases): Likewise.
9559 (symtab_for_node_and_aliases): Likewise.
9560 (symtab_nonoverwritable_alias_1): Likewise.
9561 (symtab_nonoverwritable_alias): Likewise.
9562 (symtab_semantically_equivalent_p): Likewise.
9563 * value-prof.c (init_node_map): Likewise.
9564 * varasm.c (find_decl): Likewise.
9565 * varpool.c (varpool_node_for_asm): Likewise.
9566 (varpool_remove_unreferenced_decls): Likewise.
9567
9568 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9569
9570 Manual part of renaming of symtab_node_base to symtab_node.
9571
9572 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9573 clashes with the preferred name for the base class.
9574 (const_symtab_node): Remove redundant typedef.
9575
9576 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9577
9578 * optabs.c (expand_vec_perm): Avoid vector mode punning
9579 SUBREGs in SET_DEST.
9580 * expmed.c (store_bit_field_1): Likewise.
9581 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9582 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9583 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9584 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9585 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9586 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9587 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9588 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9589 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9590 expand_vec_perm_vpshufb2_vpermq,
9591 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9592 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9593 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9594 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9595 than *d itself.
9596
9597 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9598
9599 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9600 Use gcc_unreachable for unhandled modes. Do not check results of
9601 expand_simple_binop. If not expanded to target, move the result.
9602
9603 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9604 Shiva Chen <shiva0217@gmail.com>
9605
9606 * config.gcc (nds32*-*-*): Add nds32 target.
9607 * config/nds32/nds32.c: New file.
9608 * config/nds32/nds32.h: New file.
9609 * config/nds32/nds32.md: New file.
9610 * config/nds32/constants.md: New file.
9611 * config/nds32/constraints.md: New file.
9612 * config/nds32/iterators.md: New file.
9613 * config/nds32/nds32-doubleword.md: New file.
9614 * config/nds32/nds32-intrinsic.md: New file.
9615 * config/nds32/nds32_intrinsic.h: New file.
9616 * config/nds32/nds32-modes.def: New file.
9617 * config/nds32/nds32-multiple.md: New file.
9618 * config/nds32/nds32.opt: New file.
9619 * config/nds32/nds32-opts.h: New file.
9620 * config/nds32/nds32-protos.h: New file.
9621 * config/nds32/nds32-peephole2.md: New file.
9622 * config/nds32/pipelines.md: New file.
9623 * config/nds32/predicates.md: New file.
9624 * config/nds32/t-mlibs: New file.
9625 * common/config/nds32: New directory and files.
9626
9627 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9628 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9629 * doc/install.texi (Cross-Compiler-Specific Options): Document
9630 --with-nds32-lib for nds32 target.
9631 * doc/extend.texi (Function Attributes, Target Builtins): Document
9632 nds32 specific attributes.
9633
9634 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9635
9636 * lra-constraints (process_alt_operands): Use the result
9637 elimination register for operand when matching constraints.
9638
9639 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9640
9641 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9642 (remove_range_assertions): Call it.
9643
9644 * tree.c (tree_ctz): New function.
9645 * tree.h (tree_ctz): New prototype.
9646 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9647 first argument from tree to const_tree.
9648 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9649 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9650 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9651 static.
9652 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9653 * tree-vect-loop.c (vect_analyze_loop_operations,
9654 vect_transform_loop): Don't force scalar loop for bound just because
9655 number of iterations is unknown, only do it if it is not known to be
9656 a multiple of vectorization_factor.
9657 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9658
9659 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9660 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9661 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9662 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9663 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9664 a default def isn't partially constant.
9665 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9666 is known to be partially zero.
9667 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9668 to see if a default def isn't partially constant.
9669 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9670 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9671 the range.
9672 (set_nonzero_bits, get_nonzero_bits): New functions.
9673
9674 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9675 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9676 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9677 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9678 uses but in the condition and ASSERT_EXPR and the other successor of
9679 the predecessor bb is __builtin_unreachable (), set_range_info of the
9680 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9681
9682 2013-10-31 Martin Jambor <mjambor@suse.cz>
9683
9684 PR rtl-optimization/58934
9685 Revert:
9686 2013-10-30 Martin Jambor <mjambor@suse.cz>
9687 PR rtl-optimization/10474
9688 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9689 nor df analysis.
9690 (interesting_dest_for_shprep): New function.
9691 (split_live_ranges_for_shrink_wrap): Likewise.
9692 (ira): Calculate dominance info and df analysis. Call
9693 split_live_ranges_for_shrink_wrap.
9694
9695 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9696 Yury Gribov <y.gribov@samsung.com>
9697
9698 PR sanitizer/58543
9699 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9700 shadow pointer to avoid clobbering the main one.
9701
9702 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9703
9704 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9705
9706 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9707
9708 PR bootstrap/58933
9709 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9710 it for calling update_costs_from_allocno.
9711 (assign_hard_reg): Call restore_costs_from_copies only for
9712 !retry_p. Pass new argument to update_costs_from_copies.
9713 (color_pass): Pass new argument to update_costs_from_copies.
9714 (ira_mark_allocation_change): Ditto.
9715
9716 2013-10-30 Sharad Singhai <singhai@google.com>
9717
9718 PR middle-end/58134
9719 * opts.c (common_handle_option): Remove deprecated option
9720 -ftree-vectorizer-verbose.
9721 * doc/invoke.texi (Debugging Options): Ditto.
9722 * opts-global.c (handle_common_deferred_options): Ditto.
9723 (dump_remap_tree_vectorizer_verbose): Delete.
9724 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9725
9726 2013-10-30 DJ Delorie <dj@redhat.com>
9727
9728 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9729 that take no arguments.
9730
9731 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9732
9733 PR other/58545
9734 * reload1.c (update_eliminables_and_spill): New function, broken
9735 out of reload.
9736 (reload): Use it. Check for frame size change after frame size
9737 alignment, and call update_eliminables_and_spill first if continue-ing.
9738
9739 2013-10-30 Cong Hou <congh@google.com>
9740
9741 PR target/58762
9742 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9743 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9744 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9745
9746 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9747
9748 PR rtl-optimization/58369
9749 * reload1.c (compute_reload_subreg_offset): New function.
9750 (choose_reload_regs): Use it to pass endian-correct
9751 offset to subreg_regno_offset.
9752
9753 2013-10-30 Tobias Burnus <burnus@net-b.de>
9754
9755 PR other/33426
9756 * tree-cfg.c (replace_loop_annotate): Replace warning by
9757 warning_at.
9758
9759 2013-10-30 Jason Merrill <jason@redhat.com>
9760
9761 * configure.ac (loose_warn): Add -Wno-format if
9762 --disable-build-format-warnings.
9763
9764 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9765
9766 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9767 onto multiple lines to make things easier for rename_symtab.py.
9768
9769 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9770 (symtab_semantically_equivalent_p): Likewise.
9771
9772 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9773
9774 PR target/58784
9775 * lra.c (check_rtl): Remove address check before LRA work.
9776
9777 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9778
9779 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9780 POINTER_PLUS_EXPR in the defining statement.
9781
9782 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9783
9784 * regmove.c: Remove.
9785 * tree-pass.h (make_pass_regmove): Remove.
9786 * timevar.def (TV_REGMOVE): Remove.
9787 * passes.def (pass_regmove): Remove.
9788 * opts.c (default_options_table): Remove entry for regmove.
9789 * doc/passes.texi: Remove regmove pass description.
9790 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9791 options.
9792 (-fdump-rtl-regmove): Ditto.
9793 * common.opt (foptimize-register-move, fregmove): Ignore.
9794 * Makefile.in (OBJS): Remove regmove.o.
9795 * regmove.c: Remove.
9796 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9797 and type.
9798 (struct ira_allocno) New member allocno_prefs.
9799 (ALLOCNO_PREFS): New macro.
9800 (ira_prefs, ira_prefs_num): New external vars.
9801 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9802 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9803 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9804 Ditto.
9805 (ira_add_allocno_copy_to_list): Remove prototype.
9806 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9807 (ira_pref_iterator): New type.
9808 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9809 (FOR_EACH_PREF): New macro.
9810 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9811 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9812 code.
9813 (ira_setup_alts): New function.
9814 (decrease_live_ranges_number): New function.
9815 (ira): Call the above function.
9816 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9817 (ira_create_allocno): Initialize allocno prefs.
9818 (pref_pool, pref_vec): New static vars.
9819 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9820 functions.
9821 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9822 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9823 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9824 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9825 (ira_add_allocno_copy_to_list): Make static. Rename to
9826 add_allocno_copy_to_list.
9827 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9828 swap_allocno_copy_ends_if_necessary.
9829 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9830 ira_remove_allocno_prefs.
9831 (ira_flattening): Ditto.
9832 (ira_build): Call initiate_prefs, print_prefs.
9833 (ira_destroy): Call finish_prefs.
9834 * ira-color.c (struct update_cost_record): New.
9835 (struct allocno_color_data): Add new member update_cost_records.
9836 (update_cost_record_pool): New static var.
9837 (init_update_cost_records, get_update_cost_record): New functions.
9838 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9839 (struct update_cost_queue_elem): Add member from.
9840 (initiate_cost_update): Call init_update_cost_records.
9841 (finish_cost_update): Call finish_update_cost_records.
9842 (queue_update_cost, get_next_update_cost): Add new param from.
9843 (Update_allocno_cost, update_costs_from_allocno): New functions.
9844 (update_costs_from_prefs): Ditto.
9845 (update_copy_costs): Rename to update_costs_from_copies.
9846 (restore_costs_from_copies): New function.
9847 (update_conflict_hard_regno_costs): Don't go back.
9848 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9849 more debug info.
9850 (pop_allocnos): Add priniting more debug info.
9851 (color_allocnos): Remove prefs for conflicting hard regs.
9852 Call update_costs_from_prefs.
9853 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9854 (get_dup_num): Rename, modify, and move to ira.c
9855 (process_regs_for_copy): Add prefs.
9856 (add_insn_allocno_copies): Put src as first arg of
9857 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9858 * ira-costs.c (record_reg_classes): Modify and move code into
9859 record_operands_costs.
9860 (find_costs_and_classes): Create prefs for the hard reg of small
9861 reg class.
9862 (process_bb_node_for_hard_reg_moves): Add prefs.
9863
9864 2013-10-30 Richard Biener <rguenther@suse.de>
9865
9866 PR middle-end/57100
9867 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9868 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9869 as worker for ...
9870 (pre_and_rev_post_order_compute): ... which now wraps it.
9871 * graph.c (draw_cfg_nodes_no_loops): Use
9872 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9873 on cfun.
9874
9875 2013-10-30 Christian Bruel <christian.bruel@st.com>
9876
9877 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9878 (sh_expand_cmpstr): Handle known align and schedule improvements.
9879 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9880 * config/sh/sh.md (cmpstrnsi): New pattern.
9881
9882 2013-10-30 Martin Jambor <mjambor@suse.cz>
9883
9884 PR rtl-optimization/10474
9885 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9886 nor df analysis.
9887 (interesting_dest_for_shprep): New function.
9888 (split_live_ranges_for_shrink_wrap): Likewise.
9889 (ira): Calculate dominance info and df analysis. Call
9890 split_live_ranges_for_shrink_wrap.
9891
9892 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9893
9894 PR target/58854
9895 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9896
9897 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9898
9899 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9900 * tree.h (POINTER_BOUNDS_P): New.
9901 (BOUNDED_TYPE_P): New.
9902 (BOUNDED_P): New.
9903 (pointer_bounds_type_node): New.
9904 * tree.c (build_common_tree_nodes): Initialize
9905 pointer_bounds_type_node.
9906 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9907 (gimple_call_num_nobnd_args): New.
9908 (gimple_call_nobnd_arg): New.
9909 (gimple_return_retbnd): New.
9910 (gimple_return_set_retbnd): New
9911 * gimple.c (gimple_build_return): Increase number of ops
9912 for return statement.
9913 (gimple_call_get_nobnd_arg_index): New.
9914 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9915
9916 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9917
9918 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9919 with "chkp ctor" and "bnd_legacy" attributes.
9920 * gimplify.c (gimplify_init_constructor): Avoid infinite
9921 loop during gimplification of bounds initializer.
9922
9923 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9924
9925 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9926 (handle_bnd_legacy): New.
9927 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9928 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9929 attributes.
9930
9931 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9932
9933 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9934 (BT_FN_PTR_CONST_PTR): New.
9935 (BT_FN_CONST_PTR_CONST_PTR): New.
9936 (BT_FN_PTR_CONST_PTR_SIZE): New.
9937 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9938 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9939 (BT_FN_VOID_CONST_PTR_SIZE): New.
9940 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9941 * chkp-builtins.def: New.
9942 * builtins.def: include chkp-builtins.def.
9943 (DEF_CHKP_BUILTIN): New.
9944 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9945 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9946 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9947 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9948 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9949 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9950 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9951 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9952 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9953 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9954 * common.opt (fcheck-pointer-bounds): New.
9955 * toplev.c (process_options): Check Pointer Bounds Checker is
9956 supported.
9957 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9958
9959 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9960
9961 * target.def (builtin_chkp_function): New.
9962 (chkp_bound_type): New.
9963 (chkp_bound_mode): New.
9964 (fn_abi_va_list_bounds_size): New.
9965 (load_bounds_for_arg): New.
9966 (store_bounds_for_arg): New.
9967 * targhooks.h (default_load_bounds_for_arg): New.
9968 (default_store_bounds_for_arg): New.
9969 (default_fn_abi_va_list_bounds_size): New.
9970 (default_chkp_bound_type): New.
9971 (default_chkp_bound_mode): New.
9972 (default_builtin_chkp_function): New.
9973 * targhooks.c (default_load_bounds_for_arg): New.
9974 (default_store_bounds_for_arg): New.
9975 (default_fn_abi_va_list_bounds_size): New.
9976 (default_chkp_bound_type): New.
9977 (default_chkp_bound_mode); New.
9978 (default_builtin_chkp_function): New.
9979 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
9980 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9981 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9982 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9983 (TARGET_CHKP_BOUND_TYPE): New.
9984 (TARGET_CHKP_BOUND_MODE): New.
9985 * doc/tm.texi: Regenerated.
9986 * langhooks.h (lang_hooks): Add chkp_supported field.
9987 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
9988 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
9989
9990 2013-10-29 Andrew Pinski <apinski@cavium.com>
9991
9992 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
9993 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
9994 fails, combining the branches anyways.
9995 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
9996 increases the number of combinings.
9997 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
9998
9999 2013-10-29 Mike Stump <mikestump@comcast.net>
10000
10001 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10002 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10003 (make_vector_mode): Increase namebuf to 16.
10004 (emit_insn_modes_h): When processing BImode, don't
10005 also match partial int modes.
10006 (emit_class_narrowest_mode): Likewise.
10007
10008 * config/bfin/bfin-modes.def: Add precision to PDI.
10009 * config/m32c/m32c-modes.def: Add precision to PSI.
10010 * config/msp430/msp430-modes.def: Add precision to PSI.
10011 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10012 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10013
10014 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10015
10016 PR target/54236
10017 * config/sh/sh.md (*addc): Rename existing variations to ...
10018 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10019 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10020 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10021 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10022
10023 2013-10-29 Teresa Johnson <tejohnson@google.com>
10024
10025 PR ipa/58862
10026 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10027 insanities when updating probabilities.
10028
10029 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10030
10031 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10032 prettyprinter for cgraph_node to reflect the conversion of the
10033 symtable types to a C++ class hierarchy: it now *is* a
10034 symtab_node_base, rather than having one (named "symbol").
10035
10036 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10037
10038 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10039 __cilkrts_pop_frame. If matched, then return true for built-in
10040 function name.
10041 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10042 BUILT_IN_CILK_POP_FRAME case.
10043 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10044 (lhs_cilk_detect_spawn): Likewise.
10045 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10046 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10047 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10048 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10049 (LANG_HOOKS_CILKPLUS): Likewise.
10050 * tree.h (CILK_SPAWN_FN): Likewise.
10051 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10052 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10053 (OBJS): Added cilk-common.o.
10054 (BUILTINS_DEF): Added cilk-builtins.def.
10055 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10056 (lhd_cilk_detect_spawn): Likewise.
10057 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10058 (struct lang_hooks): Added new field called "cilkplus."
10059 * cilk-common.c: New file.
10060 * cilk.h: Likewise.
10061 * cilk-builtins.def: Likewise.
10062 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10063 "__cilk" macro and set it to 200.
10064 * function.h (struct function::cilk_frame_decl): New field.
10065 (struct function::is_cilk_function): Likewise.
10066 (struct function::calls_cilk_spawn): Likewise.
10067 * gimplify.c (gimplify_call_expr): Added a check if the function call
10068 being gimplified is a spawn detach point. If so, then add pop_frame
10069 and detach function calls.
10070 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10071 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10072 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10073 function. If so, added a _Cilk_sync and gimplified it.
10074 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10075 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10076 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10077 spawner function.
10078 (can_inline_edge_p): Prevent inling of spawnee function.
10079 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10080 for functions that use Cilk keywords.
10081 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10082 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10083 CILK_SYNC_STMT cases.
10084 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10085 trees.
10086 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10087 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10088 * passes.texi (Cilk Keywords): New section that describes the compiler
10089 code changes for handling Cilk Keywords.
10090
10091 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10092
10093 Patch autogenerated by refactor_symtab.py from
10094 https://github.com/davidmalcolm/gcc-refactoring-scripts
10095 revision 58bb219cc090b2f4516a9297d868c245495ee622
10096
10097 * asan.c (asan_finish_file): Update for conversion of symtab types to
10098 a true class hierarchy.
10099 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10100 * cgraph.c (cgraph_get_body): Likewise.
10101 (cgraph_get_create_real_symbol_node): Likewise.
10102 (verify_cgraph_node): Likewise.
10103 (verify_edge_corresponds_to_fndecl): Likewise.
10104 (verify_edge_count_and_frequency): Likewise.
10105 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10106 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10107 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10108 (cgraph_node_cannot_return): Likewise.
10109 (cgraph_set_pure_flag_1): Likewise.
10110 (cgraph_set_const_flag_1): Likewise.
10111 (cgraph_set_nothrow_flag_1): Likewise.
10112 (cgraph_make_node_local_1): Likewise.
10113 (cgraph_for_node_and_aliases): Likewise.
10114 (cgraph_for_node_thunks_and_aliases): Likewise.
10115 (cgraph_node_can_be_local_p): Likewise.
10116 (cgraph_node_cannot_be_local_p_1): Likewise.
10117 (cgraph_function_body_availability): Likewise.
10118 (dump_cgraph_node): Likewise.
10119 (cgraph_rtl_info): Likewise.
10120 (cgraph_mark_address_taken_node): Likewise.
10121 (cgraph_remove_node): Likewise.
10122 (cgraph_release_function_body): Likewise.
10123 (cgraph_update_edges_for_call_stmt_node): Likewise.
10124 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10125 (cgraph_make_edge_direct): Likewise.
10126 (cgraph_resolve_speculation): Likewise.
10127 (cgraph_speculative_call_info): Likewise.
10128 (cgraph_turn_edge_to_speculative): Likewise.
10129 (cgraph_create_edge_1): Likewise.
10130 (cgraph_set_call_stmt): Likewise.
10131 (cgraph_node_for_asm): Likewise.
10132 (cgraph_add_thunk): Likewise.
10133 (cgraph_same_body_alias): Likewise.
10134 (cgraph_create_function_alias): Likewise.
10135 (cgraph_create_node): Likewise.
10136 (cgraph_create_empty_node): Likewise.
10137 (record_function_versions): Likewise.
10138 (used_from_object_file_p): Likewise.
10139 * cgraph.h (symtab_can_be_discarded): Likewise.
10140 (symtab_real_symbol_p): Likewise.
10141 (cgraph_mark_force_output_node): Likewise.
10142 (cgraph_edge_recursive_p): Likewise.
10143 (symtab_alias_target): Likewise.
10144 (varpool_all_refs_explicit_p): Likewise.
10145 (varpool_can_remove_if_no_refs): Likewise.
10146 (cgraph_only_called_directly_or_aliased_p): Likewise.
10147 (cgraph_next_function_with_gimple_body): Likewise.
10148 (cgraph_first_function_with_gimple_body): Likewise.
10149 (cgraph_function_with_gimple_body_p): Likewise.
10150 (cgraph_next_function): Likewise.
10151 (cgraph_first_function): Likewise.
10152 (cgraph_next_defined_function): Likewise.
10153 (cgraph_first_defined_function): Likewise.
10154 (varpool_next_defined_variable): Likewise.
10155 (varpool_first_defined_variable): Likewise.
10156 (varpool_next_static_initializer): Likewise.
10157 (varpool_first_static_initializer): Likewise.
10158 (varpool_next_variable): Likewise.
10159 (varpool_first_variable): Likewise.
10160 (varpool_node_name): Likewise.
10161 (varpool): Likewise.
10162 (cgraph): Likewise.
10163 (is_a_helper <varpool_node>::test): Likewise.
10164 (is_a_helper <cgraph_node>::test): Likewise.
10165 (varpool_variable_node): Likewise.
10166 (cgraph_function_or_thunk_node): Likewise.
10167 (varpool_alias_target): Likewise.
10168 (cgraph_alias_target): Likewise.
10169 (cgraph_node_name): Likewise.
10170 (varpool_node_asm_name): Likewise.
10171 (cgraph_node_asm_name): Likewise.
10172 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10173 (cgraph_rebuild_references): Likewise.
10174 (rebuild_cgraph_edges): Likewise.
10175 (record_eh_tables): Likewise.
10176 (build_cgraph_edges): Likewise.
10177 (mark_store): Likewise.
10178 (mark_load): Likewise.
10179 (mark_address): Likewise.
10180 (record_type_list): Likewise.
10181 (record_reference): Likewise.
10182 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10183 (cgraph_materialize_clone): Likewise.
10184 (cgraph_function_versioning): Likewise.
10185 (cgraph_copy_node_for_versioning): Likewise.
10186 (update_call_expr): Likewise.
10187 (cgraph_find_replacement_node): Likewise.
10188 (cgraph_create_virtual_clone): Likewise.
10189 (cgraph_clone_node): Likewise.
10190 * cgraphunit.c (compile): Likewise.
10191 (output_weakrefs): Likewise.
10192 (output_in_order): Likewise.
10193 (expand_function): Likewise.
10194 (assemble_thunks_and_aliases): Likewise.
10195 (expand_thunk): Likewise.
10196 (mark_functions_to_output): Likewise.
10197 (handle_alias_pairs): Likewise.
10198 (analyze_functions): Likewise.
10199 (walk_polymorphic_call_targets): Likewise.
10200 (varpool_finalize_decl): Likewise.
10201 (process_function_and_variable_attributes): Likewise.
10202 (cgraph_process_same_body_aliases): Likewise.
10203 (analyze_function): Likewise.
10204 (cgraph_add_new_function): Likewise.
10205 (cgraph_finalize_function): Likewise.
10206 (referred_to_p): Likewise.
10207 (cgraph_reset_node): Likewise.
10208 (cgraph_process_new_functions): Likewise.
10209 (enqueue_node): Likewise.
10210 (decide_is_symbol_needed): Likewise.
10211 * coverage.c (coverage_compute_profile_id): Likewise.
10212 * dbxout.c (dbxout_expand_expr): Likewise.
10213 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10214 (reference_to_unused): Likewise.
10215 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10216 * gimplify.c (unvisit_body): Likewise.
10217 (unshare_body): Likewise.
10218 * ipa-cp.c (ipcp_generate_summary): Likewise.
10219 (ipcp_decision_stage): Likewise.
10220 (identify_dead_nodes): Likewise.
10221 (decide_whether_version_node): Likewise.
10222 (decide_about_value): Likewise.
10223 (perhaps_add_new_callers): Likewise.
10224 (create_specialized_node): Likewise.
10225 (update_profiling_info): Likewise.
10226 (ipcp_propagate_stage): Likewise.
10227 (estimate_local_effects): Likewise.
10228 (good_cloning_opportunity_p): Likewise.
10229 (devirtualization_time_bonus): Likewise.
10230 (propagate_constants_accross_call): Likewise.
10231 (initialize_node_lattices): Likewise.
10232 (ipcp_cloning_candidate_p): Likewise.
10233 (determine_versionability): Likewise.
10234 (print_all_lattices): Likewise.
10235 (print_lattice): Likewise.
10236 (ipcp_discover_new_direct_edges): Likewise.
10237 * ipa-devirt.c (ipa_devirt): Likewise.
10238 (likely_target_p): Likewise.
10239 (update_type_inheritance_graph): Likewise.
10240 (possible_polymorphic_call_target_p): Likewise.
10241 (dump_possible_polymorphic_call_targets): Likewise.
10242 (devirt_variable_node_removal_hook): Likewise.
10243 (record_binfo): Likewise.
10244 (maybe_record_node): Likewise.
10245 (build_type_inheritance_graph): Likewise.
10246 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10247 (inline_generate_summary): Likewise.
10248 (inline_analyze_function): Likewise.
10249 (do_estimate_growth): Likewise.
10250 (simple_edge_hints): Likewise.
10251 (estimate_node_size_and_time): Likewise.
10252 (estimate_edge_devirt_benefit): Likewise.
10253 (compute_inline_parameters): Likewise.
10254 (estimate_function_body_sizes): Likewise.
10255 (compute_bb_predicates): Likewise.
10256 (initialize_inline_failed): Likewise.
10257 (dump_inline_summary): Likewise.
10258 (dump_inline_edge_summary): Likewise.
10259 * ipa-inline-transform.c (inline_transform): Likewise.
10260 (preserve_function_body_p): Likewise.
10261 (save_inline_function_body): Likewise.
10262 (inline_call): Likewise.
10263 (clone_inlined_nodes): Likewise.
10264 (can_remove_node_now_p): Likewise.
10265 (can_remove_node_now_p_1): Likewise.
10266 * ipa-inline.c (early_inliner): Likewise.
10267 (early_inline_small_functions): Likewise.
10268 (inline_always_inline_functions): Likewise.
10269 (ipa_inline): Likewise.
10270 (flatten_function): Likewise.
10271 (inline_small_functions): Likewise.
10272 (speculation_useful_p): Likewise.
10273 (recursive_inlining): Likewise.
10274 (update_caller_keys): Likewise.
10275 (reset_edge_caches): Likewise.
10276 (update_edge_key): Likewise.
10277 (edge_badness): Likewise.
10278 (relative_time_benefit): Likewise.
10279 (want_inline_self_recursive_call_p): Likewise.
10280 (want_inline_small_function_p): Likewise.
10281 (want_early_inline_function_p): Likewise.
10282 (num_calls): Likewise.
10283 (can_early_inline_edge_p): Likewise.
10284 (can_inline_edge_p): Likewise.
10285 (report_inline_failed_reason): Likewise.
10286 * ipa-profile.c (ipa_profile): Likewise.
10287 (ipa_propagate_frequency): Likewise.
10288 (ipa_propagate_frequency_1): Likewise.
10289 (ipa_profile_generate_summary): Likewise.
10290 * ipa-prop.c (ipcp_transform_function): Likewise.
10291 (read_replacements_section): Likewise.
10292 (ipa_prop_read_section): Likewise.
10293 (ipa_modify_call_arguments): Likewise.
10294 (ipa_print_node_params): Likewise.
10295 (propagate_controlled_uses): Likewise.
10296 (update_indirect_edges_after_inlining): Likewise.
10297 (remove_described_reference): Likewise.
10298 (ipa_make_edge_direct_to_target): Likewise.
10299 (ipa_analyze_node): Likewise.
10300 (ipa_analyze_params_uses): Likewise.
10301 (ipa_compute_jump_functions): Likewise.
10302 (ipa_get_callee_param_type): Likewise.
10303 (ipa_print_node_jump_functions): Likewise.
10304 (ipa_initialize_node_params): Likewise.
10305 (ipa_populate_param_decls): Likewise.
10306 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10307 (write_agg_replacement_chain): Likewise.
10308 (ipa_write_node_info): Likewise.
10309 (ipa_edge_duplication_hook): Likewise.
10310 (try_decrement_rdesc_refcount): Likewise.
10311 * ipa-pure-const.c (propagate_nothrow): Likewise.
10312 (propagate_pure_const): Likewise.
10313 (pure_const_read_summary): Likewise.
10314 (pure_const_write_summary): Likewise.
10315 (analyze_function): Likewise.
10316 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10317 (ipa_ref_referring_ref_list): Likewise.
10318 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10319 (ipa_remove_stmt_references): Likewise.
10320 (ipa_find_reference): Likewise.
10321 (ipa_dump_referring): Likewise.
10322 (ipa_dump_references): Likewise.
10323 (ipa_record_reference): Likewise.
10324 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10325 (ipa_reference_write_optimization_summary): Likewise.
10326 (write_node_summary_p): Likewise.
10327 (propagate): Likewise.
10328 (read_write_all_from_decl): Likewise.
10329 (generate_summary): Likewise.
10330 (analyze_function): Likewise.
10331 (propagate_bits): Likewise.
10332 (ipa_reference_get_not_written_global): Likewise.
10333 (ipa_reference_get_not_read_global): Likewise.
10334 * ipa-split.c (execute_split_functions): Likewise.
10335 (split_function): Likewise.
10336 * ipa-utils.c (ipa_merge_profiles): Likewise.
10337 (dump_cgraph_node_set): Likewise.
10338 (ipa_reverse_postorder): Likewise.
10339 (ipa_edge_within_scc): Likewise.
10340 (ipa_get_nodes_in_cycle): Likewise.
10341 (ipa_free_postorder_info): Likewise.
10342 (ipa_reduced_postorder): Likewise.
10343 (searchc): Likewise.
10344 (recursive_call_p): Likewise.
10345 * ipa.c (ipa_cdtor_merge): Likewise.
10346 (record_cdtor_fn): Likewise.
10347 (function_and_variable_visibility): Likewise.
10348 (varpool_externally_visible_p): Likewise.
10349 (cgraph_externally_visible_p): Likewise.
10350 (comdat_can_be_unshared_p): Likewise.
10351 (comdat_can_be_unshared_p_1): Likewise.
10352 (address_taken_from_non_vtable_p): Likewise.
10353 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10354 (symtab_remove_unreachable_nodes): Likewise.
10355 (walk_polymorphic_call_targets): Likewise.
10356 (process_references): Likewise.
10357 (enqueue_node): Likewise.
10358 (has_addr_references_p): Likewise.
10359 (cgraph_non_local_node_p_1): Likewise.
10360 * is-a.h (varpool_analyze_node): Likewise.
10361 * lto-cgraph.c (input_symtab): Likewise.
10362 (merge_profile_summaries): Likewise.
10363 (input_cgraph_1): Likewise.
10364 (input_edge): Likewise.
10365 (input_varpool_node): Likewise.
10366 (input_node): Likewise.
10367 (input_overwrite_node): Likewise.
10368 (compute_ltrans_boundary): Likewise.
10369 (output_refs): Likewise.
10370 (lto_output_varpool_node): Likewise.
10371 (lto_output_node): Likewise.
10372 (reachable_from_other_partition_p): Likewise.
10373 (referenced_from_other_partition_p): Likewise.
10374 (lto_output_edge): Likewise.
10375 (output_node_opt_summary): Likewise.
10376 (add_node_to): Likewise.
10377 (reachable_from_this_partition_p): Likewise.
10378 (lto_set_symtab_encoder_in_partition): Likewise.
10379 (lto_symtab_encoder_in_partition_p): Likewise.
10380 (lto_set_symtab_encoder_encode_initializer): Likewise.
10381 (lto_symtab_encoder_encode_initializer_p): Likewise.
10382 (lto_set_symtab_encoder_encode_body): Likewise.
10383 (lto_symtab_encoder_encode_body_p): Likewise.
10384 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10385 Likewise.
10386 * lto-streamer-in.c (lto_read_body): Likewise.
10387 (fixup_call_stmt_edges): Likewise.
10388 (fixup_call_stmt_edges_1): Likewise.
10389 * lto-streamer-out.c (produce_symtab): Likewise.
10390 (output_symbol_p): Likewise.
10391 (write_symbol): Likewise.
10392 (lto_output): Likewise.
10393 (copy_function): Likewise.
10394 (output_function): Likewise.
10395 * passes.c (function_called_by_processed_nodes_p): Likewise.
10396 (ipa_write_optimization_summaries): Likewise.
10397 (ipa_write_summaries): Likewise.
10398 (do_per_function_toporder): Likewise.
10399 (do_per_function): Likewise.
10400 (dump_passes): Likewise.
10401 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10402 (symtab_nonoverwritable_alias): Likewise.
10403 (symtab_nonoverwritable_alias_1): Likewise.
10404 (symtab_for_node_and_aliases): Likewise.
10405 (symtab_resolve_alias): Likewise.
10406 (fixup_same_cpp_alias_visibility): Likewise.
10407 (symtab_alias_ultimate_target): Likewise.
10408 (symtab_used_from_object_file_p): Likewise.
10409 (verify_symtab_base): Likewise.
10410 (dump_symtab_base): Likewise.
10411 (symtab_node_name): Likewise.
10412 (symtab_node_asm_name): Likewise.
10413 (symtab_dissolve_same_comdat_group_list): Likewise.
10414 (symtab_add_to_same_comdat_group): Likewise.
10415 (symtab_unregister_node): Likewise.
10416 (symtab_insert_node_to_hashtable): Likewise.
10417 (symtab_register_node): Likewise.
10418 (unlink_from_assembler_name_hash): Likewise.
10419 (insert_to_assembler_name_hash): Likewise.
10420 (eq_assembler_name): Likewise.
10421 (hash_node_by_assembler_name): Likewise.
10422 (eq_node): Likewise.
10423 (hash_node): Likewise.
10424 * toplev.c (wrapup_global_declaration_2): Likewise.
10425 * trans-mem.c (ipa_tm_execute): Likewise.
10426 (ipa_tm_transform_clone): Likewise.
10427 (ipa_tm_transform_transaction): Likewise.
10428 (ipa_tm_transform_calls_redirect): Likewise.
10429 (ipa_tm_insert_gettmclone_call): Likewise.
10430 (ipa_tm_insert_irr_call): Likewise.
10431 (ipa_tm_create_version): Likewise.
10432 (ipa_tm_create_version_alias): Likewise.
10433 (ipa_tm_mark_forced_by_abi_node): Likewise.
10434 (ipa_tm_mark_force_output_node): Likewise.
10435 (ipa_tm_diagnose_tm_safe): Likewise.
10436 (ipa_tm_mayenterirr_function): Likewise.
10437 (ipa_tm_scan_irr_function): Likewise.
10438 (ipa_tm_note_irrevocable): Likewise.
10439 (ipa_tm_scan_calls_clone): Likewise.
10440 (get_cg_data): Likewise.
10441 * tree-eh.c (tree_could_trap_p): Likewise.
10442 * tree-emutls.c (ipa_lower_emutls): Likewise.
10443 (create_emultls_var): Likewise.
10444 (lower_emutls_function_body): Likewise.
10445 (gen_emutls_addr): Likewise.
10446 (emutls_decl): Likewise.
10447 (new_emutls_decl): Likewise.
10448 * tree-inline.c (tree_function_versioning): Likewise.
10449 (optimize_inline_calls): Likewise.
10450 (expand_call_inline): Likewise.
10451 (estimate_num_insns): Likewise.
10452 (copy_bb): Likewise.
10453 (delete_unreachable_blocks_update_callgraph): Likewise.
10454 * tree-nested.c (gimplify_all_functions): Likewise.
10455 (create_nesting_tree): Likewise.
10456 (check_for_nested_with_variably_modified): Likewise.
10457 * tree-pretty-print.c (dump_function_header): Likewise.
10458 * tree-profile.c (tree_profiling): Likewise.
10459 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10460 (modify_function): Likewise.
10461 (convert_callers): Likewise.
10462 (convert_callers_for_node): Likewise.
10463 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10464 (associate_varinfo_to_alias): Likewise.
10465 (create_variable_info_for): Likewise.
10466 (get_constraint_for_ssa_var): Likewise.
10467 * tree-vectorizer.c (increase_alignment): Likewise.
10468 * tree.c (find_decls_types_in_var): Likewise.
10469 (find_decls_types_in_node): Likewise.
10470 (free_lang_data_in_decl): Likewise.
10471 * value-prof.c (gimple_ic_transform): Likewise.
10472 (gimple_ic): Likewise.
10473 (check_ic_target): Likewise.
10474 (init_node_map): Likewise.
10475 * varasm.c (decl_binds_to_current_def_p): Likewise.
10476 (default_binds_local_p_1): Likewise.
10477 (dump_tm_clone_pairs): Likewise.
10478 (assemble_alias): Likewise.
10479 (find_decl): Likewise.
10480 (mark_decl_referenced): Likewise.
10481 * varpool.c (varpool_for_node_and_aliases): Likewise.
10482 (varpool_extra_name_alias): Likewise.
10483 (varpool_create_variable_alias): Likewise.
10484 (add_new_static_var): Likewise.
10485 (varpool_finalize_named_section_flags): Likewise.
10486 (varpool_remove_unreferenced_decls): Likewise.
10487 (enqueue_node): Likewise.
10488 (varpool_assemble_decl): Likewise.
10489 (assemble_aliases): Likewise.
10490 (varpool_analyze_node): Likewise.
10491 (cgraph_variable_initializer_availability): Likewise.
10492 (varpool_add_new_variable): Likewise.
10493 (ctor_for_folding): Likewise.
10494 (dump_varpool_node): Likewise.
10495 (varpool_remove_initializer): Likewise.
10496 (varpool_remove_node): Likewise.
10497 (varpool_node_for_decl): Likewise.
10498 (varpool_create_empty_node): Likewise.
10499 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10500 (ix86_get_function_versions_dispatcher): Likewise.
10501
10502 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10503
10504 * cgraph.h (symtab_node_base): Convert to a class;
10505 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10506 chain_next/prev from symtab_node_def.
10507 (cgraph_node): Inherit from symtab_node; add GTY option
10508 tag ("SYMTAB_FUNCTION").
10509 (varpool_node): Inherit from symtab_node; add GTY option
10510 tag ("SYMTAB_VARIABLE").
10511 (symtab_node_def): Remove.
10512 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10513 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10514 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10515 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10516
10517 * ipa-ref.h (symtab_node_def): Drop.
10518 (symtab_node): Change underlying type from symtab_node_def to
10519 symtab_node_base.
10520 (const_symtab_node): Likwise.
10521
10522 * is-a.h: Update examples in comment.
10523
10524 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10525 (assembler_name_hash): Likewise.
10526
10527 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10528
10529 * doc/tree-ssa.texi (gimple_phi_result): Document.
10530 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10531 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10532 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10533 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10534
10535 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10536
10537 * expr.h: Revert change and include tree-core.h.
10538 * rtl.h: Revert change and don't include tree-core.h.
10539
10540 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10541
10542 * config/darwin.c: Include gimple.h.
10543 * config/i386/winnt.c: Likewise.
10544
10545 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10546
10547 PR tree-optimization/19831
10548 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10549
10550 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10551
10552 * tree-outof-ssa.h: Remove include files.
10553 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10554 * expr.c: Likewise.
10555 * tree-ssa-coalesce.c: Likewise.
10556 * cfgexpand.c: Likewise.
10557 * tree-ssa-ter.c: Likewise.
10558 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10559 * lto-streamer.h: Likewise.
10560 * cgraphbuild.c: Add gimple.h to include list.
10561 * data-streamer-in.c: Likewise.
10562 * ipa-cp.c: Likewise.
10563 * tree-streamer.c: Likewise.
10564 * lto-compress.c: Likewise.
10565 * ipa-reference.c: Likewise.
10566 * data-streamer-out.c: Likewise.
10567 * lto-cgraph.c: Likewise.
10568 * cgraphclones.c: Likewise.
10569 * ipa-utils.c: Likewise.
10570 * data-streamer.c: Likewise.
10571 * ipa-split.c: Likewise.
10572 * lto-section-in.c: Likewise.
10573 * tree-streamer-out.c: Likewise.
10574 * ipa-prop.c: Likewise.
10575 * tree-streamer-in.c: Likewise.
10576 * symtab.c: Likewise.
10577 * opts-global.c: Likewise.
10578 * lto-opts.c: Likewise.
10579 * lto-section-out.c: Likewise.
10580 * lto-streamer.c: Likewise.
10581 * rtl.h: Add tree-core.h to include list.
10582 * expr.h: Remove tree-core.h from include list.
10583 * gimple.h: Likewise.
10584 * ipa-utils.h: Likewise.
10585 * streamer-hooks.h: Likewise.
10586 * streamer-hooks.c: Include input.h.
10587
10588 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10589
10590 * config/arm/arm.c (cortexa7_extra_costs): New table.
10591 (arm_cortex_a7_tune): New.
10592 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10593
10594 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10595
10596 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10597
10598 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10599
10600 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10601 to use autogenerated markers for a class-hierarchy, every class
10602 must have a GTY marker.
10603 * gengtype.h (struct type): Add linked list of subclasses to
10604 the "s" member of the union.
10605 (add_subclass): New decl.
10606 * gengtype-state.c (read_state_struct_type): Set up subclass
10607 linked list.
10608 * gengtype.c (get_ultimate_base_class): New.
10609 (add_subclass): New.
10610 (new_structure): Set up subclass linked list.
10611 (set_gc_used_type): Propagate usage information to subclasses.
10612 (output_mangled_typename): Use get_ultimate_base_class.
10613 (walk_subclasses): Use the subclass linked list, avoiding an
10614 O(N^2) when writing out all types.
10615 (walk_type): Issue an error if the base class is missing a tag,
10616 rather than generating bogus C code. Add a gcc_unreachable
10617 default case, in case people omit tags from concrete subclasses,
10618 or get the values wrong.
10619 (write_func_for_structure): Issue an error for subclasses for
10620 which the base doesn't have a "desc", since otherwise the
10621 autogenerated routines for the base would silently fail to visit
10622 any subclass fields.
10623 (write_root): Use get_ultimate_base_class, tweaking constness of
10624 tp to match that function's signature.
10625
10626 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10627
10628 * doc/gty.texi (GTY Options): Add note about inheritance to
10629 description of desc and tag.
10630 (Inheritance and GTY): New.
10631
10632 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10633
10634 * gengtype-parse.c (opts_have): Drop "static" so that
10635 we can use this from gengtype.c.
10636 * gengtype.c (set_gc_used_type): Mark any base class as used;
10637 update field traversal to visit inherited fields.
10638 (output_mangled_typename): Convert references to classes within
10639 an inheritance hierarchy to reference the ultimate base class,
10640 since only it will have gt_ functions.
10641 (get_string_option): New.
10642 (walk_subclasses): New.
10643 (walk_type): Treat GTY structs that have a "desc" as being the
10644 root of an inheritance hierarchy. Generate a switch on it
10645 within the marking function which walks all subclasses, adding
10646 cases for them via walk_subclasses. For subclasses, visit all
10647 fields of the type (including inherited ones).
10648 (write_func_for_structure): Don't write fns for subclasses, only
10649 for the ultimate base class within an inheritance hierarchy.
10650 Subclasses-marking will be handled by the base class marking functions.
10651 (write_types): Likewise.
10652 (write_local_func_for_structure): Likewise.
10653 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10654 a "tag" option (and are thus concrete subclasses).
10655 (write_root): Use the marker function for the ultimate base class.
10656 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10657 (opts_have): Add declaration.
10658
10659 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10660
10661 * lra-spills.c (lra_final_code_change): Remove useless move insns
10662 originated from moves of pseudos.
10663
10664 2013-10-28 Jeff Law <law@redhat.com>
10665
10666 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10667
10668 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10669
10670 * df-scan.c (df_collection_rec): Adjust.
10671 (copy_defs): New constant.
10672 (copy_uses): Likewise.
10673 (copy_eq_uses): Likewise.
10674 (copy_mw): Likewise.
10675 (copy_all): Likewise.
10676 (df_insn_rescan): Adjust.
10677 (df_notes_rescan): Likewise.
10678 (df_swap_refs): Likewise.
10679 (df_sort_and_compress_refs): Likewise.
10680 (df_sort_and_compress_mws): Likewise.
10681 (df_install_refs): Likewise.
10682 (df_install_mws): Likewise.
10683 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10684 are coppied.
10685 (df_bb_refs_record): Adjust.
10686 (df_record_entry_block_defs): Likewise.
10687 (df_record_exit_block_defs): Likewise.
10688 (df_refs_verify): Likewise.
10689 (df_mws_verify): Likewise.
10690 (df_insn_refs_verify): Likewise.
10691 (df_bb_verify): Likewise.
10692 * ipa-pure-const.c (finish_state): Remove.
10693 (propagate): Adjust.
10694 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10695 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10696 var-tracking.c: Adjust.
10697 * vec.c (stack_vecs): Remove.
10698 (register_stack_vec): Likewise.
10699 (stack_vec_register_index): Likewise.
10700 (unregister_stack_vec): Likewise.
10701 * vec.h (struct va_stack): Remove.
10702 (struct vec<T, A, vl_ptr>): Specialize as
10703 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10704 allocation strategy compatable with the vl_ptr layout.
10705 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10706 specialization anyway.
10707 (class stack_vec): New class.
10708 (vec_stack_alloc): Remove.
10709 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10710
10711 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10712 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10713 Sergey Lega <sergey.s.lega@intel.com>
10714 Anna Tikhonova <anna.tikhonova@intel.com>
10715 Ilya Tocar <ilya.tocar@intel.com>
10716 Andrey Turetskiy <andrey.turetskiy@intel.com>
10717 Ilya Verbin <ilya.verbin@intel.com>
10718 Kirill Yukhin <kirill.yukhin@intel.com>
10719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10720
10721 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10722 (*prefetch_avx512pf_<mode>): New.
10723 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10724 (avx512f_maskcmp<mode>3): Ditto.
10725 (vashrv16si3): Ditto.
10726
10727 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10729 Sergey Lega <sergey.s.lega@intel.com>
10730 Anna Tikhonova <anna.tikhonova@intel.com>
10731 Ilya Tocar <ilya.tocar@intel.com>
10732 Andrey Turetskiy <andrey.turetskiy@intel.com>
10733 Ilya Verbin <ilya.verbin@intel.com>
10734 Kirill Yukhin <kirill.yukhin@intel.com>
10735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10736
10737 * config/i386/i386.md (any_truncate): New.
10738 (trunsuffix): Ditto.
10739 * config/i386/predicates.md (const_8_to_9_operand): New.
10740 (const_10_to_11_operand): Ditto.
10741 (const_12_to_13_operand): Ditto.
10742 (const_14_to_15_operand): Ditto.
10743 (const_16_to_19_operand): Ditto.
10744 (const_20_to_23_operand): Ditto.
10745 (const_24_to_27_operand): Ditto.
10746 (const_28_to_31_operand): Ditto.
10747 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10748 (cvtusi2<ssescalarmodesuffix>32): New.
10749 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10750 (ufloatv16siv16sf2): Ditto.
10751 (avx512f_fix_notruncv16sfv16si): Ditto.
10752 (avx512f_ufix_notruncv16sfv16si): Ditto.
10753 (avx512f_vcvtss2usi): Ditto.
10754 (avx512f_vcvtss2usiq): Ditto.
10755 (avx512f_vcvttss2usi): Ditto.
10756 (avx512f_vcvttss2usiq): Ditto.
10757 (avx512f_vcvtsd2usi): Ditto.
10758 (avx512f_vcvtsd2usiq): Ditto.
10759 (avx512f_vcvttsd2usi): Ditto.
10760 (avx512f_vcvttsd2usiq): Ditto.
10761 (ufloatv8siv8df): Ditto.
10762 (avx512f_cvtdq2pd512_2): Ditto.
10763 (avx512f_cvtpd2dq512): Ditto.
10764 (avx512f_ufix_notruncv8dfv8si): Ditto.
10765 (avx512f_cvtpd2ps512): Ditto.
10766 (vec_unpacks_lo_v16sf): Ditto.
10767 (vec_unpacks_hi_v16sf): Ditto.
10768 (vec_unpacks_float_hi_v16si): Ditto.
10769 (vec_unpacks_float_lo_v16si): Ditto.
10770 (avx512f_unpckhps512): Ditto.
10771 (avx512f_unpcklps512): Ditto.
10772 (avx512f_movshdup512): Ditto.
10773 (avx512f_movsldup512): Ditto.
10774 (vec_extract_lo_v32hi): Ditto.
10775 (vec_extract_hi_v32hi): Ditto.
10776 (vec_extract_lo_v64qi): Ditto.
10777 (vec_extract_hi_v64qi): Ditto.
10778 (avx512f_unpckhpd512): Ditto.
10779 (avx512f_movddup512): Ditto.
10780 (avx512f_unpcklpd512): Ditto.
10781 (*avx512f_unpcklpd512): Ditto.
10782 (avx512f_shufps512_1): Ditto.
10783 (avx512f_shufpd512_1): Ditto.
10784 (avx512f_interleave_highv8di): Ditto.
10785 (avx512f_interleave_lowv8di): Ditto.
10786 (PMOV_DST_MODE): Ditto.
10787 (pmov_src_mode): Ditto.
10788 (pmov_src_lower): Ditto.
10789 (pmov_suff): Ditto.
10790 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10791 (*avx512f_<code>v8div16qi2): Ditto.
10792 (*avx512f_<code>v8div16qi2_store): Ditto.
10793 (vec_widen_umult_even_v16si): Ditto.
10794 (*vec_widen_umult_even_v16si): Ditto.
10795 (vec_widen_smult_even_v16si): Ditto.
10796 (*vec_widen_smult_even_v16si): Ditto.
10797 (avx512f_interleave_highv16si): Ditto.
10798 (avx512f_interleave_lowv16si): Ditto.
10799 (avx512f_<code>v16qiv16si2): Ditto.
10800 (avx512f_<code>v16hiv16si2): Ditto.
10801 (avx512f_<code>v8qiv8di2): Ditto.
10802 (avx512f_<code>v8hiv8di2): Ditto.
10803 (avx512f_<code>v8siv8di2): Ditto.
10804 (avx512cd_maskb_vec_dupv8di): Ditto.
10805 (avx512cd_maskw_vec_dupv16si): Ditto.
10806 (avx512f_vcvtph2ps512): Ditto.
10807 (avx512f_vcvtps2ph512): Ditto.
10808 (VEC_EXTRACT_MODE): Extened with wider modes.
10809 (VEC_PERM_AVX2): Ditto.
10810 (VEC_PERM_CONST): Ditto.
10811
10812 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10813
10814 * config/arc/arc.c (arc_ccfsm_post_advance):
10815 Add comment about TYPE_RETURN.
10816
10817 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10818
10819 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10820 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10821 (strip_offset): Convert offset to unsigned number.
10822
10823 2013-10-27 Tom de Vries <tom@codesourcery.com>
10824
10825 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10826 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10827
10828 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10829
10830 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10831 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10832 (TARGET_BIG_ENDIAN): New macro.
10833 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10834 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10835 * config/sh/sh.c: Likewise.
10836 * config/sh/sh.h: Likewise.
10837
10838 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10839
10840 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10841 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10842
10843 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10844
10845 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10846 Fix formatting.
10847 (cmpstr_t, cmpstrsi): Fix formatting.
10848
10849 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10850
10851 PR target/52483
10852 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10853 addressing, do not use general_operand for memory operands.
10854
10855 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10856
10857 Revert:
10858 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10859 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10860
10861 2013-10-26 Jeff Law <law@redhat.com>
10862
10863 * predict.c (PRED_MUDFLAP): Remove.
10864 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10865
10866 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10867 (OBJS): Remove tree-nomudflap.o
10868 (GTFILES): Remove tree-mudflap.c
10869 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10870 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10871 (mfwrap_spec, mflib_spec): Likewise.
10872 (cpp_unique_options, cc1_options, static_specs): Likewise.
10873 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10874 * passes.def: Likewise.
10875 * toplev.c (compile_file, process_options): Likewise.
10876 * tree-inline.c (copy_tree_r): Likewise.
10877 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10878 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10879 (build_constant_desc, output_constant_def_contents): Likewise.
10880 (categorize_decl_for_section): Likewise.
10881 * tree-mudflap.c: Removed.
10882 * tree-mudflap.h: Removed.
10883 * tree-nomudflap.c: Removed.
10884 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10885 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10886 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10887 * config/sol2.h (MFLIB_SPEC): Likewise.
10888 * doc/install.texi: Remove mudflap references.
10889 * doc/passes.texi: Similarly.
10890 * doc/sourcebuild.texi: Similarly.
10891 * doc/invoke.texi: Remove mudlfap related options.
10892
10893 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10894
10895 PR rtl-optimization/58759
10896 * lra-constraints.c (lra_constraints): Remove wrong condition to
10897 remove insn setting up an equivalent pseudo.
10898
10899 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10900
10901 * config/rs6000/rs6000-protos.h
10902 (rs6000_secondary_memory_needed_mode): New prototype.
10903 * config/rs6000/rs6000.c: Include ira.h.
10904 (TARGET_LRA_P): Redefine.
10905 (rs6000_legitimate_offset_address_p): Call
10906 legitimate_constant_pool_address_p in strict mode for LRA.
10907 (rs6000_legitimate_address_p): Ditto.
10908 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10909 (rs6000_emit_move): Add LRA version of code to generate load/store
10910 of SDmode values.
10911 (rs6000_secondary_memory_needed_mode): New.
10912 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10913 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10914 constants, memory, and FP registers.
10915 (rs6000_lra_p): New.
10916 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10917 * config/rs6000/rs6000.opt (mlra): New option.
10918 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10919
10920 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10921
10922 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10923 has_single_use () and not do the conversion if has_single_use ()
10924 returns false for the multiplication result.
10925
10926 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10927
10928 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10929 to "NODE", since this works on a "tree", not an
10930 "enum tree_code".
10931 (CONSTANT_CLASS_P): Likewise.
10932 (TYPE_P): Likewise.
10933 (DECL_P): Likewise.
10934 (INDIRECT_REF_P): Likewise.
10935 (REFERENCE_CLASS_P): Likewise.
10936 (COMPARISON_CLASS_P): Likewise.
10937 (UNARY_CLASS_P): Likewise.
10938 (BINARY_CLASS_P): Likewise.
10939 (STATEMENT_CLASS_P): Likewise.
10940 (VL_EXP_CLASS_P): Likewise.
10941 (EXPRESSION_CLASS_P): Likewise.
10942 (IS_TYPE_OR_DECL_P): Likewise.
10943
10944 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10945
10946 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10947 ADDR_EXPR in the defining statement.
10948
10949 2013-10-25 Richard Biener <rguenther@suse.de>
10950
10951 PR tree-optimization/58626
10952 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10953 anti_dd, output_dd and input_dd.
10954 (struct rdg_edge): Remove level and relation members.
10955 (RDGE_LEVEL, RDGE_RELATION): Remove.
10956 (dot_rdg_1): Adjust.
10957 (create_rdg_edge_for_ddr): Remove.
10958 (create_rdg_edges_for_scalar): Adjust.
10959 (create_edge_for_control_dependence): Likewise.
10960 (create_rdg_edges): Split into ...
10961 (create_rdg_flow_edges): ... this
10962 (create_rdg_cd_edges): ... and this.
10963 (free_rdg): Adjust.
10964 (build_rdg): Likewise, do not compute data dependences or
10965 add edges for them.
10966 (pg_add_dependence_edges): New function.
10967 (pgcmp): Likewise.
10968 (distribute_loop): First apply all non-dependence based
10969 partition mergings. Then compute dependences between partitions
10970 and merge and order partitions according to them.
10971
10972 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10973
10974 PR rtl-optimization/58831
10975 * alias.c (init_alias_analysis): At the beginning of each iteration,
10976 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
10977
10978 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10979
10980 * recog.c (search_ofs): New static variable moved from...
10981 (peep2_find_free_register): ...here.
10982 (peephole2_optimize): Initialize it.
10983
10984 2013-10-25 Tobias Burnus <burnus@net-b.de>
10985
10986 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
10987
10988 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
10989
10990 * config/i386/i386.h (TARGET_MPX): New define.
10991 (TARGET_MPX_P): Ditto.
10992
10993 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10994
10995 * config/i386/constraints.md (B): New.
10996 (Ti): New.
10997 (Tb): New.
10998 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
10999 * config/i386/i386-modes.def (BND32): New.
11000 (BND64): New.
11001 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11002 * config/i386/i386.c (isa_opts): Add mmpx.
11003 (regclass_map): Add bound registers.
11004 (dbx_register_map): Likewise.
11005 (dbx64_register_map): Likewise.
11006 (svr4_dbx_register_map): Likewise.
11007 (PTA_MPX): New.
11008 (ix86_option_override_internal): Support MPX ISA.
11009 (ix86_conditional_register_usage): Support bound registers.
11010 (print_reg): Likewise.
11011 (ix86_code_end): Add MPX bnd prefix.
11012 (output_set_got): Likewise.
11013 (ix86_output_call_insn): Likewise.
11014 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11015 (ix86_print_operand_punct_valid_p): Likewise.
11016 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11017 UNSPEC_BNDMK_ADDR.
11018 (ix86_class_likely_spilled_p): Add bound regs support.
11019 (ix86_hard_regno_mode_ok): Likewise.
11020 (x86_order_regs_for_local_alloc): Likewise.
11021 (ix86_bnd_prefixed_insn_p): New.
11022 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11023 (FIXED_REGISTERS): Add bound registers.
11024 (CALL_USED_REGISTERS): Likewise.
11025 (REG_ALLOC_ORDER): Likewise.
11026 (HARD_REGNO_NREGS): Likewise.
11027 (TARGET_MPX): New.
11028 (VALID_BND_REG_MODE): New.
11029 (FIRST_BND_REG): New.
11030 (LAST_BND_REG): New.
11031 (reg_class): Add BND_REGS.
11032 (REG_CLASS_NAMES): Likewise.
11033 (REG_CLASS_CONTENTS): Likewise.
11034 (BND_REGNO_P): New.
11035 (ANY_BND_REG_P): New.
11036 (BNDmode): New.
11037 (HI_REGISTER_NAMES): Add bound registers.
11038 * config/i386/i386.md (UNSPEC_BNDMK): New.
11039 (UNSPEC_BNDMK_ADDR): New.
11040 (UNSPEC_BNDSTX): New.
11041 (UNSPEC_BNDLDX): New.
11042 (UNSPEC_BNDLDX_ADDR): New.
11043 (UNSPEC_BNDCL): New.
11044 (UNSPEC_BNDCU): New.
11045 (UNSPEC_BNDCN): New.
11046 (UNSPEC_MPX_FENCE): New.
11047 (BND0_REG): New.
11048 (BND1_REG): New.
11049 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11050 (length_immediate): Likewise.
11051 (prefix_0f): Likewise.
11052 (memory): Likewise.
11053 (prefix_rep): Check for bnd prefix.
11054 (length_nobnd): New.
11055 (length): Use length_nobnd if specified.
11056 (BND): New.
11057 (bnd_ptr): New.
11058 (BNDCHECK): New.
11059 (bndcheck): New.
11060 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11061 (*jcc_2): Likewise.
11062 (jump): Likewise.
11063 (simple_return_internal): Likewise.
11064 (simple_return_pop_internal): Likewise.
11065 (*indirect_jump): Add MPX bnd prefix.
11066 (*tablejump_1): Likewise.
11067 (simple_return_internal_long): Likewise.
11068 (simple_return_indirect_internal): Likewise.
11069 (<mode>_mk): New.
11070 (*<mode>_mk): New.
11071 (mov<mode>): New.
11072 (*mov<mode>_internal_mpx): New.
11073 (<mode>_<bndcheck>): New.
11074 (*<mode>_<bndcheck>): New.
11075 (<mode>_ldx): New.
11076 (*<mode>_ldx): New.
11077 (<mode>_stx): New.
11078 (*<mode>_stx): New.
11079 * config/i386/predicates.md (lea_address_operand): Rename to...
11080 (address_no_seg_operand): ... this.
11081 (address_mpx_no_base_operand): New.
11082 (address_mpx_no_index_operand): New.
11083 (bnd_mem_operator): New.
11084 * config/i386/i386.opt (mmpx): New.
11085 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11086 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11087
11088 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11089
11090 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11091 * tree.def (POINTER_BOUNDS_TYPE): New.
11092 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11093 (POINTER_BOUNDS_MODE): New.
11094 (make_pointer_bounds_mode): New.
11095 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11096 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11097 (layout_type): Support POINTER_BOUNDS_TYPE.
11098 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11099 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11100 (type_contains_placeholder_1): Likewise.
11101 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11102 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11103 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11104
11105 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11106
11107 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11108 mode of address computation when calling memory_address_addr_space.
11109
11110 2013-08-24 Richard Henderson <rth@twiddle.net>
11111
11112 PR rtl/58542
11113 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11114 instead of create_convert_operand_to.
11115 (maybe_emit_sync_lock_test_and_set): Likewise.
11116 (expand_atomic_compare_and_swap): Likewise.
11117 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11118
11119 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11120
11121 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11122 Change param_is to use the struct and not the pointer to the struct.
11123
11124 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11125
11126 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11127 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11128 Move to targhooks.c.
11129 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11130 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11131 Relocate from gimplify.c.
11132 * targhooks.h: Add 2 prototypes.
11133 * tree.h: Delete 2 prototypes.
11134
11135 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11136
11137 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11138 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11139
11140 2013-10-24 Cong Hou <congh@google.com>
11141
11142 * convert.c (convert_to_real): Guard those unsafe math function
11143 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11144 specially.
11145
11146 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11147
11148 PR ipa/58712
11149 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11150 as argument.
11151 (cgraph_create_edge): Use the new argument.
11152 (cgraph_create_indirect_edge): Likewise.
11153
11154 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11155
11156 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11157 TYPE_UNCOND_BRANCH.
11158 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11159 changes statep->state.
11160
11161 2013-10-24 Tobias Burnus <burnus@net-b.de>
11162
11163 PR other/33426
11164 * tree-cfg.c (replace_loop_annotate): New function.
11165 (execute_build_cfg): Call it.
11166 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11167 * internal-fn.c (expand_ANNOTATE): New function.
11168 * internal-fn.def (ANNOTATE): Define as new internal function.
11169 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11170 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11171 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11172 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11173 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11174
11175 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11176 Marcus Shawcroft <marcus.shawcroft@arm.com>
11177
11178 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11179 Special case reload SP+C into none GENERAL_REGS.
11180
11181 2013-10-24 Michael Matz <matz@suse.de>
11182
11183 * gengtype.c (is_file_equal): Check that files will be same length.
11184
11185 2013-10-25 Christian Bruel <christian.bruel@st.com>
11186
11187 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11188 * config/sh/t-sh (sh-mem.o): New rule.
11189 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11190 (sh_expand_cmpstr): New function.
11191 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11192 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11193 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11194 (rotlhi3_8): Rename.
11195
11196 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11197
11198 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11199 * Makefile.in (CXXDEPMODE): Assign and change users.
11200 (CCDEPMODE): Delete.
11201 * configure: Regenerate.
11202
11203 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11204
11205 * gengtype-parse.c (require_without_advance): New.
11206 (type): For GTY-marked types that are not GTY((user)), parse any
11207 base classes, requiring them to be single-inheritance, and not
11208 be templates. For non-GTY-marked types and GTY((user)),
11209 continue to skip over any C++ inheritance specification.
11210 * gengtype-state.c (state_writer::write_state_struct_type):
11211 Write base class of type (if any).
11212 (read_state_struct_type): Read base class of type (if any).
11213 * gengtype.c (new_structure): Add a "base_class" parameter.
11214 (create_optional_field_): Update for new parameter to new_structure.
11215 (adjust_field_rtx_def): Likewise.
11216 (adjust_field_tree_exp): Likewise.
11217 * gengtype.h (struct type): Add "base_class" field to the s
11218 union field.
11219 (new_structure): Add "base" parameter.
11220
11221 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11222
11223 PR target/57756
11224 * config/i386/i386.c (ix86_option_override_internal):
11225 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11226 (ix86_valid_target_attribute_tree):
11227 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11228 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11229
11230 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11231
11232 * tree-ssa-loop.h: Remove include files.
11233 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11234 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11235 * graphite-clast-to-gimple.c: Likewise.
11236 * graphite-scop-detection.c: Likewise.
11237 * graphite-sese-to-poly.c: Likewise.
11238 * ipa-inline-analysis.c: Likewise.
11239 * ipa-pure-const.c: Likewise.
11240 * loop-init.c: Likewise.
11241 * passes.c: Likewise.
11242 * predict.c: Likewise.
11243 * tree-cfg.c: Likewise.
11244 * tree-cfgcleanup.c: Likewise.
11245 * tree-chrec.c: Likewise.
11246 * tree-data-ref.c: Likewise.
11247 * tree-loop-distribution.c: Likewise.
11248 * tree-parloops.c: Likewise.
11249 * tree-predcom.c: Likewise.
11250 * tree-scalar-evolution.c: Likewise.
11251 * tree-ssa-address.c: Likewise.
11252 * tree-ssa.c: Likewise.
11253 * tree-ssa-dce.c: Likewise.
11254 * tree-ssa-loop.c: Likewise.
11255 * tree-ssa-loop-im.c: Likewise.
11256 * tree-ssa-loop-ivcanon.c: Likewise.
11257 * tree-ssa-loop-ivopts.c: Likewise.
11258 * tree-ssa-loop-manip.c: Likewise.
11259 * tree-ssa-loop-niter.c: Likewise.
11260 * tree-ssa-loop-prefetch.c: Likewise.
11261 * tree-ssa-loop-unswitch.c: Likewise.
11262 * tree-ssa-reassoc.c: Likewise.
11263 * tree-vect-data-refs.c: Likewise.
11264 * tree-vect-loop.c: Likewise.
11265 * tree-vect-loop-manip.c: Likewise.
11266 * tree-vectorizer.c: Likewise.
11267 * tree-vect-stmts.c: Likewise.
11268 * tree-vrp.c: Likewise.
11269
11270 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11271
11272 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11273
11274 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11275
11276 PR tree-optimization/58775
11277 PR tree-optimization/58791
11278 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11279 (insert_stmt_after): Rewritten, don't move the stmt, but really
11280 insert it.
11281 (get_stmt_uid_with_default): Remove.
11282 (build_and_add_sum): Use insert_stmt_after and
11283 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11284 (update_range_test): Set uid on stmts added by
11285 force_gimple_operand_gsi. Don't immediately modify statements
11286 in inter-bb optimization, just update oe->op values.
11287 (optimize_range_tests): Return bool whether any changed have been made.
11288 (update_ops): New function.
11289 (struct inter_bb_range_test_entry): New type.
11290 (maybe_optimize_range_tests): Perform statement changes here.
11291 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11292 ensure_ops_are_available): Remove.
11293 (find_insert_point): Rewritten.
11294 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11295 return LHS of the (new resp. old) stmt. Don't call
11296 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11297 instead of last, move new stmt at the right place.
11298 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11299 (negate_value): Likewise. Set uids.
11300 (break_up_subtract_bb): Initialize uids.
11301 (reassociate_bb): Adjust rewrite_expr_tree caller.
11302 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11303
11304 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11305
11306 PR target/58838
11307 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11308 TARGET_32BIT final condition.
11309 (mulsi3_internal2 and splitter): Same.
11310
11311 2013-10-23 Jeff Law <law@redhat.com>
11312
11313 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11314 through joiner blocks with abnormal outgoing edges.
11315
11316 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11317 Add parameter JOINERS, to allow/disallow threading through joiner
11318 blocks.
11319 (thread_block): New. Call thread_block_1.
11320 (mark_threaded_blocks): Remove code to filter out certain cases
11321 of threading through joiner blocks.
11322 (thread_through_all_blocks): Document how we can have a dangling
11323 edge AUX field and clear it.
11324
11325 2013-10-23 Ian Lance Taylor <iant@google.com>
11326
11327 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11328 (C++ Dialect Options): Likewise.
11329 (Optimize Options): Likewise.
11330
11331 2013-10-23 Tom de Vries <tom@codesourcery.com>
11332
11333 PR tree-optimization/58805
11334 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11335
11336 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11337
11338 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11339 sequence based on get_range_info returned range.
11340
11341 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11342
11343 * tree-ssa.h: Remove all #include's
11344 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11345 * alias.c: Move required includes from tree-ssa.h.
11346 * asan.c: Likewise.
11347 * builtins.c: Likewise.
11348 * calls.c: Likewise.
11349 * cfgexpand.c: Likewise.
11350 * cfghooks.c: Likewise.
11351 * cfgloop.c: Likewise.
11352 * cfgloopmanip.c: Likewise.
11353 * cgraph.c: Likewise.
11354 * cgraphbuild.c: Likewise.
11355 * cgraphclones.c: Likewise.
11356 * cgraphunit.c: Likewise.
11357 * dse.c: Likewise.
11358 * except.c: Likewise.
11359 * expr.c: Likewise.
11360 * final.c: Likewise.
11361 * fold-const.c: Likewise.
11362 * ggc-page.c: Likewise.
11363 * gimple-builder.c: Likewise.
11364 * gimple-fold.c: Likewise.
11365 * gimple-iterator.c: Likewise.
11366 * gimple-low.c: Likewise.
11367 * gimple-pretty-print.c: Likewise.
11368 * gimple-ssa-strength-reduction.c: Likewise.
11369 * gimple-streamer-in.c: Likewise.
11370 * gimple-streamer-out.c: Likewise.
11371 * gimplify.c: Likewise.
11372 * graphite-blocking.c: Likewise.
11373 * graphite-clast-to-gimple.c: Likewise.
11374 * graphite-dependences.c: Likewise.
11375 * graphite-interchange.c: Likewise.
11376 * graphite-optimize-isl.c: Likewise.
11377 * graphite-poly.c: Likewise.
11378 * graphite-scop-detection.c: Likewise.
11379 * graphite-sese-to-poly.c: Likewise.
11380 * graphite.c: Likewise.
11381 * ipa-cp.c: Likewise.
11382 * ipa-inline-analysis.c: Likewise.
11383 * ipa-inline-transform.c: Likewise.
11384 * ipa-inline.c: Likewise.
11385 * ipa-prop.c: Likewise.
11386 * ipa-pure-const.c: Likewise.
11387 * ipa-reference.c: Likewise.
11388 * ipa-split.c: Likewise.
11389 * ipa-utils.c: Likewise.
11390 * loop-init.c: Likewise.
11391 * lto-cgraph.c: Likewise.
11392 * lto-section-in.c: Likewise.
11393 * lto-section-out.c: Likewise.
11394 * lto-streamer-in.c: Likewise.
11395 * lto-streamer-out.c: Likewise.
11396 * lto-streamer.c: Likewise.
11397 * omp-low.c: Likewise.
11398 * passes.c: Likewise.
11399 * predict.c: Likewise.
11400 * print-tree.c: Likewise.
11401 * profile.c: Likewise.
11402 * sese.c: Likewise.
11403 * targhooks.c: Likewise.
11404 * tracer.c: Likewise.
11405 * trans-mem.c: Likewise.
11406 * tree-call-cdce.c: Likewise.
11407 * tree-cfg.c: Likewise.
11408 * tree-cfgcleanup.c: Likewise.
11409 * tree-chrec.c: Likewise.
11410 * tree-complex.c: Likewise.
11411 * tree-data-ref.c: Likewise.
11412 * tree-dfa.c: Likewise.
11413 * tree-eh.c: Likewise.
11414 * tree-emutls.c: Likewise.
11415 * tree-if-conv.c: Likewise.
11416 * tree-inline.c: Likewise.
11417 * tree-into-ssa.c: Likewise.
11418 * tree-loop-distribution.c: Likewise.
11419 * tree-mudflap.c: Likewise.
11420 * tree-nested.c: Likewise.
11421 * tree-nrv.c: Likewise.
11422 * tree-object-size.c: Likewise.
11423 * tree-outof-ssa.c: Likewise.
11424 * tree-parloops.c: Likewise.
11425 * tree-phinodes.c: Likewise.
11426 * tree-predcom.c: Likewise.
11427 * tree-pretty-print.c: Likewise.
11428 * tree-profile.c: Likewise.
11429 * tree-scalar-evolution.c: Likewise.
11430 * tree-sra.c: Likewise.
11431 * tree-ssa-address.c: Likewise.
11432 * tree-ssa-alias.c: Likewise.
11433 * tree-ssa-ccp.c: Likewise.
11434 * tree-ssa-coalesce.c: Likewise.
11435 * tree-ssa-copy.c: Likewise.
11436 * tree-ssa-copyrename.c: Likewise.
11437 * tree-ssa-dce.c: Likewise.
11438 * tree-ssa-dom.c: Likewise.
11439 * tree-ssa-dse.c: Likewise.
11440 * tree-ssa-forwprop.c: Likewise.
11441 * tree-ssa-ifcombine.c: Likewise.
11442 * tree-ssa-live.c: Likewise.
11443 * tree-ssa-loop-ch.c: Likewise.
11444 * tree-ssa-loop-im.c: Likewise.
11445 * tree-ssa-loop-ivcanon.c: Likewise.
11446 * tree-ssa-loop-ivopts.c: Likewise.
11447 * tree-ssa-loop-manip.c: Likewise.
11448 * tree-ssa-loop-niter.c: Likewise.
11449 * tree-ssa-loop-prefetch.c: Likewise.
11450 * tree-ssa-loop-unswitch.c: Likewise.
11451 * tree-ssa-loop.c: Likewise.
11452 * tree-ssa-math-opts.c: Likewise.
11453 * tree-ssa-operands.c: Likewise.
11454 * tree-ssa-phiopt.c: Likewise.
11455 * tree-ssa-phiprop.c: Likewise.
11456 * tree-ssa-pre.c: Likewise.
11457 * tree-ssa-propagate.c: Likewise.
11458 * tree-ssa-reassoc.c: Likewise.
11459 * tree-ssa-sccvn.c: Likewise.
11460 * tree-ssa-sink.c: Likewise.
11461 * tree-ssa-strlen.c: Likewise.
11462 * tree-ssa-structalias.c: Likewise.
11463 * tree-ssa-tail-merge.c: Likewise.
11464 * tree-ssa-ter.c: Likewise.
11465 * tree-ssa-threadedge.c: Likewise.
11466 * tree-ssa-threadupdate.c: Likewise.
11467 * tree-ssa-uncprop.c: Likewise.
11468 * tree-ssa-uninit.c: Likewise.
11469 * tree-ssa.c: Likewise.
11470 * tree-ssanames.c: Likewise.
11471 * tree-stdarg.c: Likewise.
11472 * tree-streamer-in.c: Likewise.
11473 * tree-switch-conversion.c: Likewise.
11474 * tree-tailcall.c: Likewise.
11475 * tree-vect-data-refs.c: Likewise.
11476 * tree-vect-generic.c: Likewise.
11477 * tree-vect-loop-manip.c: Likewise.
11478 * tree-vect-loop.c: Likewise.
11479 * tree-vect-patterns.c: Likewise.
11480 * tree-vect-slp.c: Likewise.
11481 * tree-vect-stmts.c: Likewise.
11482 * tree-vectorizer.c: Likewise.
11483 * tree-vrp.c: Likewise.
11484 * tree.c: Likewise.
11485 * tsan.c: Likewise.
11486 * value-prof.c: Likewise.
11487 * var-tracking.c: Likewise.
11488 * varpool.c: Likewise.
11489 * vtable-verify.c: Likewise.
11490
11491 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11492
11493 * config/tilegx/tilegx.c: Include "tree.h".
11494
11495 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11496
11497 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11498 the info, not after it.
11499 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11500 dump_ssaname_info call.
11501 (pp_gimple_stmt_1): Adjust caller.
11502 (dump_phi_nodes): Likewise. Don't print "# " here.
11503
11504 2013-10-22 Jan Hubicka <jh@suse.cz>
11505
11506 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11507 tuning flag.
11508 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11509 * i386.c (expand_small_movmem_or_setmem): New function.
11510 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11511 function.
11512 (alg_usable_p): Add support for value ranges; cleanup.
11513 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11514
11515 2013-10-22 Sterling Augustine <saugustine@google.com>
11516
11517 * doc/invoke.texi: Document -ggnu-pubnames.
11518 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11519 logic.
11520 * dwarf2out.c: Include gdb/gdb-index.h.
11521 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11522 debug_generate_pub_sections.
11523 (is_java, output_pubtables, output_pubname): New functions.
11524 (include_pubname_in_output): Handle debug_generate_pub_sections at
11525 level 2.
11526 (size_of_pubnames): Use new local space_for_flags based on
11527 debug_generate_pub_sections.
11528 (output_pubnames): Unify pubnames and pubtypes output logic.
11529 Genericize comments. Call output_pubname.
11530 (dwarf2out_finish): Move logic to output_pubnames and call it.
11531
11532 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11533
11534 PR target/58779
11535 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11536 Remove CCCmode handling.
11537 <case LTU>: Return 'c' suffix for CCCmode.
11538 <case GEU>: Return 'nc' suffix for CCCmode.
11539 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11540 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11541 (*sub<mode>3_cc_overflow): Ditto.
11542 (*subsi3_zext_cc_overflow): Ditto.
11543
11544 2013-10-22 Steve Ellcey <sellcey@mips.com>
11545
11546 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11547 (AND (NOT OP1) (NOT OP2)).
11548
11549 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11550
11551 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11552 meaning of merge-high and merge-low masks for little endian; avoid
11553 use of vector-pack masks for little endian for mismatched modes.
11554
11555 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11556
11557 * config/tilepro/tilepro.c: Include "tree.h".
11558
11559 2013-10-22 Andreas Schwab <schwab@suse.de>
11560
11561 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11562 with PRE_DEC.
11563
11564 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11565
11566 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11567 [Ed Smith-Rowland]): New entries.
11568 ([Stephen M. Webb]): Update.
11569
11570 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11571
11572 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11573
11574 2013-10-21 Marek Polacek <polacek@redhat.com>
11575
11576 PR middle-end/58809
11577 * fold-const.c (fold_range_test): Return 0 if the type is not
11578 an integral type.
11579
11580 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11581
11582 * system.h: Move hwint.h include further down.
11583 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11584 gcc_checking_asserts.
11585 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11586
11587 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11588
11589 Fix volatile issues in optimize_bit_field_compare.
11590 * fold-const.c (optimize_bit_field_compare): Bail out if
11591 lvolatilep or rvolatilep.
11592
11593 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11594
11595 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11596 and get_inner_reference returning different pmode for non-volatile
11597 bit-field members dependent on flag_strict_volatile_bitfields.
11598 * stor-layout.c (layout_decl): Remove special handling of
11599 flag_strict_volatile_bitfields.
11600 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11601 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11602
11603 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11604
11605 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11606 calculations.
11607
11608 2013-10-21 Jeff Law <law@redhat.com>
11609
11610 * tree-ssa-threadedge.c (thread_through_normal_block): New
11611 argument VISITED. Remove VISISTED as a local variable. When we
11612 have a threadable jump, verify the destination of the jump has not
11613 been visised.
11614 (thread_across_edge): Allocate VISITED bitmap once at function
11615 scope and use it throughout. Make sure to set appropriate bits in
11616 VISITED for E (start of jump thread path).
11617 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11618 through a joiner if any edge on the path has a recorded jump thread.
11619
11620 2013-10-21 Ian Lance Taylor <iant@google.com>
11621
11622 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11623 don't imply that attributes can solve all problems.
11624 (Directory Options): Fix typo.
11625
11626 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11627
11628 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11629 extend and extend_add.
11630
11631 2013-10-21 Richard Biener <rguenther@suse.de>
11632
11633 PR tree-optimization/58794
11634 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11635 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11636
11637 2013-10-21 Richard Biener <rguenther@suse.de>
11638
11639 PR middle-end/58742
11640 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11641 to (T) X for sign-changing conversions (or no conversion).
11642
11643 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11644
11645 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11646
11647 2013-10-20 Jan Hubicka <jh@suse.cz>
11648
11649 * config/i386/i386-tune.def: Add comment; organize into categories
11650
11651 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11652
11653 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11654 argument. Update function comment.
11655 (expand_set_or_movmem_via_rep): New function combining
11656 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11657 (expand_movmem_via_rep_mov): Remove.
11658 expand_setmem_via_rep_stos): Remove.
11659 (expand_movmem_epilogue): Update calls correspondingly.
11660 (expand_setmem_epilogue_via_loop): Likewise.
11661 (emit_memset): New.
11662 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11663 (expand_set_or_movmem_prologue): New function combining
11664 expand_movmem_prologue and expand_setmem_prologue.
11665 (expand_movmem_prologue): Remove.
11666 (expand_setmem_prologue): Remove.
11667 (expand_set_or_movmem_constant_prologue): New function combining
11668 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11669 (expand_constant_movmem_prologue): Remove.
11670 (expand_constant_setmem_prologue): Remove.
11671 (promote_duplicated_reg): Allow vector-const0 value.
11672 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11673 and ix86_expand_setmem.
11674 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11675 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11676
11677 2013-10-21 Diego Novillo <dnovillo@google.com>
11678
11679 * asan.c: Include tree.h
11680 * bb-reorder.c: Likewise.
11681 * cfgcleanup.c: Likewise.
11682 * cfgloopmanip.c: Likewise.
11683 * data-streamer-in.c: Likewise.
11684 * data-streamer-out.c: Likewise.
11685 * data-streamer.c: Likewise.
11686 * dwarf2cfi.c: Likewise.
11687 * graphite-blocking.c: Likewise.
11688 * graphite-clast-to-gimple.c: Likewise.
11689 * graphite-dependences.c: Likewise.
11690 * graphite-interchange.c: Likewise.
11691 * graphite-optimize-isl.c: Likewise.
11692 * graphite-poly.c: Likewise.
11693 * graphite-scop-detection.c: Likewise.
11694 * graphite-sese-to-poly.c: Likewise.
11695 * graphite.c: Likewise.
11696 * ipa-devirt.c: Likewise.
11697 * ipa-profile.c: Likewise.
11698 * ipa.c: Likewise.
11699 * ira.c: Likewise.
11700 * loop-init.c: Likewise.
11701 * loop-unroll.c: Likewise.
11702 * lower-subreg.c: Likewise.
11703 * lto/lto-object.c: Likewise.
11704 * recog.c: Likewise.
11705 * reginfo.c: Likewise.
11706 * tree-loop-distribution.c: Likewise.
11707 * tree-parloops.c: Likewise.
11708 * tree-ssa-strlen.c: Likewise.
11709 * tree-streamer.c: Likewise.
11710 * value-prof.c: Likewise.
11711 * target-globals.c: Likewise.
11712 * expr.h: Include tree-core.h instead of tree.h.
11713 * gimple.h: Likewise.
11714 * ipa-prop.h: Likewise.
11715 * ipa-utils.h: Likewise.
11716 * lto-streamer.h: Likewise.
11717 * streamer-hooks.h: Likewise.
11718 * ipa-reference.h: Include cgraph.h instead of tree.h.
11719 * cgraph.h: Include basic-block.h instead of tree.h.
11720 * tree-streamer.h: Do not include tree.h.
11721 * genattrtab.c (write_header): Generate inclusion of tree.h.
11722 * genautomata.c (main): Likewise.
11723 * genemit.c: Likewise.
11724 * genopinit.c: Likewise.
11725 * genoutput.c (output_prologue): Likewise.
11726 * genpeep.c: Likewise.
11727
11728 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11729
11730 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11731 little endian.
11732 (vec_unpacku_hi_v8hi): Likewise.
11733 (vec_unpacku_lo_v16qi): Likewise.
11734 (vec_unpacku_lo_v8hi): Likewise.
11735
11736 2013-10-20 Jan Hubicka <jh@suse.cz>
11737
11738 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11739 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11740 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11741
11742 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11743
11744 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11745 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11746 constants.
11747 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11748
11749 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11750
11751 PR target/58603
11752 * system.h: Undef m_slot.
11753
11754 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11755
11756 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11757 all elements for both endian flavors.
11758
11759 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11760
11761 PR target/58792
11762 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11763 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11764 and SI_REG for 64bit SYSV ABI targets.
11765
11766 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11767
11768 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11769 to multi_reg_return. Clarify that we are skipping USEs of multiple
11770 return registers. Use bool type where appropriate.
11771
11772 2013-10-18 Jan Hubicka <jh@suse.cz>
11773
11774 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11775 for cold functions.
11776 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11777 (X86_TUNE_PUSH_MEMORY): Likewise.
11778 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11779 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11780 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11781 New.
11782 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11783 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11784 Remove.
11785 (ix86_option_override_internal): Update to use tune features instead
11786 of variables.
11787
11788 2013-10-18 Cong Hou <congh@google.com>
11789
11790 PR tree-optimization/58508
11791 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11792 statement that contains data refs with zero-step.
11793
11794 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11795
11796 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11797 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11798 * gimple-low.c (gimple_check_call_arg,
11799 gimple_check_call_matching_types): Move to cgraph.c.
11800 * gimple-low.h: Remove prototype.
11801 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11802 Relocate from gimple-low.c.
11803 * cgraph.h: Add prototype. Don't include basic-block.h.
11804 * gimplify.c: Add gimple-low to include list.
11805 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11806 * tree-eh.c: Add gimple-low to include list.
11807 * tree-nested.c: Likewise.
11808 * cfgexpand.c: Add tree-ssa-address.h to include list.
11809 * expr.c: Likewise.
11810 * gimple-fold.c: Likewise.
11811 * gimple-ssa-strength-reduction.c: Likewise.
11812 * trans-mem.c: Likewise.
11813 * tree-mudflap.c: Likewise.
11814 * tree-ssa-loop-ivopts.c: Likewise.
11815 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11816 (degenerate_phi_result): Move to tree-phinodes.c.
11817 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11818 * tree-ssa-threadedge.c: Likewise.
11819 * tree-vrp.c: Likewise.
11820 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11821 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11822 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11823 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11824 * tree-ssa-forwprop.c: Likewise.
11825 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11826 pass_data_cleanup_cfg_post_optimizing,
11827 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11828 * tree-optimize.c: Delete File.
11829 * graphite.c: Include tree-cfgcleanup.h.
11830 * passes.c: Likewise.
11831 * tree-cfg.c: Likewise.
11832 * tree-profile.c: Likewise.
11833 * tree-ssa-dse.c: Likewise.
11834 * tree-ssa-loop-ivcanon.c: Likewise.
11835 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11836 * tree-outof-ssa.c: Include sbitmap.h.
11837 * tree-ssa-live.c: Likewise.
11838 * tree-ssa-propagate.c: Likewise.
11839 * tree-ssa-structalias.c: Likewise.
11840 * tree-stdarg.c: Likewise.
11841 * Makefile.in (OBJS): Delete tree-optimize.o.
11842 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11843 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11844 * varasm.c: Include basic-block.h.
11845 * cfgloop.h: Include function.h instead of basic-block.h
11846 (bb_loop_depth): Move to cfgloop.c.
11847 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11848
11849 2013-10-18 Teresa Johnson <tejohnson@google.com>
11850
11851 * predict.c (probably_never_executed): Compare frequency-based
11852 count to number of training runs.
11853 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11854
11855 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11856
11857 * config/arm/arm.c (cortexa9_extra_costs): New table.
11858 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11859
11860 2013-10-18 Jeff Law <law@redhat.com>
11861
11862 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11863
11864 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11865 (register_jump_thread): Add "registered_jump_thread" debug
11866 counter support.
11867 * dbgcnt.def (registered_jump_thread): New debug counter.
11868
11869 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11870
11871 * config/rs6000/rs6000.c: Include cgraph.h.
11872
11873 2013-10-18 Teresa Johnson <tejohnson@google.com>
11874
11875 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11876 weights during merging.
11877
11878 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11879
11880 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11881 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11882 * tree-ssa-operands.h: Remove prototype.
11883 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11884 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11885 * gimple.h: Add prototype.
11886 * gimple-ssa.h: Include tree-ssa-operands.h.
11887 * tree-dump.c: Add tree-cfg.h to include list.
11888 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11889 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11890 * config/i386/i386.c: Don't include tree-flow.h.
11891 * config/rs6000/rs6000.c: Likewise.
11892
11893 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11894
11895 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11896
11897 2013-10-18 Richard Biener <rguenther@suse.de>
11898
11899 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11900 or TYPE_UNSIGNED of integral types.
11901 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11902 NULL_TREE for zero-precision integral types.
11903
11904 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11905
11906 * config/aarch64/arm_neon.h
11907 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11908
11909 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11910
11911 PR target/57756
11912 * opth-gen.awk: Define target_flags_explicit.
11913
11914 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11915
11916 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11917 fields to the reg_addr array that describes the valid addressing
11918 mode for any register, general purpose registers, floating point
11919 registers, and Altivec registers.
11920 (FIRST_RELOAD_REG_CLASS): Likewise.
11921 (LAST_RELOAD_REG_CLASS): Likewise.
11922 (struct reload_reg_map_type): Likewise.
11923 (reload_reg_map_type): Likewise.
11924 (RELOAD_REG_VALID): Likewise.
11925 (RELOAD_REG_MULTIPLE): Likewise.
11926 (RELOAD_REG_INDEXED): Likewise.
11927 (RELOAD_REG_OFFSET): Likewise.
11928 (RELOAD_REG_PRE_INCDEC): Likewise.
11929 (RELOAD_REG_PRE_MODIFY): Likewise.
11930 (reg_addr): Likewise.
11931 (mode_supports_pre_incdec_p): New helper functions to say whether
11932 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11933 (mode_supports_pre_modify_p): Likewise.
11934 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11935 print the valid address mode bits for each mode.
11936 (rs6000_debug_print_mode): Likewise.
11937 (rs6000_debug_reg_global): Likewise.
11938 (rs6000_setup_reg_addr_masks): New function to set up the address
11939 mask bits for each type.
11940 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11941 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11942 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11943 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11944 PRE_MODIFY are supported.
11945 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11946 registers, instead of {src,dest}_av_p.
11947 (rs6000_print_options_internal): Tweak the debug output slightly.
11948
11949 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11950
11951 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11952 isa attribute.
11953
11954 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11955
11956 * tree-flow.h (struct omp_region): Move to omp-low.c.
11957 Remove omp_ prototypes and variables.
11958 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11959 (copy_var_decl): Relocate prototype from tree-flow.h.
11960 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11961 * tree.h: Move prototype to omp-low.h.
11962 * omp-low.h: New File. Relocate prototypes here.
11963 * omp-low.c (struct omp_region): Make local here.
11964 (root_omp_region): Make static.
11965 (copy_var_decl) Move to gimple.c.
11966 (new_omp_region): Make static.
11967 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
11968 * tree-cfg.c: Include omp-low.h.
11969 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
11970 * gimplify.c: Include omp-low.h.
11971 * tree-parloops.c: Likewise.
11972
11973 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11974
11975 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
11976 operands are in memory, prefer to force non-matched operand 1 to
11977 the register.
11978
11979 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11980
11981 PR target/58673
11982 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
11983 restrict TImode addresses to single indirect registers if both
11984 -mquad-memory and -mvsx-timode are used.
11985 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
11986 we should emit load/store quad. Remove using %y for quad memory
11987 addresses.
11988
11989 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
11990 constraints to allow load/store quad on machines where TImode is
11991 not allowed in VSX registers. Use 'n' instead of 'F' constraint
11992 for TImode to load integer constants.
11993
11994 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11995
11996 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
11997
11998 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
11999
12000 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12001 handling of STACK_REG.
12002
12003 2013-10-17 Richard Biener <rguenther@suse.de>
12004
12005 PR tree-optimization/58143
12006 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12007 New function.
12008 (rewrite_to_defined_overflow): Likewise.
12009 (move_computations_dom_walker::before_dom): Rewrite stmts
12010 with undefined signed overflow that are not always executed
12011 into unsigned arithmetic.
12012
12013 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12014
12015 PR target/57756
12016 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12017 explicit isa flag to be an options variable, instead of using
12018 global_options_set. Remove define from rs6000.h.
12019 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12020
12021 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12022 Initialize rs6000_isa_flags_explicit.
12023 (rs6000_function_specific_save): Add gcc_options* parameter, so
12024 that the powerpc builds after the 2013-10-15 changes.
12025 (rs6000_function_specific_restore): Likewise.
12026
12027 2013-10-16 DJ Delorie <dj@redhat.com>
12028
12029 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12030 op is a REG before checking REGNO.
12031 (rl78_alloc_physical_registers): Verify pattern is a SET before
12032 checking SET_SRC.
12033
12034 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12035
12036 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12037 endianness.
12038 (vec_unpacks_lo_v4sf): Likewise.
12039 (vec_unpacks_float_hi_v4si): Likewise.
12040 (vec_unpacks_float_lo_v4si): Likewise.
12041 (vec_unpacku_float_hi_v4si): Likewise.
12042 (vec_unpacku_float_lo_v4si): Likewise.
12043
12044 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12045
12046 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12047 (vsx_concat_v2sf): Likewise.
12048
12049 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12050
12051 * config/aarch64/aarch64.md
12052 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12053
12054 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12055
12056 PR tree-optimization/58697
12057 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12058 estimated_loop_iterations_int.
12059 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12060 (get_max_loop_iterations_int): New. HWINT version of
12061 get_max_loop_iterations.
12062 * cfgloop.h: Add prototypes.
12063 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12064 * loop-unroll.c (decide_peel_once_rolling): Call
12065 get_estimated_loop_iterations_int.
12066 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12067 * tree-ssa-loop-niter.h: Tweak prototypes.
12068
12069 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12070
12071 * gengtype-parse.c (struct_field_seq): Ignore access-control
12072 keywords ("public:" etc).
12073
12074 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12075
12076 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12077 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12078
12079 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12080
12081 * config/arm/arm.opt (mlra): New option.
12082 * config/arm/arm.c (arm_lra_p): New function.
12083 (TARGET_LRA_P): Define.
12084
12085 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12086
12087 * tree-core.h (tree_code_name): Remove.
12088 * tree.h (get_tree_code_name): New prototype.
12089 * tree.c (tree_code_name): Make static.
12090 (get_tree_code_name): New function.
12091 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12092 tree_class_check_failed, tree_range_check_failed,
12093 tree_not_class_check_failed, omp_clause_check_failed,
12094 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12095 wrapper get_tree_code_name instead of calling tree_code_name directly.
12096 * tree-vrp.c (dump_asserts_for): Likewise.
12097 * tree-dump.c (dequeue_and_dump): Likewise.
12098 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12099 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12100 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12101 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12102 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12103 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12104 dump_gimple_omp_for): Likewise.
12105 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12106 * tree-ssa-pre.c (print_pre_expr): Likewise.
12107 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12108 * print-tree.c (print_node_brief, print_node): Likewise.
12109 * gimple.c (gimple_check_failed): Likewise.
12110 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12111 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12112 * config/mep/mep.c (mep_validate_vliw): Likewise.
12113 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12114 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12115
12116 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12117
12118 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12119 for AMD bdver3.
12120
12121 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12122
12123 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12124 (MULTILIB_MATCHES): Add multilib for -march=v8.
12125
12126 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12127
12128 PR target/57756
12129 * optc-save-gen.awk: Add extra parameter to the save and restore
12130 target calls.
12131 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12132 * tree.c (build_optimization_node): New parameter. Add extra parameter
12133 to call to cl_optimization_save.
12134 (build_target_option_node): New parameter. Add extra parameter
12135 to call to cl_target_option_save.
12136 * tree.h (build_optimization_node): New parameter.
12137 (build_target_option_node): New parameter.
12138 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12139 build_optimization_node and build_target_option_node.
12140 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12141 (handle_pragma_push_options): Ditto.
12142 * toplev.c (process_options): Ditto.
12143 * opts.c (init_options_struct): Check for opts_set non-null.
12144 * target.def (target_option.save): New parameter.
12145 (target_option.restore): New parameter.
12146 * tm.texi: Generate.
12147 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12148 (ix86_pragma_target_parse): Ditto.
12149 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12150 parameters.
12151 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12152 to build_optimization_node and build_target_option_node.
12153 (rs6000_valid_attribute_p): Ditto.
12154 (rs6000_pragma_target_parse): Ditto.
12155 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12156 data.
12157 * config/i386/i386.h:
12158 TARGET_64BIT_P: New Macro
12159 TARGET_MMX_P: New Macro.
12160 TARGET_3DNOW_P: New Macro.
12161 TARGET_3DNOW_A_P: New Macro.
12162 TARGET_SSE_P: New Macro.
12163 TARGET_SSE2_P: New Macro.
12164 TARGET_SSE3_P: New Macro.
12165 TARGET_SSSE3_P: New Macro.
12166 TARGET_SSE4_1_P: New Macro.
12167 TARGET_SSE4_2_P: New Macro.
12168 TARGET_AVX_P: New Macro.
12169 TARGET_AVX2_P: New Macro.
12170 TARGET_AVX512F_P: New Macro.
12171 TARGET_AVX512PF_P: New Macro.
12172 TARGET_AVX512ER_P: New Macro.
12173 TARGET_AVX512CD_P: New Macro.
12174 TARGET_FMA_P: New Macro.
12175 TARGET_SSE4A_P: New Macro.
12176 TARGET_FMA4_P: New Macro.
12177 TARGET_XOP_P: New Macro.
12178 TARGET_LWP_P: New Macro.
12179 TARGET_ABM_P: New Macro.
12180 TARGET_BMI_P: New Macro.
12181 TARGET_BMI2_P: New Macro.
12182 TARGET_LZCNT_P: New Macro.
12183 TARGET_TBM_P: New Macro.
12184 TARGET_POPCNT_P: New Macro.
12185 TARGET_SAHF_P: New Macro.
12186 TARGET_MOVBE_P: New Macro.
12187 TARGET_CRC32_P: New Macro.
12188 TARGET_AES_P: New Macro.
12189 TARGET_PCLMUL_P: New Macro.
12190 TARGET_CMPXCHG16B_P: New Macro.
12191 TARGET_FSGSBASE_P: New Macro.
12192 TARGET_RDRND_P: New Macro.
12193 TARGET_F16C_P: New Macro.
12194 TARGET_RTM_P: New Macro.
12195 TARGET_HLE_P: New Macro.
12196 TARGET_RDSEED_P: New Macro.
12197 TARGET_PRFCHW_P: New Macro.
12198 TARGET_ADX_P: New Macro.
12199 TARGET_FXSR_P: New Macro.
12200 TARGET_XSAVE_P: New Macro.
12201 TARGET_XSAVEOPT_P: New Macro.
12202 TARGET_LP64_P: New Macro.
12203 TARGET_X32_P: New Macro.
12204 TARGET_FPMATH_DEFAULT_P: New Macro.
12205 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12206 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12207 opts and opts_set.
12208 Change ix86_tune_string to access opts->x_ix86_tune_string.
12209 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12210 Change ix86_arch_string to access opts->x_ix86_arch_string.
12211 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12212 Change ix86_pmode to access opts->x_ix86_pmode.
12213 Change ix86_abi to access opts->x_ix86_abi.
12214 Change ix86_cmodel to access opts->x_ix86_cmodel.
12215 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12216 Change ix86_isa_flags_explicit to access
12217 opts->x_ix86_isa_flags_explicit.
12218 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12219 Change ix86_regparm to access opts->x_ix86_regparm.
12220 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12221 Change ix86_preferred_stack_boundary_arg to access
12222 opts->x_ix86_preferred_stack_boundary_arg.
12223 Change ix86_force_align_arg_pointer to access
12224 opts->x_ix86_force_align_arg_pointer.
12225 Change ix86_incoming_stack_boundar_arg to access
12226 opts->x_ix86_incoming_stack_boundar_arg.
12227 Change ix86_fpmath to access opts->x_ix86_fpmath.
12228 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12229 Change ix86_recip_name to access opts->x_ix86_recip_name.
12230 Change ix86_stack_protector_guard to access
12231 opts->x_ix86_stack_protector_guard.
12232 Change ix86_tune_memcpy_strategy to access
12233 opts->x_ix86_tune_memcpy_strategy.
12234 Change ix86_tune_memset_strategy to access
12235 opts->x_ix86_tune_memset_strategy.
12236 Change global_options to access opts.
12237 Change global_options_set to access opts_set.
12238 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12239 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12240 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12241 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12242 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12243 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12244 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12245 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12246 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12247 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12248 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12249 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12250 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12251 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12252 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12253 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12254 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12255 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12256 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12257 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12258 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12259 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12260 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12261 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12262 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12263 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12264 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12265 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12266 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12267 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12268 Change TARGET_AES to TARGET_AES_P (opts->...).
12269 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12270 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12271 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12272 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12273 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12274 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12275 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12276 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12277 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12278 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12279 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12280 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12281 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12282 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12283 Change TARGET_X32 to TARGET_X32_P (opts->...).
12284 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12285 Change TARGET_FLOAT_RETURNS_IN_80387 to
12286 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12287 (ix86_function_specific_save): New parameter. Use opts-> fields
12288 to replace global fields.
12289 (ix86_function_specific_restore): Ditto.
12290 (ix86_valid_target_attribute_inner_p): New parameters.
12291 Fix recursive call.
12292 Fix call to ix86_handle_option and set_option.
12293 (ix86_valid_target_attribute_tree): New parameters.
12294 Change global_options to access opts.
12295 Change global_options_set to access opts_set.
12296 Fix call to ix86_valid_target_attribute_inner_p.
12297 Change ix86_tune_string to access opts->x_ix86_tune_string.
12298 Change ix86_arch_string to access opts->x_ix86_arch_string.
12299 Change ix86_fpmath to access opts->x_ix86_fpmath
12300 Fix call to ix86_option_override_internal.
12301 Fix call to ix86_add_new_builtins.
12302 Fix calls to build_optimization_node and build_target_option_node.
12303 (ix86_valid_target_attribute_p): Remove access to global_options.
12304 Use new gcc_options structure func_options.
12305 Fix call to ix86_valid_target_attribute_tree.
12306 Fix call to build_optimization_node.
12307 (get_builtin_code_for_version): Fix call to
12308 ix86_valid_target_attribute_tree.
12309
12310 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12311
12312 * Makefile.in (PICFLAG): New.
12313 (enable_host_shared): New.
12314 (INTERNAL_CFLAGS): Use PICFLAG.
12315 (LIBIBERTY): Use pic build of libiberty.a if configured with
12316 --enable-host-shared.
12317 * configure.ac: Add --enable-host-shared, setting up new
12318 PICFLAG variable.
12319 * configure: Regenerate.
12320 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12321 (--enable-host-shared): New option.
12322
12323 2013-10-15 Richard Biener <rguenther@suse.de>
12324
12325 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12326 for built-in functions.
12327
12328 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12329
12330 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12331 (optimize_range_tests_1): New function,
12332 extracted from optimize_range_tests.
12333 (optimize_range_tests_xor): Similarly.
12334 (optimize_range_tests_diff): New function.
12335 (optimize_range_tests): Use optimize_range_tests_1.
12336
12337 2013-10-15 Cong Hou <congh@google.com>
12338
12339 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12340 requirement of the reduction pattern so that one operand of the
12341 reduction operation can come from outside of the loop.
12342
12343 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12344
12345 * config/arm/neon-schedgen.ml: Remove.
12346 * config/arm/cortex-a9-neon.md: Remove comment regarding
12347 neon-schedgen.ml.
12348
12349 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12350
12351 * config/arm/types: Remove old neon types.
12352
12353 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12354
12355 * config/arm/cortex-a7.md
12356 (cortex_a7_neon_type): New.
12357 (cortex_a7_neon_mul): Update for new types.
12358 (cortex_a7_neon_mla): Likewise.
12359 (cortex_a7_neon): Likewise.
12360
12361 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12362
12363 * config/arm/cortex-a15-neon.md
12364 (cortex_a15_neon_type): New,
12365
12366 (cortex_a15_neon_int_1): Remove.
12367 (cortex_a15_neon_int_2): Likewise.
12368 (cortex_a15_neon_int_3): Likewise.
12369 (cortex_a15_neon_int_4): Likewise.
12370 (cortex_a15_neon_int_5): Likewise.
12371 (cortex_a15_neon_vqneg_vqabs): Likewise.
12372 (cortex_a15_neon_vmov): Likewise.
12373 (cortex_a15_neon_vaba): Likewise.
12374 (cortex_a15_neon_vaba_qqq): Likewise.
12375 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12376 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12377 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12378 Likewise.
12379 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12380 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12381 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12382 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12383 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12384 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12385 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12386 (cortex_a15_neon_shift_1): Likewise.
12387 (cortex_a15_neon_shift_2): Likewise.
12388 (cortex_a15_neon_shift_3): Likewise.
12389 (cortex_a15_neon_vshl_ddd): Likewise.
12390 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12391 (cortex_a15_neon_vsra_vrsra): Likewise.
12392 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12393 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12394 (cortex_a15_neon_bp_3cycle): Likewise.
12395 (cortex_a15_neon_ldm_2): Likewise.
12396 (cortex_a15_neon_stm_2): Likewise.
12397 (cortex_a15_neon_mcr): Likewise.
12398 (cortex_a15_neon_mrc): Likewise.
12399 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12400 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12401 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12402 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12403 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12404 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12405 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12406 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12407 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12408 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12409 (cortex_a15_neon_bp_simple): Likewise.
12410 (cortex_a15_neon_bp_2cycle): Likewise.
12411 (cortex_a15_neon_bp_3cycle): Likewise.
12412 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12413 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12414 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12415 (cortex_a15_neon_vld2_4_regs): Likewise.
12416 (cortex_a15_neon_vld3_vld4): Likewise.
12417 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12418 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12419 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12420 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12421 (cortex_a15_neon_vst3_vst4): Rename to...
12422 (cortex_a15_neon_vst4): This, update for new attributes.
12423 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12424 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12425 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12426 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12427 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12428 (cortex_a15_neon_ldm_2): Likewise.
12429 (cortex_a15_neon_stm_2): Likewise.
12430 (cortex_a15_neon_mcr): Likewise.
12431 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12432 (cortex_a15_neon_mrc): Likewise.
12433 (cortex_a15_neon_mrrc): Likewise.
12434
12435 (cortex_a15_neon_abd): New.
12436 (cortex_a15_neon_abd_q): Likewise.
12437 (cortex_a15_neon_aba): Likewise.
12438 (cortex_a15_neon_aba_q): Likewise.
12439 (cortex_a15_neon_acc): Likewise.
12440 (cortex_a15_neon_acc_q): Likewise.
12441 (cortex_a15_neon_arith_basic): Likewise.
12442 (cortex_a15_neon_arith_complex): Likewise.
12443 (cortex_a15_neon_multiply): Likewise.
12444 (cortex_a15_neon_multiply_q): Likewise.
12445 (cortex_a15_neon_mla): Likewise.
12446 (cortex_a15_neon_mla_q): Likewise.
12447 (cortex_a15_neon_sat_mla_long): Likewise.
12448 (cortex_a15_neon_shift_acc): Likewise.
12449 (cortex_a15_neon_shift_imm_basic): Likewise.
12450 (cortex_a15_neon_shift_imm_complex): Likewise.
12451 (cortex_a15_neon_shift_reg_basic): Likewise.
12452 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12453 (cortex_a15_neon_shift_reg_complex): Likewise.
12454 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12455 (cortex_a15_neon_fp_negabs): Likewise
12456 (cortex_a15_neon_fp_arith): Likewise
12457 (cortex_a15_neon_fp_arith_q): Likewise
12458 (cortex_a15_neon_fp_cvt_int): Likewise
12459 (cortex_a15_neon_fp_cvt_int_q): Likewise
12460 (cortex_a15_neon_fp_cvt_16): Likewise
12461 (cortex_a15_neon_fp_mul): Likewise
12462 (cortex_a15_neon_fp_mul_q): Likewise
12463 (cortex_a15_neon_fp_mla): Likewise
12464 (cortex_a15_neon_fp_mla_q): Likewise
12465 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12466 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12467 (cortex_a15_neon_bitops): Likewise.
12468 (cortex_a15_neon_bitops_q): Likewise.
12469 (cortex_a15_neon_from_gp): Likewise.
12470 (cortex_a15_neon_from_gp_q): Likewise.
12471 (cortex_a15_neon_tbl3_tbl4): Likewise.
12472 (cortex_a15_neon_zip_q): Likewise.
12473 (cortex_a15_neon_to_gp): Likewise.
12474 (cortex_a15_neon_load_a): Likewise.
12475 (cortex_a15_neon_load_b): Likewise.
12476 (cortex_a15_neon_load_c): Likewise.
12477 (cortex_a15_neon_load_d): Likewise.
12478 (cortex_a15_neon_load_e): Likewise.
12479 (cortex_a15_neon_load_f): Likewise.
12480 (cortex_a15_neon_store_a): Likewise.
12481 (cortex_a15_neon_store_b): Likewise.
12482 (cortex_a15_neon_store_c): Likewise.
12483 (cortex_a15_neon_store_d): Likewise.
12484 (cortex_a15_neon_store_e): Likewise.
12485 (cortex_a15_neon_store_f): Likewise.
12486 (cortex_a15_neon_store_g): Likewise.
12487 (cortex_a15_neon_store_h): Likewise.
12488 (cortex_a15_vfp_to_from_gp): Likewise.
12489
12490 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12491
12492 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12493
12494 (cortex_a9_neon_vshl_ddd): Remove.
12495 (cortex_a9_neon_vst3_vst4): Likewise.
12496 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12497
12498 (cortex_a9_neon_bit_ops_q): New.
12499
12500 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12501 (cortex_a9_neon_int_2): Likewise.
12502 (cortex_a9_neon_int_3): Likewise.
12503 (cortex_a9_neon_int_4): Likewise.
12504 (cortex_a9_neon_int_5): Likewise.
12505 (cortex_a9_neon_vqneg_vqabs): Likewise.
12506 (cortex_a9_neon_vmov): Likewise.
12507 (cortex_a9_neon_vaba): Likewise.
12508 (cortex_a9_neon_vaba_qqq): Likewise.
12509 (cortex_a9_neon_shift_1): Likewise.
12510 (cortex_a9_neon_shift_2): Likewise.
12511 (cortex_a9_neon_shift_3): Likewise.
12512 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12513 (cortex_a9_neon_vsra_vrsra): Likewise.
12514 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12515 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12516 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12517 Likewise.
12518 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12519 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12520 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12521 Likewise.
12522 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12523 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12524 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12525 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12526 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12527 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12528 (cortex_a9_neon_fp_vsum): Likewise.
12529 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12530 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12531 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12532 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12533 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12534 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12535 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12536 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12537 (cortex_a9_neon_bp_simple): Likewise.
12538 (cortex_a9_neon_bp_2cycle): Likewise.
12539 (cortex_a9_neon_bp_3cycle): Likewise.
12540 (cortex_a9_neon_ldr): Likewise.
12541 (cortex_a9_neon_str): Likewise.
12542 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12543 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12544 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12545 (cortex_a9_neon_vld2_4_regs): Likewise.
12546 (cortex_a9_neon_vld3_vld4): Likewise.
12547 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12548 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12549 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12550 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12551 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12552 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12553 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12554 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12555 (cortex_a9_neon_mcr): Likewise.
12556 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12557 (cortex_a9_neon_mrc): Likewise.
12558 (cortex_a9_neon_mrrc): Likewise.
12559
12560 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12561
12562 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12563
12564 (cortex_a8_neon_vshl_ddd): Remove.
12565 (cortex_a8_neon_vst3_vst4): Likewise.
12566 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12567
12568 (cortex_a8_neon_bit_ops_q): New.
12569
12570 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12571 (cortex_a8_neon_int_2): Likewise..
12572 (cortex_a8_neon_int_3): Likewise.
12573 (cortex_a8_neon_int_5): Likewise.
12574 (cortex_a8_neon_vqneg_vqabs): Likewise.
12575 (cortex_a8_neon_int_4): Likewise.
12576 (cortex_a8_neon_vaba): Likewise.
12577 (cortex_a8_neon_vaba_qqq): Likewise.
12578 (cortex_a8_neon_shift_1): Likewise.
12579 (cortex_a8_neon_shift_2): Likewise.
12580 (cortex_a8_neon_shift_3): Likewise.
12581 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12582 (cortex_a8_neon_vsra_vrsra): Likewise.
12583 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12584 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12585 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12586 Likewise.
12587 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12588 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12589 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12590 Likewise.
12591 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12592 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12593 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12594 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12595 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12596 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12597 (cortex_a8_neon_fp_vsum): Likewise.
12598 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12599 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12600 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12601 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12602 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12603 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12604 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12605 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12606 (cortex_a8_neon_bp_simple): Likewise.
12607 (cortex_a8_neon_bp_2cycle): Likewise.
12608 (cortex_a8_neon_bp_3cycle): Likewise.
12609 (cortex_a8_neon_ldr): Likewise.
12610 (cortex_a8_neon_str): Likewise.
12611 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12612 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12613 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12614 (cortex_a8_neon_vld2_4_regs): Likewise.
12615 (cortex_a8_neon_vld3_vld4): Likewise.
12616 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12617 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12618 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12619 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12620 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12621 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12622 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12623 (cortex_a8_neon_mcr): Likewise.
12624 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12625 (cortex_a8_neon_mrc): Likewise.
12626 (cortex_a8_neon_mrrc): Likewise.
12627
12628 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12629
12630 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12631 (fp): New.
12632 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12633 (aarch64_simd_dup<mode>): Add "type" attribute.
12634 (aarch64_dup_lane<mode>): Likewise.
12635 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12636 (*aarch64_simd_mov<mode>): Likewise.
12637 (aarch64_simd_mov_from_<mode>low): Likewise.
12638 (aarch64_simd_mov_from_<mode>high): Likewise.
12639 (orn<mode>3): Likewise.
12640 (bic<mode>3): Likewise.
12641 (add<mode>3): Likewise.
12642 (sub<mode>3): Likewise.
12643 (mul<mode>3): Likewise.
12644 (*aarch64_mul3_elt<mode>): Likewise.
12645 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12646 (*aarch64_mul3_elt_to_128df): Likewise.
12647 (*aarch64_mul3_elt_to_64v2df): Likewise.
12648 (neg<mode>2): Likewise.
12649 (abs<mode>2): Likewise.
12650 (abd<mode>_3): Likewise.
12651 (aba<mode>_3): Likewise.
12652 (fabd<mode>_3): Likewise.
12653 (*fabd_scalar<mode>3): Likewise.
12654 (and<mode>3): Likewise.
12655 (ior<mode>3): Likewise.
12656 (xor<mode>3): Likewise.
12657 (one_cmpl<mode>2): Likewise.
12658 (aarch64_simd_vec_set<mode>): Likewise.
12659 (aarch64_simd_lshr<mode>): Likewise.
12660 (aarch64_simd_ashr<mode>): Likewise.
12661 (aarch64_simd_imm_shl<mode>): Likewise.
12662 (aarch64_simd_reg_sshl<mode): Likewise.
12663 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12664 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12665 (aarch64_simd_vec_setv2di): Likewise.
12666 (aarch64_simd_vec_set<mode>): Likewise.
12667 (aarch64_mla<mode>): Likewise.
12668 (*aarch64_mla_elt<mode>): Likewise.
12669 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12670 (aarch64_mls<mode>): Likewise.
12671 (*aarch64_mls_elt<mode>): Likewise.
12672 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12673 (<su><maxmin><mode>3): Likewise.
12674 (move_lo_quad_<mode>): Likewise.
12675 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12676 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12677 (vec_pack_trunc_<mode>): Likewise.
12678 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12679 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12680 (*aarch64_<su>mlal_lo<mode>): Likewise.
12681 (*aarch64_<su>mlal_hi<mode>): Likewise.
12682 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12683 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12684 (*aarch64_<su>mlal<mode>): Likewise.
12685 (*aarch64_<su>mlsl<mode>): Likewise.
12686 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12687 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12688 (add<mode>3): Likewise.
12689 (sub<mode>3): Likewise.
12690 (mul<mode>3): Likewise.
12691 (div<mode>3): Likewise.
12692 (neg<mode>2): Likewise.
12693 (abs<mode>2): Likewise.
12694 (fma<mode>4): Likewise.
12695 (*aarch64_fma4_elt<mode>): Likewise.
12696 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12697 (*aarch64_fma4_elt_to_128df): Likewise.
12698 (*aarch64_fma4_elt_to_64v2df): Likewise.
12699 (fnma<mode>4): Likewise.
12700 (*aarch64_fnma4_elt<mode>): Likewise.
12701 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12702 (*aarch64_fnma4_elt_to_128df): Likewise.
12703 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12704 (<frint_pattern><mode>2): Likewise.
12705 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12706 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12707 (vec_unpacks_lo_v4sf): Likewise.
12708 (aarch64_float_extend_lo_v2df): Likewise.
12709 (vec_unpacks_hi_v4sf): Likewise.
12710 (aarch64_float_truncate_lo_v2sf): Likewise.
12711 (aarch64_float_truncate_hi_v4sf): Likewise.
12712 (aarch64_vmls<mode>): Likewise.
12713 (<su><maxmin><mode>3): Likewise.
12714 (<maxmin_uns><mode>3): Likewise.
12715 (reduc_<sur>plus_<mode>): Likewise.
12716 (reduc_<sur>plus_v2di): Likewise.
12717 (reduc_<sur>plus_v2si): Likewise.
12718 (reduc_<sur>plus_<mode>): Likewise.
12719 (aarch64_addpv4sf): Likewise.
12720 (clz<mode>2): Likewise.
12721 (reduc_<maxmin_uns>_<mode>): Likewise.
12722 (reduc_<maxmin_uns>_v2di): Likewise.
12723 (reduc_<maxmin_uns>_v2si): Likewise.
12724 (reduc_<maxmin_uns>_<mode>): Likewise.
12725 (reduc_<maxmin_uns>_v4sf): Likewise.
12726 (aarch64_simd_bsl<mode>_internal): Likewise.
12727 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12728 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12729 (aarch64_get_lane<mode>): Likewise.
12730 (*aarch64_combinez<mode>): Likewise.
12731 (aarch64_combine<mode>): Likewise.
12732 (aarch64_simd_combine<mode>): Likewise.
12733 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12734 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12735 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12736 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12737 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12738 (aarch64_<sur>h<addsub><mode>): Likewise.
12739 (aarch64_<sur><addsub>hn<mode>): Likewise.
12740 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12741 (aarch64_pmul<mode>): Likewise.
12742 (aarch64_<su_optab><optab><mode>): Likewise.
12743 (aarch64_<sur>qadd<mode>): Likewise.
12744 (aarch64_sqmovun<mode>): Likewise.
12745 (aarch64_<sur>qmovn<mode>): Likewise.
12746 (aarch64_s<optab><mode>): Likewise.
12747 (aarch64_sq<r>dmulh<mode>): Likewise.
12748 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12749 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12750 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12751 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12752 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12753 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12754 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12755 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12756 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12757 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12758 (aarch64_sqdmull<mode>): Likewise.
12759 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12760 (aarch64_sqdmull_n<mode>): Likewise.
12761 (aarch64_sqdmull2<mode>_internal): Likewise.
12762 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12763 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12764 (aarch64_<sur>shl<mode>): Likewise.
12765 (aarch64_<sur>q<r>shl<mode>
12766 (aarch64_<sur>shll_n<mode>): Likewise.
12767 (aarch64_<sur>shll2_n<mode>): Likewise.
12768 (aarch64_<sur>shr_n<mode>): Likewise.
12769 (aarch64_<sur>sra_n<mode>): Likewise.
12770 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12771 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12772 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12773 (aarch64_cm<optab><mode>): Likewise.
12774 (aarch64_cm<optab>di): Likewise.
12775 (aarch64_cm<optab><mode>): Likewise.
12776 (aarch64_cm<optab>di): Likewise.
12777 (aarch64_cmtst<mode>): Likewise.
12778 (aarch64_cmtstdi): Likewise.
12779 (aarch64_cm<optab><mode>): Likewise.
12780 (*aarch64_fac<optab><mode>): Likewise.
12781 (aarch64_addp<mode>): Likewise.
12782 (aarch64_addpdi): Likewise.
12783 (sqrt<mode>2): Likewise.
12784 (vec_load_lanesoi<mode>): Likewise.
12785 (vec_store_lanesoi<mode>): Likewise.
12786 (vec_load_lanesci<mode>): Likewise.
12787 (vec_store_lanesci<mode>): Likewise.
12788 (vec_load_lanesxi<mode>): Likewise.
12789 (vec_store_lanesxi<mode>): Likewise.
12790 (*aarch64_mov<mode>): Likewise.
12791 (aarch64_ld2<mode>_dreg): Likewise.
12792 (aarch64_ld2<mode>_dreg): Likewise.
12793 (aarch64_ld3<mode>_dreg): Likewise.
12794 (aarch64_ld3<mode>_dreg): Likewise.
12795 (aarch64_ld4<mode>_dreg): Likewise.
12796 (aarch64_ld4<mode>_dreg): Likewise.
12797 (aarch64_tbl1<mode>): Likewise.
12798 (aarch64_tbl2v16qi): Likewise.
12799 (aarch64_combinev16qi): Likewise.
12800 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12801 (aarch64_st2<mode>_dreg): Likewise.
12802 (aarch64_st2<mode>_dreg): Likewise.
12803 (aarch64_st3<mode>_dreg): Likewise.
12804 (aarch64_st3<mode>_dreg): Likewise.
12805 (aarch64_st4<mode>_dreg): Likewise.
12806 (aarch64_st4<mode>_dreg): Likewise.
12807 (*aarch64_simd_ld1r<mode>): Likewise.
12808 (aarch64_frecpe<mode>): Likewise.
12809 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12810 (aarch64_frecps<mode>): Likewise.
12811
12812 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12813
12814 * config/arm/iterators.md (V_elem_ch): New.
12815 (q): Likewise.
12816 (VQH_type): Likewise.
12817 * config/arm/arm.md (is_neon_type): New.
12818 (conds): Use is_neon_type.
12819 (anddi3_insn): Update type attribute.
12820 (xordi3_insn): Likewise.
12821 (one_cmpldi2): Likewise.
12822 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12823 * config/arm/neon.md (neon_mov): Update type attribute.
12824 (*movmisalign<mode>_neon_store): Likewise.
12825 (*movmisalign<mode>_neon_load): Likewise.
12826 (vec_set<mode>_internal): Likewise.
12827 (vec_set<mode>_internal): Likewise.
12828 (vec_setv2di_internal): Likewise.
12829 (vec_extract<mode>): Likewise.
12830 (vec_extract<mode>): Likewise.
12831 (vec_extractv2di): Likewise.
12832 (*add<mode>3_neon): Likewise.
12833 (adddi3_neon): Likewise.
12834 (*sub<mode>3_neon): Likewise.
12835 (subdi3_neon): Likewise.
12836 (fma<VCVTF:mode>4): Likewise.
12837 (fma<VCVTF:mode>4_intrinsic): Likewise.
12838 (*fmsub<VCVTF:mode>4): Likewise.
12839 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12840 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12841 (ior<mode>3): Likewise.
12842 (and<mode>3): Likewise.
12843 (orn<mode>3_neon): Likewise.
12844 (orndi3_neon): Likewise.
12845 (bic<mode>3_neon): Likewise.
12846 (bicdi3_neon): Likewise.
12847 (xor<mode>3): Likewise.
12848 (one_cmpl<mode>2): Likewise.
12849 (abs<mode>2): Likewise.
12850 (neg<mode>2): Likewise.
12851 (negdi2_neon): Likewise.
12852 (*umin<mode>3_neon): Likewise.
12853 (*umax<mode>3_neon): Likewise.
12854 (*smin<mode>3_neon): Likewise.
12855 (*smax<mode>3_neon): Likewise.
12856 (vashl<mode>3): Likewise.
12857 (vashr<mode>3_imm): Likewise.
12858 (vlshr<mode>3_imm): Likewise.
12859 (ashl<mode>3_signed): Likewise.
12860 (ashl<mode>3_unsigned): Likewise.
12861 (neon_load_count): Likewise.
12862 (ashldi3_neon_noclobber): Likewise.
12863 (ashldi3_neon): Likewise.
12864 (signed_shift_di3_neon): Likewise.
12865 (unsigned_shift_di3_neon): Likewise.
12866 (ashrdi3_neon_imm_noclobber): Likewise.
12867 (lshrdi3_neon_imm_noclobber): Likewise.
12868 (<shift>di3_neon): Likewise.
12869 (widen_ssum<mode>3): Likewise.
12870 (widen_usum<mode>3): Likewise.
12871 (quad_halves_<code>v4si): Likewise.
12872 (quad_halves_<code>v4sf): Likewise.
12873 (quad_halves_<code>v8hi): Likewise.
12874 (quad_halves_<code>v16qi): Likewise.
12875 (reduc_splus_v2di): Likewise.
12876 (neon_vpadd_internal<mode>): Likewise.
12877 (neon_vpsmin<mode>): Likewise.
12878 (neon_vpsmax<mode>): Likewise.
12879 (neon_vpumin<mode>): Likewise.
12880 (neon_vpumax<mode>): Likewise.
12881 (*ss_add<mode>_neon): Likewise.
12882 (*us_add<mode>_neon): Likewise.
12883 (*ss_sub<mode>_neon): Likewise.
12884 (*us_sub<mode>_neon): Likewise.
12885 (neon_vadd<mode>_unspec): Likewise.
12886 (neon_vaddl<mode>): Likewise.
12887 (neon_vaddw<mode>): Likewise.
12888 (neon_vhadd<mode>): Likewise.
12889 (neon_vqadd<mode>): Likewise.
12890 (neon_vaddhn<mode>): Likewise.
12891 (neon_vmul<mode>): Likewise.
12892 (neon_vfms<VCVTF:mode>): Likewise.
12893 (neon_vmlal<mode>): Likewise.
12894 (neon_vmls<mode>): Likewise.
12895 (neon_vmlsl<mode>): Likewise.
12896 (neon_vqdmulh<mode>): Likewise.
12897 (neon_vqdmlal<mode>): Likewise.
12898 (neon_vqdmlsl<mode>): Likewise.
12899 (neon_vmull<mode>): Likewise.
12900 (neon_vqdmull<mode>): Likewise.
12901 (neon_vsub<mode>_unspec): Likewise.
12902 (neon_vsubl<mode>): Likewise.
12903 (neon_vsubw<mode>): Likewise.
12904 (neon_vqsub<mode>): Likewise.
12905 (neon_vhsub<mode>): Likewise.
12906 (neon_vsubhn<mode>): Likewise.
12907 (neon_vceq<mode>): Likewise.
12908 (neon_vcge<mode>): Likewise.
12909 (neon_vcgeu<mode>): Likewise.
12910 (neon_vcgt<mode>): Likewise.
12911 (neon_vcgtu<mode>): Likewise.
12912 (neon_vcle<mode>): Likewise.
12913 (neon_vclt<mode>): Likewise.
12914 (neon_vcage<mode>): Likewise.
12915 (neon_vcagt<mode>): Likewise.
12916 (neon_vtst<mode>): Likewise.
12917 (neon_vabd<mode>): Likewise.
12918 (neon_vabdl<mode>): Likewise.
12919 (neon_vaba<mode>): Likewise.
12920 (neon_vabal<mode>): Likewise.
12921 (neon_vmax<mode>): Likewise.
12922 (neon_vmin<mode>): Likewise.
12923 (neon_vpaddl<mode>): Likewise.
12924 (neon_vpadal<mode>): Likewise.
12925 (neon_vpmax<mode>): Likewise.
12926 (neon_vpmin<mode>): Likewise.
12927 (neon_vrecps<mode>): Likewise.
12928 (neon_vrsqrts<mode>): Likewise.
12929 (neon_vqabs<mode>): Likewise.
12930 (neon_vqneg<mode>): Likewise.
12931 (neon_vcls<mode>): Likewise.
12932 (clz<mode>2): Likewise.
12933 (popcount<mode>2): Likewise.
12934 (neon_vrecpe<mode>): Likewise.
12935 (neon_vrsqrte<mode>): Likewise.
12936 (neon_vget_lane<mode>_sext_internal): Likewise.
12937 (neon_vget_lane<mode>_zext_internal): Likewise.
12938 (neon_vdup_n<mode>): Likewise.
12939 (neon_vdup_n<mode>): Likewise.
12940 (neon_vdup_nv2di): Likewise.
12941 (neon_vdup_lane<mode>_interal): Likewise.
12942 (*neon_vswp<mode>): Likewise.
12943 (neon_vcombine<mode>): Likewise.
12944 (float<mode><V_cvtto>2): Likewise.
12945 (floatuns<mode><V_cvtto>2): Likewise.
12946 (fix_trunc<mode><V_cvtto>2): Likewise.
12947 (fixuns_trunc<mode><V_cvtto>2
12948 (neon_vcvt<mode>): Likewise.
12949 (neon_vcvt<mode>): Likewise.
12950 (neon_vcvtv4sfv4hf): Likewise.
12951 (neon_vcvtv4hfv4sf): Likewise.
12952 (neon_vcvt_n<mode>): Likewise.
12953 (neon_vcvt_n<mode>): Likewise.
12954 (neon_vmovn<mode>): Likewise.
12955 (neon_vqmovn<mode>): Likewise.
12956 (neon_vqmovun<mode>): Likewise.
12957 (neon_vmovl<mode>): Likewise.
12958 (neon_vmul_lane<mode>): Likewise.
12959 (neon_vmul_lane<mode>): Likewise.
12960 (neon_vmull_lane<mode>): Likewise.
12961 (neon_vqdmull_lane<mode>): Likewise.
12962 (neon_vqdmulh_lane<mode>): Likewise.
12963 (neon_vqdmulh_lane<mode>): Likewise.
12964 (neon_vmla_lane<mode>): Likewise.
12965 (neon_vmla_lane<mode>): Likewise.
12966 (neon_vmlal_lane<mode>): Likewise.
12967 (neon_vqdmlal_lane<mode>): Likewise.
12968 (neon_vmls_lane<mode>): Likewise.
12969 (neon_vmls_lane<mode>): Likewise.
12970 (neon_vmlsl_lane<mode>): Likewise.
12971 (neon_vqdmlsl_lane<mode>): Likewise.
12972 (neon_vext<mode>): Likewise.
12973 (neon_vrev64<mode>): Likewise.
12974 (neon_vrev32<mode>): Likewise.
12975 (neon_vrev16<mode>): Likewise.
12976 (neon_vbsl<mode>_internal): Likewise.
12977 (neon_vshl<mode>): Likewise.
12978 (neon_vqshl<mode>): Likewise.
12979 (neon_vshr_n<mode>): Likewise.
12980 (neon_vshrn_n<mode>): Likewise.
12981 (neon_vqshrn_n<mode>): Likewise.
12982 (neon_vqshrun_n<mode>): Likewise.
12983 (neon_vshl_n<mode>): Likewise.
12984 (neon_vqshl_n<mode>): Likewise.
12985 (neon_vqshlu_n<mode>): Likewise.
12986 (neon_vshll_n<mode>): Likewise.
12987 (neon_vsra_n<mode>): Likewise.
12988 (neon_vsri_n<mode>): Likewise.
12989 (neon_vsli_n<mode>): Likewise.
12990 (neon_vtbl1v8qi): Likewise.
12991 (neon_vtbl2v8qi): Likewise.
12992 (neon_vtbl3v8qi): Likewise.
12993 (neon_vtbl4v8qi): Likewise.
12994 (neon_vtbl1v16qi): Likewise.
12995 (neon_vtbl2v16qi): Likewise.
12996 (neon_vcombinev16qi): Likewise.
12997 (neon_vtbx1v8qi): Likewise.
12998 (neon_vtbx2v8qi): Likewise.
12999 (neon_vtbx3v8qi): Likewise.
13000 (neon_vtbx4v8qi): Likewise.
13001 (*neon_vtrn<mode>_insn): Likewise.
13002 (*neon_vzip<mode>_insn): Likewise.
13003 (*neon_vuzp<mode>_insn): Likewise.
13004 (neon_vld1<mode>): Likewise.
13005 (neon_vld1_lane<mode>): Likewise.
13006 (neon_vld1_lane<mode>): Likewise.
13007 (neon_vld1_dup<mode>): Likewise.
13008 (neon_vld1_dup<mode>): Likewise.
13009 (neon_vld1_dupv2di): Likewise.
13010 (neon_vst1<mode>): Likewise.
13011 (neon_vst1_lane<mode>): Likewise.
13012 (neon_vst1_lane<mode>): Likewise.
13013 (neon_vld2<mode>): Likewise.
13014 (neon_vld2<mode>): Likewise.
13015 (neon_vld2_lane<mode>): Likewise.
13016 (neon_vld2_lane<mode>): Likewise.
13017 (neon_vld2_dup<mode>): Likewise.
13018 (neon_vst2<mode>): Likewise.
13019 (neon_vst2<mode>): Likewise.
13020 (neon_vst2_lane<mode>): Likewise.
13021 (neon_vst2_lane<mode>): Likewise.
13022 (neon_vld3<mode>): Likewise.
13023 (neon_vld3qa<mode>): Likewise.
13024 (neon_vld3qb<mode>): Likewise.
13025 (neon_vld3_lane<mode>): Likewise.
13026 (neon_vld3_lane<mode>): Likewise.
13027 (neon_vld3_dup<mode>): Likewise.
13028 (neon_vst3<mode>): Likewise.
13029 (neon_vst3qa<mode>): Likewise.
13030 (neon_vst3qb<mode>): Likewise.
13031 (neon_vst3_lane<mode>): Likewise.
13032 (neon_vst3_lane<mode>): Likewise.
13033 (neon_vld4<mode>): Likewise.
13034 (neon_vld4qa<mode>): Likewise.
13035 (neon_vld4qb<mode>): Likewise.
13036 (neon_vld4_lane<mode>): Likewise.
13037 (neon_vld4_lane<mode>): Likewise.
13038 (neon_vld4_dup<mode>): Likewise.
13039 (neon_vst4<mode>): Likewise.
13040 (neon_vst4qa<mode>): Likewise.
13041 (neon_vst4qb<mode>): Likewise.
13042 (neon_vst4_lane<mode>): Likewise.
13043 (neon_vst4_lane<mode>): Likewise.
13044 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13045 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13046 (neon_vec_<US>mult_lo_<mode>): Likewise.
13047 (neon_vec_<US>mult_hi_<mode>): Likewise.
13048 (neon_vec_<US>shiftl_<mode>): Likewise.
13049 (neon_unpack<US>_<mode>): Likewise.
13050 (neon_vec_<US>mult_<mode>): Likewise.
13051 (vec_pack_trunc_<mode>): Likewise.
13052 (neon_vec_pack_trunc_<mode>): Likewise.
13053 (neon_vabd<mode>_2): Likewise.
13054 (neon_vabd<mode>_3): Likewise.
13055
13056 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13057
13058 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13059 (load_pair): Update type attribute.
13060 (store_pair): Update type attribute.
13061 * config/aarch64/iterators.md (q): New.
13062
13063 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13064
13065 * config/arm/types.md: Add new types for Neon insns.
13066
13067 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13068 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13069 Sergey Lega <sergey.s.lega@intel.com>
13070 Anna Tikhonova <anna.tikhonova@intel.com>
13071 Ilya Tocar <ilya.tocar@intel.com>
13072 Andrey Turetskiy <andrey.turetskiy@intel.com>
13073 Ilya Verbin <ilya.verbin@intel.com>
13074 Kirill Yukhin <kirill.yukhin@intel.com>
13075 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13076
13077 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13078 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13079 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13080 (rcp14<mode>): New.
13081 (srcp14<mode>): Ditto.
13082 (rsqrt14<mode>): Ditto.
13083 (rsqrt14<mode>): Ditto.
13084 (avx512f_vmscalef<mode>): Ditto.
13085 (avx512f_scalef<mode>): Ditto.
13086 (avx512f_getexp<mode>): Ditto.
13087 (avx512f_sgetexp<mode>): Ditto.
13088 (avx512f_fixupimm<mode>): Ditto.
13089 (avx512f_sfixupimm<mode>): Ditto.
13090 (avx512f_rndscale<mode>): Ditto.
13091 (*avx512er_exp2<mode>): Ditto.
13092 (*avx512er_rcp28<mode>): Ditto.
13093 (avx512er_rsqrt28<mode>): Ditto.
13094 (avx512f_getmant<mode>): Ditto.
13095 (avx512f_getmant<mode>): Ditto.
13096 (avx512f_rndscale<mode>): Fix formatting.
13097
13098 2013-10-15 Martin Jambor <mjambor@suse.cz>
13099
13100 * ipa-utils.h (ipa_edge_within_scc): Declare.
13101 * ipa-cp.c (edge_within_scc): Moved...
13102 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13103
13104 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13105 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13106 Sergey Lega <sergey.s.lega@intel.com>
13107 Anna Tikhonova <anna.tikhonova@intel.com>
13108 Ilya Tocar <ilya.tocar@intel.com>
13109 Andrey Turetskiy <andrey.turetskiy@intel.com>
13110 Ilya Verbin <ilya.verbin@intel.com>
13111 Kirill Yukhin <kirill.yukhin@intel.com>
13112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13113
13114 * config/i386/predicates.md (const_8_to_15_operand): New.
13115 (const_16_to_31_operand): Ditto.
13116 * config/i386/sse.md (V8FI): New.
13117 (V16FI): Ditto.
13118 (reduc_splus_v8df): Ditto.
13119 (reduc_splus_v16sf): Ditto.
13120 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13121 (vec_extract_hi_<mode>): Ditto.
13122 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13123 (vec_set_lo_<mode>): Ditto.
13124 (vec_set_hi_<mode>): Ditto.
13125 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13126 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13127 (avx512f_pshufd_1): Ditto.
13128 (avx512f_broadcast<mode>): Ditto.
13129 (avx512f_broadcast<mode>): Ditto.
13130 (define_split): Split vec_extract_lo into move.
13131 (ssequartermode): Ditto.
13132 (ssedoublemode): Extened with wider modes.
13133 (vec_extract_lo_<mode>): Ditto.
13134
13135 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13137 Sergey Lega <sergey.s.lega@intel.com>
13138 Anna Tikhonova <anna.tikhonova@intel.com>
13139 Ilya Tocar <ilya.tocar@intel.com>
13140 Andrey Turetskiy <andrey.turetskiy@intel.com>
13141 Ilya Verbin <ilya.verbin@intel.com>
13142 Kirill Yukhin <kirill.yukhin@intel.com>
13143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13144
13145 * config/i386/predicates.md (register_or_constm1_operand): New.
13146 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13147 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13148 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13149 UNSPEC_SCATTER_PREFETCH
13150 (VI48_512): New.
13151 (avx512f_ucmp<mode>3): Ditto.
13152 (avx512f_vternlog<mode>): Ditto.
13153 (avx512f_align<mode>): Ditto.
13154 (<shift_insn><mode>3): Ditto.
13155 (avx512f_<rotate>v<mode>): Ditto.
13156 (avx512f_<rotate><mode>): Ditto.
13157 (avx512f_eq<mode>3): Ditto.
13158 (avx512f_eq<mode>3_1): Ditto.
13159 (avx512f_gt<mode>3): Ditto.
13160 (avx512f_testm<mode>3): Ditto.
13161 (avx512f_testnm<mode>3): Ditto.
13162 (avx512pf_gatherpf<mode>): Ditto.
13163 (*avx512pf_gatherpf<mode>_mask): Ditto.
13164 (*avx512pf_gatherpf<mode>): Ditto.
13165 (avx512pf_scatterpf<mode>): Ditto.
13166 (*avx512pf_scatterpf<mode>_mask): Ditto.
13167 (*avx512pf_scatterpf<mode>): Ditto.
13168 (avx512f_vec_dup_gpr<mode>): Ditto.
13169 (clz<mode>2): Ditto.
13170 (conflict<mode>): Ditto.
13171 (REDUC_SMINMAX_MODE): Extened with wider modes.
13172 (reduc_<code>_<mode>): Ditto.
13173 (vlshr<mode>3): Ditto.
13174 (vashl<mode>3): Ditto.
13175
13176 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13178 Sergey Lega <sergey.s.lega@intel.com>
13179 Anna Tikhonova <anna.tikhonova@intel.com>
13180 Ilya Tocar <ilya.tocar@intel.com>
13181 Andrey Turetskiy <andrey.turetskiy@intel.com>
13182 Ilya Verbin <ilya.verbin@intel.com>
13183 Kirill Yukhin <kirill.yukhin@intel.com>
13184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13185
13186 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13187 UNSPEC_SCATTER.
13188 (VI48F_512): New.
13189 (avx512fmaskmode): Ditto.
13190 (bcstscalarsuff): Ditto.
13191 (avx512f_blendm<mode>): Ditto.
13192 (cmp_imm_predicate): Ditto.
13193 (avx512f_cmp<mode>3): Ditto.
13194 (avx512f_vec_dup<mode>): Ditto.
13195 (avx512f_vec_dup_mem<mode>): Ditto.
13196 (avx512f_vpermi2var<mode>3): Ditto.
13197 (avx512f_vpermt2var<mode>3): Ditto.
13198 (vec_init<mode>): Ditto.
13199 (avx512f_gathersi<mode>): Ditto.
13200 (*avx512f_gathersi<mode>): Ditto.
13201 (*avx512f_gathersi<mode>_2): Ditto.
13202 (avx512f_gatherdi<mode>): Ditto.
13203 (*avx512f_gatherdi<mode>): Ditto.
13204 (*avx512f_gatherdi<mode>_2): Ditto.
13205 (avx512f_scattersi<mode>): Ditto.
13206 (*avx512f_scattersi<mode>): Ditto.
13207 (avx512f_scatterdi<mode>): Ditto.
13208 (*avx512f_scatterdi<mode>): Ditto.
13209 (sseintprefix): Extened with wider modes.
13210 (VEC_GATHER_IDXSI): Ditto.
13211 (VEC_GATHER_IDXDI): Ditto.
13212 (VEC_GATHER_SRCDI): Ditto.
13213
13214 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13215 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13216
13217 * config/arm/t-aprofile: New file.
13218 * config.gcc: Handle --with-multilib-list option.
13219
13220 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13221
13222 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13223 the input for r2.
13224
13225 2013-10-15 Richard Biener <rguenther@suse.de>
13226
13227 * tree-loop-distribution.c (build_empty_rdg): Inline into
13228 single user.
13229 (rdg_flag_vertex): Inline into single user.
13230 (rdg_flag_vertex_and_dependent): Likewise.
13231 (build_rdg_partition_for_vertex): Remove processed bitmap.
13232 (rdg_build_partitions): Simplify.
13233
13234 2013-10-15 Richard Biener <rguenther@suse.de>
13235
13236 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13237 Restructure forwarding through conversions and copies to
13238 avoid performing copy-propagation the wrong way. Adjust
13239 recursion invocations.
13240 (forward_propagate_addr_expr): Add argument stating if we
13241 are recursing from a single-use.
13242 (ssa_forward_propagate_and_combine): Adjust.
13243
13244 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13245
13246 * dumpfile.h (gcc::dump_manager): New class, to hold state
13247 relating to dumpfile management.
13248 (get_dump_file_name): Remove in favor of method of dump_manager.
13249 (dump_initialized_p): Likewise.
13250 (dump_start): Likewise.
13251 (dump_finish): Likewise.
13252 (dump_switch_p): Likewise.
13253 (dump_register): Likewise.
13254 (get_dump_file_info): Likewise.
13255 * context.c (gcc::context::context): Construct the dump_manager
13256 instance.
13257 * context.h (gcc::context::get_dumps): New.
13258 (gcc::context::m_dumps): New.
13259 * coverage.c (coverage_init): Port to dump_manager API.
13260 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13261 (extra_dump_files_in_use): Likewise.
13262 (extra_dump_files_alloced): Likewise.
13263 (gcc::dump_manager::dump_manager): New.
13264 (dump_register): Convert to...
13265 (gcc::dump_manager::dump_register): ...method, replacing
13266 function-static next_dump with m_next_dump field.
13267 (get_dump_file_info): Convert to...
13268 (gcc::dump_manager::get_dump_file_info): ...method.
13269 (get_dump_file_name): Convert to...
13270 (gcc::dump_manager::get_dump_file_name): ...method.
13271 (dump_start): Convert to...
13272 (gcc::dump_manager::dump_start): ...method.
13273 (dump_finish): Convert to...
13274 (gcc::dump_manager::dump_finish): ...method.
13275 (dump_begin): Replace body with...
13276 (gcc::dump_manager::dump_begin): ...new method.
13277 (dump_phase_enabled_p): Convert to...
13278 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13279 (dump_phase_enabled_p): Convert to...
13280 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13281 (dump_initialized_p): Convert to...
13282 (gcc::dump_manager::dump_initialized_p): ...method.
13283 (dump_flag_name): Replace body with...
13284 (gcc::dump_manager::dump_flag_name): ...new method.
13285 (dump_enable_all): Convert to...
13286 (gcc::dump_manager::dump_enable_all): ...new method.
13287 (opt_info_enable_passes): Convert to...
13288 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13289 (dump_switch_p_1): Convert to...
13290 (gcc::dump_manager::dump_switch_p_1): ...new method.
13291 (dump_switch_p): Convert to...
13292 (gcc::dump_manager::dump_switch_p): ...new method.
13293 (opt_info_switch_p): Port to dump_manager API.
13294 (enable_rtl_dump_file): Likewise.
13295 * opts-global.c (handle_common_deferred_options): Port to new
13296 dump_manager API.
13297 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13298 (pass_manager::register_one_dump_file): Likewise.
13299 (pass_manager::register_pass): Likewise.
13300 (pass_init_dump_file): Likewise.
13301 (pass_fini_dump_file): Likewise.
13302 * statistics.c (statistics_early_init): Likewise.
13303
13304 2013-10-14 Richard Biener <rguenther@suse.de>
13305
13306 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13307 iterative_hash_canonical_type, gimple_canonical_type_hash,
13308 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13309 gimple_register_canonical_type, print_gimple_types_stats,
13310 free_gimple_type_tables): Move to lto/lto.c
13311 (gt-gimple.h): Do not include.
13312 * gimple.h (gimple_register_canonical_type,
13313 print_gimple_types_stats, free_gimple_type_tables): Remove.
13314 * Makefile.in (GTFILES): Remove gimple.c.
13315
13316 2013-10-14 Travis Snoozy <quandary@remstate.com>
13317
13318 PR target/58716
13319 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13320 scanning for msp430x targets.
13321
13322 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13323
13324 PR bootstrap/58509
13325 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13326 (registers_ok_for_ldd_peep): Move around.
13327 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13328 * config/sparc/sparc.md (widening peepholes): Use it.
13329
13330 2013-10-14 Richard Biener <rguenther@suse.de>
13331
13332 PR middle-end/58712
13333 PR middle-end/55358
13334 * gimple.c (iterative_hash_canonical_type): Make sure to
13335 record the hash into the correct hashtable slot.
13336
13337 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13338
13339 PR rtl-optimization/58662
13340 * combine.c (try_combine): Take into account death nodes on I2 when
13341 splitting a PARALLEL of two independent SETs. Fix dump message.
13342
13343 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13344
13345 PR target/51244
13346 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13347 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13348 extra_objs.
13349 * config/sh/t-sh (sh_treg_combine.o): New entry.
13350 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13351 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13352 (register_sh_passes): New function. Register sh_treg_combine pass.
13353 (sh_option_override): Invoke it.
13354 (sh_canonicalize_comparison): Handle op0_preserve_value.
13355 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13356 opportunities. Canonicalize branch condition.
13357 (nott): Allow only if pseudos can be created for non-SH2A.
13358
13359 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13360
13361 PR target/58690
13362 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13363 (ix86_expand_movmem): Replace copy_addr_to_reg with
13364 ix86_copy_addr_to_reg.
13365 (ix86_expand_setmem): Likewise.
13366
13367 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13368
13369 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13370 provided by ix86_fp_compare_mode instead of CCFPUmode.
13371
13372 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13373
13374 * config/aarch64/arm_neon.h
13375 (vtbx<1,3>_<psu>8): Fix register constriants.
13376
13377 2013-10-11 Jeff Law <law@redhat.com>
13378
13379 PR tree-optimization/58640
13380 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13381 threading paths that cross over two loop entry points.
13382
13383 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13384
13385 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13386 handle vector float as well.
13387 (*vsx_le_perm_load_v4si): Likewise.
13388 (*vsx_le_perm_store_v2di): Likewise.
13389 (*vsx_le_perm_store_v4si): Likewise.
13390
13391 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13392
13393 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13394 directly to circumvent subtract from splat{31} workaround.
13395 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13396 prototype.
13397 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13398 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13399 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13400 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13401 separate big and little endian logic.
13402 (*altivec_vperm_<mode>_internal): New define_insn.
13403 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13404 separate big and little endian logic.
13405 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13406 (vec_permv16qi): Add little endian logic.
13407
13408 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13409
13410 * doc/extend.texi (returns_nonnull): Remove arguments.
13411
13412 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13413 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13414 Sergey Lega <sergey.s.lega@intel.com>
13415 Anna Tikhonova <anna.tikhonova@intel.com>
13416 Ilya Tocar <ilya.tocar@intel.com>
13417 Andrey Turetskiy <andrey.turetskiy@intel.com>
13418 Ilya Verbin <ilya.verbin@intel.com>
13419 Kirill Yukhin <kirill.yukhin@intel.com>
13420 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13421
13422 * config/i386/sse.md (VI48F_256_512): New.
13423 (avx2_permvar<mode>): Change to ...
13424 (<avx2_avx512f>_permvar<mode>): This.
13425
13426 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13427 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13428 Sergey Lega <sergey.s.lega@intel.com>
13429 Anna Tikhonova <anna.tikhonova@intel.com>
13430 Ilya Tocar <ilya.tocar@intel.com>
13431 Andrey Turetskiy <andrey.turetskiy@intel.com>
13432 Ilya Verbin <ilya.verbin@intel.com>
13433 Kirill Yukhin <kirill.yukhin@intel.com>
13434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13435
13436 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13437 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13438 * config/i386/sse.md (VI4_AVX): New.
13439 (sf2simodelower): Ditto.
13440 (sse2_cvtps2dq): Change to ...
13441 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13442
13443 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13445 Sergey Lega <sergey.s.lega@intel.com>
13446 Anna Tikhonova <anna.tikhonova@intel.com>
13447 Ilya Tocar <ilya.tocar@intel.com>
13448 Andrey Turetskiy <andrey.turetskiy@intel.com>
13449 Ilya Verbin <ilya.verbin@intel.com>
13450 Kirill Yukhin <kirill.yukhin@intel.com>
13451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13452
13453 * config/i386/sse.md (V_512): New.
13454 (VI_512): Ditto.
13455 (vcond<V_512:mode><VF_512:mode>): Ditto.
13456 (vcond<V_512:mode><VI_512:mode>): Ditto.
13457 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13458
13459 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13460 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13461 Sergey Lega <sergey.s.lega@intel.com>
13462 Anna Tikhonova <anna.tikhonova@intel.com>
13463 Ilya Tocar <ilya.tocar@intel.com>
13464 Andrey Turetskiy <andrey.turetskiy@intel.com>
13465 Ilya Verbin <ilya.verbin@intel.com>
13466 Kirill Yukhin <kirill.yukhin@intel.com>
13467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13468
13469 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13470 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13471 (FMAMODE): Ditto.
13472 (fma<mode>4): Removed condition.
13473 (fms<mode>4): Ditto.
13474 (fnma<mode>4): Ditto.
13475 (fnms<mode>4): Ditto.
13476 (fma4i_fmadd_<mode>): Ditto.
13477 (*fma_fmadd_<mode>): Ditto.
13478 (*fma_fmsub_<mode>): Ditto.
13479 (*fma_fnmadd_<mode>): Ditto.
13480 (*fma_fnmsub_<mode>): Ditto.
13481 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13482 (*fma_fmaddsub_<mode>): Ditto.
13483 (*fma_fmsubadd_<mode>): Ditto.
13484 (*fmai_fmadd_<mode>): Ditto.
13485 (*fmai_fmsub_<mode>): Ditto.
13486 (*fmai_fnmadd_<mode>): Ditto.
13487 (*fmai_fnmsub_<mode>): Ditto.
13488
13489 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13490 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13491 Sergey Lega <sergey.s.lega@intel.com>
13492 Anna Tikhonova <anna.tikhonova@intel.com>
13493 Ilya Tocar <ilya.tocar@intel.com>
13494 Andrey Turetskiy <andrey.turetskiy@intel.com>
13495 Ilya Verbin <ilya.verbin@intel.com>
13496 Kirill Yukhin <kirill.yukhin@intel.com>
13497 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13498
13499 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13500 (VI124_256): Changed to ...
13501 (VI124_256_48_512): This.
13502 (ssepackmode): Extended with wider modes.
13503 (<code><mode>3): Changed iterator.
13504 (*avx2_<code><mode>3): Ditto.
13505 (vec_pack_trunc_<mode>): Ditto.
13506
13507 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13509 Sergey Lega <sergey.s.lega@intel.com>
13510 Anna Tikhonova <anna.tikhonova@intel.com>
13511 Ilya Tocar <ilya.tocar@intel.com>
13512 Andrey Turetskiy <andrey.turetskiy@intel.com>
13513 Ilya Verbin <ilya.verbin@intel.com>
13514 Kirill Yukhin <kirill.yukhin@intel.com>
13515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13516
13517 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13518 (VI8F_256_512): Ditto.
13519 (abs<mode>2): Changed iterator.
13520 (avx2_perm<mode>): Changed to ...
13521 (<avx2_avx512f>_perm<mode>): This.
13522 (avx2_perm<mode>_1): Changed to ...
13523 (<avx2_avx512f>_perm<mode>_1): This.
13524
13525 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13526 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13527 Sergey Lega <sergey.s.lega@intel.com>
13528 Anna Tikhonova <anna.tikhonova@intel.com>
13529 Ilya Tocar <ilya.tocar@intel.com>
13530 Andrey Turetskiy <andrey.turetskiy@intel.com>
13531 Ilya Verbin <ilya.verbin@intel.com>
13532 Kirill Yukhin <kirill.yukhin@intel.com>
13533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13534
13535 * config/i386/sse.md (VI48_AVX512F): New.
13536 (VI48_AVX2): Changed to ...
13537 (VI48_AVX2_48_AVX512F): This.
13538 (avx2_ashrv<mode>): Changed to ...
13539 (<avx2_avx512f>_ashrv<mode>): This.
13540 (avx2_<shift_insn>v<mode>): Changed to ...
13541 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13542
13543 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13545 Sergey Lega <sergey.s.lega@intel.com>
13546 Anna Tikhonova <anna.tikhonova@intel.com>
13547 Ilya Tocar <ilya.tocar@intel.com>
13548 Andrey Turetskiy <andrey.turetskiy@intel.com>
13549 Ilya Verbin <ilya.verbin@intel.com>
13550 Kirill Yukhin <kirill.yukhin@intel.com>
13551 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13552
13553 * config/i386/sse.md (VI4_AVX512F): New.
13554 (VI8_AVX2_AVX512F): Ditto.
13555 (mul<mode>3): Extended with wider modes.
13556 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13557 (mul<mode>3): Ditto.
13558 (vec_widen_<s>mult_odd_<mode>): Ditto.
13559
13560 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13562 Sergey Lega <sergey.s.lega@intel.com>
13563 Anna Tikhonova <anna.tikhonova@intel.com>
13564 Ilya Tocar <ilya.tocar@intel.com>
13565 Andrey Turetskiy <andrey.turetskiy@intel.com>
13566 Ilya Verbin <ilya.verbin@intel.com>
13567 Kirill Yukhin <kirill.yukhin@intel.com>
13568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13569
13570 * config/i386/sse.md (VI2_AVX512F): New.
13571 (VI124_AVX512F): Ditto.
13572 (sseunpackmode): Extended with wider modes.
13573 (sseunpackfltmode): Ditto.
13574 (vec_unpacks_float_hi_<mode>): Ditto.
13575 (vec_unpacks_float_lo_<mode>): Ditto.
13576 (vec_unpacku_float_hi_<mode>): Ditto.
13577 (vec_unpacku_float_lo_<mode>): Ditto.
13578 (vec_unpacks_lo_<mode>): Ditto.
13579 (vec_unpacks_hi_<mode>): Ditto.
13580 (vec_unpacku_lo_<mode>): Ditto.
13581 (vec_unpacku_hi_<mode>): Ditto.
13582
13583 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13585 Sergey Lega <sergey.s.lega@intel.com>
13586 Anna Tikhonova <anna.tikhonova@intel.com>
13587 Ilya Tocar <ilya.tocar@intel.com>
13588 Andrey Turetskiy <andrey.turetskiy@intel.com>
13589 Ilya Verbin <ilya.verbin@intel.com>
13590 Kirill Yukhin <kirill.yukhin@intel.com>
13591 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13592
13593 * config/i386/i386.md (multdiv): New.
13594 (multdiv_mnemonic): Ditto.
13595 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13596 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13597 (<sse>_vmdiv<mode>3): Removed.
13598
13599 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13601 Sergey Lega <sergey.s.lega@intel.com>
13602 Anna Tikhonova <anna.tikhonova@intel.com>
13603 Ilya Tocar <ilya.tocar@intel.com>
13604 Andrey Turetskiy <andrey.turetskiy@intel.com>
13605 Ilya Verbin <ilya.verbin@intel.com>
13606 Kirill Yukhin <kirill.yukhin@intel.com>
13607 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13608
13609 * config/i386/sse.md (V): Extended with wider modes.
13610 (VF2): Ditto.
13611 (ssehalfvecmode): Ditto.
13612 (i128): Ditto.
13613 (ssepackfltmode): Ditto.
13614 (avx_vec_concat<mode>): Ditto.
13615 (V_256_512): New iterator.
13616 (VF2_512_256): Ditto.
13617 (si2dfmode): New attribute.
13618 (si2dfmodelower): Ditto.
13619 (sf2dfmode): Ditto.
13620 (concat_tg_mode): Ditto.
13621 (floatv4siv4df2): Changed to ...
13622 (float<si2dfmodelower><mode>2): This.
13623 (avx_cvtps2pd256): Changed to ...
13624 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13625 (vec_pack_trunc_v4df): Changed to ...
13626 (vec_pack_trunc_<mode>): This.
13627 (avx_vpermil<mode>): Changed to ...
13628 (<sse2_avx_avx512f>_vpermil<mode>): This.
13629 (<fixsuffix>fix_truncv8dfv8si2): New.
13630 (vec_pack_sfix_trunc_v8df): Ditto.
13631 (avx512f_rndscale<mode>): Ditto.
13632 (avx512f_roundpd512): Ditto.
13633 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13634
13635 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13637 Sergey Lega <sergey.s.lega@intel.com>
13638 Anna Tikhonova <anna.tikhonova@intel.com>
13639 Ilya Tocar <ilya.tocar@intel.com>
13640 Andrey Turetskiy <andrey.turetskiy@intel.com>
13641 Ilya Verbin <ilya.verbin@intel.com>
13642 Kirill Yukhin <kirill.yukhin@intel.com>
13643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13644
13645 * config/i386/i386.md (any_fix): New iterator.
13646 (fixsuffix): New attribute.
13647 * config/i386/sse.md (VF1): Extened with wider modes.
13648 (VI): Ditto.
13649 (VI_AVX2): Ditto.
13650 (VI8): Ditto.
13651 (sseintvecmodelower): Ditto.
13652 (ssescalarmode): Ditto.
13653 (ssescalarnum): Ditto.
13654 (VF1_128_256): New.
13655 (ssexmmmode): Ditto.
13656 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13657 (<sse>_rcp<mode>2): Change iterator.
13658 (rsqrt<mode>2): Ditto.
13659 (<sse>_rsqrt<mode>2): Ditto.
13660 (avx2_vec_dup<mode>): Ditto.
13661 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13662 (round<mode>2_sfix): Ditto.
13663 (avx2_pbroadcast<mode>): Ditto.
13664 (*andnot<mode>3): Handle XI mode.
13665 (*<code><mode>3): Ditto.
13666 (AVXTOSSEMODE): Removed.
13667 (avx_vpermil<mode>): Changed to ...
13668 (<sse2_avx_avx512f>_vpermil<mode>): This.
13669
13670 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13672 Sergey Lega <sergey.s.lega@intel.com>
13673 Anna Tikhonova <anna.tikhonova@intel.com>
13674 Ilya Tocar <ilya.tocar@intel.com>
13675 Andrey Turetskiy <andrey.turetskiy@intel.com>
13676 Ilya Verbin <ilya.verbin@intel.com>
13677 Kirill Yukhin <kirill.yukhin@intel.com>
13678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13679
13680 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13681 (<sse>_comi): Ditto.
13682 (<sse>_ucomi): Ditto.
13683 (sse_cvtss2siq_2): Ditto.
13684 (sse2_cvtsd2si): Ditto.
13685 (sse2_cvtsd2siq): Ditto.
13686 (sse2_cvttsd2si): Ditto.
13687 (sse2_cvttsd2siq): Ditto.
13688 (<shift_insn><mode>3): Ditto.
13689 (sse2_cvtsi2sdq): Update constraint and prefix.
13690 (sse_cvtsi2ss): Update prefix.
13691 (sse_cvtsi2ssq): Ditto.
13692
13693 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13694
13695 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13696 ignore internal calls.
13697
13698 2013-10-11 Richard Biener <rguenther@suse.de>
13699
13700 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13701 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13702 TREE_OVERFLOW is set.
13703
13704 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13705
13706 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13707
13708 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13709 * gimple.h: Likewise.
13710
13711 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13712
13713 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13714 macros.
13715
13716 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13717
13718 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13719 * configure: Regenerate.
13720
13721 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13722
13723 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13724 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13725 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13726 similarly pp_right_paren.
13727 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13728 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13729 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13730 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13731 clauses.
13732 (omp_declare_simd_clauses_equal,
13733 omp_remove_redundant_declare_simd_attrs): New functions.
13734 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13735 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13736 * tree.h (OMP_LOOP_CHECK): Define.
13737 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13738 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13739 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13740 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13741 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13742 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13743 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13744 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13745 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13746 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13747 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13748 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13749 (omp_remove_redundant_declare_simd_attrs): New prototype.
13750 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13751 GIMPLE_OMP_TEAMS): New codes.
13752 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13753 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13754 fields.
13755 (target_nesting_level): New variable.
13756 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13757 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13758 for collapse > 1 static schedule unless ordered.
13759 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13760 (determine_parallel_type): Adjust get_ws_args_for caller.
13761 (install_var_field): Handle mask & 4 for double indirection.
13762 (scan_sharing_clauses): Ignore shared clause on teams construct.
13763 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13764 (create_omp_child_function): If inside target or declare target
13765 constructs, set "omp declare target" attribute on the child function.
13766 (find_combined_for): New function.
13767 (scan_omp_parallel): Handle combined loops.
13768 (scan_omp_target, scan_omp_teams): New functions.
13769 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13770 restrictions and set ctx->cancellable for cancellable constructs.
13771 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13772 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13773 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13774 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13775 (omp_clause_aligned_alignment): New function.
13776 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13777 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13778 on teams constructs. Handle user defined reductions and new
13779 OpenMP 4.0 clauses.
13780 (lower_reduction_clauses): Don't set placeholder to address of ref
13781 if it has already the right type.
13782 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13783 (expand_parallel_call): Use the new non-_start suffixed builtins,
13784 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13785 and GOMP_parallel_end after the call.
13786 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13787 (expand_omp_for_init_counts): Handle combined loops.
13788 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13789 loops.
13790 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13791 end of cancellable loops.
13792 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13793 Likewise. Handle collapse > 1 loops.
13794 (expand_omp_simd): Handle combined loops.
13795 (expand_omp_for): Add inner_stmt argument, adjust callers of
13796 expand_omp_for* functions, use expand_omp_for_static*chunk even
13797 for collapse > 1 unless ordered.
13798 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13799 of cancellable sections.
13800 (expand_omp_single): Remove need_barrier variable, just rely on
13801 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13802 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13803 (expand_omp_atomic_load, expand_omp_atomic_store,
13804 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13805 (expand_omp_target): New function.
13806 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13807 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13808 (build_omp_regions_1): Immediately close region for
13809 GF_OMP_TARGET_KIND_UPDATE.
13810 (maybe_add_implicit_barrier_cancel): New function.
13811 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13812 cancellation.
13813 (lower_omp_single): Likewise. Add clobber after the barrier.
13814 (lower_omp_taskgroup): New function.
13815 (lower_omp_for): Handle combined loops. Adjust
13816 lower_rec_input_clauses caller. Handle cancellation.
13817 (lower_depend_clauses): New function.
13818 (lower_omp_taskreg): Lower depend clauses. Adjust
13819 lower_rec_input_clauses caller. Add clobber after the call. Handle
13820 cancellation.
13821 (lower_omp_target, lower_omp_teams): New functions.
13822 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13823 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13824 and GOMP_cancellation_point calls.
13825 (lower_omp): Fold stmts inside of target region.
13826 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13827 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13828 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13829 (BT_FN_VOID_OMPFN_PTR_UINT,
13830 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13831 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13832 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13833 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13834 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13835 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13836 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13837 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13838 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13839 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13840 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13841 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13842 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13843 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13844 BUILT_IN_GOMP_PARALLEL_END.
13845 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13846 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13847 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13848 GF_OMP_FOR_KIND_DISTRIBUTE.
13849 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13850 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13851 (dump_gimple_omp_return): Print lhs if it has any.
13852 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13853 gimple_omp_atomic_seq_cst_p.
13854 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13855 and GIMPLE_OMP_TEAMS.
13856 * langhooks.c (lhd_omp_mappable_type): New function.
13857 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13858 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13859 hook.
13860 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13861 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13862 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13863 (struct gimplify_omp_ctx): Add combined_loop field.
13864 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13865 on stmts inside of target region.
13866 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13867 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13868 ORT_TARGET and ORT_TARGET_DATA.
13869 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13870 Handle GOVD_MAP.
13871 (omp_notice_threadprivate_variable): Complain about threadprivate
13872 variables in target region.
13873 (omp_notice_variable): Complain about vars with non-mappable type
13874 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13875 (omp_check_private): Ignore ORT_TARGET* regions.
13876 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13877 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13878 (find_combined_omp_for): New function.
13879 (gimplify_omp_for): Handle gimplification of combined loops.
13880 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13881 OMP_TEAMS.
13882 (gimplify_omp_target_update): New function.
13883 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13884 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13885 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13886 (gimplify_body): If fndecl has "omp declare target" attribute, add
13887 implicit ORT_TARGET context around it.
13888 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13889 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13890 * tree-nested.c (convert_nonlocal_reference_stmt,
13891 convert_local_reference_stmt, convert_gimple_call): Handle
13892 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13893 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13894 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13895 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13896 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13897 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13898 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13899 BUILT_IN_GOMP_LOOP_END_CANCEL,
13900 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13901 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13902 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13903 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13904 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13905 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13906 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13907 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13908 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13909 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13910 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13911 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13912 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13913 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13914 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13915 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13916 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13917 gimple_build_omp_teams): New functions.
13918 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13919 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13920 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13921 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13922 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13923 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13924 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13925 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13926 GF_OMP_ATOMIC_SEQ_CST): New.
13927 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13928 gimple_build_omp_teams): New prototypes.
13929 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13930 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13931 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13932 GIMPLE_OMP_SINGLE as end of range.
13933 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13934 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13935 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13936 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13937 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13938 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13939 gimple_omp_target_kind, gimple_omp_target_set_kind,
13940 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13941 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13942 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13943 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13944 gimple_omp_teams_set_clauses): New inlines.
13945 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13946 and GIMPLE_OMP_TASKGROUP.
13947 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13948 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13949 enum omp_clause_proc_bind_kind): New.
13950 (union omp_clause_subcode): Add depend_kind, map_kind and
13951 proc_bind_kind fields.
13952 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13953 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13954 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13955 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13956 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13957
13958 2013-10-10 Teresa Johnson <tejohnson@google.com>
13959
13960 * predict.c (tree_estimate_probability): Add new parameter
13961 for estimate_bb_frequencies.
13962 (estimate_bb_frequencies): Add new parameter to force estimation.
13963 (rebuild_frequencies): When max frequency in function is small,
13964 recompute counts from frequencies.
13965 * predict.h (estimate_bb_frequencies): New parameter.
13966
13967 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13968
13969 * ipa-inline.c (ipa_inline): Fix leak of "order" when
13970 optimizations are disabled.
13971
13972 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13973
13974 * coverage.c (coverage_finish): Fix leak of da_file_name.
13975
13976 2013-10-10 Jan Hubicka <jh@suse.cz>
13977
13978 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
13979 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
13980 Bobcat and generic.
13981
13982 2013-10-10 Jakub Jelinek <jakub@redhat.com>
13983
13984 PR middle-end/58670
13985 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
13986 if any labels are in FALLTHRU_BB, use a special label emitted
13987 immediately after the asm goto insn rather than label_rtx
13988 of the LABEL_DECL.
13989 (expand_asm_stmt): Adjust caller.
13990 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
13991 edge if the last insn in predecessor is a jump with single successor,
13992 but it isn't simplejump_p.
13993
13994 2013-10-10 Richard Biener <rguenther@suse.de>
13995
13996 PR tree-optimization/58656
13997 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
13998
13999 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14000
14001 * gimplify.c: Include expr.h and tm_p.h for targets with special
14002 va-arg padding requirements.
14003
14004 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14005
14006 * tree-flow.h: Move some prototypes to gimple.h.
14007 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14008 * gimple.h: Relocate some prototypes from tree-flow.h
14009 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14010 Move to gimplify.c.
14011 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14012 (build_va_arg_indirect_ref): Relocate and make static.
14013 (std_gimplify_va_arg_expr): Relocate here.
14014 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14015 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14016
14017 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14018
14019 * doc/md.texi: Document the mnemonic attribute.
14020
14021 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14022
14023 PR target/57377
14024 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14025 (set_attr_alternative x ...) when searching for user defined
14026 mnemonic attribute.
14027
14028 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14029
14030 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
14031
14032 2013-10-09 Easwaran Raman <eraman@google.com>
14033
14034 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14035 * cfgexpand.c (defer_stack_allocation): ...use here
14036 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14037
14038 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14039
14040 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14041 (operand_equal_for_value_replacement): New function, extracted from
14042 value_replacement and enhanced to catch more cases.
14043 (value_replacement): Use operand_equal_for_value_replacement.
14044
14045 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14046
14047 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14048 get_max_loop_iterations.
14049
14050 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14051
14052 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14053 Place comment above function.
14054
14055 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14056
14057 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14058 are not related to tree-cfg.c.
14059 * tree-ssa-address.h: New file. Relocate prototypes.
14060 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14061 (addr_for_mem_ref): New. Combine call to get_address_description and
14062 return addr_for_mem_ref.
14063 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14064 * tree-ssa-live.h: Adjust prototypes.
14065 * passes.c: Include tree-ssa-live.h.
14066 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14067 * graphite.c (graphite_transform_loops): Make static.
14068 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14069 make_pass_graphite, pass_data_graphite_transforms,
14070 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14071 * ipa-pure-const.c (warn_function_noreturn): Make static.
14072 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14073 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14074 Relocate from tree-cfg.c
14075 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14076 static.
14077 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14078 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14079 Move to ipa-pure-const.c.
14080 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14081 Relocate from tree-optimize.c.
14082 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14083 make_pass_fixup_cfg): Move to tree-cfg.c.
14084 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14085 Relocate some prototypes.
14086 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14087 * tree-dump.c (dump_function_to_file): Remove prototype.
14088 Add tree-flow.h to the include file.
14089 * tree-dump.h: Remove prototype.
14090 * tree-parloops.h: New File. Add prototypes.
14091 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14092 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14093 from tree-ssa-loop.c.
14094 * tree-predcom.c (run_tree_predictive_commoning,
14095 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14096 Relocate here from tree-ssa-loop.c.
14097 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14098 ssa_name_values.release ().
14099 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14100 (ssa_name_values): Relocate from tree-flow.h.
14101 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14102 * tree-ssa-loop.c (run_tree_predictive_commoning,
14103 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14104 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14105 make_pass_graphite, pass_data_graphite_transforms,
14106 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14107 tree_parallelize_loops, pass_data_parallelize_loops,
14108 make_pass_parallelize_loops): Move to other files.
14109 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14110 moved here.
14111 * tree.h: Remove prototypes from tree-address.c.
14112
14113 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14114
14115 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14116 (struct int_tree_map): Move to tree-hasher.h
14117 (SCALE, LABEL, PERCENT): Move to gimple.h
14118 * tree-flow-inline.h: Delete. Move functions to other files.
14119 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14120 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14121 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14122 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14123 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14124 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14125 * tree-hasher.h: Don't include tree-flow.h.
14126 (struct int_tree_map): Relocate from tree-flow.h.
14127 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14128 tree-flow-inline.h and make static.
14129 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14130 tree-flow-inline.h.
14131 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14132 tree-flow-inline.h and make static.
14133 * tree.h (is_global_var, may_be_aliased): Relocate from
14134 tree-flow-inline.h.
14135 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14136 * value-prof.c: No longer include tree-flow-inline.h.
14137 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14138
14139 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14140
14141 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14142 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14143 (enum move_pos): Move to tree-ssa-loop-im.h
14144 * cfgloop.h: Move some prototypes.
14145 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14146 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14147 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14148 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14149 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14150 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14151 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14152 (enum move_pos): Relocate here.
14153 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14154 tree-ssa-loop.c.
14155 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14156 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14157 make_pass_lim): Relocate here from tree-ssa-loop.c.
14158 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14159 tree-ssa-loop.c.
14160 (loop_edge_to_cancel, unloop_loops): Make static.
14161 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14162 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14163 (tree_complete_unroll, gate_tree_complete_unroll,
14164 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14165 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14166 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14167 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14168 (stmt_invariant_in_loop_p): Remove unused function.
14169 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14170 * tree-ssa-loop-manip.h: New file. Add prototypes.
14171 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14172 (gcov_type_to_double_int): Move to cfgloop.h.
14173 (double_int_cmp, bound_index,
14174 estimate_numbers_of_iterations_loop): Make static.
14175 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14176 (max_loop_iterations): Factor out get_max_loop_iterations.
14177 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14178 cfgloop.c.
14179 * tree-ssa-loop-niter.h: New file. Add prototypes.
14180 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14181 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14182 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14183 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14184 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14185 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14186 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14187 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14188 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14189 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14190 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14191 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14192 pass_data_complete_unroll, make_pass_complete_unroll,
14193 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14194 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14195 tree-ssa-loop-ivcanon.c.
14196 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14197 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14198 tree-ssa-loop-prefetch.c.
14199 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14200 tree-ssa-loop-im.c.
14201 (get_lsm_tmp_name): Relocate and add suffix parameter.
14202 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14203 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14204 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14205 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14206 (get_estimated_loop_iterations): Factor out accessor from
14207 estimated_loop_iterations in tree-ssa-loop-niter.c.
14208 (get_max_loop_iterations): Factor out accessor from
14209 _max_loop_iterations in tree-ssa-niter.c.
14210 * loop-unroll.c (decide_unroll_constant_iterations,
14211 decide_unroll_runtime_iterations, decide_peel_simple,
14212 decide_unroll_stupid): Use new get_* accessors.
14213
14214 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14215
14216 PR tree-optimization/20318
14217 * doc/extend.texi (returns_nonnull): New function attribute.
14218 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14219 attribute.
14220 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14221 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14222
14223 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14224
14225 PR middle-end/58570
14226 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14227 false if both components are bitfields.
14228
14229 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14230
14231 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14232 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14233 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14234 * config/aarch64/aarch64.h
14235 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14236 * config/aarch64/aarch64-simd-builtins.def
14237 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14238
14239 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14240
14241 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14242
14243 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14244
14245 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14246
14247 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14248
14249 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14250 (vneg_f64): New intrinsic.
14251 (vneg_s8): Asm replaced with C.
14252 (vneg_s16): Likewise.
14253 (vneg_s32): Likewise.
14254 (vneg_s64): New intrinsic.
14255 (vnegq_f32): Asm replaced with C.
14256 (vnegq_f64): Likewise.
14257 (vnegq_s8): Likewise.
14258 (vnegq_s16): Likewise.
14259 (vnegq_s32): Likewise.
14260 (vnegq_s64): Likewise.
14261
14262 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14263
14264 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14265
14266 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14267
14268 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14269 packed stack special handling.
14270 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14271 back to fixed stack slots for FPRs saved due to stdarg.
14272
14273 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14274
14275 * config/s390/s390.c (s390_frame_info): Restructure function.
14276
14277 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14278
14279 * config/s390/s390.c (struct s390_frame_layout): New field
14280 gpr_save_slots.
14281 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14282 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14283 regs_ever_clobbered to char*.
14284 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14285 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14286 (s390_register_info): Enable FPR save slots. Move/Copy some
14287 functionality into ...
14288 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14289 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14290 function.
14291 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14292 not imply a stack frame.
14293 (s390_init_frame_layout): Remove variable clobbered_regs.
14294 (s390_update_register_info): Remove function.
14295 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14296 cannot be used for register renaming.
14297 (s390_hard_regno_scratch_ok): New function.
14298 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14299 (s390_initial_elimination_offset): Change offset calculation of
14300 the return address pointer.
14301 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14302 (restore_gprs): Set frame related flag.
14303 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14304 (s390_emit_prologue): Call s390_register_info instead of
14305 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14306 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14307 (s390_optimize_prologue): Call s390_optimize_register_info.
14308 Try to remove also FPR slot save/restore INSNs. Remove frame
14309 related flags from restore INSNs.
14310
14311 2013-10-08 DJ Delorie <dj@redhat.com>
14312
14313 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14314 (movhi): Likewise.
14315
14316 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14317 avoid conflict with the MI use of %c.
14318 * config/rl78/rl78-real.md: change %c to %C throughout.
14319 * config/rl78/rl78-virt.md: Likewise.
14320
14321 2013-10-08 Jan Hubicka <jh@suse.cz>
14322
14323 * config/i386/i386.c (ix86_option_override_internal): Switch
14324 to SSE math for -ffast-math when target ISA supports SSE2.
14325
14326 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14327
14328 * tree-flow.h: Remove some prototypes.
14329 * tree.h: Remove some protypes, add a couple.
14330 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14331 using_eh_for_cleanups_p): Add interface routines for front ends.
14332 * tree-eh.h: New file. Add protoptyes.
14333 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14334 (add_stmt_to_eh_lp_fn): Make static.
14335 (lower_try_finally): Use new using_eh_for_cleanups_p.
14336 * emit-rtl.c: Include tree-eh.h.
14337 * gimple.h: Include tree-eh.h.
14338
14339 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14340
14341 PR tree-optimization/58480
14342 * tree-vrp.c (infer_nonnull_range): New function.
14343 (infer_value_range): Call infer_nonnull_range.
14344
14345 2013-10-08 Dehao Chen <dehao@google.com>
14346
14347 PR tree-optimization/58619
14348 * tree-inline.c (copy_phis_for_bb): Combine location data
14349 only if non-null.
14350
14351 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14352
14353 PR target/58423
14354 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14355 RTX_FRAME_RELATED_P on INSN.
14356
14357 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14358
14359 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14360 (altivec_expand_vec_perm_const): Call it.
14361
14362 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14363
14364 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14365 sequences for LE VSX loads and stores at expand time.
14366 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14367 prototype.
14368 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14369 (rs6000_gen_le_vsx_permute): New.
14370 (rs6000_gen_le_vsx_load): New.
14371 (rs6000_gen_le_vsx_store): New.
14372 (rs6000_gen_le_vsx_move): New.
14373 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14374 (*vsx_le_perm_load_v4si): New.
14375 (*vsx_le_perm_load_v8hi): New.
14376 (*vsx_le_perm_load_v16qi): New.
14377 (*vsx_le_perm_store_v2di): New.
14378 (*vsx_le_perm_store_v4si): New.
14379 (*vsx_le_perm_store_v8hi): New.
14380 (*vsx_le_perm_store_v16qi): New.
14381 (*vsx_xxpermdi2_le_<mode>): New.
14382 (*vsx_xxpermdi4_le_<mode>): New.
14383 (*vsx_xxpermdi8_le_V8HI): New.
14384 (*vsx_xxpermdi16_le_V16QI): New.
14385 (*vsx_lxvd2x2_le_<mode>): New.
14386 (*vsx_lxvd2x4_le_<mode>): New.
14387 (*vsx_lxvd2x8_le_V8HI): New.
14388 (*vsx_lxvd2x16_le_V16QI): New.
14389 (*vsx_stxvd2x2_le_<mode>): New.
14390 (*vsx_stxvd2x4_le_<mode>): New.
14391 (*vsx_stxvd2x8_le_V8HI): New.
14392 (*vsx_stxvd2x16_le_V16QI): New.
14393
14394 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14395
14396 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14397
14398 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14399
14400 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14401 loop to work also for 31bit ABI.
14402 Save the stack pointer for frame_size > 0.
14403
14404 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14405
14406 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14407 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14408 constraint letters from expanders.
14409 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14410 retry count to general_operand.
14411 ("tabort"): Give operand 0 a mode.
14412 ("tabort_1"): Add mode and constraint letter for operand 0.
14413 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14414
14415 2013-10-04 Jeff Law <law@redhat.com>
14416
14417 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14418
14419 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14420 out of ...
14421 (thread_across_edge): Here. Call it.
14422
14423 2013-10-04 Cary Coutant <ccoutant@google.com>
14424
14425 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14426 discarding a location list expression (or a piece of one).
14427
14428 2013-10-03 Jan Hubicka <jh@suse.cz>
14429
14430 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14431 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14432 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14433
14434 2013-10-03 Jan Hubicka <jh@suse.cz>
14435
14436 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14437 accumulate-outgoing-args when producing unwind info.
14438
14439 2013-10-03 Wei Mi <wmi@google.com>
14440
14441 * lra-constraints.c (insert_move_for_subreg): New function
14442 extracted from simplify_operand_subreg.
14443 (simplify_operand_subreg): Add reload for paradoxical subreg.
14444
14445 2013-10-03 Rong Xu <xur@google.com>
14446
14447 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14448 the candidate of builtin_expect such that we should fix the
14449 size/time estimation.
14450 (estimate_function_body_sizes): Do the acutally size/time fix-up
14451 for builtin_expect.
14452
14453 2013-10-03 Rong Xu <xur@google.com>
14454
14455 * predict.c (tree_predict_by_opcode): Get the probability
14456 for builtin_expect from param builtin_expect_probability.
14457 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14458 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14459 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14460
14461 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14462
14463 PR c++/19476
14464 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14465 * calls.c (alloca_call_p): Use get_callee_fndecl.
14466 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14467 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14468 Likewise.
14469 (vrp_visit_stmt): Remove duplicated code.
14470
14471 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14472
14473 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14474 ceildf2, btruncdf2, instead of vsx_* name.
14475
14476 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14477 iterators to only do V2DF and V4SF here. Move the DF code to
14478 rs6000.md where it is combined with SF mode. Replace <VSv> with
14479 just 'v' since only vector operations are handled with these insns
14480 after moving the DF support to rs6000.md.
14481 (vsx_sub<mode>3): Likewise.
14482 (vsx_mul<mode>3): Likewise.
14483 (vsx_div<mode>3): Likewise.
14484 (vsx_fre<mode>2): Likewise.
14485 (vsx_neg<mode>2): Likewise.
14486 (vsx_abs<mode>2): Likewise.
14487 (vsx_nabs<mode>2): Likewise.
14488 (vsx_smax<mode>3): Likewise.
14489 (vsx_smin<mode>3): Likewise.
14490 (vsx_sqrt<mode>2): Likewise.
14491 (vsx_rsqrte<mode>2): Likewise.
14492 (vsx_fms<mode>4): Likewise.
14493 (vsx_nfma<mode>4): Likewise.
14494 (vsx_copysign<mode>3): Likewise.
14495 (vsx_btrunc<mode>2): Likewise.
14496 (vsx_floor<mode>2): Likewise.
14497 (vsx_ceil<mode>2): Likewise.
14498 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14499 (vsx_sminsf3): Likewise.
14500 (vsx_fmadf4): Likewise.
14501 (vsx_fmsdf4): Likewise.
14502 (vsx_nfmadf4): Likewise.
14503 (vsx_nfmsdf4): Likewise.
14504 (vsx_cmpdf_internal1): Likewise.
14505
14506 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14507 simpler to select whether a target has SPE or traditional floating
14508 point support in iterators.
14509 (TARGET_DF_SPE): Likewise.
14510 (TARGET_SF_FPR): Likewise.
14511 (TARGET_DF_FPR): Likewise.
14512 (TARGET_SF_INSN): Macros to say whether floating point support
14513 exists for a given operation for expanders.
14514 (TARGET_DF_INSN): Likewise.
14515
14516 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14517 combining of SF/DF mode operations, using both traditional and VSX
14518 registers.
14519 (Fvsx): Likewise.
14520 (Ff): Likewise.
14521 (Fv): Likewise.
14522 (Fs): Likewise.
14523 (Ffre): Likewise.
14524 (FFRE): Likewise.
14525 (abs<mode>2): Combine SF/DF modes using traditional floating point
14526 instructions. Add support for using the upper DF registers with
14527 VSX support, and SF registers with power8-vector support. Update
14528 expanders for operations supported by both the SPE and traditional
14529 floating point units.
14530 (abs<mode>2_fpr): Likewise.
14531 (nabs<mode>2): Likewise.
14532 (nabs<mode>2_fpr): Likewise.
14533 (neg<mode>2): Likewise.
14534 (neg<mode>2_fpr): Likewise.
14535 (add<mode>3): Likewise.
14536 (add<mode>3_fpr): Likewise.
14537 (sub<mode>3): Likewise.
14538 (sub<mode>3_fpr): Likewise.
14539 (mul<mode>3): Likewise.
14540 (mul<mode>3_fpr): Likewise.
14541 (div<mode>3): Likewise.
14542 (div<mode>3_fpr): Likewise.
14543 (sqrt<mode>3): Likewise.
14544 (sqrt<mode>3_fpr): Likewise.
14545 (fre<Fs>): Likewise.
14546 (rsqrt<mode>2): Likewise.
14547 (cmp<mode>_fpr): Likewise.
14548 (smax<mode>3): Likewise.
14549 (smin<mode>3): Likewise.
14550 (smax<mode>3_vsx): Likewise.
14551 (smin<mode>3_vsx): Likewise.
14552 (negsf2): Delete SF operations that are merged with DF.
14553 (abssf2): Likewise.
14554 (addsf3): Likewise.
14555 (subsf3): Likewise.
14556 (mulsf3): Likewise.
14557 (divsf3): Likewise.
14558 (fres): Likewise.
14559 (fmasf4_fpr): Likewise.
14560 (fmssf4_fpr): Likewise.
14561 (nfmasf4_fpr): Likewise.
14562 (nfmssf4_fpr): Likewise.
14563 (sqrtsf2): Likewise.
14564 (rsqrtsf_internal1): Likewise.
14565 (smaxsf3): Likewise.
14566 (sminsf3): Likewise.
14567 (cmpsf_internal1): Likewise.
14568 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14569 (negdf2): Delete DF operations that are merged with SF.
14570 (absdf2): Likewise.
14571 (nabsdf2): Likewise.
14572 (adddf3): Likewise.
14573 (subdf3): Likewise.
14574 (muldf3): Likewise.
14575 (divdf3): Likewise.
14576 (fred): Likewise.
14577 (rsqrtdf_internal1): Likewise.
14578 (fmadf4_fpr): Likewise.
14579 (fmsdf4_fpr): Likewise.
14580 (nfmadf4_fpr): Likewise.
14581 (nfmsdf4_fpr): Likewise.
14582 (sqrtdf2): Likewise.
14583 (smaxdf3): Likewise.
14584 (smindf3): Likewise.
14585 (cmpdf_internal1): Likewise.
14586 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14587 (btrunc<mode>2): Delete separate expander, and combine with the
14588 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14589 (btrunc<mode>2_fpr): Likewise.
14590 (ceil<mode>2): Likewise.
14591 (ceil<mode>2_fpr): Likewise.
14592 (floor<mode>2): Likewise.
14593 (floor<mode>2_fpr): Likewise.
14594 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14595 Add support for using the upper registers with VSX and
14596 power8-vector. Move insns to be closer to the define_expands. On
14597 VSX systems, prefer the traditional form of FMA over the VSX
14598 version, since the traditional form allows the target not to
14599 overlap with the inputs.
14600 (fms<mode>4_fpr): Likewise.
14601 (nfma<mode>4_fpr): Likewise.
14602 (nfms<mode>4_fpr): Likewise.
14603
14604 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14605 Richard Earnshaw <richard.earnshaw@arm.com>
14606
14607 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14608 (struct mult_cost_table): Likewise.
14609 (struct mem_cost_table): Likewise.
14610 (struct fp_cost_table): Likewise.
14611 (struct vector_cost_table): Likewise.
14612 (cpu_cost_table): Likewise.
14613 * config/arm/arm.opt (mold-rts-costs): New option.
14614 (mnew-generic-costs): Likewise.
14615 * config/arm/arm.c (generic_extra_costs): New table.
14616 (cortexa15_extra_costs): Likewise.
14617 (arm_slowmul_tune): Use NULL as new costs.
14618 (arm_fastmul_tune): Likewise.
14619 (arm_strongarm_tune): Likewise.
14620 (arm_xscale_tune): Likewise.
14621 (arm_9e_tune): Likewise.
14622 (arm_v6t2_tune): Likewise.
14623 (arm_cortex_a5_tune): Likewise.
14624 (arm_cortex_a9_tune): Likewise.
14625 (arm_v6m_tune): Likewise.
14626 (arm_fa726te_tune): Likewise.
14627 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14628 (arm_cortex_tune): Use generict_extra_costs.
14629 (shifter_op_p): New function.
14630 (arm_unspec_cost): Likewise.
14631 (LIBCALL_COST): Define.
14632 (arm_new_rtx_costs): New function.
14633 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14634 table is available. Use old costs otherwise unless mnew-generic-costs
14635 is specified.
14636 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14637 (cpu_cost_table): Declare.
14638
14639 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14640
14641 PR target/58460
14642 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14643 (*subs_mul_imm_<mode>)
14644 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14645 (*sub_<shift>_<mode>)
14646 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14647 Remove k constraint.
14648
14649 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14650
14651 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14652 code.
14653 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14654
14655 2013-10-02 Teresa Johnson <tejohnson@google.com>
14656
14657 * predict.c (probably_never_executed): New function.
14658 (probably_never_executed_bb_p): Invoke probably_never_executed.
14659 (probably_never_executed_edge_p): Ditto.
14660 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14661 Treat profile insanities conservatively.
14662
14663 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14664
14665 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14666
14667 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14668
14669 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14670 use it. Use smaller increase for scratch. Don't increase reject
14671 for early clobber scratch.
14672 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14673 setting eliminated regs except setting fp from hfp.
14674 (lra_eliminate): Check lra_insn_recog_data on NULL.
14675
14676 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14677
14678 PR target/58587
14679 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14680 setting -mvsx-timode by default until the underlying problem is fixed.
14681 (RS6000_CPU, power7 defaults): Likewise.
14682
14683 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14684
14685 * config/x-linux (host-linux.o): Remove header dependencies.
14686 Use $(COMPILE) and $(POSTCOMPILE).
14687 * config/t-linux-android (linux-android.o): Ditto.
14688
14689 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14690
14691 * Makefile.in (expmed.o-warn): Remove.
14692
14693 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14694
14695 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14696 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14697
14698 2013-10-02 Teresa Johnson <tejohnson@google.com>
14699
14700 * dojump.c (do_jump_1): Divide probability between
14701 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14702
14703 2013-10-02 Tom Tromey <tromey@redhat.com>
14704
14705 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14706
14707 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14708
14709 * tree-flow.h: Remove some prototypes.
14710 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14711 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14712 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14713 mark_virtual_phi_result_for_renaming): Relocate here.
14714 * tree-into-ssa.h: Add prototypes.
14715 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14716 single_pred_before_succ_order.
14717 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14718 (nonfreeing_call_p) Move to gimple.c.
14719 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14720 tree-ssa-phiopt.c.
14721 * basic-block.h (single_pred_before_succ_order): Add prototype.
14722 * gimple.c (nonfreeing_call_p): Relocate here.
14723 * gimple.h: Add prototype.
14724 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14725 * tree-ssa-dom.h: New file. Relocate prototypes here.
14726 * tree-ssa.h: Include tree-ssa-dom.h.
14727
14728 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14729
14730 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14731 Use $(COMPILE) and $(POSTCOMPILE).
14732
14733 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14734
14735 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14736
14737 * tree-flow.h: Remove some prototypes.
14738 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14739 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14740 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14741 propagate_tree_value*): Move from here to...
14742 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14743 propagate_tree_value*): Relocate here.
14744 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14745 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14746 * gimple-fold.c: Remove gimple-fold.h from include list.
14747 * tree-vrp.c: Remove gimple-fold.h from include list.
14748 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14749 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14750 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14751 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14752 * sese.c: Add tree-ssa-propagate.h to include list.
14753
14754 2013-10-02 Richard Biener <rguenther@suse.de>
14755
14756 * tree-loop-distribution.c: Include tree-vectorizer.h for
14757 find_loop_location.
14758 (enum partition_kind): Remove PKIND_REDUCTION.
14759 (struct partition_s): Remove has_writes member, add reduction_p member.
14760 (partition_alloc): Adjust.
14761 (partition_builtin_p): Likewise.
14762 (partition_has_writes): Remove.
14763 (partition_reduction_p): New function.
14764 (partition_merge_into): Likewise.
14765 (generate_code_for_partition): Commonize builtin partition
14766 handling tail.
14767 (rdg_cannot_recompute_vertex_p): Remove.
14768 (already_processed_vertex_p): Likewise.
14769 (rdg_flag_vertex): Do not set has_writes.
14770 (classify_partition): Adjust.
14771 (rdg_build_partitions): Do not set has_writes, treat all
14772 partitions as useful.
14773 (distribute_loop): Record number of library calls generated. Adjust.
14774 (tree_loop_distribution): Report number of loops and library
14775 calls generated as opt-info.
14776
14777 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14778
14779 * tree-flow.h: Include new .h files. Move prototypes.
14780 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14781 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14782 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14783 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14784 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14785 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14786 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14787 * tree.h (get_ref_base_and_extent): Move prototype out.
14788 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14789 tree-dfa.h.
14790 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14791 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14792 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14793 * tree-scalar-evolution.c: Include tree.h.
14794 * sese.c: Include tree.h.
14795 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14796 * dwarf2out.c: Include tree-dfa.h.
14797 * tree-chrec.c: Include tree.h.
14798 * tree-data-ref.c: Include tree.h.
14799
14800 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14801
14802 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14803 Fix whitespace.
14804
14805 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14806
14807 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14808 Use $(COMPILE) and $(POSTCOMPILE).
14809 (sol2-cxx.o): Likewise.
14810 (sol2-stubs.o): Likewise.
14811 (sol2.o): Likewise.
14812 * config/x-solaris (host-solaris.o): Likewise.
14813
14814 * config/sparc/t-sparc (sparc.o): Remove.
14815 (sparc-c.o): Remove header dependencies.
14816 Use $(COMPILE) and $(POSTCOMPILE).
14817 * config/sparc/x-sparc: Likewise.
14818
14819 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14820
14821 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14822 * config/arc/arc700.md: Likewise.
14823 * config/arc/arc-modes.def: Likewise.
14824 * config/arc/arc-simd.h: Likewise.
14825 * config/arc/t-arc-uClibc: Likewise.
14826 * config/arc/t-arc-newlib: Likewise.
14827
14828 2013-10-02 Renlin Li <renlin.li@arm.com>
14829
14830 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14831 plus_constant.
14832 (aarch64_expand_epilogue): Likewise.
14833
14834 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14835 Yufeng Zhang <yufeng.zhang@arm.com>
14836
14837 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14838 declaration.
14839 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14840 'base_in' represent a conversion and legal_cast_p_1 holds; set
14841 'base_in' with the returned value from get_unwidened.
14842
14843 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14844
14845 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14846 plus_constant is not used.
14847
14848 2013-10-01 Wei Mi <wmi@google.com>
14849
14850 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14851 * config/i386/i386.md: Add define_peephole2 to
14852 break partial reg stall for cvtss2sd/cvtsd2ss.
14853
14854 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14855
14856 * config/arc/arc.c (pass_arc_ifcvt::clone):
14857 Update for ctxt_ -> m_ctxt change.
14858
14859 2013-10-01 Jeff Law <law@redhat.com>
14860
14861 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14862 outgoing_edge and intermediate_edge fields. Instead store the path.
14863 (redirection_data::hash): Hash on the last edge's destination index.
14864 (redirection_data::equal): Check the entire thread path.
14865 (lookup_redirectio_data): Corresponding changes.
14866 (create_edge_and_update_destination_phis): Likewise.
14867 (thread_single_edge): Likewise.
14868
14869 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14870 Diego Novillo <dnovillo@google.com>
14871
14872 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14873 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14874 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14875 versions of these patterns.
14876
14877 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14878 (__builtin_arc_aligned): Likewise.
14879
14880 * config/arc/arc.md: Expand adc_0 comment stating the intended
14881 purpose and why it isn't ready.
14882 Replace commented out call_value_via_label_mixed with a
14883 plain comment about bl_s.
14884
14885 * config/arc/arc.c (stdio.h): Don't include directly.
14886 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14887 Remove if (1) condition.
14888 (arc_encode_section_info): Fix comment.
14889
14890 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14891
14892 * config/arc/arc.c (arc_conditional_register_usage):
14893 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14894 Also set reg_alloc_order for DMA config regs.
14895
14896 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14897 Jeremy Bennett <jeremy.bennett@embecosm.com>
14898
14899 * doc/install.texi (--with-cpu): Mention ARC.
14900 (arc-*-elf32): New paragraph.
14901 (arc-linux-uclibc): Likewise.
14902 * doc/md.texi (Machine Constraints): Add ARC part.
14903 * doc/invoke.texi: (menu): Add ARC Options.
14904 (Machine Dependent Options) <ARC Options>: Add synopsis.
14905 (node ARC Options): Add.
14906 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14907 (ARC Built-in Functions): New section defining
14908 generic ARC built-in functions.
14909 (ARC SIMD Built-in Functions): New section defining SIMD specific
14910 built-in functions.
14911 (Declaring Attributes of Functions): Extended
14912 description of short_call and long_call attributes for ARC and
14913 added index entries.
14914
14915 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14916 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14917 Joern Rennecke <joern.rennecke@embecosm.com>
14918 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14919 Brendan Kehoe <brendan@zen.org>
14920 Michael Eager <eager@eagercon.com>
14921 Simon Cook <simon.cook@embecosm.com>
14922 Jeremy Bennett <jeremy.bennett@embecosm.com>
14923
14924 * config/arc, common/config/arc: New directories.
14925
14926 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14927 Brendan Kehoe <brendan@zen.org>
14928 Simon Cook <simon.cook@embecosm.com>
14929
14930 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14931
14932 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14933
14934 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14935 * tree-ssa-coalesce.h: New. Move prototype to here.
14936 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14937 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14938 (gimple_can_coalesce_p): Move to...
14939 * gimple.c (gimple_can_coalesce_p): Here.
14940
14941 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14942
14943 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14944 (dump_decl_set): Move to gimple.c.
14945 * gimple.h: Don't include tree-ssa-operands.h.
14946 (dump_decl_set): Add prototype.
14947 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14948 Move to gimple-ssa.h.
14949 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14950 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14951 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14952 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14953 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14954 than PHI_ARG_DEF.
14955 (dump_decl_set): Relocate here.
14956 * gimple-ssa.h: New file.
14957 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14958 Relocate from gimple.h.
14959 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14960 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14961 swap_tree_operands and remove non-ssa path.
14962 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14963 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
14964 swap_ssa_operands.
14965 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
14966 vect_is_simple_reduction_1): Use swap_ssa_operands.
14967 * tree-flow.h: Move various prototypes to tree-phinodes.h.
14968 (enum need_phi_state): Move to tree-into-ssa.c.
14969 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14970 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
14971 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
14972 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
14973 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14974 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14975 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14976 num_imm_uses): Move to ssa-iterators.h.
14977 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
14978 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
14979 tree-phinodes.h.
14980 (op_iter_done, op_iter_next_def, op_iter_next_tree,
14981 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
14982 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
14983 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
14984 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
14985 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
14986 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
14987 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
14988 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
14989 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
14990 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
14991 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
14992 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
14993 (set_phi_nodes): Move to tree-phinodes.h.
14994 * tree-ssa-operands.h (enum ssa_op_iter_type,
14995 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
14996 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
14997 (dump_decl_set): Remove prototype.
14998 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
14999 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15000 (set_phi_nodes): Relocate from tree-flow-inline.h.
15001 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15002 tree-flow-inline.h
15003 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15004 include list. Temporarily add gimple.h to include list.
15005 * ssa-iterators.h: New file.
15006 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15007 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15008 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15009 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15010 Relocate from tree-ssa-operands.h.
15011 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15012 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15013 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15014 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15015 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15016 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15017 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15018 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15019 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15020 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15021 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15022 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15023 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15024 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15025 Relocate from tree-flow-inline.h.
15026 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15027
15028 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15029
15030 * aarch64-simd.md
15031 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15032 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15033 Insert '\t' to output template.
15034 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15035 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15036 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15037 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15038
15039 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15040
15041 * doc/install.texi (Host/target specific installation notes for GCC):
15042 Put @anchor before @heading.
15043 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15044 Use @email for email addresses.
15045
15046 2013-10-01 Jeff Law <law@redhat.com>
15047
15048 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15049 a vec. Only delete the path if we create one without successfully
15050 registering a jump thread.
15051 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15052 as a pointer.
15053 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15054 (paths): New vector of jump threading paths.
15055 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15056 (THREAD_PATH): New accessor macro for the entire thread path.
15057 (lookup_redirection_data): Get intermediate and final outgoing edge
15058 from the thread path.
15059 (create_edge_and_update_destination_phis): Copy the threading path.
15060 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15061 jump threading path.
15062 (ssa_redirect_edges): Get edges and block types from the jump threading
15063 path. Free the path vector.
15064 (thread_block): Get edges from the jump threading path. Look at the
15065 entire path to see if we thread to a loop exit. If we cancel a jump
15066 thread request, then free the path vector.
15067 (thread_single_edge): Get edges and block types from the jump threading
15068 path. Free the path vector.
15069 (thread_through_loop_header): Get edges and block types from the jump
15070 threading path. Free the path vector.
15071 (mark_threaded_blocks): Iterate over the vector of paths and store
15072 the path on the appropriate edge. Get edges and block types from the
15073 jump threading path.
15074 (mark_threaded_blocks): Get edges and block types from the jump
15075 threading path. Free the path vector.
15076 (thread_through_all_blocks): Use the vector of paths rather than
15077 a vector of 3-edge sets.
15078 (register_jump_thread): Accept pointer to a path vector rather
15079 than the path vector itself. Store the path vector for later use.
15080 Simplify.
15081
15082 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15083 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15084
15085 PR target/58574
15086 * config/s390/s390.c (s390_split_branches): Modify check for table
15087 jump insns.
15088 (s390_chunkify_start): Rearrange table jump insn check in order to
15089 deal with compare and branch insns correctly.
15090
15091 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15092
15093 PR target/58578
15094 Revert
15095 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15096 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15097 define_insn_and_split.
15098 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15099 (shiftsi3_compare): New pattern.
15100 (rrx): New pattern.
15101 * config/arm/unspecs.md (UNSPEC_RRX): New.
15102
15103 2013-10-01 Alan Modra <amodra@gmail.com>
15104
15105 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15106 casing inout operands.
15107
15108 2013-10-01 Richard Biener <rguenther@suse.de>
15109
15110 PR tree-optimization/58553
15111 * tree-loop-distribution.c (struct partition_s): Add niter member.
15112 (classify_partition): Populate niter member for the partition
15113 and properly identify whether the relevant store happens before
15114 or after the loop exit.
15115 (generate_memset_builtin): Use niter member from the partition.
15116 (generate_memcpy_builtin): Likewise.
15117
15118 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15119
15120 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15121 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15122
15123 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15124
15125 * basic-block.h (edge_list): Prefix member names with "m_".
15126 * context.h (context): Likewise.
15127 * domwalk.h (dom_walker): Likewise.
15128 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15129 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15130 * hash-table.h (hash_table): Likewise.
15131 * machmode.h (bit_field_mode_iterator): Likewise.
15132 * pass_manager.h (pass_list): Likewise.
15133 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15134 * tree-pass.h (pass_data): Likewise.
15135 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15136 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15137 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15138 * asan.c (pass_data_asan): Update accordingly.
15139 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15140 (control_dependences::control_dependences): Likewise.
15141 (control_dependences::~control_dependences): Likewise.
15142 (control_dependences::~control_dependences): Likewise.
15143 (control_dependences::get_edges_dependent_on): Likewise.
15144 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15145 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15146 * context.c (gcc::context::context): Likewise.
15147 * cprop.c (pass_rtl_cprop::clone): Likewise.
15148 * domwalk.c (dom_walker::walk): Likewise.
15149 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15150 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15151 * mode-switching.c (pass_mode_switching::clone): Likewise.
15152 * passes.c (opt_pass::opt_pass): Likewise.
15153 (pass_manager::pass_manager): Likewise.
15154 * predict.c (pass_strip_predict_hints::clone): Likewise.
15155 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15156 (pass_split_all_insns::clone): Likewise.
15157 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15158 Likewise.
15159 (bit_field_mode_iterator::next_mode): Likewise.
15160 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15161 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15162 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15163 * tree-complex.c (pass_lower_complex::clone): Likewise.
15164 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15165 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15166 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15167 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15168 (pass_fold_builtins::clone): Likewise.
15169 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15170 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15171 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15172 (pass_cd_dce::clone): Likewise.
15173 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15174 (pass_phi_only_cprop::clone): Likewise.
15175 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15176 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15177 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15178 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15179 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15180 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15181 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15182 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15183 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15184 * tree-vrp.c (pass_vrp::clone): Likewise.
15185 * tsan.c (pass_tsan::clone): Likewise.
15186
15187 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15188
15189 PR middle-end/58564
15190 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15191 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15192
15193 PR middle-end/58564
15194 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15195 optimization, punt if sign_bit_p looked through any zero extension.
15196
15197 2013-09-30 Teresa Johnson <tejohnson@google.com>
15198
15199 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15200 Update redirected out edge count in joiner case.
15201 (ssa_redirect_edges): Common the joiner and non-joiner cases
15202 so that joiner case gets profile updates.
15203
15204 2013-09-30 Richard Biener <rguenther@suse.de>
15205
15206 PR tree-optimization/58554
15207 * tree-loop-distribution.c (classify_partition): Require
15208 unconditionally executed stores for memcpy and memset recognition.
15209 (tree_loop_distribution): Calculate dominance info.
15210
15211 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15212
15213 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15214 (NO_PROFILE_COUNTERS): Likewise.
15215 (PROFILE_HOOK): Likewise.
15216 (FUNCTION_PROFILER): Likewise.
15217 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15218
15219 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15220
15221 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15222 calls and defines in TARGET_MACHO conditional.
15223 (load_macho_picbase_di): Likewise.
15224 (reload_macho_picbase): Likewise.
15225 (reload_macho_picbase_si): Likewise.
15226 (reload_macho_picbase_di): Likewise.
15227 (nonlocal_goto_receiver): Likewise.
15228
15229 2013-09-30 Nick Clifton <nickc@redhat.com>
15230
15231 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15232 that use the MSP430X ISA.
15233 (msp430_option_override): Scan -mmcu command line option for any
15234 MCU name that supports the MSP430X ISA.
15235 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15236 -mmcu options which enable the MSP430X ISA.
15237
15238 2013-09-30 Richard Biener <rguenther@suse.de>
15239
15240 PR middle-end/58532
15241 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15242 before looking for setjmp-like calls.
15243
15244 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15245
15246 PR target/10901
15247 * config/darwin-protos.h (machopic_get_function_picbase): New.
15248 * config/darwin.c (machopic_get_function_picbase): New.
15249 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15250 label for a new func. (load_macho_picbase_di): Likewise.
15251 (reload_macho_picbase): New expand.
15252 (reload_macho_picbase_si): New insn.
15253 (reload_macho_picbase_di): New insn.
15254 (nonlocal_goto_receiver): New define and split.
15255 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15256 (unspecv enum): Add UNSPECV_NLGR.
15257
15258 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15259
15260 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15261 that altivec registers are correctly sized on Darwin.
15262
15263 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15264
15265 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15266 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15267 * config/x-darwin (host-darwin.o): Likewise.
15268 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15269 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15270 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15271
15272 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15273
15274 * doc/invoke.texi: Fix usage of @tie{} command.
15275
15276 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15277
15278 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15279
15280 2013-09-28 Jan Hubicka <jh@suse.cz>
15281
15282 * config/i386/x86-tune.def: Add documentation for each of the options;
15283 add whitespace.
15284
15285 2013-09-28 Jan Hubicka <jh@suse.cz>
15286
15287 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15288 generic.
15289 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15290 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15291 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15292 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15293 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15294
15295 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15296
15297 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15298 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15299 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15300 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15301 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15302 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15303 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15304 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15305 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15306 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15307 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15308 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15309 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15310 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15311 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15312 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15313 gimple.h, godump.c, graphite-clast-to-gimple.c,
15314 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15315 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15316 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15317 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15318 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15319 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15320 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15321 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15322 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15323 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15324 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15325 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15326 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15327 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15328 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15329 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15330 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15331 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15332 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15333 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15334 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15335 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15336 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15337 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15338 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15339 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15340 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15341 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15342 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15343 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15344 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15345 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15346 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15347 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15348 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15349 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15350 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15351 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15352 whitespace before "(".
15353
15354 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15355
15356 * expr.h (extract_bit_field): Remove packedp parameter.
15357 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15358 from forward declaration.
15359 (store_split_bit_field): Remove packedp arg from calls to
15360 extract_fixed_bit_field.
15361 (extract_bit_field_1): Remove packedp parameter and packedp
15362 argument from recursive calls and calls to extract_fixed_bit_field.
15363 (extract_bit_field): Remove packedp parameter and corresponding
15364 arg to extract_bit_field_1.
15365 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15366 to issue warnings.
15367 (extract_split_bit_field): Remove packedp arg from call to
15368 extract_fixed_bit_field.
15369 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15370 (copy_blkmode_from_reg): Likewise.
15371 (copy_blkmode_to_reg): Likewise.
15372 (read_complex_part): Likewise.
15373 (store_field): Likewise.
15374 (expand_expr_real_1): Likewise.
15375 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15376 to extract_bit_field.
15377 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15378 call to extract_bit_field.
15379 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15380 call to extract_bit_field.
15381 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15382 and special packedp behavior from -fstrict-volatile-bitfields
15383 documentation.
15384
15385 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15386
15387 * lra-eliminations.c (init_elim_table): Guard value_p.
15388
15389 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15390
15391 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15392 DFmode, DImode, and SFmode in the upper VSX registers based on the
15393 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15394 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15395 of the VSX register handling.
15396
15397 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15398 (f32_sv): Likewise.
15399 (zero_extendsidi2_lfiwzx): Add support for loading into the
15400 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15401 only do VSX memory options on Altivec registers.
15402 (extendsidi2_lfiwax): Likewise.
15403 (extendsfdf2_fpr): Likewise.
15404 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15405 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15406 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15407 (movdi_internal64): Likewise.
15408
15409 2013-09-27 Xinliang David Li <davidxl@google.com>
15410
15411 * opts.c (finish_options): Adjust parameters
15412 according to vect cost model.
15413 (common_handle_option): Set dynamic vect cost
15414 model for FDO.
15415 targhooks.c (default_add_stmt_cost): Compute stmt cost
15416 unconditionally.
15417 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15418 Use helper function.
15419 * tree-vectorizer.h (unlimited_cost_model): New function.
15420 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15421 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15422 function.
15423 (vect_enhance_data_refs_alignment): Ditto.
15424 * flag-types.h: New enum.
15425 * common/config/i386/i386-common.c (ix86_option_init_struct):
15426 No need to initialize vect_cost_model flag.
15427 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15428 unconditionally.
15429
15430 2013-09-27 Diego Novillo <dnovillo@google.com>
15431
15432 * gimple.h (enum ssa_mode): Remove.
15433
15434 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15435
15436 * cfgloop.h (number_of_loops): Fix typo in check for null.
15437
15438 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15439
15440 PR middle-end/58551
15441 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15442 are children of outermost saved_cfun's loop, and set it up to
15443 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15444 if loop != loop0 and SESE region contains bbs that belong to loop0.
15445
15446 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15447
15448 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15449 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15450 (set_address_segment, set_address_base, set_address_index)
15451 (set_address_disp): Accept the argument unconditionally.
15452 (baseness): Remove must_be_base_p and must_be_index_p checks.
15453 (decompose_normal_address): Classify as much as possible in the
15454 main loop.
15455
15456 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15457
15458 * cse.c (count_reg_usage): Handle INT_LIST.
15459 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15460 * reginfo.c (reg_scan_mark_refs): Likewise.
15461 * reload1.c (eliminate_regs_1): Likewise.
15462
15463 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15464
15465 PR middle-end/58547
15466 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15467 signed.
15468
15469 2013-09-27 Richard Biener <rguenther@suse.de>
15470
15471 PR tree-optimization/58459
15472 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15473 restriction not propagating into loops.
15474
15475 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15476
15477 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15478 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15479 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15480
15481 2013-09-26 Richard Biener <rguenther@suse.de>
15482
15483 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15484
15485 2013-09-26 Richard Biener <rguenther@suse.de>
15486
15487 * alias.h (component_uses_parent_alias_set): Rename to ...
15488 (component_uses_parent_alias_set_from): ... this.
15489 * alias.c (component_uses_parent_alias_set): Rename to ...
15490 (component_uses_parent_alias_set_from): ... this and return
15491 the desired parent.
15492 (reference_alias_ptr_type_1): Use the result from
15493 component_uses_parent_alias_set_from instead of stripping
15494 components one at a time.
15495 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15496
15497 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15498
15499 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15500 Move prototypes to...
15501 * tree-ssa-ter.h: New File. Move prototypes here.
15502 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15503 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15504 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15505 from is_replaceable_p.
15506 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15507 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15508 (process_replaceable): Use ter_is_replaceable_p.
15509 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15510 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15511 newly refactored ssa_is_replaceable_p.
15512 * cfgexpand.c: Include tree-outof-ssa.h.
15513 * ssaexpand.h: Delete.
15514
15515 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15516
15517 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15518 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15519 tree-ssa.c
15520 (create_gimple_tmp): Delete.
15521 (get_expr_type, build_assign, build_type_cast): Move to...
15522 * gimple-builder.c: New File.
15523 (get_expr_type): Relocate from gimple.c.
15524 (build_assign, build_type_cast): Change to only create ssanames.
15525 * gimple.h: Move prototypes to...
15526 * gimple-builder.h: New File. Here.
15527 * tree-ssa.h: And here.
15528 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15529 count_uses_and_derefs): Relocate from gimple.c.
15530 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15531 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15532 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15533 gimple_replace_ssa_lhs.
15534 * asan.c: Include gimple-builder.h.
15535 * Makefile.in: Add gimple-builder.o.
15536
15537 2013-09-26 Richard Biener <rguenther@suse.de>
15538
15539 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15540 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15541 (loe_visit_block): Use gcc_checking_assert.
15542 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15543 gimple_assign_ssa_name_copy_p.
15544 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15545 change.
15546
15547 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15548
15549 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15550 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15551
15552 2013-09-26 Richard Biener <rguenther@suse.de>
15553
15554 PR tree-optimization/58539
15555 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15556 the fact that debug statements are not taking part in loop-closed
15557 SSA construction.
15558
15559 2013-09-26 Nick Clifton <nickc@redhat.com>
15560
15561 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15562 time warning message.
15563 (msp430_print_operand_raw): Delete unused letter parameter.
15564 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15565 (msp430_print_operand_address): New function.
15566 (msp430_print_operand): Move address printing code from here to
15567 new function.
15568 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15569 assembler.
15570 (zero_extendpsisi2): Likewise.
15571 (extendpsisi2): New pattern.
15572 (andneghi3): New pattern.
15573
15574 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15575
15576 * config/aarch64/aarch64.opt (mlra): New option.
15577 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15578 (TARGET_LRA_P): Define.
15579
15580 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15581
15582 * expr.c (expand_assignment): Remove obsolete comment.
15583
15584 2013-09-25 Jeff Law <law@redhat.com>
15585
15586 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15587 tree-ssa-threadupdate.h.
15588 (register_jump_thread): Similarly.
15589 * tree-ssa-threadupdate.h: New header file.
15590 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15591 * tree-vrp.c: Likewise.
15592 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15593 (thread_around_empty_blocks): Change type of path vector argument to
15594 an edge,type pair from just an edge. Initialize both elements when
15595 appending to a jump threading path. Tweak references to elements
15596 appropriately.
15597 (thread_across_edge): Similarly. Release memory for the elements
15598 as needed.
15599 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15600 (dump_jump_thread_path): New function broken out from
15601 register_jump_thread.
15602 (register_jump_thread): Use dump_jump_thread_path. Change type of
15603 path vector entries. Search the path for NULL edges and dump
15604 the path if one is found. Tweak the conversion of path to 3-edge
15605 form to use the block copy type information embedded in the path.
15606
15607 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15608
15609 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15610
15611 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15612 Vladimir Makarov <vmakarov@redhat.com>
15613
15614 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15615 from the least significant bit.
15616 (strip_address_mutations): Add bitfield operations handling.
15617 (must_be_index_p): Add shifting and rotate operations handling.
15618 (set_address_base): Use must_be_base_p predicate.
15619 (set_address_index): Use must_be_index_p predicate.
15620
15621 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15623 Sergey Lega <sergey.s.lega@intel.com>
15624 Anna Tikhonova <anna.tikhonova@intel.com>
15625 Ilya Tocar <ilya.tocar@intel.com>
15626 Andrey Turetskiy <andrey.turetskiy@intel.com>
15627 Ilya Verbin <ilya.verbin@intel.com>
15628 Kirill Yukhin <kirill.yukhin@intel.com>
15629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15630
15631 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15632 Use new names.
15633 (ix86_expand_vector_move_misalign): Support new unaligned load and
15634 stores and use new names.
15635 (CODE_FOR_sse2_storedqu): Rename to ...
15636 (CODE_FOR_sse2_storedquv16qi): ... this.
15637 (CODE_FOR_sse2_loaddqu): Rename to ...
15638 (CODE_FOR_sse2_loaddquv16qi): ... this.
15639 (CODE_FOR_avx_loaddqu256): Rename to ...
15640 (CODE_FOR_avx_loaddquv32qi): ... this.
15641 (CODE_FOR_avx_storedqu256): Rename to ...
15642 (CODE_FOR_avx_storedquv32qi): ... this.
15643 * config/i386/i386.md (fpint_logic): New.
15644 * config/i386/sse.md (VMOVE): Extend for AVX512.
15645 (VF): Ditto.
15646 (VF_128_256): New.
15647 (VF_512): Ditto.
15648 (VI_UNALIGNED_LOADSTORE): Ditto.
15649 (sse2_avx_avx512f): Ditto.
15650 (sse2_avx2): Extend for AVX512.
15651 (sse4_1_avx2): Ditto.
15652 (avx2_avx512f): New.
15653 (sse): Extend for AVX512.
15654 (sse2): Ditto.
15655 (sse4_1): Ditto.
15656 (avxsizesuffix): Ditto.
15657 (sseintvecmode): Ditto.
15658 (ssePSmode): Ditto.
15659 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15660 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15661 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15662 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15663 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15664 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15665 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15666 (STORENT_MODE): Extend for AVX512.
15667 (*absneg<mode>2): Replace constraint "x" with "v".
15668 (*mul<mode>3): Ditto.
15669 (*ieee_smin<mode>3): Ditto.
15670 (*ieee_smax<mode>3): Ditto.
15671 (avx_cmp<mode>3): Replace VF with VF_128_256.
15672 (*<sse>_maskcmp<mode>3_comm): Ditto.
15673 (<sse>_maskcmp<mode>3): Ditto.
15674 (<sse>_andnot<mode>3): Extend for AVX512.
15675 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15676 (<code><mode>3, fpint_logic): New.
15677 (*<code><mode>3): Extend for AVX512.
15678 (avx512flogicsuff): New.
15679 (avx512f_<logic><mode>): Ditto.
15680 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15681 VF_128_256.
15682 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15683 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15684 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15685 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15686 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15687 (xop_vpermil2<mode>3): Ditto.
15688 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15689 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15690 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15691 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15692
15693 2013-09-25 Tom Tromey <tromey@redhat.com>
15694
15695 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15696 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15697 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15698 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15699 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15700 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15701 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15702 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15703 (GRAPHITE_HTAB_H): Remove.
15704
15705 2013-09-25 Tom Tromey <tromey@redhat.com>
15706
15707 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15708
15709 2013-09-25 Tom Tromey <tromey@redhat.com>
15710
15711 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15712
15713 2013-09-25 Tom Tromey <tromey@redhat.com>
15714
15715 * config/i386/t-i386 (i386.o): Remove.
15716 (i386-c.o): Use COMPILE and POSTCOMPILE.
15717
15718 2013-09-25 Tom Tromey <tromey@redhat.com>
15719
15720 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15721
15722 2013-09-25 Tom Tromey <tromey@redhat.com>
15723
15724 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15725 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15726 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15727 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15728 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15729 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15730 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15731 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15732 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15733 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15734 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15735 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15736 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15737 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15738 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15739 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15740 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15741 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15742 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15743 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15744 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15745 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15746 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15747 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15748 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15749 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15750 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15751 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15752 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15753 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15754 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15755 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15756 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15757 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15758 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15759 (graphite-clast-to-gimple.o, graphite-dependences.o)
15760 (graphite-interchange.o, graphite-poly.o)
15761 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15762 (graphite-optimize-isl.o, tree-vect-loop.o)
15763 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15764 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15765 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15766 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15767 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15768 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15769 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15770 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15771 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15772 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15773 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15774 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15775 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15776 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15777 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15778 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15779 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15780 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15781 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15782 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15783 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15784 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15785 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15786 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15787 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15788 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15789 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15790 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15791 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15792 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15793 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15794 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15795 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15796 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15797 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15798 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15799 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15800 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15801 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15802 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15803 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15804 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15805 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15806 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15807 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15808 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15809 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15810 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15811 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15812 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15813 (gcov-dump.o): Remove.
15814 (default-c.o): Use COMPILE and POSTCOMPILE.
15815 (CFLAGS-gcc.o): New variable.
15816 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15817
15818 2013-09-25 Tom Tromey <tromey@redhat.com>
15819
15820 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15821 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15822 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15823 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15824 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15825 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15826 (c-family/array-notation-common.o, c-family/stub-objc.o)
15827 (c-family/c-ubsan.o): Remove.
15828
15829 2013-09-25 Tom Tromey <tromey@redhat.com>
15830
15831 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15832
15833 2013-09-25 Tom Tromey <tromey@redhat.com>
15834
15835 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15836 to add -DENABLE_SHARED_LIBGCC.
15837 (gcc.o): Don't use subshell.
15838
15839 2013-09-25 Tom Tromey <tromey@redhat.com>
15840
15841 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15842 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15843 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15844 * configure, config.in: Rebuild.
15845
15846 2013-09-25 Tom Tromey <tromey@redhat.com>
15847
15848 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15849 (COMPILE, POSTCOMPILE): New variables.
15850 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15851 (DEPFILES): New variable.
15852 Include ".Po" files.
15853 * configure.ac: Add checks for dependency checking.
15854 * configure, aclocal.m4: Regenerate.
15855
15856 2013-09-25 Tom Tromey <tromey@redhat.com>
15857
15858 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15859 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15860
15861 2013-09-25 Tom Tromey <tromey@redhat.com>
15862
15863 * Makefile.in (generated_files): Add options.h,
15864 target-hooks-def.h, insn-opinit.h,
15865 common/common-target-hooks-def.h, pass-instances.def,
15866 c-family/c-target-hooks-def.h.
15867
15868 2013-09-25 Jeff Law <law@redhat.com>
15869
15870 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15871 than foo[foo.length () - 1] to access last member in a vec.
15872 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15873
15874 2013-09-25 Richard Biener <rguenther@suse.de>
15875
15876 PR middle-end/58521
15877 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15878
15879 2013-09-25 Jan Hubicka <jh@suse.cz>
15880
15881 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15882 test.
15883
15884 2013-09-25 Marek Polacek <polacek@redhat.com>
15885
15886 PR sanitizer/58420
15887 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15888 when determining the type name.
15889
15890 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15891
15892 * config/sh/sh.md: Fix formatting.
15893
15894 2013-09-24 Xinliang David Li <davidxl@google.com>
15895
15896 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15897 max peel iterations parameter.
15898 * param.def: New parameter.
15899 * doc/invoke.texi: Document New parameter.
15900
15901 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15902
15903 * gimple-pretty-print.c: Various whitespace tweaks.
15904 * tree-core.h: Likewise.
15905 * tree-pretty-print.c: Likewise.
15906 * tree-ssa-alias.c: Likewise.
15907 * tree-ssa-copy.c: Likewise.
15908 * tree-ssanames.c: Likewise.
15909 * tree-ssanames.h: Likewise.
15910 * tree-vrp.c: Likewise.
15911
15912 2013-09-24 Alan Modra <amodra@gmail.com>
15913
15914 PR middle-end/57134
15915 PR middle-end/57586
15916 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15917 for output operands that disallow regs. Don't use EXPAND_WRITE on
15918 inout operands.
15919
15920 2013-09-24 Richard Biener <rguenther@suse.de>
15921
15922 PR middle-end/58513
15923 * tree.c (reference_alias_ptr_type): Move ...
15924 * alias.c (reference_alias_ptr_type): ... here and implement
15925 in terms of the new reference_alias_ptr_type_1.
15926 (ref_all_alias_ptr_type_p): New helper.
15927 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15928 use ref_all_alias_ptr_type_p.
15929 (get_deref_alias_set): Add flag_strict_aliasing check here.
15930 (reference_alias_ptr_type_1): New function, split out from ...
15931 (get_alias_set): ... here.
15932 (alias_ptr_types_compatible_p): New function.
15933 * alias.h (reference_alias_ptr_type): Declare.
15934 (alias_ptr_types_compatible_p): Likewise.
15935 * tree.h (reference_alias_ptr_type): Remove.
15936 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15937 to compare MEM_REF alias types.
15938
15939 2013-09-24 Richard Biener <rguenther@suse.de>
15940
15941 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15942
15943 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15944
15945 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15946 reload helper function arrays into a single array reg_addr.
15947 (reload_fpr_gpr): Likewise.
15948 (reload_gpr_vsx): Likewise.
15949 (reload_vsx_gpr): Likewise.
15950 (struct rs6000_reg_addr): Likewise.
15951 (reg_addr): Likewise.
15952 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15953 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15954 (rs6000_init_hard_regno_mode_ok): Likewise.
15955 (rs6000_secondary_reload_direct_move): Likewise.
15956 (rs6000_secondary_reload): Likewise.
15957
15958 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15959 constraints: wu, ww, and wy. Repurpose wv constraint added during
15960 power8 changes. Put wg constraint in alphabetical order.
15961
15962 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15963 for future work to add ISA 2.07 VSX single precision support.
15964 (-mvsx-scalar-double): Change default from -1 to 1, update
15965 documentation comment.
15966 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
15967 (-mupper-regs-df): New debug switch to control whether DF values
15968 can go in the traditional Altivec registers.
15969 (-mupper-regs-sf): New debug switch to control whether SF values
15970 can go in the traditional Altivec registers.
15971
15972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
15973 and wy constraints.
15974 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
15975 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
15976 Add new constraints, wu/ww/wy. Repurpose wv constraint.
15977 (rs6000_debug_legitimate_address_p): Print if we are running
15978 before, during, or after reload.
15979 (rs6000_secondary_reload): Add a comment.
15980 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
15981
15982 * config/rs6000/constraints.md (wa constraint): Sort w<x>
15983 constraints. Update documentation string.
15984 (wd constraint): Likewise.
15985 (wf constraint): Likewise.
15986 (wg constraint): Likewise.
15987 (wn constraint): Likewise.
15988 (ws constraint): Likewise.
15989 (wt constraint): Likewise.
15990 (wx constraint): Likewise.
15991 (wz constraint): Likewise.
15992 (wu constraint): New constraint for ISA 2.07 SFmode scalar
15993 instructions.
15994 (ww constraint): Likewise.
15995 (wy constraint): Likewise.
15996 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
15997 in the previous submissions.
15998 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
15999
16000 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16001
16002 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16003 (REG_BR_PROB): Say that the probability is stored in an int_list.
16004 * reg-notes.def: Update commentary to mention INT_LIST.
16005 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16006 (INT_LIST): New rtx.
16007 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16008 * rtlanal.c (int_reg_note_p): New function.
16009 (alloc_reg_note): Assert that the note does not have an int argument.
16010 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16011 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16012 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16013 rather than an INSN_LIST. Handle INT_LIST.
16014 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16015 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16016 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16017 Manipulate them as ints rather than rtxes.
16018 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16019 * regmove.c (copy_src_to_dest): Likewise.
16020 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16021
16022 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16023 into the cases that need it.
16024 * config/arm/arm.c (arm_unwind_emit): Likewise.
16025
16026 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16027 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16028 * loop-doloop.c (add_test, doloop_modify): Likewise.
16029 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16030 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16031 * predict.c (combine_predictions_for_insn): Likewise.
16032 * print-rtl.c (print_rtx): Handle INT_LIST.
16033 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16034 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16035 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16036 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16037 (ix86_split_fp_branch, predict_jump): Likewise.
16038 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16039 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16040 * config/spu/spu.c (ea_load_store_inline): Likewise.
16041
16042 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16043 value of a REG_BR_PROB note.
16044 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16045 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16046 * emit-rtl.c (try_split): Likewise.
16047 * predict.c (br_prob_note_reliable_p): Likewise.
16048 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16049 * reorg.c (mostly_true_jump): Likewise.
16050 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16051 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16052 * config/i386/i386.c (ix86_print_operand): Likewise.
16053 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16054 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16055 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16056 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16057 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16058 * config/sparc/sparc.c (output_cbranch): Likewise.
16059 * config/spu/spu.c (get_branch_target): Likewise.
16060 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16061 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16062
16063 2013-09-23 Jan Hubicka <jh@suse.cz>
16064
16065 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16066 for ipa-devirt.
16067 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16068 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16069 of external calls
16070 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16071 (gimple_fold_call): Dump inconsistent devirtualizations; add
16072 sanity check for type based devirtualizations.
16073 * ipa-prop.c: Include ipa-utils.h
16074 (ipa_intraprocedural_devirtualization): Add sanity check.
16075 (try_make_edge_direct_virtual_call): Likewise.
16076
16077 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16078
16079 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16080 assignment statements.
16081
16082 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16083
16084 * gimple-pretty-print.c (dump_ssaname_info): New function.
16085 (dump_gimple_phi): Call it.
16086 (pp_gimple_stmt_1): Likewise.
16087 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16088 (range_info_def): Declare.
16089 * tree-pretty-print.c (pp_double_int): New function.
16090 (dump_generic_node): Call it.
16091 * tree-pretty-print.h (pp_double_int): Declare.
16092 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16093 * tree-ssanames.h (range_info_def): New structure.
16094 (value_range_type): Move definition here.
16095 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16096 Declare.
16097 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16098 initialization.
16099 (set_range_info): New function.
16100 (get_range_info): Likewise.
16101 (duplicate_ssa_name_range_info): Likewise.
16102 (duplicate_ssa_name_fn): Check pointer type and call
16103 duplicate_ssa_name_range_info.
16104 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16105 * tree-vrp.c (value_range_type): Remove definition, now in
16106 tree-ssanames.h.
16107 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16108 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16109 (SSA_NAME_RANGE_INFO): New macro.
16110
16111 2013-09-23 Richard Biener <rguenther@suse.de>
16112
16113 PR tree-optimization/58464
16114 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16115 (phi_trans_add): Change to add conditionally on being not present.
16116 (phi_translate_1): Remove recursion detection here.
16117 (phi_translate): Pre-seed the cache with NULL to catch
16118 recursion here in a more generic way.
16119 (bitmap_find_leader): Adjust comment.
16120 (get_representative_for): Dump value-numbers.
16121 (create_expression_by_pieces): Likewise.
16122 (insert_into_preds_of_block): Likewise.
16123
16124 2013-09-23 Christian Bruel <christian.bruel@st.com>
16125
16126 PR target/58475
16127 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16128 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16129
16130 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16131
16132 Revert r202780:
16133 2013-09-20 Renlin Li <renlin.li@arm.com>
16134
16135 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16136 plus_constant.
16137 (aarch64_expand_epilogue): Likewise.
16138 (aarch64_legitimize_reload_address): Likewise.
16139
16140 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16141
16142 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16143 NULL_TREE before pushing them onto the vector. Likewise for labels.
16144
16145 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16146
16147 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16148 comparison operators when -fno-trapping-math is in effect.
16149 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16150 comparison operators in TFmode and assert that unsupported operators
16151 cannot reach here.
16152 (ia64_print_operand): Likewise.
16153
16154 2013-09-21 Jan Hubicka <jh@suse.cz>
16155
16156 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16157 (sse_typeless_stores): Enable for core
16158 (sse_load0_by_pxor): Likewise.
16159 (four_jump_limit): Disable for core.
16160 (pad_returns): Likewise.
16161 (avoid_vector_decode): Likewise.
16162 (fuse_cmp_and_branch): Enable for cores.
16163 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16164
16165 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16166
16167 PR middle-end/56791
16168 * config/pa/pa.c (pa_option_override): Disable auto increment and
16169 decrement instructions until reload is completed.
16170
16171 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16172 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16173 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16174
16175 2013-09-20 DJ Delorie <dj@redhat.com>
16176 Nick Clifton <nickc@redhat.com>
16177
16178 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16179 (need_to_save): Save bank 0 on interrupts.
16180 (characterize_address): Strip far address wrappers.
16181 (rl78_as_legitimate_address): Likewise.
16182 (transcode_memory_rtx): Likewise.
16183 (rl78_peep_movhi_p): Disable this peephole after devirt.
16184 (rl78_propogate_register_origins): Forget all origins when a
16185 CLOBBER is seen.
16186 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16187 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16188 peephole2's.
16189 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16190 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16191 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16192 relocating.
16193 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16194
16195 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16196
16197 * config/pa/pa.md: In "scc" insn patterns, change output template to
16198 handle const0_rtx in reg_or_0_operand operands.
16199
16200 2013-09-20 Martin Husemann <martin@NetBSD.org>
16201
16202 PR target/56875
16203 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16204 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16205
16206 2013-09-20 Richard Biener <rguenther@suse.de>
16207
16208 PR middle-end/58484
16209 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16210 remembering SSA name version and block index.
16211 (new_scev_info_str): Adjust.
16212 (hash_scev_info): Likewise. Also hash the block index.
16213 (eq_scev_info): Adjust.
16214 (find_var_scev_info): Likewise.
16215 (struct instantiate_cache_entry): Remove.
16216 (struct instantiate_cache_type): Use a htab to map name, block
16217 to chrec.
16218 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16219 (get_instantiated_value_entry): Likewise.
16220 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16221 (instantiate_scev_name): Adjust.
16222
16223 2013-09-20 Jeff Law <law@redhat.com>
16224
16225 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16226
16227 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16228
16229 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16230 Call aarch64_simd_expand_args to update op[argc].
16231
16232 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16233
16234 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16235 plugin argument.
16236
16237 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16238
16239 * gengtype.c (file_rules): Added rule for *.cc files.
16240 (get_output_file_with_visibility): Give fatal message when no
16241 rules found.
16242
16243 2013-09-20 Renlin Li <renlin.li@arm.com>
16244
16245 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16246 (aarch64_expand_epilogue): Likewise.
16247 (aarch64_legitimize_reload_address): Likewise.
16248
16249 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16250
16251 PR middle-end/57748
16252 * expr.c (expand_assignment): Remove misalignp code path.
16253
16254 2013-09-20 Marek Polacek <polacek@redhat.com>
16255
16256 PR sanitizer/58413
16257 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16258 TYPE_PRECISION. Add asserts.
16259
16260 2013-09-20 Richard Biener <rguenther@suse.de>
16261
16262 PR tree-optimization/58453
16263 * tree-loop-distribution.c (distribute_loop): Apply the cost
16264 model for -ftree-loop-distribute-patterns, too.
16265
16266 2013-09-20 Richard Biener <rguenther@suse.de>
16267
16268 PR middle-end/58473
16269 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16270 make type comparison less strict.
16271
16272 2013-09-20 Alan Modra <amodra@gmail.com>
16273
16274 * configure: Regenerate.
16275 * aclocal.m4: Regenerate.
16276
16277 2013-09-20 Marek Polacek <polacek@redhat.com>
16278
16279 PR other/58467
16280 * doc/extend.texi: Document that attribute used is meant to be used
16281 on variables with static storage duration.
16282
16283 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16284
16285 PR tree-optimization/58472
16286 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16287 simd_lane_access set inv_p = false.
16288 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16289 the simduid magic VAR_DECL.
16290
16291 2013-09-19 Jan Hubicka <jh@suse.cz>
16292
16293 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16294
16295 2013-09-17 Jeff Law <law@redhat.com>
16296
16297 * tree-ssa-dom.c (record_temporary_equivalences): New function
16298 split out of dom_opt_dom_walker::after_dom_children.
16299 (dom_opt_dom_walker::thread_across_edge): Move common code
16300 in here from dom_opt_dom_walker::after_dom_children.
16301 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16302
16303 2013-09-19 Jan Hubicka <jh@suse.cz>
16304
16305 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16306 (TARGET_GENERIC): Use PROCESOR_GENERIC
16307 (enum processor_type): Unify generic32 and 64.
16308 * i386.md (cpu): Likewise.
16309 * x86-tune.def (use_leave): Enable for generic32.
16310 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16311 * athlon.md: Change generic64 to generic in all occurences.
16312 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16313 (ix86_target_macros_internal): Likewise.
16314 * driver-i386.c (host_detect_local_cpu): Likewise.
16315 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16316 to ..
16317 (generic_memcpy, generic_memset, generic_cost): This one.
16318 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16319 (m_GENERIC32, m_GENERIC64): Remove.
16320 (m_GENERIC): Turn into one flag.
16321 (processor_target): Unify generic tunnings.
16322 (ix86_option_override_internal): Replace generic32/64 by generic.
16323 (ix86_issue_rate): Likewise.
16324 (ix86_adjust_cost): Likewise.
16325
16326 2013-09-19 Jan Hubicka <jh@suse.cz>
16327
16328 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16329 of speculative flag.
16330
16331 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16332
16333 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16334 GOMP_sections_start, even if !exit_reachable.
16335
16336 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16337
16338 * lra-constraints.c (need_for_all_save_p): Use macro
16339 HARD_REGNO_CALL_PART_CLOBBERED.
16340 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16341 set up pseudo conflict hard regs.
16342
16343 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16344
16345 PR target/58452
16346 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16347 operands.
16348
16349 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16350
16351 PR rtl-optimization/58438
16352 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16353 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16354 from previous subpasses.
16355
16356 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16357
16358 * arm.c (arm_get_frame_offsets): Validate architecture supports
16359 LDRD/STRD before accepting the tuning preference.
16360 (arm_expand_prologue): Likewise.
16361 (arm_expand_epilogue): Likewise.
16362
16363 2013-09-18 Richard Biener <rguenther@suse.de>
16364
16365 PR tree-optimization/58417
16366 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16367 have chrecs with symbols defined in the loop as operands.
16368 (chrec_fold_multiply): Likewise.
16369 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16370 parameters before folding binary operations.
16371 (struct instantiate_cache_entry_hasher): Remove.
16372 (struct instantiate_cache_type): Use a pointer-map.
16373 (instantiate_cache_type::instantiate_cache_type): New function.
16374 (instantiate_cache_type::get): Likewise.
16375 (instantiate_cache_type::set): Likewise.
16376 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16377 (get_instantiated_value_entry): Likewise.
16378 (global_cache): New global.
16379 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16380 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16381 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16382 (instantiate_scev_name): Adjust.
16383 (instantiate_scev): Construct global instead of local cache.
16384 (resolve_mixers): Likewise.
16385
16386 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16387 Paolo Carlini <paolo.carlini@oracle.com>
16388
16389 PR c++/58458
16390 * doc/implement-cxx.texi: Fix references to the C++ standards.
16391
16392 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16393
16394 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16395 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16396 simd_lane_access drs, update also DR_ALIGNED_TO.
16397
16398 2013-09-18 Marek Polacek <polacek@redhat.com>
16399
16400 PR sanitizer/58411
16401 * doc/extend.texi: Document no_sanitize_undefined attribute.
16402 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16403 no_sanitize_undefined attribute.
16404
16405 2013-09-18 Nick Clifton <nickc@redhat.com>
16406
16407 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16408 (ASM_DECLARE_FUNCTION_NAME): Define.
16409
16410 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16411
16412 * compare-elim.c (find_comparison_dom_walker): New class
16413 (find_comparisons_in_bb): Rename to
16414 find_comparison_dom_walker::before_dom_children
16415 (find_comparisons): Adjust
16416 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16417 adjust.
16418 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16419 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16420 (init_walk_dominator_tree): Remove declaration.
16421 (fini_walk_dominator_tree): Remove declaration.
16422 * fwprop.c (single_def_use_dom_walker): New class
16423 (single_def_use_enter_block): Convert to
16424 single_def_use_dom_walker::before_dom_children.
16425 (single_def_use_leave_block): Convert to
16426 single_def_use_dom_walker::after_dom_children.
16427 (build_single_def_use_links): Adjust.
16428 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16429 class.
16430 (find_candidates_in_block): Convert to
16431 find_candidates_dom_walker::before_dom_children.
16432 (execute_strength_reduction): Adjust.
16433 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16434 (sese_dom_walker): New class.
16435 (sese_dom_walker::sese_dom_walker): New constructor.
16436 (sese_dom_walker::~sese_dom_walker): New destructor.
16437 (build_sese_conditions_before): Convert to
16438 sese_dom_walker::before_dom_children.
16439 (build_sese_conditions_after): Convert to
16440 sese_dom_walker::after_dom_children.
16441 (build_poly_scop): Adjust
16442 * tree-into-ssa.c (rewrite_dom_walker): New class
16443 (rewrite_enter_block): Convert to
16444 rewrite_dom_walker::before_dom_children.
16445 (rewrite_leave_block): Convert to
16446 rewrite_dom_walker::after_dom_children.
16447 (rewrite_update_dom_walker): New class.
16448 (rewrite_update_enter_block): Convert to
16449 rewrite_update_dom_walker::before_dom_children.
16450 (rewrite_update_leave_block): Convert to
16451 rewrite_update_dom_walker::after_dom_children.
16452 (rewrite_blocks, rewrite_into_ssa): Adjust.
16453 (mark_def_dom_walker): New class.
16454 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16455 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16456 (mark_def_sites_blocks): Convert to
16457 mark_def_dom_walker::before_dom_children.
16458 (mark_def_site_blocks): Remove.
16459 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16460 (tree_ssa_dominator_optimize): Adjust.
16461 (dom_thread_across_edge): Convert to method
16462 dom_opt_dom_walker::thread_across_edge.
16463 (dom_opt_enter_block): Convert to member function
16464 dom_opt_dom_walker::before_dom_children.
16465 (dom_opt_leave_block): Convert to member function
16466 dom_opt_dom_walker::after_dom_children.
16467 * tree-ssa-dse.c (dse_dom_walker): New class.
16468 (dse_enter_block): Convert to member function
16469 dse_dom_walker::before_dom_children.
16470 (tree_ssa_dse): Adjust.
16471 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16472 (determine_invariantness_stmt): Convert to method
16473 invariantness_dom_walker::before_dom_children.
16474 (determine_invariantness): Remove
16475 (move_computations_dom_walker): New class.
16476 (move_computations_stmt): Convert to method
16477 move_computations_dom_walker::before_dom_children.
16478 (move_computations, tree_ssa_lim): Adjust.
16479 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16480 (nt_init_block): Convert to method
16481 notrappping_dom_walker::before_dom_children.
16482 (nt_fini_block): Convert to method
16483 method nontrapping_dom_walker::after_dom_children.
16484 (get_non_trapping): Adjust.
16485 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16486 (eliminate_bb): Convert to method
16487 eliminate_dom_walker::before_dom_children.
16488 (eliminate_leave_block): Convert to method
16489 eliminate_dom_walker::after_dom_children.
16490 (eliminate): Adjust.
16491 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16492 (strlen_enter_block): Convert to method
16493 strlen_dom_walker::before_dom_children.
16494 (strlen_leave_block): Convert to method
16495 method strlen_dom_walker::after_dom_children.
16496 (tree_ssa_strlen): Adjust.
16497 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16498 (tree_ssa_uncprop): Adjust.
16499 (uncprop_leave_block): Convert to method
16500 uncprop_dom_walker::after_dom_children.
16501 (uncprop_leave_block): Convert to method
16502 uncprop_dom_walker::before_dom_children.
16503
16504 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16505
16506 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16507 branch in same basic block. Check both src and dest of the move insn.
16508
16509 2013-09-17 Nick Clifton <nickc@redhat.com>
16510
16511 * config/rl78/rl78-real.md (bf): New pattern.
16512 (bt): New pattern.
16513 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16514 (rl78_print_operand): Do not put a # before a %B.
16515 * config/rl78/rl78.opt: Tweak doc strings.
16516
16517 2013-09-17 DJ Delorie <dj@redhat.com>
16518
16519 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16520 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16521 (rl78_option_override): Likewise, if -mallregs.
16522 (is_virtual_register): Likewise.
16523 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16524 (REGNO_OK_FOR_BASE_P): Likewise.
16525 * config/rl78/rl78.opt (-mallregs): New.
16526
16527 2013-09-17 Nick Clifton <nickc@redhat.com>
16528
16529 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16530 For interrupt functions: save all call clobbered registers if the
16531 interrupt handler is not a leaf function.
16532 (rl78_expand_prologue): Always recompute the frame information.
16533 For interrupt functions: only select bank 0 if one of the bank 0
16534 registers is going to be psuhed.
16535
16536 2013-09-17 DJ Delorie <dj@redhat.com>
16537
16538 * config/rl78/constraints.md: For each W* constraint, rename to C*
16539 and create a W* constraint that checks for an optional ES: prefix
16540 pattern also.
16541 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16542 (es_addr): New. Used to wrap far addresses.
16543 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16544 (rl78_es_base): New.
16545 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16546 wrapped far addresses.
16547 (rl78_print_operand_1): Unwrap far addresses before processing.
16548 (rl78_lo16): Wrap far addresses in unspecs.
16549 (rl78_es_addr): New.
16550 (rl78_es_base): New.
16551 (insn_ok_now): Check for not-yet-wrapped far addresses.
16552 (transcode_memory_rtx): Properly re-wrap far addresses.
16553
16554 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16555
16556 * config/sparc/t-rtems: Add leon3 multilibs.
16557
16558 2013-09-17 Cong Hou <congh@google.com>
16559
16560 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16561 when checking the dot production pattern. The type of rhs operand
16562 of multiply is now checked correctly.
16563
16564 2013-09-17 Jeff Law <law@redhat.com>
16565
16566 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16567 edge implied equivalences into successor phis.
16568 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16569 here from tree-ssa-threadedge.c.
16570 (mark_threaded_blocks): When threading through a joiner, if both
16571 successors of the joiner's clone reach the same block, verify the
16572 PHI arguments are equal. If not, cancel the jump threading request.
16573 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16574 tree-ssa-threadupdate.c
16575 (thread_across_edge): Don't check PHI argument equality when
16576 threading through joiner block here.
16577
16578 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16579
16580 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16581 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16582 (warn_uninit, warn_uninitialized_vars,
16583 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16584 Move to tree-ssa-uninit.c.
16585 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16586 (has_undefined_value_p): New. Pass dependant parts of
16587 ssa_undefined_value_p.
16588 (uninit_undefined_value_p): Use has_undefined_value_p.
16589 (warn_uninit, warn_uninitialized_vars,
16590 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16591 Move from tree-ssa.c.
16592 * tree-ssa.h: Adjust prototypes.
16593
16594 2013-09-17 Jan Hubicka <jh@suse.cz>
16595
16596 PR middle-end/58332
16597 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16598 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16599 FUNCTION_NOT_OPTIMIZED.
16600 * ipa-inline-analysis.c (compute_inline_parameters): Function
16601 not optimized is not inlinable unless it is alwaysinline.
16602 (inline_analyze_function): Force calls in not optimized
16603 function not inlinable.
16604
16605 2013-09-17 Jan Hubicka <jh@suse.cz>
16606
16607 PR middle-end/58329
16608 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16609 to return NULL.
16610 * ipa.c (function_and_variable_visibility): Likewise.
16611 * ipa-profile.c (ipa_profile): Likewise.
16612
16613 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16614
16615 PR ipa/58398
16616 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16617 attribute, and don't inline the resolver in this case.
16618
16619 2013-09-17 Teresa Johnson <tejohnson@google.com>
16620
16621 * coverage.c (get_coverage_counts): Add missing newline.
16622
16623 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16624
16625 PR tree-optimization/58088
16626 * fold-const.c (mask_with_trailing_zeros): New function.
16627 (fold_binary_loc): Make sure we don't recurse infinitely
16628 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16629 Use mask_with_trailing_zeros where appropriate.
16630
16631 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16632
16633 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16634 of 'prev' var to get better distance estimation.
16635
16636 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16637
16638 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16639 * tree-inline.c (is_parameter_of): New predicate.
16640 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16641 a parameter has been remapped.
16642 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16643 (optimize_inline_calls): Initialize transform_parameter.
16644 (copy_gimple_seq_and_replace_locals): Likewise.
16645 (tree_function_versioning): Likewise.
16646 (maybe_inline_call_in_expr): Likewise.
16647
16648 2013-09-17 Nick Clifton <nickc@redhat.com>
16649
16650 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16651 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16652 interrupt handlers.
16653 (is_attr_func): New function.
16654 (msp430_is_interrupt_func): New function.
16655 (is_naked_func): New function.
16656 (is_reentrant_func): New function.
16657 (is_critical_func): New function.
16658 (msp430_start_function): Add annotations for function attributes.
16659 (msp430_attr): New function.
16660 (msp430_attribute_table): New.
16661 (msp430_function_section): New function.
16662 (TARGET_ASM_FUNCTION_SECTION): Define.
16663 (msp430_builtin): New enum.
16664 (msp430_init_builtins): New function.
16665 (msp430_builtin_devl): New function.
16666 (msp430_expand_builtin): New function.
16667 (TARGET_INIT_BUILTINS): Define.
16668 (TARGET_EXPAND_BUILTINS): Define.
16669 (TARGET_BUILTIN_DECL): Define.
16670 (msp430_expand_prologue): Add support for naked, interrupt,
16671 critical and reentrant functions.
16672 (msp430_expand_epilogue): Likewise.
16673 (msp430_print_operand): Handle 'O' character.
16674 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16675 NO_TRAMPOLINES.
16676 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16677 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16678 (pushm): Use a 'n' rather than an 'i' constraint.
16679 (msp_return): Add generation of the interrupt return instruction.
16680 (disable_interrupts): New pattern.
16681 (enable_interrupts): New pattern.
16682 (push_intr_state): New pattern.
16683 (pop_intr_state): New pattern.
16684 (bic_SR): New pattern.
16685 (bis_SR): New pattern.
16686 * doc/extend.texi: Document MSP430 function attributes and builtin
16687 functions.
16688
16689 2013-09-17 Richard Biener <rguenther@suse.de>
16690
16691 PR tree-optimization/58432
16692 * tree-loop-distribution.c (tree_loop_distribution): Also
16693 scan PHIs for outside loop uses and seed a partition from them.
16694
16695 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16696
16697 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16698 (restructure_reference): Call backtrace_base_for_ref.
16699
16700 2013-09-17 Alan Modra <amodra@gmail.com>
16701
16702 PR target/57589
16703 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16704 patch.
16705
16706 2013-09-16 DJ Delorie <dj@redhat.com>
16707
16708 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16709 vregs location for RL78/G10.
16710 (rl78_expand_prologue): Avoid SEL on G10.
16711 (rl78_expand_epilogue): Likewise.
16712 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16713 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16714 __RL78_G10__ when appropriate.
16715 (ASM_SPEC): Pass -mg10 along to the assembler.
16716 * config/rl78/rl78.md (sel_rb): Disable for G10.
16717 * config/rl78/rl78.opt: Add -mg10 option.
16718 * config/rl78/t-rl78: Add -mg10 multilib.
16719
16720 2013-09-16 Xinliang David Li <davidxl@google.com>
16721
16722 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16723 * omp-low.c (omp_max_vf): Ditto.
16724 (expand_omp_simd): Ditto.
16725 * tree-vectorizer.c (vectorize_loops): Ditto.
16726 (gate_vect_slp): Ditto.
16727 (gate_increase_alignment): Ditto.
16728 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16729 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16730 (gate_tree_vectorize): Name change.
16731 (tree_vectorize): Ditto.
16732 (pass_vectorize::gate): Call new function.
16733 (pass_vectorize::execute): Ditto.
16734 * opts.c: O3 default setting change.
16735 (finish_options): Check new flag.
16736 * doc/invoke.texi: Document new flags.
16737 * common.opt: New flags.
16738
16739 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16740
16741 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16742 (Condition Code): Don't reference it.
16743 * doc/tm.texi: Regenerate.
16744
16745 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16746
16747 PR middle-end/58418
16748 * lra-constraints.c (undo_optional_reloads): Consider all optional
16749 reload even if it did not get a hard reg.
16750
16751 2013-09-16 Teresa Johnson <tejohnson@google.com>
16752
16753 * dumpfile.c (dump_loc): Remove newline emission.
16754 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16755 emission to dump_printf_loc calls where missing.
16756 (vect_mark_for_runtime_alias_test): Ditto.
16757 (vect_analyze_data_ref_dependence): Ditto.
16758 (vect_analyze_data_ref_dependences): Ditto.
16759 (vect_slp_analyze_data_ref_dependence): Ditto.
16760 (vect_slp_analyze_data_ref_dependences): Ditto.
16761 (vect_compute_data_ref_alignment): Ditto.
16762 (vect_update_misalignment_for_peel): Ditto.
16763 (vect_verify_datarefs_alignment): Ditto.
16764 (vector_alignment_reachable_p): Ditto.
16765 (vect_get_data_access_cost): Ditto.
16766 (vect_enhance_data_refs_alignment): Ditto.
16767 (vect_find_same_alignment_drs): Ditto.
16768 (vect_analyze_data_refs_alignment): Ditto.
16769 (vect_analyze_group_access): Ditto.
16770 (vect_analyze_data_ref_access): Ditto.
16771 (vect_analyze_data_ref_accesses): Ditto.
16772 (vect_prune_runtime_alias_test_list): Ditto.
16773 (vect_analyze_data_refs): Ditto.
16774 (vect_create_addr_base_for_vector_ref): Ditto.
16775 (vect_create_data_ref_ptr): Ditto.
16776 (vect_grouped_store_supported): Ditto.
16777 (vect_grouped_load_supported): Ditto.
16778 * value-prof.c (check_counter): Ditto.
16779 (check_ic_target): Ditto.
16780 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16781 (vect_recog_widen_mult_pattern): Ditto.
16782 (vect_recog_widen_sum_pattern): Ditto.
16783 (vect_recog_over_widening_pattern): Ditto.
16784 (vect_recog_widen_shift_pattern): Ditto.
16785 (vect_recog_rotate_pattern): Ditto.
16786 (vect_recog_vector_vector_shift_pattern): Ditto.
16787 (vect_recog_divmod_pattern): Ditto.
16788 (vect_recog_mixed_size_cond_pattern): Ditto.
16789 (vect_recog_bool_pattern): Ditto.
16790 (vect_pattern_recog_1): Ditto.
16791 (vect_pattern_recog): Ditto.
16792 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16793 (vect_is_simple_iv_evolution): Ditto.
16794 (vect_analyze_scalar_cycles_1): Ditto.
16795 (vect_get_loop_niters): Ditto.
16796 (vect_analyze_loop_1): Ditto.
16797 (vect_analyze_loop_form): Ditto.
16798 (vect_analyze_loop_operations): Ditto.
16799 (vect_analyze_loop_2): Ditto.
16800 (vect_analyze_loop): Ditto.
16801 (report_vect_op): Ditto.
16802 (vect_is_slp_reduction): Ditto.
16803 (vect_is_simple_reduction_1): Ditto.
16804 (vect_get_known_peeling_cost): Ditto.
16805 (vect_estimate_min_profitable_iters): Ditto.
16806 (vect_model_reduction_cost): Ditto.
16807 (vect_model_induction_cost): Ditto.
16808 (get_initial_def_for_induction): Ditto.
16809 (vect_create_epilog_for_reduction): Ditto.
16810 (vectorizable_reduction): Ditto.
16811 (vectorizable_induction): Ditto.
16812 (vectorizable_live_operation): Ditto.
16813 (vect_loop_kill_debug_uses): Ditto.
16814 (vect_transform_loop): Ditto.
16815 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16816 (vect_stmt_relevant_p): Ditto.
16817 (process_use): Ditto.
16818 (vect_mark_stmts_to_be_vectorized): Ditto.
16819 (vect_model_simple_cost): Ditto.
16820 (vect_model_promotion_demotion_cost): Ditto.
16821 (vect_model_store_cost): Ditto.
16822 (vect_get_store_cost): Ditto.
16823 (vect_model_load_cost): Ditto.
16824 (vect_get_load_cost): Ditto.
16825 (vect_init_vector_1): Ditto.
16826 (vect_get_vec_def_for_operand): Ditto.
16827 (vect_finish_stmt_generation): Ditto.
16828 (vectorizable_call): Ditto.
16829 (vectorizable_conversion): Ditto.
16830 (vectorizable_assignment): Ditto.
16831 (vectorizable_shift): Ditto.
16832 (vectorizable_operation): Ditto.
16833 (vectorizable_store): Ditto.
16834 (vectorizable_load): Ditto.
16835 (vectorizable_condition): Ditto.
16836 (vect_analyze_stmt): Ditto.
16837 (vect_transform_stmt): Ditto.
16838 (vect_is_simple_use): Ditto.
16839 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16840 (vect_can_advance_ivs_p): Ditto.
16841 (vect_update_ivs_after_vectorizer): Ditto.
16842 (vect_do_peeling_for_loop_bound): Ditto.
16843 (vect_gen_niters_for_prolog_loop): Ditto.
16844 (vect_update_inits_of_drs): Ditto.
16845 (vect_create_cond_for_alias_checks): Ditto.
16846 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16847 (vect_build_slp_tree_1): Ditto.
16848 (vect_supported_load_permutation_p): Ditto.
16849 (vect_analyze_slp_instance): Ditto.
16850 (vect_analyze_slp): Ditto.
16851 (vect_make_slp_decision): Ditto.
16852 (vect_detect_hybrid_slp): Ditto.
16853 (vect_bb_vectorization_profitable_p): Ditto.
16854 (vect_slp_analyze_bb_1): Ditto.
16855 (vect_update_slp_costs_according_to_vf): Ditto.
16856 (vect_get_mask_element): Ditto.
16857 (vect_transform_slp_perm_load): Ditto.
16858 (vect_schedule_slp_instance): Ditto.
16859 (vect_schedule_slp): Ditto.
16860 (vect_slp_transform_bb): Ditto.
16861 * profile.c (read_profile_edge_counts): Ditto.
16862 (compute_branch_probabilities): Ditto.
16863 * coverage.c (get_coverage_counts): Ditto.
16864
16865 2013-09-16 Diego Novillo <dnovillo@google.com>
16866
16867 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16868
16869 2013-09-16 Jan Hubicka <jh@suse.cz>
16870
16871 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16872 abstract functions; for static functions check the presence of body.
16873
16874 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16875
16876 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16877 * config/aarch64/aarch64-simd.md
16878 (aarch64_mla_elt<mode>): New.
16879 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16880 (aarch64_mls_elt<mode>): Likewise.
16881 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16882 (aarch64_fma4_elt<mode>): Likewise.
16883 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16884 (aarch64_fma4_elt_to_128v2df): Likewise.
16885 (aarch64_fma4_elt_to_64df): Likewise.
16886 (fnma<mode>4): Likewise.
16887 (aarch64_fnma4_elt<mode>): Likewise.
16888 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16889 (aarch64_fnma4_elt_to_128v2df): Likewise.
16890 (aarch64_fnma4_elt_to_64df): Likewise.
16891 * config/aarch64/iterators.md (VDQSF): New.
16892 * config/aarch64/arm_neon.h
16893 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16894 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16895
16896 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16897
16898 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16899 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16900 (aarch64_mul3_elt_to_128df): Likewise.
16901 (aarch64_mul3_elt_to_64v2df): Likewise.
16902 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16903 (VMUL): New.
16904 (VMUL_CHANGE_NLANES) Likewise.
16905 (h_con): Likewise.
16906 (f): Likewise.
16907 * config/aarch64/arm_neon.h
16908 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16909
16910 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16911
16912 * config/aarch64/arm_neon.h
16913 (vcvtx_high_f32_f64): Fix parameters.
16914
16915 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16916 Uros Bizjak <ubizjak@gmail.com>
16917
16918 * config/alpha.c: Include tree-ssanames.h.
16919
16920 2013-09-16 Richard Biener <rguenther@suse.de>
16921
16922 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16923 (dot_rdg_1): Handle control_dd.
16924 (create_edge_for_control_dependence): New function.
16925 (create_rdg_edges): Add control dependences if asked for.
16926 (build_rdg): Likewise.
16927 (generate_loops_for_partition): If there are not necessary
16928 control stmts remove all their dependencies.
16929 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16930 (distribute_loop): Pass on control dependences.
16931 (tree_loop_distribution): Compute control dependences and remove
16932 restriction on number of loop nodes.
16933
16934 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16935
16936 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16937 for internal calls.
16938
16939 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16940
16941 * cse.c (try_const_anchors): Punt on CC modes.
16942
16943 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16944
16945 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16946
16947 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16948
16949 PR target/58382
16950 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16951 calls to word_mode.
16952
16953 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16954
16955 PR target/48094
16956 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16957 seen.
16958 (darwin_objc1_section): Likewise.
16959 (darwin_file_end): Emit Image Info section when required.
16960
16961 2013-09-14 Jan Hubicka <jh@suse.cz>
16962
16963 * tree-into-ssa.c (gate_into_ssa): New.
16964 (pass_data_build_ssa): Use it.
16965 * cgraph.h (expand_thunk): Update prototype.
16966 * cgraphunit.c (analyze_function): Expand thunks early.
16967 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
16968 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
16969 set lowered flag; do not add new function.
16970 (assemble_thunks_and_aliases): Update.
16971 * tree-ssa.c (gate_init_datastructures): New gate.
16972 (pass_data_init_datastructures): Use it.
16973
16974 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16975
16976 PR target/58269
16977 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
16978 xmm register set described in the psABI.
16979
16980 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
16981
16982 * dwarf2out.c (should_emit_struct_debug): Add check
16983 for type_decl variable is not NULL.
16984
16985 2013-09-13 Jacek Caban <jacek@codeweavers.com>
16986
16987 * config.gcc: Use new winnt-c.c target hooks
16988 * config/t-winnt: New file
16989 * config/winnt-c.c: New file
16990 * doc/tm.texi.in: Document new hook
16991 * doc/tm.texi: Regenerated
16992
16993 2013-09-13 Jan Hubicka <jh@suse.cz>
16994
16995 PR middle-end/58094
16996 * ipa-inline.c (check_callers): New function.
16997 (check_caller_edge): Remove.
16998 (want_inline_function_to_all_callers_p): Also permit alises that are
16999 called dirrectly.
17000 (inline_to_all_callers): Terminate the walk when devirtualization
17001 introduce new calls.
17002
17003 2013-09-13 Jan Hubicka <jh@suse.cz>
17004
17005 * ipa-inline-analysis.c (struct growth_data): Add node.
17006 (do_estimate_growth_1): Fix detection of recursion.
17007
17008 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17009
17010 PR tree-optimization/58392
17011 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17012 to avoid shadowing of outer loop variable. If
17013 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17014 replace_by_duplicate_decl simduid of loops that have it set and
17015 set dest_cfun->has_simduid_loops and/or
17016 dest_cfun->has_force_vect_loops.
17017 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17018 instead of maybe_lookup_decl.
17019 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17020 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17021 call. Copy over force_vect and copy and remap simduid. Set
17022 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17023 (copy_cfg_body): Remove blocks_to_copy argument. Use
17024 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17025 caller. Don't set cfun->has_simduid_loops and/or
17026 cfun->has_force_vect_loops here.
17027 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17028 caller.
17029 (expand_call_inline, tree_function_versioning): Adjust copy_body
17030 callers.
17031
17032 2013-09-13 Martin Jambor <mjambor@suse.cz>
17033
17034 PR bootstrap/58388
17035 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17036 the assert if the edge was a speculative one.
17037
17038 2013-09-13 Richard Biener <rguenther@suse.de>
17039
17040 * tree-data-ref.h (known_dependences_p): Move here ...
17041 * tree-loop-distribution.c (known_dependences_p): ... from here.
17042 (dump_rdg_component, debug_rdg_component): Remove.
17043 (dump_rdg): Adjust.
17044 (generate_loops_for_partition): Use gimple_uid instead of
17045 relying on matching stmt visit order.
17046 (rdg_build_partitions): Take starting stmt vector.
17047 (ldist_gen): Merge into ...
17048 (distribute_loop): ... this function. Do not compute starting
17049 vertices vector.
17050 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17051
17052 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17053
17054 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17055 Set type attribute correctly. Set predicable_short_it attribute.
17056 (cmpsi_shiftsi): Remove %? from output template.
17057
17058 2013-09-13 Richard Biener <rguenther@suse.de>
17059
17060 * tree-loop-distribution.c (struct rdg_component,
17061 rdg_defs_used_in_other_loops_p, free_rdg_components,
17062 rdg_build_components): Remove.
17063 (stmts_from_loop): Do not record virtual PHIs.
17064 (generate_loops_for_partition): Skip virtual PHIs.
17065 (build_rdg_partition_for_component): Rename to ...
17066 (build_rdg_partition_for_vertex): ... this and adjust.
17067 (rdg_build_partitions): Take a vector of starting vertices
17068 instead of components. Remove unnecessary leftover handling.
17069 (ldist_gen): Do not build components or record other stores.
17070 (distribute_loop): Do not distribute loops containing stmts
17071 with side-effects.
17072
17073 2013-09-13 Christian Bruel <christian.bruel@st.com>
17074
17075 PR target/58314
17076 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17077
17078 2013-09-13 Kai Tietz <ktietz@redhat.com>
17079
17080 * config.gcc: Separate cases for mingw and cygwin targets,
17081 and add 64-bit cygwin target case.
17082
17083 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17084 dll-export inline-functions.
17085 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17086
17087 2013-09-13 Jeff Law <law@redhat.com>
17088
17089 PR middle-end/58387
17090 Revert:
17091 2013-09-06 Jeff Law <law@redhat.com>
17092
17093 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17094 edge implied equivalences into successor phis.
17095
17096 2013-09-12 DJ Delorie <dj@redhat.com>
17097
17098 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17099 separators.
17100
17101 2013-09-12 Brooks Moses <bmoses@google.com>
17102
17103 PR driver/42955
17104 * Makefile.in: Do not install driver binaries in $(target)/bin.
17105
17106 2013-09-12 DJ Delorie <dj@redhat.com>
17107
17108 * config/rl78/rl78.opt (mrelax): New.
17109 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17110 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17111
17112 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17113 between SP and FP.
17114 (rl78_expand_epilogue): Likewise.
17115
17116 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17117
17118 PR middle-end/58335
17119 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17120 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17121 pointer elimination with using remove_reg_equal_offset_note.
17122
17123 2013-09-12 DJ Delorie <dj@redhat.com>
17124
17125 * config/msp430/: New port.
17126 * config.gcc (msp430): Added.
17127 * doc/invoke.texi: Document MSP430 options.
17128 * doc/install.texi: Document msp430-elf
17129 * doc/md.texi: Document msp430-elf
17130 * doc/contrib.texi: Document msp430-elf
17131
17132 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17133 PSImode.
17134
17135 2013-09-12 Martin Jambor <mjambor@suse.cz>
17136
17137 PR ipa/58389
17138 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17139 reference descriptor is NULL.
17140 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17141 edge to NULL.
17142
17143 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17144
17145 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17146 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17147 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17148 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17149 make_temp_ssa_name): move to tree-ssanames.h
17150 * tree-ssa-alias.h: Move prototype.
17151 * tree-ssa.h: Include tree-ssanames.h.
17152 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17153 * tree-ssanames.h: New. Move items from tree-flow*.h
17154 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17155
17156 2013-09-12 Richard Biener <rguenther@suse.de>
17157
17158 PR tree-optimization/58404
17159 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17160 propagate non-invariant addresses into dereferences wrapped
17161 in component references.
17162
17163 2013-09-12 Richard Biener <rguenther@suse.de>
17164
17165 PR tree-optimization/58402
17166 * passes.def: Move pass_late_warn_uninitialized later.
17167
17168 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17169
17170 * tree-ssa.h: New. Move content from tree-flow.h and
17171 tree-flow-inline.h.
17172 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17173 Move prototypes belonging to tree-ssa.c.
17174 * tree-flow-inline.h (redirect_edge_var_map_def,
17175 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17176 tree-ssa.h.
17177 * gimple.h: Adjust prototypes.
17178 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17179 to...
17180 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17181 * tree.h: Move prototype to tree-ssa.h.
17182 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17183 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17184 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17185 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17186 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17187 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17188 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17189 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17190 graphite-blocking.c, graphite-clast-to-gimple.c,
17191 graphite-dependences.c, graphite-interchange.c,
17192 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17193 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17194 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17195 ipa-reference.c, ipa-split.c, ipa-utils.c,
17196 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17197 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17198 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17199 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17200 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17201 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17202 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17203 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17204 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17205 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17206 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17207 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17208 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17209 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17210 value-prof.c, var-tracking.c,
17211 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17212
17213 2013-09-12 Richard Biener <rguenther@suse.de>
17214
17215 PR tree-optimization/58396
17216 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17217 (build_rdg): Take a loop-nest parameter, fix memleaks.
17218 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17219
17220 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17221
17222 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17223 for SLM.
17224
17225 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17226
17227 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17228 The FMA instruction names should have a 'v' prefix.
17229
17230 2013-09-12 Richard Biener <rguenther@suse.de>
17231
17232 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17233 (dot_rdg): Use popen instead of system in optional code.
17234 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17235 (already_processed_vertex_p): Adjust.
17236 (has_anti_or_output_dependence, predecessor_has_mem_write,
17237 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17238 rdg_flag_uses): Remove.
17239 (rdg_flag_vertex): Simplify.
17240 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17241 remove recursion.
17242 (build_rdg_partition_for_component): Process the first vertex
17243 of a component only.
17244 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17245
17246 2013-09-12 Alan Modra <amodra@gmail.com>
17247
17248 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17249
17250 2013-09-11 DJ Delorie <dj@redhat.com>
17251 Nick Clifton <nickc@redhat.com>
17252
17253 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17254 (rl78_stack_based_mem): New.
17255 * config/rl78/constraints.md (Iv08): New.
17256 (Iv16): New.
17257 (Iv24): New.
17258 (Is09): New.
17259 (Is17): New.
17260 (Is25): New.
17261 (ISsi): New.
17262 (IShi): New.
17263 (ISqi): New.
17264 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17265 (movhi): Likewise.
17266 (movsi): Change from expand to insn-and-split.
17267 (ashrsi3): Clobber AX.
17268 (lshrsi3): New.
17269 (ashlsi3): New.
17270 (cbranchsi4): New.
17271 * config/rl78/rl78.md (CC_REG): Fix.
17272 (addsi3): Allow memory and immediate operands.
17273 (addsi3_internal): Split into...
17274 (addsi3_internal_virt): ...new, and ...
17275 (addsi3_internal_real): ...new.
17276 (subsi): New.
17277 (subsi3_internal_virt): New.
17278 (subsi3_internal_real): New.
17279 (mulsi3): Add memory operand.
17280 (mulsi3_rl78): Likewise.
17281 (mulsi3_g13): Likewise.
17282 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17283 (cbranchqi4_real): Add more constraint options.
17284 (cbranchhi4_real): Expand pattern.
17285 (cbranchhi4_real_signed): New.
17286 (cbranchhi4_real_inverted): New.
17287 (cbranchsi4_real_lt): New.
17288 (cbranchsi4_real_ge): New.
17289 (cbranchsi4_real_signed): New.
17290 (cbranchsi4_real): New.
17291 (peephole2): New.
17292 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17293 constant shifts.
17294 (lshrsi3_virt): Likewise.
17295 (ashlsi3_virt): Likewise.
17296 (cbranchqi4_virt_signed): New.
17297 (cbranchhi4_virt_signed): New.
17298 (cbranchsi4_virt): New.
17299 * config/rl78/rl78.c: Whitespace fixes throughout.
17300 (move_elim_pass): New.
17301 (pass_data_rl78_move_elim): New.
17302 (pass_rl78_move_elim): New.
17303 (make_pass_rl78_move_elim): New.
17304 (rl78_devirt_info): Run devirt earlier.
17305 (rl78_move_elim_info): New.
17306 (rl78_asm_file_start): Register it.
17307 (rl78_split_movsi): New.
17308 (rl78_as_legitimate_address): Allow virtual base registers when
17309 appropriate.
17310 (rl78_addr_space_convert): Remove spurious debug stuff.
17311 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17312 (rl78_print_operand): More cases for not printing '#'.
17313 (rl78_expand_compare): Remove most of the logic.
17314 (content_memory): New.
17315 (clear_content_memory): New.
17316 (get_content_index): New.
17317 (get_content_name): New.
17318 (display_content_memory): New.
17319 (update_content): New.
17320 (record_content): New.
17321 (already_contains): New.
17322 (insn_ok_now): Re-recog insns with virtual registers.
17323 (add_postponed_content_update): New.
17324 (process_postponed_content_update): New.
17325 (gen_and_emit_move): New.
17326 (transcode_memory_rtx): Record new location content.
17327 Use gen_and_emit_move.
17328 (force_into_acc): New.
17329 (move_to_acc): Use gen_and_emit_move.
17330 (move_from_acc): Likewise.
17331 (move_acc_to_reg): Likewise.
17332 (move_to_x): Likewise.
17333 (move_to_hl): Likewise.
17334 (move_to_de): Likewise.
17335 (rl78_alloc_physical_registers_op1): Record location content.
17336 (has_constraint): New.
17337 (rl78_alloc_physical_registers_op2): Record location content.
17338 Optimize use of HL.
17339 (rl78_alloc_physical_registers_ro1): Likewise.
17340 (rl78_alloc_physical_registers_cmp): Likewise.
17341 (rl78_alloc_physical_registers_umul): Likewise.
17342 (rl78_alloc_address_registers_macax): New.
17343 (rl78_alloc_physical_registers): Initialize and set location
17344 content memory as needed.
17345 (rl78_reorg): Make sure split2 is called.
17346 (rl78_rtx_costs): New.
17347
17348 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17349
17350 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17351 for (not (neg ...)) and (neg (not ...)) cases.
17352
17353 2013-09-11 Richard Biener <rguenther@suse.de>
17354
17355 PR middle-end/58377
17356 * passes.def: Split critical edges before late uninit warning passes.
17357 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17358
17359 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17360
17361 PR tree-optimization/58385
17362 * fold-const.c (build_range_check): If both low and high are NULL,
17363 use omit_one_operand_loc to preserve exp side-effects.
17364
17365 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17366
17367 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17368
17369 2013-09-11 Richard Biener <rguenther@suse.de>
17370
17371 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17372 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17373 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17374 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17375 stmts_from_loop, known_dependences_p, build_empty_rdg,
17376 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17377 * tree-loop-distribution.c: ... here.
17378 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17379 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17380 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17381 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17382 * tree-loop-distribution.c: ... here.
17383 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17384 (struct partition_s): Add loops member.
17385 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17386 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17387 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17388
17389 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17391 Sergey Lega <sergey.s.lega@intel.com>
17392 Anna Tikhonova <anna.tikhonova@intel.com>
17393 Ilya Tocar <ilya.tocar@intel.com>
17394 Andrey Turetskiy <andrey.turetskiy@intel.com>
17395 Ilya Verbin <ilya.verbin@intel.com>
17396 Kirill Yukhin <kirill.yukhin@intel.com>
17397 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17398
17399 * config/i386/constraints.md (k): New.
17400 (Yk): Ditto.
17401 * config/i386/i386.c (const regclass_map): Add new mask registers.
17402 (dbx_register_map): Ditto.
17403 (dbx64_register_map): Ditto.
17404 (svr4_dbx_register_map): Ditto.
17405 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17406 disabled.
17407 (ix86_preferred_reload_class): Disable constants for mask registers.
17408 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17409 (ix86_hard_regno_mode_ok): Support new mask registers.
17410 (x86_order_regs_for_local_alloc): Ditto.
17411 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17412 (FIXED_REGISTERS): Add new mask registers.
17413 (CALL_USED_REGISTERS): Ditto.
17414 (REG_ALLOC_ORDER): Ditto.
17415 (VALID_MASK_REG_MODE): New.
17416 (FIRST_MASK_REG): Ditto.
17417 (LAST_MASK_REG): Ditto.
17418 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17419 (MAYBE_MASK_CLASS_P): New.
17420 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17421 (REG_CLASS_CONTENTS): Ditto.
17422 (MASK_REGNO_P): New.
17423 (ANY_MASK_REG_P): Ditto.
17424 (HI_REGISTER_NAMES): Add new mask registers.
17425 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17426 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17427 mask registers.
17428 (attribute "type"): Add mskmov, msklog.
17429 (attribute "length_immediate"): Support them.
17430 (attribute "memory"): Ditto.
17431 (attribute "prefix_0f"): Ditto.
17432 (*movhi_internal): Support new mask registers.
17433 (*movqi_internal): Ditto.
17434 (define_split): Split out clobber pattern is a logic
17435 insn on mask registers.
17436 (*k<logic><mode>): New.
17437 (*andhi_1): Extend to support mask regs.
17438 (*andqi_1): Extend to support mask regs.
17439 (kandn<mode>): New.
17440 (define_split): Split and-not to and and not if operands
17441 are not mask regs.
17442 (*<code><mode>_1): Separate HI mode to new pattern...
17443 (*<code>hi_1): This.
17444 (*<code>qi_1): Extend to support mask regs.
17445 (kxnor<mode>): New.
17446 (kortestzhi): Ditto.
17447 (kortestchi): Ditto.
17448 (kunpckhi): Ditto.
17449 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17450 (*one_cmplhi2_1): ...Here, now with mask registers support.
17451 (*one_cmplqi2_1): Support new mask registers.
17452 (HI/QImode arithmetics splitter): Don't split if mask registers
17453 are used.
17454 (HI/QImode not splitter): Ditto.
17455 * config/i386/predicated.md (mask_reg_operand): New.
17456 (general_reg_operand): Ditto.
17457
17458 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17459
17460 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17461 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17462
17463 2013-09-10 Jeff Law <law@redhat.com>
17464
17465 PR tree-optimization/58380
17466 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17467 of threading through a buried loop header.
17468
17469 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17470 return value for single successor case.
17471
17472 2013-09-10 Jan Hubicka <jh@suse.cz>
17473
17474 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17475
17476 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17477
17478 PR target/58361
17479 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17480 support conditional execution.
17481 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17482
17483 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17484
17485 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17486 constraint pass.
17487 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17488 Check destination too to check move insn.
17489 (undo_optional_reloads): Add check that the original peudo did not
17490 changed its allocation and the optional reload was inherited on last
17491 inheritance pass. Break loop after deciding to keep optional reload.
17492 (lra_undo_inheritance): Add check that inherited pseudo still in
17493 memory.
17494
17495 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17496
17497 * config/aarch64/aarch64.md (generic_sched): New.
17498 * config/aarch64/aarch64-generic.md (load): Make conditional
17499 on generic_sched attribute.
17500 (nonload): Likewise.
17501
17502 2013-09-10 Jan Hubicka <jh@suse.cz>
17503
17504 * lto-cgraph.c: Include ipa-utils.h.
17505 (compute_ltrans_boundary): Also add possible targets into the boundary.
17506
17507 2013-09-10 Jan Hubicka <jh@suse.cz>
17508
17509 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17510 VAR_DECL of vtable rather than full expression.
17511
17512 2013-09-10 Jan Hubicka <jh@suse.cz>
17513 Paolo Carlini <paolo.carlini@oracle.com>
17514
17515 * cgraphunit.c (analyze_functions): Save input_location, set it
17516 to UNKNOWN_LOCATION and restore it at the end.
17517
17518 2013-09-10 Martin Jambor <mjambor@suse.cz>
17519
17520 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17521 represented by a thunk.
17522
17523 2013-09-10 Jeff Law <law@redhat.com>
17524
17525 PR tree-optimization/58343
17526 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17527 jump threading requests through loop headers buried in the middle
17528 of a jump threading path.
17529
17530 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17531 in return value/type.
17532
17533 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17534
17535 PR rtl-optimization/58365
17536 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17537 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17538 it differs.
17539
17540 2013-09-10 Richard Biener <rguenther@suse.de>
17541
17542 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17543 * tree-data-ref.c (create_rdg_vertices): Collect all data
17544 references, signal failure to the caller, use data-ref API.
17545 (build_rdg): Compute data references only once. Maintain lifetime
17546 of data references and data dependences from within RDG.
17547 (free_rdg): Free dependence relations.
17548 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17549 inventing extra dependences.
17550 (distribute_loop): Update for RDG API changes.
17551
17552 2013-09-10 Kai Tietz <ktietz@redhat.com>
17553
17554 * doc/invoke.texi (fms-extensions): Document changed
17555 behavior for ms-abi targets.
17556 * config/i386/i386.c (ix86_option_override_internal):
17557 Set default value of option -fms-extension for ms-abi targets.
17558
17559 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17560
17561 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17562
17563 2013-09-10 Alan Modra <amodra@gmail.com>
17564
17565 PR target/58330
17566 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17567
17568 2013-09-10 Alan Modra <amodra@gmail.com>
17569
17570 * config/rs6000/predicates.md (add_cint_operand): New.
17571 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17572 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17573 using add_cint_operand.
17574 (largetoc_high_plus_aix): Likewise.
17575
17576 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17577
17578 PR tree-optimization/58364
17579 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17580 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17581 the current range can't be an unconditional true or false.
17582
17583 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17584
17585 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17586
17587 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17588
17589 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17590
17591 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17592
17593 PR c++/43452
17594 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17595
17596 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17597
17598 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17599 NO_REGS for immediate that can't be moved directly into FP_REGS.
17600
17601 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17602
17603 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17604 comparison with negated operand.
17605 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17606 RTL form.
17607
17608 2013-09-09 Richard Biener <rguenther@suse.de>
17609
17610 PR middle-end/58326
17611 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17612 of a subloop record all its block as affecting loop-closed SSA form.
17613
17614 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17615
17616 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17617 of an rtx/bitpos pair.
17618 (store_fixed_bit_field): Update accordingly.
17619
17620 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17621
17622 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17623 GEN_INT.
17624 * builtins.c (expand_errno_check): Likewise.
17625 * dwarf2cfi.c (init_return_column_size): Likewise.
17626 * except.c (sjlj_mark_call_sites): Likewise.
17627 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17628 * lra-constraints.c (emit_inc): Likewise.
17629 * ree.c (combine_set_extension): Likewise.
17630 * regmove.c (fixup_match_2): Likewise.
17631 * reload1.c (inc_for_reload): Likewise.
17632
17633 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17634
17635 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17636 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17637 Use gen_int_mode with the mode of the associated simplify_* call.
17638 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17639 * expmed.c (expand_shift_1): Likewise.
17640 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17641 * loop-iv.c (iv_number_of_iterations): Likewise.
17642 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17643 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17644
17645 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17646
17647 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17648 of the associated expand_* call.
17649 (asan_emit_stack_protection): Likewise.
17650 * builtins.c (round_trampoline_addr): Likewise.
17651 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17652 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17653 (emit_store_flag): Likewise.
17654 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17655 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17656 Likewise.
17657 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17658 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17659 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17660 * modulo-sched.c (generate_prolog_epilog): Likewise.
17661 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17662 (expand_ctz, expand_ffs, expand_unop): Likewise.
17663
17664 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17665
17666 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17667 of the associated gen_rtx_* call.
17668 * caller-save.c (init_caller_save): Likewise.
17669 * combine.c (find_split_point, make_extraction): Likewise.
17670 (make_compound_operation): Likewise.
17671 * dwarf2out.c (mem_loc_descriptor): Likewise.
17672 * explow.c (plus_constant, probe_stack_range): Likewise.
17673 * expmed.c (expand_mult_const): Likewise.
17674 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17675 * reload1.c (init_reload): Likewise.
17676 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17677 * var-tracking.c (adjust_mems): Likewise.
17678 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17679 rather than gen_rtx_fmt_ee.
17680
17681 2013-09-09 Jan Hubicka <jh@suse.cz>
17682
17683 PR middle-end/58294
17684 * value-prof.c (gimple_ic): Copy also abnormal edges.
17685
17686 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17687
17688 * asan.c (asan_shadow_cst): Use gen_int_mode.
17689
17690 2013-09-08 Jan Hubicka <jh@suse.cz>
17691
17692 * ipa-profile.c: Add toplevel comment.
17693 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17694 (contains_hot_call_p): New function.
17695 (ipa_propagate_frequency): Set frequencies based on counts when
17696 profile is read.
17697 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17698 profile; do not tamper with profile after inlining if it is read.
17699
17700 2013-09-08 Jan Hubicka <jh@suse.cz>
17701
17702 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17703 speculative edges.
17704
17705 2013-09-08 Jan Hubicka <jh@suse.cz>
17706
17707 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17708 summary generation.
17709
17710 2013-09-08 Jeff Law <law@redhat.com>
17711
17712 PR bootstrap/58340
17713 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17714 of 'found'.
17715
17716 2013-09-08 Andi Kleen <ak@linux.intel.com>
17717
17718 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17719
17720 2013-09-08 Jan Hubicka <jh@suse.cz>
17721
17722 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17723
17724 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17725
17726 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17727 for non-debug insns.
17728 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17729 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17730 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17731 accordingly.
17732
17733 2013-09-08 Jan Hubicka <jh@suse.cz>
17734
17735 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17736 targets and devirtualize to BUILT_IN_UNREACHABLE.
17737 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17738 * ipa.c (walk_polymorphic_call_targets): New function.
17739 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17740 functions; use the new timevar.
17741 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17742 was removed from the program.
17743 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17744 not consider it in the walk when its vtable is dead.
17745 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17746 record_binfo.
17747 (devirt_variable_node_removal_hook): New function.
17748 (possible_polymorphic_call_targets): Also register
17749 devirt_variable_node_removal_hook.
17750 (ipa_devirt): Do not do non-speculative devirtualization.
17751 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17752
17753 2013-09-08 Jan Hubicka <jh@suse.cz>
17754
17755 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17756 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17757 varpool_remove_variable_insertion_hook): Declare.
17758 * varpool.c (varpool_node_hook_list): New structure.
17759 (first_varpool_node_removal_hook,
17760 first_varpool_variable_insertion_hook): New variables.
17761 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17762 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17763 varpool_remove_variable_insertion_hook,
17764 varpool_call_variable_insertion_hooks): New functions.
17765 (varpool_remove_node): Use it.
17766
17767 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17768
17769 PR c++/54941
17770 * diagnostic.c (diagnostic_build_prefix): When s.file is
17771 "<built-in>" don't output line and column numbers.
17772
17773 2013-09-06 Jan Hubicka <jh@suse.cz>
17774
17775 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17776 * lto-streamer-out.c: Stream thunks, too.
17777 * lto-streamer-in.c (input_function): Pop cfun here
17778 (lto_read_body): Instead of here.
17779
17780 2013-09-06 Caroline Tice <cmtice@google.com>
17781
17782 * doc/install.texi: Add documentation for the --enable-vtable-verify
17783 and the --disable-libvtv configure options.
17784
17785 2013-09-06 Jeff Law <law@redhat.com>
17786
17787 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17788 edge implied equivalences into successor phis.
17789
17790 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17791
17792 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17793
17794 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17795
17796 * resource.c (mark_target_live_regs): Compute resources taking
17797 into account if a call is predicated or not.
17798
17799 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17800
17801 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17802 the compiler in the function names.
17803
17804 2013-09-06 Jan Hubicka <jh@suse.cz>
17805
17806 PR middle-end/58094
17807 * ipa-inline.c (has_caller_p): New function.
17808 (want_inline_function_to_all_callers_p): Use it.
17809 (sum_callers, inline_to_all_callers): Break out from ...
17810 (ipa_inline): ... here.
17811
17812 2013-09-06 Jan Hubicka <jh@suse.cz>
17813
17814 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17815 only when AVX is enabled.
17816
17817 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17818
17819 * config/aarch64/aarch64.md
17820 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17821 is fpsimd_<load/store>2.
17822 (load_pair<mode>): Likewise.
17823 (store_pair<mode>): Likewise.
17824
17825 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17826
17827 * config/arm/types.md (type): Add "mrs" type.
17828 * config/aarch64/aarch64.md
17829 (aarch64_load_tp_hard): Make type "mrs".
17830 * config/arm/arm.md
17831 (load_tp_hard): Make type "mrs".
17832 * config/arm/cortex-a15.md: Update with new attributes.
17833 * config/arm/cortex-a5.md: Update with new attributes.
17834 * config/arm/cortex-a53.md: Update with new attributes.
17835 * config/arm/cortex-a7.md: Update with new attributes.
17836 * config/arm/cortex-a8.md: Update with new attributes.
17837 * config/arm/cortex-a9.md: Update with new attributes.
17838 * config/arm/cortex-m4.md: Update with new attributes.
17839 * config/arm/cortex-r4.md: Update with new attributes.
17840 * config/arm/fa526.md: Update with new attributes.
17841 * config/arm/fa606te.md: Update with new attributes.
17842 * config/arm/fa626te.md: Update with new attributes.
17843 * config/arm/fa726te.md: Update with new attributes.
17844
17845 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17846
17847 * config/aarch64/aarch64.md
17848 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17849 (*movtf_aarch64): Likewise.
17850 * config/arm/arm.md
17851 (thumb1_movdi_insn): Use "multiple" for type where more than one
17852 instruction is used for a move.
17853 (*arm32_movhf): Likewise.
17854 (*thumb_movdf_insn): Likewise.
17855
17856 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17857
17858 * config/arm/types.md (type): Rename fcpys to fmov.
17859 * config/arm/vfp.md
17860 (*arm_movsi_vfp): Rename type fcpys as fmov.
17861 (*thumb2_movsi_vfp): Likewise
17862 (*movhf_vfp_neon): Likewise
17863 (*movhf_vfp): Likewise
17864 (*movsf_vfp): Likewise
17865 (*thumb2_movsf_vfp): Likewise
17866 (*movsfcc_vfp): Likewise
17867 (*thumb2_movsfcc_vfp): Likewise
17868 * config/aarch64/aarch64-simd.md
17869 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17870 * config/aarch64/aarch64.md
17871 (*movsi_aarch64): Replace type mov_reg with fmovs.
17872 (*movdi_aarch64): Likewise
17873 (*movsf_aarch64): Likewise
17874 (*movdf_aarch64): Likewise
17875 * config/arm/arm.c
17876 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17877 * config/arm/iwmmxt.md
17878 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17879 * config/arm/arm1020e.md: Update with new attributes.
17880 * config/arm/cortex-a15-neon.md: Update with new attributes.
17881 * config/arm/cortex-a5.md: Update with new attributes.
17882 * config/arm/cortex-a53.md: Update with new attributes.
17883 * config/arm/cortex-a7.md: Update with new attributes.
17884 * config/arm/cortex-a8-neon.md: Update with new attributes.
17885 * config/arm/cortex-a9.md: Update with new attributes.
17886 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17887 * config/arm/cortex-r4f.md: Update with new attributes.
17888 * config/arm/marvell-pj4.md: Update with new attributes.
17889 * config/arm/vfp11.md: Update with new attributes.
17890
17891 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17892
17893 * config/aarch64/aarch64.md
17894 (*madd<mode>): Fix type attribute.
17895 (*maddsi_uxtw): Likewise.
17896 (*msub<mode>): Likewise.
17897 (*msubsi_uxtw): Likewise.
17898 (<su_optab>maddsidi4): Likewise.
17899 (<su_optab>msubsidi4): Likewise.
17900
17901 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17902
17903 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17904 * config/arm/arm.md (core_cycles): Remove fdiv.
17905 * config/arm/vfp.md:
17906 (*sqrtsf2_vfp): Update for attribute changes.
17907 (*sqrtdf2_vfp): Likewise.
17908 * config/aarch64/aarch64.md:
17909 (sqrt<mode>2): Update for attribute changes.
17910 * config/arm/arm1020e.md: Update with new attributes.
17911 * config/arm/cortex-a15-neon.md: Update with new attributes.
17912 * config/arm/cortex-a5.md: Update with new attributes.
17913 * config/arm/cortex-a53.md: Update with new attributes.
17914 * config/arm/cortex-a7.md: Update with new attributes.
17915 * config/arm/cortex-a8-neon.md: Update with new attributes.
17916 * config/arm/cortex-a9.md: Update with new attributes.
17917 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17918 * config/arm/cortex-r4f.md: Update with new attributes.
17919 * config/arm/marvell-pj4.md: Update with new attributes.
17920 * config/arm/vfp11.md: Update with new attributes.
17921
17922 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17923
17924 * config/arm/types.md
17925 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17926 * config/aarch64/aarch64.md
17927 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17928 new attributes.
17929 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17930 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17931 (float<GPI:mode><GPF:mode>2): Likewise.
17932 * config/arm/vfp.md
17933 (*truncsisf2_vfp): Update with new attributes.
17934 (*truncsidf2_vfp): Likewise.
17935 (fixuns_truncsfsi2): Likewise.
17936 (fixuns_truncdfsi2): Likewise.
17937 (*floatsisf2_vfp): Likewise.
17938 (*floatsidf2_vfp): Likewise.
17939 (floatunssisf2): Likewise.
17940 (floatunssidf2): Likewise.
17941 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17942 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17943 * config/arm/arm1020e.md: Update with new attributes.
17944 * config/arm/cortex-a15-neon.md: Update with new attributes.
17945 * config/arm/cortex-a5.md: Update with new attributes.
17946 * config/arm/cortex-a53.md: Update with new attributes.
17947 * config/arm/cortex-a7.md: Update with new attributes.
17948 * config/arm/cortex-a8-neon.md: Update with new attributes.
17949 * config/arm/cortex-a9.md: Update with new attributes.
17950 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17951 * config/arm/cortex-r4f.md: Update with new attributes.
17952 * config/arm/marvell-pj4.md: Update with new attributes.
17953 * config/arm/vfp11.md: Update with new attributes.
17954
17955 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17956
17957 * config/aarch64/arm_neon.h
17958 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17959 (vqtbx<1,2,3,4><q>_s8): Likewise.
17960
17961 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17962
17963 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17964 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
17965 (add<mode>3): Add type attribute.
17966 (add<mode>3): Likewise.
17967 (usadd<mode>3): Likewise.
17968 (ssadd<mode>3): Likewise.
17969 (sub<mode>3): Likewise.
17970 (sub<mode>3): Likewise.
17971 (ussub<mode>3): Likewise.
17972 (sssub<mode>3): Likewise.
17973 (ssmulsa3): Likewise.
17974 (usmulusa3): Likewise.
17975 (arm_usatsihi): Likewise.
17976 * config/arm/vfp.md
17977 (*movdi_vfp): Add types for all instructions.
17978 (*movdi_vfp_cortexa8): Likewise.
17979 (*movhf_vfp_neon): Likewise.
17980 (*movhf_vfp): Likewise.
17981 (*movdf_vfp): Likewise.
17982 (*thumb2_movdf_vfp): Likewise.
17983 (*thumb2_movdfcc_vfp): Likewise.
17984 * config/arm/arm.md: Add type attribute to all insn patterns.
17985 (*thumb1_adddi3): Add type attribute.
17986 (*arm_adddi3): Likewise.
17987 (*adddi_sesidi_di): Likewise.
17988 (*adddi_zesidi_di): Likewise.
17989 (*thumb1_addsi3): Likewise.
17990 (addsi3_compare0): Likewise.
17991 (*addsi3_compare0_scratch): Likewise.
17992 (*compare_negsi_si): Likewise.
17993 (cmpsi2_addneg): Likewise.
17994 (*addsi3_carryin_<optab>): Likewise.
17995 (*addsi3_carryin_alt2_<optab>): Likewise.
17996 (*addsi3_carryin_clobercc_<optab>): Likewise.
17997 (*subsi3_carryin): Likewise.
17998 (*subsi3_carryin_const): Likewise.
17999 (*subsi3_carryin_compare): Likewise.
18000 (*subsi3_carryin_compare_const): Likewise.
18001 (*arm_subdi3): Likewise.
18002 (*thumb_subdi3): Likewise.
18003 (*subdi_di_zesidi): Likewise.
18004 (*subdi_di_sesidi): Likewise.
18005 (*subdi_zesidi_di): Likewise.
18006 (*subdi_sesidi_di): Likewise.
18007 (*subdi_zesidi_ze): Likewise.
18008 (thumb1_subsi3_insn): Likewise.
18009 (*arm_subsi3_insn): Likewise.
18010 (*anddi3_insn): Likewise.
18011 (*anddi_zesidi_di): Likewise.
18012 (*anddi_sesdi_di): Likewise.
18013 (*ne_zeroextracts): Likewise.
18014 (*ne_zeroextracts): Likewise.
18015 (*ite_ne_zeroextr): Likewise.
18016 (*ite_ne_zeroextr): Likewise.
18017 (*anddi_notdi_di): Likewise.
18018 (*anddi_notzesidi): Likewise.
18019 (*anddi_notsesidi): Likewise.
18020 (andsi_notsi_si): Likewise.
18021 (thumb1_bicsi3): Likewise.
18022 (*iordi3_insn): Likewise.
18023 (*iordi_zesidi_di): Likewise.
18024 (*iordi_sesidi_di): Likewise.
18025 (*thumb1_iorsi3_insn): Likewise.
18026 (*xordi3_insn): Likewise.
18027 (*xordi_zesidi_di): Likewise.
18028 (*xordi_sesidi_di): Likewise.
18029 (*arm_xorsi3): Likewise.
18030 (*andsi_iorsi3_no): Likewise.
18031 (*smax_0): Likewise.
18032 (*smax_m1): Likewise.
18033 (*arm_smax_insn): Likewise.
18034 (*smin_0): Likewise.
18035 (*arm_smin_insn): Likewise.
18036 (*arm_umaxsi3): Likewise.
18037 (*arm_uminsi3): Likewise.
18038 (*minmax_arithsi): Likewise.
18039 (*minmax_arithsi_): Likewise.
18040 (*satsi_<SAT:code>): Likewise.
18041 (arm_ashldi3_1bit): Likewise.
18042 (arm_ashrdi3_1bit): Likewise.
18043 (arm_lshrdi3_1bit): Likewise.
18044 (*arm_negdi2): Likewise.
18045 (*thumb1_negdi2): Likewise.
18046 (*arm_negsi2): Likewise.
18047 (*thumb1_negsi2): Likewise.
18048 (*negdi_extendsid): Likewise.
18049 (*negdi_zero_extend): Likewise.
18050 (*arm_abssi2): Likewise.
18051 (*thumb1_abssi2): Likewise.
18052 (*arm_neg_abssi2): Likewise.
18053 (*thumb1_neg_abss): Likewise.
18054 (one_cmpldi2): Likewise.
18055 (extend<mode>di2): Likewise.
18056 (*compareqi_eq0): Likewise.
18057 (*arm_extendhisi2addsi): Likewise.
18058 (*arm_movdi): Likewise.
18059 (*thumb1_movdi_insn): Likewise.
18060 (*arm_movt): Likewise.
18061 (*thumb1_movsi_insn): Likewise.
18062 (pic_add_dot_plus_four): Likewise.
18063 (pic_add_dot_plus_eight): Likewise.
18064 (tls_load_dot_plus_eight): Likewise.
18065 (*thumb1_movhi_insn): Likewise.
18066 (*thumb1_movsf_insn): Likewise.
18067 (*movdf_soft_insn): Likewise.
18068 (*thumb_movdf_insn): Likewise.
18069 (cbranchsi4_insn): Likewise.
18070 (cbranchsi4_scratch): Likewise.
18071 (*negated_cbranchsi4): Likewise.
18072 (*tbit_cbranch): Likewise.
18073 (*tlobits_cbranch): Likewise.
18074 (*tstsi3_cbranch): Likewise.
18075 (*cbranchne_decr1): Likewise.
18076 (*addsi3_cbranch): Likewise.
18077 (*addsi3_cbranch_scratch): Likewise.
18078 (*arm_cmpdi_insn): Likewise.
18079 (*arm_cmpdi_unsig): Likewise.
18080 (*arm_cmpdi_zero): Likewise.
18081 (*thumb_cmpdi_zero): Likewise.
18082 (*deleted_compare): Likewise.
18083 (*mov_scc): Likewise.
18084 (*mov_negscc): Likewise.
18085 (*mov_notscc): Likewise.
18086 (*cstoresi_eq0_thumb1_insn): Likewise.
18087 (cstoresi_nltu_thumb1): Likewise.
18088 (cstoresi_ltu_thu): Likewise.
18089 (thumb1_addsi3_addgeu): Likewise.
18090 (*arm_jump): Likewise.
18091 (*thumb_jump): Likewise.
18092 (*check_arch2): Likewise.
18093 (arm_casesi_internal): Likewise.
18094 (thumb1_casesi_dispatch): Likewise.
18095 (*arm_indirect_jump): Likewise.
18096 (*thumb1_indirect_jump): Likewise.
18097 (nop): Likewise.
18098 (*and_scc): Likewise.
18099 (*ior_scc): Likewise.
18100 (*compare_scc): Likewise.
18101 (*cond_move): Likewise.
18102 (*cond_arith): Likewise.
18103 (*cond_sub): Likewise.
18104 (*cmp_ite0): Likewise.
18105 (*cmp_ite1): Likewise.
18106 (*cmp_and): Likewise.
18107 (*cmp_ior): Likewise.
18108 (*ior_scc_scc): Likewise.
18109 (*ior_scc_scc_cmp): Likewise.
18110 (*and_scc_scc): Likewise.
18111 (*and_scc_scc_cmp): Likewise.
18112 (*and_scc_scc_nod): Likewise.
18113 (*negscc): Likewise.
18114 (movcond_addsi): Likewise.
18115 (movcond): Likewise.
18116 (*ifcompare_plus_move): Likewise.
18117 (*if_plus_move): Likewise.
18118 (*ifcompare_move_plus): Likewise.
18119 (*if_move_plus): Likewise.
18120 (*ifcompare_arith_arith): Likewise.
18121 (*if_arith_arith): Likewise.
18122 (*ifcompare_arith_move): Likewise.
18123 (*if_arith_move): Likewise.
18124 (*ifcompare_move_arith): Likewise.
18125 (*if_move_arith): Likewise.
18126 (*ifcompare_move_not): Likewise.
18127 (*if_move_not): Likewise.
18128 (*ifcompare_not_move): Likewise.
18129 (*if_not_move): Likewise.
18130 (*ifcompare_shift_move): Likewise.
18131 (*if_shift_move): Likewise.
18132 (*ifcompare_move_shift): Likewise.
18133 (*if_move_shift): Likewise.
18134 (*ifcompare_shift_shift): Likewise.
18135 (*ifcompare_not_arith): Likewise.
18136 (*ifcompare_arith_not): Likewise.
18137 (*if_arith_not): Likewise.
18138 (*ifcompare_neg_move): Likewise.
18139 (*if_neg_move): Likewise.
18140 (*ifcompare_move_neg): Likewise.
18141 (*if_move_neg): Likewise.
18142 (prologue_thumb1_interwork): Likewise.
18143 (*cond_move_not): Likewise.
18144 (*sign_extract_onebit): Likewise.
18145 (*not_signextract_onebit): Likewise.
18146 (stack_tie): Likewise.
18147 (align_4): Likewise.
18148 (align_8): Likewise.
18149 (consttable_end): Likewise.
18150 (consttable_1): Likewise.
18151 (consttable_2): Likewise.
18152 (consttable_4): Likewise.
18153 (consttable_8): Likewise.
18154 (consttable_16): Likewise.
18155 (*thumb1_tablejump): Likewise.
18156 (prefetch): Likewise.
18157 (force_register_use): Likewise.
18158 (thumb_eh_return): Likewise.
18159 (load_tp_hard): Likewise.
18160 (load_tp_soft): Likewise.
18161 (tlscall): Likewise.
18162 (*arm_movtas_ze): Likewise.
18163 (*arm_rev): Likewise.
18164 (*arm_revsh): Likewise.
18165 (*arm_rev16): Likewise.
18166 * config/arm/thumb2.md
18167 (*thumb2_smaxsi3): Likewise.
18168 (*thumb2_sminsi3): Likewise.
18169 (*thumb32_umaxsi3): Likewise.
18170 (*thumb2_uminsi3): Likewise.
18171 (*thumb2_negdi2): Likewise.
18172 (*thumb2_abssi2): Likewise.
18173 (*thumb2_neg_abss): Likewise.
18174 (*thumb2_movsi_insn): Likewise.
18175 (tls_load_dot_plus_four): Likewise.
18176 (*thumb2_movhi_insn): Likewise.
18177 (*thumb2_mov_scc): Likewise.
18178 (*thumb2_mov_negs): Likewise.
18179 (*thumb2_mov_negs): Likewise.
18180 (*thumb2_mov_nots): Likewise.
18181 (*thumb2_mov_nots): Likewise.
18182 (*thumb2_movsicc_): Likewise.
18183 (*thumb2_movsfcc_soft_insn): Likewise.
18184 (*thumb2_indirect_jump): Likewise.
18185 (*thumb2_and_scc): Likewise.
18186 (*thumb2_ior_scc): Likewise.
18187 (*thumb2_ior_scc_strict_it): Likewise.
18188 (*thumb2_cond_move): Likewise.
18189 (*thumb2_cond_arith): Likewise.
18190 (*thumb2_cond_ari): Likewise.
18191 (*thumb2_cond_sub): Likewise.
18192 (*thumb2_negscc): Likewise.
18193 (*thumb2_movcond): Likewise.
18194 (thumb2_casesi_internal): Likewise.
18195 (thumb2_casesi_internal_pic): Likewise.
18196 (*thumb2_alusi3_short): Likewise.
18197 (*thumb2_mov<mode>_shortim): Likewise.
18198 (*thumb2_addsi_short): Likewise.
18199 (*thumb2_subsi_short): Likewise.
18200 (thumb2_addsi3_compare0): Likewise.
18201 (*thumb2_cbz): Likewise.
18202 (*thumb2_cbnz): Likewise.
18203 (*thumb2_one_cmplsi2_short): Likewise.
18204 (*thumb2_negsi2_short): Likewise.
18205 (*orsi_notsi_si): Likewise.
18206 * config/arm/arm1020e.md: Update with new attributes.
18207 * config/arm/arm1026ejs.md: Update with new attributes.
18208 * config/arm/arm1136jfs.md: Update with new attributes.
18209 * config/arm/arm926ejs.md: Update with new attributes.
18210 * config/arm/cortex-a15.md: Update with new attributes.
18211 * config/arm/cortex-a5.md: Update with new attributes.
18212 * config/arm/cortex-a53.md: Update with new attributes.
18213 * config/arm/cortex-a7.md: Update with new attributes.
18214 * config/arm/cortex-a8.md: Update with new attributes.
18215 * config/arm/cortex-a9.md: Update with new attributes.
18216 * config/arm/cortex-m4.md: Update with new attributes.
18217 * config/arm/cortex-r4.md: Update with new attributes.
18218 * config/arm/fa526.md: Update with new attributes.
18219 * config/arm/fa606te.md: Update with new attributes.
18220 * config/arm/fa626te.md: Update with new attributes.
18221 * config/arm/fa726te.md: Update with new attributes.
18222
18223 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18224
18225 * config/aarch64/aarch64-simd.md
18226 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18227 <vwx> iterator to ensure correct register choice.
18228 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18229 (aarch64_sqdmull_n<mode>): Likewise.
18230 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18231 * config/aarch64/arm_neon.h
18232 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18233 (vml<as><q>_n_<su>16): Likewise.
18234 (vml<as>l_high_lane<q>_<su>16): Likewise.
18235 (vml<as>l_high_n_<su>16): Likewise.
18236 (vml<as>l_lane<q>_<su>16): Likewise.
18237 (vml<as>l_n_<su>16): Likewise.
18238 (vmul<q>_lane<q>_<su>16): Likewise.
18239 (vmul<q>_n_<su>16): Likewise.
18240 (vmull_lane<q>_<su>16): Likewise.
18241 (vmull_n_<su>16): Likewise.
18242 (vmull_high_lane<q>_<su>16): Likewise.
18243 (vmull_high_n_<su>16): Likewise.
18244 (vqrdmulh<q>_n_s16): Likewise.
18245
18246 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18247
18248 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18249 have the correct lane parameter.
18250
18251 2013-09-06 Richard Biener <rguenther@suse.de>
18252
18253 * cfganal.c (control_dependences::~control_dependences):
18254 Properly free all of the vector.
18255
18256 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18257
18258 PR target/58269
18259 * config/i386/i386.c (ix86_conditional_register_usage):
18260 Proper initialize extended SSE registers.
18261
18262 2013-09-06 Jan Hubicka <jh@suse.cz>
18263
18264 PR tree-optimization/58311
18265 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18266
18267 2013-09-06 Jan Hubicka <jh@suse.cz>
18268
18269 * Makefile.in (tree-sra.o): Update dependencies.
18270 * tree-sra.c: Include ipa-utils.h
18271 (scan_function): Use recursive_call_p.
18272 (has_caller_p): New function.
18273 (cgraph_for_node_and_aliases): Count also callers of aliases.
18274
18275 2013-09-06 Jan Hubicka <jh@suse.cz>
18276
18277 PR middle-end/58094
18278 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18279 * tree-tailcall.c: Include ipa-utils.h.
18280 (find_tail_calls): Use it.
18281 * ipa-pure-const.c (check_call): Likewise.
18282 * ipa-utils.c (recursive_call_p): New function.
18283 * ipa-utils.h (recursive_call_p): Dclare.
18284 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18285 (symtab_semantically_equivalent_p): New function.
18286 * Makefile.in (tree-tailcall.o): Update dependencies.
18287
18288 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18289
18290 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18291 non-inlinable part.
18292
18293 2013-09-06 Richard Biener <rguenther@suse.de>
18294
18295 * lto-streamer.h (lto_global_var_decls): Remove.
18296 * Makefile.in (OBJS): Remove lto-symtab.o.
18297 (lto-symtab.o): Remove.
18298 (GTFILES): Remove lto-symtab.c
18299 * lto-symtab.c: Move to lto/
18300
18301 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18302
18303 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18304 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18305 (UNSPEC_FPINT_RINT): New constant definitions.
18306 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18307 definition with 2 attributes.
18308 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18309 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18310 definitions.
18311
18312 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18313
18314 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18315 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18316 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18317 attribute to "z196_alone".
18318 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18319 "zEC12_simple".
18320
18321 2013-09-06 Richard Biener <rguenther@suse.de>
18322
18323 * basic-block.h (class control_dependences): New.
18324 * tree-ssa-dce.c (control_dependence_map): Remove.
18325 (cd): New global.
18326 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18327 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18328 find_pdom, find_control_dependence, find_all_control_dependences):
18329 Move to cfganal.c.
18330 (mark_control_dependent_edges_necessary,
18331 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18332 tree_dce_done, perform_tree_ssa_dce): Adjust.
18333 * cfganal.c (set_control_dependence_map_bit,
18334 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18335 find_all_control_dependences): Move from tree-ssa-dce.c and
18336 implement as methods of control_dependences class.
18337 (control_dependences::control_dependences): New.
18338 (control_dependences::~control_dependences): Likewise.
18339 (control_dependences::get_edges_dependent_on): Likewise.
18340 (control_dependences::get_edge): Likewise.
18341
18342 2013-09-04 Jan Hubicka <jh@suse.cz>
18343
18344 * tree.c (types_same_for_odr): Drop overactive check.
18345 * ipa-devirt.c (hash_type_name): Likewise.
18346
18347 2013-09-04 Jan Hubicka <jh@suse.cz>
18348
18349 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18350 (analyze_functions): ... here.
18351
18352 2013-09-04 Jan Hubicka <jh@suse.cz>
18353
18354 PR middle-end/58201
18355 * cgraphunit.c (analyze_functions): Clear AUX fields
18356 after processing; initialize assembler name has.
18357
18358 2013-09-05 Jeff Law <law@redhat.com>
18359
18360 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18361 from thread_around_empty_block. Record threading path into PATH.
18362 Recurse if threading through the initial block is successful.
18363 (thread_across_edge): Corresponding changes to slightly simplify.
18364
18365 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18366
18367 * config/aarch64/aarch64.md
18368 (type): Remove frecpe, frecps, frecpx.
18369 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18370 fix to be a TARGET_SIMD instruction.
18371 (aarch64_frecps): Remove.
18372 * config/aarch64/aarch64-simd.md
18373 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18374 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18375
18376 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18377 Sofiane Naci <sofiane.naci@arm.com>
18378
18379 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18380 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18381 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18382 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18383 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18384 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18385 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18386 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18387 into "clz, "rbit". Rename "shift" to "shift_imm".
18388 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18389 changes. Update for attribute changes all occurrences of arlo_* and
18390 shift* types.
18391 * config/arm/arm-fixed.md: Update for attribute changes
18392 all occurrences of arlo_* types.
18393 * config/arm/thumb2.md: Update for attribute changes all occurrences
18394 of arlo_* types.
18395 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18396 (cortexa7_older_only): Likewise.
18397 (cortexa7_younger): Likewise.
18398 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18399 (1020alu_shift_op): Likewise.
18400 (1020alu_shift_reg_op): Likewise.
18401 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18402 (alu_shift_op): Likewise.
18403 (alu_shift_reg_op): Likewise.
18404 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18405 (11_alu_shift_op): Likewise.
18406 (11_alu_shift_reg_op): Likewise.
18407 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18408 (9_alu_shift_reg_op): Likewise.
18409 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18410 attribute changes.
18411 (cortex_a15_alu_shift): Likewise.
18412 (cortex_a15_alu_shift_reg): Likewise.
18413 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18414 attribute changes.
18415 (cortex_a5_alu_shift): Likewise.
18416 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18417 attribute changes.
18418 (cortex_a53_alu_shift): Likewise.
18419 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18420 attribute changes.
18421 (cortex_a7_alu_reg): Likewise.
18422 (cortex_a7_alu_shift): Likewise.
18423 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18424 attribute changes.
18425 (cortex_a8_alu_shift): Likewise.
18426 (cortex_a8_alu_shift_reg): Likewise.
18427 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18428 (cortex_a9_dp_shift): Likewise.
18429 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18430 attribute changes.
18431 * config/arm/cortex-r4.md
18432 (cortex_r4_alu): Update for attribute changes.
18433 (cortex_r4_mov): Likewise.
18434 (cortex_r4_alu_shift_reg): Likewise.
18435 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18436 (526_alu_shift_op): Likewise.
18437 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18438 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18439 (626te_alu_shift_op): Likewise.
18440 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18441 (726te_alu_shift_op): Likewise.
18442 (726te_alu_shift_reg_op): Likewise.
18443 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18444 (mp626_alu_shift_op): Likewise.
18445 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18446 (pj4_alu_conds): Likewise.
18447 (pj4_shift): Likewise.
18448 (pj4_shift_conds): Likewise.
18449 (pj4_alu_shift): Likewise.
18450 (pj4_alu_shift_conds): Likewise.
18451 * config/aarch64/aarch64.md: Update for attribute change
18452 all occurrences of arlo_* and shift* types.
18453
18454 2013-09-05 Mike Stump <mikestump@comcast.net>
18455
18456 * tree.h: Move documentation for tree_function_decl to tree-core.h
18457 with the declaration.
18458
18459 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18460
18461 PR target/58139
18462 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18463 looking for widest mode.
18464
18465 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18466
18467 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18468
18469 2013-09-05 Richard Biener <rguenther@suse.de>
18470
18471 PR tree-optimization/58137
18472 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18473 Do not create vectors of pointers.
18474 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18475 types for the components of the vector initializer.
18476 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18477 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18478
18479 2013-09-05 Martin Jambor <mjambor@suse.cz>
18480
18481 * ipa-prop.c (remove_described_reference): Accept missing references,
18482 return false if that hppens, otherwise return true.
18483 (cgraph_node_for_jfunc): New function.
18484 (try_decrement_rdesc_refcount): Likewise.
18485 (try_make_edge_direct_simple_call): Use them.
18486 (ipa_edge_removal_hook): Remove references from rdescs.
18487 (ipa_edge_duplication_hook): Clone rdescs and their references
18488 when the new edge has the same caller as the old one.
18489 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18490 reference before removing any edges.
18491
18492 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18493
18494 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18495 initial store.
18496 * thumb2.md (thumb2_storewb_parisi): New pattern.
18497
18498 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18499
18500 * config/aarch64/aarch64-option-extensions.def: Add
18501 AARCH64_OPT_EXTENSION of 'crc'.
18502 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18503 (AARCH64_ISA_CRC): Ditto.
18504 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18505 description of the CRC extension.
18506
18507 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18508
18509 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18510 * config/rs6000/linux.h: Ditto.
18511 * alpha/linux.h: Ditto.
18512 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18513 no_c99_libc_has_function.
18514 * config/c6x/uclinux-elf.h: Ditto.
18515 * config/lm32/uclinux-elf.h: Ditto.
18516 * config/m68k/uclinux.h: Ditto.
18517 * config/moxie/uclinux.h: Ditto.
18518 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18519 (crisv32-*-linux*, cris-*-linux*): Ditto.
18520 * config/bfin/bfin.c: Include "tm_p.h".
18521
18522 2013-09-05 Richard Biener <rguenther@suse.de>
18523
18524 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18525 check for a definition without a basic-block.
18526
18527 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18528 Sofiane Naci <sofiane.naci@arm.com>
18529
18530 * config/aarch64/aarch64.md
18531 (*movti_aarch64): Rename r_2_f and f_2_r.
18532 (*movsf_aarch64): Likewise.
18533 (*movdf_aarch64): Likewise.
18534 (*movtf_aarch64): Likewise.
18535 (aarch64_movdi_<mode>low): Likewise.
18536 (aarch64_movdi_<mode>high): Likewise.
18537 (aarch64_mov<mode>high_di): Likewise.
18538 (aarch64_mov<mode>low_di): Likewise.
18539 (aarch64_movtilow_tilow): Likewise.
18540 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18541 values to config/arm/types.md
18542 (attribute "conds"): Update for attribute change.
18543 (anddi3_insn): Likewise.
18544 (iordi3_insn): Likewise.
18545 (xordi3_insn): Likewise.
18546 (one_cmpldi2): Likewise.
18547 * config/arm/types.md (type): Add Neon types.
18548 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18549 use "type" attribute.
18550 (movmisalign<mode>_neon_store): Likewise.
18551 (movmisalign<mode>_neon_load): Likewise.
18552 (vec_set<mode>_internal): Likewise.
18553 (vec_setv2di_internal): Likewise.
18554 (vec_extract<mode>): Likewise.
18555 (vec_extractv2di): Likewise.
18556 (add<mode>3_neon): Likewise.
18557 (adddi3_neon): Likewise.
18558 (sub<mode>3_neon): Likewise.
18559 (subdi3_neon): Likewise.
18560 (mul<mode>3_neon): Likewise.
18561 (mul<mode>3add<mode>_neon): Likewise.
18562 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18563 (fma<VCVTF:mode>4)): Likewise.
18564 (fma<VCVTF:mode>4_intrinsic): Likewise.
18565 (fmsub<VCVTF:mode>4)): Likewise.
18566 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18567 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18568 (ior<mode>3): Likewise.
18569 (and<mode>3): Likewise.
18570 (anddi3_neon): Likewise.
18571 (orn<mode>3_neon): Likewise.
18572 (orndi3_neon): Likewise.
18573 (bic<mode>3_neon): Likewise.
18574 (bicdi3_neon): Likewise.
18575 (xor<mode>3): Likewise.
18576 (one_cmpl<mode>2): Likewise.
18577 (abs<mode>2): Likewise.
18578 (neg<mode>2): Likewise.
18579 (umin<mode>3_neon): Likewise.
18580 (umax<mode>3_neon): Likewise.
18581 (smin<mode>3_neon): Likewise.
18582 (smax<mode>3_neon): Likewise.
18583 (vashl<mode>3): Likewise.
18584 (vashr<mode>3_imm): Likewise.
18585 (vlshr<mode>3_imm): Likewise.
18586 (ashl<mode>3_signed): Likewise.
18587 (ashl<mode>3_unsigned): Likewise.
18588 (neon_load_count): Likewise.
18589 (ashldi3_neon_noclobber): Likewise.
18590 (signed_shift_di3_neon): Likewise.
18591 (unsigned_shift_di3_neon): Likewise.
18592 (ashrdi3_neon_imm_noclobber): Likewise.
18593 (lshrdi3_neon_imm_noclobber): Likewise.
18594 (widen_ssum<mode>3): Likewise.
18595 (widen_usum<mode>3): Likewise.
18596 (quad_halves_<code>v4si): Likewise.
18597 (quad_halves_<code>v4sf): Likewise.
18598 (quad_halves_<code>v8hi): Likewise.
18599 (quad_halves_<code>v16qi): Likewise.
18600 (reduc_splus_v2di): Likewise.
18601 (neon_vpadd_internal<mode>): Likewise.
18602 (neon_vpsmin<mode>): Likewise.
18603 (neon_vpsmax<mode>): Likewise.
18604 (neon_vpumin<mode>): Likewise.
18605 (neon_vpumax<mode>): Likewise.
18606 (ss_add<mode>_neon): Likewise.
18607 (us_add<mode>_neon): Likewise.
18608 (ss_sub<mode>_neon): Likewise.
18609 (us_sub<mode>_neon): Likewise.
18610 (neon_vadd<mode>_unspec): Likewise.
18611 (neon_vaddl<mode>): Likewise.
18612 (neon_vaddw<mode>): Likewise.
18613 (neon_vhadd<mode>): Likewise.
18614 (neon_vqadd<mode>): Likewise.
18615 (neon_vaddhn<mode>): Likewise.
18616 (neon_vmul<mode>): Likewise.
18617 (neon_vmla<mode>): Likewise.
18618 (neon_vmlal<mode>): Likewise.
18619 (neon_vmls<mode>): Likewise.
18620 (neon_vmlsl<mode>): Likewise.
18621 (neon_vqdmulh<mode>): Likewise.
18622 (neon_vqdmlal<mode>): Likewise.
18623 (neon_vqdmlsl<mode>): Likewise.
18624 (neon_vmull<mode>): Likewise.
18625 (neon_vqdmull<mode>): Likewise.
18626 (neon_vsub<mode>_unspec): Likewise.
18627 (neon_vsubl<mode>): Likewise.
18628 (neon_vsubw<mode>): Likewise.
18629 (neon_vqsub<mode>): Likewise.
18630 (neon_vhsub<mode>): Likewise.
18631 (neon_vsubhn<mode>): Likewise.
18632 (neon_vceq<mode>): Likewise.
18633 (neon_vcge<mode>): Likewise.
18634 (neon_vcgeu<mode>): Likewise.
18635 (neon_vcgt<mode>): Likewise.
18636 (neon_vcgtu<mode>): Likewise.
18637 (neon_vcle<mode>): Likewise.
18638 (neon_vclt<mode>): Likewise.
18639 (neon_vcage<mode>): Likewise.
18640 (neon_vcagt<mode>): Likewise.
18641 (neon_vtst<mode>): Likewise.
18642 (neon_vabd<mode>): Likewise.
18643 (neon_vabdl<mode>): Likewise.
18644 (neon_vaba<mode>): Likewise.
18645 (neon_vabal<mode>): Likewise.
18646 (neon_vmax<mode>): Likewise.
18647 (neon_vmin<mode>): Likewise.
18648 (neon_vpaddl<mode>): Likewise.
18649 (neon_vpadal<mode>): Likewise.
18650 (neon_vpmax<mode>): Likewise.
18651 (neon_vpmin<mode>): Likewise.
18652 (neon_vrecps<mode>): Likewise.
18653 (neon_vrsqrts<mode>): Likewise.
18654 (neon_vqabs<mode>): Likewise.
18655 (neon_vqneg<mode>): Likewise.
18656 (neon_vcls<mode>): Likewise.
18657 (clz<mode>2): Likewise.
18658 (popcount<mode>2): Likewise.
18659 (neon_vrecpe): Likewise.
18660 (neon_vrsqrte): Likewise.
18661 (neon_vget_lane<mode>_sext_internal): Likewise.
18662 (neon_vget_lane<mode>_zext_internal): Likewise.
18663 (neon_vdup_n<mode>): Likewise.
18664 (neon_vdup_nv2di): Likewise.
18665 (neon_vdpu_lane<mode>_internal): Likewise.
18666 (neon_vswp<mode>): Likewise.
18667 (float<mode><V_cvtto>2): Likewise.
18668 (floatuns<mode><V_cvtto>2): Likewise.
18669 (fix_trunc<mode><V_cvtto>)2): Likewise
18670 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18671 (neon_vcvt<mode>): Likewise.
18672 (neon_vcvtv4sfv4hf): Likewise.
18673 (neon_vcvtv4hfv4sf): Likewise.
18674 (neon_vcvt_n<mode>): Likewise.
18675 (neon_vmovn<mode>): Likewise.
18676 (neon_vqmovn<mode>): Likewise.
18677 (neon_vqmovun<mode>): Likewise.
18678 (neon_vmovl<mode>): Likewise.
18679 (neon_vmul_lane<mode>): Likewise.
18680 (neon_vmull_lane<mode>): Likewise.
18681 (neon_vqdmull_lane<mode>): Likewise.
18682 (neon_vqdmulh_lane<mode>): Likewise.
18683 (neon_vmla_lane<mode>): Likewise.
18684 (neon_vmlal_lane<mode>): Likewise.
18685 (neon_vqdmlal_lane<mode>): Likewise.
18686 (neon_vmls_lane<mode>): Likewise.
18687 (neon_vmlsl_lane<mode>): Likewise.
18688 (neon_vqdmlsl_lane<mode>): Likewise.
18689 (neon_vext<mode>): Likewise.
18690 (neon_vrev64<mode>): Likewise.
18691 (neon_vrev32<mode>): Likewise.
18692 (neon_vrev16<mode>): Likewise.
18693 (neon_vbsl<mode>_internal): Likewise.
18694 (neon_vshl<mode>): Likewise.
18695 (neon_vqshl<mode>): Likewise.
18696 (neon_vshr_n<mode>): Likewise.
18697 (neon_vshrn_n<mode>): Likewise.
18698 (neon_vqshrn_n<mode>): Likewise.
18699 (neon_vqshrun_n<mode>): Likewise.
18700 (neon_vshl_n<mode>): Likewise.
18701 (neon_vqshl_n<mode>): Likewise.
18702 (neon_vqshlu_n<mode>): Likewise.
18703 (neon_vshll_n<mode>): Likewise.
18704 (neon_vsra_n<mode>): Likewise.
18705 (neon_vsri_n<mode>): Likewise.
18706 (neon_vsli_n<mode>): Likewise.
18707 (neon_vtbl1v8qi): Likewise.
18708 (neon_vtbl2v8qi): Likewise.
18709 (neon_vtbl3v8qi): Likewise.
18710 (neon_vtbl4v8qi): Likewise.
18711 (neon_vtbx1v8qi): Likewise.
18712 (neon_vtbx2v8qi): Likewise.
18713 (neon_vtbx3v8qi): Likewise.
18714 (neon_vtbx4v8qi): Likewise.
18715 (neon_vtrn<mode>_internal): Likewise.
18716 (neon_vzip<mode>_internal): Likewise.
18717 (neon_vuzp<mode>_internal): Likewise.
18718 (neon_vld1<mode>): Likewise.
18719 (neon_vld1_lane<mode>): Likewise.
18720 (neon_vld1_dup<mode>): Likewise.
18721 (neon_vld1_dupv2di): Likewise.
18722 (neon_vst1<mode>): Likewise.
18723 (neon_vst1_lane<mode>): Likewise.
18724 (neon_vld2<mode>): Likewise.
18725 (neon_vld2_lane<mode>): Likewise.
18726 (neon_vld2_dup<mode>): Likewise.
18727 (neon_vst2<mode>): Likewise.
18728 (neon_vst2_lane<mode>): Likewise.
18729 (neon_vld3<mode>): Likewise.
18730 (neon_vld3qa<mode>): Likewise.
18731 (neon_vld3qb<mode>): Likewise.
18732 (neon_vld3_lane<mode>): Likewise.
18733 (neon_vld3_dup<mode>): Likewise.
18734 (neon_vst3<mode>): Likewise.
18735 (neon_vst3qa<mode>): Likewise.
18736 (neon_vst3qb<mode>): Likewise.
18737 (neon_vst3_lane<mode>): Likewise.
18738 (neon_vld4<mode>): Likewise.
18739 (neon_vld4qa<mode>): Likewise.
18740 (neon_vld4qb<mode>): Likewise.
18741 (neon_vld4_lane<mode>): Likewise.
18742 (neon_vld4_dup<mode>): Likewise.
18743 (neon_vst4<mode>): Likewise.
18744 (neon_vst4qa<mode>): Likewise.
18745 (neon_vst4qb<mode>): Likewise.
18746 (neon_vst4_lane<mode>): Likewise.
18747 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18748 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18749 (neon_vec_<US>mult_lo_<mode>): Likewise.
18750 (neon_vec_<US>mult_hi_<mode>): Likewise.
18751 (neon_vec_<US>shiftl_<mode>): Likewise.
18752 (neon_unpack<US>_<mode>): Likewise.
18753 (neon_vec_<US>mult_<mode>): Likewise.
18754 (vec_pack_trunc_<mode>): Likewise.
18755 (neon_vec_pack_trunk_<mode>): Likewise.
18756 (neon_vabd<mode>_2): Likewise.
18757 (neon_vabd<mode>_3): Likewise.
18758 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18759 (thumb2_movsi_vfp): Likewise.
18760 (movdi_vfp): Likewise.
18761 (movdi_vfp_cortexa8): Likewise.
18762 (movhf_vfp_neon): Likewise.
18763 (movhf_vfp): Likewiwse.
18764 (movsf_vfp): Likewiwse.
18765 (thumb2_movsf_vfp): Likewiwse.
18766 (movdf_vfp): Likewise.
18767 (thumb2_movdf_vfp): Likewise.
18768 (movsfcc_vfp): Likewise.
18769 (thumb2_movsfcc_vfp): Likewise.
18770 (movdfcc_vfp): Likewise.
18771 (thumb2_movdfcc_vfp): Likewise.
18772 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18773 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18774 (v10_v2c): Likewise.
18775 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18776 attribute change.
18777 (cortex_a15_neon_int_2): Likewise.
18778 (cortex_a15_neon_int_3): Likewise.
18779 (cortex_a15_neon_int_4): Likewise.
18780 (cortex_a15_neon_int_5): Likewise.
18781 (cortex_a15_neon_vqneg_vqabs): Likewise.
18782 (cortex_a15_neon_vmov): Likewise.
18783 (cortex_a15_neon_vaba): Likewise.
18784 (cortex_a15_neon_vaba_qqq): Likewise.
18785 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18786 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18787 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18788 scalar_64_32_long_scalar): Likewise.
18789 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18790 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18791 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18792 lotype_qdd_64_32_long): Likewise.
18793 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18794 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18795 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18796 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18797 (cortex_a15_neon_shift_1): Likewise.
18798 (cortex_a15_neon_shift_2): Likewise.
18799 (cortex_a15_neon_shift_3): Likewise.
18800 (cortex_a15_neon_vshl_ddd): Likewise.
18801 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18802 (cortex_a15_neon_vsra_vrsra): Likewise.
18803 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18804 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18805 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18806 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18807 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18808 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18809 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18810 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18811 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18812 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18813 (cortex_a15_neon_bp_simple): Likewise.
18814 (cortex_a15_neon_bp_2cycle): Likewise.
18815 (cortex_a15_neon_bp_3cycle): Likewise.
18816 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18817 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18818 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18819 (cortex_a15_neon_vld2_4_regs): Likewise.
18820 (cortex_a15_neon_vld3_vld4): Likewise.
18821 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18822 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18823 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18824 (cortex_a15_neon_vst3_vst4): Likewise.
18825 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18826 (cortex_a15_neon_vld3_vld4_lane" 10
18827 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18828 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18829 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18830 (cortex_a15_neon_ldm_2): Likewise.0
18831 (cortex_a15_neon_stm_2): Likewise.
18832 (cortex_a15_neon_mcr): Likewise.
18833 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18834 (cortex_a15_neon_mrc): Likewise.
18835 (cortex_a15_neon_mrrc): Likewise.
18836 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18837 change.
18838 (cortex_a15_alu_shift): Likewise.
18839 (cortex_a15_alu_shift_reg): Likewise.
18840 (cortex_a15_mult32): Likewise.
18841 (cortex_a15_mult64): Likewise.
18842 (cortex_a15_block): Likewise.
18843 (cortex_a15_branch): Likewise.
18844 (cortex_a15_load1): Likewise.
18845 (cortex_a15_load3): Likewise.
18846 (cortex_a15_store1): Likewise.
18847 (cortex_a15_store3): Likewise.
18848 (cortex_a15_call): Likewise.
18849 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18850 (cortex_a5_f2r): Likewise.
18851 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18852 change.
18853 (cortex_a53_f2r): Likewise.
18854 * config/arm/cortex-a7.md
18855 (cortex_a7_branch): Update for attribute change.
18856 (cortex_a7_call): Likewise.
18857 (cortex_a7_alu_imm): Likewise.
18858 (cortex_a7_alu_reg): Likewise.
18859 (cortex_a7_alu_shift): Likewise.
18860 (cortex_a7_mul): Likewise.
18861 (cortex_a7_load1): Likewise.
18862 (cortex_a7_store1): Likewise.
18863 (cortex_a7_load2): Likewise.
18864 (cortex_a7_store2): Likewise.
18865 (cortex_a7_load3): Likewise.
18866 (cortex_a7_store3): Likewise.
18867 (cortex_a7_load4): Likewise.
18868 (cortex_a7_store4): Likewise.
18869 (cortex_a7_fpalu): Likewise.
18870 (cortex_a7_fconst): Likewise.
18871 (cortex_a7_fpmuls): Likewise.
18872 (cortex_a7_neon_mul): Likewise.
18873 (cortex_a7_fpmacs): Likewise.
18874 (cortex_a7_neon_mla: Likewise.
18875 (cortex_a7_fpmuld: Likewise.
18876 (cortex_a7_fpmacd: Likewise.
18877 (cortex_a7_fpfmad: Likewise.
18878 (cortex_a7_fdivs: Likewise.
18879 (cortex_a7_fdivd: Likewise.
18880 (cortex_a7_r2f: Likewise.
18881 (cortex_a7_f2r: Likewise.
18882 (cortex_a7_f_flags: Likewise.
18883 (cortex_a7_f_loads: Likewise.
18884 (cortex_a7_f_loadd: Likewise.
18885 (cortex_a7_f_stores: Likewise.
18886 (cortex_a7_f_stored: Likewise.
18887 (cortex_a7_neon): Likewise.
18888 * config/arm/cortex-a8-neon.md
18889 (cortex_a8_neon_mrc): Update for attribute change.
18890 (cortex_a8_neon_mrrc): Likewise.
18891 (cortex_a8_neon_int_1): Likewise.
18892 (cortex_a8_neon_int_2): Likewise.
18893 (cortex_a8_neon_int_3): Likewise.
18894 (cortex_a8_neon_int_4): Likewise.
18895 (cortex_a8_neon_int_5): Likewise.
18896 (cortex_a8_neon_vqneg_vqabs): Likewise.
18897 (cortex_a8_neon_vmov): Likewise.
18898 (cortex_a8_neon_vaba): Likewise.
18899 (cortex_a8_neon_vaba_qqq): Likewise.
18900 (cortex_a8_neon_vsma): Likewise.
18901 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18902 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18903 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18904 long_scalar): Likewise.
18905 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18906 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18907 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18908 long_scalar_qdd_64_32_long): Likewise.
18909 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18910 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18911 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18912 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18913 (cortex_a8_neon_shift_1): Likewise.
18914 (cortex_a8_neon_shift_2): Likewise.
18915 (cortex_a8_neon_shift_3): Likewise.
18916 (cortex_a8_neon_vshl_ddd): Likewise.
18917 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18918 (cortex_a8_neon_vsra_vrsra): Likewise.
18919 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18920 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18921 (cortex_a8_neon_fp_vsum): Likewise.
18922 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18923 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18924 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18925 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18926 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18927 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18928 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18929 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18930 (cortex_a8_neon_bp_simple): Likewise.
18931 (cortex_a8_neon_bp_2cycle): Likewise.
18932 (cortex_a8_neon_bp_3cycle): Likewise.
18933 (cortex_a8_neon_ldr): Likewise.
18934 (cortex_a8_neon_str): Likewise.
18935 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18936 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18937 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18938 (cortex_a8_neon_vld2_4_regs): Likewise.
18939 (cortex_a8_neon_vld3_vld4): Likewise.
18940 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18941 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18942 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18943 (cortex_a8_neon_vst3_vst4): Likewise.
18944 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18945 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18946 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18947 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18948 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18949 (cortex_a8_neon_mcr): Likewise.
18950 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18951 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18952 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18953 change.
18954 (ca9_neon_mrrc): Likewise.
18955 (cortex_a9_neon_int_1): Likewise.
18956 (cortex_a9_neon_int_2): Likewise.
18957 (cortex_a9_neon_int_3): Likewise.
18958 (cortex_a9_neon_int_4): Likewise.
18959 (cortex_a9_neon_int_5): Likewise.
18960 (cortex_a9_neon_vqneg_vqabs): Likewise.
18961 (cortex_a9_neon_vmov): Likewise.
18962 (cortex_a9_neon_vaba): Likewise.
18963 (cortex_a9_neon_vaba_qqq): Likewise.
18964 (cortex_a9_neon_vsma): Likewise.
18965 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18966 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18967 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18968 long_scalar): Likewise.
18969 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18970 (cortex_a9_neon_mla_qqq_8_16): Likewise.
18971 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18972 long_scalar_qdd_64_32_long): Likewise.
18973 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18974 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18975 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
18976 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18977 (cortex_a9_neon_shift_1): Likewise.
18978 (cortex_a9_neon_shift_2): Likewise.
18979 (cortex_a9_neon_shift_3): Likewise.
18980 (cortex_a9_neon_vshl_ddd): Likewise.
18981 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18982 (cortex_a9_neon_vsra_vrsra): Likewise.
18983 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
18984 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
18985 (cortex_a9_neon_fp_vsum): Likewise.
18986 (cortex_a9_neon_fp_vmul_ddd): Likewise.
18987 (cortex_a9_neon_fp_vmul_qqd): Likewise.
18988 (cortex_a9_neon_fp_vmla_ddd): Likewise.
18989 (cortex_a9_neon_fp_vmla_qqq): Likewise.
18990 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
18991 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
18992 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18993 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18994 (cortex_a9_neon_bp_simple): Likewise.
18995 (cortex_a9_neon_bp_2cycle): Likewise.
18996 (cortex_a9_neon_bp_3cycle): Likewise.
18997 (cortex_a9_neon_ldr): Likewise.
18998 (cortex_a9_neon_str): Likewise.
18999 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19000 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19001 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19002 (cortex_a9_neon_vld2_4_regs): Likewise.
19003 (cortex_a9_neon_vld3_vld4): Likewise.
19004 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19005 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19006 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19007 (cortex_a9_neon_vst3_vst4): Likewise.
19008 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19009 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19010 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19011 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19012 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19013 (cortex_a9_neon_mcr): Likewise.
19014 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19015 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19016 (cortex_a9_fps): Likewise.
19017 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19018 change.
19019 (cortex_m4_fmuls): Likewise.
19020 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19021 change.
19022 (cortex_r4_mrc): Likewise.
19023 * config/arm/iterators.md: Update comment referring to neon_type.
19024 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19025 (iwmmxt_movsi_insn): Likewise.
19026 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19027 attribute change.
19028 (pj4_core_to_vfp): Likewise.
19029 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19030 attribute change.
19031 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19032 (vfp_fstore): Likewise.
19033 * doc/md.texi: Change references to neon_type to refer to type.
19034
19035 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19036
19037 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19038
19039 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19040
19041 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19042 lglobl if not weak.
19043
19044 2013-09-04 Easwaran Raman <eraman@google.com>
19045
19046 PR middle-end/57370
19047 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19048 (build_and_add_sum): Use it.
19049 (appears_later_in_bb): Simplify code.
19050
19051 2013-09-04 Teresa Johnson <tejohnson@google.com>
19052
19053 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19054
19055 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19056
19057 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19058
19059 2013-09-04 Jan Hubicka <jh@suse.cz>
19060
19061 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19062 * ipa-devirt.c: Include diganostic.h
19063 (odr_type_d): Add types and types_set.
19064 (hash_type_name): Work for types with vtables during LTO.
19065 (odr_hasher::remove): Fix comment; destroy types_set.
19066 (add_type_duplicate): New function,
19067 (get_odr_type): Use it.
19068 (dump_type_inheritance_graph): Dump type duplicates.
19069 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19070 graph.
19071 * tree.c (types_same_for_odr): Give exact answers on types with
19072 virtual tables.
19073
19074 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19075
19076 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19077 explaining their differences.
19078
19079 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19080
19081 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19082
19083 2013-09-03 Jeff Law <law@redhat.com>
19084
19085 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19086 when not threading through a joiner block. Pass joiner/no joiner
19087 state to register_jump_thread.
19088 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19089 state from argument rather than implying on path length.
19090 Dump the entire jump thread path into debugging dump.
19091 * tree-flow.h (register_jump_thread): Update prototype.
19092
19093 2013-08-29 Xinliang David Li <davidxl@google.com>
19094
19095 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19096 Remove a trivial gcc_assert.
19097
19098 2013-08-29 Xinliang David Li <davidxl@google.com>
19099
19100 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19101 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19102 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19103 Delay base decl alignment adjustment.
19104 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19105 * tree-vectorizer.h: New data structure.
19106 (set_dr_misalignment): New function.
19107 (dr_misalignment): Ditto.
19108 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19109 (vectorizable_load): Ditto.
19110 (ensure_base_align): New function.
19111 (vectorize_loops): Add dbg_cnt support.
19112 (execute_vect_slp): Ditto.
19113 * dbgcnt.def: New debug counter.
19114 * Makefile: New dependency.
19115
19116 2013-09-03 Meador Inge <meadori@codesourcery.com>
19117
19118 Revert:
19119
19120 2013-08-30 Meador Inge <meadori@codesourcery.com>
19121
19122 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19123
19124 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19125
19126 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19127 function descriptor.
19128
19129 2013-09-03 Richard Biener <rguenther@suse.de>
19130
19131 * tree-affine.c (add_elt_to_tree): Fix association issue,
19132 avoid useless converts and make sure to always return a
19133 properly typed result.
19134
19135 2013-09-03 Richard Biener <rguenther@suse.de>
19136
19137 PR middle-end/57656
19138 * fold-const.c (negate_expr_p): Fix division case.
19139 (negate_expr): Likewise.
19140
19141 2013-09-03 Richard Biener <rguenther@suse.de>
19142
19143 PR lto/58285
19144 * tree-streamer-out.c: Include tm.h.
19145 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19146
19147 2013-09-03 Jan Hubicka <jh@suse.cz>
19148
19149 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19150
19151 2013-09-03 Alan Modra <amodra@gmail.com>
19152
19153 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19154 multilibs to big-endian target and vice versa.
19155 * config/rs6000/t-linux64: Use := assignment on all vars.
19156 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19157 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19158 * config/rs6000/t-linux64le: New file.
19159 * config/rs6000/t-linux64bele: New file.
19160 * config/rs6000/t-linux64lebe: New file.
19161
19162 2013-09-02 Jan Hubicka <jh@suse.cz>
19163
19164 * ipa-inline-transform.c (inline_transform): Do not
19165 optimize_inline_calls when not optimizing.
19166
19167 2013-09-02 Jan Hubicka <jh@suse.cz>
19168
19169 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19170 duplicated nodes for assembler names.
19171 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19172 hard registers from assembler name hash.
19173
19174 2013-09-02 Jan Hubicka <jh@suse.cz>
19175
19176 * ipa-split.c (execute_split_functions): Split externally visible
19177 functions called once.
19178
19179 2013-09-02 Martin Jambor <mjambor@suse.cz>
19180
19181 PR ipa/58106
19182 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19183 linked list. When finding the correct duplicate, also consider also
19184 the caller in additon to its inlined_to node.
19185
19186 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19187
19188 * config/aarch64/aarch64-simd-builtins.def
19189 (dup_lane_scalar): Remove.
19190 * config/aarch64/aarch64-simd.md
19191 (aarch64_simd_dup): Add 'w->w' alternative.
19192 (aarch64_dup_lane<mode>): Allow for VALL.
19193 (aarch64_dup_lane_scalar<mode>): Remove.
19194 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19195 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19196 (aarch64_get_lane_unsigned<mode>): Likewise.
19197 (aarch64_get_lane<mode>): Likewise.
19198 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19199 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19200 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19201 (VCON): Change container of V2SF.
19202 (vswap_width_name): Likewise.
19203 * config/aarch64/arm_neon.h
19204 (__aarch64_vdup_lane_any): New.
19205 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19206 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19207 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19208
19209 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19210
19211 PR middle-end/56382
19212 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19213 the source or the destination is a single hard register.
19214
19215 2013-09-02 Richard Biener <rguenther@suse.de>
19216
19217 PR middle-end/57511
19218 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19219 non-linear SCEVs.
19220
19221 2013-09-02 Richard Biener <rguenther@suse.de>
19222
19223 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19224 arithmetic to sizetype.
19225
19226 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19227
19228 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19229 Find auto-increment use both before and after candidate.
19230
19231 2013-09-02 Marek Polacek <polacek@redhat.com>
19232
19233 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19234
19235 2013-09-01 Jan Hubicka <jh@suse.cz>
19236
19237 * Makefile.in: Add ipa-profile.o
19238 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19239 * cgraph.c (struct cgraph_propagate_frequency_data,
19240 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19241 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19242 * cgraph.h (cgraph_propagate_frequency): Remove.
19243 * ipa-inline-analysis.c: Include ipa-utils.h;
19244 drop duplicated cfgloop.h.
19245 (inline_update_callee_summaries): Update.
19246 * ipa-profile.c: New file.
19247 * ipa-utils.h (ipa_propagate_frequency): Declare.
19248 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19249 data-streamer.h, value-prof.h.
19250 (symtab_remove_unreachable_nodes): Update profile.
19251 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19252 account_time_size, cmp_counts, dump_histogram,
19253 ipa_profile_generate_summary, ipa_profile_write_summary,
19254 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19255 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19256 Move to ipa-profile.c.
19257
19258 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19259
19260 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19261
19262 2013-09-01 Jan Hubicka <jh@suse.cz>
19263
19264 * common.opt (fdevirtualize-speculatively): New function.
19265 * invoke.texi (fdevirtualize-speculatively): Document.
19266 * ipa-devirt.c: Include ipa-inline.h
19267 (likely_target_p): New function.
19268 (ipa_devirt): New function.
19269 (gate_ipa_devirt): New function.
19270 (pass_data_ipa_devirt): New static var.
19271 (pass_ipa_devirt): Likewise.
19272 (make_pass_ipa_devirt): New function.
19273 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19274 (common_handle_option): Disable devirtualization when
19275 value range profiling is available.
19276 * passes.def (pass_ipa_devirt): Add.
19277 * timever.def (TV_IPA_DEVIRT): New timevar.
19278 * tree-pass.h (make_pass_ipa_devirt):
19279
19280 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19281
19282 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19283 include sanitize(undefined).
19284
19285 2013-08-31 Diego Novillo <dnovillo@google.com>
19286
19287 * Makefile.in (TREE_CORE_H): Define.
19288 (TREE_H): Use.
19289 (GTFILES): Add tree-core.h.
19290 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19291 size the array.
19292 * tree-core.h: New file.
19293 Move all data structures, enum, typedefs, global
19294 declarations and constants from ...
19295 * tree.h: ... here.
19296
19297 2013-08-31 Jan Hubicka <jh@suse.cz>
19298
19299 * bulitins.c (expand_builtin): Do not early exit for gcov
19300 instrumented functions.
19301
19302 2013-08-31 Marek Polacek <polacek@redhat.com>
19303
19304 * ubsan.c: Include tm_p.h.
19305
19306 2013-08-31 Jan Hubicka <jh@suse.cz>
19307
19308 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19309 warning.
19310
19311 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19312 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19313 * tree-cfg.c (verify_gimple_label): ... here.
19314 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19315 (ipa_merge_profiles): New function.
19316 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19317 (lto_input_function_body): Likewise.
19318 * ipa-utils.h (ipa_merge_profiles): Declare.
19319 * lto-streamer.h (lto_input_function_body): Update prototype.
19320 (emit_label_in_global_context_p): Remove.
19321 * lto-symtab.c: Include ipa-utils.h
19322 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19323
19324 2013-08-31 Jan Hubicka <jh@suse.cz>
19325
19326 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19327
19328 2013-08-31 Jan Hubicka <jh@suse.cz>
19329
19330 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19331
19332 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19333
19334 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19335 "cmp" RTX before signed_comparison_operator check to account
19336 for "code" changes.
19337
19338 2013-08-30 Jan Hubicka <jh@suse.cz>
19339
19340 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19341 (detect_type_change_1): Rename to ...
19342 (detect_type_change): ... this one; early return on non-polymorphic
19343 types.
19344 (detect_type_change_ssa): Add comp_type parameter; update
19345 use of detect_type_change.
19346 (compute_complex_assign_jump_func): Add param_type parameter;
19347 update use of detect_type_change_ssa.
19348 (compute_complex_ancestor_jump_func): Likewise.
19349 (ipa_get_callee_param_type): New function.
19350 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19351 update calls to the jump function computation functions.
19352
19353 2013-08-30 Teresa Johnson <tejohnson@google.com>
19354 Steven Bosscher <steven@gcc.gnu.org>
19355
19356 * cfgrtl.c (fixup_new_cold_bb): New routine.
19357 (commit_edge_insertions): Invoke fixup_partitions.
19358 (find_partition_fixes): New routine.
19359 (fixup_partitions): Ditto.
19360 (verify_hot_cold_block_grouping): Update comments.
19361 (rtl_verify_edges): Invoke find_partition_fixes.
19362 (rtl_verify_bb_pointers): Update comments.
19363 (rtl_verify_bb_layout): Ditto.
19364 * basic-block.h (probably_never_executed_edge_p): Declare.
19365 (fixup_partitions): Ditto.
19366 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19367 * bb-reorder.c (sanitize_hot_paths): New function.
19368 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19369 sanitize_hot_paths.
19370 * predict.c (probably_never_executed_edge_p): New routine.
19371 * cfg.c (check_bb_profile): Add partition insanity warnings.
19372
19373 2013-08-30 Meador Inge <meadori@codesourcery.com>
19374
19375 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19376
19377 2013-08-30 Marek Polacek <polacek@redhat.com>
19378
19379 * Makefile.in (ubsan.o): Add.
19380 (c-family/c-ubsan.o): Add.
19381 (builtins.o): Add ubsan.h dependency.
19382 * ubsan.h: New file.
19383 * ubsan.c: New file.
19384 * common.opt: Add -fsanitize=undefined option.
19385 (flag_sanitize): Add variable.
19386 (fsanitize=): Add option. Add Driver.
19387 (fsanitize=thread): Remove option.
19388 (fsanitize=address): Likewise.
19389 (static-libubsan): New option.
19390 * doc/invoke.texi: Document the new flag and -static-libubsan.
19391 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19392 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19393 * builtin-attrs.def (ATTR_COLD): Define.
19394 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19395 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19396 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19397 * flag-types.h (sanitize_code): New enum.
19398 * opts.c (common_handle_option): Parse command line arguments
19399 of -fsanitize=. Add -fsanitize=unreachable option.
19400 * varasm.c (get_variable_section): Adjust.
19401 (assemble_noswitch_variable): Likewise.
19402 (assemble_variable): Likewise.
19403 (output_constant_def_contents): Likewise.
19404 (categorize_decl_for_section): Likewise.
19405 (place_block_symbol): Likewise.
19406 (output_object_block): Likewise.
19407 * builtins.def: Likewise.
19408 * toplev.c (compile_file): Likewise.
19409 (process_options): Likewise.
19410 * cppbuiltin.c: Likewise.
19411 * tsan.c (tsan_pass): Likewise.
19412 (tsan_gate): Likewise.
19413 (tsan_gate_O0): Likewise.
19414 * cfgexpand.c (partition_stack_vars): Likewise.
19415 (expand_stack_vars): Likewise.
19416 (defer_stack_allocation): Likewise.
19417 (expand_used_vars): Likewise.
19418 * cfgcleanup.c (old_insns_match_p): Likewise.
19419 * asan.c (asan_finish_file): Likewise.
19420 (asan_instrument): Likewise.
19421 (gate_asan): Likewise.
19422 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19423 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19424 (asan_global_struct): Use pointer_sized_int_node instead
19425 calling build_nonstandard_integer_type.
19426 (initialize_sanitizer_builtins): Likewise.
19427 (asan_finish_file): Likewise.
19428 * gcc.c: Document %{%:function(args):X}.
19429 (static_spec_functions): Add sanitize.
19430 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19431 store funcval != NULL there.
19432 (do_spec_1): Adjust handle_spec_function caller.
19433 (handle_braces): Allow %:function(args) as condition.
19434 (sanitize_spec_function): New function.
19435 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19436 (LIBUBSAN_SPEC): Likewise.
19437 (LIBUBSAN_EARLY_SPEC): Likewise.
19438 (SANITIZER_SPEC): Handle libubsan.
19439 (SANITIZER_EARLY_SPEC): Likewise.
19440 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19441 instead of fsanitize=address.
19442 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19443 instead of fsanitize=address*.
19444 * builtins.c: Include ubsan.h.
19445 (fold_builtin_0): Instrument __builtin_unreachable.
19446 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19447 instead of flag_asan.
19448 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19449 (pointer_sized_int_node): Define.
19450 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19451
19452 2013-08-30 Mike Stump <mikestump@comcast.net>
19453
19454 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19455 with RE patterns.
19456
19457 2013-08-29 Jan Hubicka <jh@suse.cz>
19458
19459 * cgraph.c (cgraph_function_body_availability): Handle weakref
19460 correctly.
19461 * passes.def: Remove pass_fixup_cfg.
19462 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19463 track when we need to remove functions.
19464 (gate_ipa_inline): Execute inlining always; add comment why.
19465 (pass_data_ipa_inline): Remove TODO_remove_functions.
19466 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19467 do not produce summaries.
19468 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19469 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19470 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19471 constant pool and vtable.
19472
19473 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19474
19475 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19476 New arm_neon.h's internal macros to specify 64-bit constants.
19477 Avoid using stdint.h's macros.
19478
19479 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19480
19481 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19482 before applying REG_P.
19483
19484 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19485
19486 PR tree-optimization/58277
19487 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19488 after seeing too many stmts with vdef in between dombb and current
19489 bb, invalidate everything.
19490
19491 2013-08-30 Richard Biener <rguenther@suse.de>
19492
19493 * fold-const.c (fold_single_bit_test): Fix overflow test.
19494
19495 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19496
19497 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19498 and which can live in a register, always retrieve the value on entry.
19499 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19500 passed by invisible reference specially.
19501 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19502 (vt_add_function_parameter): Correctly deal with a parameter passed by
19503 invisible reference.
19504
19505 2013-08-30 Jan Hubicka <jh@suse.cz>
19506
19507 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19508
19509 2013-08-30 Richard Biener <rguenther@suse.de>
19510
19511 PR tree-optimization/58228
19512 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19513 allow invariant loads in nested loop vectorization.
19514
19515 2013-08-30 Richard Biener <rguenther@suse.de>
19516
19517 PR tree-optimization/58223
19518 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19519 (has_anti_or_output_dependence): ... this and adjust to also
19520 look for output dependences.
19521 (mark_nodes_having_upstream_mem_writes): Adjust.
19522 (rdg_flag_uses): Likewise.
19523
19524 2013-08-30 Richard Biener <rguenther@suse.de>
19525
19526 PR tree-optimization/58010
19527 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19528 assert that we have a loop-closed PHI.
19529
19530 2013-08-29 Jan Hubicka <jh@suse.cz>
19531
19532 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19533 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19534 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19535 (lto_free_function_in_decl_state_for_node): New function.
19536
19537 2013-08-29 Xinliang David Li <davidxl@google.com>
19538
19539 * loop-unroll.c (report_unroll_peel): Minor message change.
19540 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19541 Emit alignment peeling message with default -fopt-info.
19542 (vect_loop_versioning): Emit loop version info message.
19543 * tree-vectorizer.c (vectorize_loops): Minor message change.
19544 (execute_vect_slp): Ditto.
19545
19546 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19547
19548 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19549 of the clone from the DECL_NAME of the original function.
19550
19551 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19552
19553 * passes.c (register_pass): Add overload.
19554 * tree-pass.h (register_pass): Forward declare it. Add comment.
19555
19556 2013-08-29 Jan Hubicka <jh@suse.cz>
19557
19558 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19559 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19560 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19561 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19562 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19563 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19564 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19565 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19566
19567 2013-08-29 Teresa Johnson <tejohnson@google.com>
19568
19569 * dumpfile.c (dump_loc): Output column number.
19570 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19571 * doc/invoke.texi: Document optall -fopt-info flag.
19572 * profile.c (read_profile_edge_counts): Use new dump framework.
19573 (compute_branch_probabilities): Ditto.
19574 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19575 when pass not in any opt group.
19576 * pass_manager.h (pass_manager::get_pass_profile): New method.
19577 * value-prof.c (check_counter): Use new dump framework.
19578 (check_ic_target): Ditto.
19579 * coverage.c (get_coverage_counts): Ditto.
19580 (coverage_init): Setup new dump framework.
19581
19582 2013-08-29 Richard Biener <rguenther@suse.de>
19583
19584 PR tree-optimization/58246
19585 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19586 handle the dominance check inside a basic-block.
19587
19588 2013-08-29 Richard Biener <rguenther@suse.de>
19589
19590 PR middle-end/57287
19591 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19592 of default defs that appear in abnormal PHI nodes.
19593
19594 2013-08-29 Richard Biener <rguenther@suse.de>
19595
19596 PR tree-optimization/57685
19597 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19598 single-use operands to avoid exponential complexity.
19599
19600 2013-08-28 Dehao Chen <dehao@google.com>
19601
19602 * ipa-inline.c (edge_badness): Fix integer underflow.
19603
19604 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19605
19606 * gtm-builtins.def (_ITM_free): Declare leaf.
19607
19608 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19609
19610 PR target/58067
19611 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19612 (*tls_local_dynamic_base_64_largepic): Likewise.
19613 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19614 Remove predicate from call operand.
19615 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19616 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19617
19618 2013-08-28 Jeff Law <law@redhat.com>
19619
19620 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19621 checks for the number of predecessors and successors allowed.
19622 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19623 which require copying a joiner block if there is a request which
19624 is a subpath that requires no joiner block copying.
19625
19626 2013-08-28 Jan Hubicka <jh@suse.cz>
19627
19628 * lto-streamer-out.c (DFS_write_tree_body): Drop
19629 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19630 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19631 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19632 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19633 Do not read DECL_ERROR_ISSUED.
19634 (unpack_ts_decl_with_vis_value_fields): Do not read
19635 DECL_DEFER_OUTPUT.
19636 (lto_input_ts_binfo_tree_pointers): Do not read
19637 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19638 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19639 write DECL_ERROR_ISSUED..
19640 (pack_ts_decl_with_vis_value_fields): Do not write
19641 DECL_DEFER_OUTPUT.
19642 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19643 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19644 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19645 * tree.h (tree_decl_common): Update comment.
19646 (DECL_ERROR_ISSUED): Remove.
19647
19648 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19649
19650 PR middle-end/58257
19651 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19652
19653 2013-08-28 Jan Hubicka <jh@suse.cz>
19654
19655 * builtins.def (free): Declare leaf.
19656
19657 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19658
19659 * gdbhooks.py: New.
19660 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19661 * configure: Regenerate.
19662
19663 2013-08-27 Martin Jambor <mjambor@suse.cz>
19664
19665 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19666 (ipa_ancestor_jf_data): Likewise.
19667 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19668 (ipa_get_jf_pass_through_type_preserved): New function.
19669 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19670 (ipa_get_jf_ancestor_type_preserved): New function.
19671 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19672 (ipa_get_jf_ancestor_result): Likewise.
19673 (propagate_vals_accross_pass_through): Use
19674 ipa_get_jf_pass_through_result to do all the value mappings.
19675 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19676 type_preserved flag.
19677 (ipa_set_jf_cst_copy): New function.
19678 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19679 (ipa_set_jf_arith_pass_through): Likewise.
19680 (ipa_set_ancestor_jf): Likewise.
19681 (compute_complex_assign_jump_func): Set type_preserved instead of
19682 punting.
19683 (ipa_compute_jump_functions_for_edge): Likewise.
19684 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19685 (update_jump_functions_after_inlining): Update type_preserved.
19686 Explicitely create jump functions when combining one with pass_through.
19687 (ipa_write_jump_function): Stream the type_preserved flags.
19688 (ipa_read_jump_function): Likewise.
19689
19690 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19691 Aldy Hernandez <aldyh@redhat.com>
19692
19693 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19694 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19695 * function.h (struct function): Add has_force_vect_loops and
19696 has_simduid_loops.
19697 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19698 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19699 handle it.
19700 * gimple.def: Update CLAUSES comments.
19701 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19702 (gimple_build_omp_for): Add argument to prototype.
19703 (gimple_omp_for_kind): New.
19704 (gimple_omp_for_set_kind): New.
19705 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19706 GOVD_DATA_SHARE_CLASS.
19707 (enum omp_region_type): Add ORT_SIMD.
19708 (gimple_add_tmp_var): Handle ORT_SIMD.
19709 (gimplify_var_or_parm_decl): Same.
19710 (is_gimple_stmt): Same.
19711 (omp_firstprivatize_variable): Same.
19712 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19713 (omp_notice_variable): Handle ORT_SIMD.
19714 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19715 (omp_check_private): Handle ORT_SIMD.
19716 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19717 OMP_CLAUSE_SAFELEN.
19718 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19719 Handle OMP_CLAUSE_LASTPRIVATE.
19720 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19721 OMP_CLAUSE_SAFELEN.
19722 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19723 (gimplify_expr): Handle OMP_SIMD.
19724 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19725 (expand_GOMP_SIMD_VF): New.
19726 (expand_GOMP_SIMD_LAST_LANE): New.
19727 * internal-fn.def (GOMP_SIMD_LANE): New.
19728 (GOMP_SIMD_VF): New.
19729 (GOMP_SIMD_LAST_LANE): New.
19730 * omp-low.c: Include target.h.
19731 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19732 OMP_CLAUSE_SAFELEN.
19733 (check_omp_nesting_restrictions): Same.
19734 (omp_max_vf): New.
19735 (lower_rec_simd_input_clauses): New.
19736 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19737 OMP_CLAUSE_LINEAR.
19738 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19739 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19740 (expand_omp_build_assign): New.
19741 (expand_omp_for_init_counts): New.
19742 (expand_omp_for_init_vars): New.
19743 (extract_omp_for_update_vars): New.
19744 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19745 and rewrite accordingly.
19746 (expand_omp_simd): New.
19747 (expand_omp_for): Use expand_omp_simd.
19748 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19749 (lower_omp_for): Do not lower the body.
19750 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19751 in their own loops.
19752 * tree-flow.h (find_omp_clause): Remove prototype.
19753 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19754 forcing vectorization of the loop, or if flag_tree_vectorize.
19755 (gate_tree_if_conversion): Similarly.
19756 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19757 gimple_build_omp_for.
19758 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19759 * tree-parloops (create_parallel_loop): Pass kind argument to
19760 gimple_build_omp_for.
19761 * tree-pretty-print.c (dump_omp_clause): Add cases for
19762 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19763 OMP_CLAUSE__SIMDUID_.
19764 (dump_generic_node): Handle OMP_SIMD.
19765 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19766 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19767 unroll OMP_SIMD loops here.
19768 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19769 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19770 loop->safelen.
19771 (vect_analyze_data_refs): Handle simd loops.
19772 * tree-vect-loop.c (vectorizable_live_operation): Handle
19773 IFN_GOMP_SIMD*.
19774 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19775 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19776 (vectorizable_load): Same.
19777 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19778 (struct simduid_to_vf): New.
19779 (simduid_to_vf::hash): New.
19780 (simduid_to-vf::equal): New.
19781 (struct simd_array_to_simduid): New.
19782 (simd_array_to_simduid::hash): New.
19783 (simd_array_to_simduid::equal): New.
19784 (adjust_simduid_builtins): New.
19785 (struct note_simd_array_uses_struct): New.
19786 (note_simd_array_uses_cb): New.
19787 (note_simd_array_uses): New.
19788 (vectorize_loops): Handle simd hints and adjust simd builtins
19789 accordingly.
19790 * tree-vectorizer.h (struct _stmt_vec_info): Add
19791 simd_lane_access_p field.
19792 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19793 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19794 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19795 (omp_clause_code_name): Same.
19796 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19797 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19798 * tree.def (OMP_SIMD): New entry.
19799 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19800 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19801 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19802 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19803 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19804 (OMP_CLAUSE_LINEAR_STEP): New.
19805 (OMP_CLAUSE_SAFELEN_EXPR): New.
19806 (OMP_CLAUSE__SIMDUID__DECL): New.
19807 (find_omp_clause): New prototype.
19808
19809 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19810
19811 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19812 Haswell processor detection.
19813
19814 2013-08-27 Christian Widmer <shadow@umbrox.de>
19815
19816 PR target/57927
19817 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19818 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19819 AVX2 capable processors.
19820
19821 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19822
19823 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19824 of vget_low_* with implementations in terms of other intrinsics.
19825
19826 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19827
19828 PR middle-end/57219
19829 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19830 values to -1, 0 and 1.
19831
19832 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19833
19834 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19835 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19836 (<optab><mode>3_insn): Remove.
19837 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19838 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19839 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19840 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19841 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19842 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19843 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19844 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19845 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19846 (ror<mode>3_insn): Likewise.
19847 * config/aarch64/predicates.md (aarch64_simd_register): New.
19848
19849 2013-08-27 Richard Biener <rguenther@suse.de>
19850
19851 PR tree-optimization/57521
19852 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19853 one edge is non-critical.
19854 (find_phi_replacement_condition): Make sure to use a non-critical
19855 edge. Cleanup and remove old bug workarounds.
19856 (bb_postdominates_preds): Remove.
19857 (if_convertible_loop_p_1): Do not compute post-dominators.
19858 (combine_blocks): Do not free post-dominators.
19859 (main_tree_if_conversion): Likewise.
19860 (pass_data_if_conversion): Add TODO_verify_ssa.
19861
19862 2013-08-27 DJ Delorie <dj@redhat.com>
19863
19864 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19865
19866 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19867
19868 * function.c (assign_parm_find_data_types): Set passed_mode and
19869 nominal_mode to the TYPE_MODE of nominal_type for the built
19870 pointer type in case of the struct-pass-by-reference.
19871
19872 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19873
19874 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19875 (UINT16_TYPE): Change default to "unsigned int".
19876
19877 * config/avr/avr.opt (mfract-convert-truncate): New option.
19878 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19879 is set, round negative fractional integers according to n1169
19880 when converting to integer types.
19881
19882 2013-08-26 Jan Hubicka <jh@suse.cz>
19883
19884 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19885 methods can not be called indirectly when their address is not taken.
19886
19887 2013-08-26 Jan Hubicka <jh@suse.cz>
19888
19889 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19890 ctor_for_folding.
19891
19892 2013-08-26 Jan Hubicka <jh@suse.cz>
19893
19894 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19895 can be unshared.
19896
19897 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19898
19899 * reload.c (find_valid_class): Allow classes that do not include
19900 FIRST_PSEUDO_REGISTER - 1.
19901
19902 2013-08-26 Jan Hubicka <jh@suse.cz>
19903
19904 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19905 fix edge count/frequency when speculation failed; fix type check
19906 for the direct call.
19907
19908 2013-08-26 Jan Hubicka <jh@suse.cz>
19909
19910 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19911
19912 2013-08-26 Jan Hubicka <jh@suse.cz>
19913
19914 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19915 to be changed by edge redirection.
19916
19917 2013-08-26 Jan Hubicka <jh@suse.cz>
19918
19919 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19920 formating; add sanity check.
19921 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19922 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19923 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19924 (resolve_noninline_speculation): Update callee keys, too.
19925
19926 2013-08-26 Jan Hubicka <jh@suse.cz>
19927
19928 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19929 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19930
19931 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19932
19933 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19934 into proper place.
19935
19936 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19937
19938 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19939 (x86_64_elf_select_section): Ditto.
19940 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19941 arguments.
19942 (ix86_pass_by_reference): Ditto.
19943 (output_set_got): Ditto.
19944 (ix86_unary_operator_ok): Ditto.
19945 (ix86_expand_builtin): Ditto.
19946
19947 2013-08-23 Jan Hubicka <jh@suse.cz>
19948
19949 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19950
19951 2013-08-23 Jan Hubicka <jh@suse.cz>
19952
19953 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19954 (tree_decl_with_vis): Add FINAL field.
19955
19956 2013-08-23 Jeff Law <law@redhat.com>
19957
19958 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19959 the debugging dump when the expression is fully redundant.
19960
19961 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19962
19963 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19964 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
19965 * pretty-print.c (pp_formatted_text_data): Likewise.
19966 (pp_write_text_to_stream): Likewise.
19967 (pp_write_text_as_dot_label_to_stream): Likewise.
19968 (pp_append_r): Likewise.
19969 (pp_format): Likewise.
19970 (pp_flush): Likewise.
19971 (pp_clear_output_area): Likewise.
19972 (pp_append_text): Likewise.
19973 (pp_formatted_text): Likewise.
19974 (pp_remaining_character_count_for_line): Likewise.
19975 (pp_newline): Likewise.
19976 (pp_character): Likewise.
19977 (output_buffer::~output_buffer): Define.
19978 (pretty_printer::~pretty_printer): Destruct output buffer.
19979 * pretty-print.h (output_buffer::~output_buffer): Declare.
19980 (pretty_printer::~pretty_printer): Declare virtual.
19981
19982 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
19983
19984 PR other/57324
19985 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
19986 HOST_WIDE_INT_M1U): New macros.
19987 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
19988 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
19989 unsigned -1 for lshift.
19990 * cse.c (cse_insn): Likewise.
19991 * double-int.c (rshift_double, lshift_double): Likewise.
19992 * builtins.c (fold_builtin_bitop): Likewise.
19993 * combine.c (force_to_mode): Likewise.
19994 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
19995 * simplify-rtx.c (simplify_const_unary_operation,
19996 simplify_const_binary_operation): Likewise.
19997 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
19998 check_va_list_escapes): Likewise.
19999 * rtlanal.c (nonzero_bits1): Likewise.
20000 * expmed.c (expand_smod_pow2): Likewise.
20001 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20002
20003 2013-08-23 Jan Hubicka <jh@suse.cz>
20004
20005 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20006 as having address taken.
20007
20008 2013-08-23 Jan Hubicka <jh@suse.cz>
20009
20010 * ipa-utils.h (method_class_type): Declare.
20011 * ipa-devirt.c (method_class_type): Export.
20012
20013 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20014 do not walk base classes of anonymous types.
20015
20016 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20017
20018 PR rtl-optimization/58220
20019 PR regression/58221
20020 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20021 handle SEQUENCE insns properly.
20022
20023 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20024
20025 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20026 definition.
20027 (pp_newline_and_indent): Likewise.
20028 (pp_separate_with): Likewise.
20029 * pretty-print.c (pp_newline_and_flush): Define.
20030 (pp_newline_and_indent): Likewise.
20031 (pp_separate_with): Likewise.
20032
20033 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20034
20035 PR target/58218
20036 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20037 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20038
20039 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20040
20041 * config/i386/predicates.md (ext_sse_reg_operand): New.
20042 * config/i386/i386.md (*movti_internal): Use
20043 predicate to determine if EVEX is needed.
20044 (*movsi_internal): Ditto.
20045 (*movdf_internal): Ditto.
20046 (*movsf_internal): Ditto.
20047 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20048
20049 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20050
20051 PR tree-optimization/58209
20052 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20053 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20054 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20055 emit POINTER_PLUS_EXPR.
20056 (create_tailcall_accumulator): For pointer result type accumulate in
20057 sizetype type.
20058
20059 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20060
20061 * configure.ac: Add backslashes missing from the last change.
20062 * configure: Regenerate.
20063
20064 2013-08-22 Jan Hubicka <jh@susue.cz>
20065
20066 * ipa.c (function_and_variable_visibility): First remember function
20067 was global and then make it local.
20068
20069 2013-08-22 Julian Brown <julian@codesourcery.com>
20070
20071 * configure.ac: Add aarch64 to list of arches which use "nop" in
20072 debug_line test.
20073 * configure: Regenerate.
20074
20075 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20076
20077 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20078 gnu_libc_has_function.
20079 * config/s390/tpf.h: Likewise.
20080
20081 2013-08-22 Jan Hubicka <jh@susue.cz>
20082
20083 * timevar.c (validate_phases): Add cast.
20084
20085 2013-08-22 Jan Hubicka <jh@susue.cz>
20086
20087 * timevar.c (validate_phases): Use size_t for memory.
20088 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20089
20090 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20091
20092 * pretty-print.h (output_buffer::output_buffer): Declare.
20093 (pretty_printer::pretty_printer): Likewise.
20094 (pp_construct): Remove.
20095 * pretty-print.c (output_buffer::output_buffer): Define.
20096 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20097 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20098 (print_gimple_expr): Likewise.
20099 (print_gimple_seq): Likewise.
20100 (gimple_dump_bb): Likewise.
20101 * sched-vis.c (dump_value_slim): Likewise.
20102 (dump_insn_slim): Likewise.
20103 (dump_rtl_slim): Likewise.
20104 (str_pattern_slim): Likewise.
20105 * tree-mudflap.c (mf_varname_tree): Likewise.
20106 * graph.c (print_graph_cfg): Likewise.
20107 (start_graph_dump): Likewise.
20108 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20109 placement-new.
20110 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20111 pretty printer initialization.
20112 * coretypes.h (diagnostic_context): Remove superflous type alias
20113 declaration.
20114 (pretty_printer): Likewise. Declare directly as a class.
20115 (pretty_print_info): Remove declaration as class.
20116 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20117 and pp_clear_output_area.
20118 (asan_add_global): Likewise.
20119
20120 2013-08-22 Jan Hubicka <jh@suse.cz>
20121
20122 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20123 * ipa-utils.h (update_type_inheritance_graph): Declare.
20124 (possible_polymorphic_call_target_p): Declare.
20125 (possible_polymorphic_call_target_p): New.
20126 * ipa-devirt.c: Update toplevel comments.
20127 (cached_polymorphic_call_targets): Move up.
20128 (odr_type_d): Move ID down.
20129 (polymorphic_type_binfo_p): Update comment.
20130 (odr_hasher::remove): Likewise;
20131 (get_odr_type): Set anonymous_namespace.
20132 (dump_odr_type): Dump it.
20133 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20134 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20135 (record_binfo): Add comment.
20136 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20137 built.
20138 (devirt_node_removal_hook): Do not iCE when cache is freed.
20139 (possible_polymorphic_call_target_p): New predicate.
20140 (update_type_inheritance_graph): New function.
20141
20142 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20143 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20144 Sergey Lega <sergey.s.lega@intel.com>
20145 Anna Tikhonova <anna.tikhonova@intel.com>
20146 Ilya Tocar <ilya.tocar@intel.com>
20147 Andrey Turetskiy <andrey.turetskiy@intel.com>
20148 Ilya Verbin <ilya.verbin@intel.com>
20149 Kirill Yukhin <kirill.yukhin@intel.com>
20150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20151
20152 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20153 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20154 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20155 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20156 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20157 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20158 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20159 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20160 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20161 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20162 OPT_mavx512pf, OPT_mavx512er cases.
20163 * config/i386/constraints.md (v): New constraint.
20164 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20165 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20166 (bit_AVX512CD): New.
20167 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20168 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20169 * config/i386/i386-c.c (ix86_target_macros_internal):
20170 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20171 __AVX512PF__.
20172 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20173 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20174 * config/i386/i386.c (regclass_map, dbx_register_map)
20175 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20176 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20177 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20178 -mavx512pf options.
20179 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20180 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20181 -mavx512pf options. Fix formatting.
20182 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20183 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20184 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20185 -mavx512cd, -mavx512pf options.
20186 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20187 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20188 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20189 ALL_SSE_REGS.
20190 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20191 (ix86_set_reg_reg_cost): Ditto.
20192 (x86_order_regs_for_local_alloc): Ditto.
20193 (MAX_VECT_LEN): Extend to 64-byte.
20194 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20195 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20196 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20197 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20198 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20199 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20200 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20201 (SSE_REG_MODE_P): Support new modes.
20202 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20203 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20204 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20205 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20206 (REG_CLASS_CONTENTS): Add new registers.
20207 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20208 (EXT_REX_SSE_REGNO_P): New.
20209 (HI_REGISTER_NAMES): Add new registers.
20210 * config/i386/i386.md: Define constants for new registers.
20211 (mode): Add new 512-bit modes.
20212 (prefix): Support evex prefix.
20213 (isa): Support avx512f, noavx512f, fma_avx512f.
20214 (ssemodesuffix): Add new 512-bit modes.
20215 (movxi): New.
20216 (*movxi_internal_avx512f): Ditto.
20217 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20218 Support MODE_XI.
20219 (*movsi_internal): Likewise.
20220 (*movdf_internal): Likewise.
20221 (*movsf_internal): Likewise.
20222 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20223 (<code><mode>3): Likewise.
20224 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20225 New.
20226 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20227 with the new constraint "v".
20228 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20229 modes.
20230 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20231 with the new constraint "v".
20232 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20233 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20234 (*<plusminus_insn><mode>3): Likewise.
20235 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20236 (*mul<mode>3): Likewise.
20237 (<sse>_vmmul<mode>3): Likewise.
20238 (<sse>_div<mode>3): Likewise.
20239 (<sse>_vmdiv<mode>3): Likewise.
20240 (<sse>_sqrt<mode>2): Likewise.
20241 (<sse>_vmsqrt<mode>2): Likewise.
20242 (*<code><mode>3_finite): Likewise.
20243 (*<code><mode>3) <smaxmin>: Likewise.
20244 (<sse>_vm<code><mode>3): Likewise.
20245 (*<code><mode>3) <any_logic>: Likewise.
20246 (*fma_fmadd_<mode>): Likewise.
20247 (*fma_fmsub_<mode>): Likewise.
20248 (*fma_fnmadd_<mode>): Likewise.
20249 (*fma_fnmsub_<mode>): Likewise.
20250 (*fma_fmaddsub_<mode>): Likewise.
20251 (*fma_fmsubadd_<mode>): Likewise.
20252 (*fmai_fmadd_<mode>): Likewise.
20253 (*fmai_fmsub_<mode>): Likewise.
20254 (*fmai_fnmadd_<mode>): Likewise.
20255 (*fmai_fnmsub_<mode>): Likewise.
20256 (sse_cvtsi2ss): Likewise.
20257 (sse_cvtsi2ssq): Likewise.
20258 (sse_cvtss2si): Likewise.
20259 (sse_cvtss2si_2): Likewise.
20260 (sse_cvtss2siq): Likewise.
20261 (sse_cvtss2siq_2): Likewise.
20262 (sse_cvttss2si): Likewise.
20263 (sse_cvtss2siq_2): Likewise.
20264 (float<sseintvecmodelower><mode>2): Likewise.
20265 (sse2_cvtsd2si_2): Likewise.
20266 (sse2_cvtsd2siq_2): Likewise.
20267 (*<plusminus_insn><mode>3): Likewise.
20268 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20269 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20270 (ashr<mode>3): Likewise.
20271 (<shift_insn><mode>3): Likewise.
20272 (avx2_<code><mode>3): Likewise.
20273 (*avx2_<code><mode>3): Likewise.
20274 (*andnot<mode>3): Likewise.
20275 (*<code><mode>3) <any_logic>: Likewise.
20276 (abs<mode>2): Likewise.
20277 (avx2_permvar<mode>): Likewise.
20278 (avx2_perm<mode>_1): Likewise.
20279 (*avx_vpermilp<mode>): Likewise.
20280 (avx_vpermilvar<mode>3): Likewise.
20281 (avx2_ashrv<mode>): Likewise.
20282 (avx2_<shift_insn>v<mode>): Likewise.
20283 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20284 -mavx512cd.
20285 * doc/rtl.texi: Document XImode.
20286
20287 2013-08-21 Jeff Law <law@redhat.com>
20288
20289 * tree-flow.h (register_jump_thread): Pass vector of edges
20290 instead of each important edge.
20291 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20292 thread path into a vector and pass that to register_jump_thread.
20293 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20294 passed in edge vector to the current 3-edge form.
20295
20296 Revert:
20297 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20298
20299 * dce.c (fini_dce): Call df_analyze again just in case
20300 delete_unmarked_insns removed anything.
20301
20302 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20303
20304 * reload.h (struct reg_equivs): Rename to ..
20305 (struct reg_equivs_s): .. this.
20306
20307 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20308
20309 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20310
20311 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20312
20313 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20314
20315 2013-08-21 Jeff Law <law@redhat.com>
20316
20317 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20318 simplify assignments too. If the RHS collapses to a singleton
20319 range, then return the value for the range.
20320
20321 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20322
20323 * config/i386/sse.md (V16): Rename to...
20324 (VMOVE): this.
20325 (mov<mode>): Update iterator name.
20326 (*mov<mode>_internal): Ditto.
20327 (push<mode>1): Ditto.
20328 (movmisalign<mode>): Ditto.
20329
20330 2013-08-20 Jan Hubicka <jh@suse.cz>
20331
20332 PR bootstrap/58186
20333 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20334 entry for direct edges.
20335 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20336
20337 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20338
20339 Revert my last two changes, r201865 and r201864:
20340
20341 Revert r201865:
20342 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20343
20344 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20345 instances can own GC refs.
20346
20347 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20348 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20349 (gcc::context::gt_pch_nx): Likewise.
20350 (gcc::context::gt_pch_nx): Likewise.
20351 * ggc.h (gt_ggc_mx <T>): New.
20352 (gt_pch_nx_with_op <T>): New.
20353 (gt_pch_nx <T>): New.
20354 * passes.c (opt_pass::gt_ggc_mx): New.
20355 (opt_pass::gt_pch_nx): New.
20356 (opt_pass::gt_pch_nx_with_op): New.
20357 (pass_manager::gt_ggc_mx): New.
20358 (pass_manager::gt_pch_nx): New.
20359 (pass_manager::gt_pch_nx_with_op): New.
20360 (pass_manager::operator new): Use
20361 ggc_internal_cleared_alloc_stat rather than xcalloc.
20362 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20363 (pass_manager::gt_ggc_mx): New.
20364 (pass_manager::gt_pch_nx): New.
20365 (pass_manager::gt_pch_nx_with_op): New.
20366 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20367 (opt_pass::operator new): New.
20368 (opt_pass::gt_ggc_mx): New.
20369 (opt_pass::gt_pch_nx): New.
20370 (opt_pass::gt_pch_nx_with_op): New.
20371
20372 Revert r201864:
20373 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20374
20375 * Makefile.in (GTFILES): Add context.h.
20376 * context.c (gcc::context::operator new): New.
20377 (gcc::context::gt_ggc_mx): New.
20378 (gcc::context::gt_pch_nx): New.
20379 (gcc::context::gt_pch_nx): New.
20380 * context.h (gcc::context): Add GTY((user)) marking.
20381 (gcc::context::operator new): New.
20382 (gcc::context::gt_ggc_mx): New.
20383 (gcc::context::gt_pch_nx): New.
20384 (gcc::context::gt_pch_nx): New.
20385 (g): Add GTY marking.
20386 (gt_ggc_mx (gcc::context *)): New.
20387 (gt_pch_nx (gcc::context *)): New.
20388 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20389 void *cookie)): New.
20390 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20391
20392 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20393
20394 * dce.c (fini_dce): Call df_analyze again just in case
20395 delete_unmarked_insns removed anything.
20396
20397 2013-08-20 Teresa Johnson <tejohnson@google.com>
20398
20399 PR rtl-optimizations/57451
20400 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20401 from crossing split section boundaries.
20402
20403 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20404
20405 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20406 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20407 with MULTLIB_DEFAULTS.
20408
20409 2013-08-20 Nick Clifton <nickc@redhat.com>
20410
20411 * target.def (narrow_volatile_bitfield): Note that the default
20412 value is false, not !TARGET_STRICT_ALIGN.
20413 * doc/tm.texi: Regenerate.
20414
20415 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20416
20417 Fix LIB_SPEC for systems without libpthread.
20418
20419 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20420 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20421 for Android.
20422 * config/i386/linux-common.h: Likewise.
20423 * config/mips/linux-common.h: Likewise.
20424
20425 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20426
20427 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20428 checks.
20429
20430 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20431
20432 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20433 instances can own GC refs.
20434
20435 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20436 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20437 (gcc::context::gt_pch_nx): Likewise.
20438 (gcc::context::gt_pch_nx): Likewise.
20439 * ggc.h (gt_ggc_mx <T>): New.
20440 (gt_pch_nx_with_op <T>): New.
20441 (gt_pch_nx <T>): New.
20442 * passes.c (opt_pass::gt_ggc_mx): New.
20443 (opt_pass::gt_pch_nx): New.
20444 (opt_pass::gt_pch_nx_with_op): New.
20445 (pass_manager::gt_ggc_mx): New.
20446 (pass_manager::gt_pch_nx): New.
20447 (pass_manager::gt_pch_nx_with_op): New.
20448 (pass_manager::operator new): Use
20449 ggc_internal_cleared_alloc_stat rather than xcalloc.
20450 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20451 (pass_manager::gt_ggc_mx): New.
20452 (pass_manager::gt_pch_nx): New.
20453 (pass_manager::gt_pch_nx_with_op): New.
20454 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20455 (opt_pass::operator new): New.
20456 (opt_pass::gt_ggc_mx): New.
20457 (opt_pass::gt_pch_nx): New.
20458 (opt_pass::gt_pch_nx_with_op): New.
20459
20460 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20461
20462 * Makefile.in (GTFILES): Add context.h.
20463 * context.c (gcc::context::operator new): New.
20464 (gcc::context::gt_ggc_mx): New.
20465 (gcc::context::gt_pch_nx): New.
20466 (gcc::context::gt_pch_nx): New.
20467 * context.h (gcc::context): Add GTY((user)) marking.
20468 (gcc::context::operator new): New.
20469 (gcc::context::gt_ggc_mx): New.
20470 (gcc::context::gt_pch_nx): New.
20471 (gcc::context::gt_pch_nx): New.
20472 (g): Add GTY marking.
20473 (gt_ggc_mx (gcc::context *)): New.
20474 (gt_pch_nx (gcc::context *)): New.
20475 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20476 void *cookie)): New.
20477 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20478
20479 2013-08-20 Alan Modra <amodra@gmail.com>
20480
20481 PR target/57865
20482 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20483 (rs6000_emit_epilogue): Likewise.
20484
20485 2013-08-19 Dehao Chen <dehao@google.com>
20486
20487 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20488
20489 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20490 Jakub Jelinek <jakub@redhat.com>
20491
20492 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20493 (BUILT_IN_FABSD64): Likewise.
20494 (BUILT_IN_FABSD128): Likewise.
20495 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20496 (fold_builtin_1): Likewise.
20497 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20498 destination and source operands.
20499 (*abstd2_fpr): Likewise.
20500 (*nabstd2_fpr): Likewise.
20501
20502 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20503
20504 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20505 JUMP_P and INSN_P.
20506
20507 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20508
20509 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20510 incomplete.
20511
20512 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20513
20514 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20515 * builtins.c (default_libc_has_function): New.
20516 (gnu_libc_has_function): Ditto.
20517 (no_c99_libc_has_function): Ditto.
20518 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20519 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20520 (fold_builtin_sincos): Likewise.
20521 (fold_builtin_cexp): Likewise.
20522 * builtins.def (DEF_C94_BUILTIN): Likewise.
20523 (DEF_C99_BUILTIN): Likewise.
20524 (DEF_C99_C90RES_BUILTIN): Likewise.
20525 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20526 definitions to using this define.
20527 * config/darwin-protos.h (darwin_libc_has_function): New.
20528 * config/darwin.c (darwin_libc_has_function): Ditto.
20529 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20530 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20531 * config/darwin.h: Ditto.
20532 * config/elfos.h: Ditto.
20533 * config/freebsd.h: Ditto.
20534 * config/i386/cygming.h: Ditto.
20535 * config/i386/djgpp.h: Ditto.
20536 * config/i386/i386-interix.h: Ditto.
20537 * config/microblaze/microblaze.h: Ditto.
20538 * config/mmix/mmix.h: Ditto.
20539 * config/gnu-user.h: Ditto.
20540 * config/ia64/hpux.h: Ditto.
20541 * config/pa/pa-hpux.h: Ditto.
20542 * config/pdp11/pdp11.h: Ditto.
20543 * config/picochip/picochip.h: Ditto.
20544 * config/linux.h: Ditto.
20545 * config/netbsd.h: Ditto.
20546 * config/openbsd.h: Ditto.
20547 * config/rs6000/aix43.h: Ditto.
20548 * config/rs6000/aix51.h: Ditto.
20549 * config/rs6000/aix52.h: Ditto.
20550 * config/rs6000/aix53.h: Ditto.
20551 * config/rs6000/aix61.h: Ditto.
20552 * config/rs6000/darwin.h: Ditto.
20553 * config/rs6000/linux.h: Ditto.
20554 * config/rs6000/linux64.h: Ditto.
20555 * config/s390/tpf.h: Ditto.
20556 * config/sol2-10.h: Ditto.
20557 * config/sol2.h: Ditto.
20558 * config/vms/vms.h: Ditto.
20559 * config/vxworks.h: Ditto.
20560 * config/linux-android.c (linux_android_libc_has_function):
20561 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20562 * config/linux-protos.h (linux_android_libc_has_function):
20563 New declaration.
20564 * config/i386/i386.c (ix86_libc_has_function): New.
20565 * config/i386/i386-protos.h
20566 (ix86_libc_has_function): New declaration.
20567 * config/i386/i386.md
20568 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20569 ("isinf<mode>2): Likewise.
20570 * convert.c (convert_to_integer): Using new target hook
20571 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20572 TARGET_C99_FUNCTIONS.
20573 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20574 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20575 * coretypes.h (function_class): New enum for different
20576 classes of functions.
20577 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20578 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20579 (TARGET_HAS_SINCOS): Likewise.
20580 (TARGET_LIBC_HAS_FUNCTION): New.
20581 * doc/tm.texi: Regenerated.
20582 * targhooks.h (default_libc_has_function): New declaration.
20583 (no_c99_libc_has_function): Ditto.
20584 (gnu_libc_has_function): Ditto.
20585 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20586 and TARGET_HAS_SINCOS.
20587
20588 2013-08-18 Jan Hubicka <jh@suse.cz>
20589
20590 * Makeifle-in (ipa-devirt.o): New.
20591 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20592 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20593 (analyze_functions): Look into possible targets of polymorphic call.
20594 * dumpfile.c (dump_files): Add type-inheritance dump.
20595 * dumpfile.h (TDI_inheritance): New.
20596 * ipa-devirt.c: New file.
20597 * ipa-utils.h (odr_type_d): Forward declare.
20598 (odr_type): New type.
20599 (build_type_inheritance_graph): Declare.
20600 (possible_polymorphic_call_targets): Declare and introduce inline
20601 variant when only edge is pased.
20602 (dump_possible_polymorphic_call_targets): Likewise.
20603 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20604 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20605 (types_same_for_odr): ... here.
20606 * tree.h (type_in_anonymous_namespace_p): Declare.
20607
20608 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20609
20610 PR tree-optimization/58006
20611 * tree-parloops.c (take_address_of): Don't ICE if get_name
20612 returns NULL.
20613 (eliminate_local_variables_stmt): Remove clobber stmts.
20614
20615 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20616
20617 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20618 error message is issued for an alias to undefined symbol.
20619
20620 2013-08-18 Jan Hubicka <jh@suse.cz>
20621
20622 * cgraph.c (cgraph_create_indirect_edge): Discover
20623 polymorphic calls and record basic info into indirect_info.
20624 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20625 devirtualization, ignore objc function calls.
20626 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20627 call with no parm index info.
20628 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20629 * tree.c (virtual_method_call_p): New function.
20630 * tree.h (virtual_method_call_p): Declare.
20631
20632 2013-08-16 Jan Hubicka <jh@suse.cz>
20633
20634 PR middle-end/58179
20635 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20636
20637 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20638
20639 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20640 attribute.
20641
20642 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20643
20644 * gengtype.c (type_for_name): Add special-case support for
20645 locating types within the "gcc::" namespace.
20646 (open_base_files): Emit a "using namespace gcc" directive.
20647
20648 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20649
20650 PR target/58160
20651 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20652 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20653
20654 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20655 array instead of each individual operand as a separate argument.
20656 (emit_fusion_gpr_load): Likewise.
20657 (expand_fusion_gpr_load): Add new function declaration.
20658
20659 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20660 signature to have the operands passed as an array, instead of as
20661 separate arguments. Allow ZERO_EXTEND to be in the memory
20662 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20663 depend on the register live/dead flags when peepholes are run.
20664 (expand_fusion_gpr_load): New function to be called from the
20665 peephole2 pass, to change the register that addis sets to be the
20666 target register.
20667 (emit_fusion_gpr_load): Change the calling signature to have the
20668 operands passed as an array, instead of as separate arguments.
20669 Allow ZERO_EXTEND to be in the memory address, and also
20670 SIGN_EXTEND if -mpower8-fusion-sign.
20671
20672 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20673 unspec enumeration.
20674 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20675 adjust the register addis loads up in the peephole2 pass. Do not
20676 depend on the register live/dead state when the peephole pass is done.
20677
20678 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20679
20680 * gengtype.c (create_user_defined_type): Ensure that the kind
20681 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20682 declaration is seen before the GTY((user)) marking.
20683
20684 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20685
20686 PR target/58105
20687 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20688
20689 2013-08-16 Jan Hubicka <jh@suse.cz>
20690
20691 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20692 arugment expected_type.
20693 (gimple_fold_call): Use it.
20694 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20695 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20696 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20697 (try_make_edge_direct_virtual_call): Likewise.
20698 * tree.c (obj_type_ref_class): New.
20699 * tree.h (obj_type_ref_class): Use it.
20700
20701 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20702
20703 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20704 (rtl_slim_pp): Likewise.
20705 (init_rtl_slim_pretty_print): Likewise.
20706 (dump_value_slim): Don't call it. Use local pretty printer.
20707 (dump_insn_slim): Likewise.
20708 (dump_rtl_slim): Likewise.
20709 (str_pattern_slim): Likewise.
20710 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20711 Simplify.
20712
20713 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20714
20715 PR tree-optimization/58164
20716 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20717 walk gimple_goto_dest of GIMPLE_GOTO.
20718
20719 PR tree-optimization/58165
20720 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20721 bi_call must be the last stmt in a bb, don't split_block, instead
20722 use fallthru edge from it and give up if there is none.
20723 Release conds vector when returning early.
20724
20725 2013-08-14 Xinliang David Li <davidxl@google.com>
20726
20727 * config/i386/i386.c (ix86_option_override_internal):
20728 Remove unused variable and field.
20729
20730 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20731
20732 PR target/57949
20733 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20734 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20735 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20736 and Linux, correct BLKmode alignment when 128-bit alignment is
20737 required and compatibility flag is not set.
20738 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20739 for zero-size arguments when compatibility flag is not set.
20740
20741 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20742
20743 PR tree-optimization/58145
20744 * tree-sra.c (build_ref_for_offset): If prev_base has
20745 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20746
20747 2013-08-14 Xinliang David Li <davidxl@google.com>
20748
20749 * config/i386/i386.c (ix86_option_override_internal):
20750 Fix uninitialized variable error.
20751
20752 2013-08-14 Xinliang David Li <davidxl@google.com>
20753
20754 * config/i386/i386.opt: Define two new options.
20755 * config/i386/x86-tune.def: Add arch selector field in macros.
20756 * config/i386/i386.h: Adjust macro definition.
20757 * config/i386/i386.c (ix86_option_override_internal):
20758 Refactor the code.
20759 (parse_mtune_ctrl_str): New function.
20760 (set_ix86_tune_features): New function.
20761 (ix86_function_specific_restore): Call the new helper function.
20762
20763 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20764
20765 PR rtl-optimization/57662
20766 * sel-sched.c (code_motion_process_successors): When the current insn
20767 is removed after the recursive traversal, break from the loop.
20768 Add comments and debug printouts.
20769
20770 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20771 Alexandre Oliva <aoliva@redhat.com>
20772
20773 PR target/58067
20774 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20775 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20776 there also UNSPEC_PLTOFF.
20777
20778 2013-08-14 Marek Polacek <polacek@redhat.com>
20779
20780 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20781 NUM_CONDITIONS bit positions.
20782
20783 2013-08-13 Cary Coutant <ccoutant@google.com>
20784
20785 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20786 (attr_checksum): Hash vector contents instead of pointer.
20787 (attr_checksum_ordered): Likewise.
20788
20789 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20790
20791 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20792 when Pmode != word_mode. Add length_address attribute.
20793 (sse3_monitor_<mode>): Merge from sse3_monitor and
20794 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20795 Pmode != word_mode. Update insn length attribute.
20796 * config/i386/i386.c (ix86_option_override_internal): Update
20797 ix86_gen_monitor selection for merged sse3_monitor insn.
20798
20799 2013-08-13 Julian Brown <julian@codesourcery.com>
20800
20801 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20802 perform invalid legitimization on greater-than-word-size modes for
20803 TARGET_E500_DOUBLE.
20804
20805 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20806
20807 * ira.c (setup_class_translate_array): Use aclass instead of cl
20808 for classes not fully covered by allocno classes.
20809
20810 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20811
20812 PR tree-optimization/57661
20813 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20814 * tree-inline.c (tree_function_versioning): Initialize it.
20815 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20816 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20817 that is not being copied.
20818
20819 PR sanitizer/56417
20820 * asan.c (instrument_strlen_call): Fix typo in comment.
20821 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20822
20823 2013-08-13 Steve Ellcey <sellcey@mips.com>
20824
20825 * config/mips/mips.md (prefetch): Use lw instead of ld on
20826 loongson in 32bit mode.
20827
20828 2013-08-13 Nick Clifton <nickc@redhat.com>
20829
20830 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20831
20832 2013-08-13 Jan Hubicka <jh@suse.cz>
20833
20834 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20835 introduced edge; fix typo in sanity check.
20836 (cgraph_resolve_speculation): Export; improve diagnostic.
20837 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20838 speculation at type mismatch.
20839 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20840 (cgraph_resolve_speculation): Declare.
20841 (symtab_can_be_discarded): New function.
20842 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20843 * ipa-inline-transform.c (speculation_removed): New global var.
20844 (clone_inlined_nodes): See if speculation can be removed.
20845 (inline_call): If speculations was removed, we growths may not match.
20846 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20847 (speculation_useful_p): New function.
20848 (resolve_noninline_speculation): New function.
20849 (inline_small_functions): Resolve useless speculations.
20850 * ipa-inline.h (speculation_useful_p): Declare
20851 * ipa.c (can_replace_by_local_alias): Simplify.
20852 (ipa_profile): Produce speculative calls in non-lto, too;
20853 add simple cost model; produce local aliases.
20854
20855 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20856
20857 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20858 PASS_MANAGER_H.
20859
20860 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20861
20862 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20863
20864 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20865
20866 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20867 iterator instead of X87MODEF.
20868
20869 2013-08-12 Perez Read <netfirewall@gmail.com>
20870
20871 PR target/58132
20872 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20873 operand 0 for intel asm alternative.
20874 (*movabs<mode>_2): Ditto for operand 1.
20875
20876 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20877
20878 * config/aarch64/arm_none.h
20879 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20880
20881 2013-08-12 Nick Clifton <nickc@redhat.com>
20882
20883 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20884
20885 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20886
20887 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20888 expand for QI/HImode operand to produce more effictive code for
20889 unsigned char(short) --> float(double) conversion.
20890
20891 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20892
20893 * doc/invoke.texi: Mention that -ftls-model does not force the final
20894 model.
20895
20896 2013-08-12 Marek Polacek <polacek@redhat.com>
20897 Marc Glisse <marc.glisse@inria.fr>
20898
20899 PR tree-optimization/57980
20900 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20901 when creating -1 constant.
20902
20903 2013-08-10 Jan Hubicka <jh@suse.cz>
20904
20905 Workaround binutils PR14342.
20906 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20907 (gimple_init_edge_profiler): Likewise.
20908 (gimple_gen_ic_func_profiler): Likewise.
20909
20910 2013-08-09 Jan Hubicka <jh@suse.cz>
20911
20912 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20913
20914 2013-08-09 Xinliang David Li <davidxl@google.com>
20915
20916 * config/i386/stringop.def: New file.
20917 * config/i386/stringop.opt: New file.
20918 * config/i386/i386-opts.h: Include stringopt.def.
20919 * config/i386/i386.opt: Include stringopt.opt.
20920 * config/i386/i386.c (ix86_option_override_internal):
20921 Override default size based stringop inline strategies with options.
20922 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20923 New function.
20924
20925 2013-08-09 Jan Hubicka <jh@suse.cz>
20926
20927 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20928
20929 2013-08-09 Jan Hubicka <jh@suse.cz>
20930
20931 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20932 CGRAPH_FREQ_MAX.
20933 (dump_cgraph_node): Dump profile-id.
20934 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20935 and common_target_probability.
20936 * lto-cgraph.c (lto_output_edge): Stream common targets.
20937 (lto_output_node): Stream profile ids.
20938 (input_node): Stream profile ids.
20939 (input_edge): Stream common targets.
20940 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20941 * ipa.c: Include value-prof.h
20942 (ipa_profile_generate_summary): Turn indirect call statement histograms
20943 into common targets.
20944 (ipa_profile): Turn common targets into speculative edges.
20945
20946 2013-08-09 Jan Hubicka <jh@suse.cz>
20947
20948 * cgraph.h (cgraph_node): Add profile_id.
20949 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20950 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20951 (del_node_map): Update.
20952 (find_func_by_funcdef_no): Replace by ...
20953 (find_func_by_profile_id): ... this one.
20954 (gimple_ic_transform): Do not remove useful histograms when
20955 speculation is not done; dump info when indirect call removal
20956 can happen at LTO.
20957 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20958 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20959 (__gcov_indirect_call_profiler_v2): .. this one.
20960 * profile.h (init_node_map): Update.
20961 * coverage.c (coverage_compute_profile_id): New function.
20962 * coverage.h (coverage_compute_profile_id): Declare.
20963 * tree-profile.c (init_ic_make_global_vars): Make
20964 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
20965 (gimple_init_edge_profiler): Update prototype of
20966 __gcov_indirect_call_profiler.
20967 (gimple_gen_ic_func_profiler): Simplify.
20968 (tree_profiling): Use init_node_map
20969
20970 2013-08-09 Jan Hubicka <jh@suse.cz>
20971
20972 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
20973 non-speculative refs.
20974 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
20975 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
20976 (cgraph_set_call_stmt): Likewise.
20977 (cgraph_create_edge_1): Fix release checking compilatoin;
20978 clear lto_stmt_uid.
20979 (cgraph_free_edge): Free indirect info.
20980 (cgraph_turn_edge_to_speculative): New function.
20981 (cgraph_speculative_call_info): New function.
20982 (cgraph_make_edge_direct): Return direct edge; handle speculation.
20983 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
20984 (dump_cgraph_node): Dump speculation.
20985 (verify_edge_count_and_frequency): Accept speculative edges.
20986 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
20987 (verify_cgraph_node): Handle speculation.
20988 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
20989 (cgraph_set_call_stmt): Update prototype.
20990 (cgraph_make_edge_direct): Update prototype.
20991 (cgraph_speculative_call_info): Declare.
20992 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
20993 to change; update call of ipa_find_references.
20994 * ipa-ref.c (ipa_record_reference): Fix return value; clear
20995 lto_stmt_uid and speculative flags.
20996 (ipa_dump_references): Dump speculation.
20997 (ipa_clone_references): Clone speculative flag.
20998 (ipa_clone_referring): Likewise.
20999 (ipa_clone_ref): New function.
21000 (ipa_find_reference): Look into lto_stmt_uids
21001 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21002 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21003 (ipa_find_reference): Update declaration.
21004 (ipa_clone_ref): Declare.
21005 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21006 stream speculative flag.
21007 (lto_output_ref): Stream statements uids and speculation.
21008 (input_ref): Likewise.
21009 (input_edge): Stream speuclation.
21010 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21011 (cgraph_set_call_stmt_including_clones): Handle speculation.
21012 * ipa-inline.c (heap_edge_removal_hook): New function.
21013 (inline_small_functions): Register it.
21014 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21015 also initialize refs.
21016 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21017 edge to change.
21018 (try_make_edge_direct_simple_call): Likewise.
21019 (try_make_edge_direct_simple_call): Likewise.
21020 (update_indirect_edges_after_inlining): Likewise.
21021 (remove_described_reference): Look proper lto_stmt_uid.
21022 (propagate_controlled_uses): Likewise.
21023 (propagate_controlled_uses): Liekwise.
21024 * tree-inline.c (copy_bb): Copy speculative edges.
21025 (redirect_all_calls): New function.
21026 (copy_cfg_body): Do redirection after loop info is updated.
21027 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21028
21029 2013-08-09 Jan Hubicka <jh@suse.cz>
21030
21031 * lto-streamer-out.c (output_function): Renumber PHIs.
21032 * lto-streamer-in.c (input_function): Likewise.
21033
21034 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21035
21036 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21037 (get_lane_unsigned): Likewise.
21038 (dup_lane_scalar): Likewise.
21039 (get_lane): enable for VALL.
21040 * config/aarch64/aarch64-simd.md
21041 (aarch64_dup_lane_scalar<mode>): Remove.
21042 (aarch64_get_lane_signed<mode>): Likewise.
21043 (aarch64_get_lane_unsigned<mode>): Likewise.
21044 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21045 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21046 (aarch64_get_lane<mode>): Enable for all vector modes.
21047 (aarch64_get_lanedi): Remove misleading constraints.
21048 * config/aarch64/arm_neon.h
21049 (__aarch64_vget_lane_any): Define.
21050 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21051 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21052 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21053 * config/aarch64/iterators.md (VDQQH): New.
21054 (VDQQHS): Likewise.
21055 (vwcore): Likewise.
21056
21057 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21058
21059 * configure.ac: Add GAS check for LEON instructions on SPARC.
21060 * configure: Regenerate.
21061 * config.in: Likewise.
21062 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21063 sparc*-*-* block.
21064 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21065 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21066 for LEON or LEON3.
21067 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21068 (AS_LEON_FLAG): New macro.
21069 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21070 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21071 Deal with LEON and LEON3 for the memory model.
21072 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21073 (atomic_compare_and_swap<mode>_1): Likewise.
21074 (*atomic_compare_and_swap<mode>_1): Likewise.
21075
21076 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21077
21078 * config/arm/neon.md (vcond): Fix floating-point vector
21079 comparisons against 0.
21080
21081 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21082
21083 * lra-constraints.c (emit_spill_move): Remove assert.
21084 (process_alt_operands): Add more debugging
21085 output. Increase reject for spilling into memory. Decrease
21086 reject for reloading scratch.
21087 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21088
21089 2013-08-08 Steve Ellcey <sellcey@mips.com>
21090
21091 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21092 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21093 micromips incompatible. Add nan2008.
21094 (MULTILIB_DIRNAMES): Add nan2008.
21095 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21096 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21097 and micromips incompatible. Add nan2008.
21098 (MULTILIB_DIRNAMES): Add nan2008.
21099 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21100
21101 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21102
21103 PR rtl-optimization/58079
21104 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21105 simplify_comparison has widened a comparison with an integer.
21106
21107 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21108
21109 * config/arm/neon.md (movmisalign<mode>): Disable when we
21110 don't allow unaligned accesses.
21111 (*movmisalign<mode>_neon_store): Likewise.
21112 (*movmisalign<mode>_neon_load): Likewise.
21113 (*movmisalign<mode>_neon_store): Likewise.
21114 (*movmisalign<mode>_neon_load): Likewise.
21115
21116 2013-08-08 Jan Hubicka <jh@suse.cz>
21117
21118 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21119 (make_pass_rebuild_cgraph_edges): Also clear references.
21120 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21121 * ipa-inline-transform.c (inline_transform): Remove all references
21122 after inlining.
21123 * cgraphunit.c (expand_function): Remove all references after
21124 expansion.
21125 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21126 (ipa_find_reference): Rewrite to iterator.
21127 (remove_stmt_references): Likewise.
21128 (ipa_clear_stmts_in_references): New function.
21129 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21130 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21131 clear references.
21132 * ipa-split.c (split_function): Remove references in split function.
21133
21134 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21135
21136 PR target/57431
21137 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21138 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21139
21140 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21141
21142 PR target/56979
21143 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21144 suggested mode for the assignment isn't compatible with the
21145 registers required.
21146
21147 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21148
21149 PR target/58065
21150 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21151
21152 2013-08-07 Xinliang David Li <davidxl@google.com>
21153
21154 * config/i386/i386.opt: New option -mtune-ctrl=.
21155 * config/i386/x86-tune.def: New file.
21156 * config/i386/i386.h: include x86-tune.def.
21157 * config/i386/i386.c (ix86_option_override_internal):
21158 Parsing -mtune-ctrl= option and set tune features.
21159
21160 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21161
21162 PR other/12081
21163 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21164 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21165 to gen_2arg_fn_t.
21166
21167 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21168
21169 * rtl.h (update_alignments): Declare.
21170 * final.c (grow_label_align): New function extracted from...
21171 (shorten_branches): ...here. Call it.
21172 (update_alignments): New function.
21173 * reorg.c (sibling_labels): New variable.
21174 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21175 the new label along with it onto the sibling_labels vector.
21176 (fill_simple_delay_slots): Adjust call to get_label_before.
21177 (fill_slots_from_thread): Likewise.
21178 (relax_delay_slots): Likewise.
21179 (make_return_insns): Likewise.
21180 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21181
21182 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21183
21184 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21185 document its semantics.
21186 (diagnostic_report_diagnostic): Adjust accordingly.
21187
21188 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21189
21190 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21191 (sparc_option_override): ...and port to new C++ pass API.
21192 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21193
21194 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21195
21196 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21197
21198 2013-08-06 Caroline Tice <cmtice@google.com>
21199
21200 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21201 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21202 * tree-pass.h: Add pass_vtable_verify.
21203 * varasm.c (assemble_variable): Add code to properly set the comdat
21204 section and name for the .vtable_map_vars section.
21205 (assemble_vtyv_preinit_initializer): New function.
21206 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21207 LINK_ONCE flag.
21208 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21209 * vtable-verify.c: New file.
21210 * vtable-verify.h: New file.
21211 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21212 initialiation levels.
21213 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21214 * passes.def: Insert pass_vtable_verify.
21215 * aclocal.m4: Reorder includes.
21216 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21217 -fvtv-counts options.
21218 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21219 as appropriate, if -fvtable-verify=... is used.
21220 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21221 -fvtable-verify=... is used.
21222 * Makefile.in (OBJS): Add vtable-verify.o to list.
21223 (vtable-verify.o): Add new build rule.
21224 (GTFILES): Add vtable-verify.c to list.
21225 * common.opt (fvtable-verify=): New flag.
21226 (vtv_priority): Values for fvtable-verify= flag.
21227 (fvtv-counts): New flag.
21228 (fvtv-debug): New flag.
21229 * tree.h (save_vtable_map_decl): New extern function decl.
21230
21231 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21232
21233 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21234 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21235 (pass_data_rl78_devirt): ...new pass_data instance and...
21236 (make_pass_rl78_devirt): ...new function.
21237 (rl78_asm_file_start): Port pass registration to new C++ API.
21238
21239 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21240
21241 * coretypes.h (rtl_opt_pass): Add.
21242 (gcc::context): Add.
21243 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21244 (epiphany_init): Port to new C++ pass API.
21245 (epiphany_optimize_mode_switching): Likewise.
21246 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21247 (pass_manager::get_pass_mode_switching): New.
21248 (pass_manager::get_pass_peephole2): New.
21249 * mode-switching.c (pass_mode_switching): Add clone method.
21250 * recog.c (pass_peephole2): Add clone method.
21251 (pass_split_all_insns): Add clone method.
21252
21253 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21254
21255 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21256 (mips_option_override): ...here, porting to new C++ API for passes.
21257
21258 2013-08-06 Jan Hubicka <jh@suse.cz>
21259
21260 * cgraph.c (cgraph_get_body): New function based on lto.c
21261 implementation.
21262 * cgraph.h (cgraph_get_body): Declare.
21263 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21264 LTO paths.
21265 * cgraphunit.c (expand_function): Get body prior expanding.
21266 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21267 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21268 really need.
21269 * passes.c (do_per_function_toporder): Get body.
21270 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21271 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21272
21273 2013-08-06 Martin Jambor <mjambor@suse.cz>
21274
21275 PR fortran/57987
21276 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21277 is not re-finalized. Rename second parameter to no_collect.
21278
21279 2013-08-06 Martin Jambor <mjambor@suse.cz>
21280
21281 PR middle-end/58041
21282 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21283 MEM_REF has proper alignment information.
21284
21285 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21286
21287 PR other/12081
21288 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21289 class insn_gen_fn.
21290 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21291 rtx (*) (rtx, ...) with insn_gen_fn.
21292 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21293 insn_gen_fn::stored_funcptr. Add initializer braces.
21294
21295 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21296
21297 Rewrite how instances of passes are cloned to remove assumptions
21298 about their sizes (thus allowing pass subclasses to have
21299 additional data fields, albeit non-GC-managed ones at this point).
21300
21301 * passes.c (make_pass_instance): Now that passes have clone
21302 methods, rewrite this function to eliminate XNEW and memcpy
21303 calls that used hardcoded sizes. Since this function no longer
21304 creates pass instances, rename it to...
21305 (add_pass_instance): ...this. Document the old way that passes were
21306 numbered and flagged, and rework this function to continue using it.
21307 (next_pass_1): Add an initial_pass argument for use by
21308 add_pass_instance.
21309 (position_pass): When adding multiple instances of a pass, use
21310 the pass's clone method, rather than relying on the XNEW/memcpy
21311 within the former make_pass_instance (now add_pass_instance).
21312 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21313 the initial instance of the current pass within the pass manager.
21314
21315 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21316
21317 This is the automated part of the conversion of passes from C
21318 structs to C++ classes.
21319
21320 Patch autogenerated by refactor_passes.py from
21321 https://github.com/davidmalcolm/gcc-refactoring-scripts
21322 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21323
21324 * asan.c (pass_asan): Convert from a global struct to a subclass of
21325 gimple_opt_pass along with...
21326 (pass_data_asan): ...new pass_data instance and...
21327 (make_pass_asan): ...new function.
21328 (pass_asan_O0): Convert from a global struct to a subclass of
21329 gimple_opt_pass along with...
21330 (pass_data_asan_O0): ...new pass_data instance and...
21331 (make_pass_asan_O0): ...new function.
21332 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21333 subclass of rtl_opt_pass along with...
21334 (pass_data_inc_dec): ...new pass_data instance and...
21335 (make_pass_inc_dec): ...new function.
21336 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21337 a subclass of rtl_opt_pass along with...
21338 (pass_data_reorder_blocks): ...new pass_data instance and...
21339 (make_pass_reorder_blocks): ...new function.
21340 (pass_duplicate_computed_gotos): Convert from a global struct to a
21341 subclass of rtl_opt_pass along with...
21342 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21343 (make_pass_duplicate_computed_gotos): ...new function.
21344 (pass_partition_blocks): Convert from a global struct to a subclass of
21345 rtl_opt_pass along with...
21346 (pass_data_partition_blocks): ...new pass_data instance and...
21347 (make_pass_partition_blocks): ...new function.
21348 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21349 struct to a subclass of rtl_opt_pass along with...
21350 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21351 and...
21352 (make_pass_branch_target_load_optimize1): ...new function.
21353 (pass_branch_target_load_optimize2): Convert from a global struct to a
21354 subclass of rtl_opt_pass along with...
21355 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21356 and...
21357 (make_pass_branch_target_load_optimize2): ...new function.
21358 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21359 of rtl_opt_pass along with...
21360 (pass_data_jump): ...new pass_data instance and...
21361 (make_pass_jump): ...new function.
21362 (pass_jump2): Convert from a global struct to a subclass of
21363 rtl_opt_pass along with...
21364 (pass_data_jump2): ...new pass_data instance and...
21365 (make_pass_jump2): ...new function.
21366 * cfgexpand.c (pass_expand): Convert from a global struct to a
21367 subclass of rtl_opt_pass along with...
21368 (pass_data_expand): ...new pass_data instance and...
21369 (make_pass_expand): ...new function.
21370 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21371 of rtl_opt_pass along with...
21372 (pass_data_free_cfg): ...new pass_data instance and...
21373 (make_pass_free_cfg): ...new function.
21374 (pass_into_cfg_layout_mode): Convert from a global struct to a
21375 subclass of rtl_opt_pass along with...
21376 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21377 (make_pass_into_cfg_layout_mode): ...new function.
21378 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21379 subclass of rtl_opt_pass along with...
21380 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21381 (make_pass_outof_cfg_layout_mode): ...new function.
21382 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21383 struct to a subclass of gimple_opt_pass along with...
21384 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21385 (make_pass_build_cgraph_edges): ...new function.
21386 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21387 subclass of gimple_opt_pass along with...
21388 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21389 (make_pass_rebuild_cgraph_edges): ...new function.
21390 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21391 subclass of gimple_opt_pass along with...
21392 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21393 and...
21394 (make_pass_remove_cgraph_callee_edges): ...new function.
21395 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21396 struct to a subclass of rtl_opt_pass along with...
21397 (pass_data_stack_adjustments): ...new pass_data instance and...
21398 (make_pass_stack_adjustments): ...new function.
21399 * combine.c (pass_combine): Convert from a global struct to a subclass
21400 of rtl_opt_pass along with...
21401 (pass_data_combine): ...new pass_data instance and...
21402 (make_pass_combine): ...new function.
21403 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21404 global struct to a subclass of rtl_opt_pass along with...
21405 (pass_data_compare_elim_after_reload): ...new pass_data instance
21406 and...
21407 (make_pass_compare_elim_after_reload): ...new function.
21408 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21409 of rtl_opt_pass along with...
21410 (pass_data_rtl_cprop): ...new pass_data instance and...
21411 (make_pass_rtl_cprop): ...new function.
21412 * cse.c (pass_cse): Convert from a global struct to a subclass of
21413 rtl_opt_pass along with...
21414 (pass_data_cse): ...new pass_data instance and...
21415 (make_pass_cse): ...new function.
21416 (pass_cse2): Convert from a global struct to a subclass of
21417 rtl_opt_pass along with...
21418 (pass_data_cse2): ...new pass_data instance and...
21419 (make_pass_cse2): ...new function.
21420 (pass_cse_after_global_opts): Convert from a global struct to a
21421 subclass of rtl_opt_pass along with...
21422 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21423 (make_pass_cse_after_global_opts): ...new function.
21424 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21425 of rtl_opt_pass along with...
21426 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21427 (make_pass_ud_rtl_dce): ...new function.
21428 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21429 rtl_opt_pass along with...
21430 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21431 (make_pass_fast_rtl_dce): ...new function.
21432 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21433 a subclass of rtl_opt_pass along with...
21434 (pass_data_df_initialize_opt): ...new pass_data instance and...
21435 (make_pass_df_initialize_opt): ...new function.
21436 (pass_df_initialize_no_opt): Convert from a global struct to a
21437 subclass of rtl_opt_pass along with...
21438 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21439 (make_pass_df_initialize_no_opt): ...new function.
21440 (pass_df_finish): Convert from a global struct to a subclass of
21441 rtl_opt_pass along with...
21442 (pass_data_df_finish): ...new pass_data instance and...
21443 (make_pass_df_finish): ...new function.
21444 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21445 rtl_opt_pass along with...
21446 (pass_data_rtl_dse1): ...new pass_data instance and...
21447 (make_pass_rtl_dse1): ...new function.
21448 (pass_rtl_dse2): Convert from a global struct to a subclass of
21449 rtl_opt_pass along with...
21450 (pass_data_rtl_dse2): ...new pass_data instance and...
21451 (make_pass_rtl_dse2): ...new function.
21452 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21453 subclass of rtl_opt_pass along with...
21454 (pass_data_dwarf2_frame): ...new pass_data instance and...
21455 (make_pass_dwarf2_frame): ...new function.
21456 * except.c (pass_set_nothrow_function_flags): Convert from a global
21457 struct to a subclass of rtl_opt_pass along with...
21458 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21459 and...
21460 (make_pass_set_nothrow_function_flags): ...new function.
21461 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21462 subclass of rtl_opt_pass along with...
21463 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21464 and...
21465 (make_pass_convert_to_eh_region_ranges): ...new function.
21466 * final.c (pass_compute_alignments): Convert from a global struct to a
21467 subclass of rtl_opt_pass along with...
21468 (pass_data_compute_alignments): ...new pass_data instance and...
21469 (make_pass_compute_alignments): ...new function.
21470 (pass_final): Convert from a global struct to a subclass of
21471 rtl_opt_pass along with...
21472 (pass_data_final): ...new pass_data instance and...
21473 (make_pass_final): ...new function.
21474 (pass_shorten_branches): Convert from a global struct to a subclass of
21475 rtl_opt_pass along with...
21476 (pass_data_shorten_branches): ...new pass_data instance and...
21477 (make_pass_shorten_branches): ...new function.
21478 (pass_clean_state): Convert from a global struct to a subclass of
21479 rtl_opt_pass along with...
21480 (pass_data_clean_state): ...new pass_data instance and...
21481 (make_pass_clean_state): ...new function.
21482 * function.c (pass_instantiate_virtual_regs): Convert from a global
21483 struct to a subclass of rtl_opt_pass along with...
21484 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21485 (make_pass_instantiate_virtual_regs): ...new function.
21486 (pass_leaf_regs): Convert from a global struct to a subclass of
21487 rtl_opt_pass along with...
21488 (pass_data_leaf_regs): ...new pass_data instance and...
21489 (make_pass_leaf_regs): ...new function.
21490 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21491 subclass of rtl_opt_pass along with...
21492 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21493 and...
21494 (make_pass_thread_prologue_and_epilogue): ...new function.
21495 (pass_match_asm_constraints): Convert from a global struct to a
21496 subclass of rtl_opt_pass along with...
21497 (pass_data_match_asm_constraints): ...new pass_data instance and...
21498 (make_pass_match_asm_constraints): ...new function.
21499 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21500 subclass of rtl_opt_pass along with...
21501 (pass_data_rtl_fwprop): ...new pass_data instance and...
21502 (make_pass_rtl_fwprop): ...new function.
21503 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21504 rtl_opt_pass along with...
21505 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21506 (make_pass_rtl_fwprop_addr): ...new function.
21507 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21508 rtl_opt_pass along with...
21509 (pass_data_rtl_pre): ...new pass_data instance and...
21510 (make_pass_rtl_pre): ...new function.
21511 (pass_rtl_hoist): Convert from a global struct to a subclass of
21512 rtl_opt_pass along with...
21513 (pass_data_rtl_hoist): ...new pass_data instance and...
21514 (make_pass_rtl_hoist): ...new function.
21515 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21516 subclass of gimple_opt_pass along with...
21517 (pass_data_lower_cf): ...new pass_data instance and...
21518 (make_pass_lower_cf): ...new function.
21519 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21520 from a global struct to a subclass of gimple_opt_pass along with...
21521 (pass_data_strength_reduction): ...new pass_data instance and...
21522 (make_pass_strength_reduction): ...new function.
21523 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21524 of rtl_opt_pass along with...
21525 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21526 (make_pass_rtl_ifcvt): ...new function.
21527 (pass_if_after_combine): Convert from a global struct to a subclass of
21528 rtl_opt_pass along with...
21529 (pass_data_if_after_combine): ...new pass_data instance and...
21530 (make_pass_if_after_combine): ...new function.
21531 (pass_if_after_reload): Convert from a global struct to a subclass of
21532 rtl_opt_pass along with...
21533 (pass_data_if_after_reload): ...new pass_data instance and...
21534 (make_pass_if_after_reload): ...new function.
21535 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21536 a subclass of rtl_opt_pass along with...
21537 (pass_data_initialize_regs): ...new pass_data instance and...
21538 (make_pass_initialize_regs): ...new function.
21539 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21540 of ipa_opt_pass_d along with...
21541 (pass_data_ipa_cp): ...new pass_data instance and...
21542 (make_pass_ipa_cp): ...new function.
21543 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21544 global struct to a subclass of gimple_opt_pass along with...
21545 (pass_data_inline_parameters): ...new pass_data instance and...
21546 (make_pass_inline_parameters): ...new function.
21547 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21548 subclass of gimple_opt_pass along with...
21549 (pass_data_early_inline): ...new pass_data instance and...
21550 (make_pass_early_inline): ...new function.
21551 (pass_ipa_inline): Convert from a global struct to a subclass of
21552 ipa_opt_pass_d along with...
21553 (pass_data_ipa_inline): ...new pass_data instance and...
21554 (make_pass_ipa_inline): ...new function.
21555 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21556 struct to a subclass of gimple_opt_pass along with...
21557 (pass_data_local_pure_const): ...new pass_data instance and...
21558 (make_pass_local_pure_const): ...new function.
21559 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21560 ipa_opt_pass_d along with...
21561 (pass_data_ipa_pure_const): ...new pass_data instance and...
21562 (make_pass_ipa_pure_const): ...new function.
21563 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21564 to a subclass of ipa_opt_pass_d along with...
21565 (pass_data_ipa_reference): ...new pass_data instance and...
21566 (make_pass_ipa_reference): ...new function.
21567 * ipa-split.c (pass_split_functions): Convert from a global struct to
21568 a subclass of gimple_opt_pass along with...
21569 (pass_data_split_functions): ...new pass_data instance and...
21570 (make_pass_split_functions): ...new function.
21571 (pass_feedback_split_functions): Convert from a global struct to a
21572 subclass of gimple_opt_pass along with...
21573 (pass_data_feedback_split_functions): ...new pass_data instance and...
21574 (make_pass_feedback_split_functions): ...new function.
21575 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21576 global struct to a subclass of simple_ipa_opt_pass along with...
21577 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21578 instance and...
21579 (make_pass_ipa_function_and_variable_visibility): ...new function.
21580 (pass_ipa_free_inline_summary): Convert from a global struct to a
21581 subclass of simple_ipa_opt_pass along with...
21582 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21583 (make_pass_ipa_free_inline_summary): ...new function.
21584 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21585 subclass of ipa_opt_pass_d along with...
21586 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21587 and...
21588 (make_pass_ipa_whole_program_visibility): ...new function.
21589 (pass_ipa_profile): Convert from a global struct to a subclass of
21590 ipa_opt_pass_d along with...
21591 (pass_data_ipa_profile): ...new pass_data instance and...
21592 (make_pass_ipa_profile): ...new function.
21593 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21594 ipa_opt_pass_d along with...
21595 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21596 (make_pass_ipa_cdtor_merge): ...new function.
21597 * ira.c (pass_ira): Convert from a global struct to a subclass of
21598 rtl_opt_pass along with...
21599 (pass_data_ira): ...new pass_data instance and...
21600 (make_pass_ira): ...new function.
21601 (pass_reload): Convert from a global struct to a subclass of
21602 rtl_opt_pass along with...
21603 (pass_data_reload): ...new pass_data instance and...
21604 (make_pass_reload): ...new function.
21605 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21606 subclass of rtl_opt_pass along with...
21607 (pass_data_cleanup_barriers): ...new pass_data instance and...
21608 (make_pass_cleanup_barriers): ...new function.
21609 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21610 of rtl_opt_pass along with...
21611 (pass_data_loop2): ...new pass_data instance and...
21612 (make_pass_loop2): ...new function.
21613 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21614 rtl_opt_pass along with...
21615 (pass_data_rtl_loop_init): ...new pass_data instance and...
21616 (make_pass_rtl_loop_init): ...new function.
21617 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21618 rtl_opt_pass along with...
21619 (pass_data_rtl_loop_done): ...new pass_data instance and...
21620 (make_pass_rtl_loop_done): ...new function.
21621 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21622 subclass of rtl_opt_pass along with...
21623 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21624 (make_pass_rtl_move_loop_invariants): ...new function.
21625 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21626 rtl_opt_pass along with...
21627 (pass_data_rtl_unswitch): ...new pass_data instance and...
21628 (make_pass_rtl_unswitch): ...new function.
21629 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21630 subclass of rtl_opt_pass along with...
21631 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21632 and...
21633 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21634 (pass_rtl_doloop): Convert from a global struct to a subclass of
21635 rtl_opt_pass along with...
21636 (pass_data_rtl_doloop): ...new pass_data instance and...
21637 (make_pass_rtl_doloop): ...new function.
21638 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21639 a subclass of rtl_opt_pass along with...
21640 (pass_data_lower_subreg): ...new pass_data instance and...
21641 (make_pass_lower_subreg): ...new function.
21642 (pass_lower_subreg2): Convert from a global struct to a subclass of
21643 rtl_opt_pass along with...
21644 (pass_data_lower_subreg2): ...new pass_data instance and...
21645 (make_pass_lower_subreg2): ...new function.
21646 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21647 struct to a subclass of ipa_opt_pass_d along with...
21648 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21649 (make_pass_ipa_lto_gimple_out): ...new function.
21650 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21651 of ipa_opt_pass_d along with...
21652 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21653 (make_pass_ipa_lto_finish_out): ...new function.
21654 * mode-switching.c (pass_mode_switching): Convert from a global struct
21655 to a subclass of rtl_opt_pass along with...
21656 (pass_data_mode_switching): ...new pass_data instance and...
21657 (make_pass_mode_switching): ...new function.
21658 * modulo-sched.c (pass_sms): Convert from a global struct to a
21659 subclass of rtl_opt_pass along with...
21660 (pass_data_sms): ...new pass_data instance and...
21661 (make_pass_sms): ...new function.
21662 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21663 subclass of gimple_opt_pass along with...
21664 (pass_data_expand_omp): ...new pass_data instance and...
21665 (make_pass_expand_omp): ...new function.
21666 (pass_lower_omp): Convert from a global struct to a subclass of
21667 gimple_opt_pass along with...
21668 (pass_data_lower_omp): ...new pass_data instance and...
21669 (make_pass_lower_omp): ...new function.
21670 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21671 of gimple_opt_pass along with...
21672 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21673 (make_pass_diagnose_omp_blocks): ...new function.
21674 * passes.c (pass_early_local_passes): Convert from a global struct to
21675 a subclass of simple_ipa_opt_pass along with...
21676 (pass_data_early_local_passes): ...new pass_data instance and...
21677 (make_pass_early_local_passes): ...new function.
21678 (pass_all_early_optimizations): Convert from a global struct to a
21679 subclass of gimple_opt_pass along with...
21680 (pass_data_all_early_optimizations): ...new pass_data instance and...
21681 (make_pass_all_early_optimizations): ...new function.
21682 (pass_all_optimizations): Convert from a global struct to a subclass
21683 of gimple_opt_pass along with...
21684 (pass_data_all_optimizations): ...new pass_data instance and...
21685 (make_pass_all_optimizations): ...new function.
21686 (pass_all_optimizations_g): Convert from a global struct to a subclass
21687 of gimple_opt_pass along with...
21688 (pass_data_all_optimizations_g): ...new pass_data instance and...
21689 (make_pass_all_optimizations_g): ...new function.
21690 (pass_rest_of_compilation): Convert from a global struct to a subclass
21691 of rtl_opt_pass along with...
21692 (pass_data_rest_of_compilation): ...new pass_data instance and...
21693 (make_pass_rest_of_compilation): ...new function.
21694 (pass_postreload): Convert from a global struct to a subclass of
21695 rtl_opt_pass along with...
21696 (pass_data_postreload): ...new pass_data instance and...
21697 (make_pass_postreload): ...new function.
21698 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21699 subclass of rtl_opt_pass along with...
21700 (pass_data_gcse2): ...new pass_data instance and...
21701 (make_pass_gcse2): ...new function.
21702 * postreload.c (pass_postreload_cse): Convert from a global struct to
21703 a subclass of rtl_opt_pass along with...
21704 (pass_data_postreload_cse): ...new pass_data instance and...
21705 (make_pass_postreload_cse): ...new function.
21706 * predict.c (pass_profile): Convert from a global struct to a subclass
21707 of gimple_opt_pass along with...
21708 (pass_data_profile): ...new pass_data instance and...
21709 (make_pass_profile): ...new function.
21710 (pass_strip_predict_hints): Convert from a global struct to a subclass
21711 of gimple_opt_pass along with...
21712 (pass_data_strip_predict_hints): ...new pass_data instance and...
21713 (make_pass_strip_predict_hints): ...new function.
21714 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21715 of rtl_opt_pass along with...
21716 (pass_data_peephole2): ...new pass_data instance and...
21717 (make_pass_peephole2): ...new function.
21718 (pass_split_all_insns): Convert from a global struct to a subclass of
21719 rtl_opt_pass along with...
21720 (pass_data_split_all_insns): ...new pass_data instance and...
21721 (make_pass_split_all_insns): ...new function.
21722 (pass_split_after_reload): Convert from a global struct to a subclass
21723 of rtl_opt_pass along with...
21724 (pass_data_split_after_reload): ...new pass_data instance and...
21725 (make_pass_split_after_reload): ...new function.
21726 (pass_split_before_regstack): Convert from a global struct to a
21727 subclass of rtl_opt_pass along with...
21728 (pass_data_split_before_regstack): ...new pass_data instance and...
21729 (make_pass_split_before_regstack): ...new function.
21730 (pass_split_before_sched2): Convert from a global struct to a subclass
21731 of rtl_opt_pass along with...
21732 (pass_data_split_before_sched2): ...new pass_data instance and...
21733 (make_pass_split_before_sched2): ...new function.
21734 (pass_split_for_shorten_branches): Convert from a global struct to a
21735 subclass of rtl_opt_pass along with...
21736 (pass_data_split_for_shorten_branches): ...new pass_data instance
21737 and...
21738 (make_pass_split_for_shorten_branches): ...new function.
21739 * ree.c (pass_ree): Convert from a global struct to a subclass of
21740 rtl_opt_pass along with...
21741 (pass_data_ree): ...new pass_data instance and...
21742 (make_pass_ree): ...new function.
21743 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21744 subclass of rtl_opt_pass along with...
21745 (pass_data_stack_regs): ...new pass_data instance and...
21746 (make_pass_stack_regs): ...new function.
21747 (pass_stack_regs_run): Convert from a global struct to a subclass of
21748 rtl_opt_pass along with...
21749 (pass_data_stack_regs_run): ...new pass_data instance and...
21750 (make_pass_stack_regs_run): ...new function.
21751 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21752 subclass of rtl_opt_pass along with...
21753 (pass_data_cprop_hardreg): ...new pass_data instance and...
21754 (make_pass_cprop_hardreg): ...new function.
21755 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21756 subclass of rtl_opt_pass along with...
21757 (pass_data_reginfo_init): ...new pass_data instance and...
21758 (make_pass_reginfo_init): ...new function.
21759 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21760 of rtl_opt_pass along with...
21761 (pass_data_regmove): ...new pass_data instance and...
21762 (make_pass_regmove): ...new function.
21763 * regrename.c (pass_regrename): Convert from a global struct to a
21764 subclass of rtl_opt_pass along with...
21765 (pass_data_regrename): ...new pass_data instance and...
21766 (make_pass_regrename): ...new function.
21767 * reorg.c (pass_delay_slots): Convert from a global struct to a
21768 subclass of rtl_opt_pass along with...
21769 (pass_data_delay_slots): ...new pass_data instance and...
21770 (make_pass_delay_slots): ...new function.
21771 (pass_machine_reorg): Convert from a global struct to a subclass of
21772 rtl_opt_pass along with...
21773 (pass_data_machine_reorg): ...new pass_data instance and...
21774 (make_pass_machine_reorg): ...new function.
21775 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21776 of rtl_opt_pass along with...
21777 (pass_data_sched): ...new pass_data instance and...
21778 (make_pass_sched): ...new function.
21779 (pass_sched2): Convert from a global struct to a subclass of
21780 rtl_opt_pass along with...
21781 (pass_data_sched2): ...new pass_data instance and...
21782 (make_pass_sched2): ...new function.
21783 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21784 to a subclass of rtl_opt_pass along with...
21785 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21786 (make_pass_stack_ptr_mod): ...new function.
21787 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21788 to a subclass of rtl_opt_pass along with...
21789 (pass_data_rtl_store_motion): ...new pass_data instance and...
21790 (make_pass_rtl_store_motion): ...new function.
21791 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21792 of gimple_opt_pass along with...
21793 (pass_data_tracer): ...new pass_data instance and...
21794 (make_pass_tracer): ...new function.
21795 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21796 to a subclass of gimple_opt_pass along with...
21797 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21798 (make_pass_diagnose_tm_blocks): ...new function.
21799 (pass_lower_tm): Convert from a global struct to a subclass of
21800 gimple_opt_pass along with...
21801 (pass_data_lower_tm): ...new pass_data instance and...
21802 (make_pass_lower_tm): ...new function.
21803 (pass_tm_init): Convert from a global struct to a subclass of
21804 gimple_opt_pass along with...
21805 (pass_data_tm_init): ...new pass_data instance and...
21806 (make_pass_tm_init): ...new function.
21807 (pass_tm_mark): Convert from a global struct to a subclass of
21808 gimple_opt_pass along with...
21809 (pass_data_tm_mark): ...new pass_data instance and...
21810 (make_pass_tm_mark): ...new function.
21811 (pass_tm_edges): Convert from a global struct to a subclass of
21812 gimple_opt_pass along with...
21813 (pass_data_tm_edges): ...new pass_data instance and...
21814 (make_pass_tm_edges): ...new function.
21815 (pass_tm_memopt): Convert from a global struct to a subclass of
21816 gimple_opt_pass along with...
21817 (pass_data_tm_memopt): ...new pass_data instance and...
21818 (make_pass_tm_memopt): ...new function.
21819 (pass_ipa_tm): Convert from a global struct to a subclass of
21820 simple_ipa_opt_pass along with...
21821 (pass_data_ipa_tm): ...new pass_data instance and...
21822 (make_pass_ipa_tm): ...new function.
21823 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21824 subclass of gimple_opt_pass along with...
21825 (pass_data_call_cdce): ...new pass_data instance and...
21826 (make_pass_call_cdce): ...new function.
21827 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21828 subclass of gimple_opt_pass along with...
21829 (pass_data_build_cfg): ...new pass_data instance and...
21830 (make_pass_build_cfg): ...new function.
21831 (pass_split_crit_edges): Convert from a global struct to a subclass of
21832 gimple_opt_pass along with...
21833 (pass_data_split_crit_edges): ...new pass_data instance and...
21834 (make_pass_split_crit_edges): ...new function.
21835 (pass_warn_function_return): Convert from a global struct to a
21836 subclass of gimple_opt_pass along with...
21837 (pass_data_warn_function_return): ...new pass_data instance and...
21838 (make_pass_warn_function_return): ...new function.
21839 (pass_warn_function_noreturn): Convert from a global struct to a
21840 subclass of gimple_opt_pass along with...
21841 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21842 (make_pass_warn_function_noreturn): ...new function.
21843 (pass_warn_unused_result): Convert from a global struct to a subclass
21844 of gimple_opt_pass along with...
21845 (pass_data_warn_unused_result): ...new pass_data instance and...
21846 (make_pass_warn_unused_result): ...new function.
21847 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21848 a subclass of gimple_opt_pass along with...
21849 (pass_data_merge_phi): ...new pass_data instance and...
21850 (make_pass_merge_phi): ...new function.
21851 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21852 a subclass of gimple_opt_pass along with...
21853 (pass_data_lower_complex): ...new pass_data instance and...
21854 (make_pass_lower_complex): ...new function.
21855 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21856 gimple_opt_pass along with...
21857 (pass_data_lower_complex_O0): ...new pass_data instance and...
21858 (make_pass_lower_complex_O0): ...new function.
21859 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21860 subclass of gimple_opt_pass along with...
21861 (pass_data_lower_eh): ...new pass_data instance and...
21862 (make_pass_lower_eh): ...new function.
21863 (pass_refactor_eh): Convert from a global struct to a subclass of
21864 gimple_opt_pass along with...
21865 (pass_data_refactor_eh): ...new pass_data instance and...
21866 (make_pass_refactor_eh): ...new function.
21867 (pass_lower_resx): Convert from a global struct to a subclass of
21868 gimple_opt_pass along with...
21869 (pass_data_lower_resx): ...new pass_data instance and...
21870 (make_pass_lower_resx): ...new function.
21871 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21872 of gimple_opt_pass along with...
21873 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21874 (make_pass_lower_eh_dispatch): ...new function.
21875 (pass_cleanup_eh): Convert from a global struct to a subclass of
21876 gimple_opt_pass along with...
21877 (pass_data_cleanup_eh): ...new pass_data instance and...
21878 (make_pass_cleanup_eh): ...new function.
21879 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21880 to a subclass of simple_ipa_opt_pass along with...
21881 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21882 (make_pass_ipa_lower_emutls): ...new function.
21883 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21884 a subclass of gimple_opt_pass along with...
21885 (pass_data_if_conversion): ...new pass_data instance and...
21886 (make_pass_if_conversion): ...new function.
21887 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21888 subclass of gimple_opt_pass along with...
21889 (pass_data_build_ssa): ...new pass_data instance and...
21890 (make_pass_build_ssa): ...new function.
21891 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21892 global struct to a subclass of gimple_opt_pass along with...
21893 (pass_data_loop_distribution): ...new pass_data instance and...
21894 (make_pass_loop_distribution): ...new function.
21895 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21896 subclass of gimple_opt_pass along with...
21897 (pass_data_mudflap_1): ...new pass_data instance and...
21898 (make_pass_mudflap_1): ...new function.
21899 (pass_mudflap_2): Convert from a global struct to a subclass of
21900 gimple_opt_pass along with...
21901 (pass_data_mudflap_2): ...new pass_data instance and...
21902 (make_pass_mudflap_2): ...new function.
21903 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21904 subclass of gimple_opt_pass along with...
21905 (pass_data_mudflap_1): ...new pass_data instance and...
21906 (make_pass_mudflap_1): ...new function.
21907 (pass_mudflap_2): Convert from a global struct to a subclass of
21908 gimple_opt_pass along with...
21909 (pass_data_mudflap_2): ...new pass_data instance and...
21910 (make_pass_mudflap_2): ...new function.
21911 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21912 gimple_opt_pass along with...
21913 (pass_data_nrv): ...new pass_data instance and...
21914 (make_pass_nrv): ...new function.
21915 (pass_return_slot): Convert from a global struct to a subclass of
21916 gimple_opt_pass along with...
21917 (pass_data_return_slot): ...new pass_data instance and...
21918 (make_pass_return_slot): ...new function.
21919 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21920 to a subclass of gimple_opt_pass along with...
21921 (pass_data_object_sizes): ...new pass_data instance and...
21922 (make_pass_object_sizes): ...new function.
21923 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21924 global struct to a subclass of gimple_opt_pass along with...
21925 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21926 and...
21927 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21928 (pass_fixup_cfg): Convert from a global struct to a subclass of
21929 gimple_opt_pass along with...
21930 (pass_data_fixup_cfg): ...new pass_data instance and...
21931 (make_pass_fixup_cfg): ...new function.
21932 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21933 (make_pass_mudflap_1): ...new function.
21934 (pass_mudflap_2): Replace declaration with that of...
21935 (make_pass_mudflap_2): ...new function.
21936 (pass_asan): Replace declaration with that of...
21937 (make_pass_asan): ...new function.
21938 (pass_asan_O0): Replace declaration with that of...
21939 (make_pass_asan_O0): ...new function.
21940 (pass_tsan): Replace declaration with that of...
21941 (make_pass_tsan): ...new function.
21942 (pass_tsan_O0): Replace declaration with that of...
21943 (make_pass_tsan_O0): ...new function.
21944 (pass_lower_cf): Replace declaration with that of...
21945 (make_pass_lower_cf): ...new function.
21946 (pass_refactor_eh): Replace declaration with that of...
21947 (make_pass_refactor_eh): ...new function.
21948 (pass_lower_eh): Replace declaration with that of...
21949 (make_pass_lower_eh): ...new function.
21950 (pass_lower_eh_dispatch): Replace declaration with that of...
21951 (make_pass_lower_eh_dispatch): ...new function.
21952 (pass_lower_resx): Replace declaration with that of...
21953 (make_pass_lower_resx): ...new function.
21954 (pass_build_cfg): Replace declaration with that of...
21955 (make_pass_build_cfg): ...new function.
21956 (pass_early_tree_profile): Replace declaration with that of...
21957 (make_pass_early_tree_profile): ...new function.
21958 (pass_cleanup_eh): Replace declaration with that of...
21959 (make_pass_cleanup_eh): ...new function.
21960 (pass_sra): Replace declaration with that of...
21961 (make_pass_sra): ...new function.
21962 (pass_sra_early): Replace declaration with that of...
21963 (make_pass_sra_early): ...new function.
21964 (pass_early_ipa_sra): Replace declaration with that of...
21965 (make_pass_early_ipa_sra): ...new function.
21966 (pass_tail_recursion): Replace declaration with that of...
21967 (make_pass_tail_recursion): ...new function.
21968 (pass_tail_calls): Replace declaration with that of...
21969 (make_pass_tail_calls): ...new function.
21970 (pass_tree_loop): Replace declaration with that of...
21971 (make_pass_tree_loop): ...new function.
21972 (pass_tree_loop_init): Replace declaration with that of...
21973 (make_pass_tree_loop_init): ...new function.
21974 (pass_lim): Replace declaration with that of...
21975 (make_pass_lim): ...new function.
21976 (pass_tree_unswitch): Replace declaration with that of...
21977 (make_pass_tree_unswitch): ...new function.
21978 (pass_predcom): Replace declaration with that of...
21979 (make_pass_predcom): ...new function.
21980 (pass_iv_canon): Replace declaration with that of...
21981 (make_pass_iv_canon): ...new function.
21982 (pass_scev_cprop): Replace declaration with that of...
21983 (make_pass_scev_cprop): ...new function.
21984 (pass_empty_loop): Replace declaration with that of...
21985 (make_pass_empty_loop): ...new function.
21986 (pass_record_bounds): Replace declaration with that of...
21987 (make_pass_record_bounds): ...new function.
21988 (pass_graphite): Replace declaration with that of...
21989 (make_pass_graphite): ...new function.
21990 (pass_graphite_transforms): Replace declaration with that of...
21991 (make_pass_graphite_transforms): ...new function.
21992 (pass_if_conversion): Replace declaration with that of...
21993 (make_pass_if_conversion): ...new function.
21994 (pass_loop_distribution): Replace declaration with that of...
21995 (make_pass_loop_distribution): ...new function.
21996 (pass_vectorize): Replace declaration with that of...
21997 (make_pass_vectorize): ...new function.
21998 (pass_slp_vectorize): Replace declaration with that of...
21999 (make_pass_slp_vectorize): ...new function.
22000 (pass_complete_unroll): Replace declaration with that of...
22001 (make_pass_complete_unroll): ...new function.
22002 (pass_complete_unrolli): Replace declaration with that of...
22003 (make_pass_complete_unrolli): ...new function.
22004 (pass_parallelize_loops): Replace declaration with that of...
22005 (make_pass_parallelize_loops): ...new function.
22006 (pass_loop_prefetch): Replace declaration with that of...
22007 (make_pass_loop_prefetch): ...new function.
22008 (pass_iv_optimize): Replace declaration with that of...
22009 (make_pass_iv_optimize): ...new function.
22010 (pass_tree_loop_done): Replace declaration with that of...
22011 (make_pass_tree_loop_done): ...new function.
22012 (pass_ch): Replace declaration with that of...
22013 (make_pass_ch): ...new function.
22014 (pass_ccp): Replace declaration with that of...
22015 (make_pass_ccp): ...new function.
22016 (pass_phi_only_cprop): Replace declaration with that of...
22017 (make_pass_phi_only_cprop): ...new function.
22018 (pass_build_ssa): Replace declaration with that of...
22019 (make_pass_build_ssa): ...new function.
22020 (pass_build_alias): Replace declaration with that of...
22021 (make_pass_build_alias): ...new function.
22022 (pass_build_ealias): Replace declaration with that of...
22023 (make_pass_build_ealias): ...new function.
22024 (pass_dominator): Replace declaration with that of...
22025 (make_pass_dominator): ...new function.
22026 (pass_dce): Replace declaration with that of...
22027 (make_pass_dce): ...new function.
22028 (pass_dce_loop): Replace declaration with that of...
22029 (make_pass_dce_loop): ...new function.
22030 (pass_cd_dce): Replace declaration with that of...
22031 (make_pass_cd_dce): ...new function.
22032 (pass_call_cdce): Replace declaration with that of...
22033 (make_pass_call_cdce): ...new function.
22034 (pass_merge_phi): Replace declaration with that of...
22035 (make_pass_merge_phi): ...new function.
22036 (pass_split_crit_edges): Replace declaration with that of...
22037 (make_pass_split_crit_edges): ...new function.
22038 (pass_pre): Replace declaration with that of...
22039 (make_pass_pre): ...new function.
22040 (pass_profile): Replace declaration with that of...
22041 (make_pass_profile): ...new function.
22042 (pass_strip_predict_hints): Replace declaration with that of...
22043 (make_pass_strip_predict_hints): ...new function.
22044 (pass_lower_complex_O0): Replace declaration with that of...
22045 (make_pass_lower_complex_O0): ...new function.
22046 (pass_lower_complex): Replace declaration with that of...
22047 (make_pass_lower_complex): ...new function.
22048 (pass_lower_vector): Replace declaration with that of...
22049 (make_pass_lower_vector): ...new function.
22050 (pass_lower_vector_ssa): Replace declaration with that of...
22051 (make_pass_lower_vector_ssa): ...new function.
22052 (pass_lower_omp): Replace declaration with that of...
22053 (make_pass_lower_omp): ...new function.
22054 (pass_diagnose_omp_blocks): Replace declaration with that of...
22055 (make_pass_diagnose_omp_blocks): ...new function.
22056 (pass_expand_omp): Replace declaration with that of...
22057 (make_pass_expand_omp): ...new function.
22058 (pass_expand_omp_ssa): Replace declaration with that of...
22059 (make_pass_expand_omp_ssa): ...new function.
22060 (pass_object_sizes): Replace declaration with that of...
22061 (make_pass_object_sizes): ...new function.
22062 (pass_strlen): Replace declaration with that of...
22063 (make_pass_strlen): ...new function.
22064 (pass_fold_builtins): Replace declaration with that of...
22065 (make_pass_fold_builtins): ...new function.
22066 (pass_stdarg): Replace declaration with that of...
22067 (make_pass_stdarg): ...new function.
22068 (pass_early_warn_uninitialized): Replace declaration with that of...
22069 (make_pass_early_warn_uninitialized): ...new function.
22070 (pass_late_warn_uninitialized): Replace declaration with that of...
22071 (make_pass_late_warn_uninitialized): ...new function.
22072 (pass_cse_reciprocals): Replace declaration with that of...
22073 (make_pass_cse_reciprocals): ...new function.
22074 (pass_cse_sincos): Replace declaration with that of...
22075 (make_pass_cse_sincos): ...new function.
22076 (pass_optimize_bswap): Replace declaration with that of...
22077 (make_pass_optimize_bswap): ...new function.
22078 (pass_optimize_widening_mul): Replace declaration with that of...
22079 (make_pass_optimize_widening_mul): ...new function.
22080 (pass_warn_function_return): Replace declaration with that of...
22081 (make_pass_warn_function_return): ...new function.
22082 (pass_warn_function_noreturn): Replace declaration with that of...
22083 (make_pass_warn_function_noreturn): ...new function.
22084 (pass_cselim): Replace declaration with that of...
22085 (make_pass_cselim): ...new function.
22086 (pass_phiopt): Replace declaration with that of...
22087 (make_pass_phiopt): ...new function.
22088 (pass_forwprop): Replace declaration with that of...
22089 (make_pass_forwprop): ...new function.
22090 (pass_phiprop): Replace declaration with that of...
22091 (make_pass_phiprop): ...new function.
22092 (pass_tree_ifcombine): Replace declaration with that of...
22093 (make_pass_tree_ifcombine): ...new function.
22094 (pass_dse): Replace declaration with that of...
22095 (make_pass_dse): ...new function.
22096 (pass_nrv): Replace declaration with that of...
22097 (make_pass_nrv): ...new function.
22098 (pass_rename_ssa_copies): Replace declaration with that of...
22099 (make_pass_rename_ssa_copies): ...new function.
22100 (pass_sink_code): Replace declaration with that of...
22101 (make_pass_sink_code): ...new function.
22102 (pass_fre): Replace declaration with that of...
22103 (make_pass_fre): ...new function.
22104 (pass_check_data_deps): Replace declaration with that of...
22105 (make_pass_check_data_deps): ...new function.
22106 (pass_copy_prop): Replace declaration with that of...
22107 (make_pass_copy_prop): ...new function.
22108 (pass_vrp): Replace declaration with that of...
22109 (make_pass_vrp): ...new function.
22110 (pass_uncprop): Replace declaration with that of...
22111 (make_pass_uncprop): ...new function.
22112 (pass_return_slot): Replace declaration with that of...
22113 (make_pass_return_slot): ...new function.
22114 (pass_reassoc): Replace declaration with that of...
22115 (make_pass_reassoc): ...new function.
22116 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22117 (make_pass_rebuild_cgraph_edges): ...new function.
22118 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22119 (make_pass_remove_cgraph_callee_edges): ...new function.
22120 (pass_build_cgraph_edges): Replace declaration with that of...
22121 (make_pass_build_cgraph_edges): ...new function.
22122 (pass_local_pure_const): Replace declaration with that of...
22123 (make_pass_local_pure_const): ...new function.
22124 (pass_tracer): Replace declaration with that of...
22125 (make_pass_tracer): ...new function.
22126 (pass_warn_unused_result): Replace declaration with that of...
22127 (make_pass_warn_unused_result): ...new function.
22128 (pass_diagnose_tm_blocks): Replace declaration with that of...
22129 (make_pass_diagnose_tm_blocks): ...new function.
22130 (pass_lower_tm): Replace declaration with that of...
22131 (make_pass_lower_tm): ...new function.
22132 (pass_tm_init): Replace declaration with that of...
22133 (make_pass_tm_init): ...new function.
22134 (pass_tm_mark): Replace declaration with that of...
22135 (make_pass_tm_mark): ...new function.
22136 (pass_tm_memopt): Replace declaration with that of...
22137 (make_pass_tm_memopt): ...new function.
22138 (pass_tm_edges): Replace declaration with that of...
22139 (make_pass_tm_edges): ...new function.
22140 (pass_split_functions): Replace declaration with that of...
22141 (make_pass_split_functions): ...new function.
22142 (pass_feedback_split_functions): Replace declaration with that of...
22143 (make_pass_feedback_split_functions): ...new function.
22144 (pass_strength_reduction): Replace declaration with that of...
22145 (make_pass_strength_reduction): ...new function.
22146 (pass_ipa_lower_emutls): Replace declaration with that of...
22147 (make_pass_ipa_lower_emutls): ...new function.
22148 (pass_ipa_function_and_variable_visibility): Replace declaration with
22149 that of...
22150 (make_pass_ipa_function_and_variable_visibility): ...new function.
22151 (pass_ipa_tree_profile): Replace declaration with that of...
22152 (make_pass_ipa_tree_profile): ...new function.
22153 (pass_early_local_passes): Replace declaration with that of...
22154 (make_pass_early_local_passes): ...new function.
22155 (pass_ipa_whole_program_visibility): Replace declaration with that
22156 of...
22157 (make_pass_ipa_whole_program_visibility): ...new function.
22158 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22159 (make_pass_ipa_lto_gimple_out): ...new function.
22160 (pass_ipa_increase_alignment): Replace declaration with that of...
22161 (make_pass_ipa_increase_alignment): ...new function.
22162 (pass_ipa_inline): Replace declaration with that of...
22163 (make_pass_ipa_inline): ...new function.
22164 (pass_ipa_free_lang_data): Replace declaration with that of...
22165 (make_pass_ipa_free_lang_data): ...new function.
22166 (pass_ipa_free_inline_summary): Replace declaration with that of...
22167 (make_pass_ipa_free_inline_summary): ...new function.
22168 (pass_ipa_cp): Replace declaration with that of...
22169 (make_pass_ipa_cp): ...new function.
22170 (pass_ipa_reference): Replace declaration with that of...
22171 (make_pass_ipa_reference): ...new function.
22172 (pass_ipa_pure_const): Replace declaration with that of...
22173 (make_pass_ipa_pure_const): ...new function.
22174 (pass_ipa_pta): Replace declaration with that of...
22175 (make_pass_ipa_pta): ...new function.
22176 (pass_ipa_lto_finish_out): Replace declaration with that of...
22177 (make_pass_ipa_lto_finish_out): ...new function.
22178 (pass_ipa_tm): Replace declaration with that of...
22179 (make_pass_ipa_tm): ...new function.
22180 (pass_ipa_profile): Replace declaration with that of...
22181 (make_pass_ipa_profile): ...new function.
22182 (pass_ipa_cdtor_merge): Replace declaration with that of...
22183 (make_pass_ipa_cdtor_merge): ...new function.
22184 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22185 of...
22186 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22187 (pass_init_datastructures): Replace declaration with that of...
22188 (make_pass_init_datastructures): ...new function.
22189 (pass_fixup_cfg): Replace declaration with that of...
22190 (make_pass_fixup_cfg): ...new function.
22191 (pass_expand): Replace declaration with that of...
22192 (make_pass_expand): ...new function.
22193 (pass_instantiate_virtual_regs): Replace declaration with that of...
22194 (make_pass_instantiate_virtual_regs): ...new function.
22195 (pass_rtl_fwprop): Replace declaration with that of...
22196 (make_pass_rtl_fwprop): ...new function.
22197 (pass_rtl_fwprop_addr): Replace declaration with that of...
22198 (make_pass_rtl_fwprop_addr): ...new function.
22199 (pass_jump): Replace declaration with that of...
22200 (make_pass_jump): ...new function.
22201 (pass_jump2): Replace declaration with that of...
22202 (make_pass_jump2): ...new function.
22203 (pass_lower_subreg): Replace declaration with that of...
22204 (make_pass_lower_subreg): ...new function.
22205 (pass_cse): Replace declaration with that of...
22206 (make_pass_cse): ...new function.
22207 (pass_fast_rtl_dce): Replace declaration with that of...
22208 (make_pass_fast_rtl_dce): ...new function.
22209 (pass_ud_rtl_dce): Replace declaration with that of...
22210 (make_pass_ud_rtl_dce): ...new function.
22211 (pass_rtl_dce): Replace declaration with that of...
22212 (make_pass_rtl_dce): ...new function.
22213 (pass_rtl_dse1): Replace declaration with that of...
22214 (make_pass_rtl_dse1): ...new function.
22215 (pass_rtl_dse2): Replace declaration with that of...
22216 (make_pass_rtl_dse2): ...new function.
22217 (pass_rtl_dse3): Replace declaration with that of...
22218 (make_pass_rtl_dse3): ...new function.
22219 (pass_rtl_cprop): Replace declaration with that of...
22220 (make_pass_rtl_cprop): ...new function.
22221 (pass_rtl_pre): Replace declaration with that of...
22222 (make_pass_rtl_pre): ...new function.
22223 (pass_rtl_hoist): Replace declaration with that of...
22224 (make_pass_rtl_hoist): ...new function.
22225 (pass_rtl_store_motion): Replace declaration with that of...
22226 (make_pass_rtl_store_motion): ...new function.
22227 (pass_cse_after_global_opts): Replace declaration with that of...
22228 (make_pass_cse_after_global_opts): ...new function.
22229 (pass_rtl_ifcvt): Replace declaration with that of...
22230 (make_pass_rtl_ifcvt): ...new function.
22231 (pass_into_cfg_layout_mode): Replace declaration with that of...
22232 (make_pass_into_cfg_layout_mode): ...new function.
22233 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22234 (make_pass_outof_cfg_layout_mode): ...new function.
22235 (pass_loop2): Replace declaration with that of...
22236 (make_pass_loop2): ...new function.
22237 (pass_rtl_loop_init): Replace declaration with that of...
22238 (make_pass_rtl_loop_init): ...new function.
22239 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22240 (make_pass_rtl_move_loop_invariants): ...new function.
22241 (pass_rtl_unswitch): Replace declaration with that of...
22242 (make_pass_rtl_unswitch): ...new function.
22243 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22244 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22245 (pass_rtl_doloop): Replace declaration with that of...
22246 (make_pass_rtl_doloop): ...new function.
22247 (pass_rtl_loop_done): Replace declaration with that of...
22248 (make_pass_rtl_loop_done): ...new function.
22249 (pass_web): Replace declaration with that of...
22250 (make_pass_web): ...new function.
22251 (pass_cse2): Replace declaration with that of...
22252 (make_pass_cse2): ...new function.
22253 (pass_df_initialize_opt): Replace declaration with that of...
22254 (make_pass_df_initialize_opt): ...new function.
22255 (pass_df_initialize_no_opt): Replace declaration with that of...
22256 (make_pass_df_initialize_no_opt): ...new function.
22257 (pass_reginfo_init): Replace declaration with that of...
22258 (make_pass_reginfo_init): ...new function.
22259 (pass_inc_dec): Replace declaration with that of...
22260 (make_pass_inc_dec): ...new function.
22261 (pass_stack_ptr_mod): Replace declaration with that of...
22262 (make_pass_stack_ptr_mod): ...new function.
22263 (pass_initialize_regs): Replace declaration with that of...
22264 (make_pass_initialize_regs): ...new function.
22265 (pass_combine): Replace declaration with that of...
22266 (make_pass_combine): ...new function.
22267 (pass_if_after_combine): Replace declaration with that of...
22268 (make_pass_if_after_combine): ...new function.
22269 (pass_ree): Replace declaration with that of...
22270 (make_pass_ree): ...new function.
22271 (pass_partition_blocks): Replace declaration with that of...
22272 (make_pass_partition_blocks): ...new function.
22273 (pass_match_asm_constraints): Replace declaration with that of...
22274 (make_pass_match_asm_constraints): ...new function.
22275 (pass_regmove): Replace declaration with that of...
22276 (make_pass_regmove): ...new function.
22277 (pass_split_all_insns): Replace declaration with that of...
22278 (make_pass_split_all_insns): ...new function.
22279 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22280 (make_pass_fast_rtl_byte_dce): ...new function.
22281 (pass_lower_subreg2): Replace declaration with that of...
22282 (make_pass_lower_subreg2): ...new function.
22283 (pass_mode_switching): Replace declaration with that of...
22284 (make_pass_mode_switching): ...new function.
22285 (pass_sms): Replace declaration with that of...
22286 (make_pass_sms): ...new function.
22287 (pass_sched): Replace declaration with that of...
22288 (make_pass_sched): ...new function.
22289 (pass_ira): Replace declaration with that of...
22290 (make_pass_ira): ...new function.
22291 (pass_reload): Replace declaration with that of...
22292 (make_pass_reload): ...new function.
22293 (pass_clean_state): Replace declaration with that of...
22294 (make_pass_clean_state): ...new function.
22295 (pass_branch_prob): Replace declaration with that of...
22296 (make_pass_branch_prob): ...new function.
22297 (pass_value_profile_transformations): Replace declaration with that
22298 of...
22299 (make_pass_value_profile_transformations): ...new function.
22300 (pass_postreload_cse): Replace declaration with that of...
22301 (make_pass_postreload_cse): ...new function.
22302 (pass_gcse2): Replace declaration with that of...
22303 (make_pass_gcse2): ...new function.
22304 (pass_split_after_reload): Replace declaration with that of...
22305 (make_pass_split_after_reload): ...new function.
22306 (pass_branch_target_load_optimize1): Replace declaration with that
22307 of...
22308 (make_pass_branch_target_load_optimize1): ...new function.
22309 (pass_thread_prologue_and_epilogue): Replace declaration with that
22310 of...
22311 (make_pass_thread_prologue_and_epilogue): ...new function.
22312 (pass_stack_adjustments): Replace declaration with that of...
22313 (make_pass_stack_adjustments): ...new function.
22314 (pass_peephole2): Replace declaration with that of...
22315 (make_pass_peephole2): ...new function.
22316 (pass_if_after_reload): Replace declaration with that of...
22317 (make_pass_if_after_reload): ...new function.
22318 (pass_regrename): Replace declaration with that of...
22319 (make_pass_regrename): ...new function.
22320 (pass_cprop_hardreg): Replace declaration with that of...
22321 (make_pass_cprop_hardreg): ...new function.
22322 (pass_reorder_blocks): Replace declaration with that of...
22323 (make_pass_reorder_blocks): ...new function.
22324 (pass_branch_target_load_optimize2): Replace declaration with that
22325 of...
22326 (make_pass_branch_target_load_optimize2): ...new function.
22327 (pass_leaf_regs): Replace declaration with that of...
22328 (make_pass_leaf_regs): ...new function.
22329 (pass_split_before_sched2): Replace declaration with that of...
22330 (make_pass_split_before_sched2): ...new function.
22331 (pass_compare_elim_after_reload): Replace declaration with that of...
22332 (make_pass_compare_elim_after_reload): ...new function.
22333 (pass_sched2): Replace declaration with that of...
22334 (make_pass_sched2): ...new function.
22335 (pass_stack_regs): Replace declaration with that of...
22336 (make_pass_stack_regs): ...new function.
22337 (pass_stack_regs_run): Replace declaration with that of...
22338 (make_pass_stack_regs_run): ...new function.
22339 (pass_df_finish): Replace declaration with that of...
22340 (make_pass_df_finish): ...new function.
22341 (pass_compute_alignments): Replace declaration with that of...
22342 (make_pass_compute_alignments): ...new function.
22343 (pass_duplicate_computed_gotos): Replace declaration with that of...
22344 (make_pass_duplicate_computed_gotos): ...new function.
22345 (pass_variable_tracking): Replace declaration with that of...
22346 (make_pass_variable_tracking): ...new function.
22347 (pass_free_cfg): Replace declaration with that of...
22348 (make_pass_free_cfg): ...new function.
22349 (pass_machine_reorg): Replace declaration with that of...
22350 (make_pass_machine_reorg): ...new function.
22351 (pass_cleanup_barriers): Replace declaration with that of...
22352 (make_pass_cleanup_barriers): ...new function.
22353 (pass_delay_slots): Replace declaration with that of...
22354 (make_pass_delay_slots): ...new function.
22355 (pass_split_for_shorten_branches): Replace declaration with that of...
22356 (make_pass_split_for_shorten_branches): ...new function.
22357 (pass_split_before_regstack): Replace declaration with that of...
22358 (make_pass_split_before_regstack): ...new function.
22359 (pass_convert_to_eh_region_ranges): Replace declaration with that
22360 of...
22361 (make_pass_convert_to_eh_region_ranges): ...new function.
22362 (pass_shorten_branches): Replace declaration with that of...
22363 (make_pass_shorten_branches): ...new function.
22364 (pass_set_nothrow_function_flags): Replace declaration with that of...
22365 (make_pass_set_nothrow_function_flags): ...new function.
22366 (pass_dwarf2_frame): Replace declaration with that of...
22367 (make_pass_dwarf2_frame): ...new function.
22368 (pass_final): Replace declaration with that of...
22369 (make_pass_final): ...new function.
22370 (pass_rtl_seqabstr): Replace declaration with that of...
22371 (make_pass_rtl_seqabstr): ...new function.
22372 (pass_release_ssa_names): Replace declaration with that of...
22373 (make_pass_release_ssa_names): ...new function.
22374 (pass_early_inline): Replace declaration with that of...
22375 (make_pass_early_inline): ...new function.
22376 (pass_inline_parameters): Replace declaration with that of...
22377 (make_pass_inline_parameters): ...new function.
22378 (pass_update_address_taken): Replace declaration with that of...
22379 (make_pass_update_address_taken): ...new function.
22380 (pass_convert_switch): Replace declaration with that of...
22381 (make_pass_convert_switch): ...new function.
22382 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22383 to a subclass of simple_ipa_opt_pass along with...
22384 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22385 (make_pass_ipa_tree_profile): ...new function.
22386 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22387 subclass of gimple_opt_pass along with...
22388 (pass_data_sra_early): ...new pass_data instance and...
22389 (make_pass_sra_early): ...new function.
22390 (pass_sra): Convert from a global struct to a subclass of
22391 gimple_opt_pass along with...
22392 (pass_data_sra): ...new pass_data instance and...
22393 (make_pass_sra): ...new function.
22394 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22395 gimple_opt_pass along with...
22396 (pass_data_early_ipa_sra): ...new pass_data instance and...
22397 (make_pass_early_ipa_sra): ...new function.
22398 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22399 subclass of gimple_opt_pass along with...
22400 (pass_data_ccp): ...new pass_data instance and...
22401 (make_pass_ccp): ...new function.
22402 (pass_fold_builtins): Convert from a global struct to a subclass of
22403 gimple_opt_pass along with...
22404 (pass_data_fold_builtins): ...new pass_data instance and...
22405 (make_pass_fold_builtins): ...new function.
22406 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22407 subclass of gimple_opt_pass along with...
22408 (pass_data_copy_prop): ...new pass_data instance and...
22409 (make_pass_copy_prop): ...new function.
22410 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22411 global struct to a subclass of gimple_opt_pass along with...
22412 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22413 (make_pass_rename_ssa_copies): ...new function.
22414 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22415 subclass of gimple_opt_pass along with...
22416 (pass_data_dce): ...new pass_data instance and...
22417 (make_pass_dce): ...new function.
22418 (pass_dce_loop): Convert from a global struct to a subclass of
22419 gimple_opt_pass along with...
22420 (pass_data_dce_loop): ...new pass_data instance and...
22421 (make_pass_dce_loop): ...new function.
22422 (pass_cd_dce): Convert from a global struct to a subclass of
22423 gimple_opt_pass along with...
22424 (pass_data_cd_dce): ...new pass_data instance and...
22425 (make_pass_cd_dce): ...new function.
22426 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22427 subclass of gimple_opt_pass along with...
22428 (pass_data_dominator): ...new pass_data instance and...
22429 (make_pass_dominator): ...new function.
22430 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22431 gimple_opt_pass along with...
22432 (pass_data_phi_only_cprop): ...new pass_data instance and...
22433 (make_pass_phi_only_cprop): ...new function.
22434 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22435 subclass of gimple_opt_pass along with...
22436 (pass_data_dse): ...new pass_data instance and...
22437 (make_pass_dse): ...new function.
22438 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22439 a subclass of gimple_opt_pass along with...
22440 (pass_data_forwprop): ...new pass_data instance and...
22441 (make_pass_forwprop): ...new function.
22442 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22443 struct to a subclass of gimple_opt_pass along with...
22444 (pass_data_tree_ifcombine): ...new pass_data instance and...
22445 (make_pass_tree_ifcombine): ...new function.
22446 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22447 subclass of gimple_opt_pass along with...
22448 (pass_data_ch): ...new pass_data instance and...
22449 (make_pass_ch): ...new function.
22450 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22451 subclass of gimple_opt_pass along with...
22452 (pass_data_tree_loop): ...new pass_data instance and...
22453 (make_pass_tree_loop): ...new function.
22454 (pass_tree_loop_init): Convert from a global struct to a subclass of
22455 gimple_opt_pass along with...
22456 (pass_data_tree_loop_init): ...new pass_data instance and...
22457 (make_pass_tree_loop_init): ...new function.
22458 (pass_lim): Convert from a global struct to a subclass of
22459 gimple_opt_pass along with...
22460 (pass_data_lim): ...new pass_data instance and...
22461 (make_pass_lim): ...new function.
22462 (pass_tree_unswitch): Convert from a global struct to a subclass of
22463 gimple_opt_pass along with...
22464 (pass_data_tree_unswitch): ...new pass_data instance and...
22465 (make_pass_tree_unswitch): ...new function.
22466 (pass_predcom): Convert from a global struct to a subclass of
22467 gimple_opt_pass along with...
22468 (pass_data_predcom): ...new pass_data instance and...
22469 (make_pass_predcom): ...new function.
22470 (pass_vectorize): Convert from a global struct to a subclass of
22471 gimple_opt_pass along with...
22472 (pass_data_vectorize): ...new pass_data instance and...
22473 (make_pass_vectorize): ...new function.
22474 (pass_graphite): Convert from a global struct to a subclass of
22475 gimple_opt_pass along with...
22476 (pass_data_graphite): ...new pass_data instance and...
22477 (make_pass_graphite): ...new function.
22478 (pass_graphite_transforms): Convert from a global struct to a subclass
22479 of gimple_opt_pass along with...
22480 (pass_data_graphite_transforms): ...new pass_data instance and...
22481 (make_pass_graphite_transforms): ...new function.
22482 (pass_check_data_deps): Convert from a global struct to a subclass of
22483 gimple_opt_pass along with...
22484 (pass_data_check_data_deps): ...new pass_data instance and...
22485 (make_pass_check_data_deps): ...new function.
22486 (pass_iv_canon): Convert from a global struct to a subclass of
22487 gimple_opt_pass along with...
22488 (pass_data_iv_canon): ...new pass_data instance and...
22489 (make_pass_iv_canon): ...new function.
22490 (pass_scev_cprop): Convert from a global struct to a subclass of
22491 gimple_opt_pass along with...
22492 (pass_data_scev_cprop): ...new pass_data instance and...
22493 (make_pass_scev_cprop): ...new function.
22494 (pass_record_bounds): Convert from a global struct to a subclass of
22495 gimple_opt_pass along with...
22496 (pass_data_record_bounds): ...new pass_data instance and...
22497 (make_pass_record_bounds): ...new function.
22498 (pass_complete_unroll): Convert from a global struct to a subclass of
22499 gimple_opt_pass along with...
22500 (pass_data_complete_unroll): ...new pass_data instance and...
22501 (make_pass_complete_unroll): ...new function.
22502 (pass_complete_unrolli): Convert from a global struct to a subclass of
22503 gimple_opt_pass along with...
22504 (pass_data_complete_unrolli): ...new pass_data instance and...
22505 (make_pass_complete_unrolli): ...new function.
22506 (pass_parallelize_loops): Convert from a global struct to a subclass
22507 of gimple_opt_pass along with...
22508 (pass_data_parallelize_loops): ...new pass_data instance and...
22509 (make_pass_parallelize_loops): ...new function.
22510 (pass_loop_prefetch): Convert from a global struct to a subclass of
22511 gimple_opt_pass along with...
22512 (pass_data_loop_prefetch): ...new pass_data instance and...
22513 (make_pass_loop_prefetch): ...new function.
22514 (pass_iv_optimize): Convert from a global struct to a subclass of
22515 gimple_opt_pass along with...
22516 (pass_data_iv_optimize): ...new pass_data instance and...
22517 (make_pass_iv_optimize): ...new function.
22518 (pass_tree_loop_done): Convert from a global struct to a subclass of
22519 gimple_opt_pass along with...
22520 (pass_data_tree_loop_done): ...new pass_data instance and...
22521 (make_pass_tree_loop_done): ...new function.
22522 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22523 struct to a subclass of gimple_opt_pass along with...
22524 (pass_data_cse_reciprocals): ...new pass_data instance and...
22525 (make_pass_cse_reciprocals): ...new function.
22526 (pass_cse_sincos): Convert from a global struct to a subclass of
22527 gimple_opt_pass along with...
22528 (pass_data_cse_sincos): ...new pass_data instance and...
22529 (make_pass_cse_sincos): ...new function.
22530 (pass_optimize_bswap): Convert from a global struct to a subclass of
22531 gimple_opt_pass along with...
22532 (pass_data_optimize_bswap): ...new pass_data instance and...
22533 (make_pass_optimize_bswap): ...new function.
22534 (pass_optimize_widening_mul): Convert from a global struct to a
22535 subclass of gimple_opt_pass along with...
22536 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22537 (make_pass_optimize_widening_mul): ...new function.
22538 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22539 subclass of gimple_opt_pass along with...
22540 (pass_data_phiopt): ...new pass_data instance and...
22541 (make_pass_phiopt): ...new function.
22542 (pass_cselim): Convert from a global struct to a subclass of
22543 gimple_opt_pass along with...
22544 (pass_data_cselim): ...new pass_data instance and...
22545 (make_pass_cselim): ...new function.
22546 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22547 subclass of gimple_opt_pass along with...
22548 (pass_data_phiprop): ...new pass_data instance and...
22549 (make_pass_phiprop): ...new function.
22550 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22551 subclass of gimple_opt_pass along with...
22552 (pass_data_pre): ...new pass_data instance and...
22553 (make_pass_pre): ...new function.
22554 (pass_fre): Convert from a global struct to a subclass of
22555 gimple_opt_pass along with...
22556 (pass_data_fre): ...new pass_data instance and...
22557 (make_pass_fre): ...new function.
22558 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22559 subclass of gimple_opt_pass along with...
22560 (pass_data_reassoc): ...new pass_data instance and...
22561 (make_pass_reassoc): ...new function.
22562 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22563 subclass of gimple_opt_pass along with...
22564 (pass_data_sink_code): ...new pass_data instance and...
22565 (make_pass_sink_code): ...new function.
22566 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22567 subclass of gimple_opt_pass along with...
22568 (pass_data_strlen): ...new pass_data instance and...
22569 (make_pass_strlen): ...new function.
22570 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22571 struct to a subclass of gimple_opt_pass along with...
22572 (pass_data_build_alias): ...new pass_data instance and...
22573 (make_pass_build_alias): ...new function.
22574 (pass_build_ealias): Convert from a global struct to a subclass of
22575 gimple_opt_pass along with...
22576 (pass_data_build_ealias): ...new pass_data instance and...
22577 (make_pass_build_ealias): ...new function.
22578 (pass_ipa_pta): Convert from a global struct to a subclass of
22579 simple_ipa_opt_pass along with...
22580 (pass_data_ipa_pta): ...new pass_data instance and...
22581 (make_pass_ipa_pta): ...new function.
22582 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22583 subclass of gimple_opt_pass along with...
22584 (pass_data_uncprop): ...new pass_data instance and...
22585 (make_pass_uncprop): ...new function.
22586 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22587 global struct to a subclass of gimple_opt_pass along with...
22588 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22589 (make_pass_late_warn_uninitialized): ...new function.
22590 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22591 to a subclass of gimple_opt_pass along with...
22592 (pass_data_init_datastructures): ...new pass_data instance and...
22593 (make_pass_init_datastructures): ...new function.
22594 (pass_early_warn_uninitialized): Convert from a global struct to a
22595 subclass of gimple_opt_pass along with...
22596 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22597 (make_pass_early_warn_uninitialized): ...new function.
22598 (pass_update_address_taken): Convert from a global struct to a
22599 subclass of gimple_opt_pass along with...
22600 (pass_data_update_address_taken): ...new pass_data instance and...
22601 (make_pass_update_address_taken): ...new function.
22602 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22603 struct to a subclass of gimple_opt_pass along with...
22604 (pass_data_release_ssa_names): ...new pass_data instance and...
22605 (make_pass_release_ssa_names): ...new function.
22606 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22607 subclass of gimple_opt_pass along with...
22608 (pass_data_stdarg): ...new pass_data instance and...
22609 (make_pass_stdarg): ...new function.
22610 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22611 global struct to a subclass of gimple_opt_pass along with...
22612 (pass_data_convert_switch): ...new pass_data instance and...
22613 (make_pass_convert_switch): ...new function.
22614 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22615 to a subclass of gimple_opt_pass along with...
22616 (pass_data_tail_recursion): ...new pass_data instance and...
22617 (make_pass_tail_recursion): ...new function.
22618 (pass_tail_calls): Convert from a global struct to a subclass of
22619 gimple_opt_pass along with...
22620 (pass_data_tail_calls): ...new pass_data instance and...
22621 (make_pass_tail_calls): ...new function.
22622 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22623 struct to a subclass of gimple_opt_pass along with...
22624 (pass_data_lower_vector): ...new pass_data instance and...
22625 (make_pass_lower_vector): ...new function.
22626 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22627 gimple_opt_pass along with...
22628 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22629 (make_pass_lower_vector_ssa): ...new function.
22630 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22631 to a subclass of gimple_opt_pass along with...
22632 (pass_data_slp_vectorize): ...new pass_data instance and...
22633 (make_pass_slp_vectorize): ...new function.
22634 (pass_ipa_increase_alignment): Convert from a global struct to a
22635 subclass of simple_ipa_opt_pass along with...
22636 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22637 (make_pass_ipa_increase_alignment): ...new function.
22638 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22639 gimple_opt_pass along with...
22640 (pass_data_vrp): ...new pass_data instance and...
22641 (make_pass_vrp): ...new function.
22642 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22643 subclass of simple_ipa_opt_pass along with...
22644 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22645 (make_pass_ipa_free_lang_data): ...new function.
22646 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22647 gimple_opt_pass along with...
22648 (pass_data_tsan): ...new pass_data instance and...
22649 (make_pass_tsan): ...new function.
22650 (pass_tsan_O0): Convert from a global struct to a subclass of
22651 gimple_opt_pass along with...
22652 (pass_data_tsan_O0): ...new pass_data instance and...
22653 (make_pass_tsan_O0): ...new function.
22654 * var-tracking.c (pass_variable_tracking): Convert from a global
22655 struct to a subclass of rtl_opt_pass along with...
22656 (pass_data_variable_tracking): ...new pass_data instance and...
22657 (make_pass_variable_tracking): ...new function.
22658 * web.c (pass_web): Convert from a global struct to a subclass of
22659 rtl_opt_pass along with...
22660 (pass_data_web): ...new pass_data instance and...
22661 (make_pass_web): ...new function.
22662 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22663 declaration with that of...
22664 (make_pass_mode_switch_use): ...new function.
22665 (pass_resolve_sw_modes): Replace declaration with that of...
22666 (make_pass_resolve_sw_modes): ...new function.
22667 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22668 from a global struct to a subclass of rtl_opt_pass along with...
22669 (pass_data_mode_switch_use): ...new pass_data instance and...
22670 (make_pass_mode_switch_use): ...new function.
22671 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22672 from a global struct to a subclass of rtl_opt_pass along with...
22673 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22674 (make_pass_resolve_sw_modes): ...new function.
22675 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22676 struct to a subclass of rtl_opt_pass along with...
22677 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22678 (make_pass_insert_vzeroupper): ...new function.
22679 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22680 global struct to a subclass of rtl_opt_pass along with...
22681 (pass_data_work_around_errata): ...new pass_data instance and...
22682 (make_pass_work_around_errata): ...new function.
22683 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22684 struct to a subclass of rtl_opt_pass along with...
22685 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22686 (make_pass_mips_machine_reorg2): ...new function.
22687
22688 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22689
22690 * passes.c (pass_manager::operator new): New.
22691
22692 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22693
22694 Handwritten part of conversion of passes to C++ classes.
22695
22696 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22697 (toplev.o): Add dep on PASS_MANAGER_H.
22698 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22699 of early local pases to reflect this moving from a global to a
22700 member of gcc::pass_manager.
22701 (cgraph_add_new_function): Likewise.
22702 * lto-cgraph.c (lto_output_node): Update for conversion of
22703 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22704 * passes.c (opt_pass::clone): New.
22705 (opt_pass::gate): New.
22706 (opt_pass::execute): New.
22707 (opt_pass::opt_pass): New.
22708 (pass_manager::execute_early_local_passes): New.
22709 (pass_manager::execute_pass_mode_switching): new.
22710 (finish_optimization_passes): Convert to...
22711 (pass_manager::finish_optimization_passes): ...this.
22712 (finish_optimization_passes): Update for conversion of passes to
22713 C++ classes.
22714 (register_dump_files_1): Use has_gate since we cannot portably
22715 check a vtable entry against NULL.
22716 (dump_one_pass): Likewise.
22717 (ipa_write_summaries_2): Likewise.
22718 (ipa_write_optimization_summaries_1): Likewise.
22719 (ipa_read_summaries_1): Likewise.
22720 (ipa_read_optimization_summaries_1): Likewise.
22721 (execute_ipa_stmt_fixups): Likewise.
22722 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22723 pass-creation functions rather than wiring up globals, and
22724 storing the results in fields of pass_manager generated using
22725 pass-instances.def.
22726 (pass_manager::dump_profile_report): Update for conversion of
22727 passes to C++ classes.
22728 (pass_manager::execute_ipa_summary_passes): Likewise.
22729 (execute_one_ipa_transform_pass): Likewise.
22730 (execute_one_pass): Use has_gate and has_execute since we cannot
22731 portably check a vtable entry against NULL.
22732 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22733 (pass_manager): Use pass-instances.def to add fields for the
22734 various pass instances.
22735 * toplev.c (finalize): Update for move of
22736 finish_optimization_passes to a method of gcc::pass_manager.
22737 * toplev.h (finish_optimization_passes): Move to method of class
22738 pass_manager.
22739 * tree-pass.h (struct pass_data): New.
22740 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22741 (opt_pass::gate): Convert to virtual function.
22742 (opt_pass::~opt_pass): New.
22743 (opt_pass::clone): New.
22744 (opt_pass::execute): Convert to virtual function.
22745 (opt_pass::opt_pass): New.
22746 (opt_pass::ctxt_): new.
22747 (gimple_opt_pass): Convert to subclass of opt_pass.
22748 (gimple_opt_pass::gimple_opt_pass): New.
22749 (rtl_opt_pass): Convert to subclass of opt_pass.
22750 (rtl_opt_pass::rtl_opt_pass): New.
22751 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22752 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22753 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22754 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22755 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22756 invocation of pass_mode_switching to reflect this moving from a
22757 global to a member of gcc::pass_manager.
22758 (ix86_option_override): Rework how pass_insert_vzeroupper is
22759 added to the pass_manager to reflect autogenerated changes.
22760 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22761
22762 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22763
22764 PR rtl-optimization/57708
22765 * recog.c (peep2_find_free_register): Validate all regs in a
22766 multi-reg mode.
22767
22768 2013-08-05 Jan Hubicka <jh@suse.cz>
22769
22770 PR lto/57602
22771 * cgraph.c (verify_cgraph_node): Accept local flags from other
22772 partitions.
22773 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22774 (function_and_variable_visibility): Likewise.
22775 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22776
22777 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22778
22779 * graph.c (init_graph_slim_pretty_print): Remove.
22780 (print_graph_cfg): Do not call it. Use local pretty printer.
22781 (start_graph_dump): Likewise.
22782
22783 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22784
22785 * gimple-pretty-print.c (buffer): Remove.
22786 (initialized): Likewise.
22787 (maybe_init_pretty_print): Likewise.
22788 (print_gimple_stmt): Do not call it. Use non-static local
22789 pretty_printer variable.
22790 (print_gimple_expr): Likewise.
22791 (print_gimple_seq): Likewise.
22792 (gimple_dump_bb): Likewise.
22793
22794 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22795
22796 * asan.c (asan_pp): Remove.
22797 (asan_pp_initialized): Likewise.
22798 (asan_pp_initialize): Likewise.
22799 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22800 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22801 (asan_add_global): Likewise.
22802
22803 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22804
22805 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22806 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22807 * pretty-print.c (pp_formatted_text_data): Likewise.
22808 (pp_indent): Rename from pp_base_indent.
22809 (pp_format): Rename from pp_base_format.
22810 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22811 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22812 (pp_flush): Rename from pp_base_flush.
22813 (pp_set_line_maximum_length): Rename from
22814 pp_base_set_line_maximum_length.
22815 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22816 (pp_set_prefix): Rename from pp_base_set_prefix.
22817 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22818 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22819 (pp_append_text): Rename from pp_base_append_text.
22820 (pp_formatted_text): Rename from pp_base_formatted_text.
22821 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22822 (pp_remaining_character_count_for_line): Rename from
22823 pp_base_remaining_character_count_for_line.
22824 (pp_newline): Rename from pp_base_newline.
22825 (pp_character): Rename from pp_base_character.
22826 (pp_string): Rename from pp_base_string.
22827 (pp_maybe_space): Rename from pp_base_maybe_space.
22828 * asan.c (asan_pp_string): Adjust.
22829 (asan_emit_stack_protection): Likewise.
22830 (asan_add_global): Likewise.
22831 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22832 * tree-mudflap.c (mf_varname_tree): Likewise.
22833 * tree-pretty-print.c (pp_tree_identifier): Rename from
22834 pp_base_tree_identifier.
22835 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22836 Declare as function.
22837
22838 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22839
22840 * pretty-print.h (pp_bar_bar): New.
22841 (pp_ampersand_ampersand): Likewise.
22842 (pp_less_equal): Likewise.
22843 (pp_greater_equal): Likewise.
22844 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22845 printer functions instead of pp_string or operators and punctuators.
22846 (dump_gimple_call): Likewise.
22847 (dump_gimple_omp_for): Likewise.
22848 (dump_gimple_transaction): Likewise.
22849 (dump_gimple_phi): Likewise.
22850 (pp_gimple_stmt_1): Likewise.
22851 * sched-vis.c (print_insn): Likewise.
22852 * tree-mudflap.c (mf_varname_tree): Likewise.
22853 * tree-pretty-print.c (dump_block_node): Likewise.
22854 (dump_generic_node): Likewise.
22855
22856 2013-08-02 Jan Hubicka <jh@suse.cz>
22857
22858 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22859 boundaries.
22860 * lto-streamer-out.c (tree_is_indexable): Results decls and
22861 parm decls are not indexable.
22862 (DFS_write_tree_body): Do not follow args and results.
22863 (hash_tree): Likewise.
22864 (output_functions): Rearrange so struct function is needed
22865 only when real body is output; be able to also ouptut abstract
22866 functions; output DECL_ARGUMENTS and DECL_RESULT.
22867 (lto_output): When not in WPA, ale store abstract functions.
22868 (write_symbol): Do not care about RESULT_DECL.
22869 (output_symbol_p): Handle correctly sbtract decls.
22870 * lto-streamer-in.c (input_function): Rearrange so struct
22871 function can be NULL at entry; allow streaming of
22872 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22873 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22874 sanity check during LTO.
22875 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22876 RESULT_DECl and DECL_ARGUMENTS.
22877 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22878 Likewise.
22879
22880 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22881
22882 * pretty-print.h (pp_underscore): New.
22883 (pp_comma): Tidy.
22884 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22885 printer functions instead of pp_character.
22886 (dump_binary_rhs): Likewise.
22887 (dump_ternary_rhs): Likewise.
22888 (dump_gimple_call_args): Likewise.
22889 (pp_points_to_solution): Likewise.
22890 (dump_gimple_call): Likewise.
22891 (dump_gimple_switch): Likewise.
22892 (dump_gimple_cond): Likewise.
22893 (dump_gimple_bind): Likewise.
22894 (dump_gimple_try): Likewise.
22895 (dump_gimple_omp_for): Likewise.
22896 (dump_gimple_omp_continue): Likewise.
22897 (dump_gimple_omp_single): Likewise.
22898 (dump_gimple_omp_sections): Likewise.
22899 (dump_gimple_omp_block): Likewise.
22900 (dump_gimple_omp_critical): Likewise.
22901 (dump_gimple_transaction): Likewise.
22902 (dump_gimple_asm): Likewise.
22903 (dump_gimple_phi): Likewise.
22904 (dump_gimple_omp_parallel): Likewise.
22905 (dump_gimple_omp_task): Likewise.
22906 (dump_gimple_omp_atomic_load): Likewise.
22907 (dump_gimple_omp_atomic_store): Likewise.
22908 (dump_gimple_mem_ops): Likewise.
22909 (pp_gimple_stmt_1): Likewise.
22910 (pp_cfg_jump): Likewise.
22911 (dump_implicit_edges): Likewise.
22912 (gimple_dump_bb_for_graph): Likewise.
22913 * graph.c (draw_cfg_node): Likewise.
22914 * langhooks.c (lhd_print_error_function): Likewise.
22915 * sched-vis.c (print_exp): Likewise.
22916 (print_value): Likewise.
22917 (print_pattern): Likewise.
22918 (print_insn): Likewise.
22919 (rtl_dump_bb_for_graph): Likewise.
22920 * tree-pretty-print.c (dump_function_declaration): Likewise.
22921 (dump_array_domain): Likewise.
22922 (dump_omp_clause): Likewise.
22923 (dump_location): Likewise.
22924 (dump_generic_node): Likewise.
22925 (print_struct_decl): Likewise.
22926 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22927
22928 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22929
22930 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22931 candidate table when replacing a candidate statement.
22932 (replace_rhs_if_not_dup): Likewise.
22933 (replace_one_candidate): Likewise.
22934
22935 2013-08-02 Jan Hubicka <jh@suse.cz>
22936 Martin Liska <marxin.liska@gmail.com>
22937
22938 * cgraphunit.c (add_new_function): Fix logic when adding from
22939 late IPA pass.
22940 (assemble_thunk): Rename to ...
22941 (expand_thunk); .. this one; export; get it working with
22942 general functions; make produced gimple valid.
22943 * cgraph.h (expand_thunk): Declare.
22944
22945 2013-08-02 Jan Hubicka <jh@suse.cz>
22946
22947 * ipa-cp.c (gather_context_independent_values): Use
22948 ipa_get_param_move_cost.
22949 (get_replacement_map): Remove PARAM; move parameter folding
22950 into tree-inline.c
22951 (create_specialized_node): Update.
22952 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22953 assert that we have gimple body; update move_cost.
22954 (count_formal_params): Assert that we have gimple body.
22955 (ipa_dump_param): New function.
22956 (ipa_alloc_node_params): Break out from ...
22957 (ipa_initialize_node_params): ... here.
22958 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22959 (ipa_write_node_info): Stream move costs.
22960 (ipa_read_node_info): Read move costs.
22961 (ipa_update_after_lto_read): Do not recompute node params.
22962 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22963 (ipa_get_param): Check we are not in WPA.
22964 (ipa_get_param_move_cost): New.
22965 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
22966 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
22967 parm numbers to be present.
22968
22969 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22970
22971 PR rtl-optimization/58048
22972 * lra-constraints.c (process_alt_operands): Don't check asm
22973 operand on register.
22974
22975 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
22976
22977 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
22978 the implied StoreLoad barrier for atomic operations if before.
22979
22980 2013-08-02 Jan Hubicka <jh@suse.cz>
22981 Martin Liska <marxin.liska@gmail.com>
22982
22983 * cgraph.c (cgraph_function_body_availability): Do not check
22984 cgraph flags.
22985 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
22986 symtab_node_availability): Declare.
22987 * ipa.c (can_replace_by_local_alias): New.
22988 (function_and_variable_visibility): Use it.
22989 * symtab.c (symtab_for_node_and_aliases,
22990 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
22991
22992 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22993
22994 PR rtl-optimization/57963
22995 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
22996 (lra_constraints): Use them.
22997
22998 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
22999
23000 * config/arm/types.md (define_attr "type"): Add "load_acq"
23001 and "store_rel".
23002 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23003 changes.
23004 (cortex_a53_store1): Likewise.
23005
23006 2013-08-01 Jan Hubicka <jh@suse.cz>
23007
23008 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23009 partitions are not needed.
23010
23011 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23012
23013 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23014 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23015 MAYBE_NON_Q_CLASS_P where appropriate.
23016
23017 2013-08-01 Jan Hubicka <jh@suse.cz>
23018
23019 * cgraph.h (release_function_body): Declare.
23020 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23021 of unused delcarations.
23022
23023 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23024
23025 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23026 RTL form when subtracting a constant.
23027
23028 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23029
23030 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23031 Generate canonical plus rtx with negated immediate instead of minus
23032 where appropriate.
23033 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23034
23035 2013-08-01 Jan Hubicka <jh@suse.cz>
23036
23037 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23038 (cgraph_release_function_body): Likewise.
23039 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23040 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23041 to used_as_abstract_origin.
23042 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23043 symbols used as abstract origins.
23044 * cgraphunit.c (analyze_functions): Update.
23045 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23046 used_as_abstract_origin.
23047 * tree-inline.c (tree_function_versioning): Update
23048 used_as_abstract_origin; be ready for DECL_RESULT and
23049 DECL_ARGUMENTS to be NULL.
23050
23051 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23052 for abstract functions.
23053 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23054 real symbols.
23055
23056 2013-08-01 Jan Hubicka <jh@suse.cz>
23057
23058 * profile.c (compute_value_histograms): Fix thinko.
23059
23060 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23061
23062 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23063 aarch-common-protos.h to extra_headers.
23064 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23065 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23066 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23067
23068 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23069
23070 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23071 Include "../arm/types.md". Define "type" attribute for all patterns.
23072 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23073 attribute changes.
23074
23075 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23076
23077 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23078 to support power8 load fusion.
23079 (fusion_gpr_mem_load): Likewise.
23080
23081 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23082
23083 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23084 declarations for power8 load fusion.
23085 (emit_fusion_gpr_load): Likewise.
23086
23087 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23088 tuning for power8, turn on fusion mode by default. Turn on sign
23089 extending fusion mode if normal fusion mode is on, and we are at
23090 -O2 or -O3.
23091 (fusion_gpr_load_p): New function, return true if we can fuse an
23092 addis instruction with a dependent load to a GPR.
23093 (emit_fusion_gpr_load): Emit the instructions for power8 load
23094 fusion to GPRs.
23095
23096 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23097 (VSX load fusion peepholes): New peepholes to fuse together an
23098 addi instruction with a VSX load instruction.
23099
23100 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23101 peepholes to fuse an addis instruction with a load to a GPR base
23102 register. If we are supporting sign extending fusions, convert
23103 sign extending loads to zero extending loads and add an explicit
23104 sign extension.
23105
23106 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23107
23108 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23109 aarch-common-protos.h to extra_headers.
23110 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23111 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23112 (arm_early_store_addr_dep): Likewise.
23113 (arm_no_early_alu_shift_dep): Likewise.
23114 (arm_no_early_alu_shift_value_dep): Likewise.
23115 (arm_no_early_mul_dep): Likewise.
23116 (arm_no_early_store_addr_dep): Likewise.
23117 (arm_mac_accumulator_is_mul_result): Likewise.
23118 (arm_mac_accumulator_is_result): Likewise.
23119 * config/arm/aarch-common.c: ... here. New file.
23120 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23121 here to ...
23122 (arm_early_store_addr_dep): Likewise.
23123 (arm_no_early_alu_shift_dep): Likewise.
23124 (arm_no_early_alu_shift_value_dep): Likewise.
23125 (arm_no_early_mul_dep): Likewise.
23126 (arm_no_early_store_addr_dep): Likewise.
23127 (arm_mac_accumulator_is_mul_result): Likewise.
23128 (arm_mac_accumulator_is_result): Likewise.
23129 * config/arm/aarch-common-protos.h: ... here. New file.
23130 * config/arm/t-arm (aarch-common.o): Define.
23131
23132 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23133
23134 * config/arm/arm.md: Include new file "types.md".
23135 (define_attr "type"): Move from here to ...
23136 (define_attr "mul32"): Likewise.
23137 (define_attr "mul64"): Likewise.
23138 * config/arm/types.md: ... here. New file.
23139
23140 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23141
23142 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23143 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23144
23145 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23146
23147 * gen-pass-instances.awk: Fix offset of substr().
23148
23149 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23150
23151 * Makefile.in (pass-instances.def): New.
23152 (passes.o): Replace dependency on passes.def with one on
23153 pass-instances.def
23154
23155 * gen-pass-instances.awk: New.
23156
23157 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23158 rather than passes.def, updating local definition of NEXT_PASS
23159 macro to add an extra NUM parameter (currently unused).
23160
23161 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23162
23163 * Makefile.in (PASS_MANAGER_H): New.
23164 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23165 (passes.o): Likewise.
23166 (statistics.o): Likewise.
23167 (cgraphunit.o): Likewise.
23168 (context.o): Depend on PASS_MANAGER_H.
23169
23170 * pass_manager.h: New.
23171
23172 * cgraphunit.c (cgraph_add_new_function): Update for moves
23173 of globals to fields of pass_manager.
23174 (analyze_function): Likewise.
23175 (expand_function): Likewise.
23176 (ipa_passes): Likewise.
23177 (compile): Likewise.
23178
23179 * context.c (context::context): New.
23180 * context.h (context::context): New.
23181 (context::get_passes): New.
23182 (context::passes_): New.
23183
23184 * lto-cgraph.c (input_node): Update for moves of globals to
23185 fields of pass_manager.
23186
23187 * passes.c (all_passes): Remove, in favor of a field of the
23188 same name within the new class pass_manager.
23189 (all_small_ipa_passes): Likewise.
23190 (all_lowering_passes): Likewise.
23191 (all_regular_ipa_passes): Likewise.
23192 (all_late_ipa_passes): Likewise.
23193 (all_lto_gen_passes): Likewise.
23194 (passes_by_id): Likewise.
23195 (passes_by_id_size): Likewise.
23196 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23197 the new class pass_manager.
23198 (set_pass_for_id): Convert to...
23199 (pass_manager::set_pass_for_id): ...method.
23200 (get_pass_for_id): Convert to...
23201 (pass_manager::get_pass_for_id): ...method.
23202 (register_one_dump_file): Move body of implementation into...
23203 (pass_manager::register_one_dump_file): ...here.
23204 (register_dump_files_1): Convert to...
23205 (pass_manager::register_dump_files_1): ...method.
23206 (register_dump_files): Convert to...
23207 (pass_manager::register_dump_files): ...method.
23208 (create_pass_tab): Update for moves of globals to fields of
23209 pass_manager.
23210 (dump_passes): Move body of implementation into...
23211 (pass_manager::dump_passes): ...here.
23212 (register_pass): Move body of implementation into...
23213 (pass_manager::register_pass): ...here.
23214 (init_optimization_passes): Convert into...
23215 (pass_manager::pass_manager): ...constructor for new
23216 pass_manager class, and initialize the pass_lists array.
23217 (check_profile_consistency): Update for moves of globals to
23218 fields of pass_manager.
23219 (dump_profile_report): Move body of implementation into...
23220 (pass_manager::dump_profile_report): ...here.
23221 (ipa_write_summaries_1): Update for moves of pass lists from
23222 being globals to fields of pass_manager.
23223 (ipa_write_optimization_summaries): Likewise.
23224 (ipa_read_summaries): Likewise.
23225 (ipa_read_optimization_summaries): Likewise.
23226 (execute_all_ipa_stmt_fixups): Likewise.
23227
23228 * statistics.c (statistics_fini): Update for moves of globals to
23229 fields of pass_manager.
23230
23231 * toplev.c (general_init): Replace call to
23232 init_optimization_passes with construction of the pass_manager
23233 instance.
23234
23235 * tree-pass.h (all_passes): Remove, in favor of a field of the
23236 same name within the new class pass_manager.
23237 (all_small_ipa_passes): Likewise.
23238 (all_lowering_passes): Likewise.
23239 (all_regular_ipa_passes): Likewise.
23240 (all_lto_gen_passes): Likewise.
23241 (all_late_ipa_passes): Likewise.
23242 (passes_by_id): Likewise.
23243 (passes_by_id_size): Likewise.
23244 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23245 the new class pass_manager.
23246 (get_pass_for_id): Remove.
23247
23248 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23249
23250 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23251 configs.
23252
23253 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23254
23255 * arm.md (mulhi3): New expand pattern.
23256
23257 2013-07-30 Jan Hubicka <jh@suse.cz>
23258 Martin Liska <marxin.liska@gmail.com>
23259
23260 * profile.c (compute_value_histograms): Do not ICE when
23261 there is mismatch only on some counters.
23262
23263 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23264
23265 PR rtl-optimization/57637
23266 * function.c (move_insn_for_shrink_wrap): Also check the
23267 GEN set of the LIVE problem for the liveness analysis
23268 if it exists, otherwise give up.
23269
23270 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23271
23272 PR tree-optimization/57993
23273 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23274 replaced statement in the candidate table.
23275 (phi_add_costs): Return infinite cost when the hidden basis does
23276 not dominate all phis on which the candidate is dependent.
23277 (replace_one_candidate): Record replaced statement in the
23278 candidate table.
23279
23280 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23281
23282 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23283 (ashlv2si3): New expander.
23284 (*ashlv2si3_i): New define_insn_and_split.
23285 * predicates.md (float_operation): Allow patterns with three
23286 basic sub-patterns.
23287
23288 PR rtl-optimization/58021
23289 * mode-switching.c (create_pre_exit): Always split off preceding
23290 insns if we are not at the basic block head.
23291
23292 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23293
23294 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23295 (UCLIBC_DYNAMIC_LINKER): New macro.
23296 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23297 `-mnan=2008'.
23298 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23299 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23300 `-mnan=2008'.
23301 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23302 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23303 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23304 for SF and DF modes. Use ieee_quad_format for TF mode.
23305 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23306 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23307 (mips_option_override): Handle `-mnan=legacy'.
23308 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23309 `-mabs=2008' and `-mnan=2008'.
23310 (OPTION_DEFAULT_SPECS): Add "nan" default.
23311 (ASM_SPEC): Handle `-mnan='.
23312 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23313 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23314 comment accordingly.
23315 (neg<mode>2): Likewise.
23316 * config/mips/mips.opt (mabs, mnan): New options.
23317 * doc/install.texi (Configuration): Document `--with-nan=' option.
23318 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23319 `-mnan=' options.
23320 (MIPS Options): Document them.
23321 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23322 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23323 * configure: Regenerate.
23324 * config.in: Regenerate.
23325
23326 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23327
23328 * config/i386/i386.md (float post-reload splitters): Do not check
23329 for subregs of SSE registers.
23330
23331 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23332 H.J. Lu <hongjiu.lu@intel.com>
23333
23334 PR target/57954
23335 PR target/57988
23336 * config/i386/i386.md (post-reload splitter
23337 to avoid partial SSE reg dependency stalls): New pattern.
23338
23339 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23340
23341 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23342
23343 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23344
23345 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23346 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23347
23348 2013-07-26 Cary Coutant <ccoutant@google.com>
23349
23350 * dwarf2out.c (die_checksum_ordered): Don't include template
23351 instantiations in signature.
23352 (is_template_parameter): New function.
23353 (is_template_instantiation): New function.
23354 (generate_skeleton_bottom_up): Don't include template instantiations
23355 in type unit DIE.
23356 (generate_skeleton): Likewise.
23357 (break_out_comdat_types): Move recursive call to break out nested
23358 types earlier.
23359 (prune_unused_types_mark_generic_parms_dies): Call
23360 is_template_parameter.
23361
23362 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23363
23364 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23365 uses vector registers.
23366 * config/aarch64/iterators.md: Add attributes rtn and vas.
23367
23368 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23369 Richard Earnshaw <richard.earnshaw@arm.com>
23370
23371 * combine.c (simplify_comparison): Re-canonicalize operands
23372 where appropriate.
23373 * config/arm/arm.md (movcond_addsi): New splitter.
23374
23375 2013-07-25 Sterling Augustine <saugustine@google.com>
23376
23377 * dwarf2out.c (size_of_pubnames): Move code to...
23378 (include_pubname_in_output): ...here. New.
23379 (want_pubnames): Rearrange.
23380 (output_pubnames): Call include_pubname_in_output. Move assertion.
23381
23382 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23383
23384 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23385
23386 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23387
23388 PR target/38836
23389 * doc/extend.texi: Remove obsolete builtins. Fix
23390 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23391
23392 2013-07-25 Jan Hubicka <jh@suse.cz>
23393
23394 * cgraph.c (release_function_body): Break out from ...
23395 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23396 and DECL_ARGUMENTS.
23397 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23398 old_tree in the map.
23399 (create_specialized_node): Update.
23400 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23401 into index.
23402 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23403 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23404 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23405 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23406 DECL_RESULT.
23407
23408 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23409
23410 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23411 addsi3_carryin_alt2_<optab>): Correct output template.
23412
23413 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23414
23415 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23416 Adjust for arm_restrict_it.
23417 Remove trailing whitespace.
23418
23419 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23420
23421 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23422 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23423
23424 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23425
23426 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23427
23428 PR rtl-optimization/57960
23429 * lra-constraints.c (process_alt_operands): Use the right mode
23430 when checking strict_low.
23431
23432 2013-07-25 Jan Hubicka <jh@suse.cz>
23433
23434 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23435 * cgraph.c (cgraph_remove_node): Do not release function body
23436 when in cgraph streaming.
23437 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23438 in other partitions are not considered reachable; fix handling of
23439 clones.
23440
23441 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23442
23443 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23444
23445 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23446
23447 PR target/19599
23448 PR target/57731
23449 PR target/57837
23450 * config/arm/arm.md ("*sibcall_insn): Replace use of
23451 Ss with US. Adjust output for v5 and v4t.
23452 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23453
23454 * config/arm/constraints.md ("Ss"): Rename to US.
23455
23456 2013-07-25 Terry Guo <terry.guo@arm.com>
23457
23458 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23459 shift_add/shift_sub0/shift_sub1 RTXs.
23460
23461 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23462 Anton Blanchard <anton@au1.ibm.com>
23463
23464 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23465 (altivec_vpks<VI_char>ss): Likewise.
23466 (altivec_vpks<VI_char>us): Likewise.
23467 (altivec_vpku<VI_char>us): Likewise.
23468 (altivec_vpku<VI_char>um): Likewise.
23469
23470 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23471
23472 Introduce context class.
23473
23474 * Makefile.in (CONTEXT_H): New.
23475 (OBJS): Add context.o.
23476 (toplev.o): Add CONTEXT_H to dependencies.
23477 (context.o): New.
23478
23479 * toplev.c (general_init): Create the singleton gcc::context instance.
23480
23481 * context.c: New.
23482
23483 * context.h: New.
23484
23485 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23486
23487 PR rtl-optimization/57968
23488 * mode-switching.c (create_pre_exit): Allow instructions that
23489 don't set a return register to need a non-exit mode.
23490
23491 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23492 Anton Blanchard <anton@au1.ibm.com>
23493
23494 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23495 operands to vperm for little endian.
23496 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23497 of lvsl to create the control mask for a vperm for little endian.
23498
23499 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23500 Anton Blanchard <anton@au1.ibm.com>
23501
23502 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23503 two operands for little-endian.
23504
23505 2013-07-23 Steve Ellcey <sellcey@mips.com>
23506
23507 * config/mips/mips.c (mips_case_values_threshold): New.
23508 (TARGET_CASE_VALUES_THRESHOLD): Define.
23509
23510 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23511 Anton Blanchard <anton@au1.ibm.com>
23512
23513 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23514 selection of field for vector splat in little endian mode.
23515
23516 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23517
23518 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23519 expanders to rs6000.md.
23520 (ior<mode>3): Likewise.
23521 (and<mode>3): Likewise.
23522 (one_cmpl<mode>2): Likewise.
23523 (nor<mode>3): Likewise.
23524 (andc<mode>3): Likewise.
23525 (eqv<mode>3): Likewise.
23526 (nand<mode>3): Likewise.
23527 (orc<mode>3): Likewise.
23528
23529 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23530 declaration.
23531
23532 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23533 to split multi-word logical operations.
23534 (rs6000_split_logical_di): Likewise.
23535 (rs6000_split_logical): Likewise.
23536
23537 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23538 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23539 and allow TImode operations in 32-bit.
23540 (vsx_and<mode>3_64bit): Likewise.
23541 (vsx_ior<mode>3_32bit): Likewise.
23542 (vsx_ior<mode>3_64bit): Likewise.
23543 (vsx_xor<mode>3_32bit): Likewise.
23544 (vsx_xor<mode>3_64bit): Likewise.
23545 (vsx_one_cmpl<mode>2_32bit): Likewise.
23546 (vsx_one_cmpl<mode>2_64bit): Likewise.
23547 (vsx_nor<mode>3_32bit): Likewise.
23548 (vsx_nor<mode>3_64bit): Likewise.
23549 (vsx_andc<mode>3_32bit): Likewise.
23550 (vsx_andc<mode>3_64bit): Likewise.
23551 (vsx_eqv<mode>3_32bit): Likewise.
23552 (vsx_eqv<mode>3_64bit): Likewise.
23553 (vsx_nand<mode>3_32bit): Likewise.
23554 (vsx_nand<mode>3_64bit): Likewise.
23555 (vsx_orc<mode>3_32bit): Likewise.
23556 (vsx_orc<mode>3_64bit): Likewise.
23557
23558 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23559 logical types in GPRs.
23560
23561 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23562 logical insns to rs6000.md, and allow TImode operations in
23563 32-bit.
23564 (altivec_ior<mode>3): Likewise.
23565 (altivec_xor<mode>3): Likewise.
23566 (altivec_one_cmpl<mode>2): Likewise.
23567 (altivec_nor<mode>3): Likewise.
23568 (altivec_andc<mode>3): Likewise.
23569
23570 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23571 attributes for moving the 128-bit logical operations into
23572 rs6000.md.
23573 (BOOL_REGS_OUTPUT): Likewise.
23574 (BOOL_REGS_OP1): Likewise.
23575 (BOOL_REGS_OP2): Likewise.
23576 (BOOL_REGS_UNARY): Likewise.
23577 (BOOL_REGS_AND_CR0): Likewise.
23578 (one_cmpl<mode>2): Add support for DI logical operations on
23579 32-bit, splitting the operations to 32-bit.
23580 (anddi3): Likewise.
23581 (iordi3): Likewise.
23582 (xordi3): Likewise.
23583 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23584 changes to combine the 32/64-bit code, allow logical operations on
23585 TI mode in 32-bit, and to use similar match_operator patterns like
23586 scalar mode uses. Combine the Altivec and VSX code for logical
23587 operations, and move it here.
23588 (ior<mode>3, 128-bit types): Likewise.
23589 (xor<mode>3, 128-bit types): Likewise.
23590 (one_cmpl<mode>3, 128-bit types): Likewise.
23591 (nor<mode>3, 128-bit types): Likewise.
23592 (andc<mode>3, 128-bit types): Likewise.
23593 (eqv<mode>3, 128-bit types): Likewise.
23594 (nand<mode>3, 128-bit types): Likewise.
23595 (orc<mode>3, 128-bit types): Likewise.
23596 (and<mode>3_internal): Likewise.
23597 (bool<mode>3_internal): Likewise.
23598 (boolc<mode>3_internal1): Likewise.
23599 (boolc<mode>3_internal2): Likewise.
23600 (boolcc<mode>3_internal1): Likewise.
23601 (boolcc<mode>3_internal2): Likewise.
23602 (eqv<mode>3_internal1): Likewise.
23603 (eqv<mode>3_internal2): Likewise.
23604 (one_cmpl1<mode>3_internal): Likewise.
23605
23606 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23607
23608 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23609 Rename flag_stack_usage to flag_stack_usage_info.
23610
23611 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23612
23613 * config/microblaze/sync.md: New file.
23614 * config/microblaze/microblaze.md: Include sync.md
23615 * config/microblaze/microblaze.c: Add print_operand 'y'.
23616 * config/microblaze/constraints.md: Add memory_contraint
23617 'Q' which is a single register.
23618
23619 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23620
23621 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23622
23623 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23624
23625 * reload.c (find_reloads): Exit loop once we find this operand
23626 cannot be reloaded somehow for this alternative.
23627
23628 * reload.c (find_reloads): Exit loop once we find a hard register.
23629
23630 * rtlanal.c (computed_jump_p): Exit loop once we find label
23631 reference is used.
23632
23633 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23634
23635 * cfgloopmanip.c (remove_path): Exit loop after setting
23636 irred_invalidated.
23637
23638 * gensupport.c (subst_dup): Avoid loop if code is not
23639 MATCH_DUP nor MATCH_OP_DUP.
23640
23641 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23642
23643 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23644
23645 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23646
23647 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23648 true for SP_REGNUM if mode == ptr_mode.
23649 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23650 with value R0_REGNUM + 31.
23651
23652 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23653
23654 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23655 pad pointer-typed argument downward.
23656
23657 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23658
23659 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23660 and __ILP32__ when the ILP32 model is in use.
23661
23662 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23663
23664 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23665 (aarch64_load_symref_appropriately): In the case of
23666 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23667 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23668 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23669 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23670 if 'mode' doesn't equal to 'ptr_mode'.
23671 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23672 'vcall_offset'; change to call aarch64_emit_move differently depending
23673 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23674 to calculate the upper bound of 'vcall_offset'.
23675 (aarch64_cannot_force_const_mem): Change to also return true if
23676 mode != ptr_mode.
23677 (aarch64_legitimize_reload_address): In the case of large
23678 displacements, add new local variable 'xmode' and an assertion
23679 based on it; change to use 'xmode' to generate the new rtx and
23680 reload.
23681 (aarch64_asm_trampoline_template): Change to generate the template
23682 differently depending on TARGET_ILP32 or not; change to use
23683 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23684 (aarch64_trampoline_size): Removed.
23685 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23686 and replace immediate literals with it. Change to use 'ptr_mode'
23687 instead of 'DImode' and call convert_memory_address if the mode
23688 of 'fnaddr' doesn't equal to 'ptr_mode'.
23689 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23690 to output symbol.
23691 (aarch64_elf_asm_destructor): Likewise.
23692 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23693 on TARGET_ILP32 instead of aarch64_trampoline_size.
23694 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23695 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23696 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23697 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23698 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23699 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23700 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23701 depending on the value of 'mode'.
23702 (add_losym_<mode>): New.
23703 (ldr_got_small_<mode>): New, based on ldr_got_small.
23704 (ldr_got_small): Remove.
23705 (ldr_got_small_sidi): New.
23706 * config/aarch64/iterators.md (P): New.
23707 (PTR): Change to 'ptr_mode' in the condition.
23708
23709 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23710
23711 * config.gcc (aarch64*-*-*): Support --with-abi.
23712 (aarch64*-*-elf): Support --with-multilib-list.
23713 (aarch64*-*-linux*): Likewise.
23714 (supported_defaults): Add abi to aarch64*-*-*.
23715 * configure.ac: Mention AArch64 for --with-multilib-list.
23716 * configure: Re-generated.
23717 * config/aarch64/biarchilp32.h: New file.
23718 * config/aarch64/biarchlp64.h: New file.
23719 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23720 (ABI_SPEC): Ditto.
23721 (MULTILIB_DEFAULTS): Ditto.
23722 (DRIVER_SELF_SPECS): Ditto.
23723 (ASM_SPEC): Update to also substitute -mabi.
23724 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23725 file whose name depends on -mabi= and -mbig-endian.
23726 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23727 TARGET_ILP32.
23728 (POINTER_SIZE): New define.
23729 (POINTERS_EXTEND_UNSIGNED): Ditto.
23730 (enum aarch64_abi_type): New enumeration tag.
23731 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23732 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23733 (TARGET_ILP32): New define.
23734 * config/aarch64/aarch64.opt (mabi): New.
23735 (aarch64_abi): New.
23736 (ilp32, lp64): New values for -mabi.
23737 * config/aarch64/t-aarch64 (comma): New define.
23738 (MULTILIB_OPTIONS): Ditto.
23739 (MULTILIB_DIRNAMES): Ditto.
23740 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23741 * doc/invoke.texi: Document -mabi for AArch64.
23742
23743 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23744
23745 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23746
23747 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23748 Anton Blanchard <anton@au1.ibm.com>
23749
23750 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23751 endianness when selecting field to splat.
23752
23753 2013-07-22 Eric Christopher <echristo@gmail.com>
23754
23755 * dwarf2out.c (die_odr_checksum): New function to use
23756 CHECKSUM_ macros and ULEB128 for DIE tag.
23757 (generate_type_signature): Use.
23758
23759 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23760
23761 * config.gcc (sparc*-*-*): Accept leon3 processor.
23762 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23763 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23764 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23765 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23766 (mfix-ut699): Adjust comment.
23767 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23768 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23769 (CPP_CPU_SPEC): Likewise.
23770 (ASM_CPU_SPEC): Likewise.
23771 * config/sparc/sparc.c (leon3_cost): New constant.
23772 (sparc_option_override): Add leon3 support.
23773 (mem_ref): New function.
23774 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23775 (sparc_do_work_around_errata): Look into the instruction in the delay
23776 slot and adjust accordingly. Add fix for the data cache nullify issues
23777 of the UT699. Change insertion position for the NOP.
23778 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23779 (leon3_load): New reservation.
23780 (leon_store): Bump latency to 2.
23781 (grfpu): New automaton.
23782 (grfpu_alu): New unit.
23783 (grfpu_ds): Likewise.
23784 (leon_fp_alu): Adjust.
23785 (leon_fp_mult): Delete.
23786 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23787 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23788 * config/sparc/sparc.md (cpu): Add leon3.
23789 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23790 (swapsi): Likewise.
23791 (atomic_test_and_set): Likewise.
23792 (ldstub): Likewise.
23793
23794 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23795
23796 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23797 default for R5900 targets.
23798 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23799 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23800 * config/mips/mips.c (mips_option_override): Report an error for
23801 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23802 for -march=r5900 -mhard-float.
23803
23804 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23805
23806 * df-problems.c (can_move_insns_across): Exit loop once we
23807 find a non-fixed, non-global register.
23808
23809 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23810 setting can_throw.
23811
23812 * omega.c (omega_eliminate_red): Break after setting red_found.
23813 (omega_problem_has_red_equations): Similarly after setting found.
23814 (omega_query_variable): Similarly after setting coupled.
23815
23816 2013-07-22 Marek Polacek <polacek@redhat.com>
23817
23818 * gimplify.c: Don't include gimple.h twice.
23819
23820 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23821
23822 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23823 instead of TARGET_THUMB1.
23824 (Pz): New constraint.
23825 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23826 encodings.
23827 (compare_negsi_si): Likewise.
23828 (compare_addsi2_op0): Likewise.
23829 (compare_addsi2_op1): Likewise.
23830 (addsi3_carryin_<optab>): Likewise.
23831 (addsi3_carryin_alt2_<optab>): Likewise.
23832 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23833 for arm_restrict_it.
23834 (subsi3_carryin): Likewise.
23835 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23836 (minmax_arithsi): Disable for arm_restrict_it.
23837 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23838 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23839 (satsi_<SAT:code>_shift): Likewise.
23840 (arm_shiftsi3): Add alternative for 16-bit encoding.
23841 (arm32_movhf): Disable for arm_restrict_it.
23842 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23843 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23844
23845 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23846
23847 * config/arm/arm.md (attribute "insn"): Delete.
23848 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23849 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23850 (not_shiftsi): Update for attribute change.
23851 (not_shiftsi_compare0): Likewise.
23852 (not_shiftsi_compare0_scratch): Likewise.
23853 (arm_one_cmplsi2): Likewise.
23854 (thumb1_one_cmplsi2): Likewise.
23855 (notsi_compare0): Likewise.
23856 (notsi_compare0_scratch): Likewise.
23857 (thumb1_movdi_insn): Likewise.
23858 (arm_movsi_insn): Likewise.
23859 (movhi_insn_arch4): Likewise.
23860 (movhi_bytes): Likewise.
23861 (arm_movqi_insn): Likewise.
23862 (thumb1_movqi_insn): Likewise.
23863 (arm32_movhf): Likewise.
23864 (thumb1_movhf): Likewise.
23865 (arm_movsf_soft_insn): Likewise.
23866 (thumb1_movsf_insn): Likewise.
23867 (thumb_movdf_insn): Likewise.
23868 (movsicc_insn): Likewise.
23869 (movsfcc_soft_insn): Likewise.
23870 (and_scc): Likewise.
23871 (cond_move): Likewise.
23872 (if_move_not): Likewise.
23873 (if_not_move): Likewise.
23874 (if_shift_move): Likewise.
23875 (if_move_shift): Likewise.
23876 (if_shift_shift): Likewise.
23877 (if_not_arith): Likewise.
23878 (if_arith_not): Likewise.
23879 (cond_move_not): Likewise.
23880 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23881 (neon_mov<mode>): Likewise.
23882 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23883 (thumb2_movsi_vfp): Likewise.
23884 (movsf_vfp): Likewise.
23885 (thumb2_movsf_vfp): Likewise.
23886 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23887 change.
23888 (cortexa7_older_only): Likewise.
23889 (cortexa7_younger): Likewise.
23890 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23891 (1020alu_shift_op): Likewise.
23892 (1020alu_shift_reg_op): Likewise.
23893 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23894 (alu_shift_op): Likewise.
23895 (alu_shift_reg_op): Likewise.
23896 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23897 (11_alu_shift_op): Likewise.
23898 (11_alu_shift_reg_op): Likewise.
23899 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23900 (9_alu_shift_reg_op): Likewise.
23901 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23902 change.
23903 (cortex_a15_alu_shift): Likewise.
23904 (cortex_a15_alu_shift_reg): Likewise.
23905 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23906 (cortex_a5_alu_shift): Likewise.
23907 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23908 change.
23909 (cortex_a53_alu_shift): Likewise.
23910 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23911 change.
23912 (cortex_a7_alu_reg): Likewise.
23913 (cortex_a7_alu_shift): Likewise.
23914 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23915 (cortex_a8_alu_shift): Likewise.
23916 (cortex_a8_alu_shift_reg): Likewise.
23917 (cortex_a8_mov): Likewise.
23918 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23919 (cortex_a9_dp_shift): Likewise.
23920 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23921 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23922 (cortex_r4_mov): Likewise.
23923 (cortex_r4_alu_shift): Likewise.
23924 (cortex_r4_alu_shift_reg): Likewise.
23925 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23926 (526_alu_shift_op): Likewise.
23927 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23928 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23929 (626te_alu_shift_op): Likewise.
23930 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23931 (726te_alu_op): Likewise.
23932 (726te_alu_shift_op): Likewise.
23933 (726te_alu_shift_reg_op): Likewise.
23934 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23935 (mp626_alu_shift_op): Likewise.
23936 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23937 (pj4_alu_e1_conds): Likewise.
23938 (pj4_alu): Likewise.
23939 (pj4_alu_conds): Likewise.
23940 (pj4_shift): Likewise.
23941 (pj4_shift_conds): Likewise.
23942 (pj4_alu_shift): Likewise.
23943 (pj4_alu_shift_conds): Likewise.
23944
23945 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23946
23947 * config/arm/predicates.md (shiftable_operator_strict_it):
23948 New predicate.
23949 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23950 Disable cond_exec version for arm_restrict_it.
23951 (thumb2_smaxsi3): Convert to generate cond_exec.
23952 (thumb2_sminsi3): Likewise.
23953 (thumb32_umaxsi3): Likewise.
23954 (thumb2_uminsi3): Likewise.
23955 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23956 (thumb2_neg_abssi2): Likewise.
23957 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23958 (thumb2_movsicc_insn): Adjust alternatives.
23959 (thumb2_mov_negscc): Disable for arm_restrict_it.
23960 (thumb2_mov_negscc_strict_it): New pattern.
23961 (thumb2_mov_notscc_strict_it): New pattern.
23962 (thumb2_mov_notscc): Disable for arm_restrict_it.
23963 (thumb2_ior_scc): Likewise.
23964 (thumb2_ior_scc_strict_it): New pattern.
23965 (thumb2_cond_move): Adjust for arm_restrict_it.
23966 (thumb2_cond_arith): Disable for arm_restrict_it.
23967 (thumb2_cond_arith_strict_it): New pattern.
23968 (thumb2_cond_sub): Adjust for arm_restrict_it.
23969 (thumb2_movcond): Likewise.
23970 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
23971 (thumb2_zero_extendhisi2_v6): Likewise.
23972 (thumb2_zero_extendqisi2_v6): Likewise.
23973 (orsi_notsi_si): Likewise.
23974 (orsi_not_shiftsi_si): Likewise.
23975
23976 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
23977
23978 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
23979 instruction sequence is 1 byte shorter.
23980
23981 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
23982
23983 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
23984 it is not needed after split.
23985
23986 2013-07-20 Iain Sandoe <iain@codesourcery.com>
23987
23988 PR target/51784
23989 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
23990 second label for nonlocal goto receivers. Don't output pic base labels
23991 unless we're producing PIC; mark that action unreachable().
23992 (ix86_save_reg): If the function contains a nonlocal label, save the
23993 PIC base reg.
23994 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
23995 * config/darwin.c (emitted_pic_label_num): New GTY.
23996 (update_pic_label_number_if_needed): New.
23997 (machopic_output_function_base_name): Adjust for nonlocal receiver
23998 case.
23999 (machopic_should_output_picbase_label): New.
24000 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24001 (nonlocal_goto_receiver): New insn and split.
24002
24003 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24004
24005 * config/aarch64/aarch64-builtins.c
24006 (aarch64_fold_builtin): Fold abs in all modes.
24007 * config/aarch64/aarch64-simd-builtins.def
24008 (abs): Enable for all modes.
24009 * config/aarch64/arm_neon.h
24010 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24011 (vabs_f64): Add missing intrinsic.
24012
24013 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24014
24015 * config/aarch64/arm_neon.h (vabs_s64): New function
24016
24017 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24018
24019 PR target/57516
24020 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24021 * config/avr/avr.md (adjust_len): Add `round'.
24022 * config/avr/avr-protos.h (avr_out_round): New prototype.
24023 (avr_out_plus): Add `out_label' argument.
24024 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24025 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24026 Handle the case where `insn' is just a pattern.
24027 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24028 (avr_out_round): New function.
24029 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24030
24031 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24032
24033 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24034 Add check for flag_stack_usage to handle -fstack-usage support
24035
24036 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24037
24038 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24039 interaction for new Power8 flags and VSX.
24040
24041 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24042
24043 PR middle-end/57698
24044 * tree-inline.c (expand_call_inline): Emit errors during
24045 early_inlining only if optimization is not turned on.
24046
24047 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24048
24049 * passes.def: New.
24050
24051 * passes.c (init_optimization_passes): Move the construction of
24052 the pass hierarchy into a new passes.def file.
24053
24054 * Makefile.in (passes.o): Add dependency on passes.def.
24055
24056 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24057
24058 * passes.c (init_optimization_passes): Introduce macros for
24059 constructing the tree of passes (INSERT_PASSES_AFTER,
24060 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24061 TERMINATE_PASS_LIST).
24062
24063 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24064 Wei Mi <wmi@google.com>
24065
24066 PR rtl-optimization/57878
24067 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24068 top.
24069 (reload_pseudo_compare_func): Check nregs first for reload
24070 pseudos.
24071
24072 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24073
24074 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24075
24076 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24077
24078 * read-rtl.c (validate_const_int): Once an invalid character is
24079 seen, quit the loop.
24080
24081 * gengtype.c (write_roots): Similarly once we find the "deletable"
24082 or "if_marked" option.
24083
24084 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24085
24086 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24087 "xtab" and "sat". Move value "clz" from here to ...
24088 (attriubte "type"): ... here.
24089 (satsi_<SAT:code>): Delete "insn" attribute.
24090 (satsi_<SAT:code>_shift): Likewise.
24091 (arm_zero_extendqisi2addsi): Likewise.
24092 (arm_extendqisi2addsi): Likewise.
24093 (clzsi2): Update for attribute changes.
24094 (rbitsi2): Likewise.
24095 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24096 attribute.
24097 (arm_usatsihi): Likewise.
24098 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24099
24100 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24101
24102 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24103 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24104 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24105 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24106 in alphabetical order.
24107 (attribute "core_cycles"): Update for attribute changes.
24108 (arm_addsi3): Likewise.
24109 (addsi3_compare0): Likewise.
24110 (addsi3_compare0_scratch): Likewise.
24111 (addsi3_compare_op1): Likewise.
24112 (addsi3_compare_op2): Likewise.
24113 (compare_addsi2_op0): Likewise.
24114 (compare_addsi2_op1): Likewise.
24115 (addsi3_carryin_shift_<optab>): Likewise.
24116 (subsi3_carryin_shift): Likewise.
24117 (rsbsi3_carryin_shift): Likewise.
24118 (arm_subsi3_insn): Likewise.
24119 (subsi3_compare0): Likewise.
24120 (subsi3_compare): Likewise.
24121 (arm_andsi3_insn): Likewise.
24122 (thumb1_andsi3_insn): Likewise.
24123 (andsi3_compare0): Likewise.
24124 (andsi3_compare0_scratch): Likewise.
24125 (zeroextractsi_compare0_scratch
24126 (andsi_not_shiftsi_si): Likewise.
24127 (iorsi3_insn): Likewise.
24128 (iorsi3_compare0): Likewise.
24129 (iorsi3_compare0_scratch): Likewise.
24130 (arm_xorsi3): Likewise.
24131 (thumb1_xorsi3_insn): Likewise.
24132 (xorsi3_compare0): Likewise.
24133 (xorsi3_compare0_scratch): Likewise.
24134 (satsi_<SAT:code>_shift): Likewise.
24135 (rrx): Likewise.
24136 (arm_shiftsi3): Likewise.
24137 (shiftsi3_compare0): Likewise.
24138 (not_shiftsi): Likewise.
24139 (not_shiftsi_compare0): Likewise.
24140 (not_shiftsi_compare0_scratch): Likewise.
24141 (arm_one_cmplsi2): Likewise.
24142 (thumb_one_complsi2): Likewise.
24143 (notsi_compare0): Likewise.
24144 (notsi_compare0_scratch): Likewise.
24145 (thumb1_zero_extendhisi2): Likewise.
24146 (arm_zero_extendhisi2): Likewise.
24147 (arm_zero_extendhisi2_v6): Likewise.
24148 (arm_zero_extendhisi2addsi): Likewise.
24149 (thumb1_zero_extendqisi2): Likewise.
24150 (thumb1_zero_extendqisi2_v6): Likewise.
24151 (arm_zero_extendqisi2): Likewise.
24152 (arm_zero_extendqisi2_v6): Likewise.
24153 (arm_zero_extendqisi2addsi): Likewise.
24154 (thumb1_extendhisi2): Likewise.
24155 (arm_extendhisi2): Likewise.
24156 (arm_extendhisi2_v6): Likewise.
24157 (arm_extendqisi): Likewise.
24158 (arm_extendqisi_v6): Likewise.
24159 (arm_extendqisi2addsi): Likewise.
24160 (thumb1_extendqisi2): Likewise.
24161 (thumb1_movdi_insn): Likewise.
24162 (arm_movsi_insn): Likewise.
24163 (movsi_compare0): Likewise.
24164 (movhi_insn_arch4): Likewise.
24165 (movhi_bytes): Likewise.
24166 (arm_movqi_insn): Likewise.
24167 (thumb1_movqi_insn): Likewise.
24168 (arm32_movhf): Likewise.
24169 (thumb1_movhf): Likewise.
24170 (arm_movsf_soft_insn): Likewise.
24171 (thumb1_movsf_insn): Likewise.
24172 (movdf_soft_insn): Likewise.
24173 (thumb_movdf_insn): Likewise.
24174 (arm_cmpsi_insn): Likewise.
24175 (cmpsi_shiftsi): Likewise.
24176 (cmpsi_shiftsi_swp): Likewise.
24177 (arm_cmpsi_negshiftsi_si): Likewise.
24178 (movsicc_insn): Likewise.
24179 (movsfcc_soft_insn): Likewise.
24180 (arith_shiftsi): Likewise.
24181 (arith_shiftsi_compare0
24182 (arith_shiftsi_compare0_scratch
24183 (sub_shiftsi): Likewise.
24184 (sub_shiftsi_compare0
24185 (sub_shiftsi_compare0_scratch
24186 (and_scc): Likewise.
24187 (cond_move): Likewise.
24188 (if_plus_move): Likewise.
24189 (if_move_plus): Likewise.
24190 (if_move_not): Likewise.
24191 (if_not_move): Likewise.
24192 (if_shift_move): Likewise.
24193 (if_move_shift): Likewise.
24194 (if_shift_shift): Likewise.
24195 (if_not_arith): Likewise.
24196 (if_arith_not): Likewise.
24197 (cond_move_not): Likewise.
24198 (thumb1_ashlsi3): Set type attribute.
24199 (thumb1_ashrsi3): Likewise.
24200 (thumb1_lshrsi3): Likewise.
24201 (thumb1_rotrsi3): Likewise.
24202 (shiftsi3_compare0_scratch): Likewise.
24203 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24204 (neon_mov<mode>): Likewise.
24205 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24206 attribute changes.
24207 (thumb2_movsi_insn): Likewise.
24208 (thumb2_cmpsi_neg_shiftsi): Likewise.
24209 (thumb2_extendqisi_v6): Likewise.
24210 (thumb2_zero_extendhisi2_v6): Likewise.
24211 (thumb2_zero_extendqisi2_v6): Likewise.
24212 (thumb2_shiftsi3_short): Likewise.
24213 (thumb2_addsi3_compare0_scratch): Likewise.
24214 (orsi_not_shiftsi_si): Likewise.
24215 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24216 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24217 changes.
24218 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24219 (1020alu_shift_op): Likewise.
24220 (1020alu_shift_reg_op): Likewise.
24221 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24222 (alu_shift_op): Likewise.
24223 (alu_shift_reg_op): Likewise.
24224 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24225 (11_alu_shift_op): Likewise.
24226 (11_alu_shift_reg_op): Likewise.
24227 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24228 (9_alu_shift_reg_op): Likewise.
24229 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24230 changes.
24231 (cortex_a15_alu_shift): Likewise.
24232 (cortex_a15_alu_shift_reg): Likewise.
24233 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24234 changes.
24235 (cortex_a5_alu_shift): Likewise.
24236 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24237 changes.
24238 (cortex_a53_alu_shift): Likewise.
24239 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24240 changes.
24241 (cortex_a7_alu_reg): Likewise.
24242 (cortex_a7_alu_shift): Likewise.
24243 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24244 changes.
24245 (cortex_a8_alu_shift): Likewise.
24246 (cortex_a8_alu_shift_reg): Likewise.
24247 (cortex_a8_mov): Likewise.
24248 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24249 (cortex_a9_dp_shift): Likewise.
24250 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24251 changes.
24252 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24253 changes.
24254 (cortex_r4_mov): Likewise.
24255 (cortex_r4_alu_shift): Likewise.
24256 (cortex_r4_alu_shift_reg): Likewise.
24257 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24258 (526_alu_shift_op): Likewise.
24259 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24260 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24261 (626te_alu_shift_op): Likewise.
24262 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24263 (726te_alu_op): Likewise.
24264 (726te_alu_shift_op): Likewise.
24265 (726te_alu_shift_reg_op): Likewise.
24266 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24267 (mp626_alu_shift_op): Likewise.
24268 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24269 (pj4_alu_e1_conds): Likewise.
24270 (pj4_alu): Likewise.
24271 (pj4_alu_conds): Likewise.
24272 (pj4_shift): Likewise.
24273 (pj4_shift_conds): Likewise.
24274 (pj4_alu_shift): Likewise.
24275 (pj4_alu_shift_conds): Likewise.
24276 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24277 changes.
24278 (cortexa7_older_only): Likewise.
24279 (cortexa7_younger): Likewise.
24280
24281 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24282
24283 * ipa-pure-const.c (generate_summary): Rename to...
24284 (pure_const_generate_summary): ... this.
24285
24286 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24287
24288 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24289
24290 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24291
24292 PR target/57909
24293 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24294 usage in HI mode.
24295
24296 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24297
24298 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24299 enabled without -march=zEC12.
24300 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24301 flags to be set.
24302
24303 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24304
24305 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24306 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24307 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24308 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24309 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24310 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24311 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24312 ISA_HAS_FP4.
24313 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24314 and ISA_HAS_NMADD3_NMSUB3.
24315 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24316 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24317 (nmsub4<mode>, nmsub3<mode>): Likewise.
24318 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24319
24320 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24321
24322 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24323 TARGET_MIPS5400 checking.
24324
24325 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24326 Peter Bergner <bergner@vnet.ibm.com>
24327
24328 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24329 registers in the comment.
24330 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24331 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24332 rather than FIRST_PSEUDO_REGISTERS.
24333
24334 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24335
24336 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24337 enable extra ISA flags with TARGET_HTM.
24338
24339 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24340
24341 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24342 Fix comment typos.
24343
24344 2013-07-15 Cong Hou <congh@google.com>
24345
24346 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24347 in compare function for sorting.
24348
24349 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24350
24351 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24352 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24353 * config/rs6000/rs6000.opt: Add -mhtm option.
24354 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24355 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24356 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24357 __HTM__ if the HTM instructions are available.
24358 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24359 htm_spr_reg_operand): New define_predicates.
24360 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24361 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24362 Include htm.md.
24363 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24364 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24365 HTM builtin functions.
24366 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24367 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24368 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24369 (rs6000_builtin_mask_calculate): Likewise.
24370 (rs6000_option_override_internal): Likewise.
24371 (bdesc_htm): Add new HTM builtin support.
24372 (htm_spr_num): New function.
24373 (htm_spr_regno): Likewise.
24374 (rs6000_htm_spr_icode): Likewise.
24375 (htm_expand_builtin): Likewise.
24376 (htm_init_builtins): Likewise.
24377 (rs6000_expand_builtin): Add support for HTM builtin functions.
24378 (rs6000_init_builtins): Likewise.
24379 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24380 option.
24381 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24382 (TARGET_HTM, MASK_HTM): Define macros.
24383 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24384 (FIXED_REGISTERS): Likewise.
24385 (CALL_USED_REGISTERS): Likewise.
24386 (CALL_REALLY_USED_REGISTERS): Likewise.
24387 (REG_ALLOC_ORDER): Likewise.
24388 (enum reg_class): Likewise.
24389 (REG_CLASS_NAMES): Likewise.
24390 (REG_CLASS_CONTENTS): Likewise.
24391 (REGISTER_NAMES): Likewise.
24392 (ADDITIONAL_REGISTER_NAMES): Likewise.
24393 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24394 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24395 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24396 * config/rs6000/htm.md: New file.
24397 * config/rs6000/htmintrin.h: New file.
24398 * config/rs6000/htmxlintrin.h: New file.
24399
24400 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24401
24402 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24403 Define SYMBOL_TINY_GOT, update comment.
24404 * config/aarch64/aarch64.c
24405 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24406 (aarch64_expand_mov_immediate): Likewise.
24407 (aarch64_print_operand): Likewise.
24408 (aarch64_classify_symbol): Likewise.
24409 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24410 (ldr_got_tiny): Define.
24411
24412 2013-07-13 Tobias Grosser <tobias@grosser.es>
24413
24414 PR tree-optimization/54094
24415 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24416 scheduling dimension for the parallelism check from the polyhedral
24417 information in the AST.
24418 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24419 in 2D + 1 form.
24420
24421 2013-07-13 Jason Merrill <jason@redhat.com>
24422
24423 * print-tree.c (debug_vec_tree): Use debug_raw.
24424 (debug_raw (vec<tree, va_gc> &)): New.
24425 (debug_raw (vec<tree, va_gc> *)): New.
24426 * tree.h: Declare them.
24427
24428 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24429
24430 * ifcvt.c (ifcvt_after_combine): New static variable.
24431 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24432 for size.
24433 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24434 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24435 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24436
24437 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24438
24439 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24440
24441 2013-07-12 Michael Matz <matz@suse.de>
24442
24443 PR middle-end/55771
24444 * convert.c (convert_to_real): Reject non-float inner types.
24445
24446 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24447
24448 * config/aarch64/aarch64-protos.h
24449 (aarch64_simd_immediate_valid_for_move): Remove.
24450 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24451 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24452 cases.
24453 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24454
24455 2013-07-11 Steve Ellcey <sellcey@mips.com>
24456
24457 * config/mips/mips.c (mips_conditional_register_usage): Do not
24458 use t[0-7] registers in MIPS16 mode when optimizing for size.
24459
24460 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24461
24462 * config/i386/i386.c (dispatch_function_versions): Fix array
24463 indexing of function_version_info to match actual_versions.
24464
24465 2013-07-11 Teresa Johnson <tejohnson@google.com>
24466
24467 * vec.h (struct va_gc): Move release out-of-line.
24468 (va_gc::release): Call ggc_free on released vec.
24469
24470 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24471
24472 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24473 Require GOT register as additional operand in UNSPEC.
24474 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24475 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24476 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24477 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24478 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24479 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24480 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24481
24482 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24483
24484 PR target/57631
24485 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24486 name seen by assembler/linker rather if available.
24487
24488 2013-07-11 Andreas Schwab <schwab@suse.de>
24489
24490 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24491
24492 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24493
24494 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24495
24496 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24497
24498 * doc/tm.texi.in: Move hook documentation to ....
24499 * target.def: ... here.
24500
24501 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24502 text on @hook line.
24503 * doc/tm.texi: Regenerate.
24504
24505 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24506
24507 PR c++/57869
24508 * doc/invoke.texi: Document -Wconditionally-supported.
24509
24510 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24511
24512 PR target/57844
24513 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24514 of my_fp.
24515
24516 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24517
24518 PR target/57506
24519 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24520 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24521 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24522 Remove duplicate devices.
24523 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24524 * config/avr/t-multilib: Regenerate.
24525 * config/avr/avr-tables.opt: Regenerate.
24526 * doc/avr-mmcu.texi: Regenerate.
24527
24528 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24529
24530 PR target/56987
24531 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24532
24533 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24534
24535 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24536 the cost of MULT when optimizing for size.
24537
24538 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24539
24540 * config/cr16/cr16-protos.h: Don't include target.h.
24541
24542 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24543
24544 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24545 adjust register size for TDmode and TFmode for VSX registers.
24546
24547 2013-07-08 Kai Tietz <ktietz@redhat.com>
24548
24549 PR target/56892
24550 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24551 hook_bool_const_tree_true.
24552
24553 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24554
24555 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24556 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24557 * config/s390/s390.md: Define FPR*_REGNUM constants.
24558 Fix FPR2_REGNUM constant (18 -> 17).
24559 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24560 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24561 ("trunc<BFP:mode><DFP_ALL:mode>2")
24562 ("trunc<DFP_ALL:mode><BFP:mode>2")
24563 ("*extend<BFP:mode><DFP_ALL:mode>2")
24564 ("*extend<DFP_ALL:mode><BFP:mode>2")
24565 ("extend<BFP:mode><DFP_ALL:mode>2")
24566 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24567 FPR4_REGNUM.
24568
24569 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24570
24571 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24572
24573 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24574
24575 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24576 and cfun_fpr_bit_p to cfun_fpr_save_p.
24577 (s390_frame_area, s390_register_info, s390_frame_info)
24578 (s390_emit_prologue, s390_emit_epilogue)
24579 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24580 register numbers.
24581 * config/s390/s390.h: Define *_REGNUM macros for floating point
24582 register numbers.
24583
24584 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24585
24586 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24587
24588 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24589
24590 PR rtl-optimization/57786
24591 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24592 and break out of the loop when it is set to false.
24593
24594 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24595
24596 PR target/57819
24597 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24598 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24599 (const_int 63)) 0)).
24600 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24601 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24602 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24603
24604 PR rtl-optimization/57829
24605 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24606 mask bits outside of mode are just sign-extension from mode to HWI.
24607
24608 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24609
24610 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24611 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24612 adjust_address instead of change_address to keep info about alignment.
24613 (emit_strmov): Remove.
24614 (emit_memmov): New function.
24615 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24616 (expand_movmem_epilogue): Likewise and return updated rtx for
24617 destination.
24618 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24619 destination and source.
24620 (decide_alignment): Refactor, handle vector_loop.
24621 (ix86_expand_movmem): Likewise.
24622 (ix86_expand_setmem): Likewise.
24623 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24624
24625 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24626
24627 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24628 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24629
24630 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24631
24632 * config/i386/sse.md (sse_movlhps): Change alternative 3
24633 of operand 2 to "m".
24634
24635 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24636
24637 PR target/57807
24638 * config/i386/sse.md (iptr): New mode attribute.
24639 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24640 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24641 (<sse>_vmmul<mode>3): Ditto.
24642 (<sse>_vmdiv<mode>3): Ditto.
24643 (sse_vmrcpv4sf2): Ditto.
24644 (<sse>_vmsqrt<mode>2): Ditto.
24645 (sse_vmrsqrtv4sf2): Ditto.
24646 (<sse>_vm<code><mode>3): Ditto.
24647 (avx_vmcmp<mode>3): Ditto.
24648 (<sse>_vmmaskcmp<mode>3): Ditto.
24649 (<sse>_comi): Ditto.
24650 (<sse>_ucomi): Ditto.
24651 (*xop_vmfrcz_<mode>): Ditto.
24652 (*fmai_fmadd_<mode>): Ditto.
24653 (*fmai_fmsub_<mode>): Ditto.
24654 (*fmai_fnmadd_<mode>): Ditto.
24655 (*fmai_fnmsub_<mode>): Ditto.
24656 (*fma4i_vmfmadd_<mode>): Ditto.
24657 (*fma4i_vmfmsub_<mode>): Ditto.
24658 (*fma4i_vmfnmadd_<mode>): Ditto.
24659 (*fma4i_vmfnmsub_<mode>): Ditto.
24660 (*xop_vmfrcz_<mode>): Ditto.
24661 (sse_cvtps2pi): Ditto.
24662 (sse_cvttps2pi): Ditto.
24663 (sse_cvtss2si): Ditto.
24664 (sse_cvtss2si_2): Ditto.
24665 (sse_cvtss2siq_2): Ditto.
24666 (sse_cvttss2si): Ditto.
24667 (sse_cvttss2siq): Ditto.
24668 (sse_cvtsd2si): Ditto.
24669 (sse_cvtsd2si_2): Ditto.
24670 (sse_cvtsd2siq_2): Ditto.
24671 (sse_cvttsd2si): Ditto.
24672 (sse_cvttsd2siq): Ditto.
24673 (sse_cvtsd2ss): Ditto.
24674 (sse_cvtss2sd): Ditto.
24675 (avx2_pbroadcast<mode>): Ditto.
24676 (avx2_pbroadcast<mode>_1): Ditto.
24677 (*avx_vperm_broadcast_v4sf): Ditto.
24678
24679 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24680 (sse_movlhps): Ditto.
24681 (sse_storehps): Ditto.
24682 (sse_loadhps): Ditto.
24683 (sse_storelps): Ditto.
24684 (sse_loadlps): Ditto.
24685 (*vec_concatv4sf): Ditto.
24686 (*vec_interleave_highv2df): Ditto.
24687 (*vec_interleave_lowv2df): Ditto.
24688 (*vec_extractv2df_1_sse): Ditto.
24689 (*vec_extractv2df_0_sse): Ditto.
24690 (sse2_storelpd): Ditto.
24691 (sse2_loadlpd): Ditto.
24692 (sse2_movsd): Ditto.
24693 (*vec_concatv4si): Ditto.
24694 (vec_concatv2di): Ditto.
24695
24696 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24697 for Intel asm dialect.
24698 (mmx_punpcklwd): Ditto.
24699 (mmx_punpckldq): Ditto.
24700
24701 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24702 for intel assembler dialect.
24703
24704 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24705
24706 PR target/29776
24707 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24708 for BUILT_IN_C{LZ,LRSB}*.
24709 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24710 * tree-vrp.c (extract_range_basic): Handle
24711 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24712 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24713 fall thru to code calling set_value*.
24714 * builtins.c (expand_builtin): Remove *IMAX cases.
24715 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24716 if width is bigger than 2*HWI.
24717
24718 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24719
24720 PR rtl-optimization/55342
24721 * lra-int.h (lra_subreg_reload_pseudos): New.
24722 * lra.c: Add undoing optional reloads to the block diagram.
24723 (lra_subreg_reload_pseudos): New.
24724 (lra_optional_reload_pseudos): Change comments.
24725 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24726 lra_optional_reload_pseudos after undo transformations.
24727 * lra-assigns.c (pseudo_prefix_title): New.
24728 (lra_setup_reg_renumber): Use it.
24729 (spill_for): Ditto. Check subreg reload pseudos too.
24730 (assign_by_spills): Consider subreg reload pseudos too.
24731 * lra-constraints.c (simplify_operand_subreg): Use
24732 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24733 (curr_insn_transform): Recognize and do optional reloads.
24734 (undo_optional_reloads): New.
24735 (lra_undo_inheritance): Call undo_optional_reloads.
24736
24737 2013-07-05 Thomas Quinot <quinot@adacore.com>
24738
24739 * tree-complex.c (expand_complex_operations_1): Fix typo.
24740
24741 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24742
24743 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24744 (tune_params): New member 'const vec_costs'.
24745 * config/aarch64/aarch64.c (generic_vector_cost): New.
24746 (generic_tunings): New member 'generic_vector_cost'.
24747 (aarch64_builtin_vectorization_cost): New.
24748 (aarch64_add_stmt_cost): New.
24749 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24750 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24751
24752 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24753
24754 PR target/57777
24755 * config/i386/predicates.md (vsib_address_operand): Disallow
24756 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24757
24758 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24759
24760 PR middle-end/55030
24761 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24762 expand_builtin_setjmp_receiver.
24763 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24764 with NULL for the label parameter.
24765 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24766 the frame-pointer. Adjust comments.
24767 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24768 only if LABEL is non-NULL.
24769
24770 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24771
24772 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24773 (ARM_ABI_AAPCS64): Ditto.
24774 (arm_abi): Ditto.
24775 (ARM_DEFAULT_ABI): Ditto.
24776
24777 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24778
24779 * config/aarch64/aarch64-builtins.c
24780 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24781 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24782 (st1): Likewise.
24783 * config/aarch64/aarch64-simd.md
24784 (aarch64_ld1<VALL:mode>): New.
24785 (aarch64_st1<VALL:mode>): Likewise.
24786 * config/aarch64/arm_neon.h
24787 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24788
24789 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24790
24791 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24792 target ISA is AVX.
24793 (ix86_option_override_internal):Turn on all -mavx target flags by
24794 default as they are dependent on AVX anyway.
24795
24796 2013-07-02 Cary Coutant <ccoutant@google.com>
24797
24798 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24799 deterministic hash.
24800 (loc_checksum_ordered): Likewise.
24801 (hash_loc_operands): Remove inline keyword.
24802
24803 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24804
24805 PR tree-optimization/57741
24806 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24807 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24808 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24809 Allow REAL_CST step_exprs if flag_associative_math.
24810 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24811
24812 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24813
24814 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24815
24816 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24817
24818 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24819
24820 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24821
24822 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24823 encoding.
24824 (iorsi3_insn): Likewise.
24825 (arm_xorsi3): Likewise.
24826
24827 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24828
24829 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24830 to ...
24831 (attribute "type"): ... here, and prefix with "wmmx_".
24832 (attribute "core_cycles"): Update for attribute changes.
24833 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24834 (tbcstv4hi): Likewise.
24835 (tbcstv2si): Likewise.
24836 (iwmmxt_iordi3): Likewise.
24837 (iwmmxt_xordi3): Likewise.
24838 (iwmmxt_anddi3): Likewise.
24839 (iwmmxt_nanddi3): Likewise.
24840 (iwmmxt_arm_movdi): Likewise.
24841 (iwmmxt_movsi_insn): Likewise.
24842 (mov<mode>_internal): Likewise.
24843 (and<mode>3_iwmmxt): Likewise.
24844 (ior<mode>3_iwmmxt): Likewise.
24845 (xor<mode>3_iwmmxt): Likewise.
24846 (add<mode>3_iwmmxt): Likewise.
24847 (ssaddv8qi3): Likewise.
24848 (ssaddv4hi3): Likewise.
24849 (ssaddv2si3): Likewise.
24850 (usaddv8qi3): Likewise.
24851 (usaddv4hi3): Likewise.
24852 (usaddv2si3): Likewise.
24853 (sub<mode>3_iwmmxt): Likewise.
24854 (sssubv8qi3): Likewise.
24855 (sssubv4hi3): Likewise.
24856 (sssubv2si3): Likewise.
24857 (ussubv8qi3): Likewise.
24858 (ussubv4hi3): Likewise.
24859 (ussubv2si3): Likewise.
24860 (mulv4hi3_iwmmxt): Likewise.
24861 (smulv4hi3_highpart): Likewise.
24862 (umulv4hi3_highpart): Likewise.
24863 (iwmmxt_wmacs): Likewise.
24864 (iwmmxt_wmacsz): Likewise.
24865 (iwmmxt_wmacu): Likewise.
24866 (iwmmxt_wmacuz): Likewise.
24867 (iwmmxt_clrdi): Likewise.
24868 (iwmmxt_clrv8qi): Likewise.
24869 (iwmmxt_clr4hi): Likewise.
24870 (iwmmxt_clr2si): Likewise.
24871 (iwmmxt_uavgrndv8qi3): Likewise.
24872 (iwmmxt_uavgrndv4hi3): Likewise.
24873 (iwmmxt_uavgv8qi3): Likewise.
24874 (iwmmxt_uavgv4hi3): Likewise.
24875 (iwmmxt_tinsrb): Likewise.
24876 (iwmmxt_tinsrh): Likewise.
24877 (iwmmxt_tinsrw): Likewise.
24878 (iwmmxt_textrmub): Likewise.
24879 (iwmmxt_textrmsb): Likewise.
24880 (iwmmxt_textrmuh): Likewise.
24881 (iwmmxt_textrmsh): Likewise.
24882 (iwmmxt_textrmw): Likewise.
24883 (iwmxxt_wshufh): Likewise.
24884 (eqv8qi3): Likewise.
24885 (eqv4hi3): Likewise.
24886 (eqv2si3): Likewise.
24887 (gtuv8qi3): Likewise.
24888 (gtuv4hi3): Likewise.
24889 (gtuv2si3): Likewise.
24890 (gtv8qi3): Likewise.
24891 (gtv4hi3): Likewise.
24892 (gtv2si3): Likewise.
24893 (smax<mode>3_iwmmxt): Likewise.
24894 (umax<mode>3_iwmmxt): Likewise.
24895 (smin<mode>3_iwmmxt): Likewise.
24896 (umin<mode>3_iwmmxt): Likewise.
24897 (iwmmxt_wpackhss): Likewise.
24898 (iwmmxt_wpackwss): Likewise.
24899 (iwmmxt_wpackdss): Likewise.
24900 (iwmmxt_wpackhus): Likewise.
24901 (iwmmxt_wpackwus): Likewise.
24902 (iwmmxt_wpackdus): Likewise.
24903 (iwmmxt_wunpckihb): Likewise.
24904 (iwmmxt_wunpckihh): Likewise.
24905 (iwmmxt_wunpckihw): Likewise.
24906 (iwmmxt_wunpckilb): Likewise.
24907 (iwmmxt_wunpckilh): Likewise.
24908 (iwmmxt_wunpckilw): Likewise.
24909 (iwmmxt_wunpckehub): Likewise.
24910 (iwmmxt_wunpckehuh): Likewise.
24911 (iwmmxt_wunpckehuw): Likewise.
24912 (iwmmxt_wunpckehsb): Likewise.
24913 (iwmmxt_wunpckehsh): Likewise.
24914 (iwmmxt_wunpckehsw): Likewise.
24915 (iwmmxt_wunpckelub): Likewise.
24916 (iwmmxt_wunpckeluh): Likewise.
24917 (iwmmxt_wunpckeluw): Likewise.
24918 (iwmmxt_wunpckelsb): Likewise.
24919 (iwmmxt_wunpckelsh): Likewise.
24920 (iwmmxt_wunpckelsw): Likewise.
24921 (ror<mode>3): Likewise.
24922 (ashr<mode>3_iwmmxt): Likewise.
24923 (lshr<mode>3_iwmmxt): Likewise.
24924 (ashl<mode>3_iwmmxt): Likewise.
24925 (ror<mode>3_di): Likewise.
24926 (ashr<mode>3_di): Likewise.
24927 (lshr<mode>3_di): Likewise.
24928 (ashl<mode>3_di): Likewise.
24929 (iwmmxt_wmadds): Likewise.
24930 (iwmmxt_wmaddu): Likewise.
24931 (iwmmxt_tmia): Likewise.
24932 (iwmmxt_tmiaph): Likewise.
24933 (iwmmxt_tmiabb): Likewise.
24934 (iwmmxt_tmiatb): Likewise.
24935 (iwmmxt_tmiabt): Likewise.
24936 (iwmmxt_tmiatt): Likewise.
24937 (iwmmxt_tmovmskb): Likewise.
24938 (iwmmxt_tmovmskh): Likewise.
24939 (iwmmxt_tmovmskw): Likewise.
24940 (iwmmxt_waccb): Likewise.
24941 (iwmmxt_wacch): Likewise.
24942 (iwmmxt_waccw): Likewise.
24943 (iwmmxt_waligni): Likewise.
24944 (iwmmxt_walignr): Likewise.
24945 (iwmmxt_walignr0): Likewise.
24946 (iwmmxt_walignr1): Likewise.
24947 (iwmmxt_walignr2): Likewise.
24948 (iwmmxt_walignr3): Likewise.
24949 (iwmmxt_wsadb): Likewise.
24950 (iwmmxt_wsadh): Likewise.
24951 (iwmmxt_wsadbz): Likewise.
24952 (iwmmxt_wsadhz): Likewise.
24953 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24954 (iwmmxt_wabsdiffb): Likewise.
24955 (iwmmxt_wabsdiffh): Likewise.
24956 (iwmmxt_wabsdiffw): Likewise.
24957 (iwmmxt_waddsubhx): Likewise
24958 (iwmmxt_wsubaddhx): Likewise.
24959 (addc<mode>3): Likewise.
24960 (iwmmxt_avg4): Likewise.
24961 (iwmmxt_avg4r): Likewise.
24962 (iwmmxt_wmaddsx): Likewise.
24963 (iwmmxt_wmaddux): Likewise.
24964 (iwmmxt_wmaddsn): Likewise.
24965 (iwmmxt_wmaddun): Likewise.
24966 (iwmmxt_wmulwsm): Likewise.
24967 (iwmmxt_wmulwum): Likewise.
24968 (iwmmxt_wmulsmr): Likewise.
24969 (iwmmxt_wmulumr): Likewise.
24970 (iwmmxt_wmulwsmr): Likewise.
24971 (iwmmxt_wmulwumr): Likewise.
24972 (iwmmxt_wmulwl): Likewise.
24973 (iwmmxt_wqmulm): Likewise.
24974 (iwmmxt_wqmulwm): Likewise.
24975 (iwmmxt_wqmulmr): Likewise.
24976 (iwmmxt_wqmulwmr): Likewise.
24977 (iwmmxt_waddbhusm): Likewise.
24978 (iwmmxt_waddbhusl): Likewise.
24979 (iwmmxt_wqmiabb): Likewise.
24980 (iwmmxt_wqmiabt): Likewise.
24981 (iwmmxt_wqmiatb): Likewise.
24982 (iwmmxt_wqmiatt): Likewise.
24983 (iwmmxt_wqmiabbn): Likewise.
24984 (iwmmxt_wqmiabtn): Likewise.
24985 (iwmmxt_wqmiatbn): Likewise.
24986 (iwmmxt_wqmiattn): Likewise.
24987 (iwmmxt_wmiabb): Likewise.
24988 (iwmmxt_wmiabt): Likewise.
24989 (iwmmxt_wmiatb): Likewise.
24990 (iwmmxt_wmiatt): Likewise.
24991 (iwmmxt_wmiabbn): Likewise.
24992 (iwmmxt_wmiabtn): Likewise.
24993 (iwmmxt_wmiatbn): Likewise.
24994 (iwmmxt_wmiattn): Likewise.
24995 (iwmmxt_wmiawbb): Likewise.
24996 (iwmmxt_wmiawbt): Likewise.
24997 (iwmmxt_wmiawtb): Likewise.
24998 (iwmmxt_wmiawtt): Likewise.
24999 (iwmmxt_wmiawbbn): Likewise.
25000 (iwmmxt_wmiawbtn): Likewise.
25001 (iwmmxt_wmiawtbn): Likewise.
25002 (iwmmxt_wmiawttn): Likewise.
25003 (iwmmxt_wmerge): Likewise.
25004 (iwmmxt_tandc<mode>3): Likewise.
25005 (iwmmxt_torc<mode>3): Likewise.
25006 (iwmmxt_torvsc<mode>3): Likewise.
25007 (iwmmxt_textrc<mode>3): Likewise.
25008 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25009 (wmmxt_pack): Likewise.
25010 (wmmxt_mult_c1): Likewise.
25011 (wmmxt_mult_c2): Likewise.
25012 (wmmxt_alu_c1): Likewise.
25013 (wmmxt_alu_c2): Likewise.
25014 (wmmxt_alu_c3): Likewise.
25015 (wmmxt_transfer_c1): Likewise.
25016 (wmmxt_transfer_c2): Likewise.
25017 (wmmxt_transfer_c3): Likewise.
25018 (marvell_f_iwmmxt_wstr): Likewise.
25019 (marvell_f_iwmmxt_wldr): Likewise.
25020
25021 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25022
25023 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25024
25025 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25026
25027 Revert:
25028 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25029 * lra-constraints.c (need_for_split_p): Check call used hard regs
25030 living through calls.
25031
25032 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25033 call used regs for call insn.
25034
25035 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25036
25037 PR target/57736
25038 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25039 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25040
25041 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25042
25043 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25044
25045 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25046
25047 * lra-constraints.c (need_for_split_p): Check call used hard regs
25048 living through calls.
25049
25050 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25051
25052 PR target/57744
25053 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25054 to tie with any other modes. Eliminate Altivec vector mode tests,
25055 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25056 code, to return 0 if testing MODE2 for a condition, if we've
25057 already tested MODE1 for the same condition.
25058
25059 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25060
25061 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25062 layout.
25063
25064 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25065
25066 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25067 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25068
25069 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25070
25071 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25072 Define.
25073 (aarch64_symbolic_constant_p): Remove.
25074 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25075 static. Fix line length and white space.
25076 (aarch64_symbolic_constant_p): Remove.
25077 * config/aarch64/predicates.md (aarch64_valid_symref):
25078 Use aarch64_classify_symbol_expression.
25079
25080 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25081
25082 * config/arm/constraints.md (Ts): New constraint.
25083 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25084 16-bit encodings.
25085 (compare_scc): Use "Ts" constraint for operand 0.
25086 (ior_scc_scc): Likewise.
25087 (and_scc_scc): Likewise.
25088 (and_scc_scc_nodom): Likewise.
25089 (ior_scc_scc_cmp): Likewise for operand 7.
25090 (and_scc_scc_cmp): Likewise.
25091 * config/arm/thumb2.md (thumb2_movsi_insn):
25092 Add alternatives for 16-bit encodings.
25093 (thumb2_movhi_insn): Likewise.
25094 (thumb2_movsicc_insn): Likewise.
25095 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25096 (thumb2_negscc): Use "Ts" constraint.
25097 Move mvn instruction outside cond_exec block.
25098 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25099 for 16-bit encodings.
25100
25101 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25102
25103 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25104 encoding.
25105 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25106 (mulsi3subsi): Likewise.
25107 (mulsidi3adddi): Likewise.
25108 (mulsidi3_v6): Likewise.
25109 (umulsidi3_v6): Likewise.
25110 (umulsidi3adddi_v6): Likewise.
25111 (smulsi3_highpart_v6): Likewise.
25112 (umulsi3_highpart_v6): Likewise.
25113 (mulhisi3tb): Likewise.
25114 (mulhisi3bt): Likewise.
25115 (mulhisi3tt): Likewise.
25116 (maddhisi4): Likewise.
25117 (maddhisi4tb): Likewise.
25118 (maddhisi4tt): Likewise.
25119 (maddhidi4): Likewise.
25120 (maddhidi4tb): Likewise.
25121 (maddhidi4tt): Likewise.
25122 (zeroextractsi_compare0_scratch): Likewise.
25123 (insv_zero): Likewise.
25124 (insv_t2): Likewise.
25125 (anddi_notzesidi_di): Likewise.
25126 (anddi_notsesidi_di): Likewise.
25127 (andsi_notsi_si): Likewise.
25128 (iordi_zesidi_di): Likewise.
25129 (xordi_zesidi_di): Likewise.
25130 (andsi_iorsi3_notsi): Likewise.
25131 (smax_0): Likewise.
25132 (smax_m1): Likewise.
25133 (smin_0): Likewise.
25134 (not_shiftsi): Likewise.
25135 (unaligned_loadsi): Likewise.
25136 (unaligned_loadhis): Likewise.
25137 (unaligned_loadhiu): Likewise.
25138 (unaligned_storesi): Likewise.
25139 (unaligned_storehi): Likewise.
25140 (extv_reg): Likewise.
25141 (extzv_t2): Likewise.
25142 (divsi3): Likewise.
25143 (udivsi3): Likewise.
25144 (arm_zero_extendhisi2addsi): Likewise.
25145 (arm_zero_extendqisi2addsi): Likewise.
25146 (compareqi_eq0): Likewise.
25147 (arm_extendhisi2_v6): Likewise.
25148 (arm_extendqisi2addsi): Likewise.
25149 (arm_movt): Likewise.
25150 (thumb2_ldrd): Likewise.
25151 (thumb2_ldrd_base): Likewise.
25152 (thumb2_ldrd_base_neg): Likewise.
25153 (thumb2_strd): Likewise.
25154 (thumb2_strd_base): Likewise.
25155 (thumb2_strd_base_neg): Likewise.
25156 (arm_negsi2): Add alternative for 16-bit encoding.
25157 (arm_one_cmplsi2): Likewise.
25158
25159 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25160
25161 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25162 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25163 (movdfcc): Likewise.
25164 * config/arm/vfp.md (*thumb2_movsf_vfp):
25165 Disable predication for arm_restrict_it.
25166 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25167 (*thumb2_movdfcc_vfp): Likewise.
25168 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25169 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25170 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25171 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25172 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25173 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25174 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25175 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25176 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25177 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25178 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25179 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25180 Disable predication for arm_restrict_it.
25181
25182 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25183
25184 * config/i386/bmiintrin.h (_bextr_u32): New.
25185 (_bextr_u64): Ditto.
25186
25187 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25188
25189 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25190 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25191 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25192 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25193 * config/mips/n32-elf.h: ...this new file.
25194
25195 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25196
25197 PR target/57224
25198 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25199 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25200
25201 2013-06-27 Catherine Moore <clm@codesourcery.com>
25202
25203 * config/mips/mips-tables.opt: Regenerate.
25204 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25205 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25206 * doc/invoke.texi: Add -m14kc.
25207
25208 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25209
25210 PR target/57623
25211 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25212 constraints of operand 1 and 2.
25213
25214 PR target/57623
25215 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25216 to match RTL canonicalization. Swap predicates and
25217 constraints of operand 1 and 2.
25218
25219 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25220
25221 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25222 Process OP_INOUT regs for splitting too.
25223
25224 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25225
25226 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25227 decl before the loop, initialize to NULL.
25228 (vectorizable_load): Initialize ptr_incr to NULL.
25229
25230 2013-06-27 Martin Jambor <mjambor@suse.cz>
25231
25232 PR lto/57208
25233 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25234 * ipa-ref.c (ipa_maybe_record_reference): New function.
25235 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25236 * ipa-cp.c (create_specialized_node): Record potential references from
25237 aggvals.
25238 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25239
25240 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25241
25242 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25243 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25244 'mode' to force_reg.
25245 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25246 (aarch64_expand_mov_immediate): Likewise.
25247
25248 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25249
25250 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25251 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25252
25253 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25254
25255 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25256 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25257 (struct machine_function): Add tbegin_p.
25258 (s390_canonicalize_comparison): Fold CC mode compares to
25259 conditional jump if possible.
25260 (s390_emit_jump): Return the emitted jump.
25261 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25262 Handle CCRAWmode compares.
25263 (s390_option_override): Default to -mhtm if available.
25264 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25265 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25266 FPRs instead of df_regs_ever_live_p.
25267 (s390_optimize_nonescaping_tx): New function.
25268 (s390_init_frame_layout): Extend clobbered_regs array to cover
25269 FPRs as well.
25270 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25271 (s390_expand_tbegin): New function.
25272 (enum s390_builtin): New enum definition.
25273 (code_for_builtin): New array definition.
25274 (s390_init_builtins): New function.
25275 (s390_expand_builtin): New function.
25276 (TARGET_INIT_BUILTINS): Define.
25277 (TARGET_EXPAND_BUILTIN): Define.
25278 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25279 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25280 (s390_alc_comparison): Likewise.
25281 * config/s390/s390-modes.def: Add CCRAWmode.
25282 * config/s390/s390.h (processor_flags): Add PF_TX.
25283 (TARGET_CPU_HTM): Define macro.
25284 (TARGET_HTM): Define macro.
25285 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25286 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25287 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25288 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25289 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25290 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25291 ("*cc_to_int"): Move up.
25292 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25293 constants other than 0.
25294 ("*ccraw_to_int"): New insn and splitter definition.
25295 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25296 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25297 ("tx_assist"): New expander.
25298 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25299 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25300 * config/s390/s390.opt: Add -mhtm option.
25301 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25302 * config/s390/htmxlintrin.h: New file.
25303 * config/s390/htmintrin.h: New file.
25304 * config/s390/s390intrin.h: New file.
25305 * doc/extend.texi: Document htm builtins.
25306 * config.gcc: Add the new header files to extra_headers.
25307
25308 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25309
25310 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25311 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25312
25313 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25314 Pat Haugen <pthaugen@us.ibm.com>
25315 Peter Bergner <bergner@vnet.ibm.com>
25316
25317 * config/rs6000/power8.md: New.
25318 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25319 setting for power8 entry.
25320 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25321 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25322 test for Power4/Power5 only.
25323 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25324 support.
25325 (force_new_group): Adjust comment.
25326 * config/rs6000/rs6000.md: Include power8.md.
25327
25328 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25329
25330 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25331 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25332 declaration.
25333 (tune_params): Update comment.
25334 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25335 (arm_max_conditional_execute): New function.
25336 (thumb2_final_prescan_insn): Use max_insn_skipped and
25337 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25338
25339 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25340
25341 PR tree-optimization/57705
25342 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25343 SSA_NAME step, provided that it is not defined inside the loop.
25344 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25345 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25346
25347 2013-06-25 Martin Jambor <mjambor@suse.cz>
25348
25349 PR middle-end/57670
25350 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25351 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25352 calls in the dump.
25353 (ipa_note_param_call): Initialize member_ptr flag.
25354 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25355 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25356 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25357 (ipa_read_indirect_edge_info): Likewise.
25358
25359 2013-06-25 Richard Biener <rguenther@suse.de>
25360
25361 PR middle-end/56977
25362 * passes.c (init_optimization_passes): Move pass_fold_builtins
25363 and pass_dce earlier with -Og.
25364
25365 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25366
25367 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25368 <BIT_FIELD_REF>: Remove trailing TAB.
25369 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25370 remove blank line.
25371
25372 2013-06-24 Martin Jambor <mjambor@suse.cz>
25373
25374 PR tree-optimization/57358
25375 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25376 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25377 (ipa_analyze_params_uses): Generate pessimistic info when true.
25378
25379 2013-06-24 Martin Jambor <mjambor@suse.cz>
25380
25381 PR tree-optimization/57539
25382 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25383 global.inlined_to of the new node to it. All callers changed.
25384 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25385 inlining_into, pass it to cgraph_clone_node.
25386 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25387 ipa_free_edge_args_substructures.
25388 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25389 rdesc linked list. Do not assert rdesc edges have inlined caller.
25390 Assert we have found an rdesc in the rdesc list.
25391
25392 2013-06-24 Richard Biener <rguenther@suse.de>
25393
25394 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25395 (pointer_set_lookup): Declare.
25396 (class pointer_map): New template class implementing a
25397 generic pointer to T map.
25398 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25399 pointer_map<T>::contains, pointer_map<T>::insert,
25400 pointer_map<T>::traverse): New functions.
25401 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25402 (pointer_set_lookup): New function.
25403 (pointer_set_contains): Use pointer_set_lookup.
25404 (pointer_set_insert): Likewise.
25405 (insert_aux): Remove.
25406 (struct pointer_map_t): Embed a pointer_set_t.
25407 (pointer_map_create): Adjust.
25408 (pointer_map_destroy): Likewise.
25409 (pointer_map_contains): Likewise.
25410 (pointer_map_insert): Likewise.
25411 (pointer_map_traverse): Likewise.
25412 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25413 pointer_map<unsigned> instead of a pointer_map_t.
25414 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25415 (streamer_tree_cache_lookup): Likewise.
25416 (streamer_tree_cache_create): Likewise.
25417 (streamer_tree_cache_delete): Likewise.
25418 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25419 pointer_map<unsigned> instead of a pointer_map_t.
25420 (lto_init_tree_ref_encoder): Adjust.
25421 (lto_destroy_tree_ref_encoder): Likewise.
25422 * lto-section-out.c (lto_output_decl_index): Likewise.
25423 (lto_record_function_out_decl_state): Likewise.
25424 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25425
25426 2013-06-24 Richard Biener <rguenther@suse.de>
25427
25428 PR tree-optimization/57488
25429 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25430
25431 2013-06-24 Alan Modra <amodra@gmail.com>
25432
25433 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25434 (gen_easy_altivec_constant): Likewise.
25435 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25436 easy_vector_constant_msb): Likewise.
25437
25438 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25439
25440 PR target/57688
25441 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25442 add missing return true.
25443
25444 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25445
25446 PR target/52483
25447 * config/sh/predicates.md (general_extend_operand): Invoke
25448 general_movsrc_operand for memory operands.
25449 (general_movsrc_operand): Allow reg+reg addressing, do not use
25450 general_operand for memory operands.
25451
25452 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25453
25454 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25455 when current target options does not apply.
25456 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25457 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25458 * config/i386/bmiintrin.h: Pass appropriate target
25459 attributes to header.
25460 * config/i386/mmintrin.h: Ditto.
25461 * config/i386/nmmintrin.h: Ditto.
25462 * config/i386/avx2intrin.h: Ditto.
25463 * config/i386/fxsrintrin.h: Ditto.
25464 * config/i386/tbmintrin.h: Ditto.
25465 * config/i386/xsaveintrin.h: Ditto.
25466 * config/i386/f16cintrin.h: Ditto.
25467 * config/i386/xtestintrin.h: Ditto.
25468 * config/i386/xsaveoptintrin.h: Ditto.
25469 * config/i386/bmi2intrin.h: Ditto.
25470 * config/i386/lzcntintrin.h: Ditto.
25471 * config/i386/smmintrin.h: Ditto.
25472 * config/i386/wmmintrin.h: Ditto.
25473 * config/i386/x86intrin.h: Remove all header include guards.
25474 * config/i386/prfchwintrin.h: Ditto.
25475 * config/i386/pmmintrin.h: Ditto.
25476 * config/i386/tmmintrin.h: Ditto.
25477 * config/i386/xmmintrin.h: Ditto.
25478 * config/i386/popcntintrin.h: Ditto.
25479 * config/i386/rdseedintrin.h: Ditto.
25480 * config/i386/ammintrin.h: Ditto.
25481 * config/i386/emmintrin.h: Ditto.
25482 * config/i386/immintrin.h: Remove all header include guards.
25483 * config/i386/fma4intrin.h: Ditto.
25484 * config/i386/lwpintrin.h: Ditto.
25485 * config/i386/xopintrin.h: Ditto.
25486 * config/i386/ia32intrin.h: Ditto.
25487 * config/i386/avxintrin.h: Ditto.
25488 * config/i386/rtmintrin.h: Ditto.
25489 * config/i386/fmaintrin.h: Ditto.
25490 * config/i386/mm3dnow.h: Ditto.
25491
25492 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25493
25494 * common/config/i386/i386-common.c: Handle LZCNT.
25495
25496 2013-06-22 Andi Kleen <ak@linux.intel.com>
25497
25498 * doc/extend.texi: Use __atomic_store_n instead of
25499 __atomic_store in HLE example.
25500
25501 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25502
25503 * config/sh/sh.c: Remove <cstdlib> workaround.
25504
25505 2013-06-21 Andi Kleen <ak@linux.intel.com>
25506
25507 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25508
25509 2013-06-21 Andi Kleen <ak@linux.intel.com>
25510
25511 * doc/extend.texi: Document that __atomic_clear and
25512 __atomic_test_and_set should only be used with bool.
25513
25514 2013-06-20 Jan Hubicka <jh@suse.cz>
25515
25516 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25517 types_same_for_odr.
25518 * tree.c (decls_same_for_odr): New function.
25519 (same_for_edr): New function.
25520 (types_same_for_odr): New function.
25521 (get_binfo_at_offset): Use it.
25522 * tree.h (types_same_for_odr): Declare.
25523
25524 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25525 Jason Merrill <jason@redhat.com>
25526
25527 * system.h: Include <cstdlib> as well as <stdlib.h>.
25528
25529 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25530
25531 PR target/57655
25532 * config/i386/i386.c (construct_container): Report error if
25533 long double is used with disabled x87 float returns.
25534
25535 2013-06-20 Jan Hubicka <jh@suse.cz>
25536
25537 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25538
25539 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25540
25541 PR rtl-optimization/57425
25542 PR rtl-optimization/57569
25543 * alias.c (write_dependence_p): Remove parameters mem_mode and
25544 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25545 Changed all callers.
25546 (canon_anti_dependence): Get comments and semantics in sync.
25547 Add parameter mem_canonicalized. Changed all callers.
25548 * rtl.h (canon_anti_dependence): Update prototype.
25549
25550 2013-06-20 Richard Biener <rguenther@suse.de>
25551
25552 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25553 byte case, inline streamer_read_uchar and defer section
25554 overrun check.
25555
25556 2013-06-20 Richard Biener <rguenther@suse.de>
25557
25558 PR tree-optimization/57584
25559 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25560 SSA names into the expanded expression that take part in
25561 abnormal coalescing.
25562
25563 2013-06-19 Sharad Singhai <singhai@google.com>
25564
25565 * gcov.c (print_usage): Handle new option.
25566 (process_args): Ditto.
25567 (get_gcov_intermediate_filename): New function.
25568 (output_intermediate_file): New function.
25569 (output_gcov_file): New function
25570 (generate_results): Handle new option.
25571 (release_function): Relase demangled name.
25572 (read_graph_file): Handle demangled name.
25573 (output_lines): Ditto.
25574 * doc/gcov.texi: Document gcov intermediate format.
25575
25576 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25577
25578 PR bootstrap/57604
25579 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25580 (lra_emit_add): Use the functions. Add comment about Y as an
25581 address segment.
25582
25583 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25584
25585 PR driver/57652
25586 * collect2.c (collect_atexit): New.
25587 (collect_exit): Delete.
25588 (main): Register collect_atexit with atexit.
25589 (collect_wait): Change collect_exit to exit.
25590 (do_wait): Same.
25591 * collect2.h (collect_exit): Delete.
25592 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25593
25594 2013-06-19 Wei Mi <wmi@google.com>
25595
25596 PR rtl-optimization/57518
25597 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25598 if regno is used in paradoxical subreg.
25599 (update_equiv_regs): Check pdx_subregs[regno] before
25600 set a reg to be equivalent with a mem.
25601
25602 2013-06-19 Matthias Klose <doko@ubuntu.com>
25603
25604 PR driver/57651
25605 * file-find.h (find_a_file): Add a mode parameter.
25606 * file-find.c (find_a_file): Likewise.
25607 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25608 with X_OK for the executables.
25609 * collect2.c (main): Call find_a_file with X_OK.
25610
25611 2013-06-19 Steve Ellcey <sellcey@mips.com>
25612
25613 PR target/56942
25614 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25615 Use NEXT_INSN instead of next_real_insn.
25616
25617 2013-06-19 Jan Hubicka <jh@suse.cz>
25618
25619 * cgraph.h (const_value_known_p): Replace by ...
25620 (ctor_for_folding): .. this one.
25621 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25622 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25623 * expr.c (expand_expr_real_1): Likewise.
25624 (string_constant): Likewise.
25625 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25626 * ipa.c (process_references): Likewise.
25627 (symtab_remove_unreachable_nodes): Likewise.
25628 * ipa-inline-analysis.c (param_change_prob): Likewise.
25629 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25630 (get_base_constructor): Likwise.
25631 * varpool.c (varpool_remove_node): Likewise.
25632 (varpool_remove_initializer): LIkewise.
25633 (dump_varpool_node): LIkwise.
25634 (const_value_known_p): Rewrite to ...
25635 (ctor_for_folding): ... this one.
25636
25637 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25638
25639 PR driver/57651
25640 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25641 PERSONALITY in $PATH derived prefixes.
25642
25643 2013-06-19 Jeff Law <law@redhat.com>
25644
25645 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25646 in comment.
25647
25648 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25649 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25650 booleans.
25651
25652 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25653
25654 * config/arm/vfp.md: Move VFP instruction classification documentation
25655 to ...
25656 * config/arm/arm.md: ... here. Update instruction classification
25657 documentation.
25658
25659 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25660
25661 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25662 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25663 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25664
25665 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25666
25667 PR target/57609
25668 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25669 with NEXT_INSN. Use tablejump_p to check for jump table data
25670 insns.
25671
25672 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25673
25674 PR c++/56544
25675 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25676 that now in C++ the value is correct per the C++ standards.
25677
25678 2013-06-19 Richard Biener <rguenther@suse.de>
25679
25680 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25681 for global context.
25682
25683 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25684
25685 Revert:
25686 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25687
25688 PR target/57609
25689 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25690 with next_active_insn.
25691
25692 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25693
25694 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25695 functions are inlined during failures to flag an error.
25696 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25697 in early inline pass.
25698
25699 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25700
25701 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25702 in comments.
25703
25704 2013-06-18 Julian Brown <julian@codesourcery.com>
25705
25706 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25707 Permit virtual register pre-reload if !strict.
25708 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25709 change.
25710 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25711 prototype.
25712 * config/arm/neon.md (movmisalign<mode>): Use
25713 neon_perm_struct_or_reg_operand instead of
25714 neon_struct_or_register_operand.
25715 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25716 neon_permissive_struct_operand instead of neon_struct_operand.
25717 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25718 neon_vector_mem_operand.
25719 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25720 neon_vector_mem_operand.
25721 (neon_permissive_struct_operand): New.
25722 (neon_struct_or_register_operand): Rename to...
25723 (neon_perm_struct_or_reg_operand): This. Adjust call to
25724 neon_vector_mem_operand.
25725
25726 2013-06-18 Richard Biener <rguenther@suse.de>
25727
25728 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25729 * lto-streamer.h: Include pointer-set.h.
25730 (struct lto_decl_slot): Remove.
25731 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25732 Remove next_index entry.
25733 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25734 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25735 (lto_init_tree_ref_encoder): Adjust.
25736 (lto_destroy_tree_ref_encoder): Likewise.
25737 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25738 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25739 (lto_output_decl_index): Adjust.
25740 (lto_new_out_decl_state): Likewise.
25741 (lto_record_function_out_decl_state): Likewise.
25742 * lto-streamer-out.c (copy_function): Likewise.
25743
25744 2013-06-18 Richard Biener <rguenther@suse.de>
25745
25746 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25747 * cgraphunit.c: Include cfgloop.h.
25748 (init_lowered_empty_function): Initialize the loop tree.
25749 (assemble_thunk): Insert new BBs into loops.
25750
25751 2013-06-18 Richard Biener <rguenther@suse.de>
25752
25753 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25754 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25755 the map from cache entry to cache index optional.
25756 (streamer_tree_cache_replace_tree): Adjust accordingly.
25757 (streamer_tree_cache_append): Likewise.
25758 (streamer_tree_cache_delete): Likewise.
25759 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25760 streamer cache map from cache entry to cache index.
25761 * lto-streamer-out.c (create_output_block): Adjust.
25762
25763 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25764
25765 * config/arm/arm.md (attribute "insn"): Move multiplication and
25766 division attributes to...
25767 (attribute "type"): ... here. Remove mult.
25768 (attribute "mul32"): New attribute.
25769 (attribute "mul64"): Add umaal.
25770 (*arm_mulsi3): Update attributes.
25771 (*arm_mulsi3_v6): Likewise.
25772 (*thumb_mulsi3): Likewise.
25773 (*thumb_mulsi3_v6): Likewise.
25774 (*mulsi3_compare0): Likewise.
25775 (*mulsi3_compare0_v6): Likewise.
25776 (*mulsi_compare0_scratch): Likewise.
25777 (*mulsi_compare0_scratch_v6): Likewise.
25778 (*mulsi3addsi): Likewise.
25779 (*mulsi3addsi_v6): Likewise.
25780 (*mulsi3addsi_compare0): Likewise.
25781 (*mulsi3addsi_compare0_v6): Likewise.
25782 (*mulsi3addsi_compare0_scratch): Likewise.
25783 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25784 (*mulsi3subsi): Likewise.
25785 (*mulsidi3adddi): Likewise.
25786 (*mulsi3addsi_v6): Likewise.
25787 (*mulsidi3adddi_v6): Likewise.
25788 (*mulsidi3_nov6): Likewise.
25789 (*mulsidi3_v6): Likewise.
25790 (*umulsidi3_nov6): Likewise.
25791 (*umulsidi3_v6): Likewise.
25792 (*umulsidi3adddi): Likewise.
25793 (*umulsidi3adddi_v6): Likewise.
25794 (*smulsi3_highpart_nov6): Likewise.
25795 (*smulsi3_highpart_v6): Likewise.
25796 (*umulsi3_highpart_nov6): Likewise.
25797 (*umulsi3_highpart_v6): Likewise.
25798 (mulhisi3): Likewise.
25799 (*mulhisi3tb): Likewise.
25800 (*mulhisi3bt): Likewise.
25801 (*mulhisi3tt): Likewise.
25802 (maddhisi4): Likewise.
25803 (*maddhisi4tb): Likewise.
25804 (*maddhisi4tt): Likewise.
25805 (maddhidi4): Likewise.
25806 (*maddhidi4tb): Likewise.
25807 (*maddhidi4tt): Likewise.
25808 (divsi3): Likewise.
25809 (udivsi3): Likewise.
25810 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25811 (thumb2_mulsi_short_compare0): Likewise.
25812 (thumb2_mulsi_short_compare0_scratch): Likewise.
25813 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25814 (1020mult2): Likewise.
25815 (1020mult3): Likewise.
25816 (1020mult4): Likewise.
25817 (1020mult5): Likewise.
25818 (1020mult6): Likewise.
25819 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25820 change.
25821 (cortex_a15_mult64): Likewise.
25822 (cortex_a15_sdiv): Likewise.
25823 (cortex_a15_udiv): Likewise.
25824 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25825 (mult2): Likewise.
25826 (mult3): Likewise.
25827 (mult4): Likewise.
25828 (mult5): Likewise.
25829 (mult6): Likewise.
25830 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25831 (pj4_ir_div): Likewise.
25832 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25833 (11_mult2): Likewise.
25834 (11_mult3): Likewise.
25835 (11_mult4): Likewise.
25836 (11_mult5): Likewise.
25837 (11_mult6): Likewise.
25838 (11_mult7): Likewise.
25839 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25840 (cortex_a8_mla): Likewise.
25841 (cortex_a8_mull): Likewise.
25842 (cortex_a8_smulwy): Likewise.
25843 (cortex_a8_smlald): Likewise.
25844 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25845 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25846 (cortex_r4_mul_3): Likewise.
25847 (cortex_r4_mla_4): Likewise.
25848 (cortex_r4_mla_3): Likewise.
25849 (cortex_r4_smlald): Likewise.
25850 (cortex_r4_mull): Likewise.
25851 (cortex_r4_sdiv): Likewise.
25852 (cortex_r4_udiv): Likewise.
25853 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25854 (cortex_a7_idiv): Likewise.
25855 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25856 (9_mult2): Likewise.
25857 (9_mult3): Likewise.
25858 (9_mult4): Likewise.
25859 (9_mult5): Likewise.
25860 (9_mult6): Likewise.
25861 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25862 (cortex_a53_sdiv): Likewise.
25863 (cortex_a53_udiv): Likewise.
25864 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25865 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25866 (mp626_mult2): Likewise.
25867 (mp626_mult3): Likewise.
25868 (mp626_mult4): Likewise.
25869 * config/arm/fa526.md (526_mult1): Update attribute change.
25870 (526_mult2): Likewise.
25871 * config/arm/arm-generic.md (mult): Update attribute change.
25872 (mult_ldsched_strongarm): Likewise.
25873 (mult_ldsched): Likewise.
25874 (multi_cycle): Likewise.
25875 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25876 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25877 (606te_mult2): Likewise.
25878 (606te_mult3): Likewise.
25879 (606te_mult4): Likewise.
25880 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25881 (cortex_a9_mac16): Likewise.
25882 (cortex_a9_multiply): Likewise.
25883 (cortex_a9_mac): Likewise.
25884 (cortex_a9_multiply_long): Likewise.
25885 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25886 (626te_mult2): Likewise.
25887 (626te_mult3): Likewise.
25888 (626te_mult4): Likewise.
25889
25890 2013-06-18 Richard Biener <rguenther@suse.de>
25891
25892 PR lto/57334
25893 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25894
25895 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25896
25897 PR target/57609
25898 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25899 with next_active_insn.
25900
25901 2013-06-18 Alan Modra <amodra@gmail.com>
25902
25903 * config/rs6000/rs6000.h (enum data_align): New.
25904 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25905 (DATA_ABI_ALIGNMENT): Define.
25906 (CONSTANT_ALIGNMENT): Correct comment.
25907 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25908 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25909
25910 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25911
25912 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25913 ATTRIBUTE_UNUSED marking.
25914
25915 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25916
25917 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25918 alternative and update.
25919 (aarch64_dup_lanedi): Delete.
25920 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25921 * config/aarch64/aarch64-simd-builtins.def: Update.
25922
25923 2013-06-17 Richard Biener <rguenther@suse.de>
25924
25925 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25926 (lto_input_scc): Declare.
25927 (lto_input_tree_1): Likewise.
25928 (struct lto_stats_d): Add num_tree_bodies_output and
25929 num_pickle_refs_output.
25930 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25931 (lto_read_tree_1): Split out from ...
25932 (lto_read_tree): ... this.
25933 (lto_input_scc): New function.
25934 (lto_input_tree_1): Split out from ...
25935 (lto_input_tree): ... this. Handle LTO_tree_scc.
25936 (lto_data_in_create): Create the streamer cache without hashes.
25937 * lto-streamer-out.c (create_output_block): Create the streamer
25938 cache with hashes when not doing WPA.
25939 (lto_write_tree_1): Split out from ...
25940 (lto_write_tree): ... this.
25941 (get_symbol_initial_value): New function.
25942 (lto_output_tree_1): Split out from ...
25943 (lto_output_tree): ... this. Write trees as series of SCCs
25944 using a DFS walk via DFS_write_tree.
25945 (struct sccs, struct scc_entry): New types.
25946 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25947 (DFS_write_tree_body): New function.
25948 (DFS_write_tree): Likewise.
25949 (hash_tree): Likewise.
25950 (scc_entry_compare): Likewise.
25951 (hash_scc): Likewise.
25952 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25953 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25954 TREE_CHAIN as regular reference.
25955 (streamer_read_integer_cst): Remove.
25956 (streamer_get_pickled_tree): Adjust.
25957 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25958 of DECL_EXTERNALs in BLOCK_VARS for now.
25959 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25960 reference.
25961 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25962 Add hash value argument and record that if hashes are recorded
25963 in the cache.
25964 (streamer_tree_cache_insert_1): Adjust.
25965 (streamer_tree_cache_insert): Likewise.
25966 (streamer_tree_cache_insert_at): Rename to ...
25967 (streamer_tree_cache_replace_tree): ... this and adjust.
25968 (streamer_tree_cache_append): Adjust.
25969 (record_common_node): Likewise.
25970 (streamer_tree_cache_create): Add argument whether to
25971 record hash values together with trees.
25972 (streamer_tree_cache_delete): Adjust.
25973 * tree-streamer.h (struct streamer_tree_cache_d): Add
25974 vector of hashes.
25975 (streamer_read_integer_cst): Remove.
25976 (streamer_tree_cache_insert): Adjust.
25977 (streamer_tree_cache_append): Likewise.
25978 (streamer_tree_cache_insert_at): Rename to ...
25979 (streamer_tree_cache_replace_tree): ... this and adjust.
25980 (streamer_tree_cache_create): Add argument whether to record hashes.
25981 (streamer_tree_cache_get): Rename to ...
25982 (streamer_tree_cache_get_tree): ... this.
25983 (streamer_tree_cache_get_hash): New function.
25984 * tree.c (cache_integer_cst): New function.
25985 * tree.h (cache_integer_cst): Declare.
25986 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
25987 * lto-symtab.c (lto_varpool_replace_node): Only release
25988 DECL_INITIAL of non-prevailing decls.
25989 * varpool.c (varpool_remove_initializer): Do not release
25990 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
25991
25992 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25993
25994 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
25995 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
25996 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
25997 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
25998 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
25999 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26000 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26001 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26002 instead of TARGET_64BIT.
26003 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26004 Require ISA_HAS_<D>DIV.
26005
26006 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26007
26008 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26009 (mips*-*-linux*): Move default with_llsc setting to where other
26010 defaults are set.
26011 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26012 with_arch block.
26013 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26014 Likewise. Remove default with_tune setting. Move default float
26015 setting to its own block. Handle with_llsc in the same block as above.
26016
26017 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26018
26019 PR rtl-optimization/57425
26020 PR rtl-optimization/57569
26021 * alias.c (write_dependence_p): Add new parameters mem_mode,
26022 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26023 Changed all callers.
26024 (canon_anti_dependence): New function.
26025 * cse.c (check_dependence): Use canon_anti_dependence.
26026 * cselib.c (cselib_invalidate_mem): Likewise.
26027 * rtl.h (canon_anti_dependence): Declare.
26028
26029 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26030
26031 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26032 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26033 ".set mips3" for 64-bit targets.
26034
26035 2013-06-15 Dehao Chen <dehao@google.com>
26036
26037 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26038 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26039 (gimple_check_call_args): Likewise.
26040 * value-prof.c (check_ic_target): Likewise.
26041 * ipa-inline.c (early_inliner): Likewise.
26042 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26043 * cgraph.c (cgraph_create_edge_1): Likewise.
26044 (cgraph_make_edge_direct): Likewise.
26045
26046 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26047
26048 PR target/57615
26049 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26050 rs6000_output_move_128bit to handle emitting quad memory
26051 operations. Set attribute length to 8 bytes.
26052
26053 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26054
26055 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26056 New pattern.
26057 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26058 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26059 (aarch64_<su>mlsl<mode>): Likewise.
26060
26061 2013-06-14 Mike Stump <mikestump@comcast.net>
26062
26063 * Makefile.in (TARGET_H): Add insn-codes.h.
26064
26065 2013-06-14 Alan Modra <amodra@gmail.com>
26066
26067 PR middle-end/57134
26068 PR middle-end/57586
26069 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26070 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26071 bitfield expansion when EXPAND_MEMORY.
26072 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26073
26074 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26075
26076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26077 test for clearing quad memory on 32-bit later.
26078
26079 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26080
26081 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26082 (fold_negate_expr): Likewise.
26083 (fold_real_zero_addition_p): Handle vectors.
26084 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26085
26086 2013-06-14 Alan Modra <amodra@gmail.com>
26087
26088 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26089
26090 2013-06-13 Jan Hubicka <jh@suse.cz>
26091
26092 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26093 Local comdats are not externally visible.
26094 * symtab.c (dump_symtab_base): Dump externally visible.
26095 (verify_symtab_base): Verify back links in the symtab hash.
26096
26097 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26098
26099 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26100 CONVERT_EXPR as equal nodes.
26101
26102 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26103
26104 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26105
26106 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26107
26108 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26109 Generalize to complex and vector.
26110 * tree.c (build_all_ones_cst): New function.
26111 * tree.h (build_all_ones_cst): Declare it.
26112
26113 2013-06-13 Alan Modra <amodra@gmail.com>
26114
26115 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26116 * config/rs6000/rs6000.md (signbittf2): New insn.
26117 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26118 (abstf2_internal, cmptf_internal2): Likewise.
26119 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26120
26121 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26122 Pat Haugen <pthaugen@us.ibm.com>
26123 Peter Bergner <bergner@vnet.ibm.com>
26124
26125 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26126 power8 byte, half-word, and quad-word atomic instructions.
26127 (emit_store_conditional): Likewise.
26128 (rs6000_expand_atomic_compare_and_swap): Likewise.
26129 (rs6000_expand_atomic_op): Likewise.
26130
26131 * config/rs6000/sync.md (larx): Add new modes for power8.
26132 (stcx): Likewise.
26133 (AINT): New mode iterator to include TImode as well as normal
26134 integer modes on power8.
26135 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26136 that VSX registers are not considered. Use AINT mode iterator
26137 instead of INT1 to allow inclusion of quad word atomic operations
26138 on power8.
26139 (load_locked<mode>): Likewise.
26140 (store_conditional<mode>): Likewise.
26141 (atomic_compare_and_swap<mode>): Likewise.
26142 (atomic_exchange<mode>): Likewise.
26143 (atomic_nand<mode>): Likewise.
26144 (atomic_fetch_<fetchop_name><mode>): Likewise.
26145 (atomic_nand_fetch<mode>): Likewise.
26146 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26147 each type.
26148 (ATOMIC): On power8, add QImode, HImode modes.
26149 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26150 modes that promote to SImode.
26151 (load_lockedti): Convert TImode arguments to PTImode, so that we
26152 get a guaranteed even/odd register pair.
26153 (load_lockedpti): Likewise.
26154 (store_conditionalti): Likewise.
26155 (store_conditionalpti): Likewise.
26156
26157 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26158 atomic load/store instructions.
26159 (HSI): Likewise.
26160
26161 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26162
26163 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26164 loads.
26165 (insn_count): New attribute, with most cases extracted from...
26166 (length): ...here. Redefine most cases in terms of insn_count.
26167 (single_insn): Delete.
26168 (can_delay): Use insn_count to check for single instructions.
26169 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26170 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26171 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26172 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26173 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26174 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26175 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26176 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26177 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26178 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26179 rather than "length".
26180 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26181 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26182 Use "insn_count" rather than "length".
26183 * config/mips/mips-dsp.md
26184 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26185 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26186 length attributes.
26187
26188 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26189
26190 PR tree-optimization/57361
26191 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26192
26193 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26194
26195 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26196 to split.
26197 (aarch64_simd_combine<mode>): New instruction expansion.
26198 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26199 function prototype.
26200 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26201 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26202
26203 2013-06-12 Jan Hubicka <jh@suse.cz>
26204
26205 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26206 decl has when in streaming stage.
26207 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26208 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26209
26210 2013-06-12 Roland Stigge <stigge@antcom.de>
26211
26212 PR target/57578
26213 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26214
26215 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26216
26217 PR tree-optimization/57537
26218 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26219 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26220
26221 2013-06-12 Richard Biener <rguenther@suse.de>
26222
26223 * data-streamer.h (streamer_write_char_stream): CSE
26224 obs->current_pointer.
26225 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26226 streamer_write_char_stream manually and optimize the resulting loop.
26227 (streamer_write_hwi_stream): Likewise.
26228
26229 2013-06-12 Jan Hubicka <jh@suse.cz>
26230
26231 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26232 * cgraph.h (varpool_create_empty_node): Declare.
26233 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26234 duplicated nodes.
26235 * symtab.c (symtab_unregister_node): Be lax about missin entries
26236 in node hash.
26237 (symtab_get_node): Update comment.
26238 * varpool.c (varpool_create_empty_node): Break out from ...
26239 (varpool_node_for_decl): ... here.
26240 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26241
26242 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26243
26244 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26245 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26246 part. Use straight-line flow at the end.
26247 <COMPONENT_REF>: Remove superfluous else.
26248 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26249
26250 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26251
26252 PR target/56564
26253 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26254 target hook even for !TREE_PUBLIC decls. If no resolution info
26255 is available, return false for common and external decls.
26256
26257 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26258
26259 * config/rl78/constraints.md (U): New constraint.
26260 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26261 valloc attribute.
26262
26263 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26264
26265 PR target/57589
26266 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26267 to allow returning address to AT_PLATFORM name.
26268
26269 2013-06-11 Jan Hubicka <jh@suse.cz>
26270
26271 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26272 * cgraph.h (symtab_node_base): Add weakref flag.
26273 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26274 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26275 (output_weakrefs): Use weakref flag.
26276 * fold-const.c (simple_operand_p): Handle WEAK.
26277 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26278 * ipa.c (varpool_externally_visible_p): Drop weakref.
26279 (function_and_variable_visibility): Update comment; fix weakref
26280 sanity checks; do not clear DECL_WEAK on them.
26281 * lto-cgraph.c (lto_output_node): update.
26282 (lto_output_varpool_node): Update.
26283 (input_overwrite_node): Update.
26284 (input_node): Update.
26285 (input_varpool_node): Update.
26286 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26287 (lto_symtab_merge_symbols): Add sanity check.
26288 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26289 * passes.c (rest_of_decl_compilation): Set static flag, too.
26290 * symtab.c (dump_symtab_base): Dump weakref.
26291 (verify_symtab_base): Sanity check weakrefs.
26292 (symtab_make_decl_local): Remove duplicated code.
26293 (symtab_alias_ultimate_target): Simplify.
26294 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26295
26296 2013-06-11 Tom de Vries <tom@codesourcery.com>
26297
26298 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26299 sequence_vect == NULL.
26300
26301 2013-06-11 DJ Delorie <dj@redhat.com>
26302
26303 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26304 (rl78_unwind_word_mode): New.
26305
26306 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26307
26308 * final.c (debug_prefix_maps): Make static.
26309
26310 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26311
26312 * function.c (initial_trampoline): Remove stray copy.
26313
26314 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26315
26316 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26317
26318 2013-06-11 Martin Jambor <mjambor@suse.cz>
26319
26320 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26321 within bounds at the beginning of the function.
26322
26323 2013-06-11 Alan Modra <amodra@gmail.com>
26324
26325 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26326 reporting.
26327 (get_named_section): Don't NULL !DECL_P decl.
26328
26329 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26330
26331 * doc/invoke.texi (core-avx2): Document.
26332 (slm): Likewise.
26333 (atom): Updated with MOVBE.
26334
26335 2013-06-11 Richard Biener <rguenther@suse.de>
26336
26337 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26338
26339 2013-06-11 Anton Blanchard <anton@samba.org>
26340
26341 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26342 correct shift value in little-endian mode.
26343
26344 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26345
26346 PR target/56564
26347 * varasm.c (get_variable_align): Move #endif to the right place.
26348
26349 2013-06-10 Cary Coutant <ccoutant@google.com>
26350
26351 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26352 for hash so that hash table traversal order is deterministic.
26353
26354 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26355 Pat Haugen <pthaugen@us.ibm.com>
26356 Peter Bergner <bergner@vnet.ibm.com>
26357
26358 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26359 of vectors in GPRS if they are direct moves or quad word load or
26360 store moves.
26361
26362 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26363 declaration.
26364 (direct_move_p): Likewise.
26365 (quad_load_store_p): Likewise.
26366
26367 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26368 classes into bins based on the physical register type.
26369 (reg_class_to_reg_type): Likewise.
26370 (IS_STD_REG_TYPE): Likewise.
26371 (IS_FP_VECT_REG_TYPE): Likewise.
26372 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26373 use direct move instructions.
26374 (reload_gpr_vsx): Likewise.
26375 (reload_vsx_gpr): Likewise.
26376 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26377 information that is a simplification of register classes. Also
26378 precalculate direct move reload helpers.
26379 (direct_move_p): New function to return true if the operation can
26380 be done as a direct move instruciton.
26381 (quad_load_store_p): New function to return true if the operation
26382 is a quad memory operation.
26383 (rs6000_legitimize_address): If quad memory, only allow register
26384 indirect for TImode addresses.
26385 (rs6000_legitimate_address_p): Likewise.
26386 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26387 (rs6000_reload_register_type): Likewise.
26388 (register_to_reg_type): Return register type.
26389 (rs6000_secondary_reload_simple_move): New helper function for
26390 secondary reload and secondary memory needed to identify anything
26391 that is a simple move, and does not need reloading.
26392 (rs6000_secondary_reload_direct_move): New helper function for
26393 secondary reload to identify cases that can be done with several
26394 instructions via the direct move instructions.
26395 (rs6000_secondary_reload_move): New helper function for secondary
26396 reload to identify moves between register types that can be done.
26397 (rs6000_secondary_reload): Add support for quad memory operations
26398 and for direct move.
26399 (rs6000_secondary_memory_needed): Likewise.
26400 (rs6000_debug_secondary_memory_needed): Change argument names.
26401 (rs6000_output_move_128bit): New function to return the move to
26402 use for 128-bit moves, including knowing about the various
26403 limitations of quad memory operations.
26404
26405 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26406 memory operations. call rs6000_output_move_128bit for the actual
26407 instruciton(s) to generate.
26408 (vsx_movti_64bit): Likewise.
26409
26410 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26411 (UNSPEC_P8V_MTVSRWZ): Likewise.
26412 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26413 (UNSPEC_P8V_MTVSRD): Likewise.
26414 (UNSPEC_P8V_XXPERMDI): Likewise.
26415 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26416 (UNSPEC_FUSION_GPR): Likewise.
26417 (FMOVE128_GPR): New iterator for direct move.
26418 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26419 (f32_sv): Likewise.
26420 (f32_dm): Likewise.
26421 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26422 loads and direct move instructions.
26423 (zero_extendsidi2_lfiwzx): Likewise.
26424 (extendsidi2_lfiwax): Likewise.
26425 (extendsidi2_nocell): Likewise.
26426 (floatsi<mode>2_lfiwax): Likewise.
26427 (lfiwax): Likewise.
26428 (floatunssi<mode>2_lfiwzx): Likewise.
26429 (lfiwzx): Likewise.
26430 (fix_trunc<mode>_stfiwx): Likewise.
26431 (fixuns_trunc<mode>_stfiwx): Likewise.
26432 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26433 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26434 (parity<mode>2_cmpb): Set length/type attr.
26435 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26436 for 'mr.' to fast_compare.
26437 (bpermd_<mode>): Change type attr to popcnt.
26438 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26439 (p8_mtvsrwz_1): Likewise.
26440 (p8_mtvsrwz_2): Likewise.
26441 (reload_fpr_from_gpr<mode>): Likewise.
26442 (p8_mtvsrd_1): Likewise.
26443 (p8_mtvsrd_2): Likewise.
26444 (p8_xxpermdi_<mode>): Likewise.
26445 (reload_vsx_from_gpr<mode>): Likewise.
26446 (reload_vsx_from_gprsf): Likewise.
26447 (p8_mfvsrd_3_<mode>): LIkewise.
26448 (reload_gpr_from_vsx<mode>): Likewise.
26449 (reload_gpr_from_vsxsf): Likewise.
26450 (p8_mfvsrd_4_disf): Likewise.
26451 (multi-word GPR splits): Do not split direct moves or quad memory
26452 operations.
26453
26454 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26455
26456 * tree-into-ssa.c (interesting_blocks): Make static.
26457
26458 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26459
26460 PR target/56564
26461 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26462 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26463 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26464 (get_variable_align): New function.
26465 (get_variable_section, emit_bss, emit_common,
26466 assemble_variable_contents, place_block_symbol): Use
26467 get_variable_align instead of DECL_ALIGN.
26468 (assemble_noswitch_variable): Add align argument, use it
26469 instead of DECL_ALIGN.
26470 (assemble_variable): Adjust caller. Use get_variable_align
26471 instead of DECL_ALIGN.
26472 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26473 caller.
26474 (DATA_ABI_ALIGNMENT): Define.
26475 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26476 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26477 opt is false, only return the psABI mandated alignment increase.
26478 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26479 (DATA_ABI_ALIGNMENT): ... this.
26480 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26481 (DATA_ABI_ALIGNMENT): ... this.
26482 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26483 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26484 (DATA_ABI_ALIGNMENT): ... this.
26485 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26486 * doc/tm.texi: Regenerated.
26487
26488 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26489
26490 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26491 cmp_code to construct REG_EQUAL note.
26492
26493 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26494
26495 PR target/57568
26496 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26497 that operands[2] doesn't overlap with operands[0].
26498
26499 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26500 Jan Hubicka <jh@suse.cz>
26501
26502 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26503 hack to mark symbols as used.
26504
26505 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26506
26507 PR rtl-optimization/57559
26508 * lra-constraints.c (process_alt_operands): Don't discourage
26509 memory with known offset for offsetable memory constraint.
26510 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26511
26512 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26513
26514 * varasm.c (struct oc_local_state): Reorder fields.
26515 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26516 and adjust accordingly.
26517 (output_constructor): Reorder initialization code and adjust call to
26518 output_constructor_bitfield.
26519
26520 2013-06-07 Jan Hubicka <jh@suse.cz>
26521
26522 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26523
26524 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26525
26526 * tree-object-size.c (unknown): Make const.
26527
26528 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26529
26530 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26531 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26532 for last alternative in the cpu_facility attribute.
26533
26534 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26535
26536 PR target/56315
26537 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26538 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26539 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26540 * config/arm/constraints.md (Dg): New constraint.
26541 * config/arm/neon.md (xordi3_neon): Remove.
26542 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26543 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26544
26545 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26546
26547 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26548 Clean up alternatives.
26549
26550 2013-06-07 Alan Modra <amodra@gmail.com>
26551
26552 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26553 va_list_gpr_size.
26554
26555 2013-06-07 Alan Modra <amodra@gmail.com>
26556
26557 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26558
26559 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26560
26561 * config/arm/constraints.md (Df): New constraint.
26562 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26563 Correct length attribute for last two alternatives.
26564
26565 2013-06-07 Alan Modra <amodra@gmail.com>
26566
26567 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26568 override user -mfp-in-toc.
26569 (offsettable_ok_by_alignment): Consider just the current access
26570 rather than the whole object, unless BLKmode. Handle
26571 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26572 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26573 for -mcmodel=medium.
26574 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26575 override user -mfp-in-toc or -msum-in-toc. Default to
26576 -mno-fp-in-toc for -mcmodel=medium.
26577
26578 2013-06-06 DJ Delorie <dj@redhat.com>
26579
26580 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26581 TARGET_VALID_POINTER_MODE.
26582
26583 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26584 Pat Haugen <pthaugen@us.ibm.com>
26585 Peter Bergner <bergner@vnet.ibm.com>
26586
26587 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26588 Document new power8 builtins.
26589
26590 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26591 condition code register, to allow 128-bit logical operations to be
26592 done in the VSX or GPR registers.
26593 (nor<mode>3): Use the canonical form for nor.
26594 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26595 vclz*, and vpopcnt* vector instructions.
26596 (nand<mode>3): Likewise.
26597 (orc<mode>3): Likewise.
26598 (clz<mode>2): LIkewise.
26599 (popcount<mode>2): Likewise.
26600
26601 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26602 that only the GPRs are recognized.
26603
26604 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26605 support for new power8 builtins.
26606
26607 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26608 builtin functions.
26609 (xscvdpspn): Likewise.
26610 (vclz): Likewise.
26611 (vclzb): Likewise.
26612 (vclzh): Likewise.
26613 (vclzw): Likewise.
26614 (vclzd): Likewise.
26615 (vpopcnt): Likewise.
26616 (vpopcntb): Likewise.
26617 (vpopcnth): Likewise.
26618 (vpopcntw): Likewise.
26619 (vpopcntd): Likewise.
26620 (vgbbd): Likewise.
26621 (vmrgew): Likewise.
26622 (vmrgow): Likewise.
26623 (eqv): Likewise.
26624 (eqv_v16qi3): Likewise.
26625 (eqv_v8hi3): Likewise.
26626 (eqv_v4si3): Likewise.
26627 (eqv_v2di3): Likewise.
26628 (eqv_v4sf3): Likewise.
26629 (eqv_v2df3): Likewise.
26630 (nand): Likewise.
26631 (nand_v16qi3): Likewise.
26632 (nand_v8hi3): Likewise.
26633 (nand_v4si3): Likewise.
26634 (nand_v2di3): Likewise.
26635 (nand_v4sf3): Likewise.
26636 (nand_v2df3): Likewise.
26637 (orc): Likewise.
26638 (orc_v16qi3): Likewise.
26639 (orc_v8hi3): Likewise.
26640 (orc_v4si3): Likewise.
26641 (orc_v2di3): Likewise.
26642 (orc_v4sf3): Likewise.
26643 (orc_v2df3): Likewise.
26644
26645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26646 allow power8 quad mode in 64-bit.
26647 (rs6000_builtin_vectorized_function): Add support to vectorize
26648 ISA 2.07 count leading zeros, population count builtins.
26649 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26650 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26651 (builtin_function_type): Add vgbbd builtin function which takes an
26652 unsigned argument.
26653 (altivec_expand_vec_perm_const): Add support for new power8 merge
26654 instructions.
26655
26656 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26657 that does not include TImdoe for use with 32-bit.
26658 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26659 instructions.
26660 (UNSPEC_VSX_CVDPSPN): Likewise.
26661 (vsx_xscvdpspn): Likewise.
26662 (vsx_xscvspdpn): Likewise.
26663 (vsx_xscvdpspn_scalar): Likewise.
26664 (vsx_xscvspdpn_directmove): Likewise.
26665 (vsx_and<mode>3): Split logical operations into 32-bit and
26666 64-bit. Add support to do logical operations on TImode as well as
26667 VSX vector types. Allow logical operations to be done in either
26668 VSX registers or in general purpose registers in 64-bit mode. Add
26669 splitters if GPRs were used. For AND, add clobber of CCmode to
26670 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26671 encoding.
26672 (vsx_and<mode>3_32bit): Likewise.
26673 (vsx_and<mode>3_64bit): Likewise.
26674 (vsx_ior<mode>3): Likewise.
26675 (vsx_ior<mode>3_32bit): Likewise.
26676 (vsx_ior<mode>3_64bit): Likewise.
26677 (vsx_xor<mode>3): Likewise.
26678 (vsx_xor<mode>3_32bit): Likewise.
26679 (vsx_xor<mode>3_64bit): Likewise.
26680 (vsx_one_cmpl<mode>2): Likewise.
26681 (vsx_one_cmpl<mode>2_32bit): Likewise.
26682 (vsx_one_cmpl<mode>2_64bit): Likewise.
26683 (vsx_nor<mode>3): Likewise.
26684 (vsx_nor<mode>3_32bit): Likewise.
26685 (vsx_nor<mode>3_64bit): Likewise.
26686 (vsx_andc<mode>3): Likewise.
26687 (vsx_andc<mode>3_32bit): Likewise.
26688 (vsx_andc<mode>3_64bit): Likewise.
26689 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26690 and xxlorc instructions.
26691 (vsx_eqv<mode>3_64bit): Likewise.
26692 (vsx_nand<mode>3_32bit): Likewise.
26693 (vsx_nand<mode>3_64bit): Likewise.
26694 (vsx_orc<mode>3_32bit): Likewise.
26695 (vsx_orc<mode>3_64bit): Likewise.
26696
26697 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26698
26699 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26700 instruction.
26701 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26702 (p8_vmrgow): Likewise.
26703 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26704 GPRs to be split under VSX.
26705 (p8v_clz<mode>2): Add power8 count leading zero support.
26706 (p8v_popcount<mode>2): Add power8 population count support.
26707 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26708 support.
26709
26710 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26711 instruction.
26712
26713 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26714 builtin functions.
26715 (vec_nand): Likewise.
26716 (vec_vclz): Likewise.
26717 (vec_vclzb): Likewise.
26718 (vec_vclzd): Likewise.
26719 (vec_vclzh): Likewise.
26720 (vec_vclzw): Likewise.
26721 (vec_vgbbd): Likewise.
26722 (vec_vmrgew): Likewise.
26723 (vec_vmrgow): Likewise.
26724 (vec_vpopcnt): Likewise.
26725 (vec_vpopcntb): Likewise.
26726 (vec_vpopcntd): Likewise.
26727 (vec_vpopcnth): Likewise.
26728 (vec_vpopcntw): Likewise.
26729
26730 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26731
26732 PR rtl-optimization/57468
26733 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26734 spilled pseudos.
26735
26736 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26737
26738 PR rtl-optimization/57459
26739 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26740 type when setting live regs.
26741
26742 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26743
26744 * config/s390/s390.opt (mlra): New option.
26745 * config/s390/s390.c (s390_decompose_address): Check displacement
26746 for all registers for LRA.
26747 (s390_secondary_reload): Don't used secondary reloads for LRA.
26748 (s390_lra_p): New function.
26749 (TARGET_LRA_P): Define.
26750 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26751 of attribute cpu_facility to zarch for the last alternative.
26752 (*cmpmem_short): Ditto.
26753
26754 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26755
26756 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26757 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26758 (arm_expand_prologue): Likewise.
26759
26760 2013-06-06 Teresa Johnson <tejohnson@google.com>
26761
26762 PR c++/53743
26763 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26764 as this is now done by redirect_edge_and_branch_force.
26765 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26766 barriers, and fix interaction with splitting.
26767 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26768 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26769 reflect changes made in the routine.
26770 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26771 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26772 since this is called in cfglayout mode, and replace partition fixup
26773 with assert as that is now done by force_nonfallthru_and_redirect.
26774 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26775 already be marked with region crossing note.
26776 (insert_section_boundary_note): Make non-static, gate on flag
26777 has_bb_partition, rewrite to also check for multiple partitions.
26778 (rest_of_handle_reorder_blocks): Remove call to
26779 insert_section_boundary_note, now done later during free_cfg.
26780 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26781 * bb-reorder.h (insert_section_boundary_note): Declare.
26782 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26783 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26784 invoke insert_section_boundary_note.
26785 (try_redirect_by_replacing_jump): Remove unnecessary
26786 check for region crossing note.
26787 (fixup_partition_crossing): New function.
26788 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26789 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26790 in non-cfglayout mode.
26791 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26792 remove old code that tried to do this. Emit barrier correctly
26793 when we are in cfglayout mode.
26794 (last_bb_in_partition): New function.
26795 (rtl_split_edge): Correctly fixup partition boundaries.
26796 (commit_one_edge_insertion): Remove old code that tried to
26797 fixup region crossing edge since this is now handled in
26798 split_block, and set up insertion point correctly since
26799 block may now end in a jump.
26800 (verify_hot_cold_block_grouping): Guard against checking when not in
26801 linearized RTL mode.
26802 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26803 notes.
26804 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26805 rtl_verify_flow_info, so not called in cfglayout mode.
26806 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26807 (fixup_reorder_chain): Remove old code that attempted to fixup region
26808 crossing note as this is now handled in force_nonfallthru_and_redirect.
26809 (duplicate_insn_chain): Don't duplicate switch section notes.
26810 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26811 note.
26812 * basic-block.h (emit_barrier_after_bb): Declare.
26813
26814 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26815
26816 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26817 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26818 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26819
26820 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26821
26822 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26823 where appropriate.
26824 * config/arm/ldmstm.md: Regenerate.
26825
26826 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26827
26828 * config/arm/sync.md (atomic_loaddi_1):
26829 Disable predication for arm_restrict_it.
26830 (arm_load_exclusive<mode>): Likewise.
26831 (arm_load_exclusivesi): Likewise.
26832 (arm_load_exclusivedi): Likewise.
26833 (arm_load_acquire_exclusive<mode>): Likewise.
26834 (arm_load_acquire_exclusivesi): Likewise.
26835 (arm_load_acquire_exclusivedi): Likewise.
26836 (arm_store_exclusive<mode>): Likewise.
26837 (arm_store_exclusive<mode>): Likewise.
26838 (arm_store_release_exclusivedi): Likewise.
26839 (arm_store_release_exclusive<mode>): Likewise.
26840
26841 2013-06-06 Richard Biener <rguenther@suse.de>
26842
26843 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26844 after LTO_null.
26845 (lto_tag_is_tree_code_p): Adjust.
26846 (lto_tag_is_gimple_code_p): Likewise.
26847 (lto_gimple_code_to_tag): Likewise.
26848 (lto_tag_to_gimple_code): Likewise.
26849 (lto_tree_code_to_tag): Likewise.
26850 (lto_tag_to_tree_code): Likewise.
26851 * data-streamer.h (streamer_write_hwi_in_range): Use
26852 uhwi streaming to stream the normalized range.
26853 (streamer_read_hwi_in_range): Likewise.
26854
26855 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26856
26857 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26858 (predicable_short_it): Likewise.
26859 (predicated): Likewise.
26860 (enabled): Handle above.
26861 (define_cond_exec): Set predicated attribute to yes.
26862
26863 2013-06-05 Mike Stump <mikestump@comcast.net>
26864
26865 * gdbinit.in (__FUNCTION__): Add.
26866
26867 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26868
26869 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26870 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26871
26872 2013-06-05 Jan Hubicka <jh@suse.cz>
26873
26874 * varasm.c (mark_decl_referenced): Revert the removal until targets
26875 are fixed.
26876
26877 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26878
26879 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26880 instead of mark_decl_referenced.
26881
26882 2013-06-05 Jan Hubicka <jh@suse.cz>
26883
26884 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26885 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26886 and symtab_used_from_object_file_p.
26887 (cgraph_make_node_local_1): Clear forced_by_abi.
26888 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26889 * cgraph.h (symtab_node_base): Add forced_by_abi.
26890 (decide_is_variable_needed): Remove.
26891 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26892 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26893 (decide_is_symbol_needed): ... this one; handle symbols in general;
26894 always analyze virtuals; honnor forced_by_abi.
26895 (cgraph_finalize_function): Update.
26896 (varpool_finalize_decl): Update.
26897 (symbol_defined_and_needed): Remove.
26898 (analyze_functions): Update.
26899 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26900 output_refs, input_overwrite_node): Handle forced_by_abi.
26901 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26902 (address_taken_from_non_vtable_p): ... this one.
26903 (comdat_can_be_unshared_p_1): New function.
26904 (cgraph_comdat_can_be_unshared_p): Rename to ...
26905 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26906 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26907 (function_and_variable_visibility): Clear forced_by_abi as needed.
26908 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26909 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26910 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26911 * varpool.c (decide_is_variable_needed): Remove.
26912
26913 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26914
26915 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26916 (arm_option_override): Override arm_restrict_it where appropriate.
26917 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26918 * config/arm/arm.opt (mrestrict-it): New command-line option.
26919 * doc/invoke.texi: Document -mrestrict-it.
26920
26921 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26922
26923 * tsan.c (tsan_atomic_table): Make const.
26924
26925 2013-06-05 Richard Biener <rguenther@suse.de>
26926
26927 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26928 index associated with the tree we are supposed to replace.
26929 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26930 TREE_ASM_WRITTEN as zero for everything but SSA names.
26931
26932 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26933
26934 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26935
26936 2013-06-04 Jan Hubicka <jh@suse.cz>
26937
26938 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26939 (input_node, input_varpool_node): Handle correctly external same
26940 body aliases.
26941 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26942 nodes at ltrans stage.
26943
26944 2013-06-04 Jan Hubicka <jh@suse.cz>
26945
26946 * ipa-inline.c (update_caller_keys): Fix availability test.
26947 (update_callee_keys): Likewise.
26948 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26949 to follow ELF standard.
26950
26951 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26952
26953 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26954 (mips64r5900el-*-elf*): New configurations.
26955 * config/mips/mips-cpus.def (r5900): New processor.
26956 * config/mips/mips-tables.opt: Regenerate.
26957 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26958 (mips_issue_rate): Handle PROCESSOR_R5900.
26959 (mips_reorg_process_insns): Force reorder mode for the R5900.
26960 * config/mips/mips.h (TARGET_MIPS5900): Define.
26961 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26962 TARGET_MIPS5900.
26963 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
26964 TARGET_MIPS5900.
26965 * config/mips/mips.md (processor): Add r5900.
26966 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
26967
26968 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26969
26970 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
26971 into function to generate MOVI instruction.
26972 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
26973 (aarch64_preferred_simd_mode): Turn into wrapper.
26974 (aarch64_output_scalar_simd_mov_immediate): New function.
26975 * config/aarch64/aarch64-protos.h: Add prototype for above.
26976
26977 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26978
26979 * config/aarch64/aarch64.c (simd_immediate_info): Remove
26980 element_char member.
26981 (sizetochar): Return signed char.
26982 (aarch64_simd_valid_immediate): Remove elchar and other
26983 unnecessary variables.
26984 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
26985 Calculate element_char as required.
26986 * config/aarch64/aarch64-protos.h: Update and move prototype
26987 for aarch64_output_simd_mov_immediate.
26988 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
26989 Update arguments.
26990
26991 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26992
26993 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
26994 information completed by aarch64_simd_valid_immediate.
26995 (aarch64_legitimate_constant_p): Update arguments.
26996 (aarch64_simd_valid_immediate): Work with struct rather than many
26997 pointers.
26998 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
26999 (aarch64_simd_make_constant): Update arguments.
27000 (aarch64_output_simd_mov_immediate): Work with struct rather than
27001 many pointers. Output immediate directly rather than as operand.
27002 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27003 Update prototype.
27004 * config/aarch64/constraints.md (Dn): Update arguments.
27005
27006 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27007
27008 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27009 longer static.
27010 (aarch64_simd_immediate_valid_for_move): Remove.
27011 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27012 (aarch64_simd_make_constant): Update call.
27013 (aarch64_output_simd_mov_immediate): Update call.
27014 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27015 Add prototype.
27016 * config/aarch64/constraints.md (Dn): Update call.
27017
27018 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27019
27020 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27021 return type to bool for prototype.
27022 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27023 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27024 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27025
27026 2013-06-04 Catherine Moore <clm@codesourcery.com>
27027
27028 * config/mips/mips.opt (meva): New.
27029 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27030 (ASM_SPEC): Handle -meva.
27031 * doc/invoke.texi (meva): Document.
27032
27033 2013-06-04 Alan Modra <amodra@gmail.com>
27034
27035 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27036 constant output.
27037
27038 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27039
27040 * rtl.def: Add extra fourth optional field to define_cond_exec.
27041 * gensupport.c (process_one_cond_exec): Process attributes from
27042 define_cond_exec.
27043 * doc/md.texi: Document fourth field in define_cond_exec.
27044
27045 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27046
27047 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27048 out the processing order as in store_bit_field_1.
27049
27050 2013-06-04 Jan Hubicka <jh@suse.cz>
27051
27052 PR middle-end/57500
27053 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27054 non-VAR_DECL node if it does not exist yet.
27055
27056 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27057
27058 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27059 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27060 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27061 target_cpu_default setting.
27062
27063 2013-06-03 Teresa Johnson <tejohnson@google.com>
27064
27065 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27066 default to -fopt-info=optimized instead of all.
27067 * doc/invoke.texi: Ditto.
27068 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27069 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27070 (execute_vect_slp): Emit BB vectorization success under
27071 MSG_OPTIMIZED_LOCATIONS.
27072 * tree-vect-slp.c (vect_slp_transform_bb): Change
27073 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27074 * tree-vect-loop.c (vect_transform_loop): Ditto.
27075
27076 2013-06-03 Jason Merrill <jason@redhat.com>
27077
27078 PR c++/57415
27079 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27080 Use TARGET_EXPR for C++.
27081
27082 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27083
27084 PR rtl-optimization/57268
27085 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27086 if DEBUG_INSN_P (insn).
27087
27088 Reapply
27089 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27090
27091 PR rtl-optimization/57268
27092 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27093 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27094
27095 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27096
27097 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27098 (ix86_avoid_lea_for_addr): Likewise.
27099 (exact_dependency_1): Likewise.
27100 (ix86_adjust_cost): Likewise.
27101 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27102 removed.
27103 (do_reorder_for_imul): Fix typo, formatting and
27104 !reload_completed check removed.
27105 (ix86_sched_reorder): Fix typo and formatting.
27106 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27107 list.
27108
27109 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27110
27111 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27112
27113 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27114
27115 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27116 <STRING_CST>: Likewise.
27117 <VECTOR_CST>: Likewise.
27118
27119 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27120 Mikael Morin <mikael@gcc.gnu.org>
27121
27122 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27123 * config.in: Regenerated.
27124 * configure: Regenerated.
27125
27126 2013-06-01 Jan Hubicka <jh@suse.cz>
27127
27128 PR middle-end/57366
27129 * cgraphunit.c (compile): When weakref is not supported,
27130 set up transparent aliases before final output pass.
27131 * varasm.c (assemble_alias): Do not try to do it here.
27132
27133 2013-06-01 Jan Hubicka <jh@suse.cz>
27134
27135 PR middle-end/57467
27136 * passes.c (for_per_function): Skip unanalyzed functions.
27137
27138 2013-06-01 Jan Hubicka <jh@suse.cz>
27139
27140 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27141 (lto_symtab_merge_symbols_1): ... this one.
27142 (lto_symtab_merge_cgraph_nodes): Rename to ...
27143 (lto_symtab_merge_symbols): ... this one; simplify.
27144 * cgraph.c (same_body_aliases_done): Rename to ...
27145 (cpp_implicit_aliases_done): ... this one.
27146 (cgraph_create_function_alias): Update.
27147 (cgraph_same_body_alias): Update.
27148 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27149 (verify_edge_corresponds_to_fndecl): Simplify.
27150 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27151 (cgraph_node): Remove same_body_alias.
27152 (varpool_node): Remove alias_of and extra_name_alias.
27153 (same_body_aliases_done): Rename to ..
27154 (cpp_implicit_aliases_done): ... this one.
27155 (symtab_alias_ultimate_target): Add default parameter.
27156 (symtab_resolve_alias): New function.
27157 (fixup_same_cpp_alias_visibility): Declare.
27158 (cgraph_function_node): Add default parameter.
27159 (cgraph_node_asm_name): Likewise.
27160 (cgraph_function_or_thunk_node): Add default parameter; do
27161 not ICE when it is NULL.
27162 (varpool_variable_node): Likewise.
27163 * tree-emutls.c (create_emultls_var): Update.
27164 (ipa_lower_emutls): Update.
27165 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27166 (cgraph_reset_node): Reset alias info.
27167 (cgraph_finalize_function): Update.
27168 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27169 (analyze_function): Simplify.
27170 (cgraph_process_same_body_aliases): Simplify.
27171 (analyze_functions): Fixup same body aliases.
27172 (handle_alias_pairs): Simplify.
27173 (assemble_thunk): Update.
27174 (assemble_thunks_and_aliases): Update.
27175 (output_weakrefs): Rewrite.
27176 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27177 (lto_output_varpool_node): Likewise.
27178 (compute_ltrans_boundary): Remve assert.
27179 (get_alias_symbol): New functoin.
27180 (input_node): Rewrite alias handling.
27181 (input_varpool_node): Likewise.
27182 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27183 * ipa.c (process_references): Handle weakrefs correctly.
27184 (symtab_remove_unreachable_nodes): Likewise.
27185 * trans-mem.c (get_cg_data): Update.
27186 (ipa_tm_create_version_alias): Update.
27187 (ipa_tm_execute): Update.
27188 * symtab.c (dump_symtab_base): Dump aliases.
27189 (verify_symtab_base): Verify aliases.
27190 (symtab_node_availability): New function.
27191 (symtab_alias_ultimate_target): Simplify.
27192 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27193 handle all the fixup cases.
27194 (symtab_resolve_alias): New function.
27195 * passes.c (ipa_write_summaries): Handle weakrefs.
27196 * varpool.c (varpool_analyze_node): Simplify.
27197 (assemble_aliases): Update.
27198 (varpool_create_variable_alias): Simplify.
27199 (varpool_extra_name_alias): Simplify.
27200 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27201 (lto_symtab_merge_symbols): ... this one.
27202
27203 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27204
27205 Revert
27206 PR rtl-optimization/57268
27207 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27208 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27209
27210 2013-06-01 Tobias Burnus <burnus@net-b.de>
27211
27212 Partially reverted:
27213 2013-05-31 Tobias Burnus <burnus@net-b.de>
27214
27215 PR middle-end/57073
27216 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27217 further up.
27218
27219 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27220
27221 PR rtl-optimization/57268
27222 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27223 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27224
27225 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27226
27227 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27228 unordered comparison operators when -fno-trapping-math is in effect
27229 on the e500.
27230 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27231 and implement unordered comparison operators properly on the e500.
27232
27233 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27234
27235 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27236 for constant scalar integers.
27237 (simplify_relational_operation_1): Likewise.
27238
27239 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27240
27241 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27242 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27243 Fix comment.
27244
27245 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27246 Igor Zamyatin <igor.zamyatin@intel.com>
27247
27248 Silvermont (SLM) architecture performance tuning.
27249 * config/i386/i386.h (enum ix86_tune_indices): Add
27250 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27251 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27252
27253 * config/i386/i386.c (initial_ix86_tune_features)
27254 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27255 (ix86_lea_outperforms): Handle Silvermont tuning.
27256 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27257 call.
27258 (ix86_use_lea_for_mov): Likewise.
27259 (ix86_avoid_lea_for_addr): Likewise.
27260 (ix86_lea_for_add_ok): Likewise.
27261 (exact_dependency_1): New function.
27262 (exact_store_load_dependency): Likewise.
27263 (ix86_adjust_cost): Handle Silvermont tuning.
27264 (do_reoder_for_imul): Likewise.
27265 (swap_top_of_ready_list): New function.
27266 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27267
27268 * config/i386/i386.md (peepholes that split memory operand in fp
27269 converts): New.
27270
27271 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27272
27273 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27274 Remove un-necessary braces.
27275
27276 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27277
27278 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27279 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27280
27281 2013-05-31 Tobias Burnus <burnus@net-b.de>
27282
27283 PR middle-end/57073
27284 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27285
27286 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27287
27288 PR target/56315
27289 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27290 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27291 * config/arm/neon.md (iordi3_neon): Remove.
27292 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27293 * config/arm/predicates.md (imm_for_neon_logic_operand):
27294 Move to earlier in the file.
27295 (neon_logic_op2): Likewise.
27296 (arm_iordi_operand_neon): New predicate.
27297
27298 2013-05-31 Richard Biener <rguenther@suse.de>
27299
27300 PR tree-optimization/57478
27301 PR tree-optimization/57453
27302 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27303 are life as well.
27304
27305 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27306
27307 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27308 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27309
27310 2013-05-30 Tobias Burnus <burnus@net-b.de>
27311 Thomas Koenig <tkoenig@gcc.gnu.org>
27312
27313 PR middle-end/57073
27314 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27315 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27316
27317 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27318
27319 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27320
27321 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27322
27323 * target.def (register_usage_leveling_p): New hook.
27324 * targhooks.c (default_register_usage_leveling_p): New.
27325 * targhooks.h (default_register_usage_leveling_p): New prototype.
27326 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27327 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27328 * doc/tm.texi: Update.
27329 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27330
27331 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27332
27333 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27334 (*insv_reg<mode>): New define_insn.
27335
27336 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27337
27338 PR rtl-optimization/57439
27339 * postreload.c (move2add_valid_value_p): Check that we have
27340 a zero subreg_regno_offset when accessing the register in
27341 the requested mode.
27342
27343 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27344 Igor Zamyatin <igor.zamyatin@intel.com>
27345
27346 Silvermont (SLM) architecture pipeline model, tuning and
27347 insn selection.
27348 * config.gcc: Add slm config options and target.
27349
27350 * config/i386/slm.md: New.
27351
27352 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27353
27354 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27355 PROCESSOR_SLM.
27356 (ix86_target_macros_internal): Likewise.
27357
27358 * config/i386/i386.c (slm_cost): New cost.
27359 (m_SLM): New macro flag.
27360 (initial_ix86_tune_features): Set m_SLM.
27361 (x86_accumulate_outgoing_args): Likewise.
27362 (x86_arch_always_fancy_math_387): Likewise.
27363 (processor_target_table): Add slm cost.
27364 (cpu_names): Add slm cpu name.
27365 (x86_option_override_internal): Set SLM ISA.
27366 (ix86_issue_rate): New case PROCESSOR_SLM.
27367 (ia32_multipass_dfa_lookahead): Likewise.
27368 (fold_builtin_cpu): Add slm.
27369
27370 * config/i386/i386.h (TARGET_SLM): New target macro.
27371 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27372 (processor_type): Add PROCESSOR_SLM.
27373
27374 * config/i386/i386.md (cpu): Add new value "slm".
27375 (slm.md): Include slm.md.
27376
27377 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27378 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27379
27380 * config/arm/arm-protos.h: Add and update function protos.
27381 * config/arm/arm.c (use_simple_return_p): New added.
27382 (thumb2_expand_return): Check simple_return flag.
27383 * config/arm/arm.md: Add simple_return and conditional simple_return.
27384 * config/arm/iterators.md: Add iterator for return and simple_return.
27385
27386 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27387
27388 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27389 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27390 (arm_emit_vfp_multi_reg_pop): Likewise.
27391 (thumb2_emit_ldrd_pop): Likewise.
27392 (arm_expand_epilogue): Add misc REG_CFA notes.
27393 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27394
27395 2013-05-29 Lawrence Crowl <crowl@google.com>
27396
27397 * config/arm/t-arm: Update for below.
27398
27399 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27400 Change type to hash_table. Update dependent calls and types.
27401
27402 * config/i386/t-cygming: Update for below.
27403
27404 * config/i386/t-interix: Update for below.
27405
27406 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27407 Change type to hash_table. Update dependent calls and types.
27408 (i386_find_on_wrapper_list::wrappers): Likewise.
27409
27410 * config/ia64/t-ia64: Update for below.
27411
27412 * config/ia64/ia64.c (bundle_state_table):
27413 Change type to hash_table. Update dependent calls and types.
27414
27415 * config/mips/mips.c (mips_reorg_process_insns::htab):
27416 Change type to hash_table. Update dependent calls and types.
27417
27418 * config/sol2.c (solaris_comdat_htab):
27419 Change type to hash_table. Update dependent calls and types.
27420
27421 * config/t-sol2: Update for above.
27422
27423 2013-05-29 Teresa Johnson <tejohnson@google.com>
27424
27425 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27426 functions are not yet marked as defined.
27427
27428 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27429 Pat Haugen <pthaugen@us.ibm.com>
27430 Peter Bergner <bergner@vnet.ibm.com>
27431
27432 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27433 instructions.
27434 (VEC_A): Likewise.
27435 (VEC_C): Likewise.
27436 (vrotl<mode>3): Likewise.
27437 (vashl<mode>3): Likewise.
27438 (vlshr<mode>3): Likewise.
27439 (vashr<mode>3): Likewise.
27440
27441 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27442 support for power8 V2DI builtins.
27443
27444 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27445 power8 V2DI builtins.
27446 (vupkhsw): Likewise.
27447 (vupklsw): Likewise.
27448 (vaddudm): Likewise.
27449 (vminsd): Likewise.
27450 (vmaxsd): Likewise.
27451 (vminud): Likewise.
27452 (vmaxud): Likewise.
27453 (vpkudum): Likewise.
27454 (vpksdss): Likewise.
27455 (vpkudus): Likewise.
27456 (vpksdus): Likewise.
27457 (vrld): Likewise.
27458 (vsld): Likewise.
27459 (vsrd): Likewise.
27460 (vsrad): Likewise.
27461 (vsubudm): Likewise.
27462 (vcmpequd): Likewise.
27463 (vcmpgtsd): Likewise.
27464 (vcmpgtud): Likewise.
27465 (vcmpequd_p): Likewise.
27466 (vcmpgtsd_p): Likewise.
27467 (vcmpgtud_p): Likewise.
27468 (vupkhsw): Likewise.
27469 (vupklsw): Likewise.
27470 (vaddudm): Likewise.
27471 (vmaxsd): Likewise.
27472 (vmaxud): Likewise.
27473 (vminsd): Likewise.
27474 (vminud): Likewise.
27475 (vpksdss): Likewise.
27476 (vpksdus): Likewise.
27477 (vpkudum): Likewise.
27478 (vpkudus): Likewise.
27479 (vrld): Likewise.
27480 (vsld): Likewise.
27481 (vsrad): Likewise.
27482 (vsrd): Likewise.
27483 (vsubudm): Likewise.
27484
27485 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27486 support for power8 V2DI instructions.
27487
27488 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27489 power8 V2DI instructions. Combine pack and unpack insns to use an
27490 iterator for each mode. Check whether a particular mode supports
27491 Altivec instructions instead of just checking TARGET_ALTIVEC.
27492 (UNSPEC_VPKUWUM): Likewise.
27493 (UNSPEC_VPKSHSS): Likewise.
27494 (UNSPEC_VPKSWSS): Likewise.
27495 (UNSPEC_VPKUHUS): Likewise.
27496 (UNSPEC_VPKSHUS): Likewise.
27497 (UNSPEC_VPKUWUS): Likewise.
27498 (UNSPEC_VPKSWUS): Likewise.
27499 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27500 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27501 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27502 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27503 (UNSPEC_VUPKHSB): Likewise.
27504 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27505 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27506 (UNSPEC_VUPKHSH): Likewise.
27507 (UNSPEC_VUPKLSB): Likewise.
27508 (UNSPEC_VUPKLSH): Likewise.
27509 (VI2): Likewise.
27510 (VI_char): Likewise.
27511 (VI_scalar): Likewise.
27512 (VI_unit): Likewise.
27513 (VP): Likewise.
27514 (VP_small): Likewise.
27515 (VP_small_lc): Likewise.
27516 (VU_char): Likewise.
27517 (add<mode>3): Likewise.
27518 (altivec_vaddcuw): Likewise.
27519 (altivec_vaddu<VI_char>s): Likewise.
27520 (altivec_vadds<VI_char>s): Likewise.
27521 (sub<mode>3): Likewise.
27522 (altivec_vsubcuw): Likewise.
27523 (altivec_vsubu<VI_char>s): Likewise.
27524 (altivec_vsubs<VI_char>s): Likewise.
27525 (altivec_vavgs<VI_char>): Likewise.
27526 (altivec_vcmpbfp): Likewise.
27527 (altivec_eq<mode>): Likewise.
27528 (altivec_gt<mode>): Likewise.
27529 (altivec_gtu<mode>): Likewise.
27530 (umax<mode>3): Likewise.
27531 (smax<mode>3): Likewise.
27532 (umin<mode>3): Likewise.
27533 (smin<mode>3): Likewise.
27534 (altivec_vpkuhum): Likewise.
27535 (altivec_vpkuwum): Likewise.
27536 (altivec_vpkshss): Likewise.
27537 (altivec_vpkswss): Likewise.
27538 (altivec_vpkuhus): Likewise.
27539 (altivec_vpkshus): Likewise.
27540 (altivec_vpkuwus): Likewise.
27541 (altivec_vpkswus): Likewise.
27542 (altivec_vpks<VI_char>ss): Likewise.
27543 (altivec_vpks<VI_char>us): Likewise.
27544 (altivec_vpku<VI_char>us): Likewise.
27545 (altivec_vpku<VI_char>um): Likewise.
27546 (altivec_vrl<VI_char>): Likewise.
27547 (altivec_vsl<VI_char>): Likewise.
27548 (altivec_vsr<VI_char>): Likewise.
27549 (altivec_vsra<VI_char>): Likewise.
27550 (altivec_vsldoi_<mode>): Likewise.
27551 (altivec_vupkhsb): Likewise.
27552 (altivec_vupkhs<VU_char>): Likewise.
27553 (altivec_vupkls<VU_char>): Likewise.
27554 (altivec_vupkhsh): Likewise.
27555 (altivec_vupklsb): Likewise.
27556 (altivec_vupklsh): Likewise.
27557 (altivec_vcmpequ<VI_char>_p): Likewise.
27558 (altivec_vcmpgts<VI_char>_p): Likewise.
27559 (altivec_vcmpgtu<VI_char>_p): Likewise.
27560 (abs<mode>2): Likewise.
27561 (vec_unpacks_hi_v16qi): Likewise.
27562 (vec_unpacks_hi_v8hi): Likewise.
27563 (vec_unpacks_lo_v16qi): Likewise.
27564 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27565 (vec_unpacks_lo_v8hi): Likewise.
27566 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27567 (vec_pack_trunc_v8h): Likewise.
27568 (vec_pack_trunc_v4si): Likewise.
27569 (vec_pack_trunc_<mode>): Likewise.
27570
27571 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27572 V2DI builtins.
27573 (vec_vmaxsd): Likewise.
27574 (vec_vmaxud): Likewise.
27575 (vec_vminsd): Likewise.
27576 (vec_vminud): Likewise.
27577 (vec_vpksdss): Likewise.
27578 (vec_vpksdus): Likewise.
27579 (vec_vpkudum): Likewise.
27580 (vec_vpkudus): Likewise.
27581 (vec_vrld): Likewise.
27582 (vec_vsld): Likewise.
27583 (vec_vsrad): Likewise.
27584 (vec_vsrd): Likewise.
27585 (vec_vsubudm): Likewise.
27586 (vec_vupkhsw): Likewise.
27587 (vec_vupklsw): Likewise.
27588
27589 2013-05-29 Jan Hubicka <jh@suse.cz>
27590
27591 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27592 flags; reorder rest of fields in more consistent way.
27593 (varpool_node): Remove analyzed, finalized and alias.
27594 (cgraph_ndoe): Likewise.
27595 (symtab_alias_ultimate_target): New function.
27596 (cgraph_function_node): Move offline.
27597 (cgraph_reset_node): Declare.
27598 (cgraph_comdat_can_be_unshared_p): Remove.
27599 (varpool_remove_initializer): Declare.
27600 (varpool_first_defined_variable, varpool_next_defined_variable
27601 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27602 (cgraph_function_with_gimple_body_p): Update.
27603 (varpool_all_refs_explicit_p): Update.
27604 (symtab_alias_target): New function.
27605 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27606 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27607 (cgraph_function_or_thunk_node): Simplify using
27608 symtab_alias_ultimate_target.
27609 (varpool_variable_node): Likewise.
27610 * cgraph.c (cgraph_create_function_alias): Update.
27611 (cgraph_add_thunk): Update.
27612 (cgraph_remove_node): Update.
27613 (dump_cgraph_node): Do not dump removed flags.
27614 (cgraph_function_body_availability): Update.
27615 (cgraph_propagate_frequency): Update.
27616 (verify_cgraph_node): Check sanity of local flag.
27617 (cgraph_function_node): Move here from cgraph.h; revamp for
27618 cgraph_function_or_thunk_node.
27619 * lto-symtab.c (lto_varpool_replace_node): Update.
27620 (lto_symtab_resolve_can_prevail_p): Update.
27621 (lto_symtab_merge_cgraph_nodes): Update.
27622 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27623 propagate_constants_accross_call, devirtualization_time_bonus,
27624 ipcp_propagate_stage): Update.
27625 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27626 * ipa-inline-transform.c (clone_inlined_nodes,
27627 preserve_function_body_p): Update.
27628 * ipa-reference.c (propagate): Update.
27629 (write_node_summary_p): Update.
27630 * toplev.c (wrapup_global_declaration_2): Update.
27631 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27632 (analyze_function) ... this one.
27633 (cgraph_process_new_functions): Update.
27634 (cgraph_reset_node): Export.
27635 (cgraph_finalize_function): Update.
27636 (cgraph_add_new_function): Update.
27637 (process_function_and_variable_attributes): Update.
27638 (varpool_finalize_decl): Update.
27639 (symbol_finalized): Remove.
27640 (symbol_finalized_and_needed): Rename to ...
27641 (symbol_defined_and_needed): ... update.
27642 (cgraph_analyze_functions): Update.
27643 (handle_alias_pairs): Update.
27644 (mark_functions_to_output): Update.
27645 (assemble_thunk): Update.
27646 (output_in_order): Update.
27647 (output_weakrefs): Update.
27648 (finalize_compilation_unit): Update.
27649 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27650 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27651 input_node, input_varpool_node): Update.
27652 * dbxout.c (dbxout_expand_expr): Update.
27653 * cgraphclones.c (cgraph_clone_node): Update.
27654 (cgraph_copy_node_for_versioning): Update.
27655 (cgraph_materialize_clone): Update.
27656 (cgraph_materialize_all_clones): Update.
27657 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27658 propagate_pure_const, propagate_nothrow): Update.
27659 * lto-streamer-out.c (lto_output, write_symbol): Update.
27660 * ipa-utils.c (ipa_reverse_postorder): Update.
27661 * ipa-inline.c (can_inline_edge_p): Update.
27662 (update_caller_keys, ipa_inline): Update.
27663 * dwarf2out.c (reference_to_unused,
27664 premark_types_used_by_global_vars_helper): Update.
27665 * tree-eh.c (tree_could_trap_p): Update.
27666 * ipa-split.c (consider_split, execute_split_functions): Update.
27667 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27668 has_addr_references_p): Update; move ahead in file for better
27669 readability.
27670 (process_references): Simplify.
27671 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27672 bodies are removed.
27673 (cgraph_comdat_can_be_unshared_p): Make static.
27674 (cgraph_externally_visible_p): Update.
27675 (varpool_externally_visible_p): Update.
27676 (function_and_variable_visibility): Update.
27677 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27678 ipa_tm_mark_force_output_node): Update.
27679 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27680 estimate_edge_devirt_benefit, inline_generate_summary,
27681 inline_write_summary): Update.
27682 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27683 * ipa-prop.c (ipa_compute_jump_functions): Update.
27684 (ipa_print_node_params, ipa_prop_read_section,
27685 ipa_update_after_lto_read, read_replacements_section): Update.
27686 * varasm.c (mark_decl_referenced): Update.
27687 (assemble_alias, dump_tm_clone_pairs): Update.
27688 * tree-inline.c (copy_bb): Update.
27689 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27690 Update.
27691 * symtab.c (dump_symtab_base): Print new flags.
27692 (verify_symtab_base): Verify new flags.
27693 (symtab_alias_ultimate_target): New function.
27694 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27695 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27696 Update.
27697 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27698 Update.
27699 * i386.c (ix86_get_function_versions_dispatcher,
27700 ix86_generate_version_dispatcher_body): Update.
27701 (fold_builtin_cpu): Use varpool_add_new_variable.
27702 * varpool.c (varpool_remove_initializer): Break out from ...
27703 (varpool_remove_node): ... this one.
27704 (dump_varpool_node, varpool_node_for_asm,
27705 cgraph_variable_initializer_availability, varpool_analyze_node,
27706 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27707 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27708 Update.
27709
27710 2013-05-29 Jan Hubicka <jh@suse.cz>
27711
27712 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27713
27714 2013-05-29 Easwaran Raman <eraman@google.com>
27715
27716 PR tree-optimization/57442
27717 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27718 when control exits the main loop.
27719
27720 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27721
27722 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27723 and RX600.
27724 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27725 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27726 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27727 option.
27728
27729 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27730
27731 PR tree-optimization/57441
27732 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27733 Don't limit size of incr_vec to number of candidates.
27734
27735 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27736
27737 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27738 and mips16 directories.
27739 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27740 (MULTILIB_DIRNAMES): Ditto.
27741 (MULTILIB_EXCEPTIONS): Add new exceptions.
27742 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27743 (MULTILIB_DIRNAMES): Ditto.
27744 (MULTILIB_EXCEPTIONS): Add new exceptions.
27745
27746 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27747 Marcus Shawcroft <marcus.shawcroft@arm.com>
27748
27749 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27750 SYMBOL_TINY_ABSOLUTE.
27751 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27752 SYMBOL_TINY_ABSOLUTE.
27753 (aarch64_expand_mov_immediate): Likewise.
27754 (aarch64_classify_symbol): Likewise.
27755 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27756 Permit SYMBOL_TINY_ABSOLUTE.
27757 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27758
27759 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27760 Marcus Shawcroft <marcus.shawcroft@arm.com>
27761
27762 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27763 Refactor if/switch. Replace gcc_assert with if.
27764
27765 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27766
27767 * config/i386/i386.c (initial_ix86_tune_features): Enable
27768 FP Reassociation for AMD bdver1 and bdver2.
27769
27770 2013-05-29 Martin Jambor <mjambor@suse.cz>
27771
27772 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27773 and IMAGPART_EXPR do not occur within other handled_components.
27774
27775 2013-05-29 Richard Biener <rguenther@suse.de>
27776
27777 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27778 access on whether the use is in the BB we currently try to
27779 vectorize.
27780 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27781 vectorize to vect_bb_slp_scalar_cost.
27782
27783 2013-05-29 Richard Biener <rguenther@suse.de>
27784
27785 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27786 computing scalar cost offsetted by stmts that are kept live
27787 by scalar uses.
27788 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27789 for computation of scalar cost.
27790
27791 2013-05-28 Steve Ellcey <sellcey@mips.com>
27792
27793 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27794
27795 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27796
27797 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27798 array notation built-in reduction functions.
27799 * doc/passes.texi (Passes): Added documentation about changes done
27800 for Cilk Plus.
27801 * doc/invoke.texi (C Dialect Options): Added documentation about
27802 the -fcilkplus flag.
27803 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27804 (BUILTINS_DEF): Depend on cilkplus.def.
27805 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27806 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27807 * cilkplus.def: New file.
27808
27809 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27810
27811 PR rtl-optimization/57439
27812 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27813
27814 2013-05-28 Easwaran Raman <eraman@google.com>
27815
27816 PR tree-optimization/57337
27817 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27818 (find_insert_point): Correctly identify the insertion point
27819 when two statements with the same UID is compared.
27820
27821 2013-05-28 Richard Biener <rguenther@suse.de>
27822
27823 PR tree-optimization/56787
27824 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27825 from the list of data references.
27826 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27827 clobbers.
27828 (vect_analyze_loop_operations): Likewise.
27829 (vect_transform_loop): Remove clobbers.
27830
27831 2013-05-28 Martin Jambor <mjambor@suse.cz>
27832
27833 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27834 and REALPART_EXPRs have scalar type.
27835
27836 2013-05-28 Richard Biener <rguenther@suse.de>
27837
27838 PR tree-optimization/57411
27839 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27840 virtual operands.
27841 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27842 virtual operand propagation.
27843
27844 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27845
27846 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27847 destination register for bmasksi_vis.
27848 (vector_init_bshuffle): Likewise.
27849 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27850
27851 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27852
27853 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27854 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27855 mode if the instruction isn't available in the original mode.
27856 * config/sparc/sparc.opt (mfix-ut699): New option.
27857 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27858 (divdf3): Turn into expander.
27859 (divdf3_nofix): New insn.
27860 (divdf3_fix): Likewise.
27861 (divsf3): Disable if -mfix-ut699.
27862 (sqrtdf2): Turn into expander.
27863 (sqrtdf2_nofix): New insn.
27864 (sqrtdf2_fix): Likewise.
27865 (sqrtsf2): Disable if -mfix-ut699.
27866
27867 2013-05-27 Richard Biener <rguenther@suse.de>
27868
27869 PR middle-end/57412
27870 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27871 block for the new loop.
27872
27873 2013-05-27 Richard Biener <rguenther@suse.de>
27874
27875 PR tree-optimization/57343
27876 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27877 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27878 (number_of_iterations_cond): Do not build the folded tree.
27879
27880 2013-05-27 Richard Biener <rguenther@suse.de>
27881
27882 Revert
27883 PR middle-end/57381
27884 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27885 OEP_CONSTANT_ADDRESS_OF retained.
27886
27887 PR tree-optimization/57417
27888 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27889 for unchanged base.
27890 (set_ssa_val_to): Compare addresses using
27891 get_addr_base_and_unit_offset.
27892
27893 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27894
27895 PR rtl-optimization/56833
27896 * postreload.c (move2add_record_mode): New function.
27897 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27898 (move2add_use_add2_insn): Use move2add_record_sym_value.
27899 (move2add_use_add3_insn): Likewise.
27900 (reload_cse_move2add): Use move2add_valid_value_p and
27901 move2add_record_mode. Invalidate call-clobbered and REG_INC
27902 affected regs by setting reg_mode to VOIDmode.
27903 (move2add_note_store): Don't pretend the inside of a SUBREG is
27904 the actual destination. Invalidate single/leading registers by
27905 setting reg_mode to VOIDmode.
27906 Use move2add_record_sym_value, move2add_valid_value_p and
27907 move2add_record_mode.
27908
27909 2013-05-27 Richard Biener <rguenther@suse.de>
27910
27911 PR tree-optimization/57396
27912 * tree-affine.c (double_int_constant_multiple_p): Properly
27913 return false for val == 0 and div != 0.
27914
27915 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27916
27917 * config/mips/mips.h: Use #elif in preprocessor conditions.
27918
27919 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27920
27921 PR target/53916
27922 * config/mips/constraints.md (kl): New constraint.
27923 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27924 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27925 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27926 from LO for MIPS16.
27927 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27928
27929 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27930
27931 PR target/55777
27932 * config/mips/mips.c (mips_can_inline_p): New function.
27933 (TARGET_CAN_INLINE_P): Define.
27934
27935 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27936
27937 * sched-int.h (ds_t, dw_t): Make unsigned int.
27938 Fix documentation that describes how all the ds_t bits are used.
27939 Reserve the last bit for delayed-branch scheduling.
27940 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27941 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27942 (gen_dep_weak_1): Remove prototype.
27943 * sched-deps.c (get_dep_weak_1): Make static.
27944 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27945 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27946 * doc/tm.texi: Regenerate.
27947 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27948
27949 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27950
27951 PR debug/56950
27952 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27953
27954 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27955 Sandra Loosemore <sandra@codesourcery.com>
27956
27957 * config.gcc (powerpc-*): Allow native for with-cpu.
27958
27959 2013-05-24 Jeff Law <law@redhat.com>
27960
27961 PR tree-optimization/57124
27962 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27963 conversion feeding a condition if the range has an overflow
27964 if -fstrict-overflow. Add warnings for when we do make the
27965 transformation.
27966
27967 2013-05-24 Dehao Chen <dehao@google.com>
27968
27969 * tree-cfg.c (locus_discrim_map): Fix the typo.
27970 (locus_discrim_hasher): Likewise.
27971 (locus_discrim_hasher::hash): Likewise.
27972 (locus_discrim_hasher::equal): Likewise.
27973
27974 2013-05-24 Martin Jambor <mjambor@suse.cz>
27975
27976 PR tree-optimization/57294
27977 * cgraph.h (ipa_record_stmt_references): Declare.
27978 * cgraphbuild.c (ipa_record_stmt_references): New function.
27979 (build_cgraph_edges): Use ipa_record_stmt_references.
27980 (rebuild_cgraph_edges): Likewise.
27981 (cgraph_rebuild_references): Likewise.
27982 * ipa-prop.c (ipa_modify_call_arguments): Discard references
27983 associated with the old statement and build references from the
27984 newly built statements.
27985 * ipa-ref.c (ipa_remove_stmt_references): New function.
27986 * ipa-ref.h (ipa_remove_stmt_references): Declare.
27987
27988 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
27989
27990 * lra-constraints.c (emit_spill_move): Use smaller mode for
27991 mem-mem moves.
27992 (check_and_process_move): Consider mem-reg moves for secondary
27993 too.
27994 (curr_insn_transform): Don't lose insns emitted before for
27995 secondary memory moves.
27996 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
27997 reg set up in the current insn.
27998
27999 2013-05-24 Dehao Chen <dehao@google.com>
28000
28001 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28002 hash function.
28003 (locus_descrim_hasher::equal): Likewise.
28004 (build_gimple_cfg): New discriminator assignment algorithm.
28005 (make_edges): Likewise.
28006 (next_discriminator_for_locus): Likewise.
28007 (same_line_p): Likewise.
28008 (assign_discriminators): Likewise.
28009 (make_cond_expr_edges): Likewise.
28010 (make_gimple_switch_edges): Likewise.
28011 (make_goto_expr_edges): Likewise.
28012 (make_gimple_asm_edges): Likewise.
28013
28014 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28015
28016 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28017 X format specifier to only display bottom 16 bits.
28018 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28019 immediate to match for operand 2, since it will be masked.
28020
28021 2013-05-24 Richard Biener <rguenther@suse.de>
28022
28023 PR tree-optimization/57287
28024 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28025 all SSA names that occur in abnormal PHIs.
28026
28027 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28028
28029 PR tree-ssa/57385
28030 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28031 that index is not negative.
28032
28033 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28034
28035 PR rtl-optimization/55177
28036 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28037 (simplify_byte_swapping_operation): New.
28038 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28039 (simplify_relational_operation_1): Deal with BSWAP.
28040
28041 2013-05-23 Richard Henderson <rth@redhat.com>
28042
28043 PR target/56742
28044 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28045 (ix86_reorg): Call it.
28046
28047 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28048
28049 PR target/57379
28050 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28051 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28052 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28053
28054 2013-05-23 Christian Bruel <christian.bruel@st.com>
28055
28056 PR debug/57351
28057 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28058
28059 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28060 Marcus Shawcroft <marcus.shawcroft@arm.com>
28061
28062 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28063 * config/aarch64/constraints.md (Usa): Remove.
28064 * doc/md.texi (AArch64 Usa): Remove.
28065
28066 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28067 Marcus Shawcroft <marcus.shawcroft@arm.com>
28068
28069 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28070 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28071 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28072 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28073
28074 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28075
28076 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28077 instruction (AdvSIMD).
28078 * config/aarch64/aarch64-builtins.c
28079 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28080 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28081
28082 2013-05-23 Martin Jambor <mjambor@suse.cz>
28083
28084 PR middle-end/57347
28085 * tree.h (contains_bitfld_component_ref_p): Declare.
28086 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28087 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28088 caller.
28089 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28090 not access a bit-field. Assert all final offsets are byte-aligned.
28091
28092 2013-05-23 Richard Biener <rguenther@suse.de>
28093
28094 PR tree-optimization/57380
28095 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28096 least one invariant or re-used load.
28097 * passes.c (init_optimization_passes): Move pass_phiprop before
28098 pass_forwprop.
28099
28100 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28101
28102 * config/aarch64/aarch64-simd.md
28103 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28104
28105 2013-05-23 Richard Biener <rguenther@suse.de>
28106
28107 PR middle-end/57381
28108 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28109 OEP_CONSTANT_ADDRESS_OF retained.
28110
28111 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28112
28113 PR middle-end/57344
28114 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28115 don't lower unit. Handle unit not being always BITS_PER_WORD.
28116
28117 2013-05-23 Richard Biener <rguenther@suse.de>
28118
28119 PR rtl-optimization/57341
28120 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28121 instead of true_dependence.
28122
28123 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28124
28125 * bb-reorder.c (branch_threshold): Make const.
28126 (exec_threshold): Ditto.
28127
28128 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28129 Pat Haugen <pthaugen@us.ibm.com>
28130 Peter Bergner <bergner@vnet.ibm.com>
28131
28132 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28133 documentation for the power8 crypto builtins.
28134
28135 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28136
28137 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28138 macros for defining power8 builtin functions.
28139 (BU_P8V_AV_2): Likewise.
28140 (BU_P8V_AV_P): Likewise.
28141 (BU_P8V_VSX_1): Likewise.
28142 (BU_P8V_OVERLOAD_1): Likewise.
28143 (BU_P8V_OVERLOAD_2): Likewise.
28144 (BU_CRYPTO_1): Likewise.
28145 (BU_CRYPTO_2): Likewise.
28146 (BU_CRYPTO_3): Likewise.
28147 (BU_CRYPTO_OVERLOAD_1): Likewise.
28148 (BU_CRYPTO_OVERLOAD_2): Likewise.
28149 (XSCVSPDP): Fix typo, point to the correct instruction.
28150 (VCIPHER): Add power8 crypto builtins.
28151 (VCIPHERLAST): Likewise.
28152 (VNCIPHER): Likewise.
28153 (VNCIPHERLAST): Likewise.
28154 (VPMSUMB): Likewise.
28155 (VPMSUMH): Likewise.
28156 (VPMSUMW): Likewise.
28157 (VPERMXOR_V2DI): Likewise.
28158 (VPERMXOR_V4SI: Likewise.
28159 (VPERMXOR_V8HI: Likewise.
28160 (VPERMXOR_V16QI: Likewise.
28161 (VSHASIGMAW): Likewise.
28162 (VSHASIGMAD): Likewise.
28163 (VPMSUM): Likewise.
28164 (VPERMXOR): Likewise.
28165 (VSHASIGMA): Likewise.
28166
28167 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28168 __CRYPTO__ if the crypto instructions are available.
28169 (altivec_overloaded_builtins): Add support for overloaded power8
28170 builtins.
28171
28172 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28173 support for power8 crypto builtins.
28174 (builtin_function_type): Likewise.
28175 (altivec_init_builtins): Add support for builtins that take vector
28176 long long (V2DI) arguments.
28177
28178 * config/rs6000/crypto.md: New file, define power8 crypto
28179 instructions.
28180
28181 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28182 Pat Haugen <pthaugen@us.ibm.com>
28183 Peter Bergner <bergner@vnet.ibm.com>
28184
28185 * doc/invoke.texi (Option Summary): Add power8 options.
28186 (RS/6000 and PowerPC Options): Likewise.
28187
28188 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28189 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28190 wm, wn, wr documentation.
28191
28192 * config/rs6000/constraints.md (wm): New constraint for VSX
28193 registers if direct move instructions are enabled.
28194 (wn): New constraint for no registers.
28195 (wq): New constraint for quad word even GPR registers.
28196 (wr): New constraint if 64-bit instructions are enabled.
28197 (wv): New constraint if power8 vector instructions are enabled.
28198 (wQ): New constraint for quad word memory locations.
28199
28200 * config/rs6000/predicates.md (const_0_to_15_operand): New
28201 constraint for 0..15 for crypto instructions.
28202 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28203 as GPR and floating point registers.
28204 (int_reg_operand): New predicate to match only GPR registers.
28205 (base_reg_operand): New predicate to match base registers.
28206 (quad_int_reg_operand): New predicate to match even GPR registers
28207 for quad memory operations.
28208 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28209 operations in both GPR and VSX registers.
28210 (quad_memory_operand): New predicate for quad memory operations.
28211 (reg_or_indexed_operand): New predicate for direct move support.
28212
28213 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28214 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28215 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28216 (POWERPC_MASKS): Add power8 options.
28217 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28218 various options.
28219
28220 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28221 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28222
28223 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28224 (-mpower8-fusion): New power8 options.
28225 (-mpower8-fusion-sign): Likewise.
28226 (-mpower8-vector): Likewise.
28227 (-mcrypto): Likewise.
28228 (-mdirect-move): Likewise.
28229 (-mquad-memory): Likewise.
28230
28231 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28232 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28233 registers.
28234 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28235 (rs6000_debug_vector_unit): Add p8_vector.
28236 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28237 definitions. Also print fusion state.
28238 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28239 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28240 (rs6000_option_override_internal): Add support for power8.
28241 (rs6000_common_init_builtins): Add debugging for skipped builtins
28242 if -mdebug=builtin.
28243 (rs6000_adjust_cost): Add power8 support.
28244 (rs6000_issue_rate): Likewise.
28245 (insn_must_be_first_in_group): Likewise.
28246 (insn_must_be_last_in_group): Likewise.
28247 (force_new_group): Likewise.
28248 (rs6000_register_move_cost): Likewise.
28249 (rs6000_opt_masks): Likewise.
28250
28251 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28252 power8 capable assembler, default to power7 options.
28253 (TARGET_DIRECT_MOVE): Likewise.
28254 (TARGET_CRYPTO): Likewise.
28255 (TARGET_P8_VECTOR): Likewise.
28256 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28257 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28258 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28259 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28260 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28261 (TARGET_XSCVDPSPN): Likewise.
28262 (TARGET_XSCVSPDPN): Likewsie.
28263 (TARGET_SYNC_HI_QI): Likewise.
28264 (TARGET_SYNC_TI): Likewise.
28265 (MASK_CRYPTO): Likewise.
28266 (MASK_DIRECT_MOVE): Likewise.
28267 (MASK_P8_FUSION): Likewise.
28268 (MASK_P8_VECTOR): Likewise.
28269 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28270 temporary used by some of the direct move instructions to get two FP
28271 temporary registers does not force creation of a stack frame.
28272 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28273 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28274 that any VSX registers are tieable, even if they are also an
28275 Altivec vector mode.
28276 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28277 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28278 (RS6000_BTM_CRYPTO): Likewise.
28279 (RS6000_BTM_COMMON): Likewise.
28280
28281 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28282 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28283 (enum rs6000_vector): Add power8 vector support.
28284
28285 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28286
28287 PR target/19599
28288 PR target/57340
28289 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28290 (any_sibcall_could_use_r3): this and handle indirect calls.
28291 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28292
28293 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28294
28295 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28296
28297 2013-05-22 Richard Biener <rguenther@suse.de>
28298
28299 PR middle-end/57349
28300 * profile.c (branch_prob): Do not split blocks that are
28301 abnormally receiving from ECF_RETURNS_TWICE functions.
28302
28303 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28304
28305 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28306 address mode. Move pointer mode initialization to the same place.
28307
28308 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28309
28310 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28311 while it has any effect.
28312
28313 2013-05-21 Easwaran Raman <eraman@google.com>
28314
28315 PR tree-optimization/57322
28316 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28317 UID of the statement added to the BB to be 1.
28318
28319 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28320
28321 PR tree-optimization/57331
28322 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28323 of conversion from pointer type to integral type with integer.
28324
28325 2013-05-21 Martin Jambor <mjambor@suse.cz>
28326
28327 PR lto/57289
28328 * ipa-prop.c (ipa_read_node_info): Process param_used and
28329 controlled_uses in the same order as when writing.
28330
28331 2013-05-21 Magnus Granberg <baldrick@free.fr>
28332
28333 PR plugins/56754
28334 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28335
28336 2013-05-21 Richard Biener <rguenther@suse.de>
28337
28338 PR tree-optimization/57318
28339 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28340 estimate stmts with side-effects as likely eliminated.
28341
28342 2013-05-21 Richard Biener <rguenther@suse.de>
28343
28344 PR tree-optimization/57330
28345 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28346 preserve the call stmts fntype.
28347
28348 2013-05-21 Richard Biener <rguenther@suse.de>
28349
28350 PR tree-optimization/57303
28351 * tree-ssa-sink.c (statement_sink_location): Improve killing
28352 stmt detection and properly handle self-assignments.
28353
28354 2013-05-21 Christian Bruel <christian.bruel@st.com>
28355
28356 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28357 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28358 registers. Set register size out of the PARALLEL loop.
28359
28360 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28361
28362 PR target/56547
28363 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28364 (*fmasf4, *fmasf4_media): New insns.
28365
28366 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28367
28368 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28369 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28370 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28371 (mips_idiv_insns): Update the comments to say that the returned
28372 instruction counts are in units of BASE_INSN_LENGTH.
28373 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28374 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28375 using 2 rather than 4 as the length of indirect MIPS16 and
28376 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28377 length of a NOP. Don't divide MIPS16 lengths by 2.
28378 (mips16_split_long_branches): Assume a branch is long if the
28379 length is greater than 4 rather than 8.
28380 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28381 rather than multiplying them by 2. Multiply instruction counts
28382 by BASE_INSN_LENGTH rather than 4.
28383 (*jump_mips16, tls_get_tp_mips16_<mode>)
28384 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28385
28386 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28387
28388 * config/mips/mips.md (extended_mips16): Remove branch case.
28389 (length): Remove duplicated extended_mips16 test.
28390
28391 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28392
28393 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28394
28395 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28396
28397 * recog.h (Recog_data): Rename to...
28398 (recog_data_d): ...this.
28399 (recog_data): Update accordingly.
28400 * recog.c (recog_data): Likewise.
28401 * reload.c (save_recog_data): Likewise.
28402 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28403 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28404
28405 2013-05-17 Julian Brown <julian@codesourcery.com>
28406
28407 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28408 found in a REG_EQUAL note, invalidate it.
28409
28410 2013-05-17 Easwaran Raman <eraman@google.com>
28411
28412 * tree-ssa-reassoc.c (find_insert_point): New function.
28413 (insert_stmt_after): Likewise.
28414 (get_def_stmt): Likewise.
28415 (ensure_ops_are_available): Likewise.
28416 (not_dominated_by): Likewise.
28417 (rewrite_expr_tree): Do not move statements beyond what is
28418 necessary. Remove call to swap_ops_for_binary_stmt...
28419 (reassociate_bb): ... and move it here.
28420 (build_and_add_sum): Assign UIDs for new statements.
28421 (linearize_expr): Likewise.
28422 (do_reassoc): Renumber gimple statement UIDs.
28423
28424 2013-05-17 Jan Hubicka <jh@suse.cz>
28425
28426 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28427 weakrefs.
28428 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28429 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28430 weakrefs.
28431 (output_weakrefs): Update.
28432
28433 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28434 Martin Jambor <mjambor@suse.cz>
28435
28436 PR middle-end/57276
28437 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28438 value that corresponds to the given aggval is found in values vector.
28439
28440 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28441
28442 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28443 sse, sse2, sse3, ssse3 and sse4a flags to options.
28444
28445 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28446
28447 * gengtype-state.c: (s_expr_writer): New class, to handle
28448 prettifying of output layout of s-expressions.
28449 (state_writer): New class, to write out gtype.state.
28450 (state_written_type_count): Move this variable into member data of
28451 state_writer.
28452 (s_expr_writer::s_expr_writer): New code: constructor for new class
28453 (state_writer::state_writer(): ditto
28454 (s_expr_writer::write_new_line): New function
28455 (s_expr_writer::write_any_indent): ditto
28456 (s_expr_writer::begin_s_expr): ditto
28457 (s_expr_writer::end_s_expr): ditto
28458 (write_state_fileloc): convert to method of state_writer...
28459 (state_writer:: write_state_fileloc): ...and use methods of
28460 s_expr_writer to write indentation into the gtype.state output file
28461 to visually represent the hierarchical structure of the list
28462 structures
28463 (write_state_fields): ditto, renaming to...
28464 (state_writer::write_state_fields)
28465 (write_state_a_string): ditto, renaming to...
28466 (state_writer::write_state_a_string)
28467 (write_state_string_option): ditto, renaming to...
28468 (state_writer::write_state_string_option)
28469 (write_state_type_option): ditto, renaming to...
28470 (state_writer::write_state_type_option)
28471 (write_state_nested_option): ditto, renaming to...
28472 (state_writer::write_state_nested_option)
28473 (write_state_option): ditto, renaming to...
28474 (state_writer::write_state_option)
28475 (write_state_options): ditto, renaming to...
28476 (state_writer::write_state_options)
28477 (write_state_lang_bitmap): ditto, renaming to...
28478 (state_writer::write_state_lang_bitmap)
28479 (write_state_version): ditto, renaming to...
28480 (state_writer::write_state_version)
28481 (write_state_scalar_type): ditto, renaming to...
28482 (state_writer::write_state_scalar_type)
28483 (write_state_string_type): ditto, renaming to...
28484 (state_writer::write_state_string_type)
28485 (write_state_undefined_type): ditto, renaming to...
28486 (state_writer::write_state_undefined_type)
28487 (write_state_struct_union_type): ditto, renaming to...
28488 (state_writer::write_state_struct_union_type)
28489 (write_state_struct_type): ditto, renaming to...
28490 (state_writer::write_state_struct_type)
28491 (write_state_user_struct_type): ditto, renaming to...
28492 (state_writer::write_state_user_struct_type)
28493 (write_state_lang_struct_type): ditto, renaming to...
28494 (state_writer::write_state_lang_struct_type)
28495 (write_state_param_struct_type): ditto, renaming to...
28496 (state_writer::write_state_param_struct_type)
28497 (write_state_pointer_type): ditto, renaming to...
28498 (state_writer::write_state_pointer_type)
28499 (write_state_array_type): ditto, renaming to...
28500 (state_writer::write_state_array_type)
28501 (write_state_gc_used): ditto, renaming to...
28502 (state_writer::write_state_gc_used)
28503 (write_state_common_type_content): ditto, renaming to...
28504 (state_writer::write_state_common_type_content)
28505 (write_state_type): ditto, renaming to...
28506 (state_writer::write_state_type)
28507 (write_state_pair_list): ditto, renaming to...
28508 (state_writer::write_state_pair_list)
28509 (write_state_pair): ditto, renaming to...
28510 (state_writer::write_state_pair)
28511 (write_state_typedefs): ditto, renaming to...
28512 (state_writer::write_state_typedefs)
28513 (write_state_structures): ditto, renaming to...
28514 (state_writer::write_state_structures)
28515 (write_state_param_structs): ditto, renaming to...
28516 (state_writer::write_state_param_structs)
28517 (write_state_variables): ditto, renaming to...
28518 (state_writer::write_state_variables)
28519 (write_state_srcdir): ditto, renaming to...
28520 (state_writer::write_state_srcdir)
28521 (write_state_files_list): ditto, renaming to...
28522 (state_writer::write_state_files_list)
28523 (write_state_languages): ditto, renaming to...
28524 (state_writer::write_state_languages)
28525 (write_state): create a state_writer instance and use it when
28526 writing out the state file
28527
28528 2013-05-17 Mike Stump <mikestump@comcast.net>
28529
28530 PR rtl-optimization/57304
28531 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28532 accessing DF_REF_REAL_LOC.
28533
28534 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28535
28536 PR rtl-optimization/57281
28537 PR rtl-optimization/57300
28538 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28539 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28540 what the other splitter did if the registers are dead.
28541
28542 2013-05-17 Richard Biener <rguenther@suse.de>
28543
28544 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28545 MEM_REF offsets.
28546
28547 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28548
28549 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28550 linking.
28551
28552 2013-05-17 Marek Polacek <polacek@redhat.com>
28553
28554 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28555 length when doing non-zero store of storing '\0' to '\0'.
28556
28557 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28558
28559 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28560 vect_external_def oprnd1 with loop_vinfo, try to emit
28561 optional cast, negation and and stmts on the loop preheader
28562 edge instead of into the pattern def seq.
28563
28564 PR tree-optimization/57051
28565 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28566 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28567
28568 2013-05-16 Nick Clifton <nickc@redhat.com>
28569
28570 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28571 (rl78_is_naked_func): New function.
28572 (rl78_expand_prologue): Skip prologue generation for naked functions.
28573 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28574 * doc/extend.texi (naked): Add RL78 to the list of processors
28575 that supports this attribute.
28576
28577 2013-05-16 Jeff Law <law@redhat.com>
28578
28579 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28580
28581 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28582
28583 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28584 cache parameters using detect_caches_amd also for CYRIX,
28585 NSC and TM2 signatures.
28586
28587 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28588 Dzianis Kahanovich <mahatma@eu.by>
28589
28590 PR target/45359
28591 PR target/46396
28592 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28593 VIA/Centaur processors and determine their cache parameters
28594 using detect_caches_amd.
28595
28596 2013-05-16 Teresa Johnson <tejohnson@google.com>
28597
28598 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28599 (rtl_verify_edges): New function.
28600 (rtl_verify_bb_insns): Ditto.
28601 (rtl_verify_bb_pointers): Ditto.
28602 (rtl_verify_bb_insn_chain): Ditto.
28603 (rtl_verify_fallthru): Ditto.
28604 (rtl_verify_bb_layout): Ditto.
28605 (rtl_verify_flow_info_1): Outline checks into new functions.
28606 (rtl_verify_flow_info): Ditto.
28607
28608 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28609
28610 * cfghooks.c (copy_bbs): Add update_dominance argument.
28611 * cfghooks.h (copy_bbs): Update prototype.
28612 * tree-cfg.c (gimple_duplicate_sese_region):
28613 Add update_dominance argument.
28614 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28615 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28616 gimple_duplicate_sese_region call.
28617 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28618 Update copy_bbs call.
28619 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28620 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28621
28622 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28623
28624 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28625 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28626 vect_recog_rotate_pattern.
28627 (vect_recog_rotate_pattern): New function.
28628
28629 2013-05-16 Jason Merrill <jason@redhat.com>
28630
28631 * Makefile.in (LLINKER): New variable.
28632 (mostlyclean): Remove link mutex.
28633 * configure.ac: Handle --enable-link-mutex.
28634 * lock-and-run.sh: New script.
28635
28636 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28637
28638 PR target/19599
28639 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28640 for NULL decl.
28641
28642 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28643
28644 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28645
28646 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28647
28648 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28649 * config/arm/arm.c (next_consecutive_mem): New function.
28650 (gen_movmem_ldrd_strd): Likewise.
28651 * config/arm/arm.md (movmemqi): Update condition and code.
28652 (unaligned_loaddi, unaligned_storedi): New patterns.
28653
28654 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28655
28656 * config.gcc: Obsolete *-*-solaris2.9*.
28657 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28658
28659 2013-05-16 Richard Biener <rguenther@suse.de>
28660
28661 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28662 earlier, after GRAPHITE transforms and IV canonicalization.
28663
28664 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28665
28666 * omp-low.c (extract_omp_for_data): For collapsed loops,
28667 if at least one of the loops is known at compile time to
28668 iterate zero times, set count to 0.
28669 (expand_omp_regimplify_p): New function.
28670 (expand_omp_for_generic): For collapsed loops, if at least
28671 one of the loops isn't known to iterate at least once,
28672 add runtime check with setting count to 0.
28673 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28674 For unsigned types if it isn't known at compile time that
28675 the loop will iterate at least once, add runtime check to bypass
28676 the whole loop if initial condition isn't true.
28677
28678 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28679
28680 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28681
28682 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28683
28684 PR middle-end/57286
28685 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28686 transformations to avoid an infinite loop.
28687
28688 2013-05-16 Marek Polacek <polacek@redhat.com>
28689
28690 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28691
28692 2013-05-15 Leif Ekblad <leif@rdos.net>
28693
28694 * config/i386/i386.c (ix86_decompose_address): Use
28695 DEFAULT_TLS_SEG_REG to access TLS segment register.
28696 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28697 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28698 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28699
28700 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28701
28702 PR target/57260
28703 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28704 sibling calls to functions that would normally be lazily bound,
28705 unless $gp is call-clobbered.
28706
28707 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28708
28709 * config/i386/i386.c (ix86_option_override_internal): Update
28710 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28711 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28712 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28713 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28714 of TARGET_3DNOW.
28715 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28716
28717 2013-05-15 Andreas Schwab <schwab@suse.de>
28718
28719 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28720 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28721 third operand.
28722
28723 2013-05-15 Teresa Johnson <tejohnson@google.com>
28724
28725 * loop-unroll.c (report_unroll_peel): Check decision before
28726 emitting unroll/peel message.
28727
28728 2013-05-15 Teresa Johnson <tejohnson@google.com>
28729
28730 * function.h (has_bb_partition): New rtl_data flag.
28731 (bb_reorder_complete): Ditto.
28732 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28733 instead of flag_reorder_blocks_and_partition.
28734 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28735 with some enhancements.
28736 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28737 * bb-reorder.c (connect_traces): Check for has_bb_partition
28738 instead of flag_reorder_blocks_and_partition.
28739 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28740 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28741 verify_hot_cold_block_grouping.
28742 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28743
28744 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28745
28746 PR target/19599
28747 * config/arm/predicates.md (call_insn_operand): New predicate.
28748 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28749 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28750 if insn is not a tail call.
28751 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28752 registers.
28753 * config/arm/arm.h (enum reg_class): New caller save register class.
28754 (REG_CLASS_NAMES): Likewise.
28755 (REG_CLASS_CONTENTS): Likewise.
28756 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28757 without decls.
28758
28759 2013-05-15 Richard Biener <rguenther@suse.de>
28760
28761 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28762 of MSG_OPTIMIZED_LOCATIONS.
28763 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28764 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28765 message.
28766 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28767 of MSG_OPTIMIZED_LOCATIONS.
28768 (execute_vect_slp): Likewise.
28769 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28770 (vect_create_cond_for_alias_checks): Likewise.
28771 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28772 (vect_recog_widen_mult_pattern): Likewise.
28773 (vect_recog_widen_sum_pattern): Likewise.
28774 (vect_recog_over_widening_pattern): Likewise.
28775 (vect_recog_widen_shift_pattern): Likewise.
28776 (vect_recog_vector_vector_shift_pattern): Likewise.
28777 (vect_recog_divmod_pattern): Likewise.
28778 (vect_recog_mixed_size_cond_pattern): Likewise.
28779 (vect_recog_bool_pattern): Likewise.
28780 (vect_pattern_recog_1): Likewise.
28781
28782 2013-05-15 Martin Jambor <mjambor@suse.cz>
28783
28784 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28785 non-functions to builtin_unreachable.
28786 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28787 correct when new direct edges were discovered.
28788
28789 2013-05-15 Martin Jambor <mjambor@suse.cz>
28790
28791 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28792 header, print symbol order instead of node uid, print more information
28793 about indirect edge targets.
28794 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28795 uids.
28796 (ipa_make_edge_direct_to_target): Likewise.
28797 (remove_described_reference): Likewise.
28798 (propagate_controlled_uses): Likewise.
28799 (ipa_print_node_params): Also print symbol order.
28800 (ipcp_transform_function): Print symbol order instead of node uids.
28801 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28802 (cgraph_get_create_real_symbol_node): Likewise.
28803 * ipa-cp.c (print_lattice): Likewise.
28804 (print_all_lattices): Likewise.
28805 (determine_versionability): Likewise.
28806 (initialize_node_lattices): Likewise.
28807 (estimate_local_effects): Likewise.
28808 (update_profiling_info): Likewise.
28809 (create_specialized_node): Likewise.
28810 (perhaps_add_new_callers): Likewise.
28811 (decide_about_value): Likewise.
28812 (decide_whether_version_node): Likewise.
28813 (identify_dead_nodes): Likewise.
28814 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28815 (dump_inline_summary): Likewise.
28816 (estimate_node_size_and_time): Likewise.
28817 (inline_analyze_function): Likewise.
28818 * ipa-inline.c (report_inline_failed_reason): Likewise.
28819 (want_early_inline_function_p): Likewise.
28820 (edge_badness): Likewise.
28821 (update_edge_key): Likewise.
28822 (inline_small_functions): Likewise. Add dumping of order to two other
28823 dumps.
28824 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28825 instead of node uids.
28826 (propagate_pure_const): Likewise.
28827 (propagate_pure_const): Likewise.
28828 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28829 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28830 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28831 of node uids.
28832 * tree-pretty-print.c (dump_function_header): Likewise.
28833 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28834 Print symbol order instead of node uids.
28835
28836 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28837
28838 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28839 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28840
28841 2013-05-15 Richard Biener <rguenther@suse.de>
28842
28843 PR tree-optimization/57275
28844 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28845 return value for fail to do runtime alias checks for gather loads.
28846
28847 2013-05-15 Jan Hubicka <jh@suse.cz>
28848
28849 PR lto/57038
28850 PR lto/47375
28851 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28852 weakrefs are not external.
28853 (lto_symtab_merge_decls): Fix thinko when dealing with
28854 non-lto_symtab decls.
28855 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28856 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28857 * varpool.c (dump_varpool_node): Dump more flags.
28858
28859 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28860
28861 * config/i386/i386.c (processor_alias_table): Add instruction
28862 FSGSBASE for AMD bdver3 architecture.
28863
28864 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28865
28866 * tree.c (warn_deprecated_use): Print file:line using locus color.
28867 * diagnostic.c (diagnostic_report_current_module): Print file:line
28868 and file:line:column using locus color.
28869
28870 2013-05-14 Mike Stump <mikestump@comcast.net>
28871
28872 * gdbinit.in: Add __null.
28873
28874 2013-05-14 Mike Stump <mikestump@comcast.net>
28875
28876 * recog.h: Rename struct recog_data to Recog_data.
28877 * recog.c: Likewise.
28878 * reload.c (can_reload_into): Likewise.
28879 * config/picochip/picochip.c: Likewise.
28880
28881 2013-05-14 Mike Stump <mikestump@comcast.net>
28882
28883 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28884
28885 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28886
28887 * resource.h (struct resources): Remove unch_memory member.
28888 (CLEAR_RESOURCE): Don't clear unch_memory.
28889 * resource.c (mark_referenced_resources): Don't set it.
28890 (mark_set_resources): Likewise.
28891 (mark_target_live_regs): Don't clear it.
28892 (init_resource_info): Likewise.
28893 * reorg.c (resource_conflicts_p): Don't compare it.
28894 (redundant_insn): Don't set it.
28895
28896 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28897 Remove prototypes.
28898 * emit-rtl.c (next_label): Remove unused function.
28899 (skip_consecutive_labels, link_cc0_insns): Move to ...
28900 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28901 only place where these functions are used, and make them static.
28902
28903 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28904
28905 * fold-const.c (fold_negate_expr): Handle vectors.
28906 (fold_truth_not_expr): Make it static.
28907 (fold_invert_truthvalue): New static function.
28908 (invert_truthvalue_loc): Handle vectors. Do not call
28909 fold_truth_not_expr directly.
28910 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28911 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28912 (fold_comparison): Handle vector constants.
28913 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28914 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28915 * tree.h (fold_truth_not_expr): Remove declaration.
28916
28917 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28918
28919 * config/aarch64/aarch64-simd.md
28920 (aarch64_vcond_internal<mode>): Rename to...
28921 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28922 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28923 float modes. Clarify all iterator modes.
28924 (vcond<mode><mode>): Use new name for vcond expanders.
28925 (vcond<v_cmp_result><mode>): Likewise.
28926 (vcondu<mode><mode>: Likewise.
28927 * config/aarch64/iterators.md (VDQF_COND): New.
28928
28929 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28930
28931 PR bootstrap/57266
28932 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28933 variable for the shift amount. Check that we shift by non-negative
28934 amounts.
28935
28936 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28937
28938 PR target/42017
28939 * config/arm/arm.h (EPILOGUE_USES): Only return true
28940 for LR_REGNUM after epilogue_completed.
28941
28942 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28943
28944 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28945 is error_mark_node.
28946
28947 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28948
28949 PR target/57261
28950 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28951 and Solaris 11+/x86 with gld.
28952 * configure: Regenerate.
28953
28954 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28955
28956 * expmed.c (expand_shift_1): Canonicalize rotates by
28957 constant bitsize / 2 to bitsize - 1.
28958 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28959 case ROTATERT>: Likewise.
28960
28961 Revert:
28962 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28963
28964 * config/i386/i386.md (rotateinv): New code attr.
28965 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28966 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28967 roll $31, %eax, etc.
28968
28969 2013-05-14 Richard Biener <rguenther@suse.de>
28970
28971 PR middle-end/57235
28972 * tree-eh.c (sink_clobbers): Give up for successors with
28973 multiple predecessors and no virtual uses.
28974
28975 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
28976
28977 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
28978 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
28979
28980 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28981
28982 PR middle-end/57251
28983 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
28984 the case when both op0 and op1 have VOIDmode.
28985
28986 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28987
28988 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
28989 in multiply-accumulate mode.
28990
28991 2013-05-13 Guozhi Wei <carrot@google.com>
28992
28993 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
28994
28995 2013-05-13 Kai Tietz <ktietz@redhat.com>
28996
28997 PR target/56975
28998 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
28999 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29000 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29001 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29002 (ix86_expand_prologue): Likewise.
29003 (ix86_expand_split_stack_prologue): Likewise.
29004 (legitimate_pic_address_disp_p): Likewise.
29005 (legitimize_pic_address): Likewise.
29006 (legitimize_tls_address): Likewise.
29007 (legitimize_pe_coff_symbol): Likewise.
29008 (output_pic_addr_const): Likewise.
29009 (construct_plt_address): Likewise.
29010 (ix86_expand_call): Likewise.
29011 (x86_output_mi_thunk): Likewise.
29012 (x86_function_profiler): Likewise.
29013
29014 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29015
29016 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29017 similar switch cases.
29018 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29019 (aarch64_simd_mov_to_<mode>low): Delete.
29020 (aarch64_simd_mov_to_<mode>high): Delete.
29021 (move_lo_quad_<mode>): Add w<-r alternative.
29022 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29023 (aarch64_simd_mov_from_*): Update type attribute.
29024 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29025 statement.
29026
29027 2013-05-13 Jan Hubicka <jh@suse.cz>
29028
29029 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29030 * config/i386/i386.c (ix86_compute_frame_layout,
29031 ix86_expand_epilogue, emit_i387_cw_initialization,
29032 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29033 ix86_local_alignment): Fix use of size/speed predicates.
29034
29035 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29036
29037 PR tree-optimization/45216
29038 PR tree-optimization/57157
29039 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29040 the (-Y) & (B - 1) variant if OP is |.
29041 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29042 return shifted. Use (-op1) & (prec - 1) as other_amount
29043 instead of prec - op1.
29044
29045 2013-05-13 Martin Jambor <mjambor@suse.cz>
29046
29047 PR middle-end/42371
29048 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29049 (ipa_constant_data): New type.
29050 (ipa_jump_func): Use ipa_constant_data to hold information about
29051 constant jump functions.
29052 (ipa_get_jf_constant): Adjust to jump function type changes.
29053 (ipa_get_jf_constant_rdesc): New function.
29054 (ipa_param_descriptor): New field controlled_uses.
29055 (ipa_get_controlled_uses): New function.
29056 (ipa_set_controlled_uses): Likewise.
29057 * ipa-ref.h (ipa_find_reference): Declare.
29058 * ipa-prop.c (ipa_cst_ref_desc): New type.
29059 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29060 changes.
29061 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29062 New parameter cs. Adjust all callers.
29063 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29064 (remove_described_reference): New function.
29065 (jfunc_rdesc_usable): Likewise.
29066 (try_make_edge_direct_simple_call): Decrement controlled use count,
29067 attempt to remove reference if it hits zero.
29068 (combine_controlled_uses_counters): New function.
29069 (propagate_controlled_uses): Likewise.
29070 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29071 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29072 (ipa_print_node_params): Print described use counter.
29073 (ipa_write_jump_function): Adjust to jump function type changes.
29074 (ipa_read_jump_function): New parameter CS, pass it to
29075 ipa_set_jf_constant. Adjust caller.
29076 (ipa_write_node_info): Stream controlled use count
29077 (ipa_read_node_info): Likewise.
29078 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29079 asserting.
29080 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29081 count. Remove cloning-added reference if it reaches zero.
29082 * ipa-ref.c (ipa_find_reference): New function.
29083
29084 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29085
29086 * config/i386/i386.c (processor_target_table): Modified default
29087 alignment values for AMD BD and BT architectures.
29088
29089 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29090
29091 * tree-vect-generic.c (uniform_vector_p): Move ...
29092 * tree.c (uniform_vector_p): ... here.
29093 * tree.h (uniform_vector_p): Declare it.
29094 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29095 into a scalar.
29096
29097 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29098
29099 PR tree-optimization/57230
29100 * tree-ssa-strlen.c (handle_char_store): Record length for
29101 array store from STRING_CST.
29102
29103 PR tree-optimization/57230
29104 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29105 check.
29106
29107 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29108
29109 * config/epiphany/epiphany.c (epiphany_init): Check size of
29110 NUM_MODES_FOR_MODE_SWITCHING.
29111 (epiphany_expand_prologue):
29112 Remove CONFIG_REGNUM initial value handling code.
29113 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29114 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29115 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29116 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29117 Don't return 1 for FP_MODE_NONE.
29118 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29119 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29120 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29121 * config/epiphany/epiphany.md (save_config): New pattern.
29122
29123 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29124
29125 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29126
29127 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29128
29129 * config/i386/i386.md (memory): Handle sseishft1.
29130 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29131 (*vec_extractv2di_1): Ditto.
29132
29133 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29134
29135 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29136 saved registers.
29137
29138 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29139
29140 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29141 Add mthumb/march=armv7-a multilib.
29142 Add mthumb/march=armv7-r multilib.
29143 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29144
29145 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29146
29147 * config/v850/t-rtems: Add more multilibs.
29148
29149 2013-05-10 Richard Biener <rguenther@suse.de>
29150
29151 PR tree-optimization/57214
29152 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29153 not propagate from SSA names that occur in abnormal PHI nodes.
29154
29155 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29156
29157 * stor-layout.c (element_precision): New function.
29158 * machmode.h (element_precision): Declare it.
29159 * tree.c (build_minus_one_cst): New function.
29160 (element_precision): Likewise.
29161 * tree.h (build_minus_one_cst): Declare new function.
29162 (element_precision): Likewise.
29163 * fold-const.c (operand_equal_p): Use element_precision.
29164 (fold_binary_loc): Handle vector types.
29165 * convert.c (convert_to_integer): Use element_precision.
29166 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29167 separately.
29168
29169 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29170
29171 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29172 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29173 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29174 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29175 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29176 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29177 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29178 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29179 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29180 (Uuw8): New constraints.
29181 (Usb4): Move into alphabetical order.
29182 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29183 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29184 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29185 previously unnamed patterns.
29186 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29187 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29188 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29189 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29190 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29191 of specific lengths.
29192
29193 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29194
29195 * config/i386/i386.md (rotateinv): New code attr.
29196 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29197 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29198 roll $31, %eax, etc.
29199
29200 PR tree-optimization/45216
29201 PR tree-optimization/57157
29202 * tree-ssa-forwprop.c (simplify_rotate): New function.
29203 (ssa_forward_propagate_and_combine): Call it.
29204
29205 2013-05-10 Richard Biener <rguenther@suse.de>
29206
29207 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29208 disable peeling when we version for aliasing.
29209 (vector_alignment_reachable_p): Honor explicit user alignment.
29210 (vect_supportable_dr_alignment): Likewise.
29211 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29212 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29213 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29214 then peeling to arrange for the cost-model check to come first.
29215
29216 2013-05-10 Alan Modra <amodra@gmail.com>
29217
29218 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29219 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29220 * configure: Regenerate.
29221
29222 2013-05-10 Alan Modra <amodra@gmail.com>
29223
29224 PR target/55033
29225 * varasm.c (default_elf_select_section): Move !DECL_P check..
29226 (get_named_section): ..to here before calling get_section_name.
29227 Adjust assertion.
29228 (default_section_type_flags): Add DECL_P check.
29229 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29230 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29231
29232 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29233
29234 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29235 When using gen_stack_adjust_str with a register offset, add a
29236 REG_FRAME_RELATED_EXPR note.
29237
29238 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29239
29240 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29241 (*vec_extractv4si_zext_mem): Ditto.
29242 (*vec_extractv2di): Add 0->x and x->x alternatives.
29243 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29244 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29245
29246 2013-05-09 Jason Merrill <jason@redhat.com>
29247
29248 N3639 C++1y VLA support
29249 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29250 DECL_VALUE_EXPR.
29251
29252 * tree.c (build_constructor_va): New.
29253 * tree.h: Declare it.
29254
29255 2013-05-09 Martin Jambor <mjambor@suse.cz>
29256
29257 PR lto/57084
29258 * gimple-fold.c (canonicalize_constructor_val): Call
29259 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29260
29261 2013-05-09 Jan Hubicka <jh@suse.cz>
29262 Richard Biener <rguenther@suse.de>
29263
29264 PR lto/54095
29265 * symtab.c (symtab_make_decl_local): Do not add private names.
29266
29267 2013-05-09 Jan Hubicka <jh@suse.cz>
29268
29269 PR lto/54095
29270 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29271 (unlink_from_assembler_name_hash): Likewise.
29272 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29273 symtab_unregister_node, symtab_initialize_asm_name_hash,
29274 change_decl_assembler_name): Update.
29275
29276 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29277
29278 * config/aarch64/aarch64.md: New movtf split.
29279 (*movtf_aarch64): Update.
29280 (aarch64_movdi_tilow): Handle TF modes and rename to
29281 aarch64_movdi_<mode>low.
29282 (aarch64_movdi_tihigh): Handle TF modes and rename to
29283 aarch64_movdi_<mode>high
29284 (aarch64_movtihigh_di): Handle TF modes and rename to
29285 aarch64_mov<mode>high_di
29286 (aarch64_movtilow_di): Handle TF modes and rename to
29287 aarch64_mov<mode>low_di
29288 (aarch64_movtilow_tilow): Remove spurious whitespace.
29289 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29290 splits.
29291 (aarch64_print_operand): Update.
29292
29293 2013-05-09 Alan Modra <amodra@gmail.com>
29294
29295 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29296 powerpc64le.
29297 * configure: Regenerate.
29298
29299 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29300
29301 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29302 splitter preparation statements.
29303 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29304 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29305 adjust_address_nv.
29306
29307 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29308
29309 * gimple-ssa-strength-reduction.c (count_candidates): Change
29310 return value to int.
29311 (analyze_candidates_and_replace): Change type of length to int.
29312
29313 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29314
29315 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29316 (*vec_extract<mode>): Use VI12_128 mode iterator.
29317 (*vec_extract<mode>_mem): Ditto.
29318 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29319 attribute.
29320
29321 2013-05-08 Diego Novillo <dnovillo@google.com>
29322
29323 PR bootstrap/54659
29324
29325 Revert:
29326 2012-08-17 Diego Novillo <dnovillo@google.com>
29327
29328 PR bootstrap/54281
29329 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29330 * config.in: Regenerate.
29331 * configure: Regenerate.
29332 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29333
29334 2013-05-08 Jan Hubicka <jh@suse.cz>
29335
29336 PR lto/54095
29337 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29338 * cgraph.h (symtab_node_base): Add unique_name.
29339 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29340 input_overwrite_node, input_varpool_node): Stream unique_name.
29341 * cgraphclones.c (cgraph_create_virtual_clone,
29342 cgraph_function_versioning): Set unique_name.
29343 * ipa.c (function_and_variable_visibility): Set unique_name.
29344
29345 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29346
29347 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29348 (alloc_cand_and_find_basis): Restrict conditional candidate
29349 processing to CAND_MULTs.
29350
29351 2013-05-08 Jan Hubicka <jh@suse.cz>
29352
29353 PR lto/54095
29354 lto-symtab.c (lto_symtab_symbol_p): New function.
29355 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29356 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29357 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29358 Skip static symbols.
29359
29360 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29361
29362 PR tree-optimization/57200
29363 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29364 Only call inform if the preceding warning_at returns true.
29365
29366 2013-05-07 Han Shen <shenhan@google.com>
29367
29368 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29369 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29370 * common.opt (fstack-protector-strong): New option.
29371 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29372 * doc/invoke.texi (Optimization Options): Document
29373 "-fstack-protector-strong".
29374 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29375
29376 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29377
29378 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29379
29380 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29381
29382 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29383 it is not lhs of the insn.
29384 (setup_reg_equiv): Remove insn having equiv memory which it is not
29385 lhs of the insn.
29386 * lra-constraints.c (process_address): Try to improve generation
29387 code for address base + disp.
29388 (lra_constraints): Make correct the code for checking insn setting
29389 up backward equivalence. Remove insn only if it is in the init
29390 insn list.
29391 * lra-eliminations.c (update_reg_eliminate): Change return value.
29392 (lra_eliminate): Use the result.
29393
29394 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29395
29396 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29397 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29398 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29399 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29400 register target operands.
29401 (*vec_extractv8hi_sse2): New pattern.
29402 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29403 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29404 (*vec_extract<mode>_mem): New insn and split pattern.
29405
29406 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29407
29408 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29409 (TARGET_ASAN_SHADOW_OFFSET): Define.
29410 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29411 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29412
29413 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29414
29415 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29416 (incr_vec_index): Return -1 if increment not found.
29417 (create_add_on_incoming_edge): Assert if increment not found.
29418 (record_increment): Limit number of increments recorded.
29419 (all_phi_incrs_profitable): Return false if an increment not found.
29420 (replace_profitable_candidates): Don't process increments that were
29421 not recorded.
29422 (analyze_candidates_and_replace): Limit size of incr_vec.
29423
29424 2013-05-07 Richard Biener <rguenther@suse.de>
29425
29426 * calls.c (special_function_p): setjmp-like functions are leaf.
29427 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29428 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29429
29430 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29431
29432 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29433 (aarch64_simd_mov<mode>): New expander.
29434 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29435 (aarch64_simd_mov_to_<mode>high): Likewise.
29436 (aarch64_simd_mov_from_<mode>low): Likewise.
29437 (aarch64_simd_mov_from_<mode>high): Likewise.
29438 (aarch64_dup_lane<mode>): Update.
29439 (aarch64_dup_lanedi): New instruction pattern.
29440 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29441 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29442
29443 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29444
29445 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29446 (replace_mult_candidate): Remove unnecessary argument; remove
29447 unnecessary parameter from call to introduce_cast_before_cand.
29448 (replace_unconditional_candidate): Remove unnecessary parameter
29449 from call to replace_mult_candidate.
29450 (replace_conditional_candidate): Likewise.
29451 (insert_initializers): Use make_temp_ssa_name.
29452 (introduce_cast_before_cand): Remove unnecessary argument; use
29453 make_temp_ssa_name.
29454 (replace_one_candidate): Remove unnecessary argument; remove
29455 unnecessary parameter from calls to introduce_cast_before_cand.
29456 (replace_profitable_candidates): Remove unnecessary parameters
29457 from calls to replace_one_candidate.
29458
29459 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29460
29461 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29462 phi def as possibly hiding a basis for a CAND_ADD whose operands
29463 have been commuted in the analysis.
29464 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29465
29466 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29467
29468 * config/aarch64/aarch64.md
29469 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29470 shift value between 0-4.
29471
29472 2013-05-07 Richard Biener <rguenther@suse.de>
29473
29474 * double-int.h (rshift): New overload.
29475 * double-int.c (rshift): New function.
29476 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29477 (create_reference_ops_from_ref): Remove.
29478 (vn_reference_insert): Use shared ops for constructing the
29479 reference and copy it.
29480
29481 2013-05-07 Richard Biener <rguenther@suse.de>
29482
29483 PR middle-end/57190
29484 * tree-eh.c (sink_clobbers): Properly propagate
29485 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29486
29487 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29488
29489 PR tree-optimization/57149
29490 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29491 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29492 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29493 uninit_undefined_value_p instead of ssa_undefined_value_p.
29494
29495 PR debug/57184
29496 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29497 for modifier == EXPAND_INITIALIZER.
29498
29499 2013-05-07 Anton Blanchard <anton@samba.org>
29500
29501 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29502 for powerpc64 little endian.
29503 * configure: Regenerate.
29504
29505 2013-05-06 Graham Stott <grahams@btinternet.com>
29506
29507 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29508 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29509 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29510 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29511
29512 2013-05-06 Graham Stott <grahams@btinternet.com>
29513
29514 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29515 codes which allow non-lvalues.
29516
29517 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29518
29519 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29520 components are all 1s.
29521 (integer_minus_onep): New function.
29522 * tree.h (integer_minus_onep): Declare it.
29523 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29524 integer_minus_onep instead of integer_all_onesp.
29525
29526 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29527
29528 PR target/52933
29529 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29530 variations of these patterns.
29531
29532 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29533
29534 * config/i386/i386.md (isa): Add x64_sse4 member.
29535 (enabled): Handle x64_sse4.
29536 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29537 instruction for 64bit SSE4_1 targets. Update insn attributes.
29538 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29539 instruction for SSE4_1 targets. Update insn attributes.
29540 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29541 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29542 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29543 const_1 selector.
29544 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29545 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29546 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29547
29548 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29549
29550 PR target/57108
29551 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29552
29553 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29554
29555 * final.c (do_assembler_dialects): Don't handle curly braces and
29556 vertical bar escaped by % as dialect delimiters.
29557 (output_asm_insn): Print curly braces and vertical bar if escaped
29558 by % and ASSEMBLER_DIALECT defined.
29559 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29560 * doc/tm.texi: Regenerated.
29561
29562 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29563
29564 * config/mips/mips.c: Include tree-pass.h.
29565 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29566 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29567 (pass_mips_machine_reorg2): New machine specific pass.
29568 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29569 (mips_option_override): Register the new pass.
29570 * rtl.h (cleanup_barriers): Remove prototype.
29571 (dbr_schedule): Likewise.
29572 * jump.c (cleanup_barriers): Make static.
29573 * reorg.c (dbr_schedule): Likewise.
29574
29575 2013-05-06 Richard Biener <rguenther@suse.de>
29576
29577 PR tree-optimization/57185
29578 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29579 SSA names properly.
29580
29581 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29582
29583 PR target/57106
29584 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29585 between "first_arg" and "insn", not "last" and "insn".
29586
29587 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29588
29589 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29590 (find_candidates_in_block): Re-enable slsr_process_phi.
29591 (create_phi_basis): Fix double counting of candidate adjustment.
29592
29593 2013-05-06 Richard Biener <rguenther@suse.de>
29594
29595 PR middle-end/57147
29596 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29597 the edge is also fallthru, preserve it and just clear the
29598 abnormal flag.
29599 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29600 also complex, preserve that and just clear the fallthru flag.
29601 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29602 update virtual operands.
29603
29604 2013-05-06 Alan Modra <amodra@gmail.com>
29605
29606 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29607 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29608 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29609 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29610 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29611 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29612
29613 2013-05-06 Alan Modra <amodra@gmail.com>
29614
29615 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29616 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29617 (DEFAULT_ASM_ENDIAN): Define.
29618 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29619 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29620 Update -K PIC clause from sysv4.h.
29621 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29622 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29623
29624 2013-05-06 Alan Modra <amodra@gmail.com>
29625
29626 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29627 twice for little-endian.
29628 (ashrdi3_no_power, ashrdi3): Support little-endian.
29629
29630 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29631
29632 PR target/55303
29633 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29634 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29635 related expanders.
29636 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29637 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29638 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29639 New predicates.
29640
29641 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29642 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29643
29644 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29645 * config/pa/pa.opt: Make mbig-switch a no-op.
29646 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29647 (CASE_VECTOR_MODE): Always return SImode.
29648 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29649 for the !TARGET_BIG_SWITCH case.
29650 * config/pa/pa-linux.h: Likewise.
29651 * config/pa/pa-openbsd.h: Likewise.
29652 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29653 * config/pa/pa.md (short_jump): Remove define_insn.
29654 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29655 (casesi0): Remove define_insn.
29656 (type): Remove btable_branch.
29657 (pa_combine_type): Likewise.
29658 (in_nullified_branch_delay): Likewise.
29659 (in_call_delay): Likewise.
29660 (define_delay): Likewise.
29661 (define_insn_reservation "Z3"): Likewise.
29662 (define_insn_reservation "Z4"): Likewise.
29663 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29664 (pa_adjust_insn_length): Remove adjustment for btable branches.
29665 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29666 and mno-big-switch
29667
29668 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29669
29670 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29671 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29672 Add m->r,x alternatives.
29673 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29674 splitters using SWI48x mode iterator.
29675 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29676 TARGET_64BIT. Add m->x alternative.
29677 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29678 Add o->x alternative. Enable for TARGET_SSE.
29679 (sse_storeq): Remove expander.
29680 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29681 with memory input operand.
29682 (*vec_extractv2di_1 splitter): New.
29683 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29684 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29685
29686 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29687
29688 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29689 (INT_LOWPART): Delete.
29690 (extract_MB): Adjust.
29691 (extract_ME): Adjust.
29692 (print_operand): Adjust.
29693
29694 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29695
29696 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29697 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29698 (reg_or_logical_cint_operand, easy_fp_constant,
29699 logical_const_operand): Delete "CONST_DOUBLE" case.
29700 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29701 "HOST_BITS_PER_WIDE_INT == 64" test.
29702 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29703 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29704 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29705 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29706 test.
29707 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29708 CONST_DOUBLE DImode/VOIDmode case.
29709 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29710 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29711 CONST_DOUBLE VOIDmode case.
29712 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29713 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29714 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29715 Delete CONST_DOUBLE case.
29716 (splitters for mov FMOVE64 const_double): Delete
29717 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29718 "HOST_BITS_PER_WIDE_INT >= 64" test.
29719 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29720 case.
29721 (mov DI const_double): Delete.
29722
29723 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29724
29725 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29726 on op shows all bits zero in mode of a lowpart subreg, return zero.
29727
29728 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29729
29730 PR target/57150
29731 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29732 to save TFmode registers and DImode to save TImode registers for
29733 caller save operations.
29734 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29735 mark being partially clobbered since they only use the first
29736 double word.
29737
29738 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29739 and TDmode only use the upper 64-bits of each VSX register.
29740
29741 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29742
29743 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29744 (find_candidates_in_block): Disable slsr_process_phi.
29745
29746 2013-05-03 Guozhi Wei <carrot@google.com>
29747
29748 * coverage.c (coverage_obj_init): Move the construction of gcov
29749 constructor to ...
29750 (build_init_ctor): ... here.
29751
29752 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29753
29754 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29755 (slsr_cand_d): Redefine def_phi.
29756 (stride_status, phi_adjust_status, count_phis_status): New enums.
29757 (find_phi_def): New.
29758 (find_basis_for_base_expr): New.
29759 (find_basis_for_candidate): Handle hidden bases.
29760 (alloc_cand_and_find_basis): Handle phi candidates.
29761 (slsr_process_phi): New.
29762 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29763 (create_mul_imm_cand): Likewise.
29764 (create_add_ssa_cand): Exclude phi base candidates.
29765 (create_add_imm_cand): Likewise.
29766 (slsr_process_cast): Likewise.
29767 (slsr_process_copy): Likewise.
29768 (find_candidates_in_block): Handle phi candidates.
29769 (dump_candidate): Likewise.
29770 (unconditional_cands): Delete.
29771 (unconditional_cands_with_known_stride_p): Delete.
29772 (phi_dependent_cand_p): New.
29773 (cand_increment): Handle phi-dependent candidates.
29774 (replace_dependent): Delete.
29775 (replace_mult_candidate): New.
29776 (replace_unconditional_candidate): New.
29777 (incr_vec_index): Move to avoid forward reference.
29778 (create_add_on_incoming_edge): New.
29779 (create_phi_basis): New.
29780 (replace_dependents): Delete.
29781 (replace_conditional_candidate): New.
29782 (phi_add_costs): New.
29783 (replace_uncond_cands_and_profitable_phis): New.
29784 (record_increment): Handle phi adjustments.
29785 (record_phi_increments): New.
29786 (record_increments): Handle phi adjustments.
29787 (phi_incr_cost): New.
29788 (lowest_cost_path): Handle phis.
29789 (total_savings): Likewise.
29790 (analyze_increments): Likewise.
29791 (ncd_with_phi): New.
29792 (ncd_of_cand_and_phis): New.
29793 (nearest_common_dominator_for_cands): Handle phi increments.
29794 (all_phi_incrs_profitable): New.
29795 (replace_profitable_candidates): Handle phi-dependent candidates.
29796 (analyze_candidates_and_replace): Likewise.
29797
29798 2013-05-03 Teresa Johnson <tejohnson@google.com>
29799
29800 PR bootstrap/57154
29801 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29802 do not exceed REG_BR_PROB_BASE.
29803
29804 2013-05-03 Jeff Law <law@redhat.com>
29805
29806 PR tree-optimization/57144
29807 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29808 operand of the condition will bit into the new type when eliminating
29809 a cast feeding a condition.
29810
29811 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29812
29813 PR rtl-optimization/57130
29814 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29815 of COMPARE as in_code to the recursive call if needed.
29816
29817 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29818
29819 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29820 (enabled): Handle new members.
29821 * config/i386/sse.md (*vec_concatv2si): Merge from
29822 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29823 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29824
29825 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29826
29827 PR tree-optimization/57027
29828 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29829 for fnms opportunity, check we got the prerequisite kind
29830 of tree / gimple before using accessor functions.
29831
29832 2013-05-03 Richard Biener <rguenther@suse.de>
29833
29834 * double-int.h (lshift): New overload without precision
29835 and arith argument.
29836 (operator *=, operator +=, operator -=): Move ...
29837 * double-int.c (operator *=, operator +=, operator -=): ... here
29838 and implement more efficiently.
29839 (mul_double_with_sign): Remove.
29840 (lshift_double): Adjust to take unsinged shift argument, push
29841 dispatching code to callers.
29842 (mul_double_wide_with_sign): Add early out for callers that
29843 are not interested in high parts or overflow.
29844 (lshift): New function.
29845 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29846 dispatch code here.
29847 (lrotate, rrotate): Use logical shifts.
29848 * expr.c (get_inner_reference): Use lshift.
29849 * fixed-value.c (do_fixed_divide): Likewise.
29850 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29851 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29852 (indirect_refs_may_alias_p): Likewise.
29853 (stmt_kills_ref_p_1): Likewise.
29854
29855 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29856
29857 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29858
29859 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29860
29861 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29862 scalar form of FABD instruction.
29863
29864 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29865
29866 * lra-constraints.c (process_alt_operands): Add checking alt
29867 number to choose the best alternative.
29868
29869 2013-05-02 Richard Biener <rguenther@suse.de>
29870
29871 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29872 bitmap and its handling.
29873 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29874
29875 2013-05-02 Richard Biener <rguenther@suse.de>
29876
29877 PR middle-end/57140
29878 * tree-inline.c (copy_loops): Properly handle removed loops.
29879 (copy_cfg_body): Mark destination loops for fixup if source
29880 loops needed fixup.
29881
29882 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29883
29884 PR target/56732
29885 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29886 generating simple_return for naked functions.
29887
29888 2013-05-02 Martin Jambor <mjambor@suse.cz>
29889
29890 PR middle-end/56988
29891 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29892 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29893 flags match.
29894 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29895 ipa_agg_replacement_value structures.
29896 (known_aggs_to_agg_replacement_list): Likewise.
29897 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29898 (read_agg_replacement_chain): Likewise.
29899 (ipcp_transform_function): Also check that by_ref flags match.
29900
29901 2013-05-02 Richard Biener <rguenther@suse.de>
29902
29903 * graphds.h (struct graph): Add obstack member.
29904 * graphds.c (new_graph): Initialize obstack and allocate
29905 vertices from it.
29906 (add_edge): Allocate edge from the obstack.
29907 (free_graph): Free the obstack instead of all edges and vertices.
29908
29909 2013-05-02 Teresa Johnson <tejohnson@google.com>
29910
29911 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29912 divides.
29913 * cfg.c (update_bb_profile_for_threading): Ditto.
29914 * tree-inline.c (copy_bb): Ditto.
29915 (copy_edges_for_bb): Ditto.
29916 (initialize_cfun): Ditto.
29917 (copy_cfg_body): Ditto.
29918 (expand_call_inline): Ditto.
29919 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29920 (estimate_node_size_and_time): Ditto.
29921 (inline_merge_summary): Ditto.
29922 * cgraphclones.c (cgraph_clone_edge): Ditto.
29923 (cgraph_clone_node): Ditto.
29924 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29925 (compute_trg_info): Ditto.
29926
29927 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29928
29929 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29930 S reg when fp attribute set.
29931 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29932
29933 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29934
29935 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29936 New pattern.
29937 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29938 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29939 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29940
29941 2013-05-02 Richard Biener <rguenther@suse.de>
29942
29943 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29944 (struct instantiate_cache_entry): New type.
29945 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29946 (struct instantiate_cache_type): New type.
29947 (set_instantiated_value, get_instantiated_value): Remove.
29948 (get_instantiated_value_entry): New function.
29949 (instantiate_scev_name): Use the new cache and adjust.
29950 (instantiate_scev_poly): Adjust.
29951 (instantiate_scev_binary): Likewise.
29952 (instantiate_array_ref): Likewise.
29953 (instantiate_scev_convert): Likewise.
29954 (instantiate_scev_not): Likewise.
29955 (instantiate_scev_3): Likewise.
29956 (instantiate_scev_2): Likewise.
29957 (instantiate_scev_r): Likewise.
29958 (instantiate_scev): Likewise.
29959 (resolve_mixers): Likewise.
29960
29961 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29962
29963 PR target/57091
29964 * lra-constraints.c (best_small_class_operands_num): Remove.
29965 (process_alt_operands): Remove small_class_operands_num. Take
29966 small classes operands into losers and only if the operand is not
29967 matched. Modify debugging output.
29968 (curr_insn_transform): Remove best_small_class_operands_num.
29969 Print insn name.
29970
29971 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29972
29973 * config/aarch64/aarch64-builtins.c
29974 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
29975 * config/aarch64/aarch64-simd-builtins.def
29976 (reduc_splus_): Add new modes.
29977 (reduc_uplus_): New.
29978 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
29979 (reduc_uplus_v4sf): Likewise.
29980 (reduc_splus_v4sf): Likewise.
29981 (aarch64_addv<mode>): Likewise.
29982 (reduc_uplus_<mode>): Likewise.
29983 (reduc_splus_<mode>): Likewise.
29984 (aarch64_addvv2di): Likewise.
29985 (reduc_uplus_v2di): Likewise.
29986 (reduc_splus_v2di): Likewise.
29987 (aarch64_addvv2si): Likewise.
29988 (reduc_uplus_v2si): Likewise.
29989 (reduc_splus_v2si): Likewise.
29990 (reduc_<sur>plus_<mode>): New.
29991 (reduc_<sur>plus_v2di): Likewise.
29992 (reduc_<sur>plus_v2si): Likewise.
29993 (reduc_<sur>plus_v4sf): Likewise.
29994 (aarch64_addpv4sf): Likewise.
29995 * config/aarch64/arm_neon.h
29996 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
29997 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
29998 add UNSPEC_SADDV, UNSPEC_UADDV.
29999 (SUADDV): New.
30000 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30001
30002 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30003
30004 * config/aarch64/arm_neon.h
30005 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30006
30007 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30008
30009 * config/aarch64/aarch64-builtins
30010 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30011
30012 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30013
30014 * config/aarch64/aarch64-simd-builtins.def
30015 (reduc_smax_): New.
30016 (reduc_smin_): Likewise.
30017 (reduc_umax_): Likewise.
30018 (reduc_umin_): Likewise.
30019 (reduc_smax_nan_): Likewise.
30020 (reduc_smin_nan_): Likewise.
30021 (fmax): Remove.
30022 (fmin): Likewise.
30023 (smax): Update for V2SF, V4SF and V2DF modes.
30024 (smin): Likewise.
30025 (smax_nan): New.
30026 (smin_nan): Likewise.
30027 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30028 (<su><maxmin><mode>3): ...This, refactor.
30029 (s<maxmin><mode>3): New.
30030 (<maxmin_uns><mode>3): Likewise.
30031 (reduc_<maxmin_uns>_<mode>): Refactor.
30032 (reduc_<maxmin_uns>_v4sf): Likewise.
30033 (reduc_<maxmin_uns>_v2si): Likewise.
30034 (aarch64_<fmaxmin><mode>: Remove.
30035 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30036 new builtin names.
30037 (vmin<q>_f<32,64>): Likewise.
30038 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30039 (FMAXMIN): New.
30040 (su): Add mappings for smax, smin, umax, umin.
30041 (maxmin): New.
30042 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30043 (FMAXMIN): Rename as...
30044 (FMAXMIN_UNS): ...This.
30045 (maxminv): Remove.
30046 (fmaxminv): Likewise.
30047 (fmaxmin): Likewise.
30048 (maxmin_uns): New.
30049 (maxmin_uns_op): Likewise.
30050
30051 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30052
30053 * config/aarch64/arm_neon.h
30054 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30055 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30056 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30057
30058 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30059
30060 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30061 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30062
30063 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30064
30065 * config/aarch64/aarch64-simd.md
30066 (vcond<mode>_internal): Handle special cases for constant masks.
30067 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30068 (vcondu<mode><mode>): Likewise.
30069 (vcond<v_cmp_result><mode>): New.
30070
30071 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30072
30073 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30074 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30075 * config/aarch64/aarch64-simd-builtins.def
30076 (cmeq): Update to BUILTIN_VALLDI.
30077 (cmgt): Likewise.
30078 (cmge): Likewise.
30079 (cmle): Likewise.
30080 (cmlt): Likewise.
30081 * config/aarch64/arm_neon.h
30082 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30083 to builtins or C as appropriate.
30084
30085 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30086
30087 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30088 (cmgeu): ...This.
30089 (cmhi): Rename to...
30090 (cmgtu): ...This.
30091 * config/aarch64/aarch64-simd.md
30092 (simd_mode): Add SF.
30093 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30094 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30095 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30096 (cstore<mode>_neg): ...This.
30097 * config/aarch64/iterators.md
30098 (VALLF): new.
30099 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30100 (COMPARISONS): New.
30101 (UCOMPARISONS): Likewise.
30102 (optab): Add missing comparisons.
30103 (n_optab): New.
30104 (cmp_1): Likewise.
30105 (cmp_2): Likewise.
30106 (CMP): Likewise.
30107 (cmp): Remove.
30108 (VCMP_S): Likewise.
30109 (VCMP_U): Likewise.
30110 (V_cmp_result): Add DF, SF modes.
30111 (v_cmp_result): Likewise.
30112 (v): Likewise.
30113 (vmtype): Likewise.
30114 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30115
30116 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30117
30118 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30119 define_insn to define_insn_and_split.
30120 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30121 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30122 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30123 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30124 (thumb2_negscc): Likewise.
30125
30126 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30127
30128 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30129
30130 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30131
30132 * config/arm/thumb2.md: Remove trailing whitespaces.
30133
30134 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30135
30136 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30137 Use gen_int_mode rather than GEN_INT.
30138
30139 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30140
30141 * value-prof.c (stream_in_histogram_value): Remove the strayed
30142 debug_gimple_stmt.
30143
30144 2013-04-30 Richard Biener <rguenther@suse.de>
30145
30146 PR middle-end/57122
30147 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30148
30149 2013-04-30 Richard Biener <rguenther@suse.de>
30150
30151 PR middle-end/57107
30152 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30153
30154 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30155
30156 PR rtl-optimization/56957
30157 PR rtl-optimization/57105
30158 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30159 variable. Use just INSN_UID for determining whether an insn
30160 should be only disconnected from the insn stream.
30161 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30162
30163 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30164
30165 PR tree-optimization/57104
30166 * tsan.c (instrument_expr): Don't instrument accesses to
30167 DECL_HARD_REGISTER VAR_DECLs.
30168
30169 2013-04-30 Richard Biener <rguenther@suse.de>
30170
30171 * function.h (loops_for_fn): New inline function.
30172 (set_loops_for_fn): Likewise.
30173 * cfgloop.h (place_new_loop): Add struct function parameter.
30174 (get_loop): Likewise.
30175 (get_loops): Likewise.
30176 (number_of_loops): Likewise.
30177 (fel_next): Adjust.
30178 (fel_init): Likewise.
30179 * cfg.c (get_loop_copy): Adjust.
30180 * cfgloop.c (flow_loops_dump): Likewise.
30181 (record_loop_exits): Likewise.
30182 (verify_loop_structure): Likewise.
30183 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30184 (estimate_reg_pressure_cost): Likewise.
30185 (mark_loop_exit_edges): Likewise.
30186 * cfgloopmanip.c (place_new_loop): Likewise.
30187 (add_loop): Likewise.
30188 (duplicate_loop): Likewise.
30189 * graph.c (draw_cfg_nodes): Likewise.
30190 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30191 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30192 (extract_affine_chrec): Likewise.
30193 (build_scop_iteration_domain): Likewise.
30194 * graphite.c (graphite_initialize): Likewise.
30195 * ira-build.c (create_loop_tree_nodes): Likewise.
30196 (more_one_region_p): Likewise.
30197 (rebuild_regno_allocno_maps): Likewise.
30198 (mark_loops_for_removal): Likewise.
30199 (mark_all_loops_for_removal): Likewise.
30200 (remove_unnecessary_regions): Likewise.
30201 (ira_build): Likewise.
30202 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30203 * loop-init.c (fix_loop_structure): Likewise.
30204 (gate_rtl_move_loop_invariants): Likewise.
30205 (gate_rtl_unswitch): Likewise.
30206 (gate_rtl_unroll_and_peel_loops): Likewise.
30207 (rtl_doloop): Likewise.
30208 * lto-streamer-in.c (input_cfg): Likewise.
30209 * lto-streamer-out.c (output_cfg): Likewise.
30210 * modulo-sched.c (sms_schedule): Likewise.
30211 * predict.c (tree_estimate_probability): Likewise.
30212 (tree_estimate_probability_driver): Likewise.
30213 (estimate_loops): Likewise.
30214 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30215 (move_sese_region_to_fn): Likewise.
30216 (debug_loop_num): Likewise.
30217 * tree-chrec.c (chrec_evaluate): Likewise.
30218 (hide_evolution_in_other_loops_than_loop): Likewise.
30219 (chrec_component_in_loop_num): Likewise.
30220 (reset_evolution_in_loop): Likewise.
30221 (evolution_function_is_invariant_rec_p): Likewise.
30222 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30223 * tree-inline.c (copy_loops): Likewise.
30224 (copy_cfg_body): Likewise.
30225 (tree_function_versioning): Likewise.
30226 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30227 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30228 Likewise.
30229 (add_to_evolution_1): Likewise.
30230 (scev_const_prop): Likewise.
30231 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30232 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30233 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30234 (tree_ssa_lim_initialize): Likewise.
30235 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30236 (verify_loop_closed_ssa): Likewise.
30237 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30238 (tree_ssa_loop_im): Likewise.
30239 (tree_ssa_loop_unswitch): Likewise.
30240 (tree_vectorize): Likewise.
30241 (check_data_deps): Likewise.
30242 (tree_ssa_loop_ivcanon): Likewise.
30243 (tree_ssa_loop_bounds): Likewise.
30244 (tree_complete_unroll): Likewise.
30245 (tree_complete_unroll_inner): Likewise.
30246 (tree_parallelize_loops): Likewise.
30247 (tree_ssa_loop_prefetch): Likewise.
30248 (tree_ssa_loop_ivopts): Likewise.
30249 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30250 * tree-vectorizer.c (vectorize_loops): Likewise.
30251
30252 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30253
30254 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30255 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30256 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30257 with EABI_LINK_SPEC.
30258
30259 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30260
30261 PR target/44578
30262 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30263 alternative.
30264
30265 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30266
30267 PR target/57097
30268 * lra-constraints.c (process_alt_operands): Discourage a bit more
30269 using memory for pseudos. Print cost dump for alternatives.
30270 Modify cost values for conflicts with early clobbers.
30271 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30272
30273 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30274
30275 PR target/57098
30276 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30277
30278 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30279
30280 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30281 from/to S register.
30282 (movdi_aarch64): Support LDR/STR from/to D register.
30283
30284 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30285
30286 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30287 or higher by default.
30288
30289 2013-04-29 Richard Biener <rguenther@suse.de>
30290
30291 PR middle-end/57075
30292 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30293 even if not adding abnormal edges for calls that can make
30294 abnormal gotos.
30295
30296 2013-04-29 Richard Biener <rguenther@suse.de>
30297
30298 PR middle-end/57103
30299 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30300 TREE_BLOCK.
30301 (move_stmt_r): Remove redundant checking.
30302
30303 2013-04-29 Teresa Johnson <tejohnson@google.com>
30304
30305 PR bootstrap/57077
30306 * basic-block.h (apply_scale): New function.
30307 (apply_probability): Use apply_scale.
30308 * gimple-streamer-in.c (input_bb): Ditto.
30309 * lto-streamer-in.c (input_cfg): Ditto.
30310 * lto-cgraph.c (merge_profile_summaries): Ditto.
30311 * tree-optimize.c (execute_fixup_cfg): Ditto.
30312 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30313 (copy_edges_for_bb): Ditto.
30314 (copy_cfg_body): Ditto.
30315
30316 2013-04-29 Tom de Vries <tom@codesourcery.com>
30317
30318 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30319 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30320 (tail_merge_optimize): Handle current_loops == NULL.
30321
30322 2013-04-26 Jeff Law <law@redhat.com>
30323
30324 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30325 (simplify_cond_using_ranges): Generalize code to simplify
30326 COND_EXPRs where one argument is a constant and the other
30327 is an SSA_NAME created by an integral type conversion.
30328
30329 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30330
30331 * config/arm/arm.md (store_minmaxsi): Use only when
30332 optimize_insn_for_size_p.
30333
30334 2013-04-29 Christian Bruel <christian.bruel@st.com>
30335
30336 PR target/57108
30337 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30338
30339 2013-04-29 Richard Biener <rguenther@suse.de>
30340
30341 PR middle-end/57089
30342 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30343 loop tree make sure to schedule a fixup for the child as well.
30344 (expand_omp_for_generic): Properly add loops.
30345 (expand_omp_for_static_nochunk): Likewise.
30346 (expand_omp_for_static_chunk): Likewise.
30347 (expand_omp_for): For the degenerate case fixup loops.
30348 (expand_omp_sections): Fix default bb placement in loops.
30349 (expand_omp_atomic_pipeline): Properly add loops.
30350
30351 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30352
30353 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30354
30355 2013-04-29 Tom de Vries <tom@codesourcery.com>
30356
30357 * tree-ssa-tail-merge.c: Update header comment.
30358
30359 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30360
30361 * config/aarch64/arm_neon.h
30362 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30363 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30364 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30365 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30366 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30367 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30368 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30369 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30370
30371 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30372
30373 * config/aarch64/aarch64-simd.md
30374 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30375 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30376 fix_trunc, fixuns_trunc.
30377 (ftrunc<VDQF:mode>2): New.
30378 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30379 (fix_trunc_optab): New.
30380
30381 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30382
30383 * config/aarch64/aarch64-builtins.c
30384 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30385 iceilf, lround, iroundf.
30386
30387 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30388
30389 PR target/54349
30390 * config/i386/i386.h (enum ix86_tune_indices)
30391 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30392 New, split from X86_TUNE_INTER_UNIT_MOVES.
30393 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30394 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30395 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30396 (TARGET_INTER_UNIT_MOVES): Remove.
30397 * config/i386/i386.c (initial_ix86_tune_features): Update.
30398 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30399 (ix86_expand_convert_uns_didf_sse): Use
30400 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30401 (ix86_expand_vector_init_one_nonzero): Ditto.
30402 (ix86_expand_vector_init_interleave): Ditto.
30403 (inline_secondary_memory_needed): Return true for moves from SSE class
30404 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30405 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30406 * config/i386/constraints.md (Yi, Ym): Depend on
30407 TARGET_INTER_UNIT_MOVES_TO_VEC.
30408 (Yj, Yn): New constraints.
30409 * config/i386/i386.md (*movdi_internal): Change constraints of
30410 operand 1 from Yi to Yj and from Ym to Yn.
30411 (*movsi_internal): Ditto.
30412 (*movdf_internal): Ditto.
30413 (*movsf_internal): Ditto.
30414 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30415 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30416 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30417 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30418 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30419 * config/i386/sse.md (movdi_to_sse): Ditto.
30420 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30421 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30422 TARGET_INTER_UNIT_MOVES.
30423 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30424 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30425 instead of TARGET_INTER_UNIT_MOVES.
30426 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30427 operand 1 from Yi to Yj and from Ym to Yn.
30428
30429 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30430
30431 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30432 (float_truncate_hi_): Likewise.
30433 (float_extend_lo_): Likewise.
30434 (float_truncate_lo_): Likewise.
30435 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30436 (aarch64_float_extend_lo_v2df): Likewise.
30437 (vec_unpacks_hi_v4sf): Likewise.
30438 (aarch64_float_truncate_lo_v2sf): Likewise.
30439 (aarch64_float_truncate_hi_v4sf): Likewise.
30440 (vec_pack_trunc_v2df): Likewise.
30441 (vec_pack_trunc_df): Likewise.
30442
30443 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30444
30445 * config/aarch64/aarch64-builtins.c
30446 (aarch64_fold_builtin): Fold float conversions.
30447 * config/aarch64/aarch64-simd-builtins.def
30448 (floatv2si, floatv4si, floatv2di): New.
30449 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30450 * config/aarch64/aarch64-simd.md
30451 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30452 * config/aarch64/iterators.md (FLOATUORS): New.
30453 (optab): Add float, floatuns.
30454 (su_optab): Likewise.
30455
30456 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30457
30458 * config/aarch64/aarch64-builtins.c
30459 (aarch64_builtin_vectorized_function): Use new names for
30460 fcvt builtins.
30461 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30462 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30463 (fcvtzu): Split as...
30464 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30465 (fcvtas): Split as...
30466 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30467 (fcvtau): Split as...
30468 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30469 (fcvtps): Split as...
30470 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30471 (fcvtpu): Split as...
30472 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30473 (fcvtms): Split as...
30474 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30475 (fcvtmu): Split as...
30476 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30477 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30478 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30479 (lfrintnusf, lfrintnudf): Likewise.
30480 * config/aarch64/aarch64-simd.md
30481 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30482 define_insn.
30483 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30484 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30485 (fcvt_pattern): Likewise.
30486
30487 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30488
30489 * config/aarch64/aarch64-simd.md
30490 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30491 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30492
30493 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30494
30495 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30496 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30497 (vrnd<a,m,n,p>_f32): Implement using builtins.
30498 (vrnd<i,x><q>_f<32, 64>): New.
30499
30500 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30501
30502 * config/aarch64/aarch64-builtins.c
30503 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30504 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30505 (frintz): Rename to...
30506 (btrunc): ...this.
30507 (frintp): Rename to...
30508 (ceil): ...this.
30509 (frintm): Rename to...
30510 (floor): ...this.
30511 (frinti): Rename to...
30512 (nearbyint): ...this.
30513 (frintx): Rename to...
30514 (rint): ...this.
30515 (frinta): Rename to...
30516 (round): ...this.
30517 * config/aarch64/aarch64-simd.md
30518 (aarch64_frint<frint_suffix><mode>): Delete.
30519 (<frint_pattern><mode>2): Convert to insn.
30520 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30521 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30522 (frint_pattern): Likewise.
30523 (frint_suffix): Likewise.
30524
30525 2013-04-29 Richard Biener <rguenther@suse.de>
30526
30527 PR tree-optimization/57081
30528 * loop-init.c: Include tree-flow.h.
30529 (loop_optimizer_finalize): Free number of iteration estimates.
30530 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30531
30532 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30533
30534 PR tree-optimization/57083
30535 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30536 non-singleton shift count range, zero extend low_bound for uns case.
30537
30538 * config/i386/predicates.md (general_vector_operand): New predicate.
30539 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30540 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30541 if they aren't nonimmediate operands. If their original values
30542 satisfy const_vector_equal_evenodd_p, don't shift them.
30543 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30544 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30545 if not nonimmediate_operand.
30546 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30547 instead of register_operand.
30548 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30549
30550 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30551
30552 * stor-layout.c (finalize_size_functions): Allocate a structure and
30553 reset cfun before dumping the functions.
30554
30555 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30556
30557 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30558
30559 PR target/56866
30560 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30561 use xop_pmacsdqh if uns_p.
30562 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30563 the immediate rotate count.
30564
30565 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30566
30567 * rtl.h (struct rtx_def): Add comment for field jump.
30568 (LRA_SUBREG_P): New macro.
30569 * recog.c (register_operand): Check LRA_SUBREG_P.
30570 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30571 stack frame.
30572 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30573 (lra_final_code_change): Skip subreg change for operators.
30574 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30575 if there are no operand changes.
30576 * lra-constraints.c (curr_insn_set): New.
30577 (match_reload): Set LRA_SUBREG_P.
30578 (emit_spill_move): Ditto.
30579 (check_and_process_move): Use curr_insn_set. Process only single
30580 set insns. Don't initialize sec_mem_p and change_p.
30581 (simplify_operand_subreg): Use LRA_SUBREG_P.
30582 (reg_in_class_p): New function.
30583 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30584 of #ifdef. Add code to remove cycling.
30585 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30586 non-null disp. Reload inner instead of disp when base and index
30587 are null. Try to put lo_sum into register.
30588 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30589 (check_and_process_move): Move code for move cost check to
30590 simple_move_p. Remove equiv_substitution.
30591 (simple_move_p): New function.
30592 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30593 curr_insn_set. Call check_and_process_move only for single set
30594 insns. Use the new function. Move call of check_and_process_move
30595 after operand equiv substitution and address process.
30596
30597 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30598
30599 PR go/57045
30600 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30601 with nonlocal goto receivers or returns twice calls, ignore
30602 unininitialized values from abnormal edges to nl goto receiver
30603 or returns twice call.
30604
30605 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30606
30607 PR tree-optimization/57051
30608 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30609 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30610 bitsize.
30611
30612 2013-04-26 Richard Biener <rguenther@suse.de>
30613
30614 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30615 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30616 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30617 (fixup_loop_arrays_after_move): New function.
30618 (move_sese_region_to_fn): Properly outline the loop tree parts
30619 of the SESE region.
30620
30621 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30622
30623 * config/i386/i386.md (type, unit): Fix long lines.
30624
30625 2013-04-26 Richard Biener <rguenther@suse.de>
30626
30627 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30628 (lto-streamer-out.o): Likewise.
30629 * cfgloop.c (init_loops_structure): Export, add struct function
30630 argument and adjust.
30631 (flow_loops_find): Adjust.
30632 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30633 (init_loops_structure): Declare.
30634 * lto-streamer-in.c: Include cfgloop.h.
30635 (input_cfg): Input the loop tree.
30636 * lto-streamer-out.c: Include cfgloop.h.
30637 (output_cfg): Output the loop tree.
30638 (output_struct_function_base): Do not drop PROP_loops.
30639
30640 2013-03-26 Richard Biener <rguenther@suse.de>
30641
30642 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30643 (pass_build_cfg): Provide PROP_loops.
30644 (move_sese_region_to_fn): Remove loops that are outlined into fn
30645 for now.
30646 * tree-inline.c: Include cfgloop.h.
30647 (initialize_cfun): Do not drop PROP_loops.
30648 (copy_loops): New function.
30649 (copy_cfg_body): Copy loop structure.
30650 (tree_function_versioning): Initialize destination loop tree.
30651 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30652 (pass_parallelize_loops): Do IL verification.
30653 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30654 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30655 the CFG make sure we fixup loops as well.
30656 * tree-ssa-tail-merge.c: Include cfgloop.h.
30657 (replace_block_by): When merging loop latches mark loops for fixup.
30658 * lto-streamer-out.c (output_struct_function_base): Drop
30659 PROP_loops for now.
30660 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30661 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30662 * ipa-split.c: Include cfgloop.h.
30663 (split_function): Add the new return block to the loop tree root.
30664 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30665 whether we have removed the forwarder block.
30666 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30667 * cfgloop.h (place_new_loop): Declare.
30668 * cfgloopmanip.c (place_new_loop): Export.
30669 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30670 (tree-switch-conversion.o): Likewise.
30671 (tree-complex.o): Likewise.
30672 (tree-inline.o): Likewise.
30673 (tree-ssa-tailmerge.o): Likewise.
30674 (ipa-split.o): Likewise.
30675 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30676 (tree-ssa-copy.o): Likewise.
30677 * tree-switch-conversion.c: Include cfgloop.h
30678 (process_switch): If we emit a bit-test cascade, schedule loops
30679 for fixup.
30680 * tree-complex.c: Include cfgloop.h.
30681 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30682 * asan.c: Include cfgloop.h.
30683 (create_cond_insert_point): Properly add new basic-blocks to
30684 loops, schedule loop fixup.
30685 * cfgloop.c (verify_loop_structure): Check that looks are not
30686 marked for fixup.
30687 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30688 to loops.
30689 (expand_omp_for_generic): Likewise.
30690 (expand_omp_sections): Likewise.
30691 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30692 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30693 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30694 is initialized, not when loops are present.
30695 * tree-parloops.c (parallelize_loops): Remove checking here.
30696 * passes.c (init_optimization_passes): Schedule a copy-propagation
30697 pass before complete unrolling of inner loops.
30698
30699 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30700
30701 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30702 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30703 (colorize_init): Add argument to _WIN32 version.
30704 * toplev.c: Include diagnostic-color.h.
30705 (process_options): Default to -fdiagnostics-color=auto if
30706 GCC_COLORS env var is in the environment.
30707 * common.opt (fdiagnostics-color=): Add Var and Init.
30708 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30709 env var is in the environment, the default is auto rather than never.
30710
30711 * diagnostic.h (file_name_as_prefix): Add context argument.
30712 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30713 the string as locus.
30714 * langhooks.c (lhd_print_error_function): Adjust caller.
30715
30716 2013-04-25 Lawrence Crowl <crowl@google.com>
30717
30718 * var-tracking.c (shared_hash_def::htab):
30719 Change type to hash_table. Update dependent calls and types.
30720
30721 2013-04-25 Lawrence Crowl <crowl@google.com>
30722
30723 * Makefile.in: Update as needed below.
30724
30725 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30726 Move declaration to after the type's method definitons.
30727
30728 * attribs.c (htab_t scoped_attributes::attribute_hash):
30729 Change type to hash_table. Update dependent calls and types.
30730
30731 * bitmap.c (htab_t bitmap_desc_hash):
30732 Change type to hash_table. Update dependent calls and types.
30733
30734 * cselib.c (htab_t cselib_hash_table):
30735 Change type to hash_table. Update dependent calls and types.
30736
30737 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30738 (hash_string_slot_node): Move implementation into lto-streamer.h
30739 struct string_slot_hasher.
30740 (eq_string_slot_node): Likewise.
30741
30742 * data-streamer-out.c: Update output_block::string_hash_table
30743 dependent calls and types.
30744
30745 * dwarf2cfi.c (htab_t trace_index):
30746 Change type to hash_table. Update dependent calls and types.
30747
30748 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30749 Change type to hash_table. Update dependent calls and types.
30750 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30751 (htab_t optimize_external_refs::map): Likewise.
30752 (htab_t output_comp_unit::extern_map): Likewise.
30753 (htab_t output_comdat_type_unit::extern_map): Likewise.
30754 (htab_t output_macinfo::macinfo_htab): Likewise.
30755 (htab_t optimize_location_lists::htab): Likewise.
30756 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30757
30758 * except.c (htab_t ehspec_hash_type):
30759 Change type to hash_table. Update dependent calls and types.
30760 (assign_filter_values::ttypes): Likewise.
30761 (assign_filter_values::ehspec): Likewise.
30762 (sjlj_assign_call_site_values::ar_hash): Likewise.
30763 (convert_to_eh_region_ranges::ar_hash): Likewise.
30764
30765 * gcse.c (htab_t pre_ldst_table):
30766 Change type to hash_table. Update dependent calls and types.
30767
30768 * ggc-common.c (htab_t saving_htab):
30769 Change type to hash_table. Update dependent calls and types.
30770 (htab_t loc_hash): Likewise.
30771 (htab_t ptr_hash): Likewise.
30772 (call_count): Rename ggc_call_count.
30773 (call_alloc): Rename ggc_call_alloc.
30774 (loc_descriptor): Rename make_loc_descriptor.
30775 (add_statistics): Rename ggc_add_statistics.
30776
30777 * ggc-common.c (saving_htab):
30778 Change type to hash_table. Update dependent calls and types.
30779
30780 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30781 (push_gimplify_context): Likewise.
30782 (pop_gimplify_context): Likewise.
30783 (struct gimple_temp_hash_elt): Added.
30784 (struct gimplify_hasher): Likewise.
30785 (struct gimplify_ctx.temp_htab):
30786 Change type to hash_table. Update dependent calls and types.
30787
30788 * gimple-fold.c: Include gimplify-ctx.h.
30789
30790 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30791 Change type to hash_table. Update dependent calls and types.
30792 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30793 avoid potential global name collision.
30794
30795 * gimplify.c: Include gimplify-ctx.h.
30796 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30797 (htab_t gimplify_ctx::temp_htab):
30798 Update dependent calls and types for new type hash_table.
30799 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30800 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30801
30802 * gimplify-ctx.h: New.
30803 (struct gimple_temp_hash_elt): Move from gimplify.c.
30804 (class gimplify_hasher): New.
30805 (struct gimplify_ctx): Move from gimple.h.
30806 (htab_t gimplify_ctx::temp_htab):
30807 Change type to hash_table. Update dependent calls and types.
30808
30809 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30810 (htab_t ivs_params::newivs_index):
30811 Change type to hash_table. Update dependent calls and types.
30812 (htab_t ivs_params::params_index): Likewise.
30813 (htab_t print_generated_program::params_index): Likewise.
30814 (htab_t gloog::newivs_index): Likewise.
30815 (htab_t gloog::params_index): Likewise.
30816
30817 * graphite.c: Include graphite-htab.h.
30818 4htab_t graphite_transform_loops::bb_pbb_mapping):
30819 Change type to hash_table. Update dependent calls and types.
30820
30821 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30822 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30823 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30824
30825 * graphite-dependences.c: Include graphite-htab.h.
30826 (loop_is_parallel_p): Change hash table type of parameter.
30827
30828 * graphite-htab.h: New.
30829 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30830 (extern find_pbb_via_hash): Move from graphite-poly.h.
30831 (extern loop_is_parallel_p): Move from graphite-poly.h.
30832 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30833
30834 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30835 (extern loop_is_parallel_p): Move to graphite-htab.h.
30836 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30837
30838 * haifa-sched.c (htab_t delay_htab):
30839 Change type to hash_table. Update dependent calls and types.
30840 (htab_t delay_htab_i2): Likewise.
30841
30842 * ira-color.c (htab_t allocno_hard_regs_htab):
30843 Change type to hash_table. Update dependent calls and types.
30844
30845 * ira-costs.c (htab_t cost_classes_htab):
30846 Change type to hash_table. Update dependent calls and types.
30847
30848 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30849 Change type to hash_table. Update dependent calls and types.
30850
30851 * loop-iv.c (htab_t bivs):
30852 Change type to hash_table. Update dependent calls and types.
30853
30854 * loop-unroll.c (htab_t opt_info::insns_to_split):
30855 Change type to hash_table. Update dependent calls and types.
30856 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30857
30858 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30859 (struct string_slot_hasher): New.
30860 (htab_t output_block::string_hash_table):
30861 Change type to hash_table. Update dependent calls and types.
30862
30863 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30864 (htab_t file_name_hash_table):
30865 Change type to hash_table. Update dependent calls and types.
30866
30867 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30868 calls and types.
30869
30870 * lto-streamer.c (htab_t tree_htab):
30871 Change type to hash_table. Update dependent calls and types.
30872
30873 * omp-low.c: Include gimplify-ctx.h.
30874
30875 * passes.c (htab_t name_to_pass_map):
30876 Change type to hash_table. Update dependent calls and types.
30877 (pass_traverse): Rename to passes_pass_traverse.
30878
30879 * plugin.c (htab_t event_tab):
30880 Change type to hash_table. Update dependent calls and types.
30881
30882 * postreload-gcse.c (htab_t expr_table):
30883 Change type to hash_table. Update dependent calls and types.
30884 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30885
30886 * sese.c (debug_rename_map_1): Make extern.
30887 (htab_t copy_bb_and_scalar_dependences::rename_map):
30888 Change type to hash_table. Update dependent calls and types.
30889
30890 * sese.h (extern debug_rename_map): Move to .c file.
30891
30892 * store-motion.c (htab_t store_motion_mems_table):
30893 Change type to hash_table. Update dependent calls and types.
30894
30895 * trans-mem.c (htab_t tm_new_mem_hash):
30896 Change type to hash_table. Update dependent calls and types.
30897
30898 * tree-browser.c (htab_t TB_up_ht):
30899 Change type to hash_table. Update dependent calls and types.
30900
30901 * tree-cfg.c (htab_t discriminator_per_locus):
30902 Change type to hash_table. Update dependent calls and types.
30903
30904 * tree-complex.c: Include tree-hasher.h
30905 (htab_t complex_variable_components):
30906 Change type to hash_table. Update dependent calls and types.
30907
30908 * tree-eh.c (htab_t finally_tree):
30909 Change type to hash_table. Update dependent calls and types.
30910
30911 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30912 struct int_tree_hasher.
30913 (extern int_tree_map_eq): Likewise.
30914 (uid_decl_map_hash): Removed.
30915 (extern decl_tree_map_eq): Likewise.
30916
30917 * tree-hasher.h: New.
30918 (struct int_tree_hasher): New.
30919 (typedef int_tree_htab_type): New.
30920
30921 * tree-inline.c: Include gimplify-ctx.h.
30922
30923 * tree-mudflap.c: Include gimplify-ctx.h.
30924
30925 * tree-parloops.c: Include tree-hasher.h.
30926 (htab_t eliminate_local_variables_stmt::decl_address):
30927 Change type to hash_table. Update dependent calls and types.
30928 (htab_t separate_decls_in_region::decl_copies): Likewise.
30929
30930 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30931 Change type to hash_table. Update dependent calls and types.
30932
30933 * tree-sra.c (candidates):
30934 Change type to hash_table. Update dependent calls and types.
30935
30936 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30937 in tree-flow.h.
30938 (int_tree_map_hash): Likewise.
30939
30940 * tree-ssa-dom.c (htab_t avail_exprs):
30941 Change type to hash_table. Update dependent calls and types.
30942
30943 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30944 Change type to hash_table. Update dependent calls and types.
30945
30946 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30947 Change type to hash_table. Update dependent calls and types.
30948
30949 * tree-ssa-phiopt.c (seen_ssa_names):
30950 Change type to hash_table. Update dependent calls and types.
30951
30952 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30953 Change type to hash_table. Update dependent calls and types.
30954
30955 * tree-ssa-uncprop.c (equiv):
30956 Change type to hash_table. Update dependent calls and types.
30957
30958 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30959
30960 PR rtl-optimization/57003
30961 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30962 call note_stores with kill_clobbered_value callback again after
30963 killing regs_invalidated_by_call.
30964
30965 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30966
30967 * config/aarch64/aarch64-simd.md
30968 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
30969 (aarch64_simd_bsl<mode>): Likewise.
30970 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
30971
30972 2013-04-25 Marek Polacek <polacek@redhat.com>
30973
30974 PR tree-optimization/57066
30975 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
30976
30977 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30978
30979 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
30980
30981 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30982
30983 * config/aarch64/aarch64-builtins.c
30984 (aarch64_fold_builtin): New.
30985 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
30986 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
30987 * config/aarch64/aarch64-simd-builtins.def (abs): New.
30988 * config/aarch64/arm_neon.h
30989 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
30990
30991 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30992 Tejas Belagod <tejas.belagod@arm.com>
30993
30994 * config/aarch64/aarch64-builtins.c
30995 (aarch64_gimple_fold_builtin): New.
30996 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
30997 * config/aarch64/aarch64-simd-builtins.def (addv): New.
30998 * config/aarch64/aarch64-simd.md (addpv4sf): New.
30999 (addvv4sf): Update.
31000 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31001
31002 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31003
31004 * config/aarch64/aarch64.md
31005 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31006
31007 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31008
31009 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31010 (*ngcsi_uxtw): New pattern.
31011
31012 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31013 Julian Brown <julian@codesourcery.com>
31014
31015 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31016 (TB_DREG): Add T_V4HF.
31017 (v4hf_UP): New macro.
31018 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31019 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31020 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31021 built-ins.
31022 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31023 (arm_vector_mode_supported_p): Handle V4HF.
31024 (arm_mangle_map): Handle V4HFmode.
31025 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31026 * config/arm/arm_neon_builtins.def: Add entries for
31027 vcvtv4hfv4sf, vcvtv4sfv4hf.
31028 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31029 (neon_vcvtv4hfv4sf): Likewise.
31030 * config/arm/neon-gen.ml: Handle half-precision floating point
31031 features.
31032 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31033 * config/arm/arm_neon.h: Regenerate.
31034 * config/arm/neon.ml (type elts): Add F16.
31035 (type vectype): Add T_float16x4, T_floatHF.
31036 (type vecmode): Add V4HF.
31037 (type features): Add Requires_FP_bit feature.
31038 (elt_width): Handle F16.
31039 (elt_class): Likewise.
31040 (elt_of_class_width): Likewise.
31041 (mode_of_elt): Refactor.
31042 (type_for_elt): Handle F16, fix error messages.
31043 (vectype_size): Handle T_float16x4.
31044 (vcvt_sh): New function.
31045 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31046 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31047 (string_of_mode): Handle V4HF.
31048 * doc/arm-neon-intrinsics.texi: Regenerate.
31049
31050 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31051
31052 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31053 format specifier in 'X' case.
31054
31055 2013-04-25 Alan Modra <amodra@gmail.com>
31056
31057 PR target/57052
31058 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31059 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31060 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31061 Repeat for many other rotate/shift and mask patterns using subregs.
31062 Name lshiftrt insns.
31063 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31064 on WORDS_BIG_ENDIAN.
31065
31066 2013-04-25 Alan Modra <amodra@gmail.com>
31067
31068 * config.gcc: Support little-endian powerpc-linux targets.
31069 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31070 (LINK_OS_LINUX_SPEC): Define.
31071 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31072 Preserve MASK_LITTLE_ENDIAN.
31073 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31074 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31075 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31076 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31077 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31078 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31079 Correct fp word order for little-endian. Don't shift toc entries
31080 smaller than a word for little-endian.
31081 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31082 (bswapdi2 splits): Correct low-part subreg for little-endian.
31083 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31084 low/high where such is correct only for be.
31085 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31086 little-endian for -mcall-aixdesc.
31087
31088 2013-04-25 Alan Modra <amodra@gmail.com>
31089
31090 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31091 replace_equiv_address_nv.
31092
31093 2013-04-25 Alan Modra <amodra@gmail.com>
31094
31095 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31096
31097 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31098
31099 Revert:
31100 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31101 * rtl.h (struct rtx_def): ...
31102
31103 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31104
31105 PR rtl-optimizations/57046
31106 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31107 for multi-reg splits.
31108
31109 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31110
31111 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31112
31113 2013-04-24 Sterling Augustine <saugustine@google.com>
31114
31115 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31116 (comp_dir_string, debug_str_dwo_section): New.
31117 (DEBUG_STR_DWO_SECTION): Rename to ...
31118 (DEBUG_DWO_STR_SECTION): ... this.
31119 (DEBUG_NORM_STR_SECTION): Delete.
31120 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31121 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31122 (find_AT_string): Move most logic to ...
31123 (find_AT_string_in_table): ... here. New.
31124 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31125 add_skeleton_AT_string. Delete logic.
31126 (output_skeleton_debug_sections): Remove call to
31127 add_top_level_skeleton_die_attrs.
31128 (add_comp_dir_attribute): Move logic to comp_dir_string.
31129 (dwarf2out_init): Initialize debug_str_dwo_section.
31130 (output_indirect_string): Call find_string_form.
31131 (output_indirect_strings): Rewrite.
31132 (prune_unused_types): Empty skeleton_debug_str_hash.
31133 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31134 (dwarf2out_finish): Call output_indirect_strings.
31135
31136 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31137
31138 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31139
31140 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31141
31142 * rtl.h (struct rtx_def): Add comment for field jump.
31143 (LRA_SUBREG_P): New macro.
31144 * recog.c (register_operand): Check LRA_SUBREG_P.
31145 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31146 stack frame.
31147 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31148 (lra_final_code_change): Skip subreg change for operators.
31149 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31150 if there are no operand changes.
31151 * lra-constraints.c (curr_insn_set): New.
31152 (match_reload): Set LRA_SUBREG_P.
31153 (emit_spill_move): Ditto.
31154 (check_and_process_move): Use curr_insn_set. Process only single
31155 set insns. Don't initialize sec_mem_p and change_p.
31156 (simplify_operand_subreg): Use LRA_SUBREG_P.
31157 (reg_in_class_p): New function.
31158 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31159 of #ifdef. Add code to remove cycling.
31160 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31161 non-null disp. Reload inner instead of disp when base and index
31162 are null. Try to put lo_sum into register.
31163 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31164 (check_and_process_move): Move code for move cost check to
31165 simple_move_p. Remove equiv_substitution.
31166 (simple_move_p): New function.
31167 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31168 curr_insn_set. Call check_and_process_move only for single set
31169 insns. Use the new function. Move call of check_and_process_move
31170 after operand equiv substitution and address process.
31171
31172 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31173
31174 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31175 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31176 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31177
31178 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31179
31180 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31181
31182 2013-04-24 Marek Polacek <polacek@redhat.com>
31183
31184 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31185 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31186 (select_loops_exit_conditions): Likewise.
31187 (number_of_iterations_for_all_loops): Likewise.
31188 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31189 (scev_analysis): Likewise.
31190
31191 2013-04-02 Catherine Moore <clm@codesourcery.com>
31192 Chao-ying Fu <fu@mips.com>
31193
31194 * config/mips/micromips.md (jraddiusp): New pattern.
31195 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31196 instruction if possible.
31197
31198 2013-04-24 Alan Modra <amodra@gmail.com>
31199
31200 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31201
31202 2013-04-24 Julian Brown <julian@codesourcery.com>
31203 Chung-Lin Tang <cltang@codesourcery.com>
31204
31205 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31206 dependency behavior in enumeration type DIE generation. Add TODO note
31207 to comments about future DW_FORM_sdata/udata re-work of related code.
31208
31209 2013-04-23 Lawrence Crowl <crowl@google.com>
31210
31211 * Makefile.in: Update as needed below.
31212
31213 * hash-table.h (class hash_table):
31214 Correct many methods with parameter types compare_type to the correct
31215 value_type. (Correct code was unlikely to notice the change.)
31216 (hash_table::elements_with_deleted) New.
31217 (class hashtable::iterator): New.
31218 (hashtable::begin()): New.
31219 (hashtable::end()): New.
31220 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31221
31222 * statistics.c (statistics_hashes):
31223 Change type to hash_table. Update dependent calls and types.
31224
31225 * tree-into-ssa.c (var_infos):
31226 Change type to hash_table. Update dependent calls and types.
31227
31228 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31229 Change type to hash_table. Update dependent calls and types.
31230
31231 * tree-ssa-loop-im.c (struct mem_ref.refs):
31232 Change type to hash_table. Update dependent calls and types.
31233
31234 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31235 Change type to hash_table. Update dependent calls and types.
31236
31237 * tree-ssa-sccvn.c (vn_tables_s::nary):
31238 Change type to hash_table. Update dependent calls and types.
31239 (vn_tables_s::phis): Likewise.
31240 (vn_tables_s::references): Likewise.
31241
31242 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31243 (vn_reference_eq): Update parameter and return types.
31244
31245 * tree-ssa-structalias.c (pointer_equiv_class_table):
31246 Change type to hash_table. Update dependent calls and types.
31247 (location_equiv_class_table): Likewise.
31248
31249 * tree-vect-data-refs.c: Consequential changes for making
31250 peeling a hash_table.
31251
31252 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31253 (destroy_loop_vec_info): Dependent hash_table update.
31254
31255 * tree-vectorizer.h (peeling_htab):
31256 Change type to hash_table. Update dependent calls and types.
31257
31258 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31259
31260 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31261 to check the register content is equal or not.
31262 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31263 to assign register content record.
31264 * lra-eliminations.c (update_reg_eliminate): Use
31265 lra_update_reg_val_offset to update register content offset.
31266 * lra-int.h (struct lra_reg): Add offset member.
31267 (lra_reg_val_equal_p): New static inline function.
31268 (lra_update_reg_val_offset): New static inline function.
31269 (lra_assign_reg_val): New static inline function.
31270 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31271 to assign register content record.
31272 (initialize_lra_reg_info_element): Initial offset to zero.
31273
31274 2013-04-23 Catherine Moore <clm@codesourcery.com>
31275
31276 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31277 operands. Record compression.
31278
31279 2013-04-23 Xinliang David Li <davidxl@google.com>
31280
31281 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31282
31283 2013-04-23 Richard Biener <rguenther@suse.de>
31284
31285 PR middle-end/57036
31286 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31287 parameter, only add abnormal goto edges from the copied body
31288 if the call could perform abnormal gotos.
31289 (copy_cfg_body): Adjust.
31290
31291 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31292
31293 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31294
31295 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31296
31297 * coretypes.h (gimple_stmt_iterator): Add struct to make
31298 compatible with C.
31299
31300 2013-04-23 Richard Biener <rguenther@suse.de>
31301
31302 PR tree-optimization/57026
31303 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31304 from SSA names occuring in abnormal PHI nodes.
31305
31306 2013-04-22 Andi Kleen <ak@linux.intel.com>
31307
31308 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31309
31310 2013-04-22 Andi Kleen <ak@linux.intel.com>
31311
31312 * lto/lto.c (print_lto_report_1): Declare early.
31313 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31314
31315 2013-04-22 Andi Kleen <ak@linux.intel.com>
31316
31317 * common.opt (-flto-report-wpa): Add.
31318 * doc/invoke.texi (-flto-report-wpa): Add.
31319 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31320 (lto_main): dito.
31321
31322 2013-04-22 Xinliang David Li <davidxl@google.com>
31323
31324 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31325 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31326 * Makefile.in: New dependency
31327
31328 David Daney <ddaney.cavm@gmail.com>
31329
31330 * configure.ac (gcc_cv_as_micromips_support): Use the
31331 --fatal-warnings option.
31332 * configure: Regenerate.
31333
31334 2013-04-22 Marek Polacek <polacek@redhat.com>
31335
31336 PR sanitizer/56990
31337 * tsan.c (instrument_expr): Don't instrument expression
31338 in case its size is zero.
31339
31340 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31341
31342 PR target/57032
31343 Revert:
31344 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31345
31346 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31347
31348 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31349
31350 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31351 (gimple_stmt_iterator): New typedef.
31352 * gimple.h (gimple_stmt_iterator): Rename to...
31353 (gimple_stmt_iterator_d): ... This.
31354 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31355 trees be valid for GIMPLE and GENERIC.
31356 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31357 * gimple-fold.c (gimple_fold_call): Call target hook
31358 gimple_fold_builtin.
31359 * hooks.c (hook_bool_gsiptr_false): New.
31360 * hooks.h (hook_bool_gsiptr_false): New.
31361 * target.def (fold_stmt): New.
31362 * doc/tm.texi: Regenerate.
31363
31364 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31365
31366 PR target/57018
31367 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31368 a set sp if no stack realignment.
31369
31370 2013-04-22 Nick Clifton <nickc@redhat.com>
31371
31372 * config.gcc (tilegx-linux): Extend extra_objs rather than
31373 overwriting it.
31374 (tilepro-linux): Likewise.
31375
31376 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31377
31378 * config/aarch64/aarch64-builtins.c
31379 (CF): Remove.
31380 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31381 (VAR<1-12>): Add MAP parameter.
31382 (BUILTIN_*): Likewise.
31383 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31384 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31385 (aarch64_ushl_n<mode>): Likewise.
31386 (aarch64_sshr_n<mode>): Likewise.
31387 (aarch64_ushr_n<mode>): Likewise.
31388 (aarch64_<maxmin><mode>): Likewise.
31389 (aarch64_sqrt<mode>): Likewise.
31390 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31391 (vshr<q>_n_*): Likewise.
31392
31393 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31394
31395 * config/aarch64/aarch64-builtins.c
31396 (aarch64_simd_builtin_type_mode): Handle SF types.
31397 (sf_UP): Define.
31398 (BUILTIN_GPF): Define.
31399 (aarch64_init_simd_builtins): Handle SF types.
31400 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31401 (frecps): Likewise.
31402 (frecpx): Likewise.
31403 * config/aarch64/aarch64-simd.md
31404 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31405 (aarch64_frecpe<mode>): New.
31406 (aarch64_frecps<mode>): Likewise.
31407 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31408 (v8type): Add frecp<esx>.
31409 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31410 (aarch64_frecps<mode>): Likewise.
31411 * config/aarch64/iterators.md (FRECP): New.
31412 (frecp_suffix): Likewise.
31413 * config/aarch64/arm_neon.h
31414 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31415
31416 2013-04-22 Christian Bruel <christian.bruel@st.com>
31417
31418 PR target/56995
31419 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31420 (REG_CLASS_NAMES): Idem.
31421 (REG_CLASS_CONTENTS): Idem.
31422 (REGCLASS_HAS_FP_REG): Idem.
31423 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31424 (sh_conditional_register_usage): Idem.
31425
31426 2013-04-21 Jeff Law <law@redhat.com>
31427
31428 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31429 (ssa_forward_propagate_and_combine): Use it.
31430
31431 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31432
31433 * lra.c: Update the flow chart diagram.
31434
31435 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31436
31437 PR rtl-optimization/56847
31438 * lra-constraints.c (process_alt_operands): Discourage alternative
31439 with non-matche doffsettable memory constraint fro memory with
31440 known offset.
31441
31442 2013-04-19 Richard Biener <rguenther@suse.de>
31443
31444 PR tree-optimization/56982
31445 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31446 function.
31447 * gimplify.c (gimplify_call_expr): Notice special calls.
31448 (gimplify_modify_expr): Likewise.
31449 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31450 abnormal control flow receivers.
31451 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31452 in the same way as cfun->has_nonlocal_labels.
31453 (gimple_purge_dead_abnormal_call_edges): Likewise.
31454 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31455 receivers start a basic-block.
31456
31457 2013-04-19 Richard Biener <rguenther@suse.de>
31458
31459 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31460 member ...
31461 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31462 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31463 (SLP_TREE_LOAD_PERMUTATION): Add.
31464 (vect_transform_slp_perm_load): Adjust prototype.
31465 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31466 (vect_free_slp_instance): Likewise.
31467 (vect_create_new_slp_node): Likewise.
31468 (vect_supported_slp_permutation_p): Remove.
31469 (vect_slp_rearrange_stmts): Adjust.
31470 (vect_supported_load_permutation_p): Likewise. Inline
31471 vect_supported_slp_permutation_p here.
31472 (vect_analyze_slp_instance): Compute load permutations per
31473 slp node instead of per instance.
31474 (vect_get_slp_defs): Adjust.
31475 (vect_transform_slp_perm_load): Likewise.
31476 (vect_schedule_slp_instance): Remove redundant code.
31477 (vect_schedule_slp): Remove hack for PR56270, add it ...
31478 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31479 CSE loads for SLP. Adjust.
31480
31481 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31482
31483 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31484 spelling in two comments.
31485
31486 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31487
31488 PR target/56797
31489 * config/arm/arm.c (load_multiple_sequence): Require SP
31490 as base register for loads if SP is in the register list.
31491
31492 2013-04-19 Martin Jambor <mjambor@suse.cz>
31493
31494 PR tree-optimization/56718
31495 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31496 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31497 and made public. Adjusted all callers.
31498 (ipa_intraprocedural_devirtualization): New function.
31499 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31500 (ipa_intraprocedural_devirtualization): Likewise.
31501 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31502
31503 2013-04-19 Richard Biener <rguenther@suse.de>
31504
31505 PR tree-optimization/57000
31506 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31507
31508 2013-04-19 Terry Guo <terry.guo@arm.com>
31509
31510 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31511 Replace with ...
31512 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31513 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31514 (cortex_m4_fmacs): Use new reservations.
31515 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31516
31517 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31518
31519 PR rtl-optimization/56999
31520 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31521 related code.
31522 (lra_coalesce): Remove split_origin_bitmap and related code.
31523 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31524 ranges if necessary.
31525
31526 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31527
31528 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31529 New array.
31530 (ix86_expand_call): Remove clobbered_registers array and use
31531 x86_64_ms_sysv_extra_clobbered_registers instead.
31532 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31533 Declare here.
31534 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31535 predicate.
31536 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31537 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31538 (*call_value_rex64_ms_sysv): Ditto.
31539
31540 2013-04-18 Cary Coutant <ccoutant@google.com>
31541
31542 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31543 parent instead of die_mark.
31544
31545 2013-04-18 Diego Novillo <dnovillo@google.com>
31546
31547 * gimple.c (create_gimple_tmp): New.
31548 (get_expr_type): New.
31549 (build_assign): New.
31550 (build_type_cast): New.
31551 * gimple.h (enum ssa_mode): Define.
31552 (gimple_seq_set_location): New.
31553 * asan.c (build_check_stmt): Change some gimple_build_* calls
31554 to use build_assign and build_type_cast.
31555
31556 2013-04-18 Richard Biener <rguenther@suse.de>
31557
31558 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31559 handle negative step. Remove redundant checks.
31560 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31561 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31562 for negative step and grouped loads fail to vectorize.
31563
31564 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31565
31566 * emit-rtl.c (reset_insn_used_flags): New function.
31567 (reset_all_used_flags): Use it.
31568 (verify_insn_sharing): New function.
31569 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31570
31571 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31572
31573 PR tree-optimization/56984
31574 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31575 and (x >> M) >= N don't register any assertion if N << M is the
31576 minimum value.
31577
31578 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31579
31580 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31581 do not delete_insn insns that have not yet been emitted, only
31582 unlink them with remove_insn.
31583 * df-scan.c (df_insn_delete): Revert r197492.
31584
31585 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31586
31587 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31588 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31589
31590 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31591
31592 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31593 define_insn_and_split.
31594 (and_scc,ior_scc,negscc): Likewise.
31595 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31596
31597 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31598
31599 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31600 can benefit from using a sequence of LDRD instructions in epilogue
31601 instead of a single LDM instruction.
31602
31603 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31604
31605 PR 45688
31606 * doc/extend.texi: Fix typo.
31607
31608 2013-04-17 Richard Biener <rguenther@suse.de>
31609
31610 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31611 (vect_build_slp_tree): ... here.
31612 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31613 match. Remove special-casing of mismatched complex loads.
31614 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31615 re-try the match with swapped commutative operands.
31616 (vect_supported_load_permutation_p): Remove special-casing of
31617 mismatched complex loads.
31618 (vect_analyze_slp_instance): Adjust.
31619
31620 2013-04-17 Richard Biener <rguenther@suse.de>
31621
31622 PR rtl-optimization/56921
31623 * cfgloop.h (struct loop): Add simple_loop_desc member.
31624 (struct niter_desc): Mark with GTY(()).
31625 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31626 * loop-iv.c (get_simple_loop_desc): Likewise.
31627 (free_simple_loop_desc): Likewise.
31628
31629 Revert
31630 2013-04-16 Richard Biener <rguenther@suse.de>
31631
31632 PR rtl-optimization/56921
31633 * loop-init.c (pass_rtl_move_loop_invariants): Add
31634 TODO_do_not_ggc_collect to todo_flags_finish.
31635 (pass_rtl_unswitch): Same.
31636 (pass_rtl_unroll_and_peel_loops): Same.
31637 (pass_rtl_doloop): Same.
31638
31639 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31640
31641 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31642 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31643 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31644 references.
31645 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31646 * tree-streamer.c (record_common_node): Adjust reference in comment.
31647
31648 2013-04-17 Terry Guo <terry.guo@arm.com>
31649
31650 * config/arm/cortex-m4.md: Add a new bypass.
31651
31652 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31653
31654 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31655 New pattern.
31656 (*subs_<optab><mode>_multp2): New pattern.
31657 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31658 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31659
31660 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31661
31662 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31663 (*subs_mul_imm_<mode>): New pattern.
31664
31665 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31666
31667 PR target/56948
31668 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31669 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31670 (vsx_movti_32bit): Change j->wa to O->wa.
31671
31672 2013-04-16 Richard Biener <rguenther@suse.de>
31673
31674 PR rtl-optimization/56921
31675 * loop-init.c (pass_rtl_move_loop_invariants): Add
31676 TODO_do_not_ggc_collect to todo_flags_finish.
31677 (pass_rtl_unswitch): Same.
31678 (pass_rtl_unroll_and_peel_loops): Same.
31679 (pass_rtl_doloop): Same.
31680
31681 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31682
31683 * config/arm/arm.c (emit_multi_reg_push): New declaration
31684 for an existing function.
31685 (arm_emit_strd_push): New function.
31686 (arm_expand_prologue): Used here.
31687 (arm_emit_ldrd_pop): New function.
31688 (arm_expand_epilogue): Used here.
31689 (arm_get_frame_offsets): Update condition.
31690 (arm_emit_multi_reg_pop): Add a special case for load of a single
31691 register with writeback.
31692
31693 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31694
31695 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31696 description.
31697
31698 2013-04-16 Richard Biener <rguenther@suse.de>
31699
31700 PR tree-optimization/56756
31701 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31702 (first_mem_ref_loc): New.
31703 (execute_sm): Place the load temporarily before a previous
31704 access instead of in the latch edge to ensure its SSA dependencies
31705 are defined at points dominating the load.
31706
31707 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31708
31709 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31710 correct fix by moving header and footer insn to the footer of
31711 the merged basic block. Clear BB_END of the merged-away block.
31712
31713 PR middle-end/43631
31714 * emit-rtl.c (make_note_raw): New function.
31715 (link_insn_into_chain): New static inline function.
31716 (add_insn): Use it.
31717 (add_insn_before, add_insn_after): Factor insn chain linking code...
31718 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31719 using link_insn_into_chain.
31720 (note_outside_basic_block_p): New helper function for emit_note_after
31721 and emit_note_before.
31722 (emit_note_after): Use nobb variant of add_insn_after if the note
31723 should not be contained in a basic block.
31724 (emit_note_before): Use nobb variant of add_insn_before if the note
31725 should not be contained in a basic block.
31726 (emit_note_copy): Use make_note_raw.
31727 (emit_note): Likewise.
31728 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31729 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31730 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31731 the moved barrier the tail of the basic block it follows.
31732 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31733
31734 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31735
31736 PR tree-optimization/56962
31737 * gimple-ssa-strength-reduction.c (record_increment): Only set
31738 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31739 either rhs1 or rhs2 is equal to c->base_expr.
31740
31741 2013-04-15 Richard Biener <rguenther@suse.de>
31742
31743 PR tree-optimization/56933
31744 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31745 member.
31746 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31747 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31748 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31749 dependence check ...
31750 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31751 ... here.
31752 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31753 GROUP_READ_WRITE_DEPENDENCE.
31754
31755 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31756
31757 * emit-rtl.c (reset_all_used_flags): New function.
31758 (verify_rtl_sharing): Call reset_all_used_flags before and after
31759 performing the checks.
31760
31761 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31762
31763 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31764 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31765 * config/arm/constraints.md (De): New constraint.
31766 * config/arm/neon.md (anddi3_neon): Delete.
31767 (neon_vand<mode>): Expand to standard anddi3 pattern.
31768 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31769 Move earlier in the file.
31770 (neon_inv_logic_op2): Likewise.
31771 (arm_anddi_operand_neon): New predicate.
31772
31773 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31774
31775 * configure.ac (gcc_cv_ld_as_needed): Set
31776 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31777 Use -z ignore, -z record on *-*-solaris2*.
31778 (HAVE_LD_AS_NEEDED): Update comment.
31779 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31780 * configure: Regenerate.
31781 * config.in: Regenerate.
31782 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31783 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31784 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31785 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31786 equivalents. Fix markup.
31787 * doc/tm.texi: Regenerate.
31788
31789 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31790
31791 * config/i386/i386.opt: New option mstack-protector-guard=.
31792 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31793 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31794 TARGET_SSP_TLS_GUARD.
31795 * config/i386/i386.c (ix86_option_override_internal): Set
31796 ix86_stack_protector_guard.
31797 * config/i386/i386.md (stack_protect_set): Enable for
31798 TARGET_SSP_TLS_GUARD only.
31799 (stack_protect_set_<mode>): Ditto.
31800 (stack_protect_test): Ditto.
31801 (stack_protect_test_<mode>): Ditto.
31802 * doc/invoke.texi (i386 Option): Document.
31803
31804 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31805
31806 PR target/56890
31807 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31808 (S_MODES): Set H_MODE bit.
31809 (SF_MODES): Set only S_MODE and SF_MODE bits.
31810 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31811 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31812 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31813 <MODE_FLOAT>: Likewise.
31814
31815 2013-04-15 Joey Ye <joey.ye@arm.com>
31816
31817 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31818
31819 2013-04-15 Joey Ye <joey.ye@arm.com>
31820
31821 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31822 for real far jump.
31823 (thumb_far_jump_used_p): Count instruction size and set
31824 far_jump_used.
31825
31826 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31827
31828 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31829 * resource.c (mark_target_live_regs): Reformat conditional block.
31830
31831 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31832
31833 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31834 notes, they are emitted only just before final.
31835 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31836
31837 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31838
31839 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31840 * cfgrtl.c (delete_insn): Call it here instead.
31841 * lra-spills.c (lra_final_code_change): Use delete_insn.
31842 * haifa-sched.c (sched_remove_insn): Likewise.
31843 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31844 returning to the nop pool.
31845 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31846 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31847
31848 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31849
31850 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31851 * doc/tm.texi: Regenerated.
31852
31853 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31854
31855 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31856 QImode checks.
31857
31858 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31859
31860 * df-core.c (df_find_def): Compare register numbers.
31861 (df_find_use): Likewise.
31862
31863 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31864
31865 PR target/56903
31866 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31867 lra_in_progress for return.
31868
31869 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31870
31871 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31872 define_insn into define_insn_and_split and emit movsicc patterns.
31873
31874 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31875
31876 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31877
31878 2013-04-12 Richard Biener <rguenther@suse.de>
31879
31880 * tree-pass.h (TODO_do_not_ggc_collect): New.
31881 * passes.c (execute_one_ipa_transform_pass): Honor
31882 TODO_do_not_ggc_collect.
31883 (execute_one_pass): Likewise.
31884
31885 Revert
31886 2013-04-10 Richard Biener <rguenther@suse.de>
31887
31888 * passes.c (init_optimization_passes): Remove reload pass.
31889 * ira.c (do_reload): Merge into ...
31890 (ira): ... this.
31891 (rest_of_handle_reload): Remove.
31892 (pass_reload): Likewise.
31893 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31894 of reload for vzeroupper pass placement.
31895
31896 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31897
31898 PR tree-optimization/56918
31899 PR tree-optimization/56920
31900 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31901 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31902 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31903 use wide_mul_with_sign method.
31904
31905 2013-04-12 Richard Biener <rguenther@suse.de>
31906
31907 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31908 not be considered a gimple constant.
31909
31910 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31911
31912 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31913 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31914 operations.
31915
31916 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31917 Jakub Jelinek <jakub@redhat.com>
31918
31919 * opts.c: Include diagnostic-color.h.
31920 (common_handle_option): Handle OPT_fdiagnostics_color_.
31921 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31922 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31923 (diagnostic-color.o): New.
31924 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31925 (diagnostic_color_rule): New enum.
31926 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31927 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31928 the location string.
31929 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31930 either NULL, or color kind.
31931 * diagnostic-color.c: New file.
31932 * diagnostic-color.h: New file.
31933 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31934 arguments.
31935 * doc/invoke.texi (-fdiagnostics-color): Document.
31936 * pretty-print.h (pp_show_color): Define.
31937 (struct pretty_print_info): Add show_color field.
31938 * diagnostic.c: Include diagnostic-color.h.
31939 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31940 macros. Colorize error:, warning: etc. strings and also the location
31941 string.
31942 (diagnostic_show_locus): Colorize the caret line.
31943 * pretty-print.c: Include diagnostic-color.h.
31944 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31945 inside of %< %> quotes or quoted through q format modifier.
31946
31947 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31948
31949 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31950
31951 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31952
31953 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31954 code in CC_NZ mode.
31955 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31956 pattern.
31957
31958 2013-04-11 Marek Polacek <polacek@redhat.com>
31959
31960 PR tree-optimization/48184
31961 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31962
31963 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
31964
31965 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
31966 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
31967 (skip_simple_arithmetic): Tidy up.
31968 * tree.h (skip_simple_constant_arithmetic): Declare.
31969
31970 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31971
31972 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
31973
31974 2013-04-11 Richard Biener <rguenther@suse.de>
31975
31976 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31977 generate vector constants.
31978
31979 2013-04-11 Richard Biener <rguenther@suse.de>
31980
31981 PR tree-optimization/56878
31982 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
31983 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
31984 New function.
31985 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31986 Prefer to align the DR with the most invariant base address.
31987
31988 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31989
31990 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
31991 comment.
31992
31993 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
31994
31995 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
31996 floating-point vector comparisons against 0.
31997
31998 2013-04-11 Jakub Jelinek <jakub@redhat.com>
31999
32000 PR tree-optimization/56899
32001 * fold-const.c (extract_muldiv_1): Apply distributive law
32002 only if TYPE_OVERFLOW_WRAPS (ctype).
32003
32004 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32005
32006 PR target/56124
32007 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32008 loading has side effect.
32009
32010 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32011
32012 * config/sparc/sparc.c: Include tree-pass.h.
32013 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32014 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32015 head of file. Change return type. Split off gate function.
32016 (sparc_gate_work_around_errata): New function.
32017 (pass_work_around_errata): New pass definition.
32018 (insert_pass_work_around_errata) New pass insert definition to
32019 insert pass_work_around_errata just after delayed-branch scheduling.
32020 (sparc_option_override): Insert the pass.
32021 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32022
32023 2013-04-10 David S. Miller <davem@davemloft.net>
32024
32025 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32026 or -mcpu=hypersparc.
32027
32028 * target.def (cstore_mode): New hook.
32029 * target.h: Include insn-codes.h
32030 * targhooks.c: Likewise.
32031 (default_cstore_mode): New function.
32032 * targhooks.h: Declare it.
32033 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32034 * doc/tm.texi: Rebuild.
32035 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32036 target hook, rather than inspecting the insn_data.
32037 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32038 (TARGET_CSTORE_MODE): Redefine.
32039 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32040 result patterns.
32041 * config/sparc/predicates.md (cstore_result_operand): New special
32042 predicate.
32043 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32044 Use it for operand 0.
32045 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32046 (*snesi_special): Likewise.
32047 (*snesi_zero): Likewise.
32048 (*seqsi_zero): Likewise.
32049 (*sltu_insn): Likewise.
32050 (*sgeu_insn): Likewise.
32051 (*seqdi_special): Make operand 0 and comparison operation be of
32052 DImode.
32053 (*snedi_special): Likewise.
32054 (*snedi_special_vis3): Likewise.
32055 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32056 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32057 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32058 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32059 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32060 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32061 (*sltu_extend_sp64): Likewise.
32062 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32063 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32064 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32065 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32066 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32067
32068 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32069
32070 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32071 (aarch64_start_file): Use the new function.
32072
32073 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32074 Jason Merrill <jason@redhat.com>
32075
32076 * common.opt: Add -gdwarf.
32077 * opts.c (common_handle_option): Handle it.
32078 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32079
32080 2013-04-10 Richard Biener <rguenther@suse.de>
32081
32082 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32083 (execute_one_ipa_transform_pass): But unconditionally here.
32084 (execute_one_pass): And here.
32085 (init_optimization_passes): Remove reload pass.
32086 * tree-pass.h (TODO_ggc_collect): Remove.
32087 (pass_reload): Likewise.
32088 * ira.c (do_reload): Merge into ...
32089 (ira): ... this.
32090 (rest_of_handle_reload): Remove.
32091 (pass_reload): Likewise.
32092 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32093 of reload for vzeroupper pass placement.
32094 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32095 and todo_flags_finish of all passes.
32096
32097 2013-04-10 Richard Biener <rguenther@suse.de>
32098
32099 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32100 first_const_oprnd field, rename first_def_type to first_op_type.
32101 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32102 (vect_get_and_check_slp_defs): Always use the type of the
32103 operand. Allow mixed vect_external_def, vect_constant_def types.
32104 (vect_get_constant_vectors): Handle mixed vect_external_def,
32105 vect_constant_def types.
32106
32107 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32108
32109 PR tree-optimization/55524
32110 * tree-ssa-math-opts.c
32111 (convert_mult_to_fma): Don't use an fms construct
32112 when we don't have an fms operation, but fnma, and it looks
32113 likely that we'll be able to use the latter.
32114
32115 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32116
32117 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32118 function.
32119 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32120 inline fail caused by overwritable functions.
32121
32122 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32123
32124 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32125 unnecessary bits in the constant power of two case.
32126
32127 2013-04-10 Richard Biener <rguenther@suse.de>
32128
32129 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32130 broken code swapping operands.
32131 (vect_build_slp_tree): Do not compute load permutations here.
32132 (vect_analyze_slp_instance): Compute load permutations here,
32133 after building the SLP tree.
32134
32135 2013-04-09 Christian Bruel <christian.bruel@st.com>
32136
32137 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32138 of next/prev_real_insn.
32139
32140 2013-04-09 Jan Hubicka <jh@suse.cz>
32141
32142 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32143 Drop aliased parameter.
32144 (function_and_variable_visibility): Do not handle alias pairs.
32145 * cgraph.c (varpool_externally_visible_p): Update prototype.
32146 * varpool.c (varpool_add_new_variable): Update.
32147
32148 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32149
32150 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32151
32152 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32153
32154 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32155
32156 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32157
32158 2013-04-09 Marek Polacek <polacek@redhat.com>
32159
32160 PR tree-optimization/48762
32161 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32162
32163 2013-04-09 Richard Biener <rguenther@suse.de>
32164
32165 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32166 dealing with cost.
32167 (vect_build_slp_tree): Likewise.
32168 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32169 calculating the cost of a SLP instance.
32170 (vect_analyze_slp_instance): Use it from here, after building
32171 the SLP tree.
32172
32173 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32174
32175 PR middle-end/56883
32176 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32177 expand_omp_for_static_chunk): Use simple_p = true in
32178 force_gimple_operand_gsi calls when assigning to addressable decls.
32179
32180 2013-04-09 Jeff Law <law@redhat.com>
32181
32182 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32183 when the boolean was created by converting a wider object which
32184 had a boolean range.
32185
32186 2013-04-09 Richard Biener <rguenther@suse.de>
32187
32188 * tree-vectorizer.h (slp_void_p): Remove.
32189 (slp_tree): Typedef before _slp_tree declaration.
32190 (struct _slp_tree): Use a vector of slp_tree as children.
32191 (vect_get_place_in_interleaving_chain): Remove.
32192 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32193 Move ...
32194 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32195 and make static.
32196 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32197 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32198 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32199 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32200 Use slp_node instead of slp_void_p and adjust.
32201
32202 2013-04-09 Richard Biener <rguenther@suse.de>
32203
32204 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32205 work that is not necessary.
32206
32207 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32208
32209 PR tree-optimization/56854
32210 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32211 forward into clobber stmts if it would change MEM_REF lhs into
32212 non-MEM_REF.
32213
32214 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32215
32216 * tree.c (type_hash_lookup, type_hash_add): Make static.
32217 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32218
32219 2013-04-09 Richard Biener <rguenther@suse.de>
32220
32221 * tree.h (unsave_expr_now): Remove.
32222 * tree-inline.c (mark_local_for_remap_r): Remove.
32223 (unsave_expr_1): Likewise.
32224 (unsave_r): Likewise.
32225 (unsave_expr_now): Likewise.
32226 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32227 (propagate_tree_value): Likewise.
32228
32229 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32230
32231 * doc/rtl.texi (sequence): Rewrite documentation to match the
32232 current use of SEQUENCE rtl objects.
32233 * rtl.def (SEQUENCE): Likewise.
32234
32235 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32236 Update documentation.
32237 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32238 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32239
32240 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32241
32242 2013-04-08 Teresa Johnson <tejohnson@google.com>
32243
32244 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32245 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32246 methods.
32247 (estimate_edge_size_and_time): Add comment to suggest using rounding
32248 methods.
32249 (estimate_node_size_and_time): Ditto.
32250 (remap_edge_change_prob): Use helper rounding divide methods.
32251 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32252 (gimple_mod_pow2_value_transform): Ditto.
32253 (gimple_mod_subtract_transform): Ditto.
32254 (gimple_ic_transform): Ditto.
32255 (gimple_stringops_transform): Ditto.
32256 * stmt.c (conditional_probability): Ditto.
32257 (emit_case_dispatch_table): Ditto.
32258 * lto-cgraph.c (merge_profile_summaries): Ditto.
32259 * tree-optimize.c (execute_fixup_cfg): Ditto.
32260 * cfgcleanup.c (try_forward_edges): Ditto.
32261 * cfgloopmanip.c (scale_loop_profile): Ditto.
32262 (loopify): Ditto.
32263 (duplicate_loop_to_header_edge): Ditto.
32264 (lv_adjust_loop_entry_edge): Ditto.
32265 * tree-vect-loop.c (vect_transform_loop): Ditto.
32266 * profile.c (compute_branch_probabilities): Ditto.
32267 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32268 * lto-streamer-in.c (input_cfg): Ditto.
32269 * gimple-streamer-in.c (input_bb): Ditto.
32270 * ipa-cp.c (update_profiling_info): Ditto.
32271 (update_specialized_profile): Ditto.
32272 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32273 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32274 rounding methods.
32275 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32276 (compute_trg_info): Ditto.
32277 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32278 (purge_dead_edges): Ditto.
32279 * loop-unswitch.c (unswitch_loop): Ditto.
32280 * cgraphclones.c (cgraph_clone_edge): Ditto.
32281 (cgraph_clone_node): Ditto.
32282 * tree-inline.c (copy_bb): Ditto.
32283 (copy_edges_for_bb): Ditto.
32284 (initialize_cfun): Ditto.
32285 (copy_cfg_body): Ditto.
32286 (expand_call_inline): Ditto.
32287
32288 2013-04-08 Kai Tietz <ktietz@redhat.com>
32289
32290 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32291 TARGET_CYGWIN64 by TARGET_64BIT.
32292
32293 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32294
32295 * config/epiphany/epiphany.md (GPR_1): New constant.
32296 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32297 * config/epiphany/epiphany.c (gen_compare_reg):
32298 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32299 is already in place.
32300 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32301 Don't require being called during rtl expansion; If y operlaps r0,
32302 return 0.
32303 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32304 (epiphany_expand_epilogue): Likewise.
32305
32306 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32307 Don't use CC_FPmode for ORDERED / UNORDERED.
32308 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32309
32310 * config/epiphany/constraints.md (CnL): New constraint.
32311 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32312 * config/epiphany/predicates.md (add_operand): Allow 1024.
32313
32314 * config/epiphany/epiphany.md (logical_op): New code iterator.
32315 (op_mnc): New code attribute.
32316 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32317 (mov_f+1, mov_f+2): New peephole2 patterns.
32318
32319 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32320 (cstoresi4): Also allow re-use of zero result when doing a NE
32321 comparison to a non-zero operand.
32322 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32323
32324 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32325 Use gen_addsi3_i / gen_subsi3_i.
32326
32327 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32328
32329 PR c++/34949
32330 PR c++/50243
32331 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32332 contain anything but clobbers, at most one __builtin_stack_restore,
32333 optionally debug stmts and final resx, and if it has at least one
32334 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32335 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32336 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32337 which isn't defaut definition, remove them.
32338 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32339 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32340 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32341 with MEM_REF LHS with SSA_NAME address.
32342
32343 2013-04-08 Jeff Law <law@redhat.com>
32344
32345 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32346
32347 2013-04-08 Richard Biener <rguenther@suse.de>
32348
32349 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32350 extra newline.
32351 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32352 determined vector type.
32353 (vect_analyze_data_refs): Likewise.
32354 (vect_get_new_vect_var): Adjust.
32355 (vect_create_destination_var): Preserve SSA name versions.
32356 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32357 not dump anything here.
32358
32359 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32360
32361 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32362 Add member lr_slot_known.
32363 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32364 if necessary.
32365 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32366 Remove code that sets lr_slot_offset according to what a previous
32367 version of epiphany_emit_save_restore used to do.
32368 (epiphany_emit_save_restore): When doing an lr save or restore,
32369 set/verify lr_slot_known and lr_slot_offset.
32370
32371 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32372
32373 PR target/54338
32374 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32375 in ALL_REGS.
32376
32377 2013-04-08 Richard Biener <rguenther@suse.de>
32378
32379 * alias.c (find_base_term): Fix thinko in previous change.
32380
32381 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32382
32383 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32384 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32385 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32386 if possible to compute val.
32387 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32388 For QImode integers don't require anything about precision. Use
32389 const_with_all_bytes_same to find out if the constant doesn't have
32390 repeated bytes in it.
32391
32392 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32393
32394 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32395 within mode size.
32396
32397 2013-04-08 Marek Polacek <polacek@redhat.com>
32398
32399 PR rtl-optimization/48182
32400 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32401 value to 1.
32402
32403 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32404
32405 PR target/55487
32406 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32407 nuses, make sure we have a label.
32408
32409 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32410
32411 PR target/56843
32412 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32413 (rs6000_emit_swdiv_low_precision): Remove.
32414 (rs6000_emit_swdiv): Rewrite to handle between one and four
32415 iterations of Newton-Raphson generally; modify required number of
32416 iterations for some cases.
32417 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32418
32419 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32420
32421 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32422 set-but-unused variable.
32423
32424 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32425 basic blocks of released function bodies garbage-collectable.
32426
32427 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32428 (struct rtl_opt_pass): Add TODO_df_finish.
32429
32430 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32431
32432 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32433
32434 * config/arm/constraints.md (q): New constraint.
32435 * config/arm/ldrdstrd.md: New file.
32436 * config/arm/arm.md (ldrdstrd.md) New include.
32437 (arm_movdi): Use "q" instead of "r" constraint
32438 for double-word memory access.
32439 (movdf_soft_insn): Likewise.
32440 * config/arm/vfp.md (movdi_vfp): Likewise.
32441 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32442 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32443 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32444 (mem_ok_for_ldrd_strd): Likewise.
32445 (output_move_double): Update assertion.
32446
32447 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32448
32449 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32450
32451 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32452
32453 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32454 define_insn_and_split.
32455 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32456
32457 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32458
32459 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32460 define_insn_and_split.
32461 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32462 (shiftsi3_compare): New pattern.
32463 (rrx): New pattern.
32464 * config/arm/unspecs.md (UNSPEC_RRX): New.
32465
32466 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32467
32468 * config/arm/arm.md (negdi_extendsidi): New pattern.
32469 (negdi_zero_extendsidi): Likewise.
32470
32471 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32472
32473 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32474 define_insn_and_split.
32475 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32476 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32477
32478 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32479
32480 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32481 define_insn_and_split.
32482 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32483 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32484
32485 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32486
32487 * config/arm/arm.md (subsi3_carryin): New pattern.
32488 (subsi3_carryin_const): Likewise.
32489 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32490 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32491
32492 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32493
32494 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32495
32496 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32497
32498 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32499 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32500
32501 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32502
32503 * config/arm/arm.c (arm_expand_builtin): Change fcode
32504 type to unsigned int.
32505
32506 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32507
32508 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32509
32510 2013-04-04 Ian Lance Taylor <iant@google.com>
32511
32512 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32513 language standard.
32514
32515 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32516
32517 PR middle-end/56729
32518 * df-scan.c (df_insn_delete): Disable failing assert.
32519
32520 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32521
32522 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32523 New function prototype.
32524 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32525 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32526 (arm_builtin_vectorized_function): New function.
32527
32528 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32529
32530 * config/arm/arm_neon_builtins.def: New file.
32531 * config/arm/arm.c (neon_builtin_data): Move contents to
32532 arm_neon_builtins.def.
32533 (enum arm_builtins): Include neon builtin definitions.
32534 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32535 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32536
32537 2013-04-04 Marek Polacek <polacek@redhat.com>
32538
32539 PR tree-optimization/48186
32540 * predict.c (maybe_hot_frequency_p): Return false if
32541 HOT_BB_FREQUENCY_FRACTION is 0.
32542 (cgraph_maybe_hot_edge_p): Likewise.
32543
32544 2013-04-04 Richard Biener <rguenther@suse.de>
32545
32546 PR tree-optimization/56826
32547 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32548 more accurately.
32549
32550 2013-04-04 Richard Biener <rguenther@suse.de>
32551
32552 PR tree-optimization/56213
32553 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32554 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32555
32556 2013-04-04 Richard Biener <rguenther@suse.de>
32557
32558 PR tree-optimization/56837
32559 * tree-loop-distribution.c (classify_partition): For non-zero
32560 values require that the value has the same precision as its
32561 mode to be useful as memset value.
32562
32563 2013-04-03 Nick Clifton <nickc@redhat.com>
32564
32565 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32566 (fmssf4): Use fmsf.s on E3V5 architectures.
32567 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32568 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32569
32570 2013-04-03 Jeff Law <law@redhat.com>
32571
32572 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32573 (lra-eliminations.o): Likewise.
32574
32575 2013-04-03 Teresa Johnson <tejohnson@google.com>
32576
32577 * gcov-io.c (compute_working_sets): Moved most of body of old
32578 compute_working_sets here from profile.c.
32579 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32580 (gcov_working_set_t): Moved typedef here from basic-block.h
32581 (compute_working_set): Declare.
32582 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32583 (get_working_sets): Renamed from compute_working_set,
32584 replace most of body with call to new compute_working_sets.
32585 (get_exec_counts): Replace call to compute_working_sets
32586 to get_working_sets.
32587 * profile.h (get_working_sets): Renamed from compute_working_set.
32588 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32589 to get_working_sets.
32590 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32591 * gcov-dump.c (dump_working_sets): New function.
32592
32593 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32594
32595 * hwint.c (sext_hwi, zext_hwi): New functions.
32596 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32597 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32598 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32599 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32600 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32601 (sext_hwi, zext_hwi): New functions.
32602
32603 2013-04-03 Jeff Law <law@redhat.com>
32604
32605 PR tree-optimization/56799
32606 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32607 back test for widening conversion erroneously dropped in prior change.
32608
32609 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32610
32611 PR target/56809
32612 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32613 instead of next_real_insn.
32614
32615 2013-04-03 Marek Polacek <polacek@redhat.com>
32616
32617 PR sanitizer/55702
32618 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32619
32620 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32621
32622 PR target/56809
32623 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32624 next_real_insn.
32625 (thumb1_output_casesi): Likewise.
32626 (thumb2_output_casesi): Likewise.
32627
32628 2013-04-03 Richard Biener <rguenther@suse.de>
32629
32630 PR tree-optimization/56817
32631 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32632 Split out ...
32633 (tree_unroll_loops_completely_1): ... new function to manually
32634 walk the loop tree, properly defering outer loops of unrolled
32635 loops to later iterations.
32636
32637 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32638
32639 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32640 (vectorizable_load): Likewise.
32641 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32642 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32643
32644 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32645
32646 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32647 BIT_FIELD_REF.
32648
32649 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32650
32651 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32652
32653 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32654
32655 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32656
32657 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32658
32659 PR tree-optimization/56790
32660 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32661 folding.
32662
32663 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32664
32665 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32666 Handle VEC_MERGE.
32667 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32668 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32669 equal arguments.
32670
32671 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32672
32673 PR c/19449
32674 * tree.h (force_folding_builtin_constant_p): New decl.
32675 * builtins.c (force_folding_builtin_constant_p): New variable.
32676 (fold_builtin_constant_p): Fold immediately also if
32677 force_folding_builtin_constant_p.
32678
32679 2013-04-03 Richard Biener <rguenther@suse.de>
32680
32681 PR tree-optimization/56812
32682 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32683 DRs of the same interleaving chain are independent.
32684
32685 2013-04-02 Jason Merrill <jason@redhat.com>
32686
32687 * gdbinit.in (pbb): Use debug fn.
32688
32689 2013-04-02 Lawrence Crowl <crowl@google.com>
32690
32691 * sese.h (struct ivtype_map_elt_s): Remove unused.
32692 (extern debug_ivtype_map): Remove unused.
32693 (extern eq_ivtype_map_elts): Remove unused.
32694 * sese.c (debug_ivtype_map): Removed unused.
32695 (debug_ivtype_map_1): Removed unused.
32696 (debug_ivtype_elt): Remove unused.
32697 (eq_ivtype_map_elts): Remove unused.
32698
32699 2013-04-02 Kai Tietz <ktietz@redhat.com>
32700
32701 PR target/52790
32702 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32703 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32704 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32705 function.
32706 (legitimize_pe_coff_symbol): Likewise.
32707 (is_imported_p): New helper-function.
32708 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32709 for Windows x64 targets.
32710 (ix86_expand_prologue): Optimize for pe-coff targets.
32711 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32712 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32713 medium/large code-model.
32714 (legitimize_pic_address): Likewise.
32715 (legitimize_tls_address): Likewise.
32716 (ix86_expand_call): Likewise.
32717 (x86_output_mi_thunk): Likewise.
32718 (get_dllimport_decl): Add new beimport argument.
32719 (construct_plt_address): Don't assert for x64 pe-coff targets.
32720 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32721 targets.
32722 (SYMBOL_FLAG_STUBVAR): New macro.
32723 (SYMBOL_REF_STUBVAR_P): Likewise.
32724 * config/i386/winnt.c (stub_list): New structure.
32725 (stub_head): New local variable.
32726 (i386_pe_record_stub): New function.
32727 (i386_pe_file_end): Emit refptr-stubs.
32728
32729 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32730
32731 PR rtl-optimization/56745
32732 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32733 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32734
32735 PR c++/34949
32736 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32737 and both of them are MEM_REFs, just compare first argument for
32738 equality and attempt to deal even with differing offsets.
32739
32740 PR c++/34949
32741 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32742 of gimple_clobber_p to be MEM_REF.
32743 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32744 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32745 after gimplification.
32746 * asan.c (get_mem_ref_of_assignment): Don't instrument
32747 gimple_clobber_p stmts.
32748 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32749 gimple_clobber_p stmt if they have MEM_REF lhs and
32750 are dead because of another gimple_clobber_p stmt.
32751 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32752 gimple_clobber_p stmts like debug stmts.
32753 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32754 that refer to unused VAR_DECLs or uninitialized values.
32755 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32756 gimple_clobber_p stmts if they refer to removed parameters.
32757 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32758 formatting.
32759
32760 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32761
32762 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32763 using SWI48 mode attribute.
32764
32765 2013-04-02 Wei Mi <wmi@google.com>
32766
32767 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32768 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32769 *<rotate_insn><mode>3_mask in i386.md.
32770
32771 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32772
32773 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32774
32775 2013-04-02 Richard Biener <rguenther@suse.de>
32776
32777 PR tree-optimization/56778
32778 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32779 Runtime alias tests are not supported for gather loads.
32780 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32781 stmts referenced from SSA operands before updating SSA form.
32782
32783 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32784 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32785
32786 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32787 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32788 * config/arm/cortex-a53.md: New file.
32789 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32790 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32791 * config/arm/arm.c (arm_issue_rate): Likewise.
32792 * config/arm/arm-tune.md: Regenerate
32793 * config/arm/arm-tables.opt: Regenerate.
32794 * config/arm/arm-cores.def: Add cortex-a53.
32795
32796 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32797
32798 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32799 non-static link.
32800
32801 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32802
32803 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32804 scalar load/store operations using B/H registers.
32805 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32806
32807 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32808
32809 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32810 scalar move.
32811 * config/aarch64/aarch64.c
32812 (aarch64_simd_scalar_immediate_valid_for_move): New.
32813 * config/aarch64/aarch64-protos.h
32814 (aarch64_simd_scalar_immediate_valid_for_move): New.
32815 * config/aarch64/constraints.md (Dh, Dq): New.
32816 * config/aarch64/iterators.md (hq): New.
32817
32818 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32819
32820 * reorg.c (get_branch_condition): Deal with conditional returns.
32821 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32822
32823 2013-04-01 Wei Mi <wmi@google.com>
32824
32825 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32826 Truncate operand 2 using %b asm operand modifier.
32827 (*<shift_insn><mode>3_mask): Ditto.
32828 (*<rotate_insn><mode>3_mask): Ditto.
32829
32830 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32831
32832 PR middle-end/56798
32833 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32834
32835 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32836
32837 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32838 of next_real_insn.
32839 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32840
32841 2013-03-30 Lawrence Crowl <crowl@google.com>
32842
32843 * dse.c (clear_alias_sets): Remove never set.
32844 (disqualified_clear_alias_sets): Remove never set.
32845 (clear_alias_mode_pool): Remove never set.
32846 (dse_step0): Remove condition that is never true.
32847 (canon_address): Remove condition that is never true.
32848 (dse_step7): Remove condition that is never true.
32849 (rest_of_handle_dse): Remove condition that is never true.
32850 (rest_of_handle_dse::did_global): Remove never read from above.
32851 (dse_step2_spill): Remove never called from above.
32852 (dse_step5_spill): Remove never called from above.
32853
32854 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32855
32856 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32857 JUMP_TABLE_DATA changes.
32858 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32859 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32860 (Insns) <jump_table_data>: New entry.
32861 * doc/tm.texi: Regenerate.
32862
32863 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32864
32865 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32866 for table jump at the end of a basic block using tablejump_p.
32867 * targhooks.c (default_invalid_within_doloop): Likewise.
32868 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32869 target hook implementation that is identical to the default hook.
32870 (rs6000_invalid_within_doloop): Remove.
32871
32872 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32873 unused variable from tablejump_p call.
32874
32875 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32876 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32877 (INSN_DELETED_P): Likewise.
32878 (emit_jump_table_data): New prototype.
32879 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32880 after 4th as unused.
32881 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32882 * sched-vis.c (print_insn): Likewise.
32883 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32884 insn for compatibility with back ends that use next_active_insn to
32885 identify jump table data.
32886 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32887 (remove_insn): Likewise.
32888 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32889 to be emitted.
32890 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32891 (emit_jump_table_data): New function.
32892
32893 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32894 basic block, a JUMP_TABLE_DATA never is.
32895 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32896 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32897 off from code handling real insns.
32898 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32899 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32900 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32901 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32902 is not a NONDEBUG_INSN_P.
32903 * ira-costs.c (scan_one_insn): Likewise.
32904 * jump.c (mark_all_labels): Likewise.
32905 (mark_jump_label_1): Likewise.
32906 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32907 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32908 a basic block.
32909 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32910 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32911 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32912 JUMP_TABLE_DATA_P insns.
32913 (calculate_elim_costs_all_insns): Likewise.
32914 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32915 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32916 (delete_output_reload): Code style fixups.
32917 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32918 insn flags on this non-insn.
32919 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32920 as scheduling barriers, for pre-change compatibility.
32921 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32922 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32923
32924 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32925 redundant JUMP_TABLE_DATA_P test.
32926 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32927 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32928 (frv_for_each_packet): Likewise.
32929 * config/i386/i386.c (min_insn_size): Likewise.
32930 (ix86_avoid_jump_mispredicts): Likewise.
32931 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32932 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32933 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32934 (mips16_insn_length): Robustify.
32935 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32936 (mips16_split_long_branches): Likewise.
32937 * config/pa/pa.c (pa_combine_instructions): Likewise.
32938 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32939 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32940 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32941 as contributing to pool range lengths.
32942 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32943 Remove redundant JUMP_TABLE_DATA_P test.
32944 (sh_loop_align): Likewise.
32945 (split_branches): Likewise.
32946 (sh_insn_length_adjustment): Likewise.
32947 * config/spu/spu.c (get_branch_target): Likewise.
32948
32949 2013-03-29 Jan Hubicka <jh@suse.cz>
32950
32951 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32952 gcov streaming; stream hot bb threshold to ltrans.
32953 * predict.c (get_hot_bb_threshold): Break out from ....
32954 (maybe_hot_count_p): ... here.
32955 (set_hot_bb_threshold): New function.
32956 * lto-section-in.c (lto_section_name): Add profile.
32957 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32958 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32959 and data-streamer.h
32960 (histogram_entry): New structure.
32961 (histogram, histogram_pool): New global vars.
32962 (histogram_hash): New structure.
32963 (histogram_hash::hash): New method.
32964 (histogram_hash::equal): Likewise.
32965 (account_time_size): New function.
32966 (cmp_counts): New function.
32967 (dump_histogram): New function.
32968 (ipa_profile_generate_summary): New function.
32969 (ipa_profile_write_summary): New function.
32970 (ipa_profile_read_summary): New function.
32971 (ipa_profile): Decide on threshold.
32972 (pass_ipa_profile): Add ipa_profile_write_summary and
32973 ipa_profile_read_summary.
32974 * Makefile.in (ipa.o): Update dependencies.
32975 * lto-streamer.h (LTO_section_ipa_profile): New section.
32976
32977 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
32978
32979 * tree.h (VAR_P): New.
32980
32981 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
32982
32983 PR lto/56777
32984 * doc/invoke.texi ([-fwhole-program]): Fix typo.
32985
32986 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
32987
32988 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
32989 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32990 (control_flow_insn_p): Likewise.
32991 * cfgrtl.c (duplicate_insn_chain): Likewise.
32992 * final.c (get_attr_length_1): Likewise.
32993 (shorten_branches): Likewise.
32994 (final_scan_insn): Likewise.
32995 * function.c (instantiate_virtual_regs): Likewise.
32996 * gcse.c (insert_insn_end_basic_block): Likewise.
32997 * ira-costs.c (scan_one_insn): Likewise.
32998 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32999 * lra.c (check_rtl): Likewise.
33000 * reload1.c (elimination_costs_in_insn): Likewise.
33001 * reorg.c (follow_jumps): Likewise.
33002
33003 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33004 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33005 (thumb_far_jump_used_p): Likewise.
33006 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33007 (workaround_speculation): Likewise.
33008 (add_sched_insns_for_speculation): Likewise.
33009 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33010 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33011 (frv_for_each_packet): Likewise.
33012 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33013 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33014 (final_emit_insn_group_barriers): Likewise.
33015 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33016 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33017 (mips16_insn_length): Likewise.
33018 * config/pa/pa.c (pa_reorg): Likewise.
33019 (pa_combine_instructions): Likewise.
33020 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33021 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33022 (sh_reorg): Likewise.
33023 (split_branches): Likewise.
33024 * config/spu/spu.c (get_branch_target): Likewise.
33025
33026 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33027 JUMP_TABLE_DATA_P.
33028
33029 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33030
33031 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33032 Fix declaration name.
33033
33034 2013-03-28 Lawrence Crowl <crowl@google.com>
33035
33036 * graphds.h (struct graph.indicies): Remove unused.
33037 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33038 (SCOP_ORIGINAL_PDDRS): Remove unused.
33039 * sese.h (extern insert_loop_close_phis): Removed unused.
33040 (extern insert_guard_phis): Removed unused.
33041 (extern ivtype_map_elt_info): Removed unused.
33042 (new_ivtype_map_elt): Removed unused.
33043 * sese.c (ivtype_map_elt_info): Removed unused.
33044
33045 2013-03-28 Lawrence Crowl <crowl@google.com>
33046
33047 * Makefile.in: Add several missing include dependences.
33048 (DUMPFILE_H): New.
33049 (test-dump.o): New. This object is not added to any executable,
33050 but is present for ad-hoc testing.
33051 * bitmap.c
33052 (debug (const bitmap_head_def &)): New.
33053 (debug (const bitmap_head_def *)): New.
33054 * bitmap.h
33055 (extern debug (const bitmap_head_def &)): New.
33056 (extern debug (const bitmap_head_def *)): New.
33057 * cfg.c
33058 (debug (edge_def &)): New.
33059 (debug (edge_def *)): New.
33060 * cfghooks.c
33061 (debug (basic_block_def &)): New.
33062 (debug (basic_block_def *)): New.
33063 * dumpfile.h
33064 (dump_node (const_tree, int, FILE *)): Correct source file.
33065 * dwarf2out.c
33066 (debug (die_struct &)): New.
33067 (debug (die_struct *)): New.
33068 * dwarf2out.h
33069 (extern debug (die_struct &)): New.
33070 (extern debug (die_struct *)): New.
33071 * gimple-pretty-print.c
33072 (debug (gimple_statement_d &)): New.
33073 (debug (gimple_statement_d *)): New.
33074 * gimple-pretty-print.h
33075 (extern debug (gimple_statement_d &)): New.
33076 (extern debug (gimple_statement_d *)): New.
33077 * ira-build.c
33078 (debug (ira_allocno_copy &)): New.
33079 (debug (ira_allocno_copy *)): New.
33080 (debug (ira_allocno &)): New.
33081 (debug (ira_allocno *)): New.
33082 * ira-int.h
33083 (extern debug (ira_allocno_copy &)): New.
33084 (extern debug (ira_allocno_copy *)): New.
33085 (extern debug (ira_allocno &)): New.
33086 (extern debug (ira_allocno *)): New.
33087 * ira-lives.c
33088 (debug (live_range &)): New.
33089 (debug (live_range *)): New.
33090 * lra-int.h
33091 (debug (lra_live_range &)): New.
33092 (debug (lra_live_range *)): New.
33093 * lra-lives.c
33094 (debug (lra_live_range &)): New.
33095 (debug (lra_live_range *)): New.
33096 * omega.c
33097 (debug (omega_pb_d &)): New.
33098 (debug (omega_pb_d *)): New.
33099 * omega.h
33100 (extern debug (omega_pb_d &)): New.
33101 (extern debug (omega_pb_d *)): New.
33102 * print-rtl.c
33103 (debug (const rtx_def &)): New.
33104 (debug (const rtx_def *)): New.
33105 * print-tree.c
33106 (debug_tree (tree): Move within file.
33107 (debug_raw (const tree_node &)): New.
33108 (debug_raw (const tree_node *)): New.
33109 (dump_tree_via_hooks (const tree_node *, int)): New.
33110 (debug (const tree_node &)): New.
33111 (debug (const tree_node *)): New.
33112 (debug_verbose (const tree_node &)): New.
33113 (debug_verbose (const tree_node *)): New.
33114 (debug_head (const tree_node &)): New.
33115 (debug_head (const tree_node *)): New.
33116 (debug_body (const tree_node &)): New.
33117 (debug_body (const tree_node *)): New.
33118 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33119 (debug (vec<tree, va_gc> &)): New.
33120 (debug (vec<tree, va_gc> *)): New.
33121 * rtl.h
33122 (extern debug (const rtx_def &)): New.
33123 (extern debug (const rtx_def *)): New.
33124 * sbitmap.c
33125 (debug_raw (simple_bitmap_def &)): New.
33126 (debug_raw (simple_bitmap_def *)): New.
33127 (debug (simple_bitmap_def &)): New.
33128 (debug (simple_bitmap_def *)): New.
33129 * sbitmap.h
33130 (extern debug (simple_bitmap_def &)): New.
33131 (extern debug (simple_bitmap_def *)): New.
33132 (extern debug_raw (simple_bitmap_def &)): New.
33133 (extern debug_raw (simple_bitmap_def *)): New.
33134 * sel-sched-dump.c
33135 (debug (vinsn_def &)): New.
33136 (debug (vinsn_def *)): New.
33137 (debug_verbose (vinsn_def &)): New.
33138 (debug_verbose (vinsn_def *)): New.
33139 (debug (expr_def &)): New.
33140 (debug (expr_def *)): New.
33141 (debug_verbose (expr_def &)): New.
33142 (debug_verbose (expr_def *)): New.
33143 (debug (vec<rtx> &)): New.
33144 (debug (vec<rtx> *)): New.
33145 * sel-sched-dump.h
33146 (extern debug (vinsn_def &)): New.
33147 (extern debug (vinsn_def *)): New.
33148 (extern debug_verbose (vinsn_def &)): New.
33149 (extern debug_verbose (vinsn_def *)): New.
33150 (extern debug (expr_def &)): New.
33151 (extern debug (expr_def *)): New.
33152 (extern debug_verbose (expr_def &)): New.
33153 (extern debug_verbose (expr_def *)): New.
33154 (extern debug (vec<rtx> &)): New.
33155 (extern debug (vec<rtx> *)): New.
33156 * sel-sched-ir.h
33157 (_list_iter_cond_expr): Make inline instead of static.
33158 * sreal.c
33159 (debug (sreal &)): New.
33160 (debug (sreal *)): New.
33161 * sreal.h
33162 (extern debug (sreal &)): New.
33163 (extern debug (sreal *)): New.
33164 * tree.h
33165 (extern debug_raw (const tree_node &)): New.
33166 (extern debug_raw (const tree_node *)): New.
33167 (extern debug (const tree_node &)): New.
33168 (extern debug (const tree_node *)): New.
33169 (extern debug_verbose (const tree_node &)): New.
33170 (extern debug_verbose (const tree_node *)): New.
33171 (extern debug_head (const tree_node &)): New.
33172 (extern debug_head (const tree_node *)): New.
33173 (extern debug_body (const tree_node &)): New.
33174 (extern debug_body (const tree_node *)): New.
33175 (extern debug (vec<tree, va_gc> &)): New.
33176 (extern debug (vec<tree, va_gc> *)): New.
33177 * tree-cfg.c
33178 (debug (struct loop &)): New.
33179 (debug (struct loop *)): New.
33180 (debug_verbose (struct loop &)): New.
33181 (debug_verbose (struct loop *)): New.
33182 * tree-dump.c: Add header dependence.
33183 * tree-flow.h
33184 (extern debug (struct loop &)): New.
33185 (extern debug (struct loop *)): New.
33186 (extern debug_verbose (struct loop &)): New.
33187 (extern debug_verbose (struct loop *)): New.
33188 * tree-data-ref.c
33189 (debug (data_reference &)): New.
33190 (debug (data_reference *)): New.
33191 (debug (vec<data_reference_p> &)): New.
33192 (debug (vec<data_reference_p> *)): New.
33193 (debug (vec<ddr_p> &)): New.
33194 (debug (vec<ddr_p> *)): New.
33195 * tree-data-ref.h
33196 (extern debug (data_reference &)): New.
33197 (extern debug (data_reference *)): New.
33198 (extern debug (vec<data_reference_p> &)): New.
33199 (extern debug (vec<data_reference_p> *)): New.
33200 (extern debug (vec<ddr_p> &)): New.
33201 (extern debug (vec<ddr_p> *)): New.
33202 * tree-ssa-alias.c
33203 (debug (pt_solution &)): New.
33204 (debug (pt_solution *)): New.
33205 * tree-ssa-alias.h
33206 (extern debug (pt_solution &)): New.
33207 (extern debug (pt_solution *)): New.
33208 * tree-ssa-alias.c
33209 (debug (_var_map &)): New.
33210 (debug (_var_map *)): New.
33211 (debug (tree_live_info_d &)): New.
33212 (debug (tree_live_info_d *)): New.
33213 * tree-ssa-alias.h
33214 (extern debug (_var_map &)): New.
33215 (extern debug (_var_map *)): New.
33216 (extern debug (tree_live_info_d &)): New.
33217 (extern debug (tree_live_info_d *)): New.
33218
33219 2013-03-28 Jan Hubicka <jh@suse.cz>
33220
33221 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33222
33223 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33224
33225 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33226 record only when desired or required.
33227
33228 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33229
33230 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33231 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33232
33233 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33234
33235 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33236 (*andsi3_compare0_uxtw): New pattern.
33237 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33238 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33239
33240 2013-03-28 Jan Hubicka <jh@suse.cz>
33241
33242 * data-streamer-in.c (streamer_read_gcov_count): New function.
33243 * gimple-streamer-out.c: Include value-prof.h.
33244 (output_gimple_stmt): Output histogram.
33245 (output_bb): Use streamer_write_gcov_count.
33246 * value-prof.c: Include data-streamer.h
33247 (dump_histogram_value): Add HIST_TYPE_MAX.
33248 (stream_out_histogram_value): New function.
33249 (stream_in_histogram_value): New function.
33250 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33251 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33252 * data-streamer-out.c (streamer_write_gcov_count): New function.
33253 (streamer_write_gcov_count_stream): New function.
33254 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33255 (lto_output_node): Likewise.
33256 (input_node, input_edge): Likewise.
33257 * lto-streamer-out.c (output_cfg): Update streaming.
33258 * lto-streamer-in.c (input_cfg): Likewise.
33259 * data-streamer.h (streamer_write_gcov_count,
33260 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33261 * gimple-streamer-in.c: Include value-prof.h
33262 (input_gimple_stmt): Input histograms.
33263 (input_bb): Update profile streaming.
33264
33265 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33266
33267 * genmodes.c (emit_max_int): New function.
33268 (emit_insn_modes_h): Added call to emit_max_function.
33269 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33270 Added doc.
33271 * machmode.def: Fixed comment.
33272
33273 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33274
33275 * combine.c (try_combine): Removed useless assert.
33276 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33277
33278 2013-03-28 Marek Polacek <polacek@redhat.com>
33279 Richard Biener <rguenther@suse.de>
33280
33281 PR tree-optimization/56695
33282 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33283 build signed result of a vector comparison.
33284 * tree-cfg.c (verify_gimple_comparison): Check that a result
33285 of a vector comparison has signed type.
33286
33287 2013-03-28 Richard Biener <rguenther@suse.de>
33288
33289 PR tree-optimization/37021
33290 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33291 do not restrict gaps between groups.
33292 * tree-vect-stmts.c (vectorizable_load): Properly account for
33293 a gap between groups.
33294
33295 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33296
33297 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33298 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33299 is not enabled.
33300
33301 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33302
33303 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33304 * doc/extend.texi (Named Address Spaces): Ditto.
33305 (Variable Attributes): Ditto.
33306
33307 2013-03-27 Kai Tietz <ktietz@redhat.com>
33308
33309 * config.build: Add support for cygwin x64 target.
33310 * config.gcc: Likewise.
33311 * config.host: Likewise.
33312 * configure.ac: Likewise
33313 * configure: Regenerated.
33314
33315 2013-03-27 Kai Tietz <ktietz@redhat.com>
33316
33317 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33318 * config/i386/t-cygwin-w64: New file.
33319 * config/i386/cygwin-w64.h: New file.
33320 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33321 and add support for x64-cygwin target.
33322 (CPP_SPEC): Likewise.
33323 (CXX_WRAP_SPEC_LIST): Undefine before define.
33324 (LIBGCJ_SONAME): Use 15 as version.
33325
33326 2013-03-27 Richard Biener <rguenther@suse.de>
33327
33328 PR tree-optimization/56716
33329 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33330 dumping for ref nodes.
33331
33332 2013-03-27 Martin Jambor <mjambor@suse.cz>
33333
33334 PR tree-optimization/55334
33335 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33336 restricted pointers to arrays.
33337
33338 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33339
33340 * Makefile.in (.SUFFIXES): Add .cc.
33341 (.c.o): Apply same recipe for implicit rule .cc.o.
33342
33343 2013-03-27 Richard Biener <rguenther@suse.de>
33344
33345 PR tree-optimization/37021
33346 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33347 REALPART/IMAGPART_EXPRs around the supported refs.
33348 * tree-ssa-structalias.c (find_func_aliases): Assume that
33349 floating-point values are not used to transfer pointers.
33350
33351 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33352
33353 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33354 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33355 * doc/tm.texi: Regenerate.
33356 * targhooks.h (default_has_ifunc_p): New.
33357 * targhooks.c (default_has_ifunc_p): Ditto.
33358 * config/linux-protos.h: New file.
33359 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33360 hook for linux which disables support of indirect functions in android.
33361 * config/linux-android.c: New file.
33362 * config/t-linux-android.c: Ditto.
33363 * config.gcc: Added new object file linux-android.o.
33364 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33365 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33366 * varasm.c (do_assemble_alias): Likewise.
33367 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33368 doesn't support indirect functions.
33369 * configure: Regenerate.
33370
33371 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33372
33373 PR target/56102
33374 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33375 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33376 mult-word mode.
33377
33378 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33379
33380 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33381
33382 2013-03-27 Terry Guo <terry.guo@arm.com>
33383
33384 * config/arm/arm-cores.def: Added core cortex-r7.
33385 * config/arm/arm-tune.md: Regenerated.
33386 * config/arm/arm-tables.opt: Regenerated.
33387 * doc/invoke.texi: Added entry for core cortex-r7.
33388
33389 2013-03-27 Walter Lee <walt@tilera.com>
33390
33391 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33392 double-decrement of next_scratch_regno.
33393
33394 2013-03-27 Walter Lee <walt@tilera.com>
33395
33396 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33397 input operands.
33398 (insn_v1mulus): Ditto.
33399 (insn_v2muls): Ditto.
33400
33401 2013-03-27 Walter Lee <walt@tilera.com>
33402
33403 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33404 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33405
33406 2013-03-27 Walter Lee <walt@tilera.com>
33407
33408 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33409 (*sibcall_value): Ditto.
33410
33411 2013-03-27 Walter Lee <walt@tilera.com>
33412
33413 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33414 (insn_mnz_v8qi): ... this ...
33415 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33416 vector equivalent.
33417 (insn_v<n>mnz): Replaced by ...
33418 (insn_v1mnz): ... this ...
33419 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33420 equivalent.
33421 (insn_mz_<mode>): Replaced by ...
33422 (insn_mz_v8qi): ... this ...
33423 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33424 vector equivalent.
33425 (insn_v<n>mz): Replaced by ...
33426 (insn_v1mz): ... this ...
33427 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33428 equivalent.
33429
33430 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33431
33432 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33433
33434 2013-03-26 Roland McGrath <mcgrathr@google.com>
33435
33436 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33437 than fprintf with a non-constant, non-format string.
33438
33439 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33440
33441 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33442 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33443 operand 0 predicate.
33444 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33445 attribute. Use general_x64nomem_operand as operand 1 predicate.
33446 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33447 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33448 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33449 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33450 (mov<mode>_insv_1): Remove expander. Merge insn with
33451 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33452 Use general_x64nomem_operand as operand 1 predicate.
33453 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33454 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33455 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33456 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33457 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33458 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33459 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33460 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33461 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33462 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33463 (general_x64nomem_operand): Ditto.
33464
33465 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33466
33467 * config/rtems.opt: Add -pthread option.
33468
33469 2013-03-26 Richard Biener <rguenther@suse.de>
33470
33471 * alias.c (find_base_term): Avoid redundant and not used recursion.
33472 (base_alias_check): Get the initial base term from the caller.
33473 (true_dependence_1): Compute and pass base terms to base_alias_check.
33474 (write_dependence_p): Likewise.
33475 (may_alias_p): Likewise.
33476
33477 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33478
33479 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33480 PC-relative load in SI modes and above only.
33481
33482 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33483
33484 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33485 * config/arm/iwmmxt.md (WCGR0): Update.
33486 (WCGR1, WCGR2, WCGR3): Likewise.
33487
33488 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33489
33490 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33491 Use x64 and nox64 isa attributes.
33492
33493 2013-03-26 Richard Biener <rguenther@suse.de>
33494
33495 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33496 alignment computations and rely on get_object_alignment_1
33497 for the !TYPE_P case.
33498 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33499
33500 2013-03-26 Walter Lee <walt@tilera.com>
33501
33502 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33503 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33504
33505 2013-03-25 Jeff Law <law@redhat.com>
33506
33507 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33508 check for INTEGRAL_TYPE_P that was missing due to checking in
33509 wrong version of prior patch.
33510
33511 2013-03-25 Walter Lee <walt@tilera.com>
33512
33513 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33514 TILEGX_INSN_SHUFFLEBYTES1.
33515 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33516 shufflebytes1.
33517 (tilegx_builtins): Ditto.
33518 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33519
33520 2013-03-25 Walter Lee <walt@tilera.com>
33521
33522 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33523 (floatunssisf2): New pattern.
33524 (floatsidf2): New pattern.
33525 (floatunssidf2): New pattern.
33526
33527 2013-03-25 Walter Lee <walt@tilera.com>
33528
33529 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33530 tests for constraint J, K, N, P.
33531
33532 2013-03-25 Walter Lee <walt@tilera.com>
33533
33534 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33535 Use indirect/pcrel encoding.
33536 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33537 Ditto.
33538
33539 2013-03-25 Steve Ellcey <sellcey@mips.com>
33540
33541 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33542 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33543 * config/mips/mips.c (mips_option_override): Set IMADD default.
33544 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33545 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33546 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33547 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33548 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33549
33550 2013-03-25 Jeff Law <law@redhat.com>
33551
33552 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33553 slightly to avoid creating and folding useless trees. Simplify
33554 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33555
33556 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33557
33558 * config/i386/i386.md (*zero_extendsidi2): Merge with
33559 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33560 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33561 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33562 targets. Clarify comment.
33563
33564 2013-03-25 Martin Jambor <mjambor@suse.cz>
33565
33566 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33567 pass-through jump functions differently.
33568 (ipa_read_jump_function): Likewise. Also use setter functions to set
33569 up jump functions.
33570
33571 2013-03-25 Martin Jambor <mjambor@suse.cz>
33572
33573 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33574 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33575 process it.
33576 (ipa_get_indirect_edge_target): New function.
33577 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33578 ipa_get_indirect_edge_target. Update all callers.
33579 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33580 ipa_get_indirect_edge_target_1 instead of calling
33581 ipa_get_indirect_edge_target.
33582 (create_specialized_node): Pass aggvlas to
33583 ipcp_discover_new_direct_edges.
33584
33585 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33586
33587 * config/arm/arm.md (f_sels, f_seld): New types.
33588 (*cmov<mode>): New pattern.
33589 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33590 predicate.
33591
33592 2013-03-25 Kai Tietz <ktietz@redhat.com>
33593
33594 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33595 POSIX-printf for mingw-hosted builds.
33596
33597 2013-03-25 Richard Biener <rguenther@suse.de>
33598
33599 PR middle-end/56694
33600 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33601 must-not-throw stmt location.
33602
33603 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33604
33605 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33606 Emit load-acquire versions when acq is true.
33607 (arm_emit_store_exclusive): Add rel parameter.
33608 Emit store-release versions when rel is true.
33609 (arm_split_compare_and_swap): Use acquire-release instructions
33610 instead.
33611 of barriers when appropriate.
33612 (arm_split_atomic_op): Likewise.
33613 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33614 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33615 (VUNSPEC_SLX): Likewise.
33616 (VUNSPEC_LDA): Likewise.
33617 (VUNSPEC_STL): Likewise.
33618 * config/arm/sync.md (atomic_load<mode>): New pattern.
33619 (atomic_store<mode>): Likewise.
33620 (arm_load_acquire_exclusive<mode>): Likewise.
33621 (arm_load_acquire_exclusivesi): Likewise.
33622 (arm_load_acquire_exclusivedi): Likewise.
33623 (arm_store_release_exclusive<mode>): Likewise.
33624
33625 2013-03-25 Catherine Moore <clm@codesourcery.com>
33626
33627 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33628 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33629 * config/mip/predicates.md (lwsp_swsp_operand,
33630 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33631 sb16_operand, db4_operand, db7_operand, ib3_operand,
33632 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33633 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33634 andi16_operand): New predicates.
33635 * config/mips/mips.md (compression): New attribute.
33636 (enabled): New attribute.
33637 (length): Consider compression in computing length.
33638 (shift_compression): New code attribute.
33639 (*add<mode>3): New operands. Record compression.
33640 (sub<mode>3): Likewise.
33641 (one_cmpl<mode>2): Likewise.
33642 (*and<mode>3): Likewise.
33643 (*ior<mode>3): Likewise.
33644 (unnamed pattern for xor): Likewise.
33645 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33646 (*<optab><mode>3): Likewise.
33647 (*mov<mode>_internal: Likewise.
33648 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33649 (mips_unsigned_immediate_p): New.
33650 (umips_lwsp_swsp_address_p): New.
33651 (m16_based_address_p): New.
33652 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33653 (mips_unsigned_immediate_p): New prototype.
33654 (lwsp_swsp_address_p): New prototype.
33655 (m16_based_address_p): New prototype.
33656 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33657 (mips_signed_immediate_p): New function.
33658 (m16_based_address_p): New function.
33659 (lwsp_swsp_address_p): New function.
33660 (mips_print_operand_punctuation): Recognize short delay slot insns
33661 for microMIPS.add<mode>3"
33662
33663 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33664
33665 PR target/56720
33666 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33667 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33668
33669 2013-03-25 Richard Biener <rguenther@suse.de>
33670
33671 PR tree-optimization/56689
33672 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33673 any edge.
33674
33675 2013-03-25 Richard Biener <rguenther@suse.de>
33676
33677 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33678 of bitmap.
33679 (memory_references): Likewise.
33680 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33681 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33682 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33683 (gather_mem_refs_in_loops): Fold into ...
33684 (analyze_memory_references): ... this. Move initialization
33685 to tree_ssa_lim_initialize.
33686 (fill_always_executed_in): Rename to ...
33687 (fill_always_executed_in_1): ... this.
33688 (fill_always_executed_in): Move contains_call computation to
33689 this new function from ...
33690 (tree_ssa_lim_initialize): ... here.
33691 (tree_ssa_lim): Call fill_always_executed_in.
33692
33693 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33694
33695 * postreload.c (reload_combine): Fix code detecting returns.
33696
33697 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33698
33699 * function.c (emit_use_return_register_into_block): On cc0 targets,
33700 do not emit the sequence between cc0 setter and user.
33701
33702 2013-03-25 Kai Tietz <ktietz@redhat.com>
33703
33704 * config/i386/predicates.md (local_symbolic_operand): Interpret
33705 dll-imported symbols as none-local.
33706
33707 2013-03-25 Richard Biener <rguenther@suse.de>
33708
33709 * tree-ssa-loop-im.c (struct depend): Remove.
33710 (struct lim_aux_data): Make depends a vec of gimples.
33711 (free_lim_aux_data): Adjust.
33712 (add_dependency): Likewise.
33713 (set_level): Likewise.
33714
33715 2013-03-25 Richard Biener <rguenther@suse.de>
33716
33717 PR middle-end/56434
33718 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33719 the pointer returned by calls with ECF_MALLOC set.
33720
33721 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33722
33723 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33724
33725 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33726
33727 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33728 using MMXMODE mode iterator.
33729 (*move<mode>_internal): Merge with *movv2sf_internal and
33730 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33731
33732 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33733
33734 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33735 (record_last_mem_set_info): Likewise.
33736
33737 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33738 of XNEWVEC followed by memset.
33739 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33740
33741 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33742
33743 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33744 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33745 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33746 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33747 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33748 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33749 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33750 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33751 BARRIER_P instead of GET_CODE.
33752
33753 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33754
33755 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33756 inaccuracy in the probing code.
33757
33758 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33759 (ctrapdi4): Likewise.
33760
33761 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33762
33763 * calls.c (expand_call): Add missing guard to code handling return
33764 of non-BLKmode structures in MSB.
33765 * function.c (expand_function_end): Likewise.
33766
33767 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33768
33769 * combine.c (try_combine): Adjust comment. Do not add the set of
33770 insn #0 if the destination indirectly is set or dies in insn #2.
33771 Tidy up code to distribute a new note.
33772
33773 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33774
33775 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33776 also for alternatives 16 and 17.
33777
33778 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33779
33780 * config/i386/sse.md (*mov<mode>_internal): Merge with
33781 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33782 Emit insn template depending on type attribute. Use
33783 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33784 movd instead of movq mnemonic for interunit moves. Rewrite mode
33785 attribute calculation. Remove unit attribute calculation.
33786 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33787 Set prefix_data16 attribute for DImode ssemov types.
33788 Use Ym instead of y for SSE-MMX conversion alternatives.
33789 Reorder operand constraints.
33790
33791 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33792
33793 * df.h (df_insn_delete): Adjust prototype.
33794 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33795 and let it decide whether mark the basic block dirty.
33796 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33797 * df-scan.c (df_insn_info_delete): New helper function, split
33798 off from df_insn_delete.
33799 (df_scan_free_bb_info): Use it.
33800 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33801 Likewise.
33802 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33803 that the insn is actually an insn and it has a non-NULL basic block.
33804 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33805
33806 2013-03-22 Richard Biener <rguenther@suse.de>
33807
33808 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33809 dep_ref members.
33810 (mem_ref_alloc): Do not allocate them.
33811 (refs_independent_p): Do not query or maintain a cache.
33812
33813 2013-03-22 Richard Biener <rguenther@suse.de>
33814
33815 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33816 (gather_mem_refs_in_loops): Do not compute it.
33817 (analyze_memory_references): Do not allocate it.
33818 (tree_ssa_lim_finalize): Do not free it.
33819 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33820
33821 2013-03-22 Richard Biener <rguenther@suse.de>
33822
33823 * is-a.h (as_a): Use gcc_checking_assert.
33824
33825 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33826
33827 * config/aarch64/aarch64.c (aarch64_print_operand): New
33828 format specifier for printing a constant in hex.
33829 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33830 format specifier for printing second operand.
33831
33832 2013-03-22 Richard Biener <rguenther@suse.de>
33833
33834 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33835 bitmaps.
33836 (gather_mem_refs_in_loops): Perform store accumulation here.
33837 (create_vop_ref_mapping_loop): Remove.
33838 (create_vop_ref_mapping): Likewise.
33839 (analyze_memory_references): Initialize refs_stored_in_loop.
33840 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33841 (record_indep_loop): Remove.
33842 (record_dep_loop): New function.
33843 (ref_indep_loop_p_1): Adjust to only walk over references
33844 in the loop, not its subloops.
33845 (ref_indep_loop_p): Rename to ...
33846 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33847 maintaining a more fine-grained cache.
33848 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33849 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33850
33851 2013-03-22 Richard Biener <rguenther@suse.de>
33852
33853 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33854 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33855 aggregate mem_ref_loc.
33856 (free_mem_ref_locs): Inline into ...
33857 (memref_free): ... this and adjust.
33858 (mem_ref_alloc): Adjust.
33859 (mem_ref_locs_alloc): Remove.
33860 (record_mem_ref_loc): Adjust.
33861 (get_all_locs_in_loop): Rewrite into ...
33862 (for_all_locs_in_loop): ... this iterator.
33863 (rewrite_mem_ref_loc): New functor.
33864 (rewrite_mem_refs): Use for_all_locs_in_loop.
33865 (sm_set_flag_if_changed): New functor.
33866 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33867 (ref_always_accessed): New functor.
33868 (ref_always_accessed_p): Use for_all_locs_in_loop.
33869
33870 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33871
33872 * tree-pass.h (PROP_gimple_lvec): New.
33873 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33874 (init_optimization_passes): Move pass_lower_vector.
33875 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33876 PROP_gimple_lvec.
33877 (pass_lower_vector): Provide PROP_gimple_lvec.
33878 (pass_lower_vector_ssa): Likewise.
33879 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33880
33881 2013-03-21 Mark Wielaard <mjw@redhat.com>
33882
33883 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33884
33885 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33886
33887 * config/i386/i386.md (*movdi_internal): Disparage slightly
33888 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33889 conversion alternatives.
33890
33891 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33892
33893 PR middle-end/48087
33894 * diagnostic.def (DK_WERROR): New kind.
33895 * diagnostic.h (werrorcount): Define.
33896 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33897 promoted to DK_ERROR, increment DK_WERROR counter instead of
33898 DK_ERROR counter.
33899 * toplev.c (toplev_main): Call print_ignored_options even if
33900 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33901 even if just werrorcount is non-zero.
33902
33903 PR debug/55608
33904 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33905 on failure.
33906 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33907 (string_cst_pool_decl): New function.
33908 (optimize_one_addr_into_implicit_ptr): New function.
33909 (resolve_addr_in_expr): Optimize DWARF location expression
33910 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33911 which doesn't live in memory, but has DW_AT_location or
33912 DW_AT_const_value, or refers to a string literal, into
33913 DW_OP_GNU_implicit_pointer.
33914 (optimize_location_into_implicit_ptr): New function.
33915 (resolve_addr): If removing DW_AT_location of a variable because
33916 it was DW_OP_addr of address of the variable, but the variable doesn't
33917 live in memory, try to emit const value attribute for the initializer.
33918
33919 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33920
33921 * tree.h (VECTOR_TYPE_P): New macro.
33922 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33923 TYPE_MODE): Use it.
33924 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33925 VEC_COND_EXPR cannot be lvalues.
33926 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33927
33928 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33929
33930 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33931 Restrict the transformation to equal modes.
33932
33933 2013-03-21 Richard Biener <rguenther@suse.de>
33934
33935 PR tree-optimization/39326
33936 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33937 (MEM_ANALYZABLE): Adjust.
33938 (record_mem_ref_loc): Move bitmap ops ...
33939 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33940 unanalyzable refs, do not record locations for it.
33941 (analyze_memory_references): Allocate ref zero as shared
33942 unanalyzable ref.
33943 (refs_independent_p): Do not test for unanalyzed mems here.
33944 (ref_indep_loop_p_1): Special-case disambiguation against
33945 the unanalyzed ref.
33946 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33947
33948 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33949
33950 * config/arm/arm-protos.h (tune_params): Add
33951 prefer_neon_for_64bits field.
33952 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33953 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33954 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33955 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33956 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33957 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33958 (arm_option_override): Handle -mneon-for-64bits new option.
33959 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33960 (prefer_neon_for_64bits): Declare new variable.
33961 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33962 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33963 (arch_enabled): Handle new arch types. Remove support for onlya8
33964 and nota8.
33965 (one_cmpldi2): Use new arch names.
33966 (zero_extend<mode>di2, extend<mode>di2): Ditto.
33967 * config/arm/arm.opt (mneon-for-64bits): Add option.
33968 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
33969 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
33970 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
33971 of onlya8.
33972 * doc/invoke.texi (-mneon-for-64bits): Document.
33973
33974 2013-03-21 Richard Biener <rguenther@suse.de>
33975
33976 PR tree-optimization/39326
33977 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
33978 (sort_bbs_in_loop_postorder_cmp): New function.
33979 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
33980
33981 2013-03-21 Richard Biener <rguenther@suse.de>
33982
33983 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
33984 (vect_insert_into_interleaving_chain): Likewise.
33985 (vect_drs_dependent_in_basic_block): Inline ...
33986 (vect_slp_analyze_data_ref_dependence): ... here. New function,
33987 split out from ...
33988 (vect_analyze_data_ref_dependence): ... here. Simplify.
33989 (vect_check_interleaving): Simplify.
33990 (vect_analyze_data_ref_dependences): Likewise. Split out ...
33991 (vect_slp_analyze_data_ref_dependences): ... this new function.
33992 (dr_group_sort_cmp): New function.
33993 (vect_analyze_data_ref_accesses): Compute data-reference groups
33994 here instead of in vect_analyze_data_ref_dependence. Use
33995 a more efficient algorithm.
33996 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
33997 vect_slp_analyze_data_ref_dependences. Call
33998 vect_analyze_data_ref_accesses earlier.
33999 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34000 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34001 (vect_slp_analyze_data_ref_dependences): New prototype.
34002
34003 2013-03-21 Richard Biener <rguenther@suse.de>
34004
34005 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34006 ref is stored in the loop.
34007 (find_refs_for_sm): Walk only over all stores.
34008 (store_motion_loop): Allocate from lim_bitmap_obstack.
34009 (store_motion): Likewise.
34010
34011 2013-03-21 Richard Biener <rguenther@suse.de>
34012
34013 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34014 Update virtual SSA form.
34015
34016 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34017
34018 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34019 * configure: Regenerate.
34020 * config.in: Regenerate.
34021 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34022 if !HAVE_LD_EH_FRAME_CIEV3.
34023
34024 2013-03-21 Richard Biener <rguenther@suse.de>
34025
34026 * tree-cfg.c (verify_expr_no_block): New function.
34027 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34028 nor DECL_VALUE_EXPR have locations with associated blocks.
34029 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34030 (clear_unused_block_pointer): Remove code dealing with
34031 blocks in DECL_DEBUG_EXPR locations.
34032
34033 2013-03-21 Richard Biener <rguenther@suse.de>
34034
34035 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34036 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34037 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34038 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34039 instead of DECL_DEBUG_EXPR_IS_FROM.
34040 * gimplify.c (gimplify_modify_expr): Likewise.
34041 * tree-cfg.c (verify_expr_location_1): Likewise.
34042 * tree-complex.c (create_one_component_var): Likewise.
34043 * tree-sra.c (create_access_replacement): Likewise.
34044 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34045 (clear_unused_block_pointer): Likewise.
34046 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34047 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34048 * var-tracking.c (var_debug_decl): Likewise.
34049 (track_expr_p): Likewise.
34050 * tree-inline.c (add_local_variables): Likewise. Set
34051 DECL_HAS_DEBUG_EXPR_P after copying it.
34052 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34053 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34054
34055 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34056
34057 PR bootstrap/56656
34058 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34059 * configure: Regenerate.
34060 * config.in: Regenerate.
34061 * config/i386/i386.md (*movdf_internal): Use
34062 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34063 movd instead of movq mnemonic for interunit moves.
34064 (*movdi_internal): Ditto.
34065
34066 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34067
34068 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34069 (abd<mode>_3): New pattern.
34070 (aba<mode>_3): New pattern.
34071 (fabd<mode>_3): New pattern.
34072
34073 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34074
34075 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34076 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34077 occurrence of REGISTER_PREFIX as its empty string.
34078
34079 2013-03-20 Jeff Law <law@redhat.com>
34080
34081 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34082 addititional equivalences for equality comparisons between an SSA_NAME
34083 and a constant where the SSA_NAME was set from a widening conversion.
34084
34085 2013-03-20 Walter Lee <walt@tilera.com>
34086
34087 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34088
34089 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34090
34091 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34092 depending on type attribute.
34093 (*movti_internal): Ditto.
34094 (*movtf_internal): Ditto.
34095 (*movxf_internal): Ditto.
34096 (*movdf_internal): Ditto.
34097 (*movsf_internal): Ditto.
34098
34099 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34100
34101 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34102 maybe_vex for sselog1 and ssemov types.
34103 (*movdi_internal): Reorder operand constraints.
34104 (*movsi_internal): Ditto. Set prefix attribute to
34105 maybe_vex for sselog1 and ssemov types.
34106 (*movtf_internal): Set prefix attribute to maybe_vex
34107 for sselog1 and ssemov types.
34108 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34109 DImode ssemov types. Reorder operand constraints.
34110 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34111 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34112 attribute for SImode ssemov types. Reorder operand constraints.
34113
34114 2013-03-20 Martin Jambor <mjambor@suse.cz>
34115
34116 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34117 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34118
34119 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34120
34121 * config/rs6000/predicates.md (indexed_address, update_address_mem
34122 update_indexed_address_mem): New predicates.
34123 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34124 attribute for load/store instructions.
34125 * config/rs6000/dfp.md (movsd_store): Likewise.
34126 (movsd_load): Likewise.
34127 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34128 (unnamed HI->DI extend define_insn): Likewise.
34129 (unnamed SI->DI extend define_insn): Likewise.
34130 (unnamed QI->SI extend define_insn): Likewise.
34131 (unnamed QI->HI extend define_insn): Likewise.
34132 (unnamed HI->SI extend define_insn): Likewise.
34133 (unnamed HI->SI extend define_insn): Likewise.
34134 (extendsfdf2_fpr): Likewise.
34135 (movsi_internal1): Likewise.
34136 (movsi_internal1_single): Likewise.
34137 (movhi_internal): Likewise.
34138 (movqi_internal): Likewise.
34139 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34140 attribute for load/store instructions.
34141 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34142 instructions.
34143 (mov<mode>_softfloat): Likewise.
34144 (mov<mode>_hardfloat32): Likewise.
34145 (mov<mode>_hardfloat64): Likewise.
34146 (mov<mode>_softfloat64): Likewise.
34147 (movdi_internal32): Likewise.
34148 (movdi_internal64): Likewise.
34149 (probe_stack_<mode>): Likewise.
34150
34151 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34152
34153 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34154 floating point, and decimal floating point to reload iterator.
34155
34156 * config/rs6000/constraints.md (wl constraint): New constraints to
34157 return FLOAT_REGS if certain options are used to reduce the number
34158 of separate patterns that exist in the file.
34159 (wx constraint): Likewise.
34160 (wz constraint): Likewise.
34161
34162 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34163 -mdebug=reg, print wg, wl, wx, and wz constraints.
34164 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34165 Initialize the reload functions for 64-bit binary/decimal floating
34166 point types.
34167 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34168 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34169 create the buffer on the stack to overcome not having a 32-bit
34170 load and store.
34171 (rs6000_emit_move): Likewise.
34172 (rs6000_secondary_memory_needed_rtx): Likewise.
34173 (rs6000_alloc_sdmode_stack_slot): Likewise.
34174 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34175 via xxlxor, just like DFmode 0.0.
34176
34177 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34178 define as 1 if we are running on a power7 or newer.
34179 (enum r6000_reg_class_enum): Add new constraints.
34180
34181 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34182 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34183 with other moves by using conditional constraits (wg). Use LFIWZX
34184 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34185 (movsd splitter): Likewise.
34186 (movsd_hardfloat): Likewise.
34187 (movsd_softfloat): Likewise.
34188
34189 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34190 binary and decimal floating point moves.
34191 (fmove_ok): New attributes to combine binary and decimal floating
34192 point moves, and to combine power6x (mfpgpr) moves along normal
34193 floating moves.
34194 (real_value_to_target): Likewise.
34195 (f32_lr): Likewise.
34196 (f32_lm): Likewise.
34197 (f32_li): Likewise.
34198 (f32_sr): Likewise.
34199 (f32_sm): Likewise.
34200 (f32_si): Likewise.
34201 (movsf): Combine binary and decimal floating point moves. Combine
34202 power6x (mfpgpr) moves with other moves by using conditional
34203 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34204 (mov<mode> for SFmode/SDmode); Likewise.
34205 (SFmode/SDmode splitters): Likewise.
34206 (movsf_hardfloat): Likewise.
34207 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34208 (movsf_softfloat): Likewise.
34209 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34210
34211 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34212 wx and wz constraints.
34213
34214 * config/rs6000/constraints.md (wg constraint): New constraint to
34215 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34216
34217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34218 constraint.
34219
34220 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34221 -mdebug=reg, print wg, wl, wx, and wz constraints.
34222 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34223 Initialize the reload functions for 64-bit binary/decimal floating
34224 point types.
34225 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34226 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34227 create the buffer on the stack to overcome not having a 32-bit
34228 load and store.
34229 (rs6000_emit_move): Likewise.
34230 (rs6000_secondary_memory_needed_rtx): Likewise.
34231 (rs6000_alloc_sdmode_stack_slot): Likewise.
34232 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34233 via xxlxor, just like DFmode 0.0.
34234
34235 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34236 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34237 with other moves by using conditional constraits (wg). Use LFIWZX
34238 and STFIWX for loading SDmode on power7.
34239 (movdd splitters): Likewise.
34240 (movdd_hardfloat32): Likewise.
34241 (movdd_softfloat32): Likewise.
34242 (movdd_hardfloat64_mfpgpr): Likewise.
34243 (movdd_hardfloat64): Likewise.
34244 (movdd_softfloat64): Likewise.
34245
34246 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34247 64-bit binary and decimal floating point moves.
34248 (FMOVE64X): Likewise.
34249 (movdf): Combine 64-bit binary and decimal floating point moves.
34250 Combine power6x (mfpgpr) moves with other moves by using
34251 conditional constraits (wg).
34252 (mov<mode> for DFmode/DDmode): Likewise.
34253 (DFmode/DDmode splitters): Likewise.
34254 (movdf_hardfloat32): Likewise.
34255 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34256 (movdf_softfloat32): Likewise.
34257 (movdf_hardfloat64_mfpgpr): Likewise.
34258 (movdf_hardfloat64): Likewise.
34259 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34260 (movdf_softfloat64): Likewise.
34261 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34262 (reload_<mode>_load): Move to later in the file so they aren't in
34263 the middle of the floating point move insns.
34264 (reload_<mode>_store): Likewise.
34265
34266 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34267 constraint.
34268
34269 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34270 constraint if -mdebug=reg.
34271 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34272 Enable using dd reload support if needed.
34273
34274 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34275 binary and decimal floating point moves in rs6000.md.
34276 (movtd_internal): Likewise.
34277
34278 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34279 decimal floating point moves.
34280 (movtf): Likewise.
34281 (movtf_internal): Likewise.
34282 (mov<mode>_internal, TDmode/TFmode): Likewise.
34283 (movtf_softfloat): Likewise.
34284 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34285
34286 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34287 movdi_internal64, using wg constraint for move direct operations.
34288 (movdi_internal64): Likewise.
34289
34290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34291 MODES_TIEABLE_P for selected modes. Print the numerical value of
34292 the various virtual registers. Use GPR/FPR first/last values,
34293 instead of hard coding the register numbers. Print which modes
34294 have reload functions registered.
34295 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34296 settings before/after setting cpu, target and subtarget settings.
34297 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34298 and for secondary reload failures in rs6000_secondary_reload_inner.
34299 (rs6000_secondary_reload_fail): Likewise.
34300 (rs6000_secondary_reload_inner): Likewise.
34301
34302 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34303 macros for first/last GPR and FPR registers.
34304 (LAST_GPR_REGNO): Likewise.
34305 (FIRST_FPR_REGNO): Likewise.
34306 (LAST_FPR_REGNO): Likewise.
34307
34308 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34309 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34310 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34311 (vcond<mode><mode>): Likewise.
34312 (vcondu<mode><mode>): Likewise.
34313 (vector_gtu<mode>): Likewise.
34314 (vector_gte<mode>): Likewise.
34315 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34316 to prevent the compiler from converting DImode operations to TImode.
34317 (ior<mode>3): Likewise.
34318 (and<mode>3): Likewise.
34319 (one_cmpl<mode>2): Likewise.
34320 (nor<mode>3): Likewise.
34321 (andc<mode>3): Likewise.
34322
34323 * config/rs6000/constraints.md (wt constraint): New constraint
34324 that returns VSX_REGS if TImode is allowed in VSX registers.
34325
34326 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34327 constant under VSX.
34328
34329 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34330 similar to TImode, but it is restricted to being in the GPRs.
34331
34332 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34333 TImode to occupy a single VSX register.
34334
34335 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34336 -mvsx-timode for power7/power8.
34337 (power7 cpu): Likewise.
34338 (power8 cpu): Likewise.
34339
34340 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34341 sure that TFmode/TDmode take up two registers if they are ever
34342 allowed in the upper VSX registers.
34343 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34344 registers.
34345 (rs6000_init_hard_regno_mode_ok): Likewise.
34346 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34347 constraint. Print if LRA is turned on.
34348 (rs6000_option_override_internal): Give an error if -mvsx-timode
34349 and VSX is not enabled.
34350 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34351 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34352 to reg+offset addressing. Use PTImode when checking offset
34353 addresses for validity.
34354 (reg_offset_addressing_ok_p): Likewise.
34355 (rs6000_legitimate_offset_address_p): Likewise.
34356 (rs6000_legitimize_address): Likewise.
34357 (rs6000_legitimize_reload_address): Likewise.
34358 (rs6000_legitimate_address_p): Likewise.
34359 (rs6000_eliminate_indexed_memrefs): Likewise.
34360 (rs6000_emit_move): Likewise.
34361 (rs6000_secondary_reload): Likewise.
34362 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34363 reloads to fpr registers to continue to use reg+offset addressing,
34364 but 64-bit reloads to altivec registers need reg+reg addressing.
34365 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34366 it. Treat LO_SUM like a PLUS operation.
34367 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34368 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34369 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34370 registers to share a register with a smaller sized type, since VSX
34371 puts scalars in the upper 64-bits.
34372 (print_operand): Add support for PTImode.
34373 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34374 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34375 registers, but don't have arithmetic support.
34376 (rs6000_memory_move_cost): Add test for VSX.
34377 (rs6000_opt_masks): Add -mvsx-timode.
34378
34379 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34380 for TImode.
34381 (VSs): Likewise.
34382 (VSr): Use wt constraint for TImode.
34383 (VSv): Drop TImode support.
34384 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34385 (vsx_movti_64bit): Likewise.
34386 (vsx_movti_32bit): Likewise.
34387 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34388 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34389 one '?' on the appropriate output constraint. Do not allow TImode
34390 logical operations on 32-bit systems.
34391 (vsx_ior<mode>3): Likewise.
34392 (vsx_xor<mode>3): Likewise.
34393 (vsx_one_cmpl<mode>2): Likewise.
34394 (vsx_nor<mode>3): Likewise.
34395 (vsx_andc<mode>3): Likewise.
34396 (vsx_concat_<mode>): Likewise.
34397 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34398
34399 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34400 OPTION_MASK_VSX_TIMODE.
34401 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34402 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34403
34404 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34405 (TI2 iterator): New iterator for TImode, PTImode.
34406 (wd mode attribute): Add values for vector types.
34407 (movti_string): Replace TI move operations with operations for TImode
34408 and PTImode. Add support for TImode being allowed in VSX registers.
34409 (mov<mode>_string, TImode/PTImode): Likewise.
34410 (movti_ppc64): Likewise.
34411 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34412 (TI mode splitters): Likewise.
34413
34414 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34415 constraint.
34416
34417 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34418
34419 PR tree-optimization/56355
34420 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34421 Also handle integers with undefined overflow.
34422
34423 2013-03-20 Catherine Moore <clm@codesourcery.com>
34424 Maciej W. Rozycki <macro@codesourcery.com>
34425 Tom de Vries <tom@codesourcery.com>
34426 Nathan Sidwell <nathan@codesourcery.com>
34427 Iain Sandoe <iain@codesourcery.com>
34428 Nathan Froyd <froydnj@codesourcery.com>
34429 Chao-ying Fu <fu@mips.com>
34430
34431 * doc/extend.texi: (micromips, nomicromips, nocompression):
34432 Document new function attributes.
34433 * doc/invoke.texi (minterlink-compressed, mmicromips,
34434 m14k, m14ke, m14kec): Document new options.
34435 (minterlink-mips16): Update documentation.
34436 * doc/md.texi (ZC, ZD): Document new constraints.
34437 * configure.ac (gcc_cv_as_micromips): Check if linker
34438 supports the .set micromips directive.
34439 * configure: Regenerate.
34440 * config.in: Regenerate.
34441 * config/mips/mips-tables.opt: Regenerate.
34442 * config/mips/micromips.md: New file.
34443 * constraints.md (ZC, ZD): New constraints.
34444 * config/mips/predicates.md (movep_src_register): New predicate.
34445 (movep_src_operand): New predicate.
34446 (non_volatile_mem_operand): New predicate.
34447 * config/mips/mips.md (multimem): New type.
34448 (length): Differentiate between 17-bit and 18-bit branch offsets.
34449 (MOVEP1, MOVEP2): New mode iterator.
34450 (mov_<load>l): Use ZC constraint.
34451 (mov_<load>r): Likewise.
34452 (mov_<store>l): Likewise.
34453 (mov_<store>r): Likewise.
34454 (*branch_equality<mode>_inverted): Add microMIPS support.
34455 (*branch_equality<mode>): Likewise.
34456 (*jump_absolute): Likewise.
34457 (indirect_jump_<mode>): Likewise.
34458 (tablejump_<mode>): Likewise.
34459 (<optab>_internal): Likewise.
34460 (sibcall_internal): Likewise.
34461 (sibcall_value_internal): Likewise.
34462 (prefetch): Use constraint ZD.
34463 * config/mips/mips.opt (minterlink-compressed): New option.
34464 (minterlink-mips16): Now an alias for minterlink-compressed.
34465 (mmicromips): New option.
34466 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34467 (compare_and_swap_12): Likewise.
34468 (sync_add<mode>): Likewise.
34469 (sync_<optab>_12): Likewise.
34470 (sync_old_<optab>_12): Likewise.
34471 (sync_new_<optab>_12): Likewise.
34472 (sync_nand_12): Likewise.
34473 (sync_old_nand_12): Likewise.
34474 (sync_new_nand_12): Likewise.
34475 (sync_sub<mode>): Likewise.
34476 (sync_old_add<mode>): Likewise.
34477 (sync_old_sub<mode>): Likewise.
34478 (sync_new_add<mode>): Likewise.
34479 (sync_new_sub<mode>): Likewise.
34480 (sync_<optab><mode>): Likewise.
34481 (sync_old_<optab><mode>): Likewise.
34482 (sync_new_<optab><mode>): Likewise.
34483 (sync_nand<mode>): Likewise.
34484 (sync_old_nand<mode>): Likewise.
34485 (sync_new_nand<mode>): Likewise.
34486 (sync_lock_test_and_set<mode>): Likewise.
34487 (test_and_set_12): Likewise.
34488 (atomic_compare_and_swap<mode>): Likewise.
34489 (atomic_exchange<mode>_llsc): Likewise.
34490 (atomic_fetch_add<mode>_llsc): Likewise.
34491 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34492 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34493 (umips_save_restore_pattern_p): Likewise.
34494 (umips_load_store_pair_p): Likewise.
34495 (umips_output_load_store_pair): Likewise.
34496 (umips_movep_target_p): Likewise.
34497 (umips_12bit_offset_address_p): Likewise.
34498 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34499 (mips_base_mips16): Rename this...
34500 (mips_base_compression_flags): ...to this. Update all uses.
34501 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34502 (mips_mips16_decl_p): Delete.
34503 (mips_nomips16_decl_p): Delete.
34504 (mips_get_compress_on_flags): New function.
34505 (mips_get_compress_off_flags): New function.
34506 (mips_get_compress_mode): New function.
34507 (mips_get_compress_on_name): New function.
34508 (mips_get_compress_off_name): New function.
34509 (mips_insert_attributes): Support multiple compression types.
34510 (mips_merge_decl_attributes): Likewise.
34511 (umips_12bit_offset_address_p): New function.
34512 (mips_start_function_definition): Emit .set micromips directive.
34513 (mips_call_may_need_jalx_p): New function.
34514 (mips_function_ok_for_sibcall): Add microMIPS support.
34515 (mips_print_operand_punctuation): Support short delay slots and
34516 compact jumps.
34517 (umips_swm_mask, umips_swm_encoding): New.
34518 (umips_build_save_restore): New function.
34519 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34520 (was_mips16_p): Remove.
34521 (old_compression_mode): New.
34522 (mips_set_compression_mode): New function.
34523 (mips_set_current_function): Add microMIPS support.
34524 (mips_option_override): Likewise.
34525 (umips_save_restore_pattern_p): New function.
34526 (umips_output_save_restore): New function.
34527 (umips_load_store_pair_p_1): New function.
34528 (umips_load_store_pair_p): New function.
34529 (umips_output_load_store_pair_1): New function.
34530 (umips_output_load_store_pair): New function.
34531 (umips_movep_target_p) New function.
34532 (mips_prepare_pch_save): Add microMIPS support.
34533 * config/mips/mips.h (TARGET_COMPRESSION): New.
34534 (TARGET_CPU_CPP_BUILTINS): Update macro
34535 to use new compression flags and to support microMIPS.
34536 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34537 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34538 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34539 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34540 (ASM_SPEC): Support mmicromips and mno-micromips.
34541 (M16STORE_REG_P): New macro.
34542 (MIPS_CALL): Support TARGET_MICROMIPS.
34543 (MICROMIPS_J): New macro.
34544 (mips_base_mips16): Rename this...
34545 (mips_base_compression_flags): ...to this.
34546 (UMIPS_12BIT_OFFSET_P): New macro.
34547 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34548 (MULTILIB_DIRNAMES): Likewise.
34549 2013-03-20 Richard Biener <rguenther@suse.de>
34550
34551 PR tree-optimization/56661
34552 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34553 the result does not have to be distinct.
34554
34555 2013-03-20 Richard Biener <rguenther@suse.de>
34556
34557 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34558 remap_gimple_op_r.
34559
34560 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34561 Steven Bosscher <steven@gcc.gnu.org>
34562
34563 PR rtl-optimization/56605
34564 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34565
34566 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34567
34568 PR bootstrap/56656
34569 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34570 that require movd instead of movq.
34571
34572 2013-03-20 Richard Biener <rguenther@suse.de>
34573
34574 * tree-ssa-structalias.c (struct variable_info): Add pointer
34575 to the first field of an aggregate with sub-vars. Make
34576 this and the pointer to the next subfield its ID.
34577 (vi_next): New function.
34578 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34579 storedanything_id, integer_id): Increment by one.
34580 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34581 get_call_clobber_vi): Adjust.
34582 (solution_set_expand): Simplify and speedup.
34583 (solution_set_add): Inline into ...
34584 (set_union_with_increment): ... this. Adjust accordingly.
34585 (do_sd_constraint): Likewise.
34586 (do_ds_constraint): Likewise.
34587 (do_complex_constraint): Simplify.
34588 (build_pred_graph): Adjust.
34589 (solve_graph): Likewise. Simplify and speedup.
34590 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34591 get_constraint_for_component_ref, get_constraint_for_1,
34592 first_vi_for_offset, first_or_preceding_vi_for_offset,
34593 create_function_info_for, create_variable_info_for_1,
34594 create_variable_info_for, intra_create_variable_infos): Adjust.
34595 (init_base_vars): Push NULL for ID zero.
34596 (compute_points_to_sets): Adjust.
34597
34598 2013-03-20 Richard Biener <rguenther@suse.de>
34599
34600 * cfgloop.c (verify_loop_structure): Streamline and avoid
34601 ICEing on corrupt loop tree.
34602 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34603 loop tree.
34604
34605 2013-03-20 Richard Biener <rguenther@suse.de>
34606
34607 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34608 check whether an SSA update is needed.
34609
34610 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34611
34612 * config/mips/constraints.md (T): Rename to...
34613 (Yf): ...this.
34614 (U): Rename to...
34615 (Yd): ...this.
34616 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34617 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34618
34619 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34620
34621 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34622 (*subsi3_carryin_uxtw): Likewise.
34623
34624 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34625
34626 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34627 (*rorsi3_insn_uxtw): Likewise.
34628
34629 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34630
34631 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34632 (*extrsi5_insn_uxtw): Likewise.
34633
34634 2013-03-19 Richard Biener <rguenther@suse.de>
34635
34636 PR tree-optimization/56273
34637 * passes.c (init_optimization_passes): Move second VRP after DOM.
34638
34639 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34640
34641 * config/i386/i386.md (*movti_internal): Merge from
34642 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34643 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34644 nox64 isa attributes.
34645
34646 2013-03-18 Richard Biener <rguenther@suse.de>
34647
34648 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34649 (unite): Likewise.
34650 (merge_node_constraints): Likewise.
34651 (build_succ_graph): Likewise.
34652 (valid_graph_edge): Inline into single caller.
34653 (unify_nodes): Likewise. Use bitmap_set_bit return value
34654 and cache varinfo.
34655 (scc_visit): Fix formatting and variable use.
34656 (do_sd_constraint): Use gcc_checking_assert.
34657 (do_ds_constraint): Likewise.
34658 (do_complex_constraint): Likewise.
34659 (condense_visit): Likewise. Cleanup.
34660 (dump_pred_graph): New function.
34661 (perform_var_substitution): Dump the pred-graph before
34662 variable substitution.
34663 (find_equivalent_node): Use gcc_checking_assert.
34664 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34665
34666 2013-03-18 Richard Biener <rguenther@suse.de>
34667
34668 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34669 Remove cond_expr_stmt_list argument and do not gimplify the
34670 built expression.
34671 (vect_loop_versioning): Adjust.
34672 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34673 Cleanup to use less temporaries.
34674 (vect_create_data_ref_ptr): Cleanup.
34675
34676 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34677
34678 PR tree-optimization/56635
34679 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34680 require types_compatible_p types.
34681
34682 2013-03-18 Nick Clifton <nickc@redhat.com>
34683
34684 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34685 spurious backslash.
34686
34687 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34688 Add missing line to comment describing function.
34689
34690 2013-03-18 Richard Biener <rguenther@suse.de>
34691
34692 PR tree-optimization/56210
34693 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34694 Handle string / character search functions.
34695 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34696
34697 2013-03-18 Richard Biener <rguenther@suse.de>
34698
34699 PR middle-end/56483
34700 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34701 and implement properly.
34702 * gimple.h (gimple_cond_single_var_p): Remove.
34703
34704 2013-03-18 Richard Biener <rguenther@suse.de>
34705
34706 * tree-data-ref.h (find_data_references_in_loop): Declare.
34707 * tree-data-ref.c (get_references_in_stmt): Use a stack
34708 vector pre-allocated in the callers.
34709 (find_data_references_in_stmt): Adjust.
34710 (graphite_find_data_references_in_stmt): Likewise.
34711 (create_rdg_vertices): Likewise.
34712 (find_data_references_in_loop): Export.
34713 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34714 Compute dependences here...
34715 (vect_analyze_data_refs): ...not here. When we encounter
34716 a non-vectorizable data reference in basic-block vectorization
34717 truncate the data reference vector. Do not bother to
34718 fixup data-dependence information for gather loads.
34719 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34720 of data references, as reported.
34721
34722 2013-03-18 Richard Biener <rguenther@suse.de>
34723
34724 PR tree-optimization/3713
34725 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34726 has_constants and expr.
34727 (stmt_has_constants): Properly valueize SSA names when deciding
34728 whether the stmt has constants.
34729
34730 2013-03-18 Richard Biener <rguenther@suse.de>
34731
34732 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34733 whole function when there is nothing to do.
34734 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34735 * tree-vectorizer.c (vectorize_loops): Update virtual and
34736 loop-closed SSA once.
34737 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34738
34739 2013-03-18 Richard Biener <rguenther@suse.de>
34740
34741 PR middle-end/56113
34742 * domwalk.c (bb_postorder): New global static.
34743 (cmp_bb_postorder): New function.
34744 (walk_dominator_tree): Replace scheme imposing an order for
34745 visiting dominator sons by one sorting them at the time they
34746 are pushed on the stack.
34747
34748 2013-03-18 Richard Biener <rguenther@suse.de>
34749
34750 PR tree-optimization/39326
34751 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34752 (struct mem_ref): Replace mem member with ao_ref typed member.
34753 (MEM_ANALYZABLE): Adjust.
34754 (memref_eq): Likewise.
34755 (mem_ref_alloc): Likewise.
34756 (gather_mem_refs_stmt): Likewise.
34757 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34758 (execute_sm_if_changed_flag_set): Adjust.
34759 (execute_sm): Likewise.
34760 (ref_always_accessed_p): Likewise.
34761 (refs_independent_p): Likewise.
34762 (can_sm_ref_p): Likewise.
34763
34764 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34765
34766 PR c/56566
34767 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34768 return 1 even for !unsignedp.
34769
34770 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34771
34772 * config/i386/i386.md (isa): Add x64 and nox64.
34773 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34774 (*pushtf): Enable *roF alternative for x64 isa only.
34775 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34776 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34777 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34778 (*movtf_internal): Merge from *movtf_internal_rex64 and
34779 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34780 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34781 nox64 isa attributes.
34782 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34783 nox64 isa attributes.
34784 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34785
34786 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34787
34788 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34789
34790 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34791
34792 PR target/56640
34793 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34794 class names. Remove trailing comma after "ALL_REGS".
34795
34796 2013-03-16 Jan Hubicka <jh@suse.cz>
34797
34798 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34799 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34800 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34801 of cgraph_get_create_node.
34802 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34803
34804 2013-03-16 Jason Merrill <jason@redhat.com>
34805
34806 PR debug/49090
34807 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34808 with DW_AT_default_value.
34809
34810 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34811
34812 * BASE-VER: Set to 4.9.0.
34813
34814 2013-03-14 Andi Kleen <ak@linux.intel.com>
34815
34816 PR target/56619
34817 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34818 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34819 Document _x* TSX intrinsics.
34820
34821 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34822 David Holsgrove <david.holsgrove@xilinx.com>
34823
34824 * configure.ac: Add MicroBlaze TLS support detection.
34825 * configure: Regenerate.
34826 * config/microblaze/microblaze-protos.h
34827 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34828 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34829 * config/microblaze/microblaze.c (microblaze_address_type): Add
34830 ADDRESS_TLS and tls_reloc address types.
34831 (microblaze_address_info): Add tls_reloc.
34832 (TARGET_HAVE_TLS): Define.
34833 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34834 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34835 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34836 load_tls_operand, microblaze_call_tls_get_addr,
34837 microblaze_legitimize_tls_address): New functions.
34838 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34839 (get_base_reg): Use microblaze_tls_symbol_p.
34840 (microblaze_classify_address): Handle TLS.
34841 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34842 label_mentioned_p and microblaze_tls_referenced_p.
34843 (microblaze_legitimize_address): Handle TLS.
34844 (microblaze_address_insns): Handle ADDRESS_TLS.
34845 (pic_address_needs_scratch): Handle TLS.
34846 (print_operand_address): Handle TLS.
34847 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34848 (microblaze_expand_move): Handle TLS.
34849 (microblaze_legitimate_constant_p): Check
34850 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34851 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34852 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34853 (PIC_OFFSET_TABLE_REGNUM): Set.
34854 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34855 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34856 (addsi3, movsi_internal2, movdf_internal): Update constraints
34857 * config/microblaze/predicates.md (arith_plus_operand): Define
34858 (move_operand): Redefine as move_src_operand,
34859 check microblaze_tls_referenced_p.
34860
34861 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34862
34863 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34864 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34865
34866 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34867
34868 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34869 CC mode for AND.
34870
34871 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34872
34873 PR tree-optimization/53265
34874 * common.opt (Waggressive-loop-optimizations): New option.
34875 * tree-ssa-loop-niter.c: Include tree-pass.h.
34876 (do_warn_aggressive_loop_optimizations): New function.
34877 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34878 if number_of_latch_executions returned constant.
34879 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34880 early. If number_of_latch_executions returned constant, set
34881 nb_iterations_upper_bound back to it.
34882 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34883 field.
34884 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34885 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34886
34887 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34888 (MULTILIB_OSDIRNAMES): Set.
34889 * genmultilib: If defaultosdirname doesn't start with :: , set
34890 defaultosdirname2 instead, clear it and emit two . multilib_raw
34891 entries instead of just one.
34892
34893 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34894
34895 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34896 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34897 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34898 (SUBTARGET_OVERRIDE_OPTIONS): New.
34899
34900 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34901
34902 PR target/49880
34903 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34904 (musermode): Convert to Var(TARGET_USERMODE).
34905 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34906 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34907 * config/sh/sh.c (sh_option_override): Use
34908 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34909 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34910 condition.
34911 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34912 TARGET_SH4.
34913 (udivsi3_i4_single, divsi3_i4_single): Use
34914 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34915
34916 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34917
34918 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34919 default setting.
34920
34921 2013-03-13 Richard Biener <rguenther@suse.de>
34922
34923 PR tree-optimization/56608
34924 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34925 calls when vectorizing basic-blocks.
34926
34927 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34928
34929 PR plugins/45078
34930 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34931 tm_file.
34932
34933 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34934
34935 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34936
34937 2013-03-11 Jan Hubicka <jh@suse.cz>
34938
34939 PR lto/56557
34940 * lto-streamer-out.c (output_symbol_p): Skip references from
34941 constructors of external variables.
34942
34943 2013-03-11 Jan Hubicka <jh@suse.cz>
34944
34945 PR middle-end/56571
34946 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34947 from pseudos.
34948 * emit-rtl.c (verify_rtx_sharing): Likewise.
34949 (copy_insn_1): Likewise.
34950 * rtl.c (copy_rtx): Likewise.
34951
34952 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34953
34954 PR target/56591
34955 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34956 output_operand_lossage message.
34957
34958 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34959
34960 PR target/56470
34961 * arm.c (shift_op): Validate RTL pattern on the fly.
34962 (arm_print_operand, case 'S'): Don't use shift_operator to validate
34963 the RTL.
34964
34965 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34966
34967 PR target/56347
34968 * config/pa/pa.md (call_value): Check for calls to powf and direct to
34969 new call patterns that clobber %fr12.
34970 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
34971 split and postreload patterns.
34972 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
34973 registers %fr12 and %fr12R as call used.
34974
34975 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
34976
34977 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
34978 (canon_address, record_store, replace_read, check_mem_read_rtx,
34979 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
34980 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
34981 rest_of_handle_dse): Likewise.
34982
34983 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
34984
34985 PR middle-end/56524
34986 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
34987 Add base_optabs.
34988 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
34989 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
34990 (save_optabs_if_changed): Replace with...
34991 (init_tree_optimization_optabs): ...this.
34992 * optabs.c (save_optabs_if_changed): Rename to...
34993 (init_tree_optimization_optabs): ...this. Take the optimization node
34994 as argument. Do nothing if the base optabs are already correct.
34995 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
34996 to recompute optabs.
34997 * function.h (function): Remove optabs field.
34998 * function.c (invoke_set_current_function_hook): Call
34999 init_tree_optimization_optabs. Use the result to initialize
35000 this_fn_optabs.
35001
35002 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35003
35004 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35005 if GTMA_HAS_NO_INSTRUMENTATION.
35006 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35007 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35008 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35009 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35010 GTMA_HAS_NO_INSTRUMENTATION.
35011
35012 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35013
35014 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35015 libasan_preinit.o.
35016
35017 2013-03-08 Marek Polacek <polacek@redhat.com>
35018 Jakub Jelinek <jakub@redhat.com>
35019
35020 PR tree-optimization/56478
35021 * predict.c (is_comparison_with_loop_invariant_p): Change the
35022 type of loop_step to tree.
35023 (predict_loops): Adjust.
35024 (predict_iv_comparison): Perform the computations on double_ints.
35025
35026 2013-03-08 Richard Biener <rguenther@suse.de>
35027
35028 PR tree-optimization/56570
35029 * tree-cfg.c (verify_expr_location_1): Verify locations for
35030 DECL_DEBUG_EXPR.
35031 * tree-sra.c (create_access_replacement): Strip locations
35032 from DECL_DEBUG_EXPRs.
35033
35034 2013-03-08 Richard Biener <rguenther@suse.de>
35035
35036 * tree-inline.c (expand_call_inline): Do not associate
35037 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35038 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35039
35040 2013-03-08 Richard Biener <rguenther@suse.de>
35041
35042 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35043 or block changes with -Og. Fix for location / block encoding
35044 changes and PHI arguments with locations.
35045
35046 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35047
35048 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35049 for all counters.
35050 (struct output_info): Likewise.
35051 (register_overhead): Remove bad gcc_assert.
35052 (bitmap_find_bit): If there is only a single bitmap element, do not
35053 count a miss as a search.
35054 (print_statistics): Update for counter type changes.
35055 (dump_bitmap_statistics): Likewise. Print headers such that they
35056 are properly lined up with the printed counters.
35057
35058 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35059
35060 PR tree-optimization/56559
35061 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35062 check that it has only a single use.
35063
35064 2013-03-07 Richard Biener <rguenther@suse.de>
35065
35066 * doc/invoke.texi (fwhole-program): Discourage use in combination
35067 with -flto.
35068
35069 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35070
35071 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35072
35073 PR tree-optimization/56539
35074 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35075 instead of GSI_CONTINUE_LINKING as last argument to
35076 force_gimple_operand_gsi. Adjust function comment.
35077
35078 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35079 aarch64-cores.def.
35080
35081 PR middle-end/56548
35082 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35083 promoted mode, convert the result back to the original mode.
35084
35085 2013-03-06 Richard Biener <rguenther@suse.de>
35086
35087 PR middle-end/56294
35088 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35089 (insert_updated_phi_nodes_compare_uids): New function.
35090 (update_ssa): Sort symbols_to_rename after UID before
35091 traversing it to insert PHI nodes.
35092
35093 2013-03-06 Richard Biener <rguenther@suse.de>
35094
35095 PR middle-end/50494
35096 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35097 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35098
35099 Revert
35100 2013-02-13 Richard Biener <rguenther@suse.de>
35101
35102 PR lto/50494
35103 * varasm.c (output_constant_def_1): Get the decl representing
35104 the constant as argument.
35105 (output_constant_def): Wrap output_constant_def_1.
35106 (make_decl_rtl): Use output_constant_def_1 with the decl
35107 representing the constant.
35108 (build_constant_desc): Optionally re-use a decl already
35109 representing the constant.
35110 (tree_output_constant_def): Adjust.
35111
35112 2013-03-06 Joey Ye <joey.ye@arm.com>
35113
35114 PR lto/50293
35115 * gcc.c (convert_white_space): New function.
35116 (main): Handles white space in function name.
35117
35118 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35119
35120 PR target/56529
35121 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35122 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35123 to SH_DIV_CALL_TABLE for TARGET_SH2.
35124 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35125 list.
35126 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35127 call-table options.
35128
35129 2013-03-05 Sterling Augustine <saugustine@google.com>
35130 Cary Coutant <ccoutant@google.com>
35131
35132 PR debug/55364
35133 * dwarf2out.c (resolve_addr): Don't call
35134 remove_loc_list_addr_table_entries a second time for the same
35135 expression.
35136
35137 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35138
35139 PR debug/56510
35140 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35141 (avoid_complex_debug_insns): New function.
35142 (expand_debug_locations): Call it.
35143
35144 PR rtl-optimization/56484
35145 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35146 lifetimes of hard registers on small register class machines.
35147
35148 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35149
35150 * config/microblaze/microblaze-protos.h: Rename
35151 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35152 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35153 fast_interrupt.
35154 (microblaze_fast_interrupt_function_p): New function.
35155 (microblaze_is_interrupt_handler): Rename to
35156 microblaze_is_interrupt_variant and add fast_interrupt check.
35157 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35158 (save_restore_insns): Likewise.
35159 (compute_frame_size): Likewise.
35160 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35161 (microblaze_globalize_label): Likewise.
35162 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35163 * config/microblaze/microblaze.md: Use wrapper
35164 microblaze_is_interrupt_variant.
35165
35166 2013-03-05 Kai Tietz <ktietz@redhat.com>
35167
35168 * sdbout.c (sdbout_one_type): Switch to current function's section
35169 supporting cold/hot.
35170
35171 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35172
35173 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35174 -mxl-reorder.
35175
35176 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35177
35178 PR middle-end/56461
35179 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35180 if VALGRIND_GET_VBITS is defined, temporarily make object
35181 memory all defined, and restore previous valgrind addressability
35182 and definability afterwards. Free this_object at the end.
35183
35184 PR middle-end/56461
35185 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35186 right before calling lra_create_live_ranges, also call it
35187 when clearing live_p. Only call lra_clear_live_ranges
35188 at the end if live_p.
35189
35190 PR middle-end/56461
35191 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35192
35193 2013-03-05 Richard Biener <rguenther@suse.de>
35194
35195 PR tree-optimization/56521
35196 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35197 value-id.
35198
35199 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35200
35201 PR c++/55135
35202 * except.h (remove_unreachable_eh_regions): New prototype.
35203 * except.c (remove_eh_handler_splicer): New function, split out
35204 of remove_eh_handler.
35205 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35206 warning about running it on many EH regions one at a time.
35207 (remove_unreachable_eh_regions_worker): New function, walk the
35208 EH tree in depth-first order and remove non-marked regions.
35209 (remove_unreachable_eh_regions): New function.
35210 * tree-eh.c (mark_reachable_handlers): New function, split out
35211 from remove_unreachable_handlers.
35212 (remove_unreachable_handlers): Use mark_reachable_handlers and
35213 remove_unreachable_eh_regions.
35214 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35215 and remove_unreachable_eh_regions.
35216
35217 2013-03-05 Richard Biener <rguenther@suse.de>
35218
35219 PR middle-end/56525
35220 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35221 not freeing them until the end.
35222
35223 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35224
35225 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35226
35227 2013-03-05 Richard Biener <rguenther@suse.de>
35228
35229 PR tree-optimization/56270
35230 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35231 of loads after scheduling an SLP instance.
35232
35233 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35234
35235 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35236 tic6x.exp.
35237 (check_gcc_parallelize): Run guality.exp as a separate job from
35238 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35239 struct-layout-1.exp with stackalign.exp.
35240
35241 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35242
35243 PR middle-end/56461
35244 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35245 load_index sbitmap even if some bit in it isn't set.
35246
35247 PR middle-end/56461
35248 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35249 (discover_iteration_bound_by_body_walk): Change queues to
35250 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35251 spelling in comment. Call safe_push on queues[bound_index] directly.
35252 Release queues[queue_index] in every iteration unconditionally.
35253 Release bounds vector.
35254
35255 PR middle-end/56461
35256 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35257 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35258 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35259 inner_phis vector.
35260
35261 2013-03-05 Richard Biener <rguenther@suse.de>
35262
35263 PR lto/56515
35264 * tree-inline.c (remap_blocks_to_null): New function.
35265 (expand_call_inline): When expanding a call stmt without
35266 an associated block inline remap all callee blocks to NULL.
35267
35268 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35269
35270 PR rtl-optimization/56494
35271 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35272 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35273 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35274
35275 PR middle-end/56461
35276 * sel-sched-ir.c (free_sched_pools): Release
35277 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35278 if succs_info_pool.max_top isn't -1.
35279
35280 PR bootstrap/56509
35281 * opts.c (opts_obstack, opts_concat): Moved to...
35282 * opts-common.c (opts_obstack, opts_concat): ... here.
35283
35284 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35285
35286 PR middle-end/56461
35287 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35288
35289 2013-03-04 Martin Jambor <mjambor@suse.cz>
35290
35291 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35292 all appropriate places.
35293
35294 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35295
35296 PR tree-optimization/56424
35297 * ipa-split.c (split_function): Do not set the RSO flag if result is
35298 not by reference and its type is a register type.
35299
35300 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35301
35302 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35303 (microblaze_legitimate_pic_operand): Likewise
35304 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35305 new function microblaze_legitimate_pic_operand
35306 * config/microblaze/microblaze-protos.h
35307 (microblaze_legitimate_pic_operand): Declare.
35308
35309 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35310
35311 * config/microblaze/predicates.md (call_insn_simple_operand):
35312 New predicate for supported rtx code types.
35313 * config/microblaze/microblaze.md (call_internal1): Use
35314 call_insn_simple_operand predicate.
35315
35316 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35317
35318 PR middle-end/56461
35319 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35320 partitions.ordered_remove.
35321
35322 PR middle-end/56461
35323 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35324 vec_oprnds0.create (1) for modifier == NONE.
35325
35326 PR middle-end/56461
35327 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35328 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35329 vec_oprnds1 right before pushing anything to it for
35330 scalar_shift_arg.
35331
35332 PR middle-end/56461
35333 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35334 set nbbs to 0 instead of having separate code path.
35335 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35336 instead of false as last argument if returning NULL.
35337
35338 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35339
35340 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35341 the attribute is now called "target" instead of "option".
35342 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35343 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35344 attribute/pragma name for TARGET_OPTION_VALID_P and
35345 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35346 * doc/tm.texi: Regenerated.
35347
35348 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35349
35350 * config/microblaze/microblaze.c:
35351 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35352 * config/microblaze/microblaze.h: Add -mxl-reorder to
35353 DRIVER_SELF_SPECS.
35354 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35355 instructions emitted if TARGET_REORDER.
35356 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35357 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35358 separately.
35359
35360 2013-03-01 Xinliang David Li <davidxl@google.com>
35361
35362 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35363 walk length.
35364
35365 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35366
35367 PR middle-end/56461
35368 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35369 vector even when returning true. Fix up function comment formatting.
35370
35371 PR middle-end/56461
35372 * ira-build.c (ira_loop_nodes_count): New variable.
35373 (create_loop_tree_nodes): Initialize it.
35374 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35375
35376 PR middle-end/56461
35377 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35378 method on dr_chain and result_chain.
35379 * tree-vect-stmts.c (vectorizable_store): Only call
35380 result_chain.create if j == 0.
35381
35382 PR middle-end/56461
35383 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35384 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35385 before overwriting it.
35386
35387 2013-03-01 Tobias Burnus <burnus@net-b.de>
35388
35389 * doc/extended.texi (C Extensions): Change order in @menu
35390 to match @node.
35391 (Other MIPS Built-in Functions): Move last MIPS entry before
35392 "picoChip Built-in Functions".
35393 (SH Built-in Functions): Move after RX Built-in Functions.
35394 * doc/gcc.texi (Introduction): Change order in @menu
35395 to match @node.
35396 * doc/md.texi (Constraints): Ditto.
35397 * gty.texi (Type Information): Ditto.
35398 (User-provided marking routines for template types): Make
35399 subsection.
35400 * doc/invoke.texi (AArch64 Options): Move before
35401 "Adapteva Epiphany Options".
35402
35403 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35404 Jakub Jelinek <jakub@redhat.com>
35405
35406 PR sanitizer/56454
35407 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35408 no_address_safety_analysis attribute.
35409 * doc/extend.texi (no_address_safety_attribute): Rename to
35410 no_sanitize_address attribute, mention no_address_safety_analysis
35411 attribute as deprecated alias.
35412
35413 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35414
35415 PR middle-end/56461
35416 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35417 type to vec<vec<tree> > *.
35418 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35419 to be vec<tree> instead of vec<tree> *, set vec_defs
35420 to vNULL and call vec_defs.create (number_of_vects), adjust other
35421 uses of vec_defs.
35422 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35423 vectorizable_condition): Adjust vect_get_slp_defs callers.
35424
35425 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35426
35427 * config/aarch64/aarch64.c
35428 (aarch64_float_const_representable): Remove unused variable.
35429
35430 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35431
35432 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35433
35434 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35435
35436 * config/aarch64/aarch64-builtins.c
35437 (aarch64_init_simd_builtins): Make static.
35438
35439 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35440
35441 * config/aarch64/aarch64.c
35442 (aarch64_simd_make_constant): Make static.
35443
35444 2013-02-28 Martin Jambor <mjambor@suse.cz>
35445
35446 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35447 with no initialization to the RHS of debug statements.
35448
35449 2013-02-28 Martin Jambor <mjambor@suse.cz>
35450
35451 PR tree-optimization/56294
35452 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35453 Adjust dumping.
35454 (get_access_replacement): Do not call create_access_replacement.
35455 Assert a replacement exists.
35456 (get_repl_default_def_ssa_name): Create the replacement declaration
35457 itself.
35458
35459 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35460
35461 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35462 final_end_function.
35463
35464 2013-02-28 Marek Polacek <polacek@redhat.com>
35465
35466 PR rtl-optimization/56466
35467 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35468 if we're changing a loop.
35469 (peel_loops_completely): Likewise.
35470
35471 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35472
35473 PR c++/55813
35474 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35475
35476 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35477
35478 PR target/56445
35479 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35480 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35481 INTX_FTYPE_FX, FX_FTYPE_INTX.
35482 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35483
35484 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35485
35486 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35487 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35488 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35489 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35490 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35491 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35492 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35493 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35494 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35495 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35496 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35497 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35498 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35499 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35500 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35501 (avrxmega6): Increase max flash segments from 5 to 6.
35502 * config/avr/t-multilib: Regenerate.
35503 * config/avr/avr-tables.opt: Regenerate.
35504 * doc/avr-mmcu.texi: Regenerate.
35505
35506 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35507
35508 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35509 (avr_device_to_arch): Rename to avr_device_to_ld.
35510 (avr_device_to_as): New prototype.
35511 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35512 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35513 * config/avr/driver-avr.c (avr_device_to_as): New.
35514 (avr_device_to_arch): Rename to avr_device_to_ld.
35515
35516 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35517
35518 PR middle-end/56461
35519 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35520 method on dr_chain and result_chain.
35521
35522 PR middle-end/56461
35523 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35524 pointer_set_destroy on not_executed_last_iteration.
35525
35526 PR middle-end/56461
35527 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35528
35529 PR middle-end/56461
35530 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35531 FOR_EACH_DEFINED_FUNCTION when freeing state.
35532
35533 PR middle-end/56461
35534 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35535 pool_free.
35536 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35537 overwriting it.
35538
35539 PR middle-end/56461
35540 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35541 known_aggs[i].items and release known_aggs vector.
35542
35543 PR middle-end/56461
35544 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35545
35546 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35547
35548 * config/microblaze/microblaze.c (microblaze_emit_compare):
35549 Use xor for EQ/NE comparisions.
35550 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35551 (cbranchsf4): Adjust operator to comparison_operator.
35552
35553 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35554
35555 PR middle-end/56461
35556 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35557 vector.
35558 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35559 vec_safe_push, always update *slot.
35560 (redirect_edge_var_map_clear): Use vec_free.
35561 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35562 (free_var_map_entry): Use vec_free.
35563 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35564 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35565
35566 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35567
35568 PR middle-end/45472
35569 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35570 when the may_trap_p bit of the exprs being merged differs.
35571 Reorder tests for speculativeness in the logical and operator.
35572
35573 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35574
35575 * incpath.c (add_standard_paths): Use reconcat instead of concat
35576 where appropriate and avoid leaking memory.
35577
35578 * opts.h: Include obstack.h.
35579 (opts_concat): New prototype.
35580 (opts_obstack): New declaration.
35581 * opts.c (opts_concat): New function.
35582 (opts_obstack): New variable.
35583 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35584 (finish_options): Use opts_concat instead of concat
35585 and XOBNEWVEC instead of XNEWVEC.
35586 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35587 generate_option): Likewise.
35588 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35589 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35590
35591 PR target/56455
35592 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35593 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35594
35595 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35596
35597 PR middle-end/56461
35598 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35599
35600 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35601
35602 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35603 (arm_block_move_unaligned_straight): Likewise.
35604 (arm_adjust_block_mem): Likewise.
35605
35606 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35607
35608 PR target/48901
35609 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35610 temp, cond and label.
35611 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35612
35613 PR target/52500
35614 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35615 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35616
35617 PR target/52501
35618 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35619 of prologue/epilogue functions.
35620
35621 PR target/52550
35622 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35623 Remove unused variable cfa_offset.
35624 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35625
35626 PR target/54639
35627 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35628 type promotion to unsigned.
35629
35630 PR target/54640
35631 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35632 for HOST_WIDE_INT of 32 bit / same size as int.
35633 (arm_block_move_unaligned_straight): Likewise.
35634 (arm_adjust_block_mem): Likewise.
35635
35636 PR target/54662
35637 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35638 ALL_CFLAGS.
35639
35640 2013-02-26 Marek Polacek <polacek@redhat.com>
35641
35642 PR tree-optimization/56426
35643 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35644
35645 2013-02-26 Richard Biener <rguenther@suse.de>
35646
35647 PR target/56444
35648 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35649 unused variable loops.
35650
35651 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35652
35653 PR tree-optimization/56448
35654 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35655 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35656 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35657 later operands of the references, or even first operand for
35658 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35659
35660 PR tree-optimization/56443
35661 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35662 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35663 to type_for_mode langhook.
35664
35665 2013-02-25 Matt Turner <mattst88@gmail.com>
35666
35667 * doc/invoke.texi: Document r4700.
35668
35669 2013-02-25 Richard Biener <rguenther@suse.de>
35670
35671 PR tree-optimization/56175
35672 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35673 split out from ...
35674 (simplify_bitwise_binary): ... here. Also guard the conversion
35675 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35676
35677 2013-02-25 Catherine Moore <clm@codesourcery.com>
35678
35679 Revert:
35680 2013-02-24 Catherine Moore <clm@codesourcery.com>
35681 Maciej W. Rozycki <macro@codesourcery.com>
35682 Tom de Vries <tom@codesourcery.com>
35683 Nathan Sidwell <nathan@codesourcery.com>
35684 Iain Sandoe <iain@codesourcery.com>
35685 Nathan Froyd <froydnj@codesourcery.com>
35686 Chao-ying Fu <fu@mips.com>
35687
35688 * doc/extend.texi: (micromips, nomicromips, nocompression):
35689 Document new function attributes.
35690 * doc/invoke.texi (minterlink-compressed, mmicromips,
35691 m14k, m14ke, m14kec): Document new options.
35692 (minterlink-mips16): Update documentation.
35693 * doc/md.texi (ZC, ZD): Document new constraints.
35694 * configure.ac (gcc_cv_as_micromips): Check if linker
35695 supports the .set micromips directive.
35696 * configure: Regenerate.
35697 * config.in: Regenerate.
35698 * config/mips/mips-tables.opt: Regenerate.
35699 * config/mips/micromips.md: New file.
35700 * constraints.md (ZC, AD): New constraints.
35701 * config/mips/predicates.md (movep_src_register): New predicate.
35702 (movep_src_operand): New predicate.
35703 (non_volatile_mem_operand): New predicate.
35704 * config/mips/mips.md (multimem): New type.
35705 (length): Differentiate between 17-bit and 18-bit branch offsets.
35706 (MOVEP1, MOVEP2): New mode iterator.
35707 (mov_<load>l): Use ZC constraint.
35708 (mov_<load>r): Likewise.
35709 (mov_<store>l): Likewise.
35710 (mov_<store>r): Likewise.
35711 (*branch_equality<mode>_inverted): Add microMIPS support.
35712 (*branch_equality<mode>): Likewise.
35713 (*jump_absolute): Likewise.
35714 (indirect_jump_<mode>): Likewise.
35715 (tablejump_<mode>): Likewise.
35716 (<optab>_internal): Likewise.
35717 (sibcall_internal): Likewise.
35718 (sibcall_value_internal): Likewise.
35719 (prefetch): Use constraint ZD.
35720 * config/mips/mips.opt (minterlink-compressed): New option.
35721 (minterlink-mips16): Now an alias for minterlink-compressed.
35722 (mmicromips): New option.
35723 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35724 (compare_and_swap_12): Likewise.
35725 (sync_add<mode>): Likewise.
35726 (sync_<optab>_12): Likewise.
35727 (sync_old_<optab>_12): Likewise.
35728 (sync_new_<optab>_12): Likewise.
35729 (sync_nand_12): Likewise.
35730 (sync_old_nand_12): Likewise.
35731 (sync_new_nand_12): Likewise.
35732 (sync_sub<mode>): Likewise.
35733 (sync_old_add<mode>): Likewise.
35734 (sync_old_sub<mode>): Likewise.
35735 (sync_new_add<mode>): Likewise.
35736 (sync_new_sub<mode>): Likewise.
35737 (sync_<optab><mode>): Likewise.
35738 (sync_old_<optab><mode>): Likewise.
35739 (sync_new_<optab><mode>): Likewise.
35740 (sync_nand<mode>): Likewise.
35741 (sync_old_nand<mode>): Likewise.
35742 (sync_new_nand<mode>): Likewise.
35743 (sync_lock_test_and_set<mode>): Likewise.
35744 (test_and_set_12): Likewise.
35745 (atomic_compare_and_swap<mode>): Likewise.
35746 (atomic_exchange<mode>_llsc): Likewise.
35747 (atomic_fetch_add<mode>_llsc): Likewise.
35748 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35749 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35750 (umips_save_restore_pattern_p): Likewise.
35751 (umips_load_store_pair_p): Likewise.
35752 (umips_output_load_store_pair): Likewise.
35753 (umips_movep_target_p): Likewise.
35754 (umips_12bit_offset_address_p): Likewise.
35755 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35756 (mips_base_mips16): Rename this...
35757 (mips_base_compression_flags): ...to this. Update all uses.
35758 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35759 (mips_mips16_decl_p): Delete.
35760 (mips_nomips16_decl_p): Delete.
35761 (mips_get_compress_on_flags): New function.
35762 (mips_get_compress_off_flags): New function.
35763 (mips_get_compress_mode): New function.
35764 (mips_get_compress_on_name): New function.
35765 (mips_get_compress_off_name): New function.
35766 (mips_insert_attributes): Support multiple compression types.
35767 (mips_merge_decl_attributes): Likewise.
35768 (umips_12bit_offset_address_p): New function.
35769 (mips_start_function_definition): Emit .set micromips directive.
35770 (mips_call_may_need_jalx_p): New function.
35771 (mips_function_ok_for_sibcall): Add microMIPS support.
35772 (mips_print_operand_punctuation): Support short delay slots and
35773 compact jumps.
35774 (umips_swm_mask, umips_swm_encoding): New.
35775 (umips_build_save_restore): New function.
35776 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35777 (was_mips16_p): Remove.
35778 (old_compression_mode): New.
35779 (mips_set_compression_mode): New function.
35780 (mips_set_current_function): Add microMIPS support.
35781 (mips_option_override): Likewise.
35782 (umips_save_restore_pattern_p): New function.
35783 (umips_output_save_restore): New function.
35784 (umips_load_store_pair_p_1): New function.
35785 (umips_load_store_pair_p): New function.
35786 (umips_output_load_store_pair_1): New function.
35787 (umips_output_load_store_pair): New function.
35788 (umips_movep_target_p) New function.
35789 (mips_prepare_pch_save): Add microMIPS support.
35790 * config/mips/mips.h (TARGET_COMPRESSION): New.
35791 (TARGET_CPU_CPP_BUILTINS): Update macro
35792 to use new compression flags and to support microMIPS.
35793 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35794 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35795 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35796 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35797 (ASM_SPEC): Support mmicromips and mno-micromips.
35798 (M16STORE_REG_P): New macro.
35799 (MIPS_CALL): Support TARGET_MICROMIPS.
35800 (MICROMIPS_J): New macro.
35801 (mips_base_mips16): Rename this...
35802 (mips_base_compression_flags): ...to this.
35803 (UMIPS_12BIT_OFFSET_P): New macro.
35804 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35805 (MULTILIB_DIRNAMES): Likewise.
35806
35807 2013-02-25 Tom de Vries <tom@codesourcery.com>
35808
35809 PR rtl-optimization/56131
35810 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35811 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35812 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35813
35814 2013-02-25 Tobias Burnus <burnus@net-b.de>
35815
35816 * doc/invoke.texi (-fsanitize=): Move from optimization
35817 to debugging options.
35818
35819 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35820
35821 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35822
35823 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35824 Alexander Monakov <amonakov@ispras.ru>
35825
35826 PR middle-end/56077
35827 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35828 flush pending lists also on non-jumps. Adjust comment.
35829
35830 2013-02-24 Catherine Moore <clm@codesourcery.com>
35831 Maciej W. Rozycki <macro@codesourcery.com>
35832 Tom de Vries <tom@codesourcery.com>
35833 Nathan Sidwell <nathan@codesourcery.com>
35834 Iain Sandoe <iain@codesourcery.com>
35835 Nathan Froyd <froydnj@codesourcery.com>
35836 Chao-ying Fu <fu@mips.com>
35837
35838 * doc/extend.texi: (micromips, nomicromips, nocompression):
35839 Document new function attributes.
35840 * doc/invoke.texi (minterlink-compressed, mmicromips,
35841 m14k, m14ke, m14kec): Document new options.
35842 (minterlink-mips16): Update documentation.
35843 * doc/md.texi (ZC, ZD): Document new constraints.
35844 * configure.ac (gcc_cv_as_micromips): Check if linker
35845 supports the .set micromips directive.
35846 * configure: Regenerate.
35847 * config.in: Regenerate.
35848 * config/mips/mips-tables.opt: Regenerate.
35849 * config/mips/micromips.md: New file.
35850 * constraints.md (ZC, AD): New constraints.
35851 * config/mips/predicates.md (movep_src_register): New predicate.
35852 (movep_src_operand): New predicate.
35853 (non_volatile_mem_operand): New predicate.
35854 * config/mips/mips.md (multimem): New type.
35855 (length): Differentiate between 17-bit and 18-bit branch offsets.
35856 (MOVEP1, MOVEP2): New mode iterator.
35857 (mov_<load>l): Use ZC constraint.
35858 (mov_<load>r): Likewise.
35859 (mov_<store>l): Likewise.
35860 (mov_<store>r): Likewise.
35861 (*branch_equality<mode>_inverted): Add microMIPS support.
35862 (*branch_equality<mode>): Likewise.
35863 (*jump_absolute): Likewise.
35864 (indirect_jump_<mode>): Likewise.
35865 (tablejump_<mode>): Likewise.
35866 (<optab>_internal): Likewise.
35867 (sibcall_internal): Likewise.
35868 (sibcall_value_internal): Likewise.
35869 (prefetch): Use constraint ZD.
35870 * config/mips/mips.opt (minterlink-compressed): New option.
35871 (minterlink-mips16): Now an alias for minterlink-compressed.
35872 (mmicromips): New option.
35873 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35874 (compare_and_swap_12): Likewise.
35875 (sync_add<mode>): Likewise.
35876 (sync_<optab>_12): Likewise.
35877 (sync_old_<optab>_12): Likewise.
35878 (sync_new_<optab>_12): Likewise.
35879 (sync_nand_12): Likewise.
35880 (sync_old_nand_12): Likewise.
35881 (sync_new_nand_12): Likewise.
35882 (sync_sub<mode>): Likewise.
35883 (sync_old_add<mode>): Likewise.
35884 (sync_old_sub<mode>): Likewise.
35885 (sync_new_add<mode>): Likewise.
35886 (sync_new_sub<mode>): Likewise.
35887 (sync_<optab><mode>): Likewise.
35888 (sync_old_<optab><mode>): Likewise.
35889 (sync_new_<optab><mode>): Likewise.
35890 (sync_nand<mode>): Likewise.
35891 (sync_old_nand<mode>): Likewise.
35892 (sync_new_nand<mode>): Likewise.
35893 (sync_lock_test_and_set<mode>): Likewise.
35894 (test_and_set_12): Likewise.
35895 (atomic_compare_and_swap<mode>): Likewise.
35896 (atomic_exchange<mode>_llsc): Likewise.
35897 (atomic_fetch_add<mode>_llsc): Likewise.
35898 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35899 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35900 (umips_save_restore_pattern_p): Likewise.
35901 (umips_load_store_pair_p): Likewise.
35902 (umips_output_load_store_pair): Likewise.
35903 (umips_movep_target_p): Likewise.
35904 (umips_12bit_offset_address_p): Likewise.
35905 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35906 (mips_base_mips16): Rename this...
35907 (mips_base_compression_flags): ...to this. Update all uses.
35908 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35909 (mips_mips16_decl_p): Delete.
35910 (mips_nomips16_decl_p): Delete.
35911 (mips_get_compress_on_flags): New function.
35912 (mips_get_compress_off_flags): New function.
35913 (mips_get_compress_mode): New function.
35914 (mips_get_compress_on_name): New function.
35915 (mips_get_compress_off_name): New function.
35916 (mips_insert_attributes): Support multiple compression types.
35917 (mips_merge_decl_attributes): Likewise.
35918 (umips_12bit_offset_address_p): New function.
35919 (mips_start_function_definition): Emit .set micromips directive.
35920 (mips_call_may_need_jalx_p): New function.
35921 (mips_function_ok_for_sibcall): Add microMIPS support.
35922 (mips_print_operand_punctuation): Support short delay slots and
35923 compact jumps.
35924 (umips_swm_mask, umips_swm_encoding): New.
35925 (umips_build_save_restore): New function.
35926 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35927 (was_mips16_p): Remove.
35928 (old_compression_mode): New.
35929 (mips_set_compression_mode): New function.
35930 (mips_set_current_function): Add microMIPS support.
35931 (mips_option_override): Likewise.
35932 (umips_save_restore_pattern_p): New function.
35933 (umips_output_save_restore): New function.
35934 (umips_load_store_pair_p_1): New function.
35935 (umips_load_store_pair_p): New function.
35936 (umips_output_load_store_pair_1): New function.
35937 (umips_output_load_store_pair): New function.
35938 (umips_movep_target_p) New function.
35939 (mips_prepare_pch_save): Add microMIPS support.
35940 * config/mips/mips.h (TARGET_COMPRESSION): New.
35941 (TARGET_CPU_CPP_BUILTINS): Update macro
35942 to use new compression flags and to support microMIPS.
35943 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35944 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35945 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35946 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35947 (ASM_SPEC): Support mmicromips and mno-micromips.
35948 (M16STORE_REG_P): New macro.
35949 (MIPS_CALL): Support TARGET_MICROMIPS.
35950 (MICROMIPS_J): New macro.
35951 (mips_base_mips16): Rename this...
35952 (mips_base_compression_flags): ...to this.
35953 (UMIPS_12BIT_OFFSET_P): New macro.
35954 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35955 (MULTILIB_DIRNAMES): Likewise.
35956
35957 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35958
35959 PR target/52555
35960 * target-globals.c (save_target_globals): For init_reg_sets and
35961 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35962
35963 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
35964
35965 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
35966 * config/aarch64/t-aarch64
35967 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
35968
35969 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
35970
35971 PR inline-asm/56148
35972 * lra-constraints.c (process_alt_operands): Reload operand
35973 conflicting with earlier clobber only if no more other conflicting
35974 operands.
35975
35976 2013-02-22 Jakub Jelinek <jakub@redhat.com>
35977
35978 PR sanitizer/56393
35979 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
35980 if not linking a shared library.
35981
35982 2013-02-22 Seth LaForge <sethml@google.com>
35983
35984 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
35985
35986 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
35987
35988 * config/arm/arm.md (split for extendsidi): Update condition.
35989 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
35990 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
35991 (qhs_zextenddi_cstr): Likewise.
35992
35993 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35994
35995 PR middle-end/56420
35996 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
35997 avoid signed wrapping.
35998 (expand_mult): Handle properly multiplication by
35999 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36000 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36001 in the compiler if coeff is HOST_WIDE_INT_MIN.
36002 (expand_divmod): Don't make ext_op1 static, change it's type to
36003 uhwi. Avoid undefined behavior in -INTVAL (op1).
36004
36005 PR rtl-optimization/50339
36006 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36007 field.
36008 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36009 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36010 into splitting_ashiftrt field.
36011 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36012 ASHIFTRT.
36013 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36014 choices.
36015
36016 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36017
36018 PR middle-end/56108
36019 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36020 are sure to go irrevocable.
36021
36022 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36023
36024 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36025 scalars are valid operands.
36026
36027 2013-02-21 Martin Jambor <mjambor@suse.cz>
36028
36029 PR tree-optimization/56310
36030 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36031 only matching indices and non-negative final offsets.
36032 (intersect_aggregates_with_edge): Pass src_idx to
36033 agg_replacements_to_vector. Pass src_idx insstead of index to
36034 intersect_with_agg_replacements.
36035
36036 2013-02-21 Martin Jambor <mjambor@suse.cz>
36037
36038 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36039 instead of hard-wired defaults.
36040
36041 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36042
36043 * doc/invoke.texi (MIPS Options): Update documentation of the
36044 floating-point multiply-accumulate instruction restrictions.
36045
36046 2013-02-21 Kostya Serebryany <kcc@google.com>
36047
36048 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36049 asan_shadow_offset on x86_64 linux.
36050
36051 2013-02-21 Richard Biener <rguenther@suse.de>
36052
36053 PR tree-optimization/56415
36054 Revert
36055 2013-02-11 Richard Biener <rguenther@suse.de>
36056
36057 PR tree-optimization/56273
36058 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36059 first VRP run.
36060
36061 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36062
36063 PR bootstrap/56258
36064 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36065 instead of @itemx.
36066
36067 PR inline-asm/56405
36068 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36069 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36070
36071 2013-02-20 Jan Hubicka <jh@suse.cz>
36072
36073 PR tree-optimization/56265
36074 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36075 when target is referenced for first time.
36076
36077 2013-02-20 Richard Biener <rguenther@suse.de>
36078
36079 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36080 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36081 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36082 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36083 not return anything.
36084 (rename_ssa_copies): Do not remove unused locals.
36085 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36086 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36087 * passes.c (execute_function_todo): Do not schedule unused locals
36088 removal if cleanup_tree_cfg did something.
36089 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36090 about the number of removed locals.
36091
36092 2013-02-20 Richard Biener <rguenther@suse.de>
36093
36094 PR tree-optimization/56398
36095 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36096
36097 2013-02-20 Martin Jambor <mjambor@suse.cz>
36098
36099 PR tree-optimization/55334
36100 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36101 restricted pointers to arrays.
36102
36103 2013-02-20 Richard Biener <rguenther@suse.de>
36104 Jakub Jelinek <jakub@redhat.com>
36105
36106 PR tree-optimization/56396
36107 * tree-ssa-ccp.c (n_const_val): New static variable.
36108 (get_value): Return NULL for SSA names we don't have a lattice
36109 entry for.
36110 (ccp_initialize): Initialize n_const_val.
36111 * tree-ssa-copy.c (n_copy_of): New static variable.
36112 (init_copy_prop): Initialize n_copy_of.
36113 (get_value): Return NULL_TREE for SSA names we don't have a
36114 lattice entry for.
36115
36116 2013-02-20 Martin Jambor <mjambor@suse.cz>
36117
36118 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36119
36120 2013-02-20 Richard Biener <rguenther@suse.de>
36121
36122 * genpreds.c (write_lookup_constraint): Do not compare first
36123 letter of the constraint again.
36124
36125 2013-02-20 Richard Biener <rguenther@suse.de>
36126
36127 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36128 and ceil_log2.
36129 (get_use_iv_cost): Terminate hashtable walk when coming across
36130 an empty entry.
36131
36132 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36133
36134 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36135 reassociation for avx2 targets.
36136
36137 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36138
36139 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36140 Add version check for v8.10.a to enable microblaze_has_clz
36141 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36142 version and TARGET_PATTERN_COMPARE check
36143 * config/microblaze/microblaze.md: New clzsi2 instruction
36144
36145 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36146
36147 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36148 function before branching.
36149
36150 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36151
36152 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36153 DUMP_INSN_RTX_UID.
36154 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36155
36156 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36157
36158 PR middle-end/55889
36159 * sel-sched.c: Include ira.h.
36160 (implicit_clobber_conflict_p): New function.
36161 (moveup_expr): Use it.
36162 * Makefile.in (sel-sched.o): Depend on ira.h.
36163
36164 2013-02-19 Richard Biener <rguenther@suse.de>
36165
36166 PR tree-optimization/56384
36167 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36168 (vn_hash_type): Split out from ...
36169 (vn_hash_constant_with_type): ... here.
36170 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36171 (vn_phi_eq): Compare types from vn_phi_s structure.
36172 (vn_phi_lookup): Populate vn_phi_s type.
36173 (vn_phi_insert): Likewise.
36174
36175 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36176
36177 PR tree-optimization/56350
36178 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36179 if haven't found reduction or nested cycle operand, rather than
36180 asserting we must find it.
36181
36182 PR tree-optimization/56381
36183 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36184 to fold_build3.
36185
36186 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36187 Jakub Jelinek <jakub@redhat.com>
36188
36189 PR target/52555
36190 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36191 (swap_optab_enable): Same.
36192 (init_all_optabs): Use argument instead of global.
36193 * tree.h (struct tree_optimization_option): New field target_optabs.
36194 * expr.h (init_all_optabs): Add argument to prototype.
36195 (TREE_OPTIMIZATION_OPTABS): New.
36196 (save_optabs_if_changed): Protoize.
36197 * optabs.h: Declare this_fn_optabs.
36198 * optabs.c (save_optabs_if_changed): New.
36199 Declare this_fn_optabs.
36200 (init_optabs): Add argument to init_all_optabs() call.
36201 * function.c (invoke_set_current_function_hook): Handle per
36202 function optabs.
36203 * function.h (struct function): New field optabs.
36204 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36205 optimization_current_node has changed.
36206 * target-globals.h (save_target_globals_default_opts): Protoize.
36207 * target-globals.c (save_target_globals_default_opts): New.
36208
36209 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36210
36211 PR target/56347
36212 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36213 registers %fr12 and %fr12R as call used.
36214
36215 PR target/56214
36216 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36217 and HImode, require all displacements to be an integer multiple of
36218 their mode size.
36219 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36220 only allow QImode and HImode when reload is in progress and strict is
36221 true. Likewise for symbolic addresses. Use base14_operand to check
36222 displacements in REG+BASE addresses.
36223
36224 2013-02-18 Richard Biener <rguenther@suse.de>
36225
36226 PR tree-optimization/56366
36227 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36228 handle sign-conversion of outer-loop initial induction value.
36229
36230 2013-02-18 Richard Biener <rguenther@suse.de>
36231
36232 PR middle-end/56349
36233 * cfghooks.c (merge_blocks): If we merge a latch into another
36234 block adjust references to it.
36235 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36236 (verify_loop_structure): Verify that a recorded latch is in fact
36237 a latch.
36238
36239 2013-02-18 Richard Biener <rguenther@suse.de>
36240
36241 PR tree-optimization/56321
36242 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36243 order SSA name release and virtual operand unlinking.
36244
36245 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36246
36247 * config/microblaze/microblaze.md (save_stack_block): Define.
36248 (restore_stack_block): Likewise.
36249
36250 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36251
36252 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36253 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36254 * config/microblaze/microblaze.c (microblaze_option_override):
36255 Bail out early for PIC modes when target does not support PIC.
36256
36257 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36258
36259 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36260 Replace with a microblaze version.
36261 (microblaze_trampoline_init): Adapt for microblaze.
36262 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36263 microblaze.
36264
36265 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36266 Dodji Seketeli <dodji@redhat.com>
36267
36268 PR asan/56330
36269 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36270 (instrument_mem_region_access): Do not forget to always put
36271 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36272 0) statement, even for cases where either 'base' or 'base + len'
36273 are not instrumented -- because they have been previously
36274 instrumented. Simplify the logic by putting all the statements
36275 instrument 'base + len' inside a sequence, and then insert that
36276 sequence right before the current insertion point. Then, to
36277 instrument 'base + len', just get an iterator on that statement.
36278 And do not forget to update the pointer to iterator the function
36279 received as argument.
36280
36281 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36282
36283 PR rtl-optimization/56348
36284 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36285
36286 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36287
36288 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36289 (clean_graph_dump_file): Pass base to start_graph_dump.
36290
36291 2013-02-14 Richard Henderson <rth@redhat.com>
36292
36293 PR target/55941
36294 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36295
36296 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36297
36298 * collect2-aix.h: Define F_LOADONLY.
36299
36300 2013-02-14 Richard Biener <rguenther@suse.de>
36301
36302 PR lto/50494
36303 * varasm.c (output_constant_def_1): Get the decl representing
36304 the constant as argument.
36305 (output_constant_def): Wrap output_constant_def_1.
36306 (make_decl_rtl): Use output_constant_def_1 with the decl
36307 representing the constant.
36308 (build_constant_desc): Optionally re-use a decl already
36309 representing the constant.
36310 (tree_output_constant_def): Adjust.
36311
36312 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36313
36314 Fix an asan crash
36315 * asan.c (instrument_builtin_call): Really put the length of the
36316 second source argument into src1_len.
36317
36318 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36319
36320 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36321 argument. If it is false, don't create edge from then_bb to
36322 fallthru_bb.
36323 (insert_if_then_before_iter): Pass true to it.
36324 (build_check_stmt): Pass false to it.
36325 (transform_statements): Flush hash table only on extended basic
36326 block boundaries, rather than at the beginning of every bb.
36327 Don't flush hash table on nonfreeing_call_p calls.
36328 * tree-flow.h (nonfreeing_call_p): New prototype.
36329 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36330
36331 2013-02-13 David S. Miller <davem@davemloft.net>
36332
36333 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36334
36335 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36336
36337 PR target/56184
36338 * ira.c (max_regno_before_ira): Move from ...
36339 (ira): ... here.
36340 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36341 vec_safe_length.
36342
36343 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36344
36345 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36346
36347 2013-02-13 Richard Biener <rguenther@suse.de>
36348
36349 PR lto/56295
36350 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36351 globals in MEM_REFs.
36352
36353 2013-02-13 Richard Biener <rguenther@suse.de>
36354
36355 * loop-init.c (loop_optimizer_init): Clear loop state when
36356 re-initializing preserved loops.
36357 * loop-unswitch.c (unswitch_single_loop): Return whether
36358 we unswitched the loop. Do not verify loop state here.
36359 (unswitch_loops): When we unswitched a loop discover new loops.
36360
36361 2013-02-13 Kostya Serebryany <kcc@google.com>
36362
36363 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36364 on x86_64 linux.
36365 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36366
36367 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36368
36369 Avoid instrumenting duplicated memory access in the same basic block
36370 * Makefile.in (asan.o): Add new dependency on hash-table.h
36371 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36372 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36373 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36374 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36375 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36376 (get_mem_ref_of_assignment): New functions.
36377 (get_mem_refs_of_builtin_call): Extract from
36378 instrument_builtin_call and tweak a little bit to make it fit with
36379 the new signature.
36380 (instrument_builtin_call): Use the new
36381 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36382 of is_gimple_builtin_call.
36383 (instrument_derefs, instrument_mem_region_access): Insert the
36384 instrumented memory reference into the hash table.
36385 (maybe_instrument_assignment): Renamed instrument_assignment into
36386 this, and change it to advance the iterator when instrumentation
36387 actually happened and return true in that case. This makes it
36388 homogeneous with maybe_instrument_assignment, and thus give a
36389 chance to callers to be more 'regular'.
36390 (transform_statements): Clear the memory reference hash table
36391 whenever we enter a new BB, when we cross a function call, or when
36392 we are done transforming statements. Use
36393 maybe_instrument_assignment instead of instrumentation. No more
36394 need to special case maybe_instrument_assignment and advance the
36395 iterator after calling it; it's now handled just like
36396 maybe_instrument_call. Update comment.
36397
36398 2013-02-13 Richard Biener <rguenther@suse.de>
36399
36400 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36401 Fix loop discovery code.
36402
36403 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36404
36405 PR inline-asm/56148
36406 * lra-constraints.c (process_alt_operands): Match early clobber
36407 operand with itself. Check conflicts with earlyclobber only if
36408 the operand is not reloaded. Prefer to reload conflicting operand
36409 if earlyclobber and matching operands are the same.
36410
36411 2013-02-12 Richard Biener <rguenther@suse.de>
36412
36413 PR lto/56297
36414 * lto-streamer-out.c (write_symbol): Do not output symbols
36415 for hard register variables.
36416
36417 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36418
36419 PR target/54222
36420 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36421 (umulsidi3_insn, mulsidi3_insn): New insns.
36422
36423 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36424
36425 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36426 (struct tune_params): Add vec_costs field.
36427 * config/arm/arm.c (arm_builtin_vectorization_cost)
36428 (arm_add_stmt_cost): New functions.
36429 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36430 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36431 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36432 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36433 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36434 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36435 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36436
36437 2013-02-12 Richard Biener <rguenther@suse.de>
36438
36439 PR lto/56295
36440 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36441 decls again if possible.
36442
36443 2013-02-12 Richard Biener <rguenther@suse.de>
36444
36445 PR middle-end/56288
36446 * tree-ssa.c (verify_ssa_name): Fix check, move
36447 SSA_NAME_IN_FREE_LIST check up.
36448
36449 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36450 Steven Bosscher <steven@gcc.gnu.org>
36451
36452 PR rtl-optimization/56151
36453 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36454 equal to op0 or op1, and last_insn pattern is CODE operation
36455 with MEM dest and one of the operands matches that MEM.
36456
36457 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36458
36459 * doc/extend.texi: Document Function Multiversioning and "default"
36460 parameter string to target attribute.
36461 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36462 target attribute parameter is "default".
36463 (ix86_compare_version_priority): Remove checks for target attribute.
36464 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36465 Remove check for target attribute equal to NULL. Add assert.
36466 (ix86_generate_version_dispatcher_body): Change error to sorry.
36467
36468 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36469 Jack Howarth <howarth@bromo.med.uc.edu>
36470 Patrick Marlier <patrick.marlier@gmail.com>
36471
36472 PR libitm/55693
36473 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36474 define ENDFILE_SPEC as TM_DESTRUCTOR.
36475 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36476
36477 2013-02-11 Alexander Potapenko <glider@google.com>
36478 Jack Howarth <howarth@bromo.med.uc.edu>
36479 Jakub Jelinek <jakub@redhat.com>
36480
36481 PR sanitizer/55617
36482 * config/darwin.c (cdtor_record): Rename ctor_record.
36483 (sort_cdtor_records): Rename sort_ctor_records.
36484 (finalize_dtors): New routine to sort destructors by
36485 priority before use in assemble_integer.
36486 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36487
36488 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36489
36490 PR rtl-optimization/56275
36491 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36492 offset is non-negative and less than cmode size before
36493 calling simplify_subreg.
36494
36495 2013-02-11 Richard Biener <rguenther@suse.de>
36496
36497 PR tree-optimization/56264
36498 * cfgloop.h (fix_loop_structure): Adjust prototype.
36499 * loop-init.c (fix_loop_structure): Return the number of
36500 newly discovered loops.
36501 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36502 are discovered, do a full loop-closed SSA rewrite.
36503
36504 2013-02-11 Richard Biener <rguenther@suse.de>
36505
36506 PR tree-optimization/56273
36507 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36508 first VRP run.
36509 (check_array_ref): Fix missing newline in dumps.
36510 (search_for_addr_array): Likewise.
36511
36512 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36513
36514 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36515
36516 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36517
36518 PR target/56256
36519 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36520
36521 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36522
36523 PR rtl-optimization/56246
36524 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36525 reload pseudo.
36526 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36527 constraints are satisfied.
36528
36529 2013-02-08 Jeff Law <law@redhat.com>
36530
36531 PR debug/53948
36532 * emit-rtl.c (reg_is_parm_p): New function.
36533 * regs.h (reg_is_parm_p): New prototype.
36534 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36535 callee-clobbered registers.
36536
36537 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36538
36539 PR target/56043
36540 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36541 If there is no implicit builtin declaration, just return NULL.
36542
36543 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36544
36545 * config/i386/sse.md (FMAMODEM): New mode iterator.
36546 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36547 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36548
36549 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36550
36551 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36552 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36553 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36554
36555 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36556
36557 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36558 (microblaze*-*-elf): Likewise.
36559 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36560 LINK_SPEC.
36561 * config/microblaze/microblaze-c.c: Add builtin defines for
36562 _LITTLE_ENDIAN and _BIG_ENDIAN.
36563 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36564 add to TARGET_DEFAULT flags.
36565 Expand ASM_SPEC and LINK_SPEC.
36566 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36567 * config/microblaze/microblaze.md: Update extendsidi2 and
36568 movdi_internal instructions to use low-order / high-order reg
36569 print_operands.
36570 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36571 options and inversemask / mask of LITTLE_ENDIAN.
36572 * config/microblaze/t-microblaze: Expand multilib options to
36573 include mlittle-endian (le) and update exceptions patterns.
36574
36575 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36576
36577 PR rtl-optimization/56195
36578 * lra-constraints.c (get_reload_reg): Don't reuse regs
36579 if they have smaller mode than requested, if they have
36580 wider mode than requested, try to return a SUBREG.
36581
36582 PR tree-optimization/56250
36583 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36584 if type is unsigned and code isn't MULT_EXPR.
36585
36586 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36587
36588 PR tree-optimization/56064
36589 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36590 bits according to mode.
36591 * fixed-value.h (fixed_from_double_int)
36592 (const_fixed_from_double_int): Adjust comments.
36593
36594 2013-02-08 Richard Biener <rguenther@suse.de>
36595
36596 PR lto/56231
36597 * lto-streamer.h (struct data_in): Remove current_file, current_line
36598 and current_col members.
36599 * lto-streamer-out.c (lto_output_location): Stream changed bits
36600 en-block for efficiency.
36601 * lto-streamer-in.c (clear_line_info): Remove.
36602 (lto_input_location): Cache current file, line and column
36603 globally via local statics. Read changed bits en-block.
36604 (input_function): Do not call clear_line_info.
36605 (lto_read_body): Likewise.
36606 (lto_input_toplevel_asms): Likewise.
36607
36608 2013-02-08 Michael Matz <matz@suse.de>
36609
36610 PR tree-optimization/52448
36611 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36612 (nt_call_phase): New static.
36613 (add_or_mark_expr): Only mark accesses with newer phase than any
36614 call seen.
36615 (nonfreeing_call_p): New.
36616 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36617 (nt_fini_block): Keep blocks marked as visited.
36618 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36619
36620 2013-02-08 Richard Biener <rguenther@suse.de>
36621
36622 * ira.c (ira): Free broken dominator information.
36623
36624 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36625
36626 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36627
36628 2013-02-08 Marek Polacek <polacek@redhat.com>
36629
36630 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36631
36632 2013-02-08 Richard Biener <rguenther@suse.de>
36633
36634 PR middle-end/56181
36635 * cfgloop.h (flow_loops_find): Adjust.
36636 (bb_loop_header_p): Declare.
36637 * cfgloop.c (bb_loop_header_p): New function split out from ...
36638 (flow_loops_find): ... here. Adjust function signature,
36639 support incremental loop structure update.
36640 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36641 * cfgloopmanip.c (fix_loop_structure): Move ...
36642 * loop-init.c (fix_loop_structure): ... here.
36643 (apply_loop_flags): Split out from ...
36644 (loop_optimizer_init): ... here.
36645 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36646 in incremental mode, only remove dead loops here.
36647
36648 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36649
36650 PR target/54222
36651 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36652 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36653 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36654 (*round<mode>3.libgcc): New insns for fixed-modes.
36655 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36656 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36657 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36658 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36659 implementations. Define to __builtin_avr_absFX,
36660 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36661 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36662 __builtin_avr_countlsFX, respectively.
36663 * config/avr/avr-c.c (target.h): Include it.
36664 (enum avr_builtin_id): New enum.
36665 (avr_resolve_overloaded_builtin): New static function.
36666 (avr_register_target_pragmas): Use it to set
36667 targetm.resolve_overloaded_builtin.
36668 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36669 tree nodes used by DEF_BUILTIN.
36670 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36671 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36672 <AVR_BUILTIN_xxBITS>: Same.
36673
36674 2013-02-08 Richard Biener <rguenther@suse.de>
36675
36676 * cfgloop.c (verify_loop_structure): Properly handle
36677 a loop exiting to another loop header.
36678 * ira-int.h (ira_loops): Remove.
36679 * ira.c (ira_loops): Remove.
36680 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36681 (do_reload): Use loop_optimizer_finalize.
36682 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36683 number_of_loops to access the loop tree.
36684 (more_one_region_p): Likewise.
36685 (finish_loop_tree_nodes): Likewise.
36686 (rebuild_regno_allocno_maps): Likewise.
36687 (mark_loops_for_removal): Likewise.
36688 (mark_all_loops_for_removal): Likewise.
36689 (remove_unnecessary_regions): Likewise.
36690 (ira_build): Likewise.
36691 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36692
36693 2013-02-08 Richard Biener <rguenther@suse.de>
36694
36695 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36696 * ipa-pure-const.c (analyze_function): Avoid calling
36697 mark_irreducible_loops twice.
36698 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36699
36700 2013-02-07 David S. Miller <davem@davemloft.net>
36701
36702 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36703 on 'reg'.
36704 * var-tracking.c (vt_add_function_parameter): Test the presence of
36705 HAVE_window_save properly and do not remap argument registers when
36706 we have a leaf function.
36707
36708 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36709
36710 PR bootstrap/56227
36711 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36712 instead of "ll".
36713 * config/i386/i386.c (ix86_print_operand): Ditto.
36714
36715 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36716
36717 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36718
36719 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36720
36721 PR rtl-optimization/56225
36722 * lra-constraints.c (process_alt_operands): Check that reload hard
36723 reg can hold value for strict_low_part.
36724
36725 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36726
36727 PR debug/56154
36728 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36729 dwarf2out_end_function.
36730 (in_first_function_p, maybe_at_text_label_p,
36731 first_loclabel_num_not_at_text_label): New variables.
36732 (dwarf2out_var_location): In the first function find out
36733 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36734 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36735 functions.
36736
36737 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36738
36739 PR rtl-optimization/56178
36740 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36741 SUBREG of a register. Tidy up related block of code.
36742 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36743 note if the source is a register or a SUBREG of a register.
36744
36745 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36746
36747 PR target/56228
36748 * config/rs6000/rs6000.md (ptrm): New mode attr.
36749 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36750 call_value_indirect_aix<pttrsize>,
36751 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36752 m in constraints.
36753
36754 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36755
36756 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36757 if -bnortl. Convert to strcmp and strncmp.
36758
36759 2013-02-07 Alan Modra <amodra@gmail.com>
36760
36761 PR target/54009
36762 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36763 addresses won't wrap when offsetting.
36764 (rs6000_secondary_reload): Provide secondary reloads needed for
36765 wrapping LO_SUM addresses.
36766
36767 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36768
36769 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36770 MACH, just __MACH__.
36771
36772 2013-02-06 Richard Biener <rguenther@suse.de>
36773
36774 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36775 instead of calling fix_loop_structure.
36776
36777 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36778
36779 PR middle-end/56217
36780 * omp-low.c (use_pointer_for_field): Return false if
36781 lower_send_shared_vars doesn't generate any copy-out code.
36782
36783 2013-02-06 Tom de Vries <tom@codesourcery.com>
36784
36785 PR rtl-optimization/56131
36786 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36787 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36788 of the label is NULL. Add comment.
36789
36790 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36791
36792 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36793
36794 PR sanitizer/55374
36795 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36796 (STATIC_LIBTSAN_LIBS): Likewise.
36797 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36798 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36799 is defined, don't add anything else beyond that.
36800 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36801 (LINK_COMMAND_SPEC): Use them.
36802
36803 PR tree-optimization/56205
36804 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36805 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36806 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36807
36808 2013-02-05 Richard Biener <rguenther@suse.de>
36809
36810 PR tree-optimization/53342
36811 PR tree-optimization/53185
36812 * tree-vectorizer.h (vect_check_strided_load): Remove.
36813 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36814 not disallow peeling for vectorized strided loads.
36815 (vect_check_strided_load): Make static and simplify.
36816 (vect_analyze_data_refs): Adjust.
36817 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36818 correctly when vectorizing strided loads.
36819
36820 2013-02-05 Richard Biener <rguenther@suse.de>
36821
36822 * doc/install.texi: Refer to ISL, not PPL.
36823
36824 2013-02-05 Jan Hubicka <jh@suse.cz>
36825
36826 PR tree-optimization/55789
36827 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36828
36829 2013-02-05 Jan Hubicka <jh@suse.cz>
36830
36831 PR tree-optimization/55789
36832 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36833 the dead call anyway.
36834
36835 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36836
36837 PR sanitizer/55374
36838 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36839
36840 2013-02-04 Alexander Potapenko <glider@google.com>
36841 Jack Howarth <howarth@bromo.med.uc.edu>
36842 Jakub Jelinek <jakub@redhat.com>
36843
36844 PR sanitizer/55617
36845 * config/darwin.c (sort_ctor_records): Stabilized qsort
36846 on constructor priority by using original position.
36847 (finalize_ctors): New routine to sort constructors by
36848 priority before use in assemble_integer.
36849 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36850
36851 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36852
36853 PR libstdc++/54314
36854 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36855 about visibility on artificial decls.
36856 * config/sol2.c (solaris_assemble_visibility): Likewise.
36857
36858 2013-02-04 Kai Tietz <ktietz@redhat.com>
36859
36860 PR target/56186
36861 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36862 argument and improve checking of return-argument types for 16-byte
36863 modes.
36864 (ix86_function_value_1): Add additional valtype argument on call
36865 of function_value_64.
36866 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36867 handling infunction_value_64 function.
36868
36869 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36870
36871 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36872
36873 2013-02-04 Richard Biener <rguenther@suse.de>
36874
36875 PR tree-optimization/56188
36876 * tree-ssa-structalias.c (label_visit): Consider case with
36877 initially non-empty points-to set.
36878 (perform_var_substitution): Dump node mapping and clean up.
36879
36880 2013-02-04 Richard Guenther <rguenther@suse.de>
36881
36882 PR lto/56168
36883 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36884 node prevail as last resort.
36885 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36886 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36887
36888 2013-02-04 Richard Biener <rguenther@suse.de>
36889
36890 PR tree-optimization/56113
36891 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36892 Merge into ...
36893 (equiv_class_lookup_or_add): ... this.
36894 (label_visit): Adjust and fix error in previous patch.
36895 (perform_var_substitution): Adjust.
36896
36897 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36898
36899 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36900 * config/sh/sh4-300.md: Likewise.
36901 * config/sh/sh4a.md: Likewise.
36902 * config/sh/constraints.md: Likewise.
36903 * config/sh/sh.md: Likewise.
36904 * config/sh/netbsd-elf.h: Likewise.
36905 * config/sh/predicates.md: Likewise.
36906 * config/sh/sh-protos.h: Likewise.
36907 * config/sh/ushmedia.h: Likewise.
36908 * config/sh/linux.h: Likewise.
36909 * config/sh/sh.c: Likewise.
36910 * config/sh/superh.h: Likewise.
36911 * config/sh/elf.h: Likewise.
36912 * config/sh/sh4.md: Likewise.
36913 * config/sh/sh.h: Likewise.
36914
36915 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36916
36917 * config/pa/constraints.md: Adjust unused letters. Change "T"
36918 constraint to match_test floating_point_store_memory_operand().
36919 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36920 (base14_operand): New.
36921 (floating_point_store_memory_operand): New.
36922 (integer_store_memory_operand): Revise to use base14_operand and
36923 reg_plus_base_memory_operand.
36924 (move_dest_operand): Allow symbolic_memory_operands.
36925 (symbolic_memory_operand): Check for LO_SOM.
36926 (symbolic_operand): Change default case to break.
36927 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36928 CONST_DOUBLE values to be reloaded by putting them into memory when
36929 the destination is a floating point register.
36930 (movdf): Remove code to handle CONST_DOUBLE.
36931 (movsf): Likewise.
36932 (reload_indf_r1): New.
36933 (reload_insf_r1): New.
36934 Consistently use "Q" and "T" constraints with integer and floating
36935 point move instructions, respectively.
36936 (movdi): Remove FAIL.
36937 Change predicate for source operand unamed DImode move from
36938 general_operand to move_src_operand.
36939 (umulsidi3): Change predicate for destination operand to
36940 register_operand.
36941 Likewise for similar unamed patterns.
36942 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36943 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36944 (hppa_legitimize_address): Simplify mask calculation.
36945 (pa_emit_move_sequence): Revised handling of secondary reloads from
36946 REG+D addresses for floating point loads and stores. Directly handle
36947 loading CONST0_RTX (mode) to a floating point register.
36948 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36949 to floating point registers. Don't restrict secondary reloads to
36950 floating point registers to integer modes. Revise some comments and
36951 cleanup some code.
36952 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36953 (pa_legitimate_address_p): New.
36954 (pa_legitimize_reload_address): New.
36955 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36956 (STRICT_REG_OK_FOR_BASE_P): New.
36957 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36958 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36959
36960 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36961 Andrew Dixie <andrewd@gentrack.com>
36962
36963 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
36964 flag set.
36965
36966 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
36967
36968 * expmed.c (extract_bit_field_1): Pass the full width of the
36969 structure to get_best_reg_extraction_insn.
36970
36971 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36972
36973 PR target/54601
36974 * configure.ac (use_cxa_atexit): Add AIX.
36975 * configure: Regenerate.
36976
36977 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
36978
36979 2013-02-01 Jakub Jelinek <jakub@redhat.com>
36980
36981 PR debug/54793
36982 * final.c (need_profile_function): New variable.
36983 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
36984 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
36985 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
36986 notes, targetm.asm_out.function_prologue doesn't emit anything,
36987 HAVE_prologue and profiler should be emitted before prologue,
36988 set need_profile_function instead of emitting it.
36989 (final_scan_insn): If need_profile_function, emit
36990 profile_function on the first NOTE_INSN_BASIC_BLOCK or
36991 NOTE_INSN_FUNCTION_BEG note.
36992
36993 2013-02-01 Richard Henderson <rth@redhat.com>
36994
36995 * config/rs6000/rs6000.md (smulditi3): New.
36996 (umulditi3): New.
36997
36998 * config/alpha/alpha.md (umulditi3): New.
36999
37000 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37001
37002 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37003 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37004
37005 2013-02-01 Richard Biener <rguenther@suse.de>
37006
37007 PR tree-optimization/56113
37008 * tree-ssa-structalias.c (label_visit): Reduce work for
37009 single-predecessor nodes.
37010
37011 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37012
37013 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37014 range isn't testing for zero.
37015
37016 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37017
37018 PR middle-end/56113
37019 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37020
37021 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37022 Nick Clifton <nickc@redhat.com>
37023
37024 * config/v850/constraints.md (Q): Define as a memory constraint.
37025 * config/v850/predicates.md (label_ref_operand): New predicate.
37026 (e3v5_shift_operand): New predicate.
37027 (ior_operator): New predicate.
37028 * config/v850/t-v850: Add e3v5 multilib.
37029 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37030 (v850_gen_movdi): Prototype.
37031 * config/v850/v850.c: Add support for e3v5 architecture.
37032 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37033 TARGET_V850E_UP.
37034 (construct_save_jarl): Add e3v5 long JARL support.
37035 (v850_adjust_insn_length): New function. Adjust length of call
37036 insns when using e3v5 instructions.
37037 (v850_gen_movdi): New function: Generate instructions to move a
37038 DImode value.
37039 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37040 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37041 (TARGET_USE_FPU): Enable for e3v5.
37042 (CONST_OK_FOR_W): New macro.
37043 (ADJUST_INSN_LENGTH): Define.
37044 * config/v850/v850.md (UNSPEC_LOOP): Define.
37045 (attr cpu): Add v850e3v5.
37046 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37047 (movdi): New pattern.
37048 (movdi_internal): New pattern.
37049 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37050 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37051 (cstoresf4): Likewise.
37052 (cstoredf4): Likewise.
37053 (insv): New pattern.
37054 (rotlso3_a): New pattern.
37055 (rotlsi3_b): New pattern
37056 (rotlsi3_v850e3v5): New pattern.
37057 (doloop_begin): New pattern.
37058 (fix_loop_counter): New pattern.
37059 (doloop_end): New pattern.
37060 (branch_normal): Add e3v5 long branch support.
37061 (branch_invert): Likewise.
37062 (branch_z_normal): Likewise.
37063 (branch_z_invert): Likewise.
37064 (branch_nz_normal): Likewise.
37065 (branch_nz_invert): Likewise.
37066 (call_internal_short): Add e3v5 register-indirect JARL support.
37067 (call_internal_long): Likewise.
37068 (call_value_internal_short): Likewise.
37069 (call_value_internal_long): Likewise.
37070 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37071 (mloop): New option.
37072 * config.gcc: Add support for configuring v840e3v5 target.
37073 * doc/invoke.texi: Document new v850 specific command line options.
37074
37075 2013-01-31 Paul Koning <ni1d@arrl.net>
37076
37077 PR debug/55059
37078 PR debug/54508
37079 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37080 children if parent is a class.
37081 (prune_unused_types_prune): Don't add DW_AT_declaration.
37082
37083 2013-01-31 Richard Biener <rguenther@suse.de>
37084
37085 PR tree-optimization/56157
37086 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37087 match up operand with SLP child.
37088
37089 2013-01-31 Jason Merrill <jason@redhat.com>
37090
37091 PR debug/54410
37092 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37093 parameters the first time.
37094 (gen_scheduled_generic_parms_dies): Check completeness here.
37095
37096 2013-01-31 Richard Biener <rguenther@suse.de>
37097
37098 PR middle-end/53073
37099 * common.opt (faggressive-loop-optimizations): New flag,
37100 enabled by default.
37101 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37102 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37103 infer_loop_bounds_from_undefined by it.
37104
37105 2013-01-31 Richard Biener <rguenther@suse.de>
37106
37107 PR tree-optimization/56150
37108 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37109 visit virtual operands.
37110 (find_uses_to_rename_bb): Likewise.
37111
37112 2013-01-31 Richard Biener <rguenther@suse.de>
37113
37114 PR tree-optimization/56150
37115 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37116 mixed store non-store stmts.
37117
37118 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37119
37120 PR sanitizer/55374
37121 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37122 LIBASAN_EARLY_SPEC is defined.
37123 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37124 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37125 before %o.
37126 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37127
37128 PR c++/55742
37129 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37130 invalid args instead of ICEing on it.
37131 (ix86_valid_target_attribute_tree): Return error_mark_node if
37132 ix86_valid_target_attribute_inner_p failed.
37133 (ix86_valid_target_attribute_p): Return false only if
37134 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37135 target("default") attribute.
37136 (sorted_attr_string): Change argument from const char * to tree,
37137 merge in all target attribute arguments rather than just one.
37138 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37139 instead of free. Avoid using strcat.
37140 (ix86_mangle_function_version_assembler_name): Mangle
37141 target("default") as if no target attribute is present. Adjust
37142 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37143 instead of xmalloc and XDELETEVEC instead of free.
37144 (ix86_function_versions): Don't return true if one of the decls
37145 doesn't have target attribute. If they don't and one of the decls
37146 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37147 sorted_attr_string caller. Use XDELETEVEC instead of free.
37148 (ix86_supports_function_versions): Remove.
37149 (make_name): Fix up formatting.
37150 (make_dispatcher_decl): Remove resolver_name and its initialization.
37151 Avoid leaking memory.
37152 (is_function_default_version): Return true if there is
37153 target("default") attribute rather than no target attribute at all.
37154 (make_resolver_func): Avoid leaking memory.
37155 (ix86_generate_version_dispatcher_body): Likewise.
37156 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37157 * target.def (supports_function_versions): Remove.
37158 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37159 * doc/tm.texi: Regenerated.
37160
37161 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37162
37163 PR rtl-optimization/56144
37164 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37165 for values with side effects.
37166
37167 2013-01-30 Richard Biener <rguenther@suse.de>
37168
37169 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37170 (sparseset_pop): Likewise.
37171 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37172 to be able to use quick_push in the worker loop.
37173
37174 2013-01-30 Marek Polacek <polacek@redhat.com>
37175
37176 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37177
37178 2013-01-30 Richard Biener <rguenther@suse.de>
37179
37180 PR lto/56147
37181 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37182
37183 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37184
37185 PR tree-optimization/56064
37186 * fixed-value.c (fixed_from_double_int): New function.
37187 * fixed-value.h (fixed_from_double_int): New prototype.
37188 (const_fixed_from_double_int): New static inline function.
37189 * fold-const.c (native_interpret_fixed): New static function.
37190 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37191 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37192 (native_encode_fixed): New static function.
37193 (native_encode_expr) <FIXED_CST>: Use it.
37194 (native_interpret_int): Move double_int worker code to...
37195 * double-int.c (double_int::from_buffer): ...this new static method.
37196 * double-int.h (double_int::from_buffer): Prototype it.
37197
37198 2013-01-30 Richard Biener <rguenther@suse.de>
37199
37200 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37201 New pointer-map and obstack.
37202 (init_alias_vars): Allocate pointer-map and obstack.
37203 (delete_points_to_sets): Free them.
37204 (find_what_var_points_to): Cache result.
37205 (find_what_p_points_to): Adjust for changed interface of
37206 find_what_var_points_to.
37207 (compute_points_to_sets): Likewise.
37208 (ipa_pta_execute): Likewise.
37209
37210 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37211
37212 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37213 * configure: Regenerate.
37214 * config.in: Regenerate.
37215 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37216 #nobits/#progbits if supported.
37217
37218 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37219
37220 PR target/56121
37221 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37222 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37223 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37224
37225 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37226
37227 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37228 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37229
37230 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37231
37232 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37233 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37234
37235 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37236
37237 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37238 declaration.
37239 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37240 * config/arm/cortex-a7.md: New bypasses using
37241 arm_mac_accumulator_is_result.
37242
37243 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37244
37245 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37246 (cortex_a7_neon_mla): Likewise.
37247 (cortex_a7_fpfmad): New reservation.
37248 (cortex_a7_fpmacs): Use ffmas and update required units.
37249 (cortex_a7_fpmuld): Update required units and latency.
37250 (cortex_a7_fpmacd): Likewise.
37251 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37252 (cortex_a7_neon). Likewise.
37253 (bypass) Update participating units.
37254
37255 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37256
37257 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37258 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37259 from fmac to ffma.
37260 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37261 (vfp_fmul): Use ffmad.
37262 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37263 (cortex_r4_fmacd): Use ffmad.
37264 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37265 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37266 (cortex_a9_fmacd): Use ffmad.
37267 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37268 (cortex_a8_vfp_macd): Use ffmad.
37269 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37270 (cortex_a5_fpmacd): Use ffmad.
37271 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37272 (cortex_a15_vfp_macd): Use ffmad.
37273 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37274
37275 2013-01-29 Jason Merrill <jason@redhat.com>
37276
37277 PR libstdc++/54314
37278 * varasm.c (default_assemble_visibility): Don't warn about
37279 visibility on artificial decls.
37280
37281 2013-01-29 Richard Biener <rguenther@suse.de>
37282
37283 PR tree-optimization/56113
37284 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37285 the bitmap leader.
37286 (label_visit): Free duplicate bitmaps and record the leader instead.
37287 (perform_var_substitution): Adjust.
37288
37289 2013-01-29 Richard Biener <rguenther@suse.de>
37290
37291 PR tree-optimization/55270
37292 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37293 the CFG, schedule loops for fixup.
37294
37295 2013-01-29 Nick Clifton <nickc@redhat.com>
37296
37297 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37298 SP_REG.
37299
37300 2013-01-28 Leif Ekblad <leif@rdos.net>
37301
37302 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37303 * config/i386/i386.h (TARGET_RDOS): New macro.
37304 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37305 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37306 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37307 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37308 DEFAULT_LARGE_SECTION_THRESHOLD.
37309 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37310 * config/i386/rdos.h: New file.
37311 * config/i386/rdos64.h: New file.
37312
37313 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37314
37315 PR other/54814
37316 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37317 TEST_HARD_REG_BIT.
37318
37319 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37320
37321 PR rtl-optimization/56117
37322 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37323 call cselib_lookup_from_insn on the MEM before calling
37324 add_insn_mem_dependence.
37325
37326 2013-01-28 Richard Biener <rguenther@suse.de>
37327
37328 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37329 to a stmt that didn't have one.
37330 (copy_phis_for_bb): Likewise for PHI arguments.
37331 (copy_debug_stmt): Likewise for debug stmts.
37332
37333 2013-01-28 Richard Biener <rguenther@suse.de>
37334
37335 PR tree-optimization/56034
37336 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37337 (partition_builtin_p): Adjust.
37338 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37339 it is the last partition.
37340 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37341 up the vertex for the definition.
37342 (classify_partition): Classify whether a partition is a
37343 PKIND_REDUCTION, thus has uses outside of the loop.
37344 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37345 Merge all PKIND_REDUCTION partitions into the last partition.
37346 (tree_loop_distribution): Seed partitions from reductions as well.
37347
37348 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37349
37350 PR tree-optimization/56125
37351 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37352 pow(x,c) into sqrt(x) * powi(x, n/2) or
37353 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37354 optimizing for size.
37355 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37356 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37357 integer.
37358
37359 PR tree-optimization/56094
37360 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37361 to UNKNOWN_LOCATION while gimplifying expr.
37362
37363 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37364
37365 PR target/56114
37366 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37367 operand 0 in movabs insn template for -masm=intel asm alternative.
37368 (*movabs<mode>_2): Ditto for operand 1.
37369
37370 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37371
37372 PR target/54663
37373 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37374 of microblaze-c.o
37375
37376 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37377
37378 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37379 tm_file.
37380
37381 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37382
37383 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37384 Undef to avoid warning.
37385
37386 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37387
37388 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37389 * configure: Regenerate.
37390
37391 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37392
37393 PR tree-optimization/56098
37394 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37395 for stmts with volatile ops.
37396 (cond_store_replacement): Don't optimize if assign has volatile ops.
37397 (cond_if_else_store_replacement_1): Don't optimize if either
37398 then_assign or else_assign have volatile ops.
37399 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37400 volatile ops.
37401
37402 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37403
37404 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37405
37406 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37407
37408 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37409 missing ':' in asm example.
37410
37411 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37412
37413 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37414 entries into lane and laneq entries.
37415 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37416 Remove AdvSIMD scalar modes.
37417 (aarch64_sq<r>dmulh_laneq<mode>): New.
37418 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37419 modes.
37420 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37421 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37422 * config/aarch64/iterators.md (VCOND): New.
37423 (VCONQ): New.
37424
37425 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37426
37427 PR target/54222
37428 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37429 Add NULL LIBNAME argument to existing definitions.
37430 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37431 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37432 * config/avr/avr.c (DEF_BUILTIN): Same.
37433 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37434 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37435 implementation is available (DECL_ASSEMBLER_NAME is set).
37436 (avr_fold_absfx): New static function.
37437 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37438 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37439 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37440 AVR_BUILTIN_ABSLLK.
37441 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37442 (abshk, absk, abslk, absllk): Provide as static inline functions.
37443
37444 2013-01-25 Marek Polacek <polacek@redhat.com>
37445
37446 PR tree-optimization/56035
37447 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37448
37449 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37450
37451 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37452 (*movtf_internal_rex64): Add (!o,C) alternative
37453 (*movxf_internal_rex64): Ditto.
37454 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37455
37456 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37457
37458 * doc/invoke.texi: fix typo.
37459 * doc/objc.texi: fix typo.
37460
37461 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37462
37463 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37464 for the first two alternatives.
37465
37466 2013-01-24 Diego Novillo <dnovillo@google.com>
37467
37468 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37469 (ggc-zone.o): Remove.
37470 * configure.ac: Remove option --with-gc.
37471 * configure: Re-generate.
37472 * doc/install.texi: Remove documentation for --with-gc.
37473 * gengtype.c (write_enum_defn): Remove. Update all users.
37474 (write_Types_process_field): Remove generation of gt_e_* argument.
37475 (output_type_enum): Remove. Update all users.
37476 (write_enum_defn): Remove. Update all users.
37477 (enum alloc_zone): Remove. Update all users.
37478 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37479 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37480 Update all callers.
37481 (struct ptr_data): Remove field TYPE. Update all users.
37482 (gt_pch_note_object): Remove argument TYPE. Update all users.
37483 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37484 Update all users.
37485 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37486 (struct alloc_zone): Remove.
37487 (ggc_internal_alloc_zone_stat): Remove.
37488 (ggc_internal_cleared_alloc_zone_stat): Remove.
37489 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37490 (ggc_pch_count_object): Remove last argument. Update all users.
37491 (ggc_pch_alloc_object): Remove last argument. Update all users.
37492 (struct alloc_zone): Remove.
37493 * ggc-zone.c: Remove.
37494 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37495 (struct alloc_zone): Remove.
37496 (ggc_alloc_typed_stat): Remove.
37497 (ggc_alloc_typed): Remove.
37498 (ggc_splay_alloc): Remove first argument.
37499 (rtl_zone): Remove. Update all users.
37500 (tree_zone): Remove. Update all users.
37501 (tree_id_zone): Remove. Update all users.
37502 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37503 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37504 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37505 * tree-ssanames.c: Remove references to zone allocator in comments.
37506
37507 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37508
37509 * config/avr/avr.c (avr_out_fract): Make register numbers that
37510 might be outside of source operand signed.
37511
37512 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37513
37514 * config/i386/constraints.md (Yf): New constraint.
37515 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37516 of f constraint to conditionaly disable x87 register preferences.
37517 (*movdf_internal): Ditto.
37518 (*movsf_internal): Ditto.
37519
37520 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37521
37522 PR inline-asm/55934
37523 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37524 that have operands with impossible constraints.
37525 Add a FIXME for a speed-up opportunity.
37526 * lra-constraints.c (process_alt_operands): Verify that a class
37527 selected from constraints on asms is valid for the operand mode.
37528 (curr_insn_transform): Remove incorrect comment.
37529
37530 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37531
37532 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37533 TOC operand is a valid symbol ref in the constant pool.
37534
37535 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37536
37537 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37538
37539 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37540
37541 PR target/54222
37542 * config/avr/stdfix.h: New file.
37543 * t-avr (stdfix-gcc.h): New rule to build it.
37544 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37545
37546 2013-01-23 Kostya Serebryany <kcc@google.com>
37547
37548 * config/darwin.h: remove dependency on
37549 CoreFoundation (asan on Mac OS).
37550
37551 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37552
37553 PR target/49069
37554 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37555 instead of cmpdi_operand for first comparison operand.
37556 Don't assert that comparison operands aren't both constants.
37557
37558 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37559
37560 * doc/install.texi (Downloading the Source): Update references to
37561 downloading separate components.
37562
37563 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37564
37565 * doc/extend.texi (__int128): Improve grammar.
37566
37567 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37568
37569 PR target/56028
37570 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37571 alternative to (o,r).
37572 (*movdi_internal_rex64): Remove (!o,n) alternative.
37573 (DImode immediate->memory splitter): Remove.
37574 (DImode immediate->memory peephole2): Remove.
37575 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37576 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37577 alternative to (!o,*r).
37578 (*movtf_internal_sse): New pattern.
37579 (*movxf_internal_rex64): New pattern.
37580 (*movxf_internal): Disable for TARGET_64BIT.
37581 (*movdf_internal_rex64): Remove (!o,F) alternative.
37582
37583 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37584
37585 PR middle-end/56074
37586 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37587 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37588 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37589 stmt locations where LOCATION_LOCUS of the stmt location is
37590 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37591
37592 PR target/55686
37593 * config/i386/i386.md (UNSPEC_STOS): New.
37594 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37595 *strsetqi_1): Add UNSPEC_STOS.
37596
37597 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37598
37599 PR c++/56067
37600 * doc/invoke.texi: Remove left over -Wsynth example.
37601
37602 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37603
37604 PR tree-optimization/56051
37605 * fold-const.c (fold_binary_loc): Don't fold
37606 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37607 a narrowing conversion, or widening conversion from signed
37608 to unsigned.
37609
37610 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37611
37612 PR rtl-optimization/56023
37613 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37614 dependent on debug instruction.
37615
37616 2013-01-21 Martin Jambor <mjambor@suse.cz>
37617
37618 PR middle-end/56022
37619 * function.c (allocate_struct_function): Call
37620 invoke_set_current_function_hook earlier.
37621
37622 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37623
37624 * reload1.c (init_reload): Only initialize reload_obstack
37625 during the first call.
37626
37627 2013-01-21 Marek Polacek <polacek@redhat.com>
37628
37629 * cfgloop.c (verify_loop_structure): Fix up grammar.
37630
37631 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37632
37633 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37634 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37635
37636 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37637
37638 PR target/56058
37639 * config/arm/marvell-pj4.md: Update copyright year.
37640 Fix up use of alu to alu_reg and simple_alu_imm.
37641
37642 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37643
37644 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37645
37646 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37647
37648 PR target/55433
37649 * lra-constraints.c (curr_insn_transform): Don't reuse original
37650 insn for secondary memory move when memory mode should be different.
37651
37652 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37653
37654 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37655 atomic_storedi_1): New patterns.
37656
37657 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37658
37659 btver2 pipeline descriptions.
37660 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37661 descriptions.
37662 * config/i386/i386.md (btver2_decode): New type attributes.
37663 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37664 type attributes.
37665 * config/i386/btver2.md: New file describing btver2 pipelines.
37666
37667 2013-01-19 Andrew Pinski <apinski@cavium.com>
37668
37669 PR tree-optimization/52631
37670 * tree-ssa-sccvn (visit_use): Before looking up the original
37671 statement, try looking up the simplified expression.
37672
37673 2013-01-19 Anthony Green <green@moxielogic.com>
37674
37675 * config/moxie/moxie.c (moxie_expand_prologue): Set
37676 current_function_static_stack_size.
37677
37678 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37679
37680 PR tree-optimization/56029
37681 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37682 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37683
37684 2013-01-18 Sharad Singhai <singhai@google.com>
37685
37686 PR tree-optimization/55995
37687 * dumpfile.c (dump_loc): Print location only if available.
37688 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37689
37690 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37691
37692 PR target/55433
37693 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37694 secondary memory move.
37695 (inherit_reload_reg): Use rclass instead of cl for
37696 check_secondary_memory_needed_p.
37697
37698 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37699
37700 PR middle-end/56015
37701 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37702 the case where writing real complex part of target modifies op1.
37703
37704 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37705
37706 * config/aarch64/aarch64-simd.md
37707 (aarch64_vcond_internal<mode>): Handle unordered cases.
37708 * config/aarch64/iterators.md (v_cmp_result): New.
37709
37710 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37711 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37712
37713 * config/arm/marvell-pj4.md: New file.
37714 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37715 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37716 (generic_vfp): Likewise.
37717 * config/arm/arm-cores.def: Add marvell-pj4.
37718 * config/arm/arm-tune.md: Regenerate.
37719 * config/arm/arm-tables.opt: Regenerate.
37720 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37721 * doc/invoke.texi: Document marvell-pj4.
37722
37723 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37724
37725 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37726
37727 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37728
37729 PR debug/54114
37730 PR debug/54402
37731 PR debug/49888
37732 * var-tracking.c (negative_power_of_two_p): New.
37733 (global_get_addr_cache, local_get_addr_cache): New.
37734 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37735 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37736 heading comment.
37737 (vt_stack_offset_p): Remove.
37738 (vt_canon_true_dep): Always canonicalize loc's address.
37739 (clobber_overlapping_mems): Make sure we have a MEM.
37740 (local_get_addr_clear_given_value): New.
37741 (val_reset): Clear local cached entries.
37742 (compute_bb_dataflow): Create and release the local cache.
37743 Disable duplicate MEMs clobbering.
37744 (emit_notes_in_bb): Clobber MEMs likewise.
37745 (vt_emit_notes): Create and release the local cache.
37746 (vt_initialize, vt_finalize): Create and release the global
37747 cache, respectively.
37748 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37749
37750 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37751
37752 PR libmudflap/53359
37753 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37754 not found in the symtab.
37755
37756 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37757
37758 PR debug/56006
37759 PR rtl-optimization/55547
37760 PR rtl-optimization/53827
37761 PR debug/53671
37762 PR debug/49888
37763 * alias.c (offset_overlap_p): New, factored out of...
37764 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37765 the conservative special case for symbolic constants. Don't
37766 adjust zero sizes on alignment.
37767
37768 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37769
37770 PR rtl-optimization/52573
37771 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37772 REG_UNUSED for the same register.
37773
37774 2013-01-17 Richard Biener <rguenther@suse.de>
37775 Marek Polacek <polacek@redhat.com>
37776
37777 PR rtl-optimization/55833
37778 * loop-unswitch.c (unswitch_loops): Move loop verification...
37779 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37780 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37781 Set it to true when we're removing a loop from hierarchy tree in
37782 an irreducible region.
37783 (fix_bb_placements): Adjust caller.
37784 (fix_loop_placements): Likewise.
37785
37786 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37787
37788 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37789 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37790 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37791 Remove ID. Adjust comments.
37792 * config/avr/avr-c.c (avr_builtin_name): Remove.
37793 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37794 * config/avr/avr.c (avr_tolower): New static function.
37795 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37796 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37797 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37798 default expansion.
37799
37800 2013-01-17 Jan Hubicka <jh@suse.cz>
37801
37802 PR tree-optimization/55273
37803 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37804
37805 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37806
37807 PR target/55981
37808 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37809 store through atomic_store<mode>_1.
37810 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37811
37812 2013-01-17 Martin Jambor <mjambor@suse.cz>
37813
37814 PR tree-optimizations/55264
37815 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37816 for virtual methods.
37817 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37818 virtual methods before inlining is over.
37819 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37820 virtual functions.
37821 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37822 non-virtual.
37823
37824 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37825
37826 PR rtl-optimization/56005
37827 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37828 pending reads for prefetch.
37829
37830 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37831
37832 * config/aarch64/aarch64.md
37833 (*cstoresi_neg_uxtw): New pattern.
37834 (*cmovsi_insn_uxtw): New pattern.
37835 (*<optab>si3_uxtw): New pattern.
37836 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37837 (*<optab>si3_insn_uxtw): New pattern.
37838 (*bswapsi2_uxtw): New pattern.
37839
37840 2013-01-16 Richard Biener <rguenther@suse.de>
37841
37842 * tree-inline.c (tree_function_versioning): Remove set but
37843 never used variable.
37844
37845 2013-01-16 Richard Biener <rguenther@suse.de>
37846
37847 PR tree-optimization/55964
37848 * tree-flow.h (rename_variables_in_loop): Remove.
37849 (rename_variables_in_bb): Likewise.
37850 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37851 (copy_loop_before): Adjust and delete update-ssa status.
37852 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37853 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37854 (rename_variables_in_loop): Remove.
37855 (slpeel_update_phis_for_duplicate_loop): Likewise.
37856 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37857 use available cfg machinery instead of duplicating it.
37858 Update PHI nodes and perform poor-mans SSA update here.
37859 (slpeel_tree_peel_loop_to_edge): Adjust.
37860
37861 2013-01-16 Richard Biener <rguenther@suse.de>
37862
37863 PR tree-optimization/54767
37864 PR tree-optimization/53465
37865 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37866 (vrp_visit_phi_node): For PHI arguments coming via backedges
37867 drop all symbolical range information.
37868 (execute_vrp): Compute backedges.
37869
37870 2013-01-16 Richard Biener <rguenther@suse.de>
37871
37872 * doc/install.texi: Update CLooG and ISL requirements to
37873 0.18.0 and 0.11.1.
37874
37875 2013-01-16 Christian Bruel <christian.bruel@st.com>
37876
37877 PR target/55301
37878 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37879 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37880 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37881
37882 2013-01-16 DJ Delorie <dj@redhat.com>
37883
37884 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37885 (UNSPECV_SP_SWITCH_E): New.
37886 (sp_switch_1): Change to an unspec.
37887 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37888 replace $r15.
37889
37890 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37891
37892 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37893 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37894 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37895 (expand_mem_thread_fence): Ditto.
37896 (expand_mem_signal_fence): Ditto.
37897 (expand_atomic_load): Ditto.
37898 (expand_atomic_store): Ditto.
37899
37900 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37901
37902 PR rtl-optimization/55547
37903 PR rtl-optimization/53827
37904 PR debug/53671
37905 PR debug/49888
37906 * alias.c (memrefs_conflict_p): Set sizes to negative after
37907 AND adjustments.
37908
37909 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37910
37911 PR target/55940
37912 * function.c (thread_prologue_and_epilogue_insns): Always
37913 add crtl->drap_reg to set_up_by_prologue.set, even if
37914 stack_realign_drap is false.
37915
37916 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37917
37918 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37919 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37920 *call): Fix indention.
37921
37922 2013-01-15 Tom de Vries <tom@codesourcery.com>
37923
37924 PR target/55876
37925 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37926 Update comment.
37927
37928 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37929
37930 PR rtl-optimization/55153
37931 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37932
37933 2013-01-15 Martin Jambor <mjambor@suse.cz>
37934
37935 PR tree-optimization/55920
37936 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37937 accesses as grp_to_be_debug_replaced.
37938
37939 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37940
37941 PR tree-optimization/55920
37942 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37943 there is non-useless type conversion needed from debug rhs to lhs,
37944 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37945
37946 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37947 Mikael Pettersson <mikpe@it.uu.se>
37948
37949 PR target/43961
37950 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37951 Thumb.
37952 (ASM_OUTPUT_CASE_LABEL): Remove.
37953 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37954 * final.c (shorten_branches): Update alignment of labels before
37955 jump tables if CASE_VECTOR_SHORTEN_MODE.
37956
37957 2013-01-15 Richard Biener <rguenther@suse.de>
37958
37959 PR bootstrap/55961
37960 * system.h: Do not include gmp.h for building host tools.
37961
37962 2013-01-15 Richard Biener <rguenther@suse.de>
37963
37964 PR middle-end/55882
37965 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
37966 account for bitpos when computing alignment.
37967
37968 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
37969
37970 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
37971 (ix86_target_macros_internal): Likewise.
37972
37973 * config/i386/i386.c (m_CORE2I7): Removed.
37974 (m_CORE_HASWELL): New macro.
37975 (m_CORE_ALL): Likewise.
37976 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
37977 (initial_ix86_arch_features): Likewise.
37978 (processor_target_table): Initializations for Core avx2.
37979 (cpu_names): New names "core-avx2".
37980 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
37981 PROCESSOR_CORE_HASWELL.
37982 (ix86_issue_rate): New case.
37983 (ia32_multipass_dfa_lookahead): Likewise.
37984 (ix86_sched_init_global): Likewise.
37985
37986 * config/i386/i386.h (TARGET_HASWELL): New macro.
37987 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
37988 (processor_type): New PROCESSOR_HASWELL.
37989
37990 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37991
37992 PR tree-optimization/55955
37993 * tree-vect-loop.c (vectorizable_reduction): Give up early on
37994 *SHIFT_EXPR and *ROTATE_EXPR codes.
37995
37996 PR tree-optimization/48766
37997 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
37998 -ftrapv disable -fwrapv.
37999
38000 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38001
38002 PR target/55974
38003 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38004 etc. to 1 and not to __flash.
38005 Use LL suffix for __INT24_MAX__ with -mint8.
38006 Use ULL suffix for __UINT24_MAX__ with -mint8.
38007
38008 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38009
38010 * config/avr/avr-arch.h
38011 (struct base_arch_s): Use typedef avr_arch_t instead.
38012 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38013 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38014 * config/avr/avr.c: Same.
38015 * config/avr/avr-devices.c: Same.
38016 * config/avr/driver-avr.c: Same.
38017 * config/avr/gen-avr-mmcu-texi.c: Same.
38018 * config/avr/avr-mcus.def: Adjust comment.
38019
38020 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38021
38022 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38023 * config/aarch64/iterators.md (VALLDI): New.
38024
38025 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38026 Andi Kleen <ak@linux.intel.com>
38027
38028 PR target/55948
38029 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38030 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38031 memmodel flag.
38032
38033 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38034
38035 * config/avr/avr-stdint.h: Remove trailing blanks.
38036 * config/avr/avr-log.h: Same.
38037 * config/avr/avr-arch.h: Same.
38038 * config/avr/avr-devices.c: Same.
38039 * config/avr/avr-dimode.md: Same.
38040 * config/avr/predicates.md: Same.
38041 * config/avr/avr-c.c: Same. And fix typo.
38042
38043 * config/avr/avr-protos.h: Same. And:
38044 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38045 (init_cumulative_args): Rename to avr_init_cumulative_args.
38046 (expand_prologue): Rename to avr_expand_prologue.
38047 (expand_epilogue): Rename to avr_expand_epilogue.
38048 (adjust_insn_length): Rename to avr_adjust_insn_length.
38049 (notice_update_cc): Rename to avr_notice_update_cc.
38050 (final_prescan_insn): Rename to avr_final_prescan_insn.
38051 * config/avr/avr.c: Same.
38052 * config/avr/avr.h: Same.
38053 * config/avr/avr.md: Remove trailing blanks.
38054 (prologue): Use avr_expand_prologue.
38055 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38056
38057 2013-01-14 Richard Biener <rguenther@suse.de>
38058
38059 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38060 verify_location, collect_subblocks): New functions.
38061 (verify_gimple_in_cfg): Verify that locations only reference
38062 BLOCKs in the functions BLOCK tree.
38063
38064 2013-01-14 Richard Biener <rguenther@suse.de>
38065
38066 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38067 PHI argument.
38068 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38069 unshare reference.
38070 (insert_out_of_ssa_copy_on_edge): Likewise.
38071 (rewrite_close_phi_out_of_ssa): Likewise.
38072 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38073 debug expressions.
38074 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38075 propagated constants.
38076 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38077 can not be shared.
38078
38079 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38080
38081 * config/avr/avr-modes.def: Add GPL copyright notice.
38082
38083 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38084
38085 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38086 MEMMODEL_MASK to determine memory model.
38087 (atomic_store<mode>): Ditto from operands[2].
38088 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38089
38090 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38091
38092 PR fortran/55935
38093 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38094 (fold_gimple_assign): Don't call unshare_expr here.
38095 (fold_ctor_reference): Call unshare_expr.
38096
38097 2013-01-13 Terry Guo <terry.guo@arm.com>
38098
38099 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38100 * doc/fragments.texi: Document MULTILIB_REUSE.
38101 * gcc.c (multilib_reuse): New internal spec.
38102 (set_multilib_dir): Also search multilib from multilib_reuse.
38103 * genmultilib (tmpmultilib3): Refactor code.
38104 (tmpmultilib4): Ditto.
38105 (multilib_reuse): New multilib argument.
38106
38107 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38108
38109 * Makefile.in: Update copyright.
38110
38111 2013-01-12 Tom de Vries <tom@codesourcery.com>
38112
38113 PR middle-end/55890
38114 * calls.c (expand_call): Check if arg_nr is valid.
38115
38116 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38117
38118 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38119 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38120 documentation. Add missing '__' in front of
38121 __builtin_ia32_packssdw256.
38122
38123 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38124
38125 PR target/55719
38126 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38127 NO_REGS for larl operands.
38128 (s390_reload_larl_operand): Use s390_load_address instead of
38129 emit_move_insn.
38130
38131 2013-01-11 Richard Biener <rguenther@suse.de>
38132
38133 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38134 (verify_node_sharing): ... here.
38135 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38136
38137 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38138
38139 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38140 Substitute TREECHECKING.
38141 * configure: Regenerate.
38142 * Makefile.in (TREECHECKING): New.
38143
38144 2013-01-11 Richard Guenther <rguenther@suse.de>
38145
38146 PR tree-optimization/44061
38147 * tree-vrp.c (extract_range_basic): Compute zero as
38148 value-range for __builtin_constant_p of function parameters.
38149
38150 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38151
38152 Update copyright years.
38153
38154 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38155
38156 PR rtl-optimization/55672
38157 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38158 const to be eliminable.
38159
38160 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38161
38162 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38163 * configure: Regenerate.
38164
38165 2013-01-10 Richard Biener <rguenther@suse.de>
38166
38167 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38168
38169 2013-01-10 Richard Biener <rguenther@suse.de>
38170
38171 PR bootstrap/55792
38172 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38173 locations for virtual PHI arguments.
38174 (rewrite_update_phi_arguments): Likewise.
38175
38176 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38177
38178 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38179 on to assembler.
38180
38181 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38182
38183 PR tree-optimization/55921
38184 * tree-complex.c (expand_complex_asm): New function.
38185 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38186
38187 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38188
38189 PR target/55718
38190 * config/s390/s390.c (s390_symref_operand_p)
38191 (s390_loadrelative_operand_p): Merge the two functions.
38192 (s390_check_qrst_address, print_operand_address): Add parameters
38193 to s390_loadrelative_operand_p invokation.
38194 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38195 (s390_reload_larl_operand, s390_secondary_reload): Use
38196 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38197 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38198
38199 2013-01-09 Mike Stump <mikestump@comcast.net>
38200
38201 * dse.c (record_store): Remove unnecessary assert.
38202
38203 2013-01-09 Jan Hubicka <jh@suse.cz>
38204
38205 PR tree-optimization/55569
38206 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38207 * cfgloop.h (scale_loop_profile): Likewise.
38208
38209 2013-01-09 Jan Hubicka <jh@suse.cz>
38210
38211 PR lto/45375
38212 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38213 functions.
38214 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38215
38216 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38217
38218 PR middle-end/55114
38219 * expr.h (maybe_emit_group_store): Declare.
38220 * expr.c (maybe_emit_group_store): New function.
38221 * builtins.c (expand_builtin_int_roundingfn): Call it.
38222 (expand_builtin_int_roundingfn_2): Likewise.
38223
38224 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38225
38226 PR rtl-optimization/55829
38227 * lra-constraints.c (match_reload): Add code for absent output.
38228 (curr_insn_transform): Add code for reloads of matched inputs
38229 without output.
38230
38231 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38232
38233 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38234 attribute of movddup insn to DF.
38235 (*vec_interleave_lowv2df): Ditto.
38236 (vec_dupv2df): Ditto.
38237
38238 2013-01-09 Jan Hubicka <jh@suse.cz>
38239
38240 PR tree-optimiation/55875
38241 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38242 EVERY_ITERATION parameter.
38243 (number_of_iterations_exit): Check if exit is executed every iteration.
38244 (idx_infer_loop_bounds): Similarly here.
38245 (n_of_executions_at_most): Simplify
38246 to only test for cases where statement is dominated by the
38247 particular bound; handle correctly the "postdominance" test.
38248 (scev_probably_wraps_p): Use max loop iterations info
38249 as a global bound first.
38250
38251 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38252 Nick Clifton <nickc@redhat.com>
38253
38254 * config/v850/v850.md (cbranchsf4): New pattern.
38255 (cstoresf4): New pattern.
38256 (cbranchdf4): New pattern.
38257 (cstoredf4): New pattern.
38258 (movsicc): Disallow floating point comparisons.
38259 (cmpsf_le_insn): Fix order of operators.
38260 (cmpsf_lt_insn): Likewise.
38261 (cmpsf_eq_insn): Likewise.
38262 (cmpdf_le_insn): Likewise.
38263 (cmpdf_lt_insn): Likewise.
38264 (cmpdf_eq_insn): Likewise.
38265 (cmpsf_ge_insn): Use LE comparison.
38266 (cmpdf_ge_insn): Likewise.
38267 (cmpsf_gt_insn): Use LT comparison.
38268 (cmpdf_gt_insn): Likewise.
38269 (cmpsf_ne_insn): Delete pattern.
38270 (cmpdf_ne_insn): Delete pattern.
38271 * config/v850/v850.c (v850_gen_float_compare): Use
38272 gen_cmpdf_eq_insn for NE comparison.
38273 (v850_float_z_comparison_operator)
38274 (v850_float_nz_comparison_operator): Move from here ...
38275 * config/v850/predicates.md: ... to here. Move GT and GE
38276 comparisons into v850_float_z_comparison_operator.
38277 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38278 Delete prototype.
38279 (v850_float_nz_comparison_operator): Likewise.
38280
38281 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38282
38283 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38284 with calls to gen_insvsi/gen_insvdi.
38285
38286 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38287
38288 * config/i386/i386.c (initial_ix86_tune_features): Set up
38289 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38290
38291 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38292 Jakub Jelinek <jakub@redhat.com>
38293
38294 PR tree-optimization/48189
38295 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38296 If nitercst is 0, don't predict the exit edge.
38297
38298 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38299
38300 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38301 in asm_fprintf with reg_names.
38302 (aarch64_print_operand_address): Likewise.
38303 (aarch64_return_addr): Likewise.
38304 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38305
38306 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38307
38308 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38309 (INT_U6_BITS): Likewise.
38310 * config/pa/predicates.md (uint6_operand): New predicate.
38311 (shift5_operand, shift6_operand): Likewise.
38312 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38313 arith32_operand.
38314 (lshrdi3): Use shift6_operand.
38315 (shrpsi4, shrpdi4): New insn patterns.
38316 (extzv): Delete expander.
38317 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38318 predicates in unamed zero extract patterns. Tighten common constraint.
38319 (extv): Delete expander.
38320 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38321 predicates in unamed sign extract patterns. Tighten common constraint.
38322 (insv): Delete expander.
38323 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38324 predicates in unamed insert patterns. Tighten common constraint.
38325 Change uint32_operand predicate to uint6_operand predicate in unamed
38326 DImode pattern to insert constant values of type 1...1xxxx.
38327
38328 2013-01-04 Jan Hubicka <jh@suse.cz>
38329
38330 PR tree-optimization/55823
38331 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38332 issue.
38333
38334 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38335 Uros Bizjak <ubizjak@gmail.com>
38336
38337 PR rtl-optimization/55845
38338 * df-problems.c (can_move_insns_across): Stop scanning at
38339 volatile_insn_p source instruction or give up if
38340 across_from .. across_to range contains any volatile_insn_p
38341 instructions.
38342
38343 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38344
38345 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38346 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38347 Declare.
38348 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38349 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38350
38351 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38352
38353 PR fortran/55341
38354 * asan.c (asan_clear_shadow): New function.
38355 (asan_emit_stack_protection): Use it.
38356
38357 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38358
38359 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38360 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38361 with tab instead of space.
38362
38363 2013-01-08 Nick Clifton <nickc@redhat.com>
38364
38365 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38366 register bank 0 at the start of an interrupt handler.
38367 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38368 MDBH registers.
38369
38370 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38371
38372 * config/aarch64/aarch64-simd.md
38373 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38374 (aarch64_simd_bsl): Likewise.
38375 (aarch64_vcond_internal<mode>): Likewise.
38376 (vcond<mode><mode>): Likewise.
38377 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38378 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38379
38380 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38381
38382 * config/aarch64/aarch64-builtins.c
38383 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38384
38385 2013-01-08 Martin Jambor <mjambor@suse.cz>
38386
38387 PR debug/55579
38388 * tree-sra.c (analyze_access_subtree): Return true also after
38389 potentially creating a debug-only replacement.
38390
38391 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38392
38393 PR middle-end/55890
38394 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38395
38396 PR tree-optimization/54120
38397 * tree-vrp.c (range_fits_type_p): Don't allow
38398 src_precision < precision from signed vr to unsigned_p
38399 if vr->min or vr->max is negative.
38400 (simplify_float_conversion_using_ranges): Test can_float_p
38401 against CODE_FOR_nothing.
38402
38403 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38404 Richard Biener <rguenther@suse.de>
38405
38406 PR middle-end/55851
38407 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38408 types instead of just INTEGER_TYPE types.
38409
38410 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38411
38412 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38413 TF_SIZE): Define.
38414
38415 2013-01-07 Steve Ellcey <sellcey@mips.com>
38416
38417 PR target/42661
38418 * config/mips/mips.opt: Change mad to mmad to match documentation.
38419
38420 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38421
38422 PR target/55897
38423 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38424 .progmemx.data now.
38425
38426 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38427
38428 PR target/55897
38429 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38430 (avr_addrspace_t): Add .section_name field.
38431 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38432 array size.
38433 (avr_addrspace): Same. Initialize .section_name. Remove last
38434 NULL entry. Put __memx into .progmemx.data.
38435 (progmem_section_prefix): Remove.
38436 (avr_asm_init_sections): No need to initialize progmem_section.
38437 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38438 section name prefix.
38439 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38440 retrieve the progmem section.
38441 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38442 boundary to run over avr_addrspace[].
38443 (avr_register_target_pragmas): Ditto.
38444
38445 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38446
38447 * varasm.c (output_constant_def_contents): For asan_protect_global
38448 protected strings, adjust DECL_ALIGN if needed, before testing for
38449 anchored symbols.
38450 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38451 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38452 normal decls.
38453 (output_object_block): For asan protected decls, emit asan padding
38454 after their contents.
38455 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38456 (asan_finish_file): Test it here instead.
38457
38458 2013-01-07 Nick Clifton <nickc@redhat.com>
38459 Matthias Klose <doko@debian.org>
38460 Doug Kwan <dougkwan@google.com>
38461 H.J. Lu <hongjiu.lu@intel.com>
38462
38463 PR driver/55470
38464 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38465
38466 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38467
38468 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38469
38470 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38471
38472 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38473
38474 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38475
38476 PR target/54461
38477 * doc/install.texi (Cross-Compiler-Specific Options): Document
38478 --with-avrlibc.
38479
38480 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38481
38482 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38483 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38484 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38485 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38486 vqmovun_high_s64): Fix source operand number and update copyright.
38487
38488 2013-01-07 Richard Biener <rguenther@suse.de>
38489
38490 PR middle-end/55890
38491 * gimple.h (gimple_call_builtin_p): New overload.
38492 * gimple.c (validate_call): New function.
38493 (gimple_call_builtin_p): Likewise.
38494 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38495 Use gimple_call_builtin_p.
38496 (find_func_clobbers): Likewise.
38497 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38498 (strlen_optimize_stmt): Likewise.
38499
38500 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38501
38502 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38503 (vld1q_dup_*): Likewise.
38504 (vld1_*): Likewise.
38505 (vld1q_*): Likewise.
38506 (vld1_lane_*): Likewise.
38507 (vld1q_lane_*): Likewise.
38508
38509 2013-01-07 Richard Biener <rguenther@suse.de>
38510
38511 * lto-streamer.h (LTO_minor_version): Bump to 2.
38512
38513 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38514
38515 * config/aarch64/aarch64-protos.h
38516 (aarch64_const_double_zero_rtx_p): Rename to...
38517 (aarch64_float_const_zero_rtx_p): ...this.
38518 (aarch64_float_const_representable_p): New.
38519 (aarch64_output_simd_mov_immediate): Likewise.
38520 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38521 move immediate case.
38522 * config/aarch64/aarch64.c
38523 (aarch64_const_double_zero_rtx_p): Rename to...
38524 (aarch64_float_const_zero_rtx_p): ...this.
38525 (aarch64_print_operand): Allow printing of new constants.
38526 (aarch64_valid_floating_const): New.
38527 (aarch64_legitimate_constant_p): Check for valid floating-point
38528 constants.
38529 (aarch64_simd_valid_immediate): Likewise.
38530 (aarch64_vect_float_const_representable_p): New.
38531 (aarch64_float_const_representable_p): Likewise.
38532 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38533 (aarch64_output_simd_mov_immediate): New.
38534 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38535 (*movdf_aarch64): Likewise.
38536 * config/aarch64/constraints.md (Ufc): New.
38537 (Y): call aarch64_float_const_zero_rtx.
38538 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38539
38540 2013-01-07 Richard Biener <rguenther@suse.de>
38541
38542 PR tree-optimization/55888
38543 PR tree-optimization/55862
38544 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38545 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38546 not if it is contained therein.
38547
38548 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38549
38550 * config/avr/t-avr: Typo.
38551
38552 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38553
38554 PR55243
38555 * config/avr/t-avr: Don't automatically rebuild
38556 $(srcdir)/config/avr/t-multilib
38557 $(srcdir)/config/avr/avr-tables.opt
38558 $(srcdir)/doc/avr-mmcu.texi
38559 (avr-mcus): New phony target to build them on request.
38560 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38561 * avr/avr-mcus.def: Adjust comments.
38562
38563 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38564
38565 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38566
38567 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38568
38569 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38570
38571 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38572
38573 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38574
38575 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38576
38577 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38578 to generate profiling.
38579 * config/rs6000/aix64.h (LIB_SPEC): Same.
38580
38581 2013-01-04 Andrew Pinski <apinski@cavium.com>
38582
38583 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38584 New function.
38585 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38586
38587 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38588
38589 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38590 unconditionally.
38591 (ix86_expand_move): Ditto.
38592 (ix86_zero_extend_to_Pmode): Ditto.
38593 (ix86_expand_call): Ditto.
38594 (ix86_expand_special_args_builtin): Ditto.
38595 (ix86_expand_builtin): Ditto.
38596
38597 2013-01-04 Richard Biener <rguenther@suse.de>
38598
38599 PR tree-optimization/55862
38600 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38601 translating them through PHI nodes.
38602
38603 2013-01-04 Martin Jambor <mjambor@suse.cz>
38604
38605 PR tree-optimization/55755
38606 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38607 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38608
38609 2013-01-04 Marek Polacek <polacek@redhat.com>
38610
38611 PR middle-end/55859
38612 * opts.c (default_options_optimization): Clarify error message.
38613
38614 2013-01-04 Richard Biener <rguenther@suse.de>
38615
38616 PR middle-end/55863
38617 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38618 reassociation.
38619
38620 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38621
38622 PR target/53789
38623 * config/pa/pa.md (movsi): Revert previous change.
38624 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38625 references.
38626
38627 2013-01-03 Richard Henderson <rth@redhat.com>
38628
38629 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38630 after eliminating TLS symbols.
38631
38632 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38633
38634 PR bootstrap/50167
38635 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38636 * graphite-poly.c (debug_gmp_value): Likewise.
38637
38638 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38639
38640 PR target/55712
38641 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38642 selected code model, define __code_mode_small__, __code_model_medium__,
38643 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38644 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38645 xchg temporary register with %k. Declare temporary register as
38646 early clobbered.
38647 [__x86_64__]: For medium and large code models, preserve %rbx register.
38648
38649 2013-01-03 Richard Biener <rguenther@suse.de>
38650
38651 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38652 (dump_subscript): Adjust.
38653 (finalize_ddr_dependent): Do not dump redundant info.
38654 (analyze_siv_subscript): Adjust.
38655 (subscript_dependence_tester): Likewise.
38656 (compute_affine_dependence): Likewise.
38657
38658 2013-01-03 Richard Biener <rguenther@suse.de>
38659
38660 Revert
38661 2013-01-03 Richard Biener <rguenther@suse.de>
38662
38663 PR tree-optimization/55857
38664 * tree-vect-stmts.c (vectorizable_load): Do not setup
38665 re-alignment for invariant loads.
38666
38667 2013-01-02 Richard Biener <rguenther@suse.de>
38668
38669 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38670 invariant load do not generate a vector load from the scalar location.
38671
38672 2013-01-03 Richard Biener <rguenther@suse.de>
38673
38674 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38675 for not vectorizing.
38676 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38677 not build INDIRECT_REFs, call get_name once only.
38678 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38679 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38680
38681 2013-01-03 Richard Biener <rguenther@suse.de>
38682
38683 PR tree-optimization/55857
38684 * tree-vect-stmts.c (vectorizable_load): Do not setup
38685 re-alignment for invariant loads.
38686
38687 2013-01-03 Richard Biener <rguenther@suse.de>
38688
38689 PR lto/55848
38690 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38691 prefer a built-in decl.
38692
38693 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38694
38695 * gcc.c (process_command): Update copyright notice dates.
38696 * gcov.c (print_version): Likewise.
38697 * gcov-dump.c (print_version): Likewise.
38698
38699 PR rtl-optimization/55838
38700 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38701 iv0.step, iv1.step and step.
38702
38703 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38704 Marc Glisse <marc.glisse@inria.fr>
38705
38706 PR tree-optimization/55832
38707 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38708 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38709 integer_{one,zero}_node.
38710
38711 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38712
38713 PR debug/54402
38714 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38715 * var-tracking.c (reverse_op): Don't add reverse ops to
38716 VALUEs that have already
38717 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38718
38719 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38720
38721 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38722
38723 2013-01-02 Teresa Johnson <tejohnson@google.com>
38724
38725 * dumpfile.c (dump_loc): Print filename with location.
38726 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38727 new location_t parameter to emit complete unroll message with
38728 new dump framework.
38729 (canonicalize_loop_induction_variables): Compute loops location
38730 and pass to try_unroll_loop_completely.
38731 * loop-unroll.c (report_unroll_peel): New function.
38732 (peel_loops_completely): Use new dump format with location
38733 for main dumpfile message, and invoke report_unroll_peel on success.
38734 (decide_unrolling_and_peeling): Ditto.
38735 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38736 by report_unroll_peel.
38737 (decide_peel_completely): Ditto.
38738 (decide_unroll_constant_iterations): Ditto.
38739 (decide_unroll_runtime_iterations): Ditto.
38740 (decide_peel_simple): Ditto.
38741 (decide_unroll_stupid): Ditto.
38742 * cfgloop.c (get_loop_location): New function.
38743 * cfgloop.h (get_loop_location): Declare.
38744
38745 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38746
38747 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38748 NULL.
38749
38750 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38751
38752 PR middle-end/55198
38753 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38754 BLKmode objects when EXPAND_MEMORY is specified.
38755
38756 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38757
38758 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38759 in loop predicate.
38760 (fold_builtin_cpu): Do not share cpu model decls across statements.
38761
38762 2013-01-02 Jason Merrill <jason@redhat.com>
38763
38764 PR c++/55804
38765 * tree.c (build_array_type_1): Revert earlier change.
38766
38767 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38768
38769 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38770 "cortex-a57".
38771 * config/aarch64/aarch64-tune.md: Re-generate.
38772
38773 2013-01-02 Richard Biener <rguenther@suse.de>
38774
38775 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38776 invariant load do not generate a vector load from the scalar location.
38777
38778 2013-01-02 Richard Biener <rguenther@suse.de>
38779
38780 PR bootstrap/55784
38781 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38782 * configure: Regenerate.
38783
38784 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38785
38786 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38787 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38788 (expand_builtin_int_roundingfn_2): Keep the original target around
38789 for the fallback case.
38790
38791 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38792
38793 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38794 to be clear for sign changes.
38795
38796 2013-01-01 Jan Hubicka <jh@suse.cz>
38797
38798 * ipa-inline-analysis.c: Fix formatting.
38799
38800 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38801
38802 PR tree-optimization/55831
38803 * tree-vect-loop.c (get_initial_def_for_induction): Use
38804 gsi_after_labels instead of gsi_start_bb.
38805 \f
38806 Copyright (C) 2013 Free Software Foundation, Inc.
38807
38808 Copying and distribution of this file, with or without modification,
38809 are permitted in any medium without royalty provided the copyright
38810 notice and this notice are preserved.